{"openapi":"3.1.0","info":{"title":"C411 Upload Studio","description":"Préparer des uploads sans publier. La validation humaine porte sur une version exacte. Utiliser le token agent pour préparer ; seuls les utilisateurs connectés peuvent approuver.","version":"1.0.0"},"paths":{"/auth/login":{"post":{"tags":["Session"],"summary":"Login","operationId":"login_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Login"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/account":{"get":{"tags":["Session"],"summary":"Account Status","operationId":"account_status_api_account_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["Session"],"summary":"Update Account","operationId":"update_account_api_account_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/auth/logout":{"post":{"tags":["Session"],"summary":"Logout","operationId":"logout_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/me":{"get":{"tags":["Session"],"summary":"Me","operationId":"me_api_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/access-token":{"get":{"tags":["Session"],"summary":"Access Token","operationId":"access_token_api_access_token_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/upload-stats":{"get":{"summary":"Assistant Upload Stats","operationId":"assistant_upload_stats_api_upload_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/status":{"get":{"tags":["Configuration"],"summary":"Status","operationId":"status_api_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/settings":{"put":{"tags":["Configuration"],"summary":"Save Settings","operationId":"save_settings_api_settings_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/library":{"get":{"tags":["Médias"],"summary":"Library","operationId":"library_api_library_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"kind","in":"query","required":false,"schema":{"enum":["radarr","sonarr"],"type":"string","default":"radarr","title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/library/{kind}/{ident}":{"get":{"tags":["Médias"],"summary":"Source","operationId":"source_api_library__kind___ident__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"enum":["radarr","sonarr"],"type":"string","title":"Kind"}},{"name":"ident","in":"path","required":true,"schema":{"type":"integer","title":"Ident"}},{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Season"}},{"name":"episode_file_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Episode File Id"}},{"name":"integral","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Integral"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/files":{"get":{"tags":["Médias"],"summary":"Browse","operationId":"browse_api_files_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"path","in":"query","required":false,"schema":{"type":"string","default":"","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/templates":{"get":{"tags":["Modèles"],"summary":"Templates","operationId":"templates_api_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["Modèles"],"summary":"Create Template","operationId":"create_template_api_templates_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/templates/{ident}":{"put":{"tags":["Modèles"],"summary":"Edit Template","operationId":"edit_template_api_templates__ident__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateEdit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/drafts":{"get":{"tags":["Brouillons"],"summary":"Drafts","operationId":"drafts_api_drafts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["Brouillons"],"summary":"Create Draft","operationId":"create_draft_api_drafts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/import-source":{"get":{"tags":["Brouillons"],"summary":"Import Source","operationId":"import_source_api_import_source_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"kind","in":"query","required":true,"schema":{"enum":["radarr","sonarr"],"type":"string","title":"Kind"}},{"name":"library_id","in":"query","required":true,"schema":{"type":"integer","title":"Library Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"enum":["movie","season","integral","episode"],"type":"string"},{"type":"null"}],"title":"Scope"}},{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Season"}},{"name":"episode_file_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Episode File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/import-drafts":{"post":{"tags":["Brouillons"],"summary":"Import Draft","operationId":"import_draft_api_import_drafts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/drafts/{ident}":{"get":{"tags":["Brouillons"],"summary":"Get Draft","operationId":"get_draft_api_drafts__ident__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Brouillons"],"summary":"Edit Draft","operationId":"edit_draft_api_drafts__ident__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftEdit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/drafts/{ident}/detect-origin":{"post":{"tags":["Préparation"],"summary":"Detect Origin","operationId":"detect_origin_api_drafts__ident__detect_origin_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Version"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/suggestions":{"get":{"tags":["Suggestions"],"summary":"Suggestions","operationId":"suggestions_api_suggestions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/suggestions/scan":{"post":{"tags":["Suggestions"],"summary":"Scan","operationId":"scan_api_suggestions_scan_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScanRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/suggestions/stop":{"post":{"tags":["Suggestions"],"summary":"Stop Scan","operationId":"stop_scan_api_suggestions_stop_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/suggestions/{key}/draft":{"post":{"tags":["Suggestions"],"summary":"Suggestion Draft","operationId":"suggestion_draft_api_suggestions__key__draft_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/drafts/{ident}/prepare":{"post":{"tags":["Préparation"],"summary":"Prepare","operationId":"prepare_api_drafts__ident__prepare_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Version"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/drafts/{ident}/apply-template":{"post":{"tags":["Préparation"],"summary":"Apply Template","operationId":"apply_template_api_drafts__ident__apply_template_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Version"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/drafts/{ident}/preview":{"get":{"tags":["Brouillons"],"summary":"Preview","operationId":"preview_api_drafts__ident__preview_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/drafts/{ident}/artifacts/{name}":{"get":{"tags":["Brouillons"],"summary":"Artifact","operationId":"artifact_api_drafts__ident__artifacts__name__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/drafts/{ident}/seed":{"get":{"tags":["Préparation"],"summary":"Get Seed","operationId":"get_seed_api_drafts__ident__seed_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Préparation"],"summary":"Seed","operationId":"seed_api_drafts__ident__seed_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Version"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/c411/options/{subcategory_id}":{"get":{"tags":["C411"],"summary":"C411 Options","operationId":"c411_options_api_c411_options__subcategory_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"subcategory_id","in":"path","required":true,"schema":{"type":"integer","title":"Subcategory Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/c411/{resource}":{"get":{"tags":["C411"],"summary":"C411 Read","operationId":"c411_read_api_c411__resource__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"resource","in":"path","required":true,"schema":{"enum":["categories","drafts","templates","variables"],"type":"string","title":"Resource"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/drafts/{ident}/prevalidate":{"post":{"tags":["Validation"],"summary":"Prevalidate","operationId":"prevalidate_api_drafts__ident__prevalidate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Version"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/drafts/{ident}/remote-comparison":{"get":{"tags":["C411"],"summary":"Remote Comparison","operationId":"remote_comparison_api_drafts__ident__remote_comparison_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/drafts/{ident}/remote-import":{"post":{"tags":["C411"],"summary":"Remote Import","operationId":"remote_import_api_drafts__ident__remote_import_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoteImport"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/drafts/{ident}/sync":{"post":{"tags":["C411"],"summary":"Sync Draft","operationId":"sync_draft_api_drafts__ident__sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncVersion"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/drafts/{ident}/checks":{"get":{"tags":["Validation"],"summary":"Checks","operationId":"checks_api_drafts__ident__checks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/drafts/{ident}/approve":{"post":{"tags":["Validation"],"summary":"Approve","operationId":"approve_api_drafts__ident__approve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Approval"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/drafts/{ident}/publish":{"post":{"tags":["Publication"],"summary":"Publish","description":"Publish a human-approved immutable draft. Never retries an uncertain POST.","operationId":"publish_api_drafts__ident__publish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Publish"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/drafts/{ident}/final-torrent":{"post":{"tags":["Publication"],"summary":"Retry Postflight","operationId":"retry_postflight_api_drafts__ident__final_torrent_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Version"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/drafts/{ident}/reconcile":{"post":{"tags":["Publication"],"summary":"Reconcile","operationId":"reconcile_api_drafts__ident__reconcile_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Version"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/drafts/{ident}/history":{"get":{"tags":["Brouillons"],"summary":"History","operationId":"history_api_drafts__ident__history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AccountBody":{"properties":{"password":{"type":"string","maxLength":72,"minLength":1,"title":"Password"},"current_password":{"type":"string","maxLength":128,"minLength":1,"title":"Current Password"}},"additionalProperties":false,"type":"object","required":["password","current_password"],"title":"AccountBody"},"Approval":{"properties":{"version":{"type":"integer","title":"Version"},"digest":{"type":"string","title":"Digest"},"confirmed_title":{"type":"string","title":"Confirmed Title"},"rules_confirmed":{"type":"boolean","title":"Rules Confirmed"},"rights_confirmed":{"type":"boolean","title":"Rights Confirmed"}},"type":"object","required":["version","digest","confirmed_title","rules_confirmed","rights_confirmed"],"title":"Approval"},"DraftCreate":{"properties":{"title":{"type":"string","maxLength":200,"minLength":3,"title":"Title"},"source_path":{"type":"string","maxLength":2000,"minLength":1,"title":"Source Path"},"selected_files":{"items":{"type":"string"},"type":"array","maxItems":1000,"title":"Selected Files"},"media_title":{"type":"string","maxLength":250,"title":"Media Title","default":""},"year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Year"},"overview":{"type":"string","maxLength":20000,"title":"Overview","default":""},"tmdb_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tmdb Id"},"tmdb_type":{"type":"string","enum":["movie","tv"],"title":"Tmdb Type","default":"movie"},"tvdb_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tvdb Id"},"kind":{"type":"string","title":"Kind","default":""},"library_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Library Id"},"season":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Season"},"template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Id"},"category_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Category Id"},"subcategory_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Subcategory Id"},"options":{"additionalProperties":true,"type":"object","title":"Options"},"description":{"type":"string","maxLength":500000,"title":"Description","default":""},"nfo_text":{"type":"string","maxLength":2000000,"title":"Nfo Text","default":""},"provenance":{"type":"string","maxLength":2000,"title":"Provenance","default":""},"poster_url":{"type":"string","maxLength":2000,"title":"Poster Url","default":""},"description_format":{"type":"string","enum":["standard","html"],"title":"Description Format","default":"standard"},"uploader_note":{"type":"string","maxLength":5000,"title":"Uploader Note","default":""},"integral":{"type":"boolean","title":"Integral","default":false},"scope":{"type":"string","enum":["movie","episode","season","integral","manual"],"title":"Scope","default":"manual"},"release_origin":{"additionalProperties":true,"type":"object","title":"Release Origin"},"naming":{"additionalProperties":true,"type":"object","title":"Naming"},"recommendation_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recommendation Key"},"presentation_metadata":{"additionalProperties":true,"type":"object","title":"Presentation Metadata"},"source_identity":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Source Identity"}},"additionalProperties":false,"type":"object","required":["title","source_path"],"title":"DraftCreate"},"DraftEdit":{"properties":{"version":{"type":"integer","title":"Version"},"changes":{"additionalProperties":true,"type":"object","title":"Changes"}},"type":"object","required":["version","changes"],"title":"DraftEdit"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ImportRequest":{"properties":{"kind":{"type":"string","enum":["radarr","sonarr"],"title":"Kind"},"library_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Library Id"},"scope":{"type":"string","enum":["movie","season","integral","episode"],"title":"Scope"},"season":{"anyOf":[{"type":"integer","maximum":1000.0,"minimum":0.0},{"type":"null"}],"title":"Season"},"episode_file_id":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Episode File Id"},"request_id":{"type":"string","format":"uuid","title":"Request Id"},"source_fingerprint":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Source Fingerprint"}},"additionalProperties":false,"type":"object","required":["kind","library_id","scope","request_id","source_fingerprint"],"title":"ImportRequest"},"Login":{"properties":{"username":{"type":"string","maxLength":100,"title":"Username"},"password":{"type":"string","maxLength":128,"title":"Password"}},"type":"object","required":["username","password"],"title":"Login"},"Publish":{"properties":{"version":{"type":"integer","title":"Version"},"digest":{"type":"string","title":"Digest"}},"type":"object","required":["version","digest"],"title":"Publish"},"RemoteImport":{"properties":{"version":{"type":"integer","minimum":1.0,"title":"Version"},"remote_fingerprint":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Remote Fingerprint"},"comparison_fingerprint":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Comparison Fingerprint"},"fields":{"items":{"type":"string"},"type":"array","maxItems":5,"minItems":1,"title":"Fields"}},"additionalProperties":false,"type":"object","required":["version","remote_fingerprint","comparison_fingerprint","fields"],"title":"RemoteImport"},"ScanRequest":{"properties":{"kind":{"type":"string","enum":["all","radarr","sonarr"],"title":"Kind","default":"all"},"limit":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Limit","default":20}},"type":"object","title":"ScanRequest"},"SettingsBody":{"properties":{"c411_api_key":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"C411 Api Key"},"announce_url":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Announce Url"}},"type":"object","title":"SettingsBody"},"SyncVersion":{"properties":{"version":{"type":"integer","minimum":1.0,"title":"Version"},"remote_fingerprint":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{64}$"},{"type":"null"}],"title":"Remote Fingerprint"},"comparison_fingerprint":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{64}$"},{"type":"null"}],"title":"Comparison Fingerprint"},"confirm_remote_overwrite":{"type":"boolean","title":"Confirm Remote Overwrite","default":false}},"additionalProperties":false,"type":"object","required":["version"],"title":"SyncVersion"},"TemplateBody":{"properties":{"name":{"type":"string","maxLength":150,"minLength":1,"title":"Name"},"content":{"type":"string","maxLength":200000,"minLength":1,"title":"Content"}},"type":"object","required":["name","content"],"title":"TemplateBody"},"TemplateEdit":{"properties":{"name":{"type":"string","maxLength":150,"minLength":1,"title":"Name"},"content":{"type":"string","maxLength":200000,"minLength":1,"title":"Content"},"version":{"type":"integer","title":"Version"}},"type":"object","required":["name","content","version"],"title":"TemplateEdit"},"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"},"Version":{"properties":{"version":{"type":"integer","title":"Version"}},"type":"object","required":["version"],"title":"Version"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}