{"openapi":"3.0.3","tags":[{"name":"Internal","description":"Service-to-service callbacks from the AI Search event handlers. Requires the platform token."}],"paths":{"/migrations/errors":{"post":{"tags":["Internal"],"summary":"Report migration item failures","parameters":[],"deprecated":false,"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"orgId":{"type":"string","maxLength":63,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"profileId":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"generationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"tallyKey":{"type":"string","minLength":1},"failedItems":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["orgId","profileId","generationId","tallyKey","failedItems"],"additionalProperties":false}}}},"responses":{"202":{"description":"Migration error count recorded","content":{}},"204":{"description":"Migration error report absorbed as a no-op","content":{}},"400":{"description":"Invalid migration error report","content":{}},"401":{"description":"Missing or invalid authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"403":{"description":"Invalid permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}}}}},"/migrations/complete":{"post":{"tags":["Internal"],"summary":"Complete a migration once its pipeline signal has passed all queued work","parameters":[],"deprecated":false,"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"orgId":{"type":"string","maxLength":63,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"profileId":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"type":{"type":"string","const":"pipeline-signal"},"vectorStoreId":{"type":"string","minLength":1,"maxLength":226,"pattern":"^[A-Za-z0-9._-]+$"},"payload":{"type":"object","properties":{"generationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"functionalHash":{"type":"string","pattern":"^fh1:[a-f0-9]{64}$"}},"required":["generationId","functionalHash"],"additionalProperties":false},"action":{"type":"string","const":"migration-complete"}},"required":["orgId","profileId","type","vectorStoreId","payload","action"],"additionalProperties":false}}}},"responses":{"200":{"description":"Migration completion applied or absorbed as a no-op","content":{}},"400":{"description":"Invalid migration completion signal","content":{}},"401":{"description":"Missing or invalid authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"403":{"description":"Invalid permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}}}}},"/projections/skipped":{"post":{"tags":["Internal"],"summary":"Report a record a handler acknowledged without indexing","parameters":[],"deprecated":false,"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"orgId":{"type":"string","maxLength":63,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"profileId":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"generationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"recordKey":{"type":"string","pattern":"^[a-f0-9]{64}$"},"skippedAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"},"reason":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"projection-value"},"alias":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"storage":{"type":"string","enum":["string","int","uint","float","bool","datetime","string[]","int[]","uint[]","float[]","other"]},"received":{"type":"string","enum":["string","boolean","integer","negative-integer","unsafe-integer","fraction","non-finite","array","object","null"]},"providerStatus":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["kind","alias","storage","received"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"projection-expression"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"record-content"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"drained"},"cutoff":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"}},"required":["kind","cutoff"],"additionalProperties":false}],"type":"object"}},"required":["orgId","profileId","generationId","recordKey","skippedAt","reason"],"additionalProperties":false}}}},"responses":{"202":{"description":"Skipped record counted in the generation's coverage summary","content":{}},"204":{"description":"Skip already counted or its generation is no longer live","content":{}},"400":{"description":"Invalid skip report","content":{}},"401":{"description":"Missing or invalid authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"403":{"description":"Invalid permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}}}}},"/reconciliations/complete":{"post":{"tags":["Internal"],"summary":"Record one completed embedding branch of a reconciliation run","parameters":[],"deprecated":false,"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"orgId":{"type":"string","maxLength":63,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"profileId":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"reconciliationId":{"type":"string","minLength":1},"recordUri":{"type":"string","minLength":1},"dispatchId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"namespaces":{"type":"array","items":{"type":"string","minLength":1,"maxLength":226,"pattern":"^[A-Za-z0-9._-]+$"}},"completedNamespace":{"type":"string","minLength":1,"maxLength":226,"pattern":"^[A-Za-z0-9._-]+$"}},"required":["orgId","profileId","reconciliationId","recordUri","dispatchId","namespaces"],"additionalProperties":false}}}},"responses":{"200":{"description":"Reconciliation branch completion recorded","content":{}},"400":{"description":"Invalid reconciliation completion","content":{}},"401":{"description":"Missing or invalid authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"403":{"description":"Invalid permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}}}}},"/membership/references":{"post":{"tags":["Membership"],"summary":"Add a search profile membership reference","parameters":[],"deprecated":false,"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"recordUri":{"type":"string","minLength":1},"profileId":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}},"required":["recordUri","profileId"],"additionalProperties":false}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchProfileMembershipResult"}}}},"400":{"description":"Invalid membership change","content":{}},"401":{"description":"Missing or invalid authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"403":{"description":"Invalid permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"404":{"description":"Native Object record not found","content":{}}}}},"/membership/references/{profileId}":{"delete":{"tags":["Membership"],"summary":"Remove a search profile membership reference","parameters":[{"name":"recordUri","in":"query","required":true,"schema":{"type":"string"}},{"name":"profileId","in":"path","required":true,"schema":{"type":"string"}}],"deprecated":false,"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchProfileMembershipResult"}}}},"400":{"description":"Invalid membership change","content":{}},"401":{"description":"Missing or invalid authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"403":{"description":"Invalid permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"404":{"description":"Native Object record not found","content":{}}}}},"/membership/references/query":{"post":{"tags":["Membership"],"summary":"Read the search profile membership of a record","parameters":[],"deprecated":false,"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"recordUri":{"type":"string","minLength":1}},"required":["recordUri"],"additionalProperties":false}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchProfileMembershipResult"}}}},"400":{"description":"Invalid membership query","content":{}},"401":{"description":"Missing or invalid authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"403":{"description":"Invalid permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}}}}},"/organizations":{"get":{"tags":["Organizations"],"summary":"List organizations with search profiles","parameters":[{"name":"pageToken","in":"query","required":false,"schema":{"type":"string"}}],"deprecated":false,"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgsWithProfiles"}}}},"401":{"description":"Missing or invalid authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"403":{"description":"Invalid permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}}}}},"/query":{"post":{"tags":["Search"],"summary":"Query a search profile","parameters":[],"deprecated":false,"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"indexId":{"type":"string","minLength":1},"query":{"type":"string","minLength":1},"topK":{"type":"integer","minimum":1,"maximum":100}},"required":["profileId","query"],"additionalProperties":false}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"}}}},"400":{"description":"Invalid search query","content":{}},"401":{"description":"Missing or invalid authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"403":{"description":"Invalid permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"404":{"description":"Search profile or index preset not found","content":{}},"409":{"description":"Search profile is not indexed yet","content":{}}}}},"/profiles":{"get":{"tags":["Profiles"],"summary":"List search profiles","parameters":[],"deprecated":false,"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/SearchProfileListItem"}},"nextPageToken":{"type":"string"},"totalCount":{"type":"integer"}},"required":["items"]}}}},"400":{"description":"Invalid organization or authorization context","content":{}},"401":{"description":"Missing or invalid authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"403":{"description":"Invalid permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}}}},"post":{"tags":["Profiles"],"summary":"Create search profile","parameters":[],"deprecated":false,"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"name":{"type":"string","minLength":1},"description":{"type":"string"},"source":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"native-object"},"objectType":{"type":"string","pattern":"^[a-z0-9_-]+"},"query":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["kind","objectType"],"additionalProperties":false}],"type":"object"},"template":{"type":"object","properties":{"language":{"type":"string","const":"handlebars"},"header":{"type":"string"},"body":{"type":"string","minLength":1}},"required":["language","body"],"additionalProperties":false},"chunking":{"type":"object","properties":{"splitterId":{"type":"string","enum":["plain-text-window"]},"size":{"default":1600,"type":"integer","minimum":100,"maximum":128000},"overlap":{"default":10,"type":"integer","minimum":0,"maximum":50},"preserveBoundaries":{"default":true,"type":"boolean"}},"required":["splitterId","size","overlap","preserveBoundaries"],"additionalProperties":false},"embedding":{"type":"object","properties":{"model":{"default":"voyage-4","type":"string","enum":["voyage-4-lite","voyage-4","voyage-4-large"]},"dimensions":{"default":1024,"anyOf":[{"type":"number","const":512},{"type":"number","const":1024},{"type":"number","const":2048}]}},"required":["model","dimensions"],"additionalProperties":false},"projections":{"default":[],"type":"array","items":{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"language":{"type":"string","enum":["jsonpath","jsonata"]},"expression":{"type":"string","minLength":1},"type":{"type":"string","enum":["string","number","integer","boolean","datetime","string[]","number[]","integer[]"]},"retired":{"type":"boolean"}},"required":["alias","language","expression","type"],"additionalProperties":false}},"indexes":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":2,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"name":{"type":"string","minLength":1},"description":{"type":"string"},"mode":{"default":"hybrid","type":"string","enum":["semantic","hybrid"]},"topK":{"default":10,"type":"integer","minimum":1,"maximum":100},"oneResultPerDocument":{"default":true,"type":"boolean"},"rerank":{"default":{"enabled":false,"scope":"document"},"type":"object","properties":{"enabled":{"default":false,"type":"boolean"},"presetId":{"type":"string","minLength":1},"topN":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"scope":{"default":"document","type":"string","enum":["document","chunk"]}},"required":["enabled","scope"],"additionalProperties":false},"filters":{"default":[],"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","const":"static"},"field":{"type":"string","minLength":1},"op":{"type":"string","enum":["eq","not-eq","lt","lte","gt","gte","in","not-in","contains","contains-any","glob","regex"]},"value":{}},"required":["kind","field","op","value"],"additionalProperties":false}}},"required":["id","name","mode","topK","oneResultPerDocument","rerank","filters"],"additionalProperties":false}}},"required":["id","name","source","template","chunking","embedding","projections","indexes"],"additionalProperties":false}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchProfile"}}}},"400":{"description":"Invalid search profile","content":{}},"401":{"description":"Missing or invalid authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"403":{"description":"Invalid permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"409":{"description":"Search profile or index state conflicts with persisted data","content":{}}}}},"/[\\$]page/profiles":{"post":{"tags":["Profiles"],"summary":"Page search profiles","parameters":[],"deprecated":false,"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchProfileListQuery"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/SearchProfileListItem"}},"nextPageToken":{"type":"string"},"totalCount":{"type":"integer"}},"required":["items"]}}}},"400":{"description":"Invalid search provided","content":{}},"401":{"description":"Missing or invalid authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"403":{"description":"Invalid permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}}}}},"/profiles/{profileId}":{"get":{"tags":["Profiles"],"summary":"Get search profile","parameters":[{"name":"profileId","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}}],"deprecated":false,"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchProfile"}}}},"400":{"description":"Invalid organization or authorization context","content":{}},"401":{"description":"Missing or invalid authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"403":{"description":"Invalid permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"404":{"description":"Search profile not found","content":{}}}},"put":{"tags":["Profiles"],"summary":"Commit a search profile","parameters":[{"name":"x-if-hash-match","in":"header","required":false,"schema":{"type":"string"}},{"name":"rebuildMode","in":"query","required":false,"schema":{"type":"string","enum":["auto","full","bypass"]}},{"name":"profileId","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}}],"deprecated":false,"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"name":{"type":"string","minLength":1},"description":{"type":"string"},"source":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"native-object"},"objectType":{"type":"string","pattern":"^[a-z0-9_-]+"},"query":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["kind","objectType"],"additionalProperties":false}],"type":"object"},"template":{"type":"object","properties":{"language":{"type":"string","const":"handlebars"},"header":{"type":"string"},"body":{"type":"string","minLength":1}},"required":["language","body"],"additionalProperties":false},"chunking":{"type":"object","properties":{"splitterId":{"type":"string","enum":["plain-text-window"]},"size":{"default":1600,"type":"integer","minimum":100,"maximum":128000},"overlap":{"default":10,"type":"integer","minimum":0,"maximum":50},"preserveBoundaries":{"default":true,"type":"boolean"}},"required":["splitterId","size","overlap","preserveBoundaries"],"additionalProperties":false},"embedding":{"type":"object","properties":{"model":{"default":"voyage-4","type":"string","enum":["voyage-4-lite","voyage-4","voyage-4-large"]},"dimensions":{"default":1024,"anyOf":[{"type":"number","const":512},{"type":"number","const":1024},{"type":"number","const":2048}]}},"required":["model","dimensions"],"additionalProperties":false},"projections":{"default":[],"type":"array","items":{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"language":{"type":"string","enum":["jsonpath","jsonata"]},"expression":{"type":"string","minLength":1},"type":{"type":"string","enum":["string","number","integer","boolean","datetime","string[]","number[]","integer[]"]},"retired":{"type":"boolean"}},"required":["alias","language","expression","type"],"additionalProperties":false}},"indexes":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":2,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"name":{"type":"string","minLength":1},"description":{"type":"string"},"mode":{"default":"hybrid","type":"string","enum":["semantic","hybrid"]},"topK":{"default":10,"type":"integer","minimum":1,"maximum":100},"oneResultPerDocument":{"default":true,"type":"boolean"},"rerank":{"default":{"enabled":false,"scope":"document"},"type":"object","properties":{"enabled":{"default":false,"type":"boolean"},"presetId":{"type":"string","minLength":1},"topN":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"scope":{"default":"document","type":"string","enum":["document","chunk"]}},"required":["enabled","scope"],"additionalProperties":false},"filters":{"default":[],"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","const":"static"},"field":{"type":"string","minLength":1},"op":{"type":"string","enum":["eq","not-eq","lt","lte","gt","gte","in","not-in","contains","contains-any","glob","regex"]},"value":{}},"required":["kind","field","op","value"],"additionalProperties":false}}},"required":["id","name","mode","topK","oneResultPerDocument","rerank","filters"],"additionalProperties":false}}},"required":["id","name","source","template","chunking","embedding","projections","indexes"],"additionalProperties":false}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchProfile"}}}},"400":{"description":"Invalid search profile or rebuild mode","content":{}},"401":{"description":"Missing or invalid authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"403":{"description":"Invalid permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"404":{"description":"Search profile not found","content":{}},"409":{"description":"Commit lost a concurrent state transition","content":{}},"412":{"description":"Profile hash no longer matches","content":{}},"422":{"description":"Object type is immutable or bypass is not applicable to this change","content":{}}}},"delete":{"tags":["Profiles"],"summary":"Delete a search profile","parameters":[{"name":"profileId","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}}],"deprecated":false,"responses":{"204":{"description":"Search profile deleted","content":{}},"400":{"description":"Invalid organization or authorization context","content":{}},"401":{"description":"Missing or invalid authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"403":{"description":"Invalid permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"409":{"description":"Delete lost a concurrent state transition","content":{}}}}},"/profiles/{profileId}/index-state":{"get":{"tags":["Profiles"],"summary":"Get search profile index state","parameters":[{"name":"profileId","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}}],"deprecated":false,"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchIndexState"}}}},"400":{"description":"Invalid organization or authorization context","content":{}},"401":{"description":"Missing or invalid authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"403":{"description":"Invalid permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"404":{"description":"Search index state not found","content":{}}}}},"/profiles/{profileId}/schema":{"get":{"tags":["Profiles"],"summary":"Get the physical projection schema of each live search index","parameters":[{"name":"profileId","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}}],"deprecated":false,"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileSchemaView"}}}},"400":{"description":"Invalid organization or authorization context","content":{}},"401":{"description":"Missing or invalid authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"403":{"description":"Invalid permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"404":{"description":"Search profile not found","content":{}}}}},"/profiles/{profileId}/progress":{"get":{"tags":["Profiles"],"summary":"Get search profile progress","parameters":[{"name":"profileId","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}}],"deprecated":false,"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileProgress"}}}},"400":{"description":"Invalid organization or authorization context","content":{}},"401":{"description":"Missing or invalid authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"403":{"description":"Invalid permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"404":{"description":"Search profile not found","content":{}}}}},"/profiles/{profileId}/reconcile":{"post":{"tags":["Profiles"],"summary":"Accept a background repair; poll profile progress for record counts","parameters":[{"name":"profileId","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}}],"deprecated":false,"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReconcileAccepted"}}}},"400":{"description":"Invalid organization or authorization context","content":{}},"401":{"description":"Missing or invalid authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"403":{"description":"Invalid permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"404":{"description":"Search profile not found","content":{}},"409":{"description":"Search profile has no provisioned index state","content":{}}}}},"/profiles/{profileId}/drain":{"post":{"tags":["Profiles"],"summary":"Drop this profile's work published before now until the drain expires; repair afterward","parameters":[{"name":"profileId","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}}],"deprecated":false,"responses":{"202":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileDrainResponse"}}}},"400":{"description":"Invalid organization or authorization context","content":{}},"401":{"description":"Missing or invalid authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"403":{"description":"Invalid permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"404":{"description":"Search profile not found","content":{}}}},"get":{"tags":["Profiles"],"summary":"Get the active profile drain cutoff and expiry","parameters":[{"name":"profileId","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}}],"deprecated":false,"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileDrain"}}}},"204":{"description":"No drain is active","content":{}},"400":{"description":"Invalid organization or authorization context","content":{}},"401":{"description":"Missing or invalid authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"403":{"description":"Invalid permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"404":{"description":"Search profile not found","content":{}}}}},"/profiles/{profileId}/reconcile/cancel":{"post":{"tags":["Profiles"],"summary":"Stop a repair scan that has not finished queuing records","parameters":[{"name":"profileId","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}}],"deprecated":false,"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reconciliationId":{"type":"string","minLength":1}},"required":["reconciliationId"],"additionalProperties":false}}}},"responses":{"204":{"description":"The named repair scan is no longer pending","content":{}},"400":{"description":"Invalid repair cancellation","content":{}},"401":{"description":"Missing or invalid authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"403":{"description":"Invalid permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"404":{"description":"Search profile not found","content":{}},"409":{"description":"Cancellation lost a concurrent state transition","content":{}}}}},"/profiles/{profileId}/migrate":{"post":{"tags":["Profiles"],"summary":"Rebuild a search profile into a new index generation","parameters":[{"name":"profileId","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}}],"deprecated":false,"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MigrateResult"}}}},"400":{"description":"Invalid organization or authorization context","content":{}},"401":{"description":"Missing or invalid authorization header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"403":{"description":"Invalid permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/$ErrorResponse"}}}},"404":{"description":"Search profile not found","content":{}},"409":{"description":"Search profile has a conflicting index state change","content":{}}}}}},"security":[{"jwt":[]}],"components":{"schemas":{"$ListQuery":{"type":"object","properties":{"pageToken":{"type":"string","minLength":1},"orderBy":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"pageSize":{"type":"integer","minimum":0,"maximum":9007199254740991},"includeTotal":{"type":"boolean"},"filterMode":{"anyOf":[{"type":"string","const":"AND"},{"type":"string","const":"OR"}]}},"additionalProperties":false},"$ErrorResponse":{"type":"object","properties":{"code":{"type":["string","number"]},"message":{"type":"string"},"errors":{"type":"array","items":{}}},"required":["code","message"],"additionalProperties":false},"SearchProfileMembershipResult":{"type":"object","properties":{"orgId":{"type":"string","maxLength":63,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"recordUri":{"type":"string","minLength":1},"profileIds":{"type":"array","items":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}}},"required":["orgId","recordUri","profileIds"],"additionalProperties":false},"OrgsWithProfiles":{"type":"object","properties":{"orgs":{"type":"array","items":{"type":"string","maxLength":63,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}},"nextPageToken":{"type":"string","minLength":1}},"required":["orgs"],"additionalProperties":false},"SearchProfile":{"type":"object","properties":{"id":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"name":{"type":"string","minLength":1},"description":{"type":"string"},"source":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"native-object"},"objectType":{"type":"string","pattern":"^[a-z0-9_-]+"},"query":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["kind","objectType"],"additionalProperties":false}],"type":"object"},"template":{"type":"object","properties":{"language":{"type":"string","const":"handlebars"},"header":{"type":"string"},"body":{"type":"string","minLength":1}},"required":["language","body"],"additionalProperties":false},"chunking":{"type":"object","properties":{"splitterId":{"type":"string","enum":["plain-text-window"]},"size":{"default":1600,"type":"integer","minimum":100,"maximum":128000},"overlap":{"default":10,"type":"integer","minimum":0,"maximum":50},"preserveBoundaries":{"default":true,"type":"boolean"}},"required":["splitterId","size","overlap","preserveBoundaries"],"additionalProperties":false},"embedding":{"type":"object","properties":{"model":{"default":"voyage-4","type":"string","enum":["voyage-4-lite","voyage-4","voyage-4-large"]},"dimensions":{"default":1024,"anyOf":[{"type":"number","const":512},{"type":"number","const":1024},{"type":"number","const":2048}]}},"required":["model","dimensions"],"additionalProperties":false},"projections":{"default":[],"type":"array","items":{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"language":{"type":"string","enum":["jsonpath","jsonata"]},"expression":{"type":"string","minLength":1},"type":{"type":"string","enum":["string","number","integer","boolean","datetime","string[]","number[]","integer[]"]},"retired":{"type":"boolean"}},"required":["alias","language","expression","type"],"additionalProperties":false}},"indexes":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":2,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"name":{"type":"string","minLength":1},"description":{"type":"string"},"mode":{"default":"hybrid","type":"string","enum":["semantic","hybrid"]},"topK":{"default":10,"type":"integer","minimum":1,"maximum":100},"oneResultPerDocument":{"default":true,"type":"boolean"},"rerank":{"default":{"enabled":false,"scope":"document"},"type":"object","properties":{"enabled":{"default":false,"type":"boolean"},"presetId":{"type":"string","minLength":1},"topN":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"scope":{"default":"document","type":"string","enum":["document","chunk"]}},"required":["enabled","scope"],"additionalProperties":false},"filters":{"default":[],"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","const":"static"},"field":{"type":"string","minLength":1},"op":{"type":"string","enum":["eq","not-eq","lt","lte","gt","gte","in","not-in","contains","contains-any","glob","regex"]},"value":{}},"required":["kind","field","op","value"],"additionalProperties":false}}},"required":["id","name","mode","topK","oneResultPerDocument","rerank","filters"],"additionalProperties":false}},"_metaData":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"},"updatedAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"},"hash":{"type":"string"}},"required":["id","createdAt"],"additionalProperties":false}},"required":["id","name","source","template","chunking","embedding","projections","indexes","_metaData"],"additionalProperties":false},"SearchResponse":{"type":"object","properties":{"profileId":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"indexId":{"type":"string","minLength":1},"generationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"items":{"type":"array","items":{"type":"object","properties":{"recordUri":{"type":"string","minLength":1},"sourceHash":{"type":"string","pattern":"^[0-9a-f]{64}$"},"documentId":{"type":"string","minLength":1},"chunkId":{"type":"string","minLength":1},"score":{"type":"number"},"semanticRank":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"keywordRank":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"rerankScore":{"type":"number"},"content":{"type":"string"},"projections":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"type":"string"}},{"type":"array","items":{"type":"number"}}]}}},"required":["recordUri","documentId","score","content","projections"],"additionalProperties":false}}},"required":["profileId","generationId","items"],"additionalProperties":false},"SearchProfileListItem":{"type":"object","properties":{"id":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"name":{"type":"string","minLength":1},"description":{"type":"string"},"source":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"native-object"},"objectType":{"type":"string","pattern":"^[a-z0-9_-]+"},"query":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["kind","objectType"],"additionalProperties":false}],"type":"object"},"template":{"type":"object","properties":{"language":{"type":"string","const":"handlebars"},"header":{"type":"string"},"body":{"type":"string","minLength":1}},"required":["language","body"],"additionalProperties":false},"chunking":{"type":"object","properties":{"splitterId":{"type":"string","enum":["plain-text-window"]},"size":{"default":1600,"type":"integer","minimum":100,"maximum":128000},"overlap":{"default":10,"type":"integer","minimum":0,"maximum":50},"preserveBoundaries":{"default":true,"type":"boolean"}},"required":["splitterId","size","overlap","preserveBoundaries"],"additionalProperties":false},"embedding":{"type":"object","properties":{"model":{"default":"voyage-4","type":"string","enum":["voyage-4-lite","voyage-4","voyage-4-large"]},"dimensions":{"default":1024,"anyOf":[{"type":"number","const":512},{"type":"number","const":1024},{"type":"number","const":2048}]}},"required":["model","dimensions"],"additionalProperties":false},"projections":{"default":[],"type":"array","items":{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"language":{"type":"string","enum":["jsonpath","jsonata"]},"expression":{"type":"string","minLength":1},"type":{"type":"string","enum":["string","number","integer","boolean","datetime","string[]","number[]","integer[]"]},"retired":{"type":"boolean"}},"required":["alias","language","expression","type"],"additionalProperties":false}},"indexes":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":2,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"name":{"type":"string","minLength":1},"description":{"type":"string"},"mode":{"default":"hybrid","type":"string","enum":["semantic","hybrid"]},"topK":{"default":10,"type":"integer","minimum":1,"maximum":100},"oneResultPerDocument":{"default":true,"type":"boolean"},"rerank":{"default":{"enabled":false,"scope":"document"},"type":"object","properties":{"enabled":{"default":false,"type":"boolean"},"presetId":{"type":"string","minLength":1},"topN":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"scope":{"default":"document","type":"string","enum":["document","chunk"]}},"required":["enabled","scope"],"additionalProperties":false},"filters":{"default":[],"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","const":"static"},"field":{"type":"string","minLength":1},"op":{"type":"string","enum":["eq","not-eq","lt","lte","gt","gte","in","not-in","contains","contains-any","glob","regex"]},"value":{}},"required":["kind","field","op","value"],"additionalProperties":false}}},"required":["id","name","mode","topK","oneResultPerDocument","rerank","filters"],"additionalProperties":false}},"_metaData":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"},"updatedAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"},"hash":{"type":"string"}},"required":["id","createdAt"],"additionalProperties":false},"indexStatus":{"description":"Present when the request sets includeIndexStatus=true","type":"string","enum":["indexing","ready","not-indexed"]}},"required":["id","name","source","template","chunking","embedding","projections","indexes","_metaData"],"additionalProperties":false},"SearchProfileListQuery":{"type":"object","properties":{"pageToken":{"type":"string","minLength":1},"orderBy":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"fields":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"pageSize":{"type":"integer","minimum":0,"maximum":9007199254740991},"includeTotal":{"type":"boolean"},"filterMode":{"anyOf":[{"type":"string","const":"AND"},{"type":"string","const":"OR"}]},"includeIndexStatus":{"description":"Report each listed profile's indexStatus","type":"boolean"}},"additionalProperties":false},"SearchIndexState":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"currentNamespace":{"type":"string","minLength":1},"nextNamespace":{"type":"string","minLength":1},"currentGeneration":{"type":"object","properties":{"generationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"embedderModel":{"type":"string","enum":["voyage-4-lite","voyage-4","voyage-4-large"]},"dimensions":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"functionalHash":{"type":"string","pattern":"^fh1:[a-f0-9]{64}$"},"skipped":{"type":"object","properties":{"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"firstAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"},"lastAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"},"last":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"projection-value"},"alias":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"storage":{"type":"string","enum":["string","int","uint","float","bool","datetime","string[]","int[]","uint[]","float[]","other"]},"received":{"type":"string","enum":["string","boolean","integer","negative-integer","unsafe-integer","fraction","non-finite","array","object","null"]},"providerStatus":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["kind","alias","storage","received"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"projection-expression"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"record-content"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"drained"},"cutoff":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"}},"required":["kind","cutoff"],"additionalProperties":false}],"type":"object"}},"required":["count","firstAt","lastAt","last"],"additionalProperties":false},"acceptedHash":{"type":"string","pattern":"^fh1:[a-f0-9]{64}$"},"configSnapshot":{"type":"object","properties":{"source":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"native-object"},"objectType":{"type":"string","pattern":"^[a-z0-9_-]+"},"query":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["kind","objectType"],"additionalProperties":false}],"type":"object"},"template":{"type":"object","properties":{"language":{"type":"string","const":"handlebars"},"header":{"type":"string"},"body":{"type":"string","minLength":1}},"required":["language","body"],"additionalProperties":false},"chunking":{"type":"object","properties":{"splitterId":{"type":"string","enum":["plain-text-window"]},"size":{"default":1600,"type":"integer","minimum":100,"maximum":128000},"overlap":{"default":10,"type":"integer","minimum":0,"maximum":50},"preserveBoundaries":{"default":true,"type":"boolean"}},"required":["splitterId","size","overlap","preserveBoundaries"],"additionalProperties":false},"embedding":{"type":"object","properties":{"model":{"default":"voyage-4","type":"string","enum":["voyage-4-lite","voyage-4","voyage-4-large"]},"dimensions":{"default":1024,"anyOf":[{"type":"number","const":512},{"type":"number","const":1024},{"type":"number","const":2048}]}},"required":["model","dimensions"],"additionalProperties":false},"projections":{"default":[],"type":"array","items":{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"language":{"type":"string","enum":["jsonpath","jsonata"]},"expression":{"type":"string","minLength":1},"type":{"type":"string","enum":["string","number","integer","boolean","datetime","string[]","number[]","integer[]"]}},"required":["alias","language","expression","type"],"additionalProperties":false}}},"required":["source","template","chunking","embedding","projections"],"additionalProperties":false},"driftedAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"},"hydratedAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"}},"required":["generationId","embedderModel","dimensions","functionalHash","acceptedHash"],"additionalProperties":false},"nextGeneration":{"type":"object","properties":{"generationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"embedderModel":{"type":"string","enum":["voyage-4-lite","voyage-4","voyage-4-large"]},"dimensions":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"functionalHash":{"type":"string","pattern":"^fh1:[a-f0-9]{64}$"},"skipped":{"type":"object","properties":{"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"firstAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"},"lastAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"},"last":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"projection-value"},"alias":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"storage":{"type":"string","enum":["string","int","uint","float","bool","datetime","string[]","int[]","uint[]","float[]","other"]},"received":{"type":"string","enum":["string","boolean","integer","negative-integer","unsafe-integer","fraction","non-finite","array","object","null"]},"providerStatus":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["kind","alias","storage","received"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"projection-expression"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"record-content"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"drained"},"cutoff":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"}},"required":["kind","cutoff"],"additionalProperties":false}],"type":"object"}},"required":["count","firstAt","lastAt","last"],"additionalProperties":false},"configSnapshot":{"type":"object","properties":{"source":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"native-object"},"objectType":{"type":"string","pattern":"^[a-z0-9_-]+"},"query":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["kind","objectType"],"additionalProperties":false}],"type":"object"},"template":{"type":"object","properties":{"language":{"type":"string","const":"handlebars"},"header":{"type":"string"},"body":{"type":"string","minLength":1}},"required":["language","body"],"additionalProperties":false},"chunking":{"type":"object","properties":{"splitterId":{"type":"string","enum":["plain-text-window"]},"size":{"default":1600,"type":"integer","minimum":100,"maximum":128000},"overlap":{"default":10,"type":"integer","minimum":0,"maximum":50},"preserveBoundaries":{"default":true,"type":"boolean"}},"required":["splitterId","size","overlap","preserveBoundaries"],"additionalProperties":false},"embedding":{"type":"object","properties":{"model":{"default":"voyage-4","type":"string","enum":["voyage-4-lite","voyage-4","voyage-4-large"]},"dimensions":{"default":1024,"anyOf":[{"type":"number","const":512},{"type":"number","const":1024},{"type":"number","const":2048}]}},"required":["model","dimensions"],"additionalProperties":false},"projections":{"default":[],"type":"array","items":{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"language":{"type":"string","enum":["jsonpath","jsonata"]},"expression":{"type":"string","minLength":1},"type":{"type":"string","enum":["string","number","integer","boolean","datetime","string[]","number[]","integer[]"]}},"required":["alias","language","expression","type"],"additionalProperties":false}}},"required":["source","template","chunking","embedding","projections"],"additionalProperties":false}},"required":["generationId","embedderModel","dimensions","functionalHash","configSnapshot"],"additionalProperties":false},"migration":{"type":"object","properties":{"phase":{"type":"string","enum":["queuing","hydrating"]},"totalQueued":{"type":"integer","minimum":0,"maximum":9007199254740991},"tallyKey":{"type":"string","minLength":1},"errorCount":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"queuedAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"},"doneQueuingAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"},"completionSignalQueuedAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"},"triggeredBy":{"type":"object","properties":{"kind":{"type":"string","enum":["profile-commit","reindex-directive","bulk-reindex-api","initial-hydration"]},"actor":{"type":"string","minLength":1},"profileVersion":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["kind"],"additionalProperties":false}},"required":["phase","tallyKey","errorCount","queuedAt","triggeredBy"],"additionalProperties":false},"retired":{"default":[],"type":"array","items":{"type":"object","properties":{"namespace":{"type":"string","minLength":1},"generationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"dimensions":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"retiredAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"},"reason":{"type":"string","enum":["cutover","aborted-migration","superseded-migration","profile-deleted"]}},"required":["namespace","generationId","dimensions","retiredAt","reason"],"additionalProperties":false}},"pendingEffects":{"default":[],"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"retire-namespace"},"effectId":{"type":"string","minLength":1},"createdAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"},"namespace":{"type":"string","minLength":1},"generationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"dimensions":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reason":{"type":"string","enum":["deleted","de-matched"]}},"required":["kind","effectId","createdAt","namespace","generationId","dimensions","reason"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"publish-generation-change"},"effectId":{"type":"string","minLength":1},"createdAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"},"event":{"type":"object","properties":{"orgId":{"type":"string","maxLength":63,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"profileId":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"type":{"type":"string","const":"search-index-generation-changed"},"payload":{"type":"object","properties":{"change":{"type":"string","enum":["queuing","cutover","aborted"]},"currentGenerationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"currentFunctionalHash":{"type":"string","pattern":"^fh1:[a-f0-9]{64}$"},"nextGenerationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"nextFunctionalHash":{"type":"string","pattern":"^fh1:[a-f0-9]{64}$"},"retiredGenerationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"required":["change"],"additionalProperties":false}},"required":["orgId","profileId","type","payload"],"additionalProperties":false}},"required":["kind","effectId","createdAt","event"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"publish-pipeline-signal"},"effectId":{"type":"string","minLength":1},"createdAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"},"event":{"type":"object","properties":{"orgId":{"type":"string","maxLength":63,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"profileId":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"type":{"type":"string","const":"pipeline-signal"},"vectorStoreId":{"type":"string","minLength":1,"maxLength":226,"pattern":"^[A-Za-z0-9._-]+$"},"payload":{"type":"object","properties":{"generationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"functionalHash":{"type":"string","pattern":"^fh1:[a-f0-9]{64}$"}},"required":["generationId","functionalHash"],"additionalProperties":false},"action":{"type":"string","const":"migration-complete"}},"required":["orgId","profileId","type","vectorStoreId","payload","action"],"additionalProperties":false}},"required":["kind","effectId","createdAt","event"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"reconcile-profile"},"effectId":{"type":"string","minLength":1},"createdAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"}},"required":["kind","effectId","createdAt"],"additionalProperties":false}],"type":"object"}},"lastCutoverAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"},"_metaData":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"},"updatedAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"},"hash":{"type":"string"}},"required":["id","createdAt"],"additionalProperties":false}},"required":["id","profileId","retired","pendingEffects","_metaData"],"additionalProperties":false},"ProfileProgress":{"type":"object","properties":{"migration":{"type":"object","properties":{"phase":{"type":"string","enum":["queuing","hydrating"]},"generationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"lastActivityAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"},"processed":{"type":"integer","minimum":0,"maximum":9007199254740991},"totalQueued":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["phase","generationId","processed"],"additionalProperties":false},"repair":{"type":"object","properties":{"reconciliationId":{"type":"string","minLength":1},"generationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"status":{"type":"string","enum":["queuing","draining","done","canceled"]},"processed":{"type":"integer","minimum":0,"maximum":9007199254740991},"queued":{"type":"integer","minimum":0,"maximum":9007199254740991},"startedAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"},"lastActivityAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"},"canceledAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"}},"required":["reconciliationId","generationId","status","processed","startedAt"],"additionalProperties":false}},"additionalProperties":false},"ProfileSchemaView":{"type":"object","properties":{"profileId":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"namespaces":{"type":"array","items":{"type":"object","properties":{"slot":{"type":"string","enum":["current","next"]},"namespace":{"type":"string","minLength":1},"generationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"observation":{"type":"string","enum":["observed","absent","unavailable"]},"observedAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"},"columns":{"type":"array","items":{"type":"object","properties":{"alias":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"storage":{"type":"string","enum":["string","int","uint","float","bool","datetime","string[]","int[]","uint[]","float[]","other"]},"type":{"type":"string","enum":["string","number","integer","boolean","datetime","string[]","number[]","integer[]"]},"status":{"type":"string","enum":["active","constrained","conflict","pending","retired","reserved"]}},"required":["alias","status"],"additionalProperties":false}},"skipped":{"type":"object","properties":{"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"firstAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"},"lastAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"},"last":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"projection-value"},"alias":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"storage":{"type":"string","enum":["string","int","uint","float","bool","datetime","string[]","int[]","uint[]","float[]","other"]},"received":{"type":"string","enum":["string","boolean","integer","negative-integer","unsafe-integer","fraction","non-finite","array","object","null"]},"providerStatus":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["kind","alias","storage","received"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"projection-expression"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"record-content"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"drained"},"cutoff":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"}},"required":["kind","cutoff"],"additionalProperties":false}],"type":"object"}},"required":["count","firstAt","lastAt","last"],"additionalProperties":false}},"required":["slot","namespace","generationId","observation","columns"],"additionalProperties":false}}},"required":["profileId","namespaces"],"additionalProperties":false},"ReconcileAccepted":{"type":"object","properties":{"status":{"type":"string","const":"accepted"},"reconciliationId":{"type":"string","minLength":1},"requestedAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"}},"required":["status","reconciliationId","requestedAt"],"additionalProperties":false},"MigrateResult":{"type":"object","properties":{"generationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"totalQueued":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["generationId","totalQueued"],"additionalProperties":false},"ProfileDrainResponse":{"type":"object","properties":{"orgId":{"type":"string","maxLength":63,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"profileId":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"cutoff":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"},"expiresAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"},"notification":{"type":"string","enum":["published","deferred"]},"coverage":{"type":"string","enum":["marked","deferred"]}},"required":["orgId","profileId","cutoff","expiresAt","notification","coverage"],"additionalProperties":false},"ProfileDrain":{"type":"object","properties":{"orgId":{"type":"string","maxLength":63,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"profileId":{"type":"string","minLength":3,"maxLength":64,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"cutoff":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"},"expiresAt":{"type":"string","pattern":"^(?:\\d+(?:\\.\\d+?)?|(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z))$","description":"An ISO 8601 date time string","format":"date-time"}},"required":["orgId","profileId","cutoff","expiresAt"],"additionalProperties":false}},"securitySchemes":{"jwt":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"info":{"title":"AI Search Api","description":" ","version":"1.7.10"},"servers":[{"url":"/api/v1"}]}