{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Health Health Get"}}}}}}},"/admin/impersonate/{user_id}":{"post":{"summary":"Admin Impersonate","operationId":"admin_impersonate_admin_impersonate__user_id__post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImpersonateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/metrics":{"get":{"summary":"Admin Metrics","operationId":"admin_metrics_admin_metrics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminMetricsResponse"}}}}}}},"/admin/users":{"get":{"summary":"Admin Users","operationId":"admin_users_admin_users_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Page Size"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","default":"","title":"Search"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","default":"created_at","title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"type":"string","pattern":"^(asc|desc)$","default":"desc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAdminUsersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}":{"get":{"summary":"Admin User Detail","operationId":"admin_user_detail_admin_users__user_id__get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAdminUserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/feedback":{"get":{"summary":"Admin Feedback List","operationId":"admin_feedback_list_admin_feedback_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Page Size"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAdminFeedbackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/translation-inputs":{"get":{"summary":"Admin Translation Inputs","operationId":"admin_translation_inputs_admin_translation_inputs_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Page Size"}},{"name":"src","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Src"}},{"name":"tgt","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tgt"}},{"name":"has_error","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAdminTranslationInputsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/feedback/{feedback_id}":{"patch":{"summary":"Admin Feedback Update Status","operationId":"admin_feedback_update_status_admin_feedback__feedback_id__patch","parameters":[{"name":"feedback_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Feedback Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFeedbackStatusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminFeedbackItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/checkout":{"post":{"summary":"Checkout","operationId":"checkout_billing_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCheckoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/change-plan":{"post":{"summary":"Change Plan Route","operationId":"change_plan_route_billing_change_plan_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePlanRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/portal":{"post":{"summary":"Portal","operationId":"portal_billing_portal_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePortalRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePortalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/webhook":{"post":{"summary":"Webhook","operationId":"webhook_billing_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/billing/status":{"get":{"summary":"Status","operationId":"status_billing_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingStatusResponse"}}}}}}},"/credits/catalog":{"get":{"summary":"Catalog Route","operationId":"catalog_route_credits_catalog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditCatalogResponse"}}}}}}},"/credits/purchase":{"post":{"summary":"Purchase Route","operationId":"purchase_route_credits_purchase_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseCreditsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseCreditsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/credits/purchase/{purchase_id}":{"get":{"summary":"Purchase Status Route","operationId":"purchase_status_route_credits_purchase__purchase_id__get","parameters":[{"name":"purchase_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Purchase Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseCreditsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/upgrade-checkout":{"post":{"summary":"Upgrade Route","operationId":"upgrade_route_billing_upgrade_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpgradeCheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpgradeCheckoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/service/quote":{"post":{"tags":["service"],"summary":"Quote","operationId":"quote_service_quote_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/service/checkout":{"post":{"tags":["service"],"summary":"Checkout","operationId":"checkout_service_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/service/request":{"post":{"tags":["service"],"summary":"Project Request","operationId":"project_request_service_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dictionary/lookup":{"post":{"summary":"Lookup","operationId":"lookup_dictionary_lookup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DictionaryLookupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DictionaryLookupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dictionary/highlight":{"post":{"summary":"Highlight","description":"Batch hover lookup. DB-only — no LLM, no usage accounting. Returns the\ntop entries (per word) for words that have at least one row in\n`dictionary_entries`. Words not in the response have no entry and the\nfrontend should render them as plain text.","operationId":"highlight_dictionary_highlight_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DictionaryHighlightRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DictionaryHighlightResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/translate/document":{"post":{"summary":"Translate Document Route","operationId":"translate_document_route_translate_document_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_translate_document_route_translate_document_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentTranslationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/translate/document/jobs":{"get":{"summary":"Document Jobs List","description":"Recent documents for the caller — account history when signed in,\nthis device's history when anonymous. Results are 30-day retained.","operationId":"document_jobs_list_translate_document_jobs_get","parameters":[{"name":"product","in":"query","required":false,"schema":{"type":"string","default":"text","title":"Product"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentJobListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/translate/document/job/{job_id}/cancel":{"post":{"summary":"Document Cancel Route","operationId":"document_cancel_route_translate_document_job__job_id__cancel_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Document Cancel Route","operationId":"document_cancel_route_translate_document_job__job_id__cancel_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/translate/document/job/{job_id}":{"get":{"summary":"Document Job Status","operationId":"document_job_status_translate_document_job__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentJobStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/translate/document/job/{job_id}/preview":{"get":{"summary":"Document Job Preview","description":"Inline rendition for the result box's Document tab: pdf/png outputs\nas they are, everything else as the first pages of the /pdf rendition.","operationId":"document_job_preview_translate_document_job__job_id__preview_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/translate/document/job/{job_id}/file":{"get":{"summary":"Document Job File","description":"The translated file in the original format (format-preserving\nengine). Same capability-token access model as the status endpoint.","operationId":"document_job_file_translate_document_job__job_id__file_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/translate/document/job/{job_id}/pdf":{"get":{"summary":"Document Job Pdf","description":"A PDF of the translated document: the engine output converted with\nLibreOffice (cached on the job), or, for jobs without a\nformat-preserving output, the legacy rendering of the translated text.","operationId":"document_job_pdf_translate_document_job__job_id__pdf_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/translate/document/job/{job_id}/source-pdf":{"get":{"summary":"Document Job Source Pdf","description":"A PDF of the ORIGINAL upload for the side-by-side view (LibreOffice\nfor office formats, wrapped for images, pass-through for PDF); cached\non the job. Available as soon as the job exists, so it renders while\nthe translation runs.","operationId":"document_job_source_pdf_translate_document_job__job_id__source_pdf_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/translate/document/source-preview":{"post":{"summary":"Document Source Preview","description":"Render the source before admission, without any translation or charge.\n\nThe upload is scoped to this request and never exposed through a public\ncapability URL. The browser retains its own object URL for both panes.","operationId":"document_source_preview_translate_document_source_preview_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_document_source_preview_translate_document_source_preview_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/translate/document/quote-upload":{"post":{"summary":"Document Quote Upload Route","description":"Stage source bytes once; each quote still validates and prices them.","operationId":"document_quote_upload_route_translate_document_quote_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_document_quote_upload_route_translate_document_quote_upload_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentQuoteUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/translate/document/quote":{"post":{"summary":"Document Quote Route","description":"Price a submission BEFORE translating: credits for the text product,\na one-off dollar price for the formatted product.\n\nSame validation as planning, then the cheapest adequate source-size\nsignal (exact chars / PDF text layer / one fast-tier OCR call / two\nsampled pages). The quote is persisted and keyed by the payload\nfingerprint, so a subsequent translate of the same submission reserves\nexactly this number.","operationId":"document_quote_route_translate_document_quote_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_document_quote_route_translate_document_quote_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentQuoteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/translate/document/usage":{"get":{"summary":"Document Usage","operationId":"document_usage_translate_document_usage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentUsageResponse"}}}}}}},"/translate/document/pdf":{"post":{"summary":"Html To Pdf Route","operationId":"html_to_pdf_route_translate_document_pdf_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HtmlToPdfRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/translate/document/checkout":{"post":{"summary":"Document Checkout Route","description":"Pay-per-document: quote the submission, keep it on an order, and\nopen a Stripe Checkout session for the list price. The webhook plans\nthe job once the payment lands; the buyer's browser returns with\n?order=<token> and follows the job from there.","operationId":"document_checkout_route_translate_document_checkout_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_document_checkout_route_translate_document_checkout_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentCheckoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/translate/document/order/{token}":{"get":{"summary":"Document Order Status","description":"Order state for the buyer's browser after the Stripe redirect. The\ntoken is the capability; once paid it carries the job id to follow.","operationId":"document_order_status_translate_document_order__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentOrderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/translate/document/preview":{"post":{"summary":"Document Preview Route","description":"Free watermarked preview of the first pages, no account needed:\ncreates the order and a preview job in the formatted lane; the client\npolls the job and shows its file. One per account (or per device and\nIP) per UTC day.","operationId":"document_preview_route_translate_document_preview_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_document_preview_route_translate_document_preview_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentPreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/translate/document/job/{job_id}/share":{"get":{"summary":"Get Document Share","operationId":"get_document_share_translate_document_job__job_id__share_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Publish Document Share","operationId":"publish_document_share_translate_document_job__job_id__share_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Revoke Document Share","operationId":"revoke_document_share_translate_document_job__job_id__share_delete","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/document-shares/{token}":{"get":{"summary":"Get Public Document Share","operationId":"get_public_document_share_document_shares__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/document-shares/{token}/assets/{kind}":{"get":{"summary":"Get Public Document Asset","operationId":"get_public_document_asset_document_shares__token__assets__kind__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/document-shares/{token}/manage":{"get":{"summary":"Get Document Share Management","operationId":"get_document_share_management_document_shares__token__manage_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Revoke Document Share By Token","operationId":"revoke_document_share_by_token_document_shares__token__manage_delete","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organization-inquiries":{"post":{"summary":"Organization Inquiry Route","operationId":"organization_inquiry_route_organization_inquiries_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationInquiryRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/feedback":{"post":{"summary":"Submit Feedback Route","operationId":"submit_feedback_route_feedback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitFeedbackRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitFeedbackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/feedback/chat":{"post":{"summary":"Feedback Chat Route","operationId":"feedback_chat_route_feedback_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackChatRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackChatResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/feedback/chat/draft":{"post":{"summary":"Feedback Chat Draft Route","operationId":"feedback_chat_draft_route_feedback_chat_draft_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackChatDraftRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackChatDraftResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/feedback/chat/email":{"post":{"summary":"Attach Feedback Email Route","operationId":"attach_feedback_email_route_feedback_chat_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachFeedbackEmailRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/interview/status":{"get":{"summary":"Interview Status Route","operationId":"interview_status_route_interview_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewStatusResponse"}}}}}}},"/interview/start":{"post":{"summary":"Start Interview Route","operationId":"start_interview_route_interview_start_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/StartInterviewRequest"},{"type":"null"}],"title":"Req"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartInterviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/interview/turn":{"post":{"summary":"Interview Turn Route","operationId":"interview_turn_route_interview_turn_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewTurnRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewTurnResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/interview/dismiss":{"post":{"summary":"Dismiss Interview Route","operationId":"dismiss_interview_route_interview_dismiss_post","responses":{"204":{"description":"Successful Response"}}}},"/translation-rating":{"post":{"summary":"Submit Rating Route","operationId":"submit_rating_route_translation_rating_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitRatingRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitRatingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/learn/progress/{course_key}":{"get":{"summary":"Get Learn Progress","operationId":"get_learn_progress_learn_progress__course_key__get","parameters":[{"name":"course_key","in":"path","required":true,"schema":{"type":"string","title":"Course Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetLearnProgressResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Put Learn Progress","operationId":"put_learn_progress_learn_progress__course_key__put","parameters":[{"name":"course_key","in":"path","required":true,"schema":{"type":"string","title":"Course Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutLearnProgressRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mail/inbound":{"post":{"summary":"Inbound","operationId":"inbound_mail_inbound_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/outreach/arrival":{"post":{"summary":"Outreach Arrival","operationId":"outreach_arrival_outreach_arrival_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutreachArrivalRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutreachArrivalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/share":{"post":{"summary":"Create Share","operationId":"create_share_share_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateShareRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateShareResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/share/{slug}":{"get":{"summary":"Get Share","operationId":"get_share_share__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetShareResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/translate":{"post":{"summary":"Translate","operationId":"translate_translate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTranslationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTranslationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tts":{"post":{"summary":"Synthesize","operationId":"synthesize_tts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SynthesizeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/usage":{"get":{"summary":"Usage","operationId":"usage_usage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetUsageResponse"}}}}}}},"/v1/credits":{"get":{"summary":"Purchased Credits V1","operationId":"purchased_credits_v1_v1_credits_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditsV1Response"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/languages":{"get":{"summary":"List Languages","operationId":"list_languages_v1_languages_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/translate":{"post":{"summary":"Translate V1","operationId":"translate_v1_v1_translate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranslateV1Request"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranslateV1Response"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/users/api-keys":{"get":{"summary":"List Api Keys","operationId":"list_api_keys_users_api_keys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Api Key","operationId":"create_api_key_users_api_keys_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/users/api-keys/{key_id}":{"delete":{"summary":"Revoke Api Key","operationId":"revoke_api_key_users_api_keys__key_id__delete","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/accounts":{"post":{"summary":"Create Api Account","operationId":"create_api_account_v1_accounts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiAccountRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiAccountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/api-keys":{"get":{"summary":"List Managed Api Keys","operationId":"list_managed_api_keys_v1_api_keys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagedApiKeysResponse"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"summary":"Create Managed Api Key","operationId":"create_managed_api_key_v1_api_keys_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateManagedApiKeyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedManagedApiKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/api-keys/{key_id}":{"delete":{"summary":"Revoke Managed Api Key","operationId":"revoke_managed_api_key_v1_api_keys__key_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/catalog":{"get":{"summary":"Api Catalog","operationId":"api_catalog_v1_catalog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiCatalogResponse"}}}}}}},"/v1/billing":{"get":{"summary":"Api Billing","operationId":"api_billing_v1_billing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiBillingResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/purchase-key":{"post":{"summary":"Purchase Api Key","operationId":"purchase_api_key_v1_purchase_key_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseApiKeyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseApiKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/credit-purchases":{"post":{"summary":"Api Credit Purchase","operationId":"api_credit_purchase_v1_credit_purchases_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiPurchaseRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiPurchaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/credit-purchases/{purchase_id}":{"get":{"summary":"Api Purchase Status","operationId":"api_purchase_status_v1_credit_purchases__purchase_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"purchase_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Purchase Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiPurchaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/purchases":{"get":{"summary":"Api Purchase History","operationId":"api_purchase_history_v1_billing_purchases_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiPurchaseHistoryResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/billing/checkout":{"post":{"summary":"Api Checkout","operationId":"api_checkout_v1_billing_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiCheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiPurchaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/billing/setup":{"post":{"summary":"Api Create Setup","operationId":"api_create_setup_v1_billing_setup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiPaymentSetupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiPaymentSetupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/billing/setup/{setup_id}":{"get":{"summary":"Api Setup Status","operationId":"api_setup_status_v1_billing_setup__setup_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"setup_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Setup Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiPaymentSetupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/auto-refill":{"put":{"summary":"Api Update Refill","operationId":"api_update_refill_v1_billing_auto_refill_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRefillPolicyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRefillPolicyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/billing/payment-method/remove":{"post":{"summary":"Api Remove Payment Method","operationId":"api_remove_payment_method_v1_billing_payment_method_remove_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveApiPaymentMethodRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRefillPolicyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/users/me":{"get":{"summary":"Get Me","operationId":"get_me_users_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetMeResponse"}}}}}},"delete":{"summary":"Delete Me","operationId":"delete_me_users_me_delete","responses":{"204":{"description":"Successful Response"}}}},"/users":{"post":{"summary":"Register","operationId":"register_users_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/google":{"post":{"summary":"Google Auth","operationId":"google_auth_users_google_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAuthRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAuthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/apple":{"post":{"summary":"Apple Auth","operationId":"apple_auth_users_apple_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppleAuthRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAuthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/iap-transaction":{"post":{"summary":"Iap Transaction","operationId":"iap_transaction_users_iap_transaction_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IapTransactionRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/app-store-notifications":{"post":{"summary":"App Store Notifications","description":"App Store Server Notifications V2 webhook.\n\nSignature failures return 400 so Apple retries transient truncation. A\nvalid notification for a deleted/unknown account returns 204: retrying it\ncan never create a safe ownership mapping.","operationId":"app_store_notifications_users_app_store_notifications_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppStoreNotificationRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/login":{"post":{"summary":"Login","operationId":"login_users_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginUserRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginUserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/logout":{"post":{"summary":"Logout","operationId":"logout_users_logout_post","responses":{"204":{"description":"Successful Response"}}}},"/users/stop-impersonating":{"post":{"summary":"Stop Impersonating","operationId":"stop_impersonating_users_stop_impersonating_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StopImpersonatingResponse"}}}}}}},"/users/password-reset/request":{"post":{"summary":"Request Password Reset Route","operationId":"request_password_reset_route_users_password_reset_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestPasswordResetRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/password-reset/confirm":{"post":{"summary":"Confirm Password Reset Route","operationId":"confirm_password_reset_route_users_password_reset_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmPasswordResetRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/verify-email/confirm":{"post":{"summary":"Confirm Email Verification Route","operationId":"confirm_email_verification_route_users_verify_email_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmEmailVerificationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/verify-email/resend":{"post":{"summary":"Resend Verification Route","operationId":"resend_verification_route_users_verify_email_resend_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/users/email/unsubscribe":{"get":{"summary":"Get Email Unsubscribe","description":"Human-clicked unsubscribe link from a business email footer.","operationId":"get_email_unsubscribe_users_email_unsubscribe_get","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Post Email Unsubscribe","description":"RFC 8058 one-click target — Gmail/Yahoo POST here with no human\ninteraction, so it must succeed without redirects or confirmation.","operationId":"post_email_unsubscribe_users_email_unsubscribe_post","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/verified-translation-interest":{"post":{"summary":"Save Interest Route","operationId":"save_interest_route_verified_translation_interest_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterestRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/verified-translation-interest/{interest_id}":{"get":{"summary":"Get Interest Route","operationId":"get_interest_route_verified_translation_interest__interest_id__get","parameters":[{"name":"interest_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interest Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/verified-translation-interest/{interest_id}/document":{"post":{"summary":"Attach Document Route","operationId":"attach_document_route_verified_translation_interest__interest_id__document_post","parameters":[{"name":"interest_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interest Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_attach_document_route_verified_translation_interest__interest_id__document_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AdminFeedbackItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"category":{"type":"string","title":"Category"},"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"reply_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply Email"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"user_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Email"},"ip_address":{"type":"string","title":"Ip Address"},"user_agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Agent"},"src_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Src Language"},"tgt_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tgt Language"},"mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode"},"tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tier"},"is_paid":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Paid"}},"type":"object","required":["id","created_at","category","status","message","reply_email","user_id","user_email","ip_address","user_agent","src_language","tgt_language","mode","tier","is_paid"],"title":"AdminFeedbackItem"},"AdminMetricsResponse":{"properties":{"total_users":{"type":"integer","title":"Total Users"},"total_translations":{"type":"integer","title":"Total Translations"},"total_cost":{"type":"number","title":"Total Cost"},"active_subscriptions":{"type":"integer","title":"Active Subscriptions"},"daily_registrations":{"items":{"$ref":"#/components/schemas/DailyCount"},"type":"array","title":"Daily Registrations"},"subscription_breakdown":{"items":{"$ref":"#/components/schemas/LabelCount"},"type":"array","title":"Subscription Breakdown"},"daily_translations":{"items":{"$ref":"#/components/schemas/DailyCount"},"type":"array","title":"Daily Translations"},"top_language_pairs":{"items":{"$ref":"#/components/schemas/LanguagePairCount"},"type":"array","title":"Top Language Pairs"},"cost_by_model":{"items":{"$ref":"#/components/schemas/ModelCost"},"type":"array","title":"Cost By Model"},"daily_cost":{"items":{"$ref":"#/components/schemas/DailyCost"},"type":"array","title":"Daily Cost"},"total_document_translations":{"type":"integer","title":"Total Document Translations"},"document_translations_cost":{"type":"number","title":"Document Translations Cost"},"daily_document_translations":{"items":{"$ref":"#/components/schemas/DailyCount"},"type":"array","title":"Daily Document Translations"},"document_format_breakdown":{"items":{"$ref":"#/components/schemas/LabelCount"},"type":"array","title":"Document Format Breakdown"},"total_explain_translations":{"type":"integer","title":"Total Explain Translations"},"daily_explain_translations":{"items":{"$ref":"#/components/schemas/DailyCount"},"type":"array","title":"Daily Explain Translations"}},"type":"object","required":["total_users","total_translations","total_cost","active_subscriptions","daily_registrations","subscription_breakdown","daily_translations","top_language_pairs","cost_by_model","daily_cost","total_document_translations","document_translations_cost","daily_document_translations","document_format_breakdown","total_explain_translations","daily_explain_translations"],"title":"AdminMetricsResponse"},"AdminTranslationInputItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"ip_address":{"type":"string","title":"Ip Address"},"src_language":{"type":"string","title":"Src Language"},"tgt_language":{"type":"string","title":"Tgt Language"},"tier":{"type":"string","title":"Tier"},"model_name":{"type":"string","title":"Model Name"},"explain":{"type":"boolean","title":"Explain"},"text":{"type":"string","title":"Text"},"output_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Text"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["id","created_at","user_id","ip_address","src_language","tgt_language","tier","model_name","explain","text","output_text","error"],"title":"AdminTranslationInputItem"},"AdminUserItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"subscription_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"total_translations":{"type":"integer","title":"Total Translations"},"total_cost":{"type":"number","title":"Total Cost"}},"type":"object","required":["id","email","subscription_status","created_at","total_translations","total_cost"],"title":"AdminUserItem"},"ApiBillingResponse":{"properties":{"packs":{"items":{"$ref":"#/components/schemas/CreditPack"},"type":"array","title":"Packs"},"payments_available":{"type":"boolean","title":"Payments Available"},"spt_available":{"type":"boolean","title":"Spt Available"},"stripe_profile_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Profile Id"},"currency":{"type":"string","title":"Currency","default":"usd"},"purchase_endpoint":{"type":"string","title":"Purchase Endpoint","default":"/api/v1/credit-purchases"},"provisioning_endpoint":{"type":"string","title":"Provisioning Endpoint","default":"/api/v1/purchase-key"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"balance_credits":{"type":"integer","title":"Balance Credits"},"reserved_credits":{"type":"integer","title":"Reserved Credits"},"payment_method":{"anyOf":[{"$ref":"#/components/schemas/SavedCard"},{"type":"null"}]},"auto_refill":{"$ref":"#/components/schemas/ApiRefillPolicyResponse"},"stripe_publishable_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Publishable Key"}},"type":"object","required":["packs","payments_available","spt_available","stripe_profile_id","user_id","balance_credits","reserved_credits","payment_method","auto_refill"],"title":"ApiBillingResponse"},"ApiCatalogResponse":{"properties":{"packs":{"items":{"$ref":"#/components/schemas/CreditPack"},"type":"array","title":"Packs"},"payments_available":{"type":"boolean","title":"Payments Available"},"spt_available":{"type":"boolean","title":"Spt Available"},"stripe_profile_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Profile Id"},"currency":{"type":"string","title":"Currency","default":"usd"},"purchase_endpoint":{"type":"string","title":"Purchase Endpoint","default":"/api/v1/credit-purchases"},"provisioning_endpoint":{"type":"string","title":"Provisioning Endpoint","default":"/api/v1/purchase-key"}},"type":"object","required":["packs","payments_available","spt_available","stripe_profile_id"],"title":"ApiCatalogResponse"},"ApiCheckoutRequest":{"properties":{"expected_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Expected User Id"},"pack_id":{"type":"string","enum":["credits_300","credits_1000","credits_2000"],"title":"Pack Id"},"idempotency_key":{"type":"string","format":"uuid","title":"Idempotency Key"},"return_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Return Url"}},"type":"object","required":["pack_id","idempotency_key","return_url"],"title":"ApiCheckoutRequest"},"ApiPaymentSetupRequest":{"properties":{"expected_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Expected User Id"},"idempotency_key":{"type":"string","format":"uuid","title":"Idempotency Key"},"return_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Return Url"},"consent":{"type":"boolean","title":"Consent","default":false}},"type":"object","required":["idempotency_key","return_url"],"title":"ApiPaymentSetupRequest"},"ApiPaymentSetupResponse":{"properties":{"setup_id":{"type":"string","format":"uuid","title":"Setup Id"},"status":{"type":"string","title":"Status"},"checkout_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkout Url"}},"type":"object","required":["setup_id","status"],"title":"ApiPaymentSetupResponse"},"ApiPurchaseHistoryItem":{"properties":{"purchase_id":{"type":"string","format":"uuid","title":"Purchase Id"},"status":{"type":"string","title":"Status"},"checkout_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkout Url"},"credits":{"type":"integer","title":"Credits"},"price_cents":{"type":"integer","title":"Price Cents"},"currency":{"type":"string","title":"Currency"},"credits_granted":{"type":"boolean","title":"Credits Granted"},"payment_intent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Intent Id"},"client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Secret"},"action_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Url"},"action_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Type"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"pack_id":{"type":"string","title":"Pack Id"}},"type":"object","required":["purchase_id","status","credits","price_cents","currency","credits_granted","created_at","pack_id"],"title":"ApiPurchaseHistoryItem"},"ApiPurchaseHistoryResponse":{"properties":{"purchases":{"items":{"$ref":"#/components/schemas/ApiPurchaseHistoryItem"},"type":"array","title":"Purchases"}},"type":"object","required":["purchases"],"title":"ApiPurchaseHistoryResponse"},"ApiPurchaseRequest":{"properties":{"expected_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Expected User Id"},"pack_id":{"type":"string","enum":["credits_300","credits_1000","credits_2000"],"title":"Pack Id"},"idempotency_key":{"type":"string","format":"uuid","title":"Idempotency Key"},"payment_token":{"anyOf":[{"type":"string","format":"password","writeOnly":true},{"type":"null"}],"title":"Payment Token"},"payment_method":{"anyOf":[{"type":"string","const":"saved"},{"type":"null"}],"title":"Payment Method"}},"type":"object","required":["pack_id","idempotency_key"],"title":"ApiPurchaseRequest"},"ApiPurchaseResponse":{"properties":{"purchase_id":{"type":"string","format":"uuid","title":"Purchase Id"},"status":{"type":"string","title":"Status"},"checkout_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkout Url"},"credits":{"type":"integer","title":"Credits"},"price_cents":{"type":"integer","title":"Price Cents"},"currency":{"type":"string","title":"Currency"},"credits_granted":{"type":"boolean","title":"Credits Granted"},"payment_intent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Intent Id"},"client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Secret"},"action_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Url"},"action_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Type"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"}},"type":"object","required":["purchase_id","status","credits","price_cents","currency","credits_granted"],"title":"ApiPurchaseResponse"},"ApiRefillPolicyRequest":{"properties":{"expected_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Expected User Id"},"enabled":{"type":"boolean","title":"Enabled"},"threshold_credits":{"type":"integer","minimum":1.0,"title":"Threshold Credits"},"pack_id":{"type":"string","enum":["credits_300","credits_1000","credits_2000"],"title":"Pack Id"},"monthly_limit_cents":{"type":"integer","maximum":1000000.0,"minimum":1.0,"title":"Monthly Limit Cents"},"expected_revision":{"type":"integer","minimum":0.0,"title":"Expected Revision"},"consent":{"type":"boolean","title":"Consent","default":false}},"type":"object","required":["enabled","threshold_credits","pack_id","monthly_limit_cents","expected_revision"],"title":"ApiRefillPolicyRequest"},"ApiRefillPolicyResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"threshold_credits":{"type":"integer","title":"Threshold Credits"},"pack_id":{"type":"string","title":"Pack Id"},"monthly_limit_cents":{"type":"integer","title":"Monthly Limit Cents"},"monthly_spend_cents":{"type":"integer","title":"Monthly Spend Cents"},"policy_revision":{"type":"integer","title":"Policy Revision"},"status":{"type":"string","title":"Status"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"active_attempt":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Active Attempt"}},"type":"object","required":["enabled","threshold_credits","pack_id","monthly_limit_cents","monthly_spend_cents","policy_revision","status"],"title":"ApiRefillPolicyResponse"},"AppStoreNotificationRequest":{"properties":{"signedPayload":{"type":"string","maxLength":131072,"minLength":100,"title":"Signedpayload"}},"type":"object","required":["signedPayload"],"title":"AppStoreNotificationRequest"},"AppleAuthRequest":{"properties":{"identity_token":{"type":"string","maxLength":8192,"minLength":20,"title":"Identity Token"},"surface":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Surface"}},"type":"object","required":["identity_token"],"title":"AppleAuthRequest"},"AttachFeedbackEmailRequest":{"properties":{"feedback_id":{"type":"string","format":"uuid","title":"Feedback Id"},"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["feedback_id","email"],"title":"AttachFeedbackEmailRequest"},"BillingStatusResponse":{"properties":{"subscription_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Status"},"subscription_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Id"},"current_period_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Period End"},"billing_interval":{"anyOf":[{"type":"string","enum":["month","year"]},{"type":"null"}],"title":"Billing Interval"},"is_paid":{"type":"boolean","title":"Is Paid"},"price_cents":{"type":"integer","title":"Price Cents"},"cohort":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cohort"},"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"},"prices":{"additionalProperties":{"additionalProperties":{"type":"integer"},"type":"object"},"type":"object","title":"Prices","default":{}}},"type":"object","required":["subscription_status","subscription_id","current_period_end","is_paid","price_cents","cohort"],"title":"BillingStatusResponse"},"Body_attach_document_route_verified_translation_interest__interest_id__document_post":{"properties":{"revision":{"type":"integer","maximum":2147483647.0,"minimum":1.0,"title":"Revision"},"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["revision","file"],"title":"Body_attach_document_route_verified_translation_interest__interest_id__document_post"},"Body_document_checkout_route_translate_document_checkout_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"tgt":{"type":"string","title":"Tgt"},"src":{"type":"string","title":"Src","default":"auto"},"model_tier":{"type":"string","title":"Model Tier","default":"fast"},"origin":{"type":"string","title":"Origin","default":""},"order_token":{"type":"string","title":"Order Token","default":""}},"type":"object","required":["file","tgt"],"title":"Body_document_checkout_route_translate_document_checkout_post"},"Body_document_preview_route_translate_document_preview_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"tgt":{"type":"string","title":"Tgt"},"src":{"type":"string","title":"Src","default":"auto"},"model_tier":{"type":"string","title":"Model Tier","default":"fast"}},"type":"object","required":["file","tgt"],"title":"Body_document_preview_route_translate_document_preview_post"},"Body_document_quote_route_translate_document_quote_post":{"properties":{"tgt":{"type":"string","title":"Tgt"},"file":{"anyOf":[{"type":"string","format":"binary"},{"type":"null"}],"title":"File"},"upload_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upload Id"},"src":{"type":"string","title":"Src","default":"auto"},"model_tier":{"type":"string","title":"Model Tier","default":"advanced"},"product":{"type":"string","title":"Product","default":""}},"type":"object","required":["tgt"],"title":"Body_document_quote_route_translate_document_quote_post"},"Body_document_quote_upload_route_translate_document_quote_upload_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_document_quote_upload_route_translate_document_quote_upload_post"},"Body_document_source_preview_translate_document_source_preview_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_document_source_preview_translate_document_source_preview_post"},"Body_translate_document_route_translate_document_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"tgt":{"type":"string","title":"Tgt"},"src":{"type":"string","title":"Src","default":"auto"},"model_tier":{"type":"string","title":"Model Tier","default":"fast"},"supports_async":{"type":"string","title":"Supports Async","default":"0"},"idempotency_key":{"type":"string","title":"Idempotency Key","default":""},"product":{"type":"string","title":"Product","default":""},"quote_id":{"type":"string","title":"Quote Id","default":""}},"type":"object","required":["file","tgt"],"title":"Body_translate_document_route_translate_document_post"},"ChangePlanRequest":{"properties":{"plan":{"type":"string","enum":["pro","scholar"],"title":"Plan"},"interval":{"type":"string","enum":["month","year"],"title":"Interval"}},"type":"object","required":["plan","interval"],"title":"ChangePlanRequest"},"ChangePlanResponse":{"properties":{"plan":{"type":"string","title":"Plan"},"interval":{"type":"string","title":"Interval"}},"type":"object","required":["plan","interval"],"title":"ChangePlanResponse"},"CheckoutRequest":{"properties":{"src":{"type":"string","maxLength":20,"minLength":1,"title":"Src"},"tgt":{"type":"string","maxLength":20,"minLength":1,"title":"Tgt"},"words":{"type":"integer","maximum":500000.0,"minimum":1.0,"title":"Words"},"handwritten":{"type":"boolean","title":"Handwritten","default":false},"kind":{"type":"string","pattern":"^(ai|verified|deposit)$","title":"Kind"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"origin":{"type":"string","maxLength":200,"minLength":1,"title":"Origin"},"ga_client_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Ga Client Id"}},"type":"object","required":["src","tgt","words","kind","origin"],"title":"CheckoutRequest"},"ConfirmEmailVerificationRequest":{"properties":{"token":{"type":"string","maxLength":128,"minLength":16,"title":"Token"}},"type":"object","required":["token"],"title":"ConfirmEmailVerificationRequest"},"ConfirmPasswordResetRequest":{"properties":{"token":{"type":"string","maxLength":128,"minLength":16,"title":"Token"},"password":{"type":"string","maxLength":72,"minLength":8,"title":"Password"}},"type":"object","required":["token","password"],"title":"ConfirmPasswordResetRequest"},"CreateApiAccountRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"name":{"type":"string","maxLength":64,"title":"Name","default":"agent"}},"type":"object","required":["email"],"title":"CreateApiAccountRequest"},"CreateApiAccountResponse":{"properties":{"account_id":{"type":"string","format":"uuid","title":"Account Id"},"email":{"type":"string","title":"Email"},"key_id":{"type":"string","format":"uuid","title":"Key Id"},"key_prefix":{"type":"string","title":"Key Prefix"},"key":{"type":"string","title":"Key"},"can_manage_billing":{"type":"boolean","title":"Can Manage Billing"},"funding":{"type":"string","title":"Funding","default":"purchased"}},"type":"object","required":["account_id","email","key_id","key_prefix","key","can_manage_billing"],"title":"CreateApiAccountResponse"},"CreateCheckoutRequest":{"properties":{"success_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Success Url"},"cancel_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Cancel Url"},"surface":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Surface"},"plan":{"type":"string","enum":["pro","scholar"],"title":"Plan","default":"pro"},"interval":{"type":"string","enum":["month","year"],"title":"Interval","default":"month"}},"type":"object","required":["success_url","cancel_url"],"title":"CreateCheckoutRequest"},"CreateCheckoutResponse":{"properties":{"checkout_url":{"type":"string","title":"Checkout Url"}},"type":"object","required":["checkout_url"],"title":"CreateCheckoutResponse"},"CreateManagedApiKeyRequest":{"properties":{"name":{"type":"string","maxLength":64,"title":"Name","default":"agent"},"can_manage_billing":{"type":"boolean","title":"Can Manage Billing","default":false},"expected_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Expected User Id"}},"type":"object","title":"CreateManagedApiKeyRequest"},"CreatePortalRequest":{"properties":{"return_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Return Url"}},"type":"object","required":["return_url"],"title":"CreatePortalRequest"},"CreatePortalResponse":{"properties":{"portal_url":{"type":"string","title":"Portal Url"}},"type":"object","required":["portal_url"],"title":"CreatePortalResponse"},"CreateShareRequest":{"properties":{"src":{"type":"string","title":"Src"},"tgt":{"type":"string","title":"Tgt"},"text":{"type":"string","maxLength":1000000,"minLength":1,"title":"Text"},"translation":{"type":"string","maxLength":2000000,"minLength":1,"title":"Translation"},"tier":{"anyOf":[{"type":"string","enum":["fast","advanced"]},{"type":"null"}],"title":"Tier"}},"type":"object","required":["src","tgt","text","translation"],"title":"CreateShareRequest"},"CreateShareResponse":{"properties":{"slug":{"type":"string","title":"Slug"}},"type":"object","required":["slug"],"title":"CreateShareResponse"},"CreateTranslationRequest":{"properties":{"request_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Request Id"},"src":{"type":"string","title":"Src"},"tgt":{"type":"string","title":"Tgt"},"text":{"type":"string","title":"Text"},"tier":{"type":"string","enum":["fast","advanced"],"title":"Tier","default":"fast"},"explain":{"type":"boolean","title":"Explain","default":false},"romanize":{"type":"boolean","title":"Romanize","default":false},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"}},"type":"object","required":["src","tgt","text"],"title":"CreateTranslationRequest"},"CreateTranslationResponse":{"properties":{"code":{"type":"integer","title":"Code"},"translation":{"type":"string","title":"Translation"},"explanation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Explanation"},"romanization":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Romanization"},"explanation_skipped_reason":{"anyOf":[{"type":"string","enum":["too_long","unsupported_language"]},{"type":"null"}],"title":"Explanation Skipped Reason"},"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"},"credit_used":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credit Used"},"credits_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credits Remaining"}},"type":"object","required":["code","translation"],"title":"CreateTranslationResponse"},"CreateUserRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":72,"minLength":8,"title":"Password"},"surface":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Surface"}},"type":"object","required":["email","password"],"title":"CreateUserRequest"},"CreateUserResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","email","created_at"],"title":"CreateUserResponse"},"CreatedManagedApiKeyResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"prefix":{"type":"string","title":"Prefix"},"name":{"type":"string","title":"Name"},"can_manage_billing":{"type":"boolean","title":"Can Manage Billing"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"key":{"type":"string","title":"Key"}},"type":"object","required":["id","prefix","name","can_manage_billing","created_at","last_used_at","key"],"title":"CreatedManagedApiKeyResponse"},"CreditCatalogResponse":{"properties":{"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"packs":{"items":{"$ref":"#/components/schemas/CreditPack"},"type":"array","title":"Packs"},"payment_method":{"anyOf":[{"$ref":"#/components/schemas/SavedCard"},{"type":"null"}]},"purchases_available":{"type":"boolean","title":"Purchases Available"},"unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unavailable Reason"}},"type":"object","required":["user_id","packs","payment_method","purchases_available","unavailable_reason"],"title":"CreditCatalogResponse"},"CreditPack":{"properties":{"id":{"type":"string","title":"Id"},"credits":{"type":"integer","title":"Credits"},"price_cents":{"type":"integer","title":"Price Cents"},"currency":{"type":"string","title":"Currency"},"recommended":{"type":"boolean","title":"Recommended"}},"type":"object","required":["id","credits","price_cents","currency","recommended"],"title":"CreditPack"},"CreditRateV1":{"properties":{"credits":{"type":"integer","title":"Credits"},"characters":{"type":"integer","title":"Characters"}},"type":"object","required":["credits","characters"],"title":"CreditRateV1"},"CreditsV1Response":{"properties":{"balance_credits":{"type":"integer","title":"Balance Credits"},"reserved_credits":{"type":"integer","title":"Reserved Credits"},"funding":{"type":"string","const":"purchased","title":"Funding","default":"purchased"},"rates":{"additionalProperties":{"$ref":"#/components/schemas/CreditRateV1"},"type":"object","title":"Rates"}},"type":"object","required":["balance_credits","reserved_credits","rates"],"title":"CreditsV1Response"},"DailyCost":{"properties":{"date":{"type":"string","title":"Date"},"cost":{"type":"number","title":"Cost"}},"type":"object","required":["date","cost"],"title":"DailyCost"},"DailyCount":{"properties":{"date":{"type":"string","title":"Date"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["date","count"],"title":"DailyCount"},"DictionaryHighlightRequest":{"properties":{"src":{"type":"string","title":"Src","description":"Source language flores code"},"tgt":{"type":"string","title":"Tgt","description":"Target language flores code"},"words":{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1,"title":"Words"}},"type":"object","required":["src","tgt","words"],"title":"DictionaryHighlightRequest"},"DictionaryHighlightResponse":{"properties":{"code":{"type":"integer","title":"Code"},"matches":{"additionalProperties":{"items":{"$ref":"#/components/schemas/HighlightEntry"},"type":"array"},"type":"object","title":"Matches"}},"type":"object","required":["code","matches"],"title":"DictionaryHighlightResponse"},"DictionaryLookupRequest":{"properties":{"tgt":{"type":"string","title":"Tgt","description":"Target language flores or google code"},"word":{"type":"string","maxLength":200,"minLength":1,"title":"Word"},"src":{"type":"string","title":"Src","default":"eng_Latn"}},"type":"object","required":["tgt","word"],"title":"DictionaryLookupRequest"},"DictionaryLookupResponse":{"properties":{"code":{"type":"integer","title":"Code"},"is_lookup":{"type":"boolean","title":"Is Lookup"},"headword":{"type":"string","title":"Headword"},"translation":{"type":"string","title":"Translation"},"pos":{"type":"string","title":"Pos"},"example_en":{"type":"string","title":"Example En"},"example_tgt":{"type":"string","title":"Example Tgt"},"source":{"type":"string","title":"Source"}},"type":"object","required":["code","is_lookup","headword","translation","pos","example_en","example_tgt","source"],"title":"DictionaryLookupResponse"},"DocumentCheckoutResponse":{"properties":{"code":{"type":"integer","title":"Code"},"checkout_url":{"type":"string","title":"Checkout Url"},"order_token":{"type":"string","title":"Order Token"},"price_usd":{"type":"number","title":"Price Usd"}},"type":"object","required":["code","checkout_url","order_token","price_usd"],"title":"DocumentCheckoutResponse"},"DocumentJobListResponse":{"properties":{"code":{"type":"integer","title":"Code"},"scope":{"type":"string","title":"Scope"},"jobs":{"items":{"$ref":"#/components/schemas/DocumentJobSummary"},"type":"array","title":"Jobs"}},"type":"object","required":["code","scope","jobs"],"title":"DocumentJobListResponse"},"DocumentJobStatusResponse":{"properties":{"code":{"type":"integer","title":"Code"},"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"},"done_chunks":{"type":"integer","title":"Done Chunks"},"total_chunks":{"type":"integer","title":"Total Chunks"},"filename":{"type":"string","title":"Filename"},"format":{"type":"string","title":"Format"},"src":{"type":"string","title":"Src"},"tgt":{"type":"string","title":"Tgt"},"product":{"type":"string","title":"Product","default":"text"},"html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html"},"input_tokens":{"type":"integer","title":"Input Tokens","default":0},"output_tokens":{"type":"integer","title":"Output Tokens","default":0},"model_name":{"type":"string","title":"Model Name","default":""},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"output_available":{"type":"boolean","title":"Output Available","default":false},"output_mime":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Mime"},"source_available":{"type":"boolean","title":"Source Available","default":false},"preview_available":{"type":"boolean","title":"Preview Available","default":false},"preview_mime":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Mime"},"partial":{"type":"boolean","title":"Partial","default":false},"translated_chars":{"type":"integer","title":"Translated Chars","default":0},"source_chars":{"type":"integer","title":"Source Chars","default":0},"remaining_price_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Remaining Price Usd"},"refund_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refund Kind"},"refund_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refund Status"},"refund_amount_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Refund Amount Usd"},"refund_credits":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Refund Credits"},"can_cancel":{"type":"boolean","title":"Can Cancel","default":false},"reserved_credits":{"type":"integer","title":"Reserved Credits","default":0},"cancellation_refund_credits":{"type":"integer","title":"Cancellation Refund Credits","default":0},"cancellation_charged_credits":{"type":"integer","title":"Cancellation Charged Credits","default":0},"phase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phase"},"phase_done":{"type":"integer","title":"Phase Done","default":0},"phase_total":{"type":"integer","title":"Phase Total","default":0}},"type":"object","required":["code","job_id","status","done_chunks","total_chunks","filename","format","src","tgt"],"title":"DocumentJobStatusResponse"},"DocumentJobSummary":{"properties":{"job_id":{"type":"string","title":"Job Id"},"filename":{"type":"string","title":"Filename"},"format":{"type":"string","title":"Format"},"src":{"type":"string","title":"Src"},"tgt":{"type":"string","title":"Tgt"},"model_tier":{"type":"string","title":"Model Tier"},"product":{"type":"string","title":"Product","default":"text"},"status":{"type":"string","title":"Status"},"output_available":{"type":"boolean","title":"Output Available","default":false},"output_mime":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Mime"},"source_available":{"type":"boolean","title":"Source Available","default":false},"preview_available":{"type":"boolean","title":"Preview Available","default":false},"preview_mime":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Mime"},"created_at":{"type":"string","title":"Created At"},"credits":{"type":"integer","title":"Credits"},"credits_charged":{"type":"integer","title":"Credits Charged","default":0},"price_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price Usd"}},"type":"object","required":["job_id","filename","format","src","tgt","model_tier","status","created_at","credits"],"title":"DocumentJobSummary"},"DocumentOrderResponse":{"properties":{"code":{"type":"integer","title":"Code"},"status":{"type":"string","title":"Status"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"preview_job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Job Id"},"price_usd":{"type":"number","title":"Price Usd"},"list_price_usd":{"type":"number","title":"List Price Usd","default":0.0},"preview_available":{"type":"boolean","title":"Preview Available","default":false},"filename":{"type":"string","title":"Filename"},"model_tier":{"type":"string","title":"Model Tier"}},"type":"object","required":["code","status","job_id","price_usd","filename","model_tier"],"title":"DocumentOrderResponse"},"DocumentPreviewResponse":{"properties":{"code":{"type":"integer","title":"Code"},"order_token":{"type":"string","title":"Order Token"},"preview_job_id":{"type":"string","title":"Preview Job Id"},"price_usd":{"type":"number","title":"Price Usd"}},"type":"object","required":["code","order_token","preview_job_id","price_usd"],"title":"DocumentPreviewResponse"},"DocumentQuoteResponse":{"properties":{"code":{"type":"integer","title":"Code"},"quote_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote Id"},"product":{"type":"string","title":"Product","default":"text"},"text_excludes_embedded_images":{"type":"boolean","title":"Text Excludes Embedded Images","default":false},"tariff_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tariff Version"},"credit_denomination":{"type":"string","title":"Credit Denomination","default":"legacy"},"estimated_cost_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Estimated Cost Usd"},"credits":{"type":"integer","title":"Credits"},"remaining_credits":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Remaining Credits"},"price_usd":{"type":"number","title":"Price Usd","default":0.0},"credit_price_usd":{"type":"number","title":"Credit Price Usd","default":0.0},"checkout_required":{"type":"boolean","title":"Checkout Required","default":false},"over_limit":{"type":"boolean","title":"Over Limit","default":false},"source_chars":{"type":"integer","title":"Source Chars"},"pdf_pages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pdf Pages"},"method":{"type":"string","title":"Method"},"expires_at":{"type":"string","title":"Expires At"},"source_languages":{"items":{"type":"string"},"type":"array","title":"Source Languages","default":[]},"source_language_names":{"items":{"type":"string"},"type":"array","title":"Source Language Names","default":[]},"same_language":{"type":"boolean","title":"Same Language","default":false}},"type":"object","required":["code","credits","remaining_credits","source_chars","pdf_pages","method","expires_at"],"title":"DocumentQuoteResponse"},"DocumentQuoteUploadResponse":{"properties":{"code":{"type":"integer","title":"Code"},"upload_id":{"type":"string","title":"Upload Id"},"expires_at":{"type":"string","title":"Expires At"}},"type":"object","required":["code","upload_id","expires_at"],"title":"DocumentQuoteUploadResponse"},"DocumentTranslationResponse":{"properties":{"code":{"type":"integer","title":"Code"},"html":{"type":"string","title":"Html"},"format":{"type":"string","title":"Format"},"input_tokens":{"type":"integer","title":"Input Tokens"},"output_tokens":{"type":"integer","title":"Output Tokens"},"model_name":{"type":"string","title":"Model Name"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"product":{"type":"string","title":"Product","default":"text"},"output_available":{"type":"boolean","title":"Output Available","default":false},"output_mime":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Mime"},"source_available":{"type":"boolean","title":"Source Available","default":false},"preview_available":{"type":"boolean","title":"Preview Available","default":false},"preview_mime":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Mime"}},"type":"object","required":["code","html","format","input_tokens","output_tokens","model_name"],"title":"DocumentTranslationResponse"},"DocumentUsageResponse":{"properties":{"tier":{"type":"string","title":"Tier"},"daily_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Daily Limit"},"daily_used":{"type":"integer","title":"Daily Used"},"max_file_size_bytes":{"type":"integer","title":"Max File Size Bytes"},"max_extracted_chars":{"type":"integer","title":"Max Extracted Chars"},"images_allowed":{"type":"boolean","title":"Images Allowed"},"previews_per_day":{"type":"integer","title":"Previews Per Day"},"previews_remaining":{"type":"integer","title":"Previews Remaining"}},"type":"object","required":["tier","daily_limit","daily_used","max_file_size_bytes","max_extracted_chars","images_allowed","previews_per_day","previews_remaining"],"title":"DocumentUsageResponse"},"FeedbackChatDraftRequest":{"properties":{"messages":{"items":{"$ref":"#/components/schemas/FeedbackChatMessage"},"type":"array","maxItems":20,"title":"Messages"},"draft":{"type":"string","maxLength":2000,"minLength":1,"title":"Draft"},"feedback_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Feedback Id"},"context":{"anyOf":[{"$ref":"#/components/schemas/FeedbackContext"},{"type":"null"}]}},"type":"object","required":["draft"],"title":"FeedbackChatDraftRequest"},"FeedbackChatDraftResponse":{"properties":{"feedback_id":{"type":"string","format":"uuid","title":"Feedback Id"}},"type":"object","required":["feedback_id"],"title":"FeedbackChatDraftResponse"},"FeedbackChatMessage":{"properties":{"role":{"type":"string","enum":["user","assistant"],"title":"Role"},"content":{"type":"string","maxLength":2000,"minLength":1,"title":"Content"}},"type":"object","required":["role","content"],"title":"FeedbackChatMessage"},"FeedbackChatRequest":{"properties":{"messages":{"items":{"$ref":"#/components/schemas/FeedbackChatMessage"},"type":"array","maxItems":20,"minItems":1,"title":"Messages"},"feedback_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Feedback Id"},"context":{"anyOf":[{"$ref":"#/components/schemas/FeedbackContext"},{"type":"null"}]}},"type":"object","required":["messages"],"title":"FeedbackChatRequest"},"FeedbackChatResponse":{"properties":{"reply":{"type":"string","title":"Reply"},"done":{"type":"boolean","title":"Done"},"feedback_id":{"type":"string","format":"uuid","title":"Feedback Id"}},"type":"object","required":["reply","done","feedback_id"],"title":"FeedbackChatResponse"},"FeedbackContext":{"properties":{"src_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Src Language"},"tgt_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tgt Language"},"mode":{"anyOf":[{"type":"string","enum":["text","document","image"]},{"type":"null"}],"title":"Mode"},"tier":{"anyOf":[{"type":"string","enum":["fast","advanced"]},{"type":"null"}],"title":"Tier"},"is_paid":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Paid"},"learn":{"anyOf":[{"$ref":"#/components/schemas/LearnFeedbackContext"},{"type":"null"}]}},"type":"object","title":"FeedbackContext"},"GetAdminUserResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"subscription_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"total_translations":{"type":"integer","title":"Total Translations"},"total_cost":{"type":"number","title":"Total Cost"},"top_language_pairs":{"items":{"$ref":"#/components/schemas/UserLanguagePairCount"},"type":"array","title":"Top Language Pairs"}},"type":"object","required":["id","email","subscription_status","created_at","total_translations","total_cost","top_language_pairs"],"title":"GetAdminUserResponse"},"GetLearnProgressResponse":{"properties":{"progress":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Progress"}},"type":"object","required":["progress"],"title":"GetLearnProgressResponse"},"GetMeResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"is_admin":{"type":"boolean","title":"Is Admin"},"email_verified":{"type":"boolean","title":"Email Verified","default":true},"impersonator_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Impersonator Email"}},"type":"object","required":["id","email","created_at","is_admin"],"title":"GetMeResponse"},"GetShareResponse":{"properties":{"src":{"type":"string","title":"Src"},"tgt":{"type":"string","title":"Tgt"},"text":{"type":"string","title":"Text"},"translation":{"type":"string","title":"Translation"}},"type":"object","required":["src","tgt","text","translation"],"title":"GetShareResponse"},"GetUsageResponse":{"properties":{"tier":{"type":"string","title":"Tier"},"daily_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Daily Limit"},"daily_used":{"type":"integer","title":"Daily Used"},"advanced_credits_remaining":{"type":"integer","title":"Advanced Credits Remaining"},"advanced_credits_limit":{"type":"integer","title":"Advanced Credits Limit"},"unified_credits_enabled":{"type":"boolean","title":"Unified Credits Enabled","default":false},"credits_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credits Remaining"},"credits_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credits Limit"},"credits_purchased":{"type":"integer","title":"Credits Purchased","default":0},"credits_reserved":{"type":"integer","title":"Credits Reserved","default":0},"credits_reset_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Credits Reset At"},"credit_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credit Mode"},"review_milestone_successful_translations":{"type":"integer","title":"Review Milestone Successful Translations"},"review_milestone_active_dates":{"items":{"type":"string","format":"date"},"type":"array","title":"Review Milestone Active Dates"}},"type":"object","required":["tier","daily_limit","daily_used","advanced_credits_remaining","advanced_credits_limit","review_milestone_successful_translations","review_milestone_active_dates"],"title":"GetUsageResponse"},"GoogleAuthRequest":{"properties":{"credential":{"type":"string","maxLength":4096,"minLength":20,"title":"Credential"},"surface":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Surface"}},"type":"object","required":["credential"],"title":"GoogleAuthRequest"},"GoogleAuthResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"is_admin":{"type":"boolean","title":"Is Admin"},"email_verified":{"type":"boolean","title":"Email Verified"},"is_new":{"type":"boolean","title":"Is New"}},"type":"object","required":["id","email","created_at","is_admin","email_verified","is_new"],"title":"GoogleAuthResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HighlightEntry":{"properties":{"translation":{"type":"string","title":"Translation"},"pos":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pos"},"sense":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sense"},"example_src":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Example Src"},"example_tgt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Example Tgt"},"roman":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Roman"}},"type":"object","required":["translation","pos","sense","example_src","example_tgt","roman"],"title":"HighlightEntry"},"HtmlToPdfRequest":{"properties":{"html":{"type":"string","title":"Html"}},"type":"object","required":["html"],"title":"HtmlToPdfRequest"},"IapTransactionRequest":{"properties":{"signed_transaction":{"type":"string","maxLength":65536,"minLength":100,"title":"Signed Transaction"}},"type":"object","required":["signed_transaction"],"title":"IapTransactionRequest"},"ImpersonateResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"}},"type":"object","required":["id","email"],"title":"ImpersonateResponse"},"InterestDocument":{"properties":{"filename":{"type":"string","title":"Filename"},"size_bytes":{"type":"integer","title":"Size Bytes"},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sha256"}},"type":"object","required":["filename","size_bytes"],"title":"InterestDocument"},"InterestRequest":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"revision":{"type":"integer","maximum":2147483647.0,"minimum":1.0,"title":"Revision"},"action":{"type":"string","enum":["opened","purpose_selected","validation_failed","registered"],"title":"Action"},"purpose":{"anyOf":[{"type":"string","enum":["confidence","official","unsure"]},{"type":"null"}],"title":"Purpose"},"email":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}],"title":"Email"},"src":{"anyOf":[{"type":"string","maxLength":20,"pattern":"^[A-Za-z0-9_-]*$"},{"type":"null"}],"title":"Src"},"tgt":{"anyOf":[{"type":"string","maxLength":20,"pattern":"^[A-Za-z0-9_-]*$"},{"type":"null"}],"title":"Tgt"},"document_job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Document Job Id"},"expected_document_sha256":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{64}$"},{"type":"null"}],"title":"Expected Document Sha256"},"remove_document":{"type":"boolean","title":"Remove Document","default":false}},"additionalProperties":false,"type":"object","required":["id","revision","action"],"title":"InterestRequest"},"InterestResponse":{"properties":{"applied":{"type":"boolean","title":"Applied","default":true},"id":{"type":"string","format":"uuid","title":"Id"},"revision":{"type":"integer","title":"Revision"},"status":{"type":"string","enum":["draft","registered"],"title":"Status"},"purpose":{"anyOf":[{"type":"string","enum":["confidence","official","unsure"]},{"type":"null"}],"title":"Purpose"},"document":{"anyOf":[{"$ref":"#/components/schemas/InterestDocument"},{"type":"null"}]}},"type":"object","required":["id","revision","status","purpose","document"],"title":"InterestResponse"},"InterviewStatusResponse":{"properties":{"eligible":{"type":"boolean","title":"Eligible"},"resumable":{"type":"boolean","title":"Resumable"},"terminal":{"type":"boolean","title":"Terminal"}},"type":"object","required":["eligible","resumable","terminal"],"title":"InterviewStatusResponse"},"InterviewTurnRequest":{"properties":{"message":{"type":"string","maxLength":2000,"minLength":1,"title":"Message"},"locale":{"type":"string","maxLength":10,"title":"Locale","default":"en"}},"type":"object","required":["message"],"title":"InterviewTurnRequest"},"InterviewTurnResponse":{"properties":{"assistant_message":{"type":"string","title":"Assistant Message"},"done":{"type":"boolean","title":"Done"},"draw_eligible":{"type":"boolean","title":"Draw Eligible"}},"type":"object","required":["assistant_message","done","draw_eligible"],"title":"InterviewTurnResponse"},"LabelCount":{"properties":{"label":{"type":"string","title":"Label"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["label","count"],"title":"LabelCount"},"LanguagePairCount":{"properties":{"src":{"type":"string","title":"Src"},"tgt":{"type":"string","title":"Tgt"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["src","tgt","count"],"title":"LanguagePairCount"},"LearnFeedbackContext":{"properties":{"course":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Course"},"view":{"anyOf":[{"type":"string","enum":["home","lesson","review"]},{"type":"null"}],"title":"View"},"unit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Unit"},"lesson_id":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Lesson Id"},"lesson_title":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Lesson Title"},"item_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Item Index"},"item_type":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Item Type"},"item_prompt":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Item Prompt"},"last_answer":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Last Answer"},"last_correct":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Last Correct"},"last_answer_prompt":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Last Answer Prompt"},"completed_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Completed Count"}},"type":"object","title":"LearnFeedbackContext"},"ListAdminFeedbackResponse":{"properties":{"feedback":{"items":{"$ref":"#/components/schemas/AdminFeedbackItem"},"type":"array","title":"Feedback"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["feedback","total","page","page_size"],"title":"ListAdminFeedbackResponse"},"ListAdminTranslationInputsResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdminTranslationInputItem"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["items","total","page","page_size"],"title":"ListAdminTranslationInputsResponse"},"ListAdminUsersResponse":{"properties":{"users":{"items":{"$ref":"#/components/schemas/AdminUserItem"},"type":"array","title":"Users"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["users","total","page","page_size"],"title":"ListAdminUsersResponse"},"LoginUserRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":72,"minLength":1,"title":"Password"},"surface":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Surface"}},"type":"object","required":["email","password"],"title":"LoginUserRequest"},"LoginUserResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","email","created_at"],"title":"LoginUserResponse"},"ManagedApiKeyResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"prefix":{"type":"string","title":"Prefix"},"name":{"type":"string","title":"Name"},"can_manage_billing":{"type":"boolean","title":"Can Manage Billing"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"}},"type":"object","required":["id","prefix","name","can_manage_billing","created_at","last_used_at"],"title":"ManagedApiKeyResponse"},"ManagedApiKeysResponse":{"properties":{"keys":{"items":{"$ref":"#/components/schemas/ManagedApiKeyResponse"},"type":"array","title":"Keys"}},"type":"object","required":["keys"],"title":"ManagedApiKeysResponse"},"ModelCost":{"properties":{"model":{"type":"string","title":"Model"},"cost":{"type":"number","title":"Cost"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["model","cost","count"],"title":"ModelCost"},"OrganizationInquiryRequest":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"email":{"type":"string","maxLength":254,"format":"email","title":"Email"},"organization":{"type":"string","maxLength":200,"minLength":1,"pattern":"^[^\\r\\n]+$","title":"Organization"},"seats":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":1.0},{"type":"null"}],"title":"Seats"},"message":{"type":"string","maxLength":2000,"title":"Message","default":""},"locale":{"type":"string","maxLength":20,"pattern":"^[A-Za-z-]+$","title":"Locale","default":"en"},"website":{"type":"string","maxLength":200,"title":"Website","default":""}},"additionalProperties":false,"type":"object","required":["request_id","email","organization"],"title":"OrganizationInquiryRequest"},"OutreachArrivalRequest":{"properties":{"ref":{"type":"string","maxLength":64,"minLength":1,"title":"Ref"},"lead":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Lead"}},"type":"object","required":["ref"],"title":"OutreachArrivalRequest"},"OutreachArrivalResponse":{"properties":{"code":{"type":"integer","title":"Code","default":200},"recorded":{"type":"boolean","title":"Recorded"}},"type":"object","required":["recorded"],"title":"OutreachArrivalResponse"},"ProjectRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"description":{"type":"string","maxLength":4000,"minLength":10,"title":"Description"},"src":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Src"},"tgt":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Tgt"},"kind":{"type":"string","pattern":"^(tailored|archive)$","title":"Kind","default":"tailored"}},"type":"object","required":["email","description"],"title":"ProjectRequest"},"PublishRequest":{"properties":{"public_consent":{"type":"boolean","title":"Public Consent"}},"additionalProperties":false,"type":"object","required":["public_consent"],"title":"PublishRequest"},"PurchaseApiKeyRequest":{"properties":{"expected_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Expected User Id"},"pack_id":{"type":"string","enum":["credits_300","credits_1000","credits_2000"],"title":"Pack Id"},"idempotency_key":{"type":"string","format":"uuid","title":"Idempotency Key"},"payment_token":{"type":"string","format":"password","title":"Payment Token","writeOnly":true},"payment_method":{"type":"null","title":"Payment Method"},"email":{"type":"string","format":"email","title":"Email"},"name":{"type":"string","maxLength":64,"title":"Name","default":"agent"}},"type":"object","required":["pack_id","idempotency_key","payment_token","email"],"title":"PurchaseApiKeyRequest"},"PurchaseApiKeyResponse":{"properties":{"account_id":{"type":"string","format":"uuid","title":"Account Id"},"email":{"type":"string","title":"Email"},"key":{"type":"string","title":"Key"},"key_id":{"type":"string","format":"uuid","title":"Key Id"},"key_prefix":{"type":"string","title":"Key Prefix"},"can_manage_billing":{"type":"boolean","title":"Can Manage Billing"},"balance_credits":{"type":"integer","title":"Balance Credits"},"purchase":{"$ref":"#/components/schemas/ApiPurchaseResponse"}},"type":"object","required":["account_id","email","key","key_id","key_prefix","can_manage_billing","balance_credits","purchase"],"title":"PurchaseApiKeyResponse"},"PurchaseCreditsRequest":{"properties":{"expected_user_id":{"type":"string","format":"uuid","title":"Expected User Id"},"expected_payment_method_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Payment Method Id"},"pack_id":{"type":"string","enum":["credits_300","credits_1000","credits_2000"],"title":"Pack Id"},"idempotency_key":{"type":"string","format":"uuid","title":"Idempotency Key"},"return_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Return Url"},"payment_method":{"type":"string","enum":["saved","checkout"],"title":"Payment Method","default":"checkout"}},"type":"object","required":["expected_user_id","pack_id","idempotency_key","return_url"],"title":"PurchaseCreditsRequest"},"PurchaseCreditsResponse":{"properties":{"purchase_id":{"type":"string","format":"uuid","title":"Purchase Id"},"status":{"type":"string","enum":["pending","checkout","processing","paid","failed","expired"],"title":"Status"},"checkout_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkout Url"},"credits":{"type":"integer","title":"Credits"},"price_cents":{"type":"integer","title":"Price Cents"},"currency":{"type":"string","title":"Currency"},"credits_granted":{"type":"boolean","title":"Credits Granted"}},"type":"object","required":["purchase_id","status","credits","price_cents","currency","credits_granted"],"title":"PurchaseCreditsResponse"},"PutLearnProgressRequest":{"properties":{"progress":{"additionalProperties":true,"type":"object","title":"Progress"}},"type":"object","required":["progress"],"title":"PutLearnProgressRequest"},"QuoteRequest":{"properties":{"src":{"type":"string","maxLength":20,"minLength":1,"title":"Src"},"tgt":{"type":"string","maxLength":20,"minLength":1,"title":"Tgt"},"words":{"type":"integer","maximum":500000.0,"minimum":1.0,"title":"Words"},"handwritten":{"type":"boolean","title":"Handwritten","default":false}},"type":"object","required":["src","tgt","words"],"title":"QuoteRequest"},"RemoveApiPaymentMethodRequest":{"properties":{"expected_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Expected User Id"},"expected_revision":{"type":"integer","minimum":0.0,"title":"Expected Revision"}},"type":"object","required":["expected_revision"],"title":"RemoveApiPaymentMethodRequest"},"RequestPasswordResetRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"RequestPasswordResetRequest"},"SavedCard":{"properties":{"id":{"type":"string","title":"Id"},"brand":{"type":"string","title":"Brand"},"last4":{"type":"string","title":"Last4"}},"type":"object","required":["id","brand","last4"],"title":"SavedCard"},"StartInterviewRequest":{"properties":{"locale":{"type":"string","maxLength":10,"title":"Locale","default":"en"}},"type":"object","title":"StartInterviewRequest"},"StartInterviewResponse":{"properties":{"messages":{"items":{"$ref":"#/components/schemas/TranscriptEntry"},"type":"array","title":"Messages"},"done":{"type":"boolean","title":"Done"}},"type":"object","required":["messages","done"],"title":"StartInterviewResponse"},"StopImpersonatingResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"}},"type":"object","required":["id","email"],"title":"StopImpersonatingResponse"},"SubmitFeedbackRequest":{"properties":{"category":{"type":"string","enum":["bug","feature","general"],"title":"Category"},"message":{"type":"string","maxLength":5000,"minLength":1,"title":"Message"},"reply_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Reply Email"},"context":{"anyOf":[{"$ref":"#/components/schemas/FeedbackContext"},{"type":"null"}]}},"type":"object","required":["category","message"],"title":"SubmitFeedbackRequest"},"SubmitFeedbackResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"}},"type":"object","required":["id"],"title":"SubmitFeedbackResponse"},"SubmitRatingRequest":{"properties":{"rating":{"type":"integer","enum":[1,-1],"title":"Rating"},"src_language":{"type":"string","maxLength":20,"title":"Src Language"},"tgt_language":{"type":"string","maxLength":20,"title":"Tgt Language"},"tier":{"anyOf":[{"type":"string","enum":["fast","advanced"]},{"type":"null"}],"title":"Tier"},"model_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Model Name"},"mode":{"anyOf":[{"type":"string","enum":["text","document","image"]},{"type":"null"}],"title":"Mode"},"source_text":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Source Text"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","required":["rating","src_language","tgt_language"],"title":"SubmitRatingRequest"},"SubmitRatingResponse":{"properties":{"ok":{"type":"boolean","title":"Ok"}},"type":"object","required":["ok"],"title":"SubmitRatingResponse"},"SynthesizeRequest":{"properties":{"text":{"type":"string","maxLength":500,"minLength":1,"title":"Text"},"tgt":{"type":"string","maxLength":20,"minLength":2,"title":"Tgt"},"engine":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Engine"}},"type":"object","required":["text","tgt"],"title":"SynthesizeRequest"},"TranscriptEntry":{"properties":{"role":{"type":"string","title":"Role"},"text":{"type":"string","title":"Text"}},"type":"object","required":["role","text"],"title":"TranscriptEntry"},"TranslateV1Request":{"properties":{"src":{"type":"string","title":"Src"},"tgt":{"type":"string","title":"Tgt"},"text":{"type":"string","minLength":1,"title":"Text"},"tier":{"type":"string","enum":["fast","advanced"],"title":"Tier","default":"fast"},"max_credits":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Max Credits"}},"type":"object","required":["src","tgt","text"],"title":"TranslateV1Request"},"TranslateV1Response":{"properties":{"text":{"type":"string","title":"Text"},"usage":{"$ref":"#/components/schemas/TranslateV1Usage"},"request_id":{"type":"string","title":"Request Id"},"credits_remaining":{"type":"integer","title":"Credits Remaining"}},"type":"object","required":["text","usage","request_id","credits_remaining"],"title":"TranslateV1Response"},"TranslateV1Usage":{"properties":{"chars":{"type":"integer","title":"Chars"},"credits_charged":{"type":"integer","title":"Credits Charged"}},"type":"object","required":["chars","credits_charged"],"title":"TranslateV1Usage"},"UpdateFeedbackStatusRequest":{"properties":{"status":{"type":"string","title":"Status"}},"type":"object","required":["status"],"title":"UpdateFeedbackStatusRequest"},"UpgradeCheckoutRequest":{"properties":{"expected_user_id":{"type":"string","format":"uuid","title":"Expected User Id"},"plan":{"type":"string","const":"scholar","title":"Plan","default":"scholar"},"interval":{"type":"string","enum":["month","year"],"title":"Interval","default":"month"},"return_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Return Url"}},"type":"object","required":["expected_user_id","return_url"],"title":"UpgradeCheckoutRequest"},"UpgradeCheckoutResponse":{"properties":{"checkout_url":{"type":"string","title":"Checkout Url"}},"type":"object","required":["checkout_url"],"title":"UpgradeCheckoutResponse"},"UserLanguagePairCount":{"properties":{"src":{"type":"string","title":"Src"},"src_name":{"type":"string","title":"Src Name"},"tgt":{"type":"string","title":"Tgt"},"tgt_name":{"type":"string","title":"Tgt Name"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["src","src_name","tgt","tgt_name","count"],"title":"UserLanguagePairCount"},"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"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}