{"openapi":"3.1.0","info":{"title":"Song Rhymes API","description":"Versioned public REST API for Song Rhymes. New integrations use /api/v1. Unversioned paths remain compatibility aliases.","version":"1.0.0"},"paths":{"/api/v1/meta":{"get":{"summary":"Meta","description":"Return the deployed product version and public feature availability.","operationId":"getMeta","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetaResponse"}}},"headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"The requested resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"422":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"429":{"description":"Public API rate limit exceeded.","headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"The API could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/api/v1/faq":{"get":{"summary":"Faq Content","description":"The /faq page markdown: owner-saved content only (empty until saved).","operationId":"getFaq","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FaqResponse"}}},"headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"The requested resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"422":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"429":{"description":"Public API rate limit exceeded.","headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"The API could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/api/v1/bench":{"get":{"summary":"Bench Results","description":"Latest songrhymes-bench aggregate results for the /bench page.","operationId":"getBench","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BenchResponse"}}},"headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"The requested resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"422":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"429":{"description":"Public API rate limit exceeded.","headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"The API could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/api/v1/rhymes":{"get":{"summary":"Rhymes","description":"Return buffered ranked rhymes for a word or phrase.","operationId":"getRhymes","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"explain","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Explain"}},{"name":"pron","in":"query","required":false,"schema":{"type":"string","default":"","title":"Pron"}},{"name":"userId","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RhymesResponse"}}},"headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryValidationErrorResponse"}}},"description":"Unprocessable Content","headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"The requested resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"429":{"description":"Public API rate limit exceeded.","headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"The API could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/api/v1/related":{"get":{"summary":"Related","description":"Conceptually related words, which are deliberately not rhymes.\n\nServed separately from /api/v1/rhymes so it neither delays nor can break the\nstreaming rhyme pipeline. An empty list is a normal answer: coverage is\nlimited to the shipped vocabulary while rhymes are generated for anything.","operationId":"getRelated","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":12,"title":"Limit"}},{"name":"userId","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelatedResponse"}}},"headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryValidationErrorResponse"}}},"description":"Unprocessable Content","headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"The requested resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"429":{"description":"Public API rate limit exceeded.","headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"The API could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/api/v1/rhymes/stream":{"get":{"summary":"Rhymes Stream","description":"Stream staged rhyme-search snapshots and additions as NDJSON.","operationId":"streamRhymes","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"explain","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Explain"}},{"name":"pron","in":"query","required":false,"schema":{"type":"string","default":"","title":"Pron"}},{"name":"userId","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userid"}}],"responses":{"200":{"description":"A newline-delimited sequence of rhyme events. When pron is resolved, the response may instead be a buffered JSON result.","headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}}},"content":{"application/x-ndjson":{"schema":{"oneOf":[{"$ref":"#/components/schemas/RhymeSnapshotEvent"},{"$ref":"#/components/schemas/RhymeAppendEvent"},{"$ref":"#/components/schemas/RhymeDoneEvent"},{"$ref":"#/components/schemas/RhymeStreamErrorEvent"}],"description":"One JSON object per line."}},"application/json":{"schema":{"$ref":"#/components/schemas/RhymesResponse"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryValidationErrorResponse"}}},"description":"Unprocessable Content","headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"The requested resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"429":{"description":"Public API rate limit exceeded.","headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"The API could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/api/v1/spin":{"get":{"summary":"Spin","description":"A weighted-random hand of colorful words/phrases/idioms for the\nlanding view's Spin button. Weights come from the build-time spin_pool\ntable (see scripts/build_spin.py); sampling is Efraimidis-Spirakis\n(key = u^(1/w)) so every spin is a fresh draw without replacement,\nbiased toward the vivid end of the pool.","operationId":"getSpin","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpinResponse"}}},"headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"The requested resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"422":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"429":{"description":"Public API rate limit exceeded.","headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"The API could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/api/v1/completions":{"get":{"summary":"Completions","description":"Complete a single-word search prefix from the shipped vocabulary.","operationId":"getCompletions","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompletionsResponse"}}},"headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}}}},"422":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"The requested resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"429":{"description":"Public API rate limit exceeded.","headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"The API could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/api/v1/rlhf":{"get":{"summary":"Rlhf","description":"Pickem pairs. Mostly build-time-mined model-vs-engine disagreements\n(rlhf_pairs table): votes on those teach the fine-tune the most. The\nrest stay random so engine blind spots still collect human signal.","operationId":"getPickemPairs","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RlhfResponse"}}},"headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}}}},"422":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"The requested resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"429":{"description":"Public API rate limit exceeded.","headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"The API could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/api/v1/users/me":{"get":{"summary":"User State","description":"Return saved song lines for the current anonymous browser ID.","operationId":"getCurrentUser","parameters":[{"name":"userId","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserStateResponse"}}},"headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}}}},"422":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"The requested resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"429":{"description":"Public API rate limit exceeded.","headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"The API could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/api/v1/lines":{"get":{"summary":"Song Lines","description":"Retrieve existing song-line ideas matched to the current query.","operationId":"getSongLines","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":5,"title":"Limit"}},{"name":"spin","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Spin"}},{"name":"source","in":"query","required":false,"schema":{"type":"string","default":"typed","title":"Source"}},{"name":"randomness","in":"query","required":false,"schema":{"type":"number","default":0.2,"title":"Randomness"}},{"name":"userId","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongLinesResponse"}}},"headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}}}},"422":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"The requested resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"429":{"description":"Public API rate limit exceeded.","headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"The API could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/api/v1/lines/reaction":{"post":{"summary":"Song Line Reaction","description":"Add, update, or remove the current browser's reaction to a song line.","operationId":"reactToSongLine","parameters":[{"name":"userId","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongLineReactionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoteResponse"}}},"headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}}}},"422":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"The requested resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"429":{"description":"Public API rate limit exceeded.","headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"The API could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/api/v1/lines/save":{"post":{"summary":"Song Line Save","description":"Save or remove a song line for the current anonymous browser ID.","operationId":"saveSongLine","parameters":[{"name":"userId","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongLineSaveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoteResponse"}}},"headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}}}},"422":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"The requested resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"429":{"description":"Public API rate limit exceeded.","headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"The API could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/api/v1/vote":{"post":{"summary":"Vote","description":"Add, update, or remove a vote on one rhyme candidate or Pick 'Em pair.","operationId":"castVote","parameters":[{"name":"userId","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoteRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoteResponse"}}},"headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}}}},"422":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"The requested resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"429":{"description":"Public API rate limit exceeded.","headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"The API could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/api/v1/search-result-vote":{"get":{"summary":"Get Search Result Vote","description":"Return the current browser's vote on one complete search result.","operationId":"getSearchResultVote","parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","title":"Query"}},{"name":"userId","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResultVoteResponse"}}},"headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}}}},"422":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"The requested resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"429":{"description":"Public API rate limit exceeded.","headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"The API could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"post":{"summary":"Search Result Vote","description":"Add, update, or remove a vote on one complete search result.","operationId":"setSearchResultVote","parameters":[{"name":"userId","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResultVoteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResultVoteResponse"}}},"headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}}}},"422":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"The requested resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"429":{"description":"Public API rate limit exceeded.","headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"The API could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/api/v1/captcha":{"post":{"summary":"Captcha","description":"Score-only verification for the client's once-per-session GA user\nproperty (see web/src/lib/captcha.ts). Sync `def` on purpose: the\nGoogle roundtrip runs in the threadpool, off the event loop.","operationId":"assessCaptcha","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptchaRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptchaResponse"}}},"headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}}}},"422":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"The requested resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"429":{"description":"Public API rate limit exceeded.","headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"The API could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/api/v1/feedback":{"post":{"summary":"Feedback","description":"Store a bounded feedback message and optional reply address.","operationId":"sendFeedback","parameters":[{"name":"userId","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackResponse"}}},"headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}}}},"422":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"400":{"description":"The request is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"404":{"description":"The requested resource was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"429":{"description":"Public API rate limit exceeded.","headers":{"RateLimit-Policy":{"description":"Public fixed-window rate-limit policy.","schema":{"type":"string"}},"RateLimit":{"description":"Requests remaining and seconds until reset.","schema":{"type":"string"}},"RateLimit-Limit":{"schema":{"type":"integer"}},"RateLimit-Remaining":{"schema":{"type":"integer"}},"RateLimit-Reset":{"schema":{"type":"integer"}},"Songrhymes-API-Version":{"schema":{"type":"string"}},"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"The API could not complete the request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}}},"components":{"schemas":{"ApiQueryValidationError":{"properties":{"code":{"type":"string","enum":["too_long","too_many_words","invalid_characters","missing_vowel","repeated_characters"],"title":"Code"},"message":{"type":"string","title":"Message"},"resolution":{"type":"string","title":"Resolution"}},"type":"object","required":["code","message","resolution"],"title":"ApiQueryValidationError"},"BenchExample":{"properties":{"word":{"type":"string","title":"Word"},"responses":{"additionalProperties":{"type":"string"},"type":"object","title":"Responses"}},"type":"object","required":["word","responses"],"title":"BenchExample"},"BenchResponse":{"properties":{"generated":{"type":"string","title":"Generated"},"anchors":{"type":"integer","title":"Anchors"},"items_per_query":{"type":"integer","title":"Items Per Query"},"footnotes":{"items":{"type":"string"},"type":"array","title":"Footnotes","default":[]},"sources":{"additionalProperties":{"$ref":"#/components/schemas/BenchSourceMetrics"},"type":"object","title":"Sources"},"prompt":{"type":"string","title":"Prompt","default":""},"prompt_examples_count":{"type":"integer","title":"Prompt Examples Count","default":0},"examples":{"items":{"$ref":"#/components/schemas/BenchExample"},"type":"array","title":"Examples","default":[]}},"type":"object","required":["generated","anchors","items_per_query","sources"],"title":"BenchResponse"},"BenchSourceMetrics":{"properties":{"anchors_scored":{"type":"integer","title":"Anchors Scored"},"anchors_no_response":{"type":"integer","title":"Anchors No Response"},"anchors_excluded_infra":{"type":"integer","title":"Anchors Excluded Infra"},"combined":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Combined"},"combined_ci95":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Combined Ci95"},"recall":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Recall"},"recall_ci95":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Recall Ci95"},"diversity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Diversity"},"diversity_ci95":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Diversity Ci95"}},"type":"object","required":["anchors_scored","anchors_no_response","anchors_excluded_infra"],"title":"BenchSourceMetrics"},"CaptchaRequest":{"properties":{"token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},"type":"object","title":"CaptchaRequest"},"CaptchaResponse":{"properties":{"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score"}},"type":"object","title":"CaptchaResponse"},"Completion":{"properties":{"text":{"type":"string","title":"Text"}},"type":"object","required":["text"],"title":"Completion"},"CompletionsResponse":{"properties":{"hits":{"items":{"$ref":"#/components/schemas/Completion"},"type":"array","title":"Hits"}},"type":"object","required":["hits"],"title":"CompletionsResponse"},"FaqResponse":{"properties":{"markdown":{"type":"string","title":"Markdown"},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updatedat"},"custom":{"type":"boolean","title":"Custom"}},"type":"object","required":["markdown","custom"],"title":"FaqResponse"},"FeedbackRequest":{"properties":{"message":{"type":"string","title":"Message"},"page":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"captchaToken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Captchatoken"}},"type":"object","required":["message"],"title":"FeedbackRequest"},"FeedbackResponse":{"properties":{"ok":{"type":"boolean","title":"Ok"}},"type":"object","required":["ok"],"title":"FeedbackResponse"},"FragmentExample":{"properties":{"text":{"type":"string","title":"Text"},"source":{"type":"string","enum":["song_line","generated"],"title":"Source"}},"type":"object","required":["text","source"],"title":"FragmentExample"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Hit":{"properties":{"text":{"type":"string","title":"Text"},"type":{"type":"string","enum":["rhyme","rhyme-l2"],"title":"Type"},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"perfectRhyme":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Perfectrhyme"},"rhymeTier":{"anyOf":[{"type":"string","enum":["perfect","family","additive","subtractive","assonance","consonance","identity","none"]},{"type":"null"}],"title":"Rhymetier"},"rhymeDepth":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rhymedepth"},"rhymeRichness":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rhymerichness"},"frequency":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Frequency"},"exploratory":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Exploratory"},"unusual":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Unusual"},"approximate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Approximate"},"rhymeHintKind":{"anyOf":[{"type":"string","enum":["sung","loose"]},{"type":"null"}],"title":"Rhymehintkind"},"rhymeHint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rhymehint"},"fragment":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Fragment"},"fragmentExamples":{"anyOf":[{"items":{"$ref":"#/components/schemas/FragmentExample"},"type":"array"},{"type":"null"}],"title":"Fragmentexamples"},"sungPronunciation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sungpronunciation"},"vote":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vote"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"sourceId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sourceid"},"explanations":{"anyOf":[{"items":{"$ref":"#/components/schemas/HitExplanation"},"type":"array"},{"type":"null"}],"title":"Explanations"}},"type":"object","required":["text","type"],"title":"Hit"},"HitExplanation":{"properties":{"layer":{"type":"string","enum":["retrieval","model","candidate","selection","ranking","presentation"],"title":"Layer"},"message":{"type":"string","title":"Message"}},"type":"object","required":["layer","message"],"title":"HitExplanation"},"MetaResponse":{"properties":{"version":{"type":"string","title":"Version"},"linesEnabled":{"type":"boolean","title":"Linesenabled"}},"type":"object","required":["version","linesEnabled"],"title":"MetaResponse"},"QueryPronunciation":{"properties":{"soundPattern":{"type":"string","title":"Soundpattern"},"ipa":{"type":"string","title":"Ipa"},"selected":{"type":"boolean","title":"Selected"}},"type":"object","required":["soundPattern","ipa","selected"],"title":"QueryPronunciation"},"QueryValidationErrorResponse":{"properties":{"detail":{"type":"string","title":"Detail"},"error":{"$ref":"#/components/schemas/ApiQueryValidationError"}},"type":"object","required":["detail","error"],"title":"QueryValidationErrorResponse"},"RelatedResponse":{"properties":{"query":{"type":"string","title":"Query"},"related":{"items":{"$ref":"#/components/schemas/RelatedWord"},"type":"array","title":"Related"}},"type":"object","required":["query","related"],"title":"RelatedResponse"},"RelatedWord":{"properties":{"text":{"type":"string","title":"Text"},"slot":{"type":"string","enum":["feeling","object","action","place","same","phrase","whole"],"title":"Slot"},"kind":{"type":"string","enum":["common","own","same","phrase","whole"],"title":"Kind"},"vote":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vote"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"}},"type":"object","required":["text","slot","kind"],"title":"RelatedWord"},"RhymesResponse":{"properties":{"isTop":{"type":"boolean","title":"Istop"},"queryIpa":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Queryipa"},"querySoundPattern":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Querysoundpattern"},"queryPronunciations":{"anyOf":[{"items":{"$ref":"#/components/schemas/QueryPronunciation"},"type":"array"},{"type":"null"}],"title":"Querypronunciations"},"hits":{"items":{"$ref":"#/components/schemas/Hit"},"type":"array","title":"Hits"}},"type":"object","required":["isTop","hits"],"title":"RhymesResponse"},"RlhfPair":{"properties":{"anchor":{"type":"string","title":"Anchor"},"alt1":{"type":"string","title":"Alt1"},"alt2":{"type":"string","title":"Alt2"}},"type":"object","required":["anchor","alt1","alt2"],"title":"RlhfPair"},"RlhfResponse":{"properties":{"hits":{"items":{"$ref":"#/components/schemas/RlhfPair"},"type":"array","title":"Hits"}},"type":"object","required":["hits"],"title":"RlhfResponse"},"SavedSongLine":{"properties":{"id":{"type":"string","title":"Id"},"text":{"type":"string","title":"Text"},"score":{"type":"number","title":"Score"},"exactMatch":{"type":"boolean","title":"Exactmatch","default":false},"evaluation":{"anyOf":[{"type":"string","enum":["good","bad"]},{"type":"null"}],"title":"Evaluation"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"query":{"type":"string","title":"Query"}},"type":"object","required":["id","text","score","query"],"title":"SavedSongLine"},"SearchResultVoteRequest":{"properties":{"query":{"type":"string","maxLength":200,"minLength":1,"title":"Query"},"evaluation":{"anyOf":[{"type":"string","enum":["good","bad"]},{"type":"null"}],"title":"Evaluation"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"results":{"items":{"type":"string","maxLength":500,"minLength":1},"type":"array","maxItems":200,"minItems":1,"title":"Results"},"captchaToken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Captchatoken"}},"type":"object","required":["query","results"],"title":"SearchResultVoteRequest"},"SearchResultVoteResponse":{"properties":{"evaluation":{"anyOf":[{"type":"string","enum":["good","bad"]},{"type":"null"}],"title":"Evaluation"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"results":{"items":{"type":"string"},"type":"array","title":"Results"}},"type":"object","title":"SearchResultVoteResponse"},"SongLine":{"properties":{"id":{"type":"string","title":"Id"},"text":{"type":"string","title":"Text"},"score":{"type":"number","title":"Score"},"exactMatch":{"type":"boolean","title":"Exactmatch","default":false},"evaluation":{"anyOf":[{"type":"string","enum":["good","bad"]},{"type":"null"}],"title":"Evaluation"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"}},"type":"object","required":["id","text","score"],"title":"SongLine"},"SongLineReactionRequest":{"properties":{"lineId":{"type":"string","title":"Lineid"},"query":{"type":"string","title":"Query"},"evaluation":{"anyOf":[{"type":"string","enum":["good","bad"]},{"type":"null"}],"title":"Evaluation"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"}},"type":"object","required":["lineId","query"],"title":"SongLineReactionRequest"},"SongLineSaveRequest":{"properties":{"lineId":{"type":"string","title":"Lineid"},"query":{"type":"string","title":"Query"},"saved":{"type":"boolean","title":"Saved"}},"type":"object","required":["lineId","query","saved"],"title":"SongLineSaveRequest"},"SongLinesResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"buildId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buildid"},"hits":{"items":{"$ref":"#/components/schemas/SongLine"},"type":"array","title":"Hits"}},"type":"object","required":["enabled","hits"],"title":"SongLinesResponse"},"SpinResponse":{"properties":{"hits":{"items":{"$ref":"#/components/schemas/Hit"},"type":"array","title":"Hits"}},"type":"object","required":["hits"],"title":"SpinResponse"},"UserSongLinesState":{"properties":{"saved":{"items":{"$ref":"#/components/schemas/SavedSongLine"},"type":"array","title":"Saved"}},"type":"object","required":["saved"],"title":"UserSongLinesState"},"UserStateResponse":{"properties":{"songLines":{"$ref":"#/components/schemas/UserSongLinesState"}},"type":"object","required":["songLines"],"title":"UserStateResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VoteRequest":{"properties":{"anchor":{"type":"string","title":"Anchor"},"alt1":{"type":"string","title":"Alt1"},"alt2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alt2"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"remove":{"anyOf":[{"type":"string","enum":["all","last"]},{"type":"null"}],"title":"Remove"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"captchaToken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Captchatoken"},"sourceId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sourceid"}},"type":"object","required":["anchor","alt1"],"title":"VoteRequest"},"VoteResponse":{"properties":{"ok":{"type":"boolean","title":"Ok"}},"type":"object","required":["ok"],"title":"VoteResponse"},"ApiError":{"type":"object","required":["code","message","resolution"],"properties":{"code":{"type":"string","example":"request_validation_failed"},"message":{"type":"string"},"resolution":{"type":"string"}}},"ApiErrorResponse":{"type":"object","required":["detail","error"],"properties":{"detail":{},"error":{"$ref":"#/components/schemas/ApiError"}}},"RhymeSnapshotEvent":{"type":"object","required":["type","stage","isTop","hits"],"properties":{"stage":{"type":"string"},"hits":{"type":"array","items":{"$ref":"#/components/schemas/Hit"}},"type":{"type":"string","enum":["snapshot"]},"isTop":{"type":"boolean"},"queryIpa":{"type":["string","null"]},"querySoundPattern":{"type":["string","null"]},"queryPronunciations":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/QueryPronunciation"}},{"type":"null"}]}}},"RhymeAppendEvent":{"type":"object","required":["type","stage","hits"],"properties":{"stage":{"type":"string"},"hits":{"type":"array","items":{"$ref":"#/components/schemas/Hit"}},"type":{"type":"string","enum":["append"]}}},"RhymeDoneEvent":{"type":"object","required":["type","stage","isTop","hits","elapsedMs"],"properties":{"stage":{"type":"string"},"hits":{"type":"array","items":{"$ref":"#/components/schemas/Hit"}},"type":{"type":"string","enum":["done"]},"isTop":{"type":"boolean"},"queryIpa":{"type":["string","null"]},"querySoundPattern":{"type":["string","null"]},"queryPronunciations":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/QueryPronunciation"}},{"type":"null"}]},"elapsedMs":{"type":"number"}}},"RhymeStreamErrorEvent":{"type":"object","required":["type","message"],"properties":{"type":{"type":"string","enum":["error"]},"message":{"type":"string"}}}}}}