{"openapi":"3.1.0","info":{"title":"SAYA public site search","version":"1.0.0"},"servers":[{"url":"/"}],"paths":{"/search/query":{"get":{"operationId":"saya_search_site","summary":"Find public SAYA pages and citable passages","parameters":[{"in":"query","name":"q","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"description":"Short keywords about the SAYA teleprompter, plans, films or support."}},{"in":"query","name":"locale","required":false,"schema":{"default":"en","description":"Preferred language. Latvian falls back to English when no Latvian records match.","type":"string","enum":["en","lv"]}},{"in":"query","name":"category","required":false,"schema":{"description":"Restrict results to one content type.","type":"string","enum":["product","help","films","policies"]}},{"in":"query","name":"page","required":false,"schema":{"default":0,"description":"Zero-based page number. Follow nextPage to continue.","type":"integer","minimum":0,"maximum":999}}],"responses":{"200":{"description":"Matching pages and sections","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"sources":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"path":{"type":"string"},"url":{"type":"string","format":"uri"},"excerpt":{"type":"string"},"category":{"type":"string","enum":["product","help","films","policies"]},"locale":{"type":"string","enum":["en","lv"]}},"required":["title","path","url","excerpt","category","locale"],"additionalProperties":false}},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"nextPage":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"resultLocale":{"type":"string","enum":["en","lv"]},"categoryCounts":{"type":"object","propertyNames":{"type":"string","enum":["product","help","films","policies"]},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["sources","total","page","nextPage","resultLocale","categoryCounts"],"additionalProperties":false}}}},"400":{"description":"Invalid search parameters"},"503":{"description":"Search temporarily unavailable"}}}}}}