{"openapi":"3.1.0","info":{"title":"Tease API","version":"1"},"tags":[{"name":"Fyp autopost"}],"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"},"Autopost":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"clips_a_day":{"type":"integer","maximum":50,"minimum":1,"title":"Clips A Day","default":17},"hours":{"$ref":"#/components/schemas/app__products__platform__api__v1__fansly_fyp_autopost__Hours"},"days":{"items":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"]},"type":"array","maxItems":7,"minItems":1,"title":"Days"},"time_zone":{"type":"string","maxLength":64,"title":"Time Zone","default":"America/New_York"},"videos":{"$ref":"#/components/schemas/Videos"},"caption":{"$ref":"#/components/schemas/Caption"},"wall_id":{"type":"string","pattern":"^(\\d{1,20})?$","title":"Wall Id","default":""},"clip_seconds":{"type":"integer","maximum":30,"minimum":4,"title":"Clip Seconds","default":8},"repeat_days":{"type":"integer","maximum":365,"minimum":0,"title":"Repeat Days","default":7}},"additionalProperties":false,"type":"object","title":"Autopost","description":"A page's whole FYP schedule: off by default."},"app__products__platform__api__v1__fansly_fyp_autopost__Hours":{"properties":{"from":{"type":"integer","maximum":23,"minimum":0,"title":"From"},"to":{"type":"integer","maximum":23,"minimum":0,"title":"To"}},"additionalProperties":false,"type":"object","required":["from","to"],"title":"Hours","description":"The day's local window: past midnight it runs into the next day, 0 to 23 is the whole day."},"Videos":{"properties":{"pick":{"type":"string","enum":["newest","best_selling"],"title":"Pick","default":"best_selling"},"max_age_days":{"anyOf":[{"type":"integer","maximum":3650,"minimum":1},{"type":"null"}],"title":"Max Age Days"},"exclude":{"anyOf":[{"$ref":"#/components/schemas/Exclude"},{"type":"null"}]},"folders":{"anyOf":[{"items":{"type":"string","pattern":"^\\d{1,32}$"},"type":"array","maxItems":100},{"type":"null"}],"title":"Folders"}},"additionalProperties":false,"type":"object","title":"Videos","description":"Which vault videos are cut: best selling first with a trial now and then, or newest; age and exclusions."},"Exclude":{"properties":{"mode":{"type":"string","enum":["except","only"],"title":"Mode","default":"except"},"albums":{"items":{"type":"string"},"type":"array","maxItems":100,"title":"Albums"},"files":{"items":{"type":"string"},"type":"array","maxItems":200,"title":"Files"},"sexting":{"type":"boolean","title":"Sexting","default":true},"sexting_after_years":{"anyOf":[{"type":"integer","maximum":10,"minimum":1},{"type":"null"}],"title":"Sexting After Years"},"chat_sales_days":{"anyOf":[{"type":"integer","maximum":3650,"minimum":1},{"type":"null"}],"title":"Chat Sales Days"},"words":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Words"}},"additionalProperties":false,"type":"object","title":"Exclude","description":"What the pick leaves out (owner 04.12): ticked albums and files, sexting, videos sold in a chat, words."},"Caption":{"properties":{"text":{"type":"string","maxLength":500,"title":"Text","default":"!!FULL HERE!! ⬇️⬇️⬇️"},"link":{"type":"string","enum":["post","none"],"title":"Link","default":"post"},"phrases":{"items":{"type":"string"},"type":"array","maxItems":1000,"title":"Phrases"},"tags":{"items":{"type":"string"},"type":"array","maxItems":30,"title":"Tags"},"overlay":{"anyOf":[{"$ref":"#/components/schemas/Overlay"},{"type":"null"}]},"phrase":{"type":"string","enum":["list","ai"],"title":"Phrase","default":"list"},"push":{"type":"integer","maximum":3,"minimum":1,"title":"Push","default":2},"avoid":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Avoid"}},"additionalProperties":false,"type":"object","title":"Caption","description":"The post's text: its line, a link to a post with the video, a phrase (from the list, or the AI's), the tags."},"Overlay":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":true},"source":{"type":"string","enum":["hook","phrase","lines"],"title":"Source","default":"hook"},"lines":{"items":{"type":"string"},"type":"array","maxItems":1000,"title":"Lines"},"position":{"type":"string","enum":["auto","top","center","bottom"],"title":"Position","default":"auto"},"style":{"type":"string","enum":["outline","box","shadow"],"title":"Style","default":"outline"},"share":{"type":"integer","maximum":100,"minimum":0,"title":"Share","default":60},"watermark":{"$ref":"#/components/schemas/Watermark"}},"additionalProperties":false,"type":"object","title":"Overlay","description":"The words burned onto the clip's frame, as the farm's: the AI's hook from the frame, the post's phrase or one of\nits own lines, on a share of the clips (#10509, #10548)."},"Watermark":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"text":{"type":"string","maxLength":60,"title":"Text","default":""}},"additionalProperties":false,"type":"object","title":"Watermark","description":"The page's mark in the clip's lower right corner, as the farm's www.angel.xxx (#10548): off by default."}}},"paths":{"/v1/accounts/{account_id}/fyp-autopost":{"get":{"summary":"Get Autopost","description":"The page's FYP schedule, its next slot and its slots of the last day.","operationId":"get_autopost_v1_accounts__account_id__fyp_autopost_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":["Fyp autopost"]},"put":{"summary":"Put Autopost","description":"Replace the page's FYP schedule; on, its next slot is reckoned from now.","operationId":"put_autopost_v1_accounts__account_id__fyp_autopost_put","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/Autopost"}}}},"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":["Fyp autopost"]}}}}
