{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/verification/verify_phone":{"post":{"tags":["verification"],"summary":"Verify Phone","operationId":"verify_phone_verification_verify_phone_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyPhonePayload"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/verification/verify_email":{"post":{"tags":["verification"],"summary":"Verify Email","operationId":"verify_email_verification_verify_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyEmailPayload"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/verification/refresh":{"post":{"tags":["verification"],"summary":"Refresh","operationId":"refresh_verification_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshPayload"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/get_or_create_by_phone":{"post":{"tags":["users"],"summary":"Get Or Create By Phone","operationId":"get_or_create_by_phone_users_get_or_create_by_phone_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetOrCreateByPhonePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserTokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/get_or_create_by_email":{"post":{"tags":["users"],"summary":"Get Or Create By Email","operationId":"get_or_create_by_email_users_get_or_create_by_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetOrCreateByEmailPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserTokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/restore_by_email":{"post":{"tags":["users"],"summary":"Restore By Email","operationId":"restore_by_email_users_restore_by_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreByEmailPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserTokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/login_by_auth_token":{"post":{"tags":["users"],"summary":"Login By Auth Token","operationId":"login_by_auth_token_users_login_by_auth_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetByAuthTokenPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserTokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/get_or_create_by_google_code":{"post":{"tags":["users"],"summary":"Get Or Create By Google Access Token","operationId":"get_or_create_by_google_access_token_users_get_or_create_by_google_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthenticateByGoogleCode"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserTokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/delete_profile":{"post":{"tags":["users"],"summary":"Delete Profile","operationId":"delete_profile_users_delete_profile_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteProfilePayload"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/users/profile":{"get":{"tags":["users"],"summary":"Get Profile","operationId":"get_profile_users_profile_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserInResponse"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["users"],"summary":"Update Profile","operationId":"update_profile_users_profile_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserInUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/users/profile/config":{"delete":{"tags":["users"],"summary":"Reset Profile Config","operationId":"reset_profile_config_users_profile_config_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/users/profile/writing_style/generate":{"post":{"tags":["users"],"summary":"Generate Writing Style","operationId":"generate_writing_style_users_profile_writing_style_generate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateWritingStylePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Generate Writing Style Users Profile Writing Style Generate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/users/profile/writing_style":{"delete":{"tags":["users"],"summary":"Reset Writing Style","operationId":"reset_writing_style_users_profile_writing_style_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/users/profile/achievements":{"delete":{"tags":["users"],"summary":"Reset Achievements","operationId":"reset_achievements_users_profile_achievements_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/users/add_credential":{"post":{"tags":["users"],"summary":"Add Credential","operationId":"add_credential_users_add_credential_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddCredentialPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/users/usage_plan":{"get":{"tags":["users"],"summary":"Get Usage Plan","operationId":"get_usage_plan_users_usage_plan_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsagePlanInResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/users/usage_upsells":{"get":{"tags":["users"],"summary":"Get Usage Upsells","operationId":"get_usage_upsells_users_usage_upsells_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageUpsellsInResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/users/usage_values":{"get":{"tags":["users"],"summary":"Get Usage Values","operationId":"get_usage_values_users_usage_values_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Usage Values Users Usage Values Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/users/get_sso_code":{"get":{"tags":["users"],"summary":"Get Sso Code","operationId":"get_sso_code_users_get_sso_code_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SSOCodeResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/users/login_by_sso_code":{"post":{"tags":["users"],"summary":"Login By Sso Code","operationId":"login_by_sso_code_users_login_by_sso_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginBySSOCodePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserTokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/referrals":{"get":{"tags":["users"],"summary":"Get Referrals","operationId":"get_referrals_users_referrals_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferralsListResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents":{"get":{"tags":["documents"],"summary":"Get Documents","operationId":"get_documents_documents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/DocumentInResponse"},"type":"array","title":"Response Get Documents Documents Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["documents"],"summary":"Create Document","operationId":"create_document_documents_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentInCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentDetailsInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}":{"get":{"tags":["documents"],"summary":"Get Document","operationId":"get_document_documents__document_id__get","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentDetailsInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["documents"],"summary":"Delete Document","operationId":"delete_document_documents__document_id__delete","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["documents"],"summary":"Update Document","operationId":"update_document_documents__document_id__patch","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentInUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}/slate":{"get":{"tags":["documents"],"summary":"Get Document Slate","operationId":"get_document_slate_documents__document_id__slate_get","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlateContent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}/config":{"patch":{"tags":["documents"],"summary":"Update Document Config","operationId":"update_document_config_documents__document_id__config_patch","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Config"}}},"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":[]}]}},"/documents/bulk-delete":{"post":{"tags":["documents"],"summary":"Bulk Delete Documents","operationId":"bulk_delete_documents_documents_bulk_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteDocumentsInRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}/commands":{"post":{"tags":["documents"],"summary":"Apply Document Command","operationId":"apply_document_command_documents__document_id__commands_post","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentCommandInRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DocumentCommandResult"},{"$ref":"#/components/schemas/PromptInResponse"}],"title":"Response Apply Document Command Documents  Document Id  Commands Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}/prompts/{prompt_id}":{"get":{"tags":["documents"],"summary":"Get Document Prompt","operationId":"get_document_prompt_documents__document_id__prompts__prompt_id__get","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"},{"required":true,"schema":{"type":"string","title":"Prompt Id"},"name":"prompt_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlateContent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}/sources":{"get":{"tags":["documents","sources"],"summary":"Get Document Sources","operationId":"get_document_sources_documents__document_id__sources_get","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sources"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["documents","sources"],"summary":"Add Source To Document","operationId":"add_source_to_document_documents__document_id__sources_post","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sources"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["documents","sources"],"summary":"Replace Source In Document","operationId":"replace_source_in_document_documents__document_id__sources_patch","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sources"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}/sources/{source_id}":{"get":{"tags":["documents","sources"],"summary":"Get Document Source By Id","operationId":"get_document_source_by_id_documents__document_id__sources__source_id__get","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"},{"required":true,"schema":{"type":"string","title":"Source Id"},"name":"source_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["documents","sources"],"summary":"Delete Document Source By Id","operationId":"delete_document_source_by_id_documents__document_id__sources__source_id__delete","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"},{"required":true,"schema":{"type":"string","title":"Source Id"},"name":"source_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sources"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}/sources_search":{"get":{"tags":["documents","sources"],"summary":"Search Sources For Document","operationId":"search_sources_for_document_documents__document_id__sources_search_get","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"},{"required":false,"schema":{"type":"string","title":"Query","default":""},"name":"query","in":"query"},{"required":false,"schema":{"type":"string","title":"Text","default":""},"name":"text","in":"query"},{"required":false,"schema":{"type":"integer","title":"Issued"},"name":"issued","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Source"},"type":"array","title":"Response Search Sources For Document Documents  Document Id  Sources Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}/sources_query":{"get":{"tags":["documents","sources"],"summary":"Text To Search Query","operationId":"text_to_search_query_documents__document_id__sources_query_get","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"},{"required":true,"schema":{"type":"string","title":"Text"},"name":"text","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}/source_files":{"post":{"tags":["documents","sources"],"summary":"Add Source File To Document","operationId":"add_source_file_to_document_documents__document_id__source_files_post","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_add_source_file_to_document_documents__document_id__source_files_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sources"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}/sources_refresh":{"post":{"tags":["documents","sources"],"summary":"Refresh Sources","operationId":"refresh_sources_documents__document_id__sources_refresh_post","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sources"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}/prompts/{prompt_id}/usage_values":{"post":{"tags":["documents"],"summary":"Set Prompt Text Generation In Words Usage Values","operationId":"set_prompt_text_generation_in_words_usage_values_documents__document_id__prompts__prompt_id__usage_values_post","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"},{"required":true,"schema":{"type":"string","title":"Prompt Id"},"name":"prompt_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentSetUsageValuesResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}/usage_values":{"post":{"tags":["documents"],"summary":"Set Usage Values By Word Count","operationId":"set_usage_values_by_word_count_documents__document_id__usage_values_post","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetUsageValuesByWordCountInRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentSetUsageValuesResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}/content":{"post":{"tags":["documents"],"summary":"Update Content","operationId":"update_content_documents__document_id__content_post","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDocumentContentInRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentDetailsInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}/plagiarism_check":{"get":{"tags":["documents","plagiarism_check"],"summary":"Get Plagiarism Check","operationId":"get_plagiarism_check_documents__document_id__plagiarism_check_get","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlagiarismCheckInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["documents","plagiarism_check"],"summary":"Request Plagiarism Check","operationId":"request_plagiarism_check_documents__document_id__plagiarism_check_post","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlagiarismCheckInRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlagiarismCheckInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}/plagiarism_check/read":{"post":{"tags":["documents","plagiarism_check"],"summary":"Request Plagiarism Check Read","operationId":"request_plagiarism_check_read_documents__document_id__plagiarism_check_read_post","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlagiarismCheckInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}/plagiarism_check/reject":{"post":{"tags":["documents","plagiarism_check"],"summary":"Request Plagiarism Check Reject","operationId":"request_plagiarism_check_reject_documents__document_id__plagiarism_check_reject_post","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlagiarismCheckInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}/plagiarism_check/reset":{"post":{"tags":["documents","plagiarism_check"],"summary":"Request Plagiarism Check Reset","operationId":"request_plagiarism_check_reset_documents__document_id__plagiarism_check_reset_post","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlagiarismCheckInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}/plagiarism_check/results":{"get":{"tags":["documents","plagiarism_check"],"summary":"Get Plagiarism Check Results","operationId":"get_plagiarism_check_results_documents__document_id__plagiarism_check_results_get","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Plagiarism Check Results Documents  Document Id  Plagiarism Check Results Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}/detect_ai":{"get":{"tags":["documents","detect_ai"],"summary":"Get Detect Ai Result","operationId":"get_detect_ai_result_documents__document_id__detect_ai_get","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiDetectResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["documents","detect_ai"],"summary":"Detect Ai","operationId":"detect_ai_documents__document_id__detect_ai_post","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetectInRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Detect Ai Documents  Document Id  Detect Ai Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["documents","detect_ai"],"summary":"Update Detect Ai Result","operationId":"update_detect_ai_result_documents__document_id__detect_ai_patch","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiDetectResultInUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiDetectResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}/detect_ai/reset":{"post":{"tags":["documents","detect_ai"],"summary":"Reset Detect Ai","operationId":"reset_detect_ai_documents__document_id__detect_ai_reset_post","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiDetectResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}/humanize":{"post":{"tags":["documents","detect_ai"],"summary":"Humanize Document","operationId":"humanize_document_documents__document_id__humanize_post","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Strings"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{},"type":"array","title":"Response Humanize Document Documents  Document Id  Humanize Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}/rephrase":{"post":{"tags":["documents","rephrase"],"summary":"Rephrase Document","operationId":"rephrase_document_documents__document_id__rephrase_post","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"},{"required":false,"schema":{"type":"string","enum":["academic","same"],"title":"Style","default":"same"},"name":"style","in":"query"}],"requestBody":{"content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Strings"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{},"type":"array","title":"Response Rephrase Document Documents  Document Id  Rephrase Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}/rewrite_in_my_style":{"post":{"tags":["documents","rewrite_in_my_style"],"summary":"Rewrite In My Style Document","operationId":"rewrite_in_my_style_document_documents__document_id__rewrite_in_my_style_post","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Strings"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{},"type":"array","title":"Response Rewrite In My Style Document Documents  Document Id  Rewrite In My Style Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}/assistant":{"get":{"tags":["documents","assistant"],"summary":"Load Assistant Messages","operationId":"load_assistant_messages_documents__document_id__assistant_get","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"},{"required":false,"schema":{"type":"string","title":"Before"},"name":"before","in":"query"},{"required":false,"schema":{"type":"integer","title":"Limit","default":20},"name":"limit","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PromptInResponse"},"type":"array","title":"Response Load Assistant Messages Documents  Document Id  Assistant Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["documents","assistant"],"summary":"Create Assistant Message","operationId":"create_assistant_message_documents__document_id__assistant_post","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAssistantMessageInRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["documents","assistant"],"summary":"Clear Assistant Messages","operationId":"clear_assistant_messages_documents__document_id__assistant_delete","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}/assistant/attachments":{"post":{"tags":["documents","assistant"],"summary":"Upload Assistant Attachment","operationId":"upload_assistant_attachment_documents__document_id__assistant_attachments_post","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_assistant_attachment_documents__document_id__assistant_attachments_post"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}/assistant/attachments/{attachment_id}":{"delete":{"tags":["documents","assistant"],"summary":"Delete Assistant Attachment","operationId":"delete_assistant_attachment_documents__document_id__assistant_attachments__attachment_id__delete","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"},{"required":true,"schema":{"type":"string","title":"Attachment Id"},"name":"attachment_id","in":"path"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}/assistant/content":{"get":{"tags":["documents","assistant"],"summary":"Get Assistant Content","operationId":"get_assistant_content_documents__document_id__assistant_content_get","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentInRequest"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["documents","assistant"],"summary":"Update Assistant Content","operationId":"update_assistant_content_documents__document_id__assistant_content_post","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentInRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}/assistant/quick_replies":{"get":{"tags":["documents","assistant"],"summary":"Assistant Quick Replies","operationId":"assistant_quick_replies_documents__document_id__assistant_quick_replies_get","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/QuickReply"},"type":"array","title":"Response Assistant Quick Replies Documents  Document Id  Assistant Quick Replies Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/documents/{document_id}/upload-image":{"post":{"tags":["documents"],"summary":"Upload Image","operationId":"upload_image_documents__document_id__upload_image_post","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_image_documents__document_id__upload_image_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/completions/{document_id}/commands/{prompt_id}":{"get":{"tags":["completions"],"summary":"Completions","operationId":"completions_completions__document_id__commands__prompt_id__get","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"},{"required":true,"schema":{"type":"string","title":"Prompt Id"},"name":"prompt_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/completions/{document_id}/assistant/{prompt_id}":{"get":{"tags":["completions","assistant"],"summary":"Assistant Response Stream","operationId":"assistant_response_stream_completions__document_id__assistant__prompt_id__get","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"},{"required":true,"schema":{"type":"string","title":"Prompt Id"},"name":"prompt_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/completions/{document_id}/draft_stream":{"get":{"tags":["completions"],"summary":"Generate Draft Stream","operationId":"generate_draft_stream_completions__document_id__draft_stream_get","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/completions/{document_id}/discussion_post_stream":{"get":{"tags":["completions"],"summary":"Generate Discussion Post Stream","operationId":"generate_discussion_post_stream_completions__document_id__discussion_post_stream_get","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/completions/{document_id}/callout":{"get":{"tags":["completions"],"summary":"Callout","operationId":"callout_completions__document_id__callout_get","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"callout":{"type":"string"}},"type":"object","required":["callout"]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/completions/{document_id}/writing-plan":{"get":{"tags":["completions"],"summary":"Writing Plan","operationId":"writing_plan_completions__document_id__writing_plan_get","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"sections":{"items":{"properties":{"title":{"type":"string"},"paragraphs":{"items":{"type":"string"},"type":"array"},"subsections":{"items":{"properties":{"title":{"type":"string"},"paragraphs":{"items":{"type":"string"},"type":"array"}},"type":"object","required":["title","paragraphs"]},"type":"array"}},"type":"object","required":["title","paragraphs","subsections"]},"type":"array"}},"type":"object","required":["sections"]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/settings":{"get":{"tags":["settings"],"summary":"Get Settings","operationId":"get_settings_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/exports":{"post":{"tags":["shares"],"summary":"Export Document","operationId":"export_document_exports_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportInRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/commands":{"get":{"tags":["commands"],"summary":"Get Document Commands","operationId":"get_document_commands_commands_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CommandInResponse"},"type":"array","title":"Response Get Document Commands Commands Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/subscriptions/checkout_session":{"post":{"tags":["subscriptions"],"summary":"Create Checkout Session","operationId":"create_checkout_session_subscriptions_checkout_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSubscriptionInRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSessionInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/subscriptions/one_dollar_payment_session":{"post":{"tags":["subscriptions"],"summary":"Create One Dollar Payment Session","operationId":"create_one_dollar_payment_session_subscriptions_one_dollar_payment_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOneDollarPaymentSessionInRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSessionInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/subscriptions/trial_payment_session":{"post":{"tags":["subscriptions"],"summary":"Create Trial Payment Session","operationId":"create_trial_payment_session_subscriptions_trial_payment_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTrialPaymentSessionInRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSessionInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/subscriptions/billing_portal":{"post":{"tags":["subscriptions"],"summary":"Billing Portal","operationId":"billing_portal_subscriptions_billing_portal_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBillingPortalInRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBillingPortalInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/subscriptions/webhooks/{account_id}":{"post":{"tags":["subscriptions"],"summary":"Webhooks","operationId":"webhooks_subscriptions_webhooks__account_id__post","parameters":[{"required":true,"schema":{"type":"string","title":"Account Id"},"name":"account_id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookInRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/subscriptions/all":{"get":{"tags":["subscriptions"],"summary":"Get All Subscriptions","operationId":"get_all_subscriptions_subscriptions_all_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SubscriptionInResponse"},"type":"array","title":"Response Get All Subscriptions Subscriptions All Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/subscriptions":{"get":{"tags":["subscriptions"],"summary":"Get Subscription","operationId":"get_subscription_subscriptions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionInResponse"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["subscriptions"],"summary":"Modify Subscription","operationId":"modify_subscription_subscriptions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModifySubscriptionInRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/subscriptions/cancel":{"post":{"tags":["subscriptions"],"summary":"Cancel Subscription","operationId":"cancel_subscription_subscriptions_cancel_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelSubscriptionInRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/subscriptions/add_coupon":{"post":{"tags":["subscriptions"],"summary":"Add Subscription Coupon","operationId":"add_subscription_coupon_subscriptions_add_coupon_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddCouponInRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/subscriptions/pause":{"post":{"tags":["subscriptions"],"summary":"Pause Subscription","operationId":"pause_subscription_subscriptions_pause_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PauseSubscriptionInRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/subscriptions/resume":{"post":{"tags":["subscriptions"],"summary":"Resume Subscription","operationId":"resume_subscription_subscriptions_resume_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionInResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/subscriptions/set_cancel_reminder":{"post":{"tags":["subscriptions"],"summary":"Set Cancel Reminder Endpoint","operationId":"set_cancel_reminder_endpoint_subscriptions_set_cancel_reminder_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/subscriptions/discount_recharge_last_attempt/{subscription_id}":{"post":{"tags":["subscriptions"],"summary":"Discount Recharge Last Attempt","operationId":"discount_recharge_last_attempt_subscriptions_discount_recharge_last_attempt__subscription_id__post","parameters":[{"required":true,"schema":{"type":"string","title":"Subscription Id"},"name":"subscription_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/upsells":{"post":{"tags":["upsells"],"summary":"Buy Upsell","operationId":"buy_upsell_upsells_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyUpsell"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyUpsellResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/achievements/claim-reward":{"post":{"tags":["achievements"],"summary":"Claim Reward","operationId":"claim_reward_achievements_claim_reward_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/references/search/isbn":{"get":{"tags":["references"],"summary":"Isbn Search","operationId":"isbn_search_references_search_isbn_get","parameters":[{"required":true,"schema":{"type":"string","title":"Isbn"},"name":"isbn","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Book"},"type":"array","title":"Response Isbn Search References Search Isbn Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/references/search/auto":{"get":{"tags":["references"],"summary":"Auto Search","operationId":"auto_search_references_search_auto_get","parameters":[{"required":true,"schema":{"type":"string","title":"Term"},"name":"term","in":"query"},{"required":false,"schema":{"type":"string","title":"Paper Type","default":""},"name":"paper_type","in":"query"},{"required":false,"schema":{"type":"string","title":"Sorting","default":""},"name":"sorting","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"anyOf":[{"$ref":"#/components/schemas/Book"},{"$ref":"#/components/schemas/ArticleJournal"},{"$ref":"#/components/schemas/Webpage"}]},"type":"array","title":"Response Auto Search References Search Auto Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/references/source_string":{"get":{"tags":["references"],"summary":"Add Source To Document","operationId":"add_source_to_document_references_source_string_get","parameters":[{"required":true,"schema":{"type":"string","title":"Source String"},"name":"source_string","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/references/file2source":{"post":{"tags":["references"],"summary":"Files2Sources","operationId":"files2sources_references_file2source_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_files2sources_references_file2source_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/references/{source_id}/usage_values":{"post":{"tags":["references"],"summary":"Set Open Source In Requests Usage Values","operationId":"set_open_source_in_requests_usage_values_references__source_id__usage_values_post","parameters":[{"required":true,"schema":{"type":"string","title":"Source Id"},"name":"source_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Set Open Source In Requests Usage Values References  Source Id  Usage Values Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/copyleaks/webhooks/{path}":{"post":{"tags":["copyleaks"],"summary":"Webhooks","operationId":"webhooks_copyleaks_webhooks__path__post","responses":{"204":{"description":"Successful Response"}}}},"/text_processing/detect_ai":{"post":{"tags":["text_processing"],"summary":"Detect Ai","operationId":"detect_ai_text_processing_detect_ai_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetectAiRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Detect Ai Text Processing Detect Ai Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/text_processing/humanize":{"post":{"tags":["text_processing"],"summary":"Humanize","operationId":"humanize_text_processing_humanize_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanizeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{},"type":"array","title":"Response Humanize Text Processing Humanize Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/text_processing/extract_takeaways":{"post":{"tags":["text_processing"],"summary":"Extract Takeaways","operationId":"extract_takeaways_text_processing_extract_takeaways_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractTakeawaysRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Extract Takeaways Text Processing Extract Takeaways Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/text_processing/generate_questions":{"post":{"tags":["text_processing"],"summary":"Generate Questions","operationId":"generate_questions_text_processing_generate_questions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateQuestionsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Generate Questions Text Processing Generate Questions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/text_processing/word_rephrase":{"post":{"tags":["text_processing"],"summary":"Word Rephrase","operationId":"word_rephrase_text_processing_word_rephrase_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WordRephraseRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Word Rephrase Text Processing Word Rephrase Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/text_processing/word_define":{"post":{"tags":["text_processing"],"summary":"Word Define","operationId":"word_define_text_processing_word_define_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WordDefineRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Word Define Text Processing Word Define Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/text_processing/extract_text":{"post":{"tags":["text_processing"],"summary":"Extract Text","operationId":"extract_text_text_processing_extract_text_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_extract_text_text_processing_extract_text_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractTextResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/funnel/analyze_instructions":{"post":{"summary":"Analyze Instructions","operationId":"analyze_instructions_funnel_analyze_instructions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyzeInstructions"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyzeInstructionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/funnel/fix_instructions":{"post":{"summary":"Fix Instructions","operationId":"fix_instructions_funnel_fix_instructions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FixInstructions"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FixInstructionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/funnel/ideas_document/{document_id}":{"get":{"summary":"Ideas Document","operationId":"ideas_document_funnel_ideas_document__document_id__get","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdeasResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/funnel/detect_boundaries":{"post":{"summary":"Detect Boundaries","operationId":"detect_boundaries_funnel_detect_boundaries_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetectBoundariesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Detect Boundaries Funnel Detect Boundaries Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/funnel/files2sources":{"post":{"summary":"Files2Sources","operationId":"files2sources_funnel_files2sources_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_files2sources_funnel_files2sources_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/funnel/files2sources_v2":{"post":{"summary":"Files2Sources V2","operationId":"files2sources_v2_funnel_files2sources_v2_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_files2sources_v2_funnel_files2sources_v2_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Files2Sources V2 Funnel Files2Sources V2 Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/funnel/files2instructions":{"post":{"summary":"Files2Instructions","operationId":"files2instructions_funnel_files2instructions_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_files2instructions_funnel_files2instructions_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/funnel/urls2sources":{"post":{"summary":"Urls2Sources","operationId":"urls2sources_funnel_urls2sources_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UrlsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/funnel/docx2content":{"post":{"summary":"Docx2Content","operationId":"docx2content_funnel_docx2content_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_docx2content_funnel_docx2content_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlateContent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/funnel/references2sources":{"post":{"summary":"References2Sources","operationId":"references2sources_funnel_references2sources_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReferencesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response References2Sources Funnel References2Sources Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/funnel/generate_outline":{"post":{"summary":"Generate Outline","operationId":"generate_outline_funnel_generate_outline_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftContextRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutlineResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/funnel/generate_alt_outline":{"post":{"summary":"Generate Alt Outline","operationId":"generate_alt_outline_funnel_generate_alt_outline_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftContextRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutlineResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/funnel/draft_document":{"post":{"summary":"Draft Document","operationId":"draft_document_funnel_draft_document_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftContextRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentDetailsInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/funnel/my_draft_document":{"post":{"summary":"My Draft Document","operationId":"my_draft_document_funnel_my_draft_document_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftContextRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentDetailsInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/funnel/outline_document":{"post":{"summary":"Outline Document","operationId":"outline_document_funnel_outline_document_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftContextRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentDetailsInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/funnel/detailed_outline_document":{"post":{"summary":"Detailed Outline Document","operationId":"detailed_outline_document_funnel_detailed_outline_document_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftContextRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentDetailsInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/funnel/discussion_post_document":{"post":{"summary":"Discussion Post Document","operationId":"discussion_post_document_funnel_discussion_post_document_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftContextRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentDetailsInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/funnel/suggest_sources":{"post":{"summary":"Suggest Sources","operationId":"suggest_sources_funnel_suggest_sources_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftContextRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourcesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clients":{"get":{"tags":["admin"],"summary":"Get Clients","operationId":"get_clients_admin_clients_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/clients/{client_id}":{"get":{"tags":["admin"],"summary":"Get Client","operationId":"get_client_admin_clients__client_id__get","parameters":[{"required":true,"schema":{"type":"string","title":"Client Id"},"name":"client_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/documents":{"get":{"tags":["admin"],"summary":"Get Documents","operationId":"get_documents_admin_documents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/documents/{document_id}":{"get":{"tags":["admin"],"summary":"Get Document","operationId":"get_document_admin_documents__document_id__get","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/csv/{file_name}":{"get":{"tags":["admin"],"summary":"Get Csv File","operationId":"get_csv_file_admin_csv__file_name__get","parameters":[{"required":true,"schema":{"type":"string","title":"File Name"},"name":"file_name","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/add_customer_balance":{"post":{"tags":["admin"],"summary":"Add Customer Balance","operationId":"add_customer_balance_admin_add_customer_balance_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddCustomerBalanceInRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddCustomerBalanceInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/customer_balance":{"get":{"tags":["admin"],"summary":"Get Customer Balance","operationId":"get_customer_balance_admin_customer_balance_get","parameters":[{"required":true,"schema":{"type":"string","title":"Customer Id"},"name":"customer_id","in":"query"},{"required":true,"schema":{"type":"string","title":"Account Id"},"name":"account_id","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetCustomerBalanceOutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/healthcheck/api":{"get":{"tags":["healthcheck"],"summary":"Api Healthcheck","operationId":"api_healthcheck_healthcheck_api_get","parameters":[{"required":true,"schema":{"type":"string","title":"Key"},"name":"key","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/healthcheck/openai":{"get":{"tags":["healthcheck"],"summary":"Openai Healthcheck","operationId":"openai_healthcheck_healthcheck_openai_get","parameters":[{"required":true,"schema":{"type":"string","title":"Key"},"name":"key","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/healthcheck/detectai":{"get":{"tags":["healthcheck"],"summary":"Detectai Healthcheck","operationId":"detectai_healthcheck_healthcheck_detectai_get","parameters":[{"required":true,"schema":{"type":"string","title":"Key"},"name":"key","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/healthcheck/detectai2":{"get":{"tags":["healthcheck"],"summary":"Detectai2 Healthcheck","operationId":"detectai2_healthcheck_healthcheck_detectai2_get","parameters":[{"required":true,"schema":{"type":"string","title":"Key"},"name":"key","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/healthcheck/any2source":{"get":{"tags":["healthcheck"],"summary":"Any2Source Healthcheck","operationId":"any2source_healthcheck_healthcheck_any2source_get","parameters":[{"required":true,"schema":{"type":"string","title":"Key"},"name":"key","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mcp/get_document_assistant_context/{document_id}":{"get":{"tags":["mcp"],"summary":"Completions","operationId":"completions_mcp_get_document_assistant_context__document_id__get","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/mcp/search_sources/{document_id}":{"get":{"tags":["mcp"],"summary":"Search Sources","operationId":"search_sources_mcp_search_sources__document_id__get","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"},{"required":false,"schema":{"type":"string","title":"Query","default":""},"name":"query","in":"query"},{"required":false,"schema":{"type":"integer","title":"Issued"},"name":"issued","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Source"},"type":"array","title":"Response Search Sources Mcp Search Sources  Document Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/mcp/add_source_to_document/{document_id}":{"post":{"tags":["mcp"],"summary":"Add Source To Document","operationId":"add_source_to_document_mcp_add_source_to_document__document_id__post","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/mcp/delete_source_from_document/{document_id}/{source_id}":{"delete":{"tags":["mcp"],"summary":"Delete Source From Document","operationId":"delete_source_from_document_mcp_delete_source_from_document__document_id___source_id__delete","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"},{"required":true,"schema":{"type":"string","title":"Source Id"},"name":"source_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/mcp/update_document/{document_id}":{"post":{"tags":["mcp"],"summary":"Update Document","operationId":"update_document_mcp_update_document__document_id__post","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDocumentPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/genstate":{"post":{"tags":["genstate"],"summary":"Create Document From State","operationId":"create_document_from_state_api_v1_genstate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenStateInCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentDetailsInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/genstate/{document_id}":{"get":{"tags":["genstate"],"summary":"Get State","operationId":"get_state_api_v1_genstate__document_id__get","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenStateInResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["genstate"],"summary":"Update Checkpoint","operationId":"update_checkpoint_api_v1_genstate__document_id__patch","parameters":[{"required":true,"schema":{"type":"string","title":"Document Id"},"name":"document_id","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckpointInUpdate"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}}},"components":{"schemas":{"AddCouponInRequest":{"properties":{"coupon_code":{"type":"string","title":"Coupon Code"}},"type":"object","required":["coupon_code"],"title":"AddCouponInRequest"},"AddCredentialPayload":{"properties":{"phone":{"type":"string","title":"Phone"},"verification_code":{"type":"string","title":"Verification Code"}},"type":"object","required":["phone","verification_code"],"title":"AddCredentialPayload"},"AddCustomerBalanceInRequest":{"properties":{"user_id":{"type":"string","title":"User Id"},"amount_cents":{"type":"integer","exclusiveMinimum":0.0,"title":"Amount Cents"},"description":{"type":"string","title":"Description"}},"type":"object","required":["user_id","amount_cents","description"],"title":"AddCustomerBalanceInRequest"},"AddCustomerBalanceInResponse":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","title":"Object"},"amount":{"type":"integer","title":"Amount"},"currency":{"type":"string","title":"Currency"},"customer":{"type":"string","title":"Customer"},"description":{"type":"string","title":"Description"},"created":{"type":"integer","title":"Created"}},"type":"object","required":["id","object","amount","currency","customer","description","created"],"title":"AddCustomerBalanceInResponse"},"AiDetectResult":{"properties":{"score":{"type":"number","title":"Score"},"updated_date":{"type":"string","format":"date-time","title":"Updated Date"}},"type":"object","required":["updated_date"],"title":"AiDetectResult"},"AiDetectResultInUpdate":{"properties":{"score":{"type":"number","title":"Score"}},"type":"object","title":"AiDetectResultInUpdate"},"AnalyzeInstructions":{"properties":{"instructions":{"type":"string","title":"Instructions"}},"type":"object","required":["instructions"],"title":"AnalyzeInstructions"},"AnalyzeInstructionsResponse":{"properties":{"fix_instructions_question":{"type":"string","title":"Fix Instructions Question"}},"type":"object","required":["fix_instructions_question"],"title":"AnalyzeInstructionsResponse"},"ArticleJournal":{"properties":{"type":{"allOf":[{"$ref":"#/components/schemas/Type"}],"default":"article-journal"},"title":{"type":"string","title":"Title"},"publisher":{"type":"string","title":"Publisher","default":""},"author":{"items":{"$ref":"#/components/schemas/Author"},"type":"array","title":"Author","default":[]},"container_title":{"type":"string","title":"Container Title"},"issued":{"type":"string","title":"Issued","default":""},"accessed":{"type":"string","title":"Accessed","default":""},"volume":{"type":"string","title":"Volume","default":""},"issue":{"type":"string","title":"Issue","default":""},"page":{"type":"string","title":"Page","default":""},"DOI":{"type":"string","title":"Doi","default":""},"URL":{"type":"string","title":"Url","default":""}},"type":"object","required":["title","container_title"],"title":"ArticleJournal"},"AttachmentInResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"kind":{"type":"string","title":"Kind"},"type":{"type":"string","title":"Type"},"truncated":{"type":"boolean","title":"Truncated"},"notes":{"items":{"type":"string"},"type":"array","title":"Notes"},"source":{"$ref":"#/components/schemas/AttachmentSourceInResponse"}},"type":"object","required":["id","name","kind","type","truncated","notes"],"title":"AttachmentInResponse"},"AttachmentSourceInResponse":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"authors":{"type":"string","title":"Authors"}},"type":"object","required":["title","authors"],"title":"AttachmentSourceInResponse"},"AuthenticateByGoogleCode":{"properties":{"code":{"type":"string","title":"Code"},"utms":{"type":"string","title":"Utms"},"country_code":{"type":"string","title":"Country Code"},"quiz":{"$ref":"#/components/schemas/Quiz"},"referred_by_code":{"type":"string","title":"Referred By Code"},"provider":{"type":"string","title":"Provider"}},"type":"object","required":["code"],"title":"AuthenticateByGoogleCode"},"Author":{"properties":{"family":{"type":"string","title":"Family"},"given":{"type":"string","title":"Given"}},"type":"object","required":["family","given"],"title":"Author"},"Body_add_source_file_to_document_documents__document_id__source_files_post":{"properties":{"files":{"items":{"type":"string","format":"binary"},"type":"array","title":"Files"}},"type":"object","required":["files"],"title":"Body_add_source_file_to_document_documents__document_id__source_files_post"},"Body_docx2content_funnel_docx2content_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_docx2content_funnel_docx2content_post"},"Body_extract_text_text_processing_extract_text_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_extract_text_text_processing_extract_text_post"},"Body_files2instructions_funnel_files2instructions_post":{"properties":{"files":{"items":{"type":"string","format":"binary"},"type":"array","title":"Files"},"instructions":{"type":"string","title":"Instructions","default":""}},"type":"object","required":["files"],"title":"Body_files2instructions_funnel_files2instructions_post"},"Body_files2sources_funnel_files2sources_post":{"properties":{"files":{"items":{"type":"string","format":"binary"},"type":"array","title":"Files"},"short_instructions":{"type":"string","title":"Short Instructions","default":""}},"type":"object","required":["files"],"title":"Body_files2sources_funnel_files2sources_post"},"Body_files2sources_references_file2source_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"short_instructions":{"type":"string","title":"Short Instructions","default":""}},"type":"object","required":["file"],"title":"Body_files2sources_references_file2source_post"},"Body_files2sources_v2_funnel_files2sources_v2_post":{"properties":{"files":{"items":{"type":"string","format":"binary"},"type":"array","title":"Files"},"short_instructions":{"type":"string","title":"Short Instructions","default":""}},"type":"object","required":["files"],"title":"Body_files2sources_v2_funnel_files2sources_v2_post"},"Body_upload_assistant_attachment_documents__document_id__assistant_attachments_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_assistant_attachment_documents__document_id__assistant_attachments_post"},"Body_upload_image_documents__document_id__upload_image_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_image_documents__document_id__upload_image_post"},"Book":{"properties":{"type":{"allOf":[{"$ref":"#/components/schemas/Type"}],"default":"book"},"title":{"type":"string","title":"Title"},"publisher":{"type":"string","title":"Publisher","default":""},"author":{"items":{"$ref":"#/components/schemas/Author"},"type":"array","title":"Author","default":[]},"issued":{"type":"string","title":"Issued","default":""},"accessed":{"type":"string","title":"Accessed","default":""},"volume":{"type":"string","title":"Volume","default":""},"edition":{"type":"string","title":"Edition","default":""},"page":{"type":"string","title":"Page","default":""},"URL":{"type":"string","title":"Url","default":""}},"type":"object","required":["title"],"title":"Book"},"BulkDeleteDocumentsInRequest":{"properties":{"ids":{"items":{"type":"string"},"type":"array","maxItems":100,"minItems":1,"title":"Ids"}},"type":"object","required":["ids"],"title":"BulkDeleteDocumentsInRequest"},"BuyUpsell":{"properties":{"product_id":{"type":"string","title":"Product Id"},"success_url":{"type":"string","maxLength":65536,"minLength":1,"format":"uri","title":"Success Url"},"cancel_url":{"type":"string","maxLength":65536,"minLength":1,"format":"uri","title":"Cancel Url"},"promotion_code":{"type":"string","title":"Promotion Code"}},"type":"object","required":["product_id","success_url","cancel_url"],"title":"BuyUpsell"},"BuyUpsellResult":{"properties":{"result":{"type":"string","enum":["ok","action_required"],"title":"Result"},"checkout_session":{"$ref":"#/components/schemas/CheckoutSession"}},"type":"object","required":["result"],"title":"BuyUpsellResult"},"CancelSubscriptionInRequest":{"properties":{"comment":{"type":"string","title":"Comment"}},"type":"object","required":["comment"],"title":"CancelSubscriptionInRequest"},"CheckoutSession":{"properties":{"id":{"type":"string","title":"Id"},"url":{"type":"string","maxLength":65536,"minLength":1,"format":"uri","title":"Url"},"client_reference_id":{"type":"string","title":"Client Reference Id"}},"type":"object","required":["id","url","client_reference_id"],"title":"CheckoutSession"},"CheckoutSessionInResponse":{"properties":{"id":{"type":"string","title":"Id"},"url":{"type":"string","maxLength":65536,"minLength":1,"format":"uri","title":"Url"},"client_reference_id":{"type":"string","title":"Client Reference Id"}},"type":"object","required":["id","url","client_reference_id"],"title":"CheckoutSessionInResponse"},"CheckpointInUpdate":{"properties":{"checkpoint":{"type":"object","title":"Checkpoint"}},"type":"object","title":"CheckpointInUpdate"},"Citation":{"properties":{"title":{"type":"string","title":"Title"},"snippet":{"type":"string","title":"Snippet"}},"type":"object","required":["title","snippet"],"title":"Citation"},"CommandInResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"ns":{"items":{"type":"string"},"type":"array","title":"Ns","default":[]},"group_name":{"$ref":"#/components/schemas/GroupName"},"context":{"$ref":"#/components/schemas/Context"},"variables":{"items":{"$ref":"#/components/schemas/VariableInResponse"},"type":"array","title":"Variables"},"is_available":{"type":"boolean","title":"Is Available"},"insert_placement":{"$ref":"#/components/schemas/InsertPlacement"}},"type":"object","required":["id","name","context","is_available"],"title":"CommandInResponse"},"CommandPromptInResponse":{"properties":{"id":{"type":"string","title":"Id"},"prompt":{"type":"string","title":"Prompt"},"response":{"type":"string","title":"Response"},"response_code":{"$ref":"#/components/schemas/ResponseCode"}},"type":"object","required":["id","prompt","response","response_code"],"title":"CommandPromptInResponse"},"ContentInRequest":{"properties":{"content":{"items":{"type":"object"},"type":"array","title":"Content"}},"type":"object","title":"ContentInRequest"},"Context":{"enum":["blank","blank_header","document","history","selected_text","config"],"title":"Context","description":"An enumeration."},"CreateAssistantMessageInRequest":{"properties":{"text":{"type":"string","title":"Text"},"attachment_ids":{"items":{"type":"string"},"type":"array","title":"Attachment Ids","default":[]}},"type":"object","required":["text"],"title":"CreateAssistantMessageInRequest"},"CreateBillingPortalInRequest":{"properties":{"return_url":{"type":"string","maxLength":65536,"minLength":1,"format":"uri","title":"Return Url"}},"type":"object","required":["return_url"],"title":"CreateBillingPortalInRequest"},"CreateBillingPortalInResponse":{"properties":{"id":{"type":"string","title":"Id"},"url":{"type":"string","maxLength":65536,"minLength":1,"format":"uri","title":"Url"}},"type":"object","required":["id","url"],"title":"CreateBillingPortalInResponse"},"CreateOneDollarPaymentSessionInRequest":{"properties":{"price_id":{"type":"string","title":"Price Id"},"success_url":{"type":"string","maxLength":65536,"minLength":1,"format":"uri","title":"Success Url"},"cancel_url":{"type":"string","maxLength":65536,"minLength":1,"format":"uri","title":"Cancel Url"}},"type":"object","required":["price_id","success_url","cancel_url"],"title":"CreateOneDollarPaymentSessionInRequest"},"CreateSubscriptionInRequest":{"properties":{"price_id":{"type":"string","title":"Price Id"},"success_url":{"type":"string","maxLength":65536,"minLength":1,"format":"uri","title":"Success Url"},"cancel_url":{"type":"string","maxLength":65536,"minLength":1,"format":"uri","title":"Cancel Url"},"promotion_code":{"type":"string","title":"Promotion Code"}},"type":"object","required":["price_id","success_url","cancel_url"],"title":"CreateSubscriptionInRequest"},"CreateTrialPaymentSessionInRequest":{"properties":{"price_id":{"type":"string","title":"Price Id"},"success_url":{"type":"string","maxLength":65536,"minLength":1,"format":"uri","title":"Success Url"},"cancel_url":{"type":"string","maxLength":65536,"minLength":1,"format":"uri","title":"Cancel Url"},"amount":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Amount"},"product_name":{"type":"string","title":"Product Name"},"trial_period_days":{"type":"integer","maximum":7.0,"minimum":1.0,"title":"Trial Period Days","default":7}},"type":"object","required":["price_id","success_url","cancel_url","amount","product_name"],"title":"CreateTrialPaymentSessionInRequest"},"Credential":{"properties":{"name":{"$ref":"#/components/schemas/CredentialName"},"value":{"type":"string","title":"Value"},"config":{"type":"object","title":"Config"}},"type":"object","required":["name","config"],"title":"Credential"},"CredentialName":{"type":"string","enum":["auth_token","crm_id","utms"],"title":"CredentialName","description":"An enumeration."},"DeleteProfilePayload":{"properties":{"verification_code":{"type":"string","title":"Verification Code"}},"type":"object","required":["verification_code"],"title":"DeleteProfilePayload"},"DetectAiRequest":{"properties":{"text":{"type":"string","title":"Text"},"fake":{"type":"boolean","title":"Fake","default":false}},"type":"object","required":["text"],"title":"DetectAiRequest"},"DetectBoundariesRequest":{"properties":{"text":{"type":"string","title":"Text"}},"type":"object","required":["text"],"title":"DetectBoundariesRequest"},"DetectInRequest":{"properties":{"text":{"type":"string","title":"Text"},"fake":{"type":"boolean","title":"Fake","default":false}},"type":"object","required":["text"],"title":"DetectInRequest"},"DocumentCommandInRequest":{"properties":{"id":{"type":"string","title":"Id"},"variables":{"additionalProperties":{"type":"string"},"type":"object","title":"Variables","default":{}},"selected_text":{"type":"string","title":"Selected Text"},"stream":{"type":"boolean","title":"Stream","default":false}},"type":"object","required":["id"],"title":"DocumentCommandInRequest"},"DocumentCommandResult":{"properties":{"prompt":{"$ref":"#/components/schemas/CommandPromptInResponse"},"commands":{"items":{"$ref":"#/components/schemas/CommandInResponse"},"type":"array","title":"Commands"},"slate":{"$ref":"#/components/schemas/SlateContent"},"usage_values":{"type":"object","title":"Usage Values"}},"type":"object","required":["prompt","commands","slate","usage_values"],"title":"DocumentCommandResult"},"DocumentDetailsInResponse":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title","default":""},"type":{"allOf":[{"$ref":"#/components/schemas/TypeEnum"}],"default":"editor"},"created_date":{"type":"string","format":"date-time","title":"Created Date"},"last_activity":{"type":"string","format":"date-time","title":"Last Activity"},"config":{"type":"object","title":"Config"},"count_words":{"type":"integer","title":"Count Words"},"index":{"type":"integer","title":"Index"},"grading_report":{"type":"object","title":"Grading Report"},"is_grading_report_valid":{"type":"boolean","title":"Is Grading Report Valid","default":false},"content":{"items":{},"type":"array","title":"Content"},"init_content":{"items":{},"type":"array","title":"Init Content"}},"type":"object","required":["id","created_date","last_activity","config","index","content","init_content"],"title":"DocumentDetailsInResponse"},"DocumentInCreate":{"properties":{"title":{"type":"string","title":"Title","default":""},"config":{"type":"object","title":"Config"},"init_commands":{"items":{"$ref":"#/components/schemas/InputCommand"},"type":"array","title":"Init Commands","default":[]},"content":{"items":{"type":"object"},"type":"array","title":"Content","default":[]},"queries":{"items":{"type":"string"},"type":"array","title":"Queries","default":[]},"sources":{"items":{"$ref":"#/components/schemas/Source"},"type":"array","title":"Sources","default":[]},"source_ids":{"type":"string","title":"Source Ids","default":""}},"type":"object","title":"DocumentInCreate"},"DocumentInResponse":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title","default":""},"type":{"allOf":[{"$ref":"#/components/schemas/TypeEnum"}],"default":"editor"},"created_date":{"type":"string","format":"date-time","title":"Created Date"},"last_activity":{"type":"string","format":"date-time","title":"Last Activity"},"config":{"type":"object","title":"Config"},"count_words":{"type":"integer","title":"Count Words"},"index":{"type":"integer","title":"Index"},"grading_report":{"type":"object","title":"Grading Report"},"is_grading_report_valid":{"type":"boolean","title":"Is Grading Report Valid","default":false}},"type":"object","required":["id","created_date","last_activity","config","index"],"title":"DocumentInResponse"},"DocumentInUpdate":{"properties":{"title":{"type":"string","title":"Title"},"init_content":{"type":"string","title":"Init Content"},"config":{"type":"object","title":"Config"}},"type":"object","title":"DocumentInUpdate"},"DocumentSetUsageValuesResult":{"properties":{"commands":{"items":{"$ref":"#/components/schemas/CommandInResponse"},"type":"array","title":"Commands"},"usage_values":{"type":"object","title":"Usage Values"}},"type":"object","required":["commands","usage_values"],"title":"DocumentSetUsageValuesResult"},"DraftContextRequest":{"properties":{"document_id":{"type":"string","title":"Document Id","default":""},"document_type":{"type":"string","title":"Document Type","default":"Essay"},"format":{"type":"string","title":"Format","default":"MLA9"},"instructions":{"type":"string","title":"Instructions","default":""},"short_instructions":{"type":"string","title":"Short Instructions","default":""},"abstract":{"type":"boolean","title":"Abstract","default":false},"length_in_pages":{"type":"integer","title":"Length In Pages","default":1},"length_in_words":{"type":"integer","title":"Length In Words","default":100},"number_of_sources":{"type":"integer","title":"Number Of Sources","default":0},"writing_plan":{"type":"string","title":"Writing Plan","default":""},"writing_plan_outline":{"type":"string","title":"Writing Plan Outline","default":""},"outline":{"type":"string","title":"Outline","default":""},"outlines":{"items":{"type":"string"},"type":"array","title":"Outlines","default":[]},"queries":{"items":{"type":"string"},"type":"array","title":"Queries","default":[]},"sources":{"items":{"$ref":"#/components/schemas/Source"},"type":"array","title":"Sources","default":[]},"source_ids":{"type":"string","title":"Source Ids","default":""},"peer_replies":{"items":{"$ref":"#/components/schemas/PeerReply"},"type":"array","title":"Peer Replies","default":[]},"content":{"type":"string","title":"Content","default":""}},"type":"object","title":"DraftContextRequest"},"ExportInRequest":{"properties":{"html":{"type":"string","title":"Html"},"format":{"type":"string","title":"Format"},"line_height":{"type":"integer","title":"Line Height"}},"type":"object","required":["html","format","line_height"],"title":"ExportInRequest"},"ExtractTakeawaysRequest":{"properties":{"document":{"type":"string","title":"Document"},"short_instructions":{"type":"string","title":"Short Instructions"},"previous_takeaways":{"items":{"items":{"type":"string"},"type":"array"},"type":"array","title":"Previous Takeaways"}},"type":"object","required":["document"],"title":"ExtractTakeawaysRequest"},"ExtractTextResponse":{"properties":{"sample_text":{"type":"string","title":"Sample Text"},"word_count":{"type":"integer","title":"Word Count"}},"type":"object","required":["sample_text","word_count"],"title":"ExtractTextResponse"},"FixInstructions":{"properties":{"instructions":{"type":"string","title":"Instructions"},"fix_instructions_question":{"type":"string","title":"Fix Instructions Question"},"fix_instructions_answers":{"items":{"type":"string"},"type":"array","title":"Fix Instructions Answers","default":[]}},"type":"object","required":["instructions","fix_instructions_question"],"title":"FixInstructions"},"FixInstructionsResponse":{"properties":{"instructions":{"type":"string","title":"Instructions"}},"type":"object","required":["instructions"],"title":"FixInstructionsResponse"},"GenStateInCreate":{"properties":{"state":{"anyOf":[{"type":"object"},{"type":"string"}],"title":"State"},"user_outline":{"items":{"type":"string"},"type":"array","title":"User Outline"},"generator_name":{"type":"string","title":"Generator Name"}},"type":"object","required":["state"],"title":"GenStateInCreate"},"GenStateInResponse":{"properties":{"state":{"type":"object","title":"State","default":{}},"checkpoint":{"type":"object","title":"Checkpoint"},"user_outline":{"items":{"type":"string"},"type":"array","title":"User Outline"},"is_started":{"type":"boolean","title":"Is Started","default":false}},"type":"object","title":"GenStateInResponse"},"GenerateQuestionsRequest":{"properties":{"document":{"type":"string","title":"Document"},"short_instructions":{"type":"string","title":"Short Instructions"},"key_takeaways":{"items":{"type":"string"},"type":"array","title":"Key Takeaways"}},"type":"object","required":["document"],"title":"GenerateQuestionsRequest"},"GenerateWritingStylePayload":{"properties":{"samples":{"items":{"type":"string"},"type":"array","title":"Samples"}},"type":"object","required":["samples"],"title":"GenerateWritingStylePayload"},"GetByAuthTokenPayload":{"properties":{"auth_token":{"type":"string","title":"Auth Token"}},"type":"object","required":["auth_token"],"title":"GetByAuthTokenPayload"},"GetCustomerBalanceOutResponse":{"properties":{"customer_id":{"type":"string","title":"Customer Id"},"balance":{"type":"integer","title":"Balance"},"currency":{"type":"string","title":"Currency"}},"type":"object","required":["customer_id","balance","currency"],"title":"GetCustomerBalanceOutResponse"},"GetOrCreateByEmailPayload":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"},"utms":{"type":"string","title":"Utms"},"country_code":{"type":"string","title":"Country Code"},"quiz":{"$ref":"#/components/schemas/Quiz"},"referred_by_code":{"type":"string","title":"Referred By Code"}},"type":"object","required":["email","password"],"title":"GetOrCreateByEmailPayload"},"GetOrCreateByPhonePayload":{"properties":{"phone":{"type":"string","title":"Phone"},"verification_code":{"type":"string","title":"Verification Code"},"utms":{"type":"string","title":"Utms"},"recaptcha":{"type":"string","title":"Recaptcha"},"country_code":{"type":"string","title":"Country Code"},"quiz":{"$ref":"#/components/schemas/Quiz"},"referred_by_code":{"type":"string","title":"Referred By Code"}},"type":"object","required":["phone","verification_code","recaptcha"],"title":"GetOrCreateByPhonePayload"},"GroupName":{"enum":["rephrase"],"title":"GroupName","description":"An enumeration."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HumanizeRequest":{"properties":{"strings":{"items":{"type":"string"},"type":"array","title":"Strings"}},"type":"object","required":["strings"],"title":"HumanizeRequest"},"Idea":{"properties":{"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"needs_sources":{"type":"boolean","title":"Needs Sources"}},"type":"object","required":["title","description","needs_sources"],"title":"Idea"},"IdeasResponse":{"properties":{"feedback":{"type":"string","title":"Feedback"},"ideas":{"items":{"$ref":"#/components/schemas/Idea"},"type":"array","title":"Ideas"}},"type":"object","required":["feedback","ideas"],"title":"IdeasResponse"},"ImageUploadResponse":{"properties":{"url":{"type":"string","title":"Url"},"filename":{"type":"string","title":"Filename"},"size":{"type":"integer","title":"Size"}},"type":"object","required":["url","filename","size"],"title":"ImageUploadResponse"},"InputCommand":{"properties":{"id":{"type":"string","title":"Id"},"variables":{"additionalProperties":{"type":"string"},"type":"object","title":"Variables","default":{}},"selected_text":{"type":"string","title":"Selected Text"}},"type":"object","required":["id"],"title":"InputCommand"},"InsertPlacement":{"enum":["header","config","cursor_before","document_before","document_after","selected_text","selected_text_after","selected_text_before"],"title":"InsertPlacement","description":"An enumeration."},"Interval":{"enum":["month","year","lifetime"],"title":"Interval","description":"An enumeration."},"LoginBySSOCodePayload":{"properties":{"code":{"type":"string","title":"Code"}},"type":"object","required":["code"],"title":"LoginBySSOCodePayload"},"Message":{"properties":{"details":{"type":"string","title":"Details"}},"type":"object","required":["details"],"title":"Message"},"ModifySubscriptionInRequest":{"properties":{"price_id":{"type":"string","title":"Price Id"}},"type":"object","required":["price_id"],"title":"ModifySubscriptionInRequest"},"Name":{"enum":["free","unlimited","pe_unlimited","humanizer"],"title":"Name","description":"An enumeration."},"OutlineResponse":{"properties":{"short_instructions":{"type":"string","title":"Short Instructions"},"writing_plan":{"type":"string","title":"Writing Plan"},"writing_plan_outline":{"type":"string","title":"Writing Plan Outline"},"outline":{"type":"string","title":"Outline"}},"type":"object","required":["outline"],"title":"OutlineResponse"},"PauseSubscriptionInRequest":{"properties":{"months":{"type":"integer","minimum":1.0,"title":"Months"}},"type":"object","required":["months"],"title":"PauseSubscriptionInRequest"},"PeerReply":{"properties":{"peer_reply":{"type":"string","title":"Peer Reply"},"reply_direction":{"type":"string","title":"Reply Direction"},"reply_uses_sources":{"type":"boolean","title":"Reply Uses Sources"}},"type":"object","required":["peer_reply","reply_direction","reply_uses_sources"],"title":"PeerReply"},"PlagiarismCheckInRequest":{"properties":{"text":{"type":"string","title":"Text"}},"type":"object","required":["text"],"title":"PlagiarismCheckInRequest"},"PlagiarismCheckInResponse":{"properties":{"request":{"$ref":"#/components/schemas/Request"},"report":{"$ref":"#/components/schemas/Report"}},"type":"object","title":"PlagiarismCheckInResponse"},"PromptInResponse":{"properties":{"id":{"type":"string","title":"Id"},"attachment":{"type":"string","maxLength":65536,"minLength":1,"format":"uri","title":"Attachment"},"prompt":{"type":"string","title":"Prompt"},"response":{"type":"string","title":"Response"},"response_code":{"$ref":"#/components/schemas/ResponseCode"},"like":{"type":"boolean","title":"Like"},"created_date":{"type":"string","format":"date-time","title":"Created Date"},"updated_date":{"type":"string","format":"date-time","title":"Updated Date"},"config":{"type":"object","title":"Config"},"status":{"type":"string","enum":["pending","processing","completed","stopped","failed"],"title":"Status"}},"type":"object","required":["id","prompt","response","response_code","created_date","config"],"title":"PromptInResponse"},"QuickReply":{"properties":{"text":{"type":"string","title":"Text"}},"type":"object","required":["text"],"title":"QuickReply"},"Quiz":{"properties":{"field_of_study":{"type":"string","title":"Field Of Study"},"main_mental_blocker":{"type":"string","title":"Main Mental Blocker"},"ai_usage_level":{"type":"integer","title":"Ai Usage Level"},"your_study_efficiency_score":{"type":"integer","title":"Your Study Efficiency Score"},"your_aspiration":{"type":"string","title":"Your Aspiration"},"ai_usage_goals":{"items":{"type":"string"},"type":"array","title":"Ai Usage Goals"}},"type":"object","required":["field_of_study","main_mental_blocker","ai_usage_level","your_study_efficiency_score","your_aspiration","ai_usage_goals"],"title":"Quiz"},"ReferencesRequest":{"properties":{"text":{"type":"string","title":"Text"},"short_instructions":{"type":"string","title":"Short Instructions"}},"type":"object","required":["text","short_instructions"],"title":"ReferencesRequest"},"ReferralsListResponse":{"properties":{"referrals":{"items":{"$ref":"#/components/schemas/ReferredUserInResponse"},"type":"array","title":"Referrals"},"total":{"type":"integer","title":"Total"},"reward_amount":{"type":"integer","title":"Reward Amount"},"referred_by_user":{"$ref":"#/components/schemas/ReferredUserInResponse"}},"type":"object","required":["referrals","total","reward_amount"],"title":"ReferralsListResponse"},"ReferredUserInResponse":{"properties":{"id":{"type":"string","title":"Id"},"referred_at":{"type":"string","format":"date-time","title":"Referred At"},"active":{"type":"boolean","title":"Active"}},"type":"object","required":["id","referred_at","active"],"title":"ReferredUserInResponse"},"RefreshPayload":{"properties":{"credential":{"type":"string","title":"Credential"},"verification_code":{"type":"string","title":"Verification Code"}},"type":"object","required":["credential","verification_code"],"title":"RefreshPayload"},"Report":{"properties":{"url":{"type":"string","maxLength":65536,"minLength":1,"format":"uri","title":"Url"},"level":{"type":"integer","title":"Level"}},"type":"object","required":["url","level"],"title":"Report"},"Request":{"properties":{"id":{"type":"string","title":"Id"},"status":{"$ref":"#/components/schemas/RequestStatus"}},"type":"object","required":["id","status"],"title":"Request"},"RequestStatus":{"enum":["in_progress","completed","read","rejected","reset"],"title":"RequestStatus","description":"An enumeration."},"ResponseCode":{"type":"integer","enum":[0,1,10,11,20,21,22],"title":"ResponseCode","description":"An enumeration."},"RestoreByEmailPayload":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"},"verification_code":{"type":"string","title":"Verification Code"}},"type":"object","required":["email","password","verification_code"],"title":"RestoreByEmailPayload"},"SSOCodeResponse":{"properties":{"code":{"type":"string","title":"Code"}},"type":"object","required":["code"],"title":"SSOCodeResponse"},"SetUsageValuesByWordCountInRequest":{"properties":{"usage_policy":{"$ref":"#/components/schemas/UsagePolicy"},"word_count":{"type":"integer","title":"Word Count"}},"type":"object","required":["usage_policy","word_count"],"title":"SetUsageValuesByWordCountInRequest"},"SlateContent":{"properties":{"plain":{"type":"string","title":"Plain"},"html":{"type":"string","title":"Html"},"slate":{"items":{"type":"object"},"type":"array","title":"Slate"}},"type":"object","required":["plain","html","slate"],"title":"SlateContent"},"Source":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"publication_info":{"type":"string","title":"Publication Info","default":""},"snippet":{"type":"string","title":"Snippet","default":""},"link":{"type":"string","title":"Link","default":""},"cite_link":{"type":"string","title":"Cite Link","default":""},"citations":{"items":{"$ref":"#/components/schemas/Citation"},"type":"array","title":"Citations"},"authors":{"items":{"$ref":"#/components/schemas/Author"},"type":"array","title":"Authors"},"issued":{"type":"string","title":"Issued","default":""},"page":{"type":"string","title":"Page","default":""},"cited":{"type":"integer","title":"Cited"},"type":{"type":"string","title":"Type","default":""},"publisher":{"type":"string","title":"Publisher","default":""},"container_title":{"type":"string","title":"Container Title","default":""},"issue":{"type":"string","title":"Issue","default":""},"volume":{"type":"string","title":"Volume","default":""},"edition":{"type":"string","title":"Edition","default":""},"doi":{"type":"string","title":"Doi","default":""},"accessed":{"type":"string","title":"Accessed","default":""}},"type":"object","required":["id","title"],"title":"Source"},"Sources":{"properties":{"sources":{"additionalProperties":{"$ref":"#/components/schemas/Source"},"type":"object","title":"Sources"},"queries":{"items":{"type":"string"},"type":"array","title":"Queries"},"suggested_ids":{"items":{"type":"string"},"type":"array","title":"Suggested Ids"},"library_ids":{"items":{"type":"string"},"type":"array","title":"Library Ids"}},"type":"object","title":"Sources"},"SourcesResponse":{"properties":{"sources":{"items":{"$ref":"#/components/schemas/Source"},"type":"array","title":"Sources"},"queries":{"items":{"type":"string"},"type":"array","title":"Queries","default":[]},"writing_plan":{"type":"string","title":"Writing Plan","default":""},"writing_plan_outline":{"type":"string","title":"Writing Plan Outline","default":""},"outline":{"type":"string","title":"Outline","default":""},"short_instructions":{"type":"string","title":"Short Instructions","default":""}},"type":"object","required":["sources"],"title":"SourcesResponse"},"SubscriptionInResponse":{"properties":{"id":{"type":"string","title":"Id"},"user_id":{"type":"string","title":"User Id"},"plan_name":{"$ref":"#/components/schemas/Name"},"plan_interval":{"$ref":"#/components/schemas/Interval"},"created":{"type":"integer","title":"Created"},"start_date":{"type":"integer","title":"Start Date"},"ended_at":{"type":"integer","title":"Ended At"},"current_period_start":{"type":"integer","title":"Current Period Start"},"current_period_end":{"type":"integer","title":"Current Period End"},"cancel_at":{"type":"integer","title":"Cancel At"},"canceled_at":{"type":"integer","title":"Canceled At"},"cancel_at_period_end":{"type":"boolean","title":"Cancel At Period End"},"billing_cycle_anchor":{"type":"integer","title":"Billing Cycle Anchor"},"paused_at":{"type":"integer","title":"Paused At"},"pause_period_start":{"type":"integer","title":"Pause Period Start"},"pause_period_end":{"type":"integer","title":"Pause Period End"},"status":{"type":"string","title":"Status"},"data":{"type":"object","title":"Data"},"coupon_code":{"type":"string","title":"Coupon Code"},"stripe_account_id":{"type":"string","title":"Stripe Account Id"},"is_paused":{"type":"boolean","title":"Is Paused"}},"type":"object","required":["id","user_id","plan_name","plan_interval","created","cancel_at_period_end","status","data","is_paused"],"title":"SubscriptionInResponse"},"Token":{"properties":{"access_token":{"type":"string","title":"Access Token"}},"type":"object","required":["access_token"],"title":"Token"},"Type":{"enum":["book","article-journal","webpage"],"title":"Type","description":"An enumeration."},"TypeEnum":{"type":"string","enum":["editor","editor-onboarding","commands"],"title":"TypeEnum","description":"An enumeration."},"UpdateDocumentContentInRequest":{"properties":{"editor":{"type":"string","title":"Editor","default":""},"content":{"items":{},"type":"array","title":"Content","default":[]}},"type":"object","title":"UpdateDocumentContentInRequest"},"UpdateDocumentPayload":{"properties":{"short_instructions":{"type":"string","title":"Short Instructions"},"target_word_count":{"type":"integer","title":"Target Word Count"},"citation_style":{"type":"string","enum":["APA","MLA9","Harvard","Chicago","IEEE","AMA"],"title":"Citation Style"},"grading_report":{"type":"object","title":"Grading Report"}},"type":"object","title":"UpdateDocumentPayload"},"UrlsRequest":{"properties":{"urls":{"items":{"type":"string"},"type":"array","title":"Urls"},"short_instructions":{"type":"string","title":"Short Instructions"}},"type":"object","required":["urls","short_instructions"],"title":"UrlsRequest"},"UsagePlanInResponse":{"properties":{"name":{"$ref":"#/components/schemas/Name"},"interval":{"$ref":"#/components/schemas/Interval"},"interval_count":{"type":"integer","title":"Interval Count"},"price":{"type":"integer","title":"Price"},"price_id":{"type":"string","title":"Price Id"},"product_id":{"type":"string","title":"Product Id"},"status":{"type":"string","title":"Status"},"current_day_free_generation_limit_start":{"type":"string","format":"date-time","title":"Current Day Free Generation Limit Start"},"current_day_free_generation_limit_end":{"type":"string","format":"date-time","title":"Current Day Free Generation Limit End"},"current_period_start":{"type":"integer","title":"Current Period Start"},"current_period_end":{"type":"integer","title":"Current Period End"},"billing_cycle_anchor":{"type":"integer","title":"Billing Cycle Anchor"},"cancel_at_period_end":{"type":"boolean","title":"Cancel At Period End"},"cancel_at":{"type":"integer","title":"Cancel At"},"values":{"type":"object","title":"Values"},"canceled_before":{"type":"boolean","title":"Canceled Before","default":false}},"type":"object","required":["name","status","cancel_at_period_end","values"],"title":"UsagePlanInResponse"},"UsagePolicy":{"enum":["text_generation_uncountable","text_generation_in_words","text_humanization_in_words","plagiarism_check_in_words","ai_detect_in_words","chat_with_document_in_requests","outline_generation_in_requests","draft_generation_in_requests","draft2_generation_in_requests","outline2_generation_in_requests","discussion_post_generation_in_requests","mydraft2_generation_in_requests","open_source_in_requests","plagiarism_check_in_words_upsell","ai_detect_in_words_upsell"],"title":"UsagePolicy","description":"An enumeration."},"UsageUpsellsInResponse":{"properties":{"values":{"type":"object","title":"Values"}},"type":"object","required":["values"],"title":"UsageUpsellsInResponse"},"UserInResponse":{"properties":{"id":{"type":"string","title":"Id"},"phone":{"type":"string","title":"Phone"},"email":{"type":"string","format":"email","title":"Email"},"credentials":{"items":{"$ref":"#/components/schemas/Credential"},"type":"array","title":"Credentials","default":[]},"config":{"type":"object","title":"Config"},"ab_group":{"type":"integer","title":"Ab Group"},"traf_source":{"type":"string","title":"Traf Source","default":""},"quiz":{"$ref":"#/components/schemas/Quiz"},"writing_style":{"type":"object","title":"Writing Style"},"achievements":{"items":{"type":"string"},"type":"array","title":"Achievements"},"referral_code":{"type":"string","title":"Referral Code"},"created_date":{"type":"string","format":"date-time","title":"Created Date"}},"type":"object","required":["id","ab_group","created_date"],"title":"UserInResponse"},"UserInUpdate":{"properties":{"config":{"type":"object","title":"Config"},"writing_style":{"type":"object","title":"Writing Style"},"achievements":{"items":{"type":"string"},"type":"array","title":"Achievements"}},"type":"object","title":"UserInUpdate"},"UserTokenResponse":{"properties":{"user":{"$ref":"#/components/schemas/UserInResponse"},"token":{"$ref":"#/components/schemas/Token"}},"type":"object","required":["user","token"],"title":"UserTokenResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VariableInResponse":{"properties":{"name":{"$ref":"#/components/schemas/VariableName"},"values":{"items":{"$ref":"#/components/schemas/VariableValueInResponse"},"type":"array","title":"Values"}},"type":"object","required":["name","values"],"title":"VariableInResponse"},"VariableName":{"enum":["style","language","count_words","count_paragraphs","prompt","source_ids"],"title":"VariableName","description":"An enumeration."},"VariableValueInResponse":{"properties":{"name":{"type":"string","title":"Name"},"value":{"type":"string","title":"Value"},"usage_value":{"type":"integer","title":"Usage Value","default":0},"is_available":{"type":"boolean","title":"Is Available"}},"type":"object","required":["name","value","is_available"],"title":"VariableValueInResponse"},"VerifyEmailPayload":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"VerifyEmailPayload"},"VerifyPhonePayload":{"properties":{"phone":{"type":"string","title":"Phone"},"recaptcha":{"type":"string","title":"Recaptcha"}},"type":"object","required":["phone","recaptcha"],"title":"VerifyPhonePayload"},"WebhookInRequest":{"properties":{"id":{"type":"string","title":"Id"},"object":{"type":"string","title":"Object"},"type":{"type":"string","title":"Type"},"data":{"type":"object","title":"Data"}},"type":"object","required":["id","object","type","data"],"title":"WebhookInRequest"},"Webpage":{"properties":{"type":{"allOf":[{"$ref":"#/components/schemas/Type"}],"default":"webpage"},"title":{"type":"string","title":"Title"},"container_title":{"type":"string","title":"Container Title"},"publisher":{"type":"string","title":"Publisher","default":""},"author":{"items":{"$ref":"#/components/schemas/Author"},"type":"array","title":"Author","default":[]},"issued":{"type":"string","title":"Issued","default":""},"accessed":{"type":"string","title":"Accessed","default":""},"URL":{"type":"string","title":"Url"}},"type":"object","required":["title","container_title","URL"],"title":"Webpage"},"WordDefineRequest":{"properties":{"target_word":{"type":"string","title":"Target Word"},"sentence":{"type":"string","title":"Sentence","default":""}},"type":"object","required":["target_word"],"title":"WordDefineRequest"},"WordRephraseRequest":{"properties":{"target_word":{"type":"string","title":"Target Word"},"sentence":{"type":"string","title":"Sentence"},"num_rephrases":{"type":"integer","title":"Num Rephrases","default":5}},"type":"object","required":["target_word","sentence"],"title":"WordRephraseRequest"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}