{"openapi":"3.1.0","info":{"title":"HyperWrite Autocomplete API","version":"0.1.0"},"paths":{"/api/console/users":{"get":{"tags":["console"],"summary":"Users","operationId":"users_api_console_users_get","parameters":[{"name":"period","in":"query","required":false,"schema":{"enum":["today","month"],"type":"string","default":"today","title":"Period"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Schema or prompt budget invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"Invalid or expired credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Token credits exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"403":{"description":"Origin or permission rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Duplicate request identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"413":{"description":"Request exceeds byte limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"415":{"description":"Unsupported request media type or encoding","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Request rate, daily allowance or concurrency limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"504":{"description":"Inference timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"ConsoleSession":[]}]}},"/api/console/config":{"get":{"tags":["console"],"summary":"Config","operationId":"config_api_console_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Invalid or expired credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Token credits exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"403":{"description":"Origin or permission rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Duplicate request identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"413":{"description":"Request exceeds byte limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"415":{"description":"Unsupported request media type or encoding","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"422":{"description":"Schema or prompt budget invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Request rate, daily allowance or concurrency limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"504":{"description":"Inference timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[]}},"/api/console/signin-attribution":{"post":{"tags":["console"],"summary":"Signin Attribution","operationId":"signin_attribution_api_console_signin_attribution_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Invalid or expired credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Token credits exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"403":{"description":"Origin or permission rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Duplicate request identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"413":{"description":"Request exceeds byte limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"415":{"description":"Unsupported request media type or encoding","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"422":{"description":"Schema or prompt budget invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Request rate, daily allowance or concurrency limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"504":{"description":"Inference timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"ConsoleSession":[]}]}},"/api/console/signup-complete":{"post":{"tags":["console"],"summary":"Signup Complete","operationId":"signup_complete_api_console_signup_complete_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Invalid or expired credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Token credits exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"403":{"description":"Origin or permission rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Duplicate request identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"413":{"description":"Request exceeds byte limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"415":{"description":"Unsupported request media type or encoding","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"422":{"description":"Schema or prompt budget invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Request rate, daily allowance or concurrency limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"504":{"description":"Inference timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"ConsoleSession":[]}]}},"/api/console/signin-attribution/withdraw":{"post":{"tags":["console"],"summary":"Withdraw Signin","operationId":"withdraw_signin_api_console_signin_attribution_withdraw_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Invalid or expired credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Token credits exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"403":{"description":"Origin or permission rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Duplicate request identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"413":{"description":"Request exceeds byte limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"415":{"description":"Unsupported request media type or encoding","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"422":{"description":"Schema or prompt budget invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Request rate, daily allowance or concurrency limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"504":{"description":"Inference timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"ConsoleSession":[]}]}},"/api/console/me":{"get":{"tags":["console"],"summary":"Get Me","operationId":"get_me_api_console_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Invalid or expired credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Token credits exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"403":{"description":"Origin or permission rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Duplicate request identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"413":{"description":"Request exceeds byte limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"415":{"description":"Unsupported request media type or encoding","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"422":{"description":"Schema or prompt budget invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Request rate, daily allowance or concurrency limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"504":{"description":"Inference timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"ConsoleSession":[]}]}},"/api/console/credits/claim":{"post":{"tags":["console"],"summary":"Claim","operationId":"claim_api_console_credits_claim_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Schema or prompt budget invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"Invalid or expired credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Token credits exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"403":{"description":"Origin or permission rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Duplicate request identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"413":{"description":"Request exceeds byte limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"415":{"description":"Unsupported request media type or encoding","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Request rate, daily allowance or concurrency limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"504":{"description":"Inference timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"ConsoleSession":[]}]}},"/api/console/onboard":{"post":{"tags":["console"],"summary":"Onboard","operationId":"onboard_api_console_onboard_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Schema or prompt budget invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"Invalid or expired credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Token credits exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"403":{"description":"Origin or permission rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Duplicate request identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"413":{"description":"Request exceeds byte limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"415":{"description":"Unsupported request media type or encoding","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Request rate, daily allowance or concurrency limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"504":{"description":"Inference timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"ConsoleSession":[]}]}},"/api/console/advertising/withdraw":{"post":{"tags":["console"],"summary":"Withdraw Advertising","operationId":"withdraw_advertising_api_console_advertising_withdraw_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Schema or prompt budget invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"Invalid or expired credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Token credits exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"403":{"description":"Origin or permission rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Duplicate request identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"413":{"description":"Request exceeds byte limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"415":{"description":"Unsupported request media type or encoding","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Request rate, daily allowance or concurrency limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"504":{"description":"Inference timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"ConsoleSession":[]}]}},"/api/console/keys":{"post":{"tags":["console"],"summary":"Create Key","operationId":"create_key_api_console_keys_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Schema or prompt budget invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"Invalid or expired credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Token credits exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"403":{"description":"Origin or permission rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Duplicate request identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"413":{"description":"Request exceeds byte limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"415":{"description":"Unsupported request media type or encoding","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Request rate, daily allowance or concurrency limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"504":{"description":"Inference timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"ConsoleSession":[]}]}},"/api/console/keys/{key_id}/revoke":{"post":{"tags":["console"],"summary":"Revoke Key","operationId":"revoke_key_api_console_keys__key_id__revoke_post","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Schema or prompt budget invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"Invalid or expired credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Token credits exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"403":{"description":"Origin or permission rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Duplicate request identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"413":{"description":"Request exceeds byte limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"415":{"description":"Unsupported request media type or encoding","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Request rate, daily allowance or concurrency limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"504":{"description":"Inference timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"ConsoleSession":[]}]}},"/api/console/name":{"post":{"tags":["console"],"summary":"Project Name","operationId":"project_name_api_console_name_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectNameBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Schema or prompt budget invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"Invalid or expired credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Token credits exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"403":{"description":"Origin or permission rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Duplicate request identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"413":{"description":"Request exceeds byte limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"415":{"description":"Unsupported request media type or encoding","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Request rate, daily allowance or concurrency limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"504":{"description":"Inference timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"ConsoleSession":[]}]}},"/api/console/setup-events":{"post":{"tags":["console"],"summary":"Setup Event","operationId":"setup_event_api_console_setup_events_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupEventBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Schema or prompt budget invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"Invalid or expired credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Token credits exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"403":{"description":"Origin or permission rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Duplicate request identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"413":{"description":"Request exceeds byte limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"415":{"description":"Unsupported request media type or encoding","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Request rate, daily allowance or concurrency limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"504":{"description":"Inference timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"ConsoleSession":[]}]}},"/api/console/origins":{"post":{"tags":["console"],"summary":"Origins","operationId":"origins_api_console_origins_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OriginsBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Schema or prompt budget invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"Invalid or expired credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Token credits exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"403":{"description":"Origin or permission rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Duplicate request identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"413":{"description":"Request exceeds byte limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"415":{"description":"Unsupported request media type or encoding","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Request rate, daily allowance or concurrency limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"504":{"description":"Inference timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"ConsoleSession":[]}]}},"/api/console/profile":{"post":{"tags":["console"],"summary":"Profile","operationId":"profile_api_console_profile_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Schema or prompt budget invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"Invalid or expired credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Token credits exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"403":{"description":"Origin or permission rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Duplicate request identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"413":{"description":"Request exceeds byte limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"415":{"description":"Unsupported request media type or encoding","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Request rate, daily allowance or concurrency limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"504":{"description":"Inference timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"ConsoleSession":[]}]}},"/api/console/cli/start":{"post":{"tags":["console"],"summary":"Start","operationId":"start_api_console_cli_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Schema or prompt budget invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"Invalid or expired credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Token credits exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"403":{"description":"Origin or permission rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Duplicate request identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"413":{"description":"Request exceeds byte limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"415":{"description":"Unsupported request media type or encoding","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Request rate, daily allowance or concurrency limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"504":{"description":"Inference timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[]}},"/api/console/cli/poll":{"post":{"tags":["console"],"summary":"Poll","operationId":"poll_api_console_cli_poll_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Schema or prompt budget invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"Invalid or expired credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Token credits exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"403":{"description":"Origin or permission rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Duplicate request identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"413":{"description":"Request exceeds byte limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"415":{"description":"Unsupported request media type or encoding","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Request rate, daily allowance or concurrency limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"504":{"description":"Inference timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[]}},"/api/console/cli/inspect":{"post":{"tags":["console"],"summary":"Inspect","operationId":"inspect_api_console_cli_inspect_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Schema or prompt budget invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"Invalid or expired credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Token credits exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"403":{"description":"Origin or permission rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Duplicate request identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"413":{"description":"Request exceeds byte limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"415":{"description":"Unsupported request media type or encoding","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Request rate, daily allowance or concurrency limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"504":{"description":"Inference timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"ConsoleSession":[]}]}},"/api/console/cli/approve":{"post":{"tags":["console"],"summary":"Approve","operationId":"approve_api_console_cli_approve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Schema or prompt budget invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"Invalid or expired credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Token credits exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"403":{"description":"Origin or permission rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Duplicate request identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"413":{"description":"Request exceeds byte limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"415":{"description":"Unsupported request media type or encoding","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Request rate, daily allowance or concurrency limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"504":{"description":"Inference timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"ConsoleSession":[]}]}},"/api/console/cli/deny":{"post":{"tags":["console"],"summary":"Deny","operationId":"deny_api_console_cli_deny_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Schema or prompt budget invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"Invalid or expired credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Token credits exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"403":{"description":"Origin or permission rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Duplicate request identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"413":{"description":"Request exceeds byte limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"415":{"description":"Unsupported request media type or encoding","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Request rate, daily allowance or concurrency limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"504":{"description":"Inference timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"ConsoleSession":[]}]}},"/api/console/cli/ack":{"post":{"tags":["console"],"summary":"Ack","operationId":"ack_api_console_cli_ack_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Schema or prompt budget invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"Invalid or expired credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Token credits exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"403":{"description":"Origin or permission rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Duplicate request identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"413":{"description":"Request exceeds byte limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"415":{"description":"Unsupported request media type or encoding","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Request rate, daily allowance or concurrency limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"504":{"description":"Inference timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[]}},"/api/console/installer/start":{"post":{"tags":["console"],"summary":"Start","operationId":"start_api_console_installer_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Schema or prompt budget invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"Invalid or expired credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Token credits exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"403":{"description":"Origin or permission rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Duplicate request identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"413":{"description":"Request exceeds byte limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"415":{"description":"Unsupported request media type or encoding","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Request rate, daily allowance or concurrency limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"504":{"description":"Inference timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"ConsoleSession":[]}]}},"/api/console/installer/events":{"post":{"tags":["console"],"summary":"Events","operationId":"events_api_console_installer_events_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Schema or prompt budget invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"Invalid or expired credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Token credits exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"403":{"description":"Origin or permission rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Duplicate request identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"413":{"description":"Request exceeds byte limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"415":{"description":"Unsupported request media type or encoding","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Request rate, daily allowance or concurrency limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"504":{"description":"Inference timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"ConsoleSession":[]}]}},"/api/console/installer/link":{"post":{"tags":["console"],"summary":"Link","operationId":"link_api_console_installer_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Schema or prompt budget invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"Invalid or expired credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Token credits exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"403":{"description":"Origin or permission rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Duplicate request identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"413":{"description":"Request exceeds byte limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"415":{"description":"Unsupported request media type or encoding","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Request rate, daily allowance or concurrency limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"504":{"description":"Inference timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"ConsoleSession":[]}]}},"/v1/browser-sessions":{"post":{"summary":"Browser Sessions","operationId":"browser_sessions_v1_browser_sessions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowserSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowserSessionResponse"}}}},"422":{"description":"Schema or prompt budget invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"Invalid or expired credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Token credits exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"403":{"description":"Origin or permission rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Duplicate request identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"413":{"description":"Request exceeds byte limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"415":{"description":"Unsupported request media type or encoding","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Request rate, daily allowance or concurrency limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"504":{"description":"Inference timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"APIKey":[]}]}},"/v1/autocomplete":{"post":{"summary":"Autocomplete","operationId":"autocomplete_v1_autocomplete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutocompleteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutocompleteResponse"}}}},"422":{"description":"Schema or prompt budget invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"Invalid or expired credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Token credits exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"403":{"description":"Origin or permission rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Duplicate request identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"413":{"description":"Request exceeds byte limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"415":{"description":"Unsupported request media type or encoding","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Request rate, daily allowance or concurrency limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"504":{"description":"Inference timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"APIKey":[]},{"BrowserSession":[]}]}},"/v1/autocomplete/status":{"post":{"summary":"Autocomplete Status","operationId":"autocomplete_status_v1_autocomplete_status_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Invalid or expired credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Token credits exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"403":{"description":"Origin or permission rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Duplicate request identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"413":{"description":"Request exceeds byte limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"415":{"description":"Unsupported request media type or encoding","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"422":{"description":"Schema or prompt budget invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Request rate, daily allowance or concurrency limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"504":{"description":"Inference timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"APIKey":[]},{"BrowserSession":[]}]}},"/v1/events":{"post":{"summary":"Events","operationId":"events_v1_events_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Schema or prompt budget invalid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"401":{"description":"Invalid or expired credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"402":{"description":"Token credits exhausted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"403":{"description":"Origin or permission rejected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Duplicate request identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"413":{"description":"Request exceeds byte limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"415":{"description":"Unsupported request media type or encoding","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"429":{"description":"Request rate, daily allowance or concurrency limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"504":{"description":"Inference timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}}},"security":[{"APIKey":[]},{"BrowserSession":[]}]}}},"components":{"schemas":{"AdMeasurement":{"properties":{"click_id":{"type":"string","maxLength":512,"pattern":"^bfc_[A-Za-z0-9._-]{1,508}$","title":"Click Id"},"consent":{"anyOf":[{"type":"string","enum":["granted","not_required"]},{"type":"null"}],"title":"Consent"},"expires_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expires At"}},"additionalProperties":false,"type":"object","required":["click_id"],"title":"AdMeasurement"},"ApproveBody":{"properties":{"expected_project_id":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"Expected Project Id"},"user_code":{"type":"string","pattern":"^[2-9A-HJ-NP-Z]{4}-[2-9A-HJ-NP-Z]{4}$","title":"User Code"},"ad_consent":{"anyOf":[{"type":"string","enum":["granted","not_required"]},{"type":"null"}],"title":"Ad Consent"},"fingerprint":{"type":"string","pattern":"^[0-9a-f]{16}$","title":"Fingerprint"}},"additionalProperties":false,"type":"object","required":["user_code","fingerprint"],"title":"ApproveBody"},"AutocompleteRequest":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"context_id":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[A-Za-z0-9_.:-]+$","title":"Context Id"},"context_version":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[A-Za-z0-9_.:-]+$","title":"Context Version"},"draft_revision":{"type":"integer","maximum":9007199254740991.0,"minimum":0.0,"title":"Draft Revision"},"prefix":{"type":"string","maxLength":4000,"title":"Prefix"},"messages":{"items":{"$ref":"#/components/schemas/Message"},"type":"array","maxItems":12,"title":"Messages"},"system_prompt":{"type":"string","maxLength":2000,"title":"System Prompt","default":""},"additional_context":{"type":"string","maxLength":12000,"title":"Additional Context","default":""},"trigger":{"type":"string","enum":["word_start","word_progress","word_boundary","accepted_word"],"title":"Trigger"}},"additionalProperties":false,"type":"object","required":["request_id","context_id","context_version","draft_revision","prefix","trigger"],"title":"AutocompleteRequest"},"AutocompleteResponse":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"context_id":{"type":"string","title":"Context Id"},"context_version":{"type":"string","title":"Context Version"},"draft_revision":{"type":"integer","title":"Draft Revision"},"candidates":{"items":{"$ref":"#/components/schemas/Candidate"},"type":"array","maxItems":30,"title":"Candidates"},"expires_at":{"type":"integer","title":"Expires At"},"expires_in":{"type":"number","maximum":60.0,"minimum":0.0,"title":"Expires In","description":"Remaining lifetime in seconds at response creation."},"generation_receipt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generation Receipt"}},"additionalProperties":false,"type":"object","required":["request_id","context_id","context_version","draft_revision","candidates","expires_at","expires_in"],"title":"AutocompleteResponse"},"BrowserSessionRequest":{"properties":{"user_id":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[A-Za-z0-9_.:-]+$","title":"User Id"},"origin":{"type":"string","maxLength":256,"title":"Origin"},"chat_model_assignment":{"anyOf":[{"$ref":"#/components/schemas/ChatModelAssignment"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["user_id","origin"],"title":"BrowserSessionRequest"},"BrowserSessionResponse":{"properties":{"token":{"type":"string","title":"Token"},"expires_at":{"type":"integer","title":"Expires At"},"expires_in":{"type":"number","maximum":900.0,"minimum":0.0,"title":"Expires In","description":"Remaining lifetime in seconds at response creation."}},"additionalProperties":false,"type":"object","required":["token","expires_at","expires_in"],"title":"BrowserSessionResponse"},"Candidate":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"text":{"type":"string","maxLength":512,"minLength":1,"title":"Text"}},"additionalProperties":false,"type":"object","required":["id","text"],"title":"Candidate"},"ChatModelAssignment":{"properties":{"experiment":{"type":"string","enum":["chat_autocomplete_model_test","app_typeahead_test"],"title":"Experiment"},"version":{"type":"integer","maximum":14.0,"minimum":1.0,"title":"Version"},"test_case":{"type":"integer","maximum":2.0,"minimum":0.0,"title":"Test Case"},"population":{"type":"string","enum":["new","existing"],"title":"Population"},"assignment_source":{"type":"string","enum":["signup_random","repair_random","existing_hash","existing_default"],"title":"Assignment Source"},"route_epoch":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[A-Za-z0-9_.:-]+$","title":"Route Epoch"}},"additionalProperties":false,"type":"object","required":["experiment","version","test_case","population","assignment_source","route_epoch"],"title":"ChatModelAssignment"},"CodeBody":{"properties":{"user_code":{"type":"string","pattern":"^[2-9A-HJ-NP-Z]{4}-[2-9A-HJ-NP-Z]{4}$","title":"User Code"}},"additionalProperties":false,"type":"object","required":["user_code"],"title":"CodeBody"},"ConsoleBody":{"properties":{},"additionalProperties":false,"type":"object","title":"ConsoleBody"},"DeviceBody":{"properties":{"device_code":{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$","title":"Device Code"}},"additionalProperties":false,"type":"object","required":["device_code"],"title":"DeviceBody"},"EmptyBody":{"properties":{},"additionalProperties":false,"type":"object","title":"EmptyBody"},"Event":{"properties":{"event_id":{"type":"string","format":"uuid","title":"Event Id"},"request_id":{"type":"string","format":"uuid","title":"Request Id"},"candidate_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Candidate Id"},"kind":{"type":"string","enum":["shown","accepted","dismissed","submitted"],"title":"Kind"},"word_count":{"type":"integer","maximum":1000.0,"minimum":0.0,"title":"Word Count","default":0}},"additionalProperties":false,"type":"object","required":["event_id","request_id","kind"],"title":"Event"},"EventsRequest":{"properties":{"events":{"items":{"$ref":"#/components/schemas/Event"},"type":"array","maxItems":50,"minItems":1,"title":"Events"}},"additionalProperties":false,"type":"object","required":["events"],"title":"EventsRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"KeyBody":{"properties":{"expected_project_id":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"Expected Project Id"},"ad_consent":{"anyOf":[{"type":"string","enum":["granted","not_required"]},{"type":"null"}],"title":"Ad Consent"},"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"idempotency_key":{"type":"string","maxLength":36,"title":"Idempotency Key"}},"additionalProperties":false,"type":"object","required":["name","idempotency_key"],"title":"KeyBody"},"LinkBody":{"properties":{"reporting_token":{"type":"string","maxLength":51,"minLength":51,"title":"Reporting Token"}},"additionalProperties":false,"type":"object","required":["reporting_token"],"title":"LinkBody"},"Message":{"properties":{"role":{"type":"string","enum":["user","assistant"],"title":"Role"},"content":{"type":"string","maxLength":10000,"title":"Content"}},"additionalProperties":false,"type":"object","required":["role","content"],"title":"Message"},"OnboardBody":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name","default":"My first project"},"origin":{"anyOf":[{"type":"string","maxLength":256,"minLength":1},{"type":"null"}],"title":"Origin"},"mau_band":{"anyOf":[{"type":"string","enum":["under_5k","5k_to_10k","10k_to_50k","50k_plus","under_50k"]},{"type":"null"}],"title":"Mau Band"},"accept_free_terms":{"type":"boolean","title":"Accept Free Terms","default":false},"accept_credit_terms":{"type":"boolean","title":"Accept Credit Terms","default":false},"ad_measurement":{"anyOf":[{"$ref":"#/components/schemas/AdMeasurement"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"OnboardBody"},"OriginsBody":{"properties":{"expected_project_id":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"Expected Project Id"},"origins":{"items":{"type":"string","maxLength":256,"minLength":1},"type":"array","maxItems":10,"minItems":1,"title":"Origins"},"revision":{"type":"integer","minimum":1.0,"title":"Revision"}},"additionalProperties":false,"type":"object","required":["origins","revision"],"title":"OriginsBody"},"ProfileBody":{"properties":{"expected_project_id":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"Expected Project Id"},"mau_band":{"type":"string","enum":["under_5k","5k_to_10k","10k_to_50k","50k_plus","under_50k"],"title":"Mau Band"}},"additionalProperties":false,"type":"object","required":["mau_band"],"title":"ProfileBody"},"ProjectBody":{"properties":{"expected_project_id":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"Expected Project Id"}},"additionalProperties":false,"type":"object","title":"ProjectBody"},"ProjectNameBody":{"properties":{"expected_project_id":{"type":"string","maxLength":36,"title":"Expected Project Id"},"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"expected_name":{"type":"string","maxLength":100,"minLength":1,"title":"Expected Name"}},"additionalProperties":false,"type":"object","required":["expected_project_id","name","expected_name"],"title":"ProjectNameBody"},"ReportBody":{"properties":{"event_id":{"type":"string","format":"uuid","title":"Event Id"},"kind":{"type":"string","enum":["progress","assessment"],"title":"Kind"},"source":{"type":"string","enum":["agent","cli"],"title":"Source"},"step":{"anyOf":[{"type":"string","enum":["setup_started","sdk_installed","account_connected","backend_route_added","composer_connected","connection_test_passed"]},{"type":"null"}],"title":"Step"},"status":{"anyOf":[{"type":"string","enum":["started","completed","blocked"]},{"type":"null"}],"title":"Status"},"category":{"anyOf":[{"type":"string","enum":["package_install","account_connection","authentication","origin_configuration","backend_route","editor_compatibility","unsupported_project","owner_action","other"]},{"type":"null"}],"title":"Category"},"fit":{"anyOf":[{"type":"integer","maximum":10.0,"minimum":0.0},{"type":"null"}],"title":"Fit"},"confidence":{"anyOf":[{"type":"string","enum":["low","medium","high"]},{"type":"null"}],"title":"Confidence"},"summary":{"anyOf":[{"type":"string","maxLength":280},{"type":"null"}],"title":"Summary"}},"additionalProperties":false,"type":"object","required":["event_id","kind","source"],"title":"ReportBody"},"SetupEventBody":{"properties":{"expected_project_id":{"type":"string","maxLength":36,"title":"Expected Project Id"},"event":{"type":"string","enum":["dashboard_viewed","instructions_copy_clicked","instructions_copied","instructions_copy_failed","api_keys_viewed","origins_viewed","docs_opened"],"title":"Event"}},"additionalProperties":false,"type":"object","required":["expected_project_id","event"],"title":"SetupEventBody"},"StartBody":{"properties":{"public_key":{"type":"string","maxLength":512,"minLength":1,"title":"Public Key"},"name":{"type":"string","maxLength":60,"minLength":1,"title":"Name"}},"additionalProperties":false,"type":"object","required":["public_key","name"],"title":"StartBody"},"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"},"APIError":{"type":"object","required":["error"],"additionalProperties":false,"properties":{"error":{"type":"object","required":["code","message"],"additionalProperties":false,"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"securitySchemes":{"APIKey":{"type":"http","scheme":"bearer","description":"API key. Keep it on your backend; never send it from a browser."},"BrowserSession":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Short-lived browser token; send the configured exact Origin."},"ConsoleSession":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Verified Supabase owner access token. Runtime keys cannot manage projects."}}}}