{"openapi":"3.1.0","info":{"title":"Tease API","version":"1"},"tags":[{"name":"Accounts"}],"servers":[{"url":"https://app.tease.club"}],"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"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"},"app__products__platform__api__v1__accounts__AccountPatch":{"properties":{"persona":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Persona","description":"The nickname the model runs this account under; '' clears it."},"exit_fallback":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Exit Fallback","description":"When this account's own proxy stops answering for 15 minutes, move it to a Tease proxy, once."}},"additionalProperties":false,"type":"object","title":"AccountPatch","description":"The account's fields a key may change."},"SessionImportBody":{"properties":{"user_agent":{"anyOf":[{"type":"string","maxLength":2048,"minLength":1},{"type":"null"}],"title":"User Agent"},"client_hints":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Client Hints"},"nav_platform":{"anyOf":[{"type":"string","maxLength":256,"minLength":1},{"type":"null"}],"title":"Nav Platform"},"webgl":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Webgl"},"accept_language":{"anyOf":[{"type":"string","maxLength":1024,"minLength":1},{"type":"null"}],"title":"Accept Language"},"canvas_seed":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Canvas Seed"},"screen":{"anyOf":[{"$ref":"#/components/schemas/CapturedScreenBody"},{"type":"null"}]},"hardware_concurrency":{"anyOf":[{"type":"integer","maximum":512,"minimum":1},{"type":"null"}],"title":"Hardware Concurrency"},"device_memory":{"anyOf":[{"anyOf":[{"type":"integer"},{"type":"number"}],"ge":0.25,"le":64},{"type":"null"}],"title":"Device Memory"},"browser_timezone":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Browser Timezone"},"platform":{"type":"string","maxLength":32,"minLength":1,"title":"Platform"},"cookies":{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":500,"minItems":1,"title":"Cookies"},"proxy_id":{"anyOf":[{"type":"integer","exclusiveMinimum":0},{"type":"null"}],"title":"Proxy Id"},"exit_fallback":{"type":"boolean","title":"Exit Fallback","default":false}},"additionalProperties":false,"type":"object","required":["platform","cookies"],"title":"SessionImportBody","description":"POST /v1/accounts/session-import: the browser's cookies, its device keys and an exit."},"CapturedScreenBody":{"properties":{"width":{"type":"integer","maximum":16384,"minimum":320,"title":"Width"},"height":{"type":"integer","maximum":16384,"minimum":240,"title":"Height"},"device_pixel_ratio":{"anyOf":[{"anyOf":[{"type":"integer"},{"type":"number"}],"gt":0,"le":8},{"type":"null"}],"title":"Device Pixel Ratio"}},"additionalProperties":false,"type":"object","required":["width","height"],"title":"CapturedScreenBody"}}},"paths":{"/v1/accounts/{account_id}":{"get":{"summary":"Read an account","description":"One of the key's accounts; another owner's or an invisible account is 404.","operationId":"get_account_v1_accounts__account_id__get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","maxLength":64,"title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-api-key-scope":"read","tags":["Accounts"]},"patch":{"summary":"Update Account","description":"Set the account's persona (one model runs pages under several nicknames, owner 07.11) or exit_fallback.","operationId":"update_account_v1_accounts__account_id__patch","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","maxLength":64,"title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__products__platform__api__v1__accounts__AccountPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-api-key-scope":"write","tags":["Accounts"]}},"/v1/accounts":{"get":{"summary":"List accounts","description":"The key's accounts, a page at a time in id order; health=problems keeps the limited ones.","operationId":"list_accounts_v1_accounts_get","parameters":[{"name":"health","in":"query","required":false,"schema":{"anyOf":[{"const":"problems","type":"string"},{"type":"null"}],"description":"problems: only the social accounts their platform limits or warns.","title":"Health"},"description":"problems: only the social accounts their platform limits or warns."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":200,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-api-key-scope":"read","tags":["Accounts"]}},"/v1/accounts/session-import":{"post":{"summary":"Import a browser session","description":"Connect a social account from its browser cookies; the write keeps only their hash.","operationId":"import_session_v1_accounts_session_import_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionImportBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-api-key-scope":"connection_write","tags":["Accounts"]}}}}
