-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathopenapi.json
More file actions
1 lines (1 loc) · 55.7 KB
/
Copy pathopenapi.json
File metadata and controls
1 lines (1 loc) · 55.7 KB
1
{"openapi":"3.0.1","info":{"title":"OpenAPI definition","version":"v0"},"servers":[{"url":"http://localhost","description":"Generated server url"}],"paths":{"/v1/collab/projects/{projectId}":{"get":{"tags":["collab-project-controller"],"operationId":"getProject","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultCollabProjectResponse"}}}}}},"put":{"tags":["collab-project-controller"],"operationId":"updateProject","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCollabProjectRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultCollabProjectResponse"}}}}}},"delete":{"tags":["collab-project-controller"],"operationId":"deleteProject","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultVoid"}}}}}}},"/v1/collab/comments/{commentId}/resolve":{"put":{"tags":["collab-comment-controller"],"operationId":"resolveComment","parameters":[{"name":"commentId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultVoid"}}}}}}},"/v1/collab/chapters/{chapterId}/submit":{"put":{"tags":["chapter-task-controller"],"operationId":"submitChapter","parameters":[{"name":"chapterId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitChapterRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultChapterTaskResponse"}}}}}}},"/v1/collab/chapters/{chapterId}/review":{"put":{"tags":["chapter-task-controller"],"operationId":"reviewChapter","parameters":[{"name":"chapterId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewChapterRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultChapterTaskResponse"}}}}}}},"/v1/collab/chapters/{chapterId}/assign":{"put":{"tags":["chapter-task-controller"],"operationId":"assignChapter","parameters":[{"name":"chapterId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignChapterRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultChapterTaskResponse"}}}}}}},"/user/profile":{"get":{"tags":["web-user-controller"],"operationId":"getCurrentUserProfile","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultUser"}}}}}},"put":{"tags":["web-user-controller"],"operationId":"updateUserProfile","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserProfileRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultUser"}}}}}}},"/user/preferences":{"get":{"tags":["web-user-controller"],"operationId":"getPreferences","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultUserPreferencesResponse"}}}}}},"put":{"tags":["web-user-controller"],"operationId":"updatePreferences","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPreferencesRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultUserPreferencesResponse"}}}}}}},"/user/glossaries/{id}":{"get":{"tags":["web-glossary-controller"],"operationId":"getGlossaryDetail","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultGlossaryResponse"}}}}}},"put":{"tags":["web-glossary-controller"],"operationId":"updateGlossaryItem","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlossaryItemRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultGlossaryResponse"}}}}}},"delete":{"tags":["web-glossary-controller"],"operationId":"deleteGlossaryItem","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Result"}}}}}}},"/v1/webhook/stripe":{"post":{"tags":["stripe-webhook-controller"],"operationId":"handleStripeWebhook","requestBody":{"content":{"application/json":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/v1/translate/webpage":{"post":{"tags":["plugin-translate-controller"],"operationId":"translateWebpage","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebpageTranslateRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"text/event-stream":{"schema":{"$ref":"#/components/schemas/SseEmitter"}}}}}}},"/v1/translate/text/stream":{"post":{"tags":["plugin-translate-controller"],"operationId":"streamTextTranslate","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SelectionTranslationRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"text/event-stream":{"schema":{"$ref":"#/components/schemas/SseEmitter"}}}}}}},"/v1/translate/selection":{"post":{"tags":["plugin-translate-controller"],"operationId":"translateSelection","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SelectionTranslationRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SelectionTranslateResponse"}}}}}}},"/v1/translate/reader":{"post":{"tags":["plugin-translate-controller"],"operationId":"translateReader","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReaderTranslateRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ReaderTranslateResponse"}}}}}}},"/v1/translate/rag":{"post":{"tags":["shared-translate-controller"],"operationId":"queryRag","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RagTranslationRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultRagTranslationResponse"}}}}}}},"/v1/translate/premium-selection":{"post":{"tags":["plugin-translate-controller"],"operationId":"premiumTranslateSelection","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SelectionTranslationRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SelectionTranslateResponse"}}}}}}},"/v1/translate/premium-reader":{"post":{"tags":["plugin-translate-controller"],"operationId":"premiumTranslateReader","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReaderTranslateRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ReaderTranslateResponse"}}}}}}},"/v1/translate/document/stream":{"post":{"tags":["shared-translate-controller"],"operationId":"streamDocumentTranslate","parameters":[{"name":"sourceLang","in":"query","required":false,"schema":{"type":"string","default":"auto"}},{"name":"targetLang","in":"query","required":false,"schema":{"type":"string","default":"zh"}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","default":"fast"}}],"requestBody":{"content":{"application/json":{"schema":{"required":["file"],"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"text/event-stream":{"schema":{"$ref":"#/components/schemas/SseEmitter"}}}}}}},"/v1/translate/document/stream/{docId}":{"post":{"tags":["shared-translate-controller"],"operationId":"streamDocumentTranslateById","parameters":[{"name":"docId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"targetLang","in":"query","required":false,"schema":{"type":"string","default":"zh"}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","default":"fast"}}],"responses":{"200":{"description":"OK","content":{"text/event-stream":{"schema":{"$ref":"#/components/schemas/SseEmitter"}}}}}}},"/v1/external/translate":{"post":{"tags":["external-translate-controller"],"operationId":"translate","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalTranslateRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultExternalTranslateResponse"}}}}}}},"/v1/external/batch":{"post":{"tags":["external-translate-controller"],"operationId":"batchTranslate","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalBatchTranslateRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultListExternalTranslateResponse"}}}}}}},"/v1/collab/projects":{"get":{"tags":["collab-project-controller"],"operationId":"listProjects","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":1}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":20}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultPageResponseCollabProjectResponse"}}}}}},"post":{"tags":["collab-project-controller"],"operationId":"createProject","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCollabProjectRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultCollabProjectResponse"}}}}}}},"/v1/collab/projects/{projectId}/status":{"post":{"tags":["collab-project-controller"],"operationId":"changeProjectStatus","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"targetStatus","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultVoid"}}}}}}},"/v1/collab/projects/{projectId}/invite":{"post":{"tags":["collab-member-controller"],"operationId":"inviteMember","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteMemberRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultProjectMemberResponse"}}}}}}},"/v1/collab/projects/{projectId}/invite-code":{"post":{"tags":["collab-project-controller"],"operationId":"generateInviteCode","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultInviteCodeResult"}}}}}}},"/v1/collab/projects/{projectId}/chapters":{"get":{"tags":["collab-project-controller"],"operationId":"listChapters","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":1}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":20}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultPageResponseChapterTaskResponse"}}}}}},"post":{"tags":["collab-project-controller"],"operationId":"createChapter","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"chapterNumber","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"title","in":"query","required":false,"schema":{"type":"string"}},{"name":"sourceText","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultChapterTaskResponse"}}}}}}},"/v1/collab/join":{"post":{"tags":["collab-member-controller"],"operationId":"joinByCode","parameters":[{"name":"inviteCode","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultProjectMemberResponse"}}}}}}},"/v1/collab/chapters/{chapterTaskId}/comments":{"get":{"tags":["collab-comment-controller"],"operationId":"listComments","parameters":[{"name":"chapterTaskId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":1}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":20}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultPageResponseCommentResponse"}}}}}},"post":{"tags":["collab-comment-controller"],"operationId":"createComment","parameters":[{"name":"chapterTaskId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCommentRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultCommentResponse"}}}}}}},"/user/send-reset-code":{"post":{"tags":["web-user-controller"],"operationId":"sendResetCode","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendCodeRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Result"}}}}}}},"/user/send-code":{"post":{"tags":["web-user-controller"],"operationId":"sendVerificationCode","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendCodeRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Result"}}}}}}},"/user/reset-password":{"post":{"tags":["web-user-controller"],"operationId":"resetPassword","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Result"}}}}}}},"/user/register":{"post":{"tags":["web-user-controller"],"operationId":"register","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultUser"}}}}}}},"/user/register-device":{"post":{"tags":["plugin-auth-controller"],"operationId":"registerDevice","requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultString"}}}}}}},"/user/refresh-token":{"post":{"tags":["web-user-controller"],"operationId":"refreshToken","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshTokenRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Result"}}}}}}},"/user/logout":{"post":{"tags":["web-user-controller"],"operationId":"logout","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Result"}}}}}}},"/user/login":{"post":{"tags":["web-user-controller"],"operationId":"login","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultUser"}}}}}}},"/user/glossaries":{"get":{"tags":["web-glossary-controller"],"operationId":"getGlossaryList","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":1}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":20}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultPageResponseGlossaryResponse"}}}}}},"post":{"tags":["web-glossary-controller"],"operationId":"createGlossaryItem","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlossaryItemRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultGlossaryResponse"}}}}}}},"/user/glossaries/import":{"post":{"tags":["web-glossary-controller"],"operationId":"importGlossary","requestBody":{"content":{"application/json":{"schema":{"required":["file"],"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultInteger"}}}}}}},"/user/documents/{docId}/retry":{"post":{"tags":["web-document-controller"],"operationId":"retryDocument","parameters":[{"name":"docId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultVoid"}}}}}}},"/user/documents/{docId}/cancel":{"post":{"tags":["web-document-controller"],"operationId":"cancelTranslation","parameters":[{"name":"docId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultVoid"}}}}}}},"/user/documents/upload":{"post":{"tags":["web-document-controller"],"operationId":"uploadDocument","parameters":[{"name":"sourceLang","in":"query","required":false,"schema":{"type":"string","default":"auto"}},{"name":"targetLang","in":"query","required":true,"schema":{"type":"string"}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","default":"fast"}},{"name":"projectId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"required":["file"],"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultDocumentTranslationResponse"}}}}}}},"/user/change-password":{"post":{"tags":["web-user-controller"],"operationId":"changePassword","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Result"}}}}}}},"/user/api-keys":{"get":{"tags":["web-api-key-controller"],"operationId":"getApiKeys","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":1}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":20}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultPageResponseApiKeyResponse"}}}}}},"post":{"tags":["web-api-key-controller"],"operationId":"createApiKey","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultMapStringObject"}}}}}}},"/user/api-keys/{id}/reset":{"post":{"tags":["web-api-key-controller"],"operationId":"resetApiKey","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultMapStringObject"}}}}}}},"/subscription/portal":{"post":{"tags":["subscription-controller"],"operationId":"portal","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultPortalSessionResponse"}}}}}}},"/subscription/checkout":{"post":{"tags":["subscription-controller"],"operationId":"checkout","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSessionRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultCheckoutSessionResponse"}}}}}}},"/subscription/cancel":{"post":{"tags":["subscription-controller"],"operationId":"cancel","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultSubscriptionStatusResponse"}}}}}}},"/admin/cache/clear":{"post":{"tags":["cache-admin-controller"],"operationId":"clearAllCache","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultString"}}}}}}},"/v1/translate/task/{taskId}":{"get":{"tags":["shared-translate-controller"],"operationId":"getTaskStatus","parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultTaskStatusResponse"}}}}}},"delete":{"tags":["shared-translate-controller"],"operationId":"cancelTask","parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Result"}}}}}}},"/v1/translate/task/{taskId}/result":{"get":{"tags":["shared-translate-controller"],"operationId":"getTranslationResult","parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultTranslationResultResponse"}}}}}}},"/v1/translate/task/{taskId}/download":{"get":{"tags":["shared-translate-controller"],"operationId":"downloadTranslation","parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string","format":"byte"}}}}}}},"/v1/external/task/{taskId}/download":{"get":{"tags":["external-translate-controller"],"operationId":"downloadTranslation_1","parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string","format":"byte"}}}}}}},"/v1/external/models":{"get":{"tags":["external-translate-controller"],"operationId":"getModels","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultListMapStringObject"}}}}}}},"/v1/collab/sse/{projectId}":{"get":{"tags":["collab-project-controller"],"operationId":"collabSse","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"lastEventId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"text/event-stream":{"schema":{"$ref":"#/components/schemas/SseEmitter"}}}}}}},"/v1/collab/projects/{projectId}/members":{"get":{"tags":["collab-member-controller"],"operationId":"listMembers","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":1}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":20}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultPageResponseProjectMemberResponse"}}}}}}},"/v1/collab/chapters/{chapterId}":{"get":{"tags":["chapter-task-controller"],"operationId":"getChapter","parameters":[{"name":"chapterId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultChapterTaskResponse"}}}}}}},"/v1/collab/chapters/my":{"get":{"tags":["chapter-task-controller"],"operationId":"listMyChapters","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":1}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":20}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultPageResponseChapterTaskResponse"}}}}}}},"/user/translation-history":{"get":{"tags":["web-user-controller"],"operationId":"getTranslationHistory","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":1}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":20}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultPageResponseTranslationHistoryResponse"}}}}}}},"/user/statistics":{"get":{"tags":["web-user-controller"],"operationId":"getStatistics","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultUserStatisticsResponse"}}}}}}},"/user/quota":{"get":{"tags":["web-user-controller"],"operationId":"getQuota","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultUserQuotaResponse"}}}}}}},"/user/glossaries/{id}/terms":{"get":{"tags":["web-glossary-controller"],"operationId":"getGlossaryTerms","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultListGlossaryResponse"}}}}}}},"/user/glossaries/export":{"get":{"tags":["web-glossary-controller"],"operationId":"exportGlossary","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string","format":"byte"}}}}}}},"/user/get-token/{deviceId}":{"get":{"tags":["plugin-auth-controller"],"operationId":"getToken","parameters":[{"name":"deviceId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultMapStringString"}}}}}}},"/user/documents":{"get":{"tags":["web-document-controller"],"operationId":"getDocuments","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":1}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":20}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"all"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultPageResponseDocumentInfoResponse"}}}}}}},"/user/documents/{docId}":{"get":{"tags":["web-document-controller"],"operationId":"getDocument","parameters":[{"name":"docId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultDocumentInfoResponse"}}}}}},"delete":{"tags":["web-document-controller"],"operationId":"deleteDocument","parameters":[{"name":"docId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultVoid"}}}}}}},"/user/documents/{docId}/download":{"get":{"tags":["web-document-controller"],"operationId":"downloadDocument","parameters":[{"name":"docId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string","format":"byte"}}}}}}},"/user/api-keys/{id}/reveal":{"get":{"tags":["web-api-key-controller"],"operationId":"revealApiKey","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultMapStringObject"}}}}}}},"/subscription/verify":{"get":{"tags":["subscription-controller"],"operationId":"verify","parameters":[{"name":"session_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultPaymentVerificationResponse"}}}}}}},"/subscription/status":{"get":{"tags":["subscription-controller"],"operationId":"status","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultSubscriptionStatusResponse"}}}}}}},"/platform/stats":{"get":{"tags":["web-platform-controller"],"operationId":"getPlatformStats","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultPlatformStatsResponse"}}}}}}},"/v1/translate/history/{taskId}":{"delete":{"tags":["shared-translate-controller"],"operationId":"deleteHistory","parameters":[{"name":"taskId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Result"}}}}}}},"/v1/collab/projects/{projectId}/members/{memberId}":{"delete":{"tags":["collab-member-controller"],"operationId":"removeMember","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"memberId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultVoid"}}}}}}},"/v1/collab/comments/{commentId}":{"delete":{"tags":["collab-comment-controller"],"operationId":"deleteComment","parameters":[{"name":"commentId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResultVoid"}}}}}}},"/user/api-keys/{id}":{"delete":{"tags":["web-api-key-controller"],"operationId":"deleteApiKey","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Result"}}}}}}}},"components":{"schemas":{"CreateCollabProjectRequest":{"required":["name","sourceLang","targetLang"],"type":"object","properties":{"name":{"maxLength":255,"minLength":0,"type":"string"},"description":{"maxLength":2000,"minLength":0,"type":"string"},"sourceLang":{"type":"string"},"targetLang":{"type":"string"}}},"CollabProjectResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"description":{"type":"string"},"ownerId":{"type":"integer","format":"int64"},"ownerName":{"type":"string"},"sourceLang":{"type":"string"},"targetLang":{"type":"string"},"status":{"type":"string"},"progress":{"type":"integer","format":"int32"},"memberCount":{"type":"integer","format":"int32"},"totalChapters":{"type":"integer","format":"int32"},"completedChapters":{"type":"integer","format":"int32"},"createTime":{"type":"string","format":"date-time"},"updateTime":{"type":"string","format":"date-time"}}},"ResultCollabProjectResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/CollabProjectResponse"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"ResultVoid":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"SubmitChapterRequest":{"required":["translatedText"],"type":"object","properties":{"translatedText":{"type":"string"}}},"ChapterTaskResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"chapterNumber":{"type":"integer","format":"int32"},"title":{"type":"string"},"status":{"type":"string"},"progress":{"type":"integer","format":"int32"},"assigneeId":{"type":"integer","format":"int64"},"assigneeName":{"type":"string"},"reviewerId":{"type":"integer","format":"int64"},"reviewerName":{"type":"string"},"reviewComment":{"type":"string"},"sourceWordCount":{"type":"integer","format":"int32"},"targetWordCount":{"type":"integer","format":"int32"},"assignedTime":{"type":"string","format":"date-time"},"submittedTime":{"type":"string","format":"date-time"},"reviewedTime":{"type":"string","format":"date-time"},"completedTime":{"type":"string","format":"date-time"},"sourceText":{"type":"string"},"translatedText":{"type":"string"}}},"ResultChapterTaskResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/ChapterTaskResponse"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"ReviewChapterRequest":{"required":["approved"],"type":"object","properties":{"approved":{"type":"boolean"},"comment":{"maxLength":2000,"minLength":0,"type":"string"}}},"AssignChapterRequest":{"required":["assigneeId"],"type":"object","properties":{"assigneeId":{"type":"integer","format":"int64"},"reviewerId":{"type":"integer","format":"int64"}}},"UpdateUserProfileRequest":{"type":"object","properties":{"username":{"type":"string"},"avatar":{"type":"string"}}},"ResultUser":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/User"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"User":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"email":{"type":"string"},"username":{"type":"string"},"avatar":{"type":"string"},"password":{"type":"string"},"apiKey":{"type":"object","additionalProperties":{"type":"string"}},"refreshToken":{"type":"string"},"userLevel":{"type":"string"},"status":{"type":"string"},"tenantId":{"type":"integer","format":"int64"},"createTime":{"type":"string","format":"date-time"},"updateTime":{"type":"string","format":"date-time"},"lastLoginTime":{"type":"string","format":"date-time"},"deleted":{"type":"integer","format":"int32"}}},"UserPreferencesRequest":{"type":"object","properties":{"defaultEngine":{"type":"string"},"defaultTargetLang":{"type":"string"},"enableGlossary":{"type":"boolean"},"defaultGlossaryId":{"type":"integer","format":"int64"},"enableCache":{"type":"boolean"},"autoTranslateSelection":{"type":"boolean"},"fontSize":{"maximum":72,"minimum":8,"type":"integer","format":"int32"},"themeMode":{"type":"string"}}},"ResultUserPreferencesResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/UserPreferencesResponse"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"UserPreferencesResponse":{"type":"object","properties":{"defaultEngine":{"type":"string"},"defaultTargetLang":{"type":"string"},"enableGlossary":{"type":"boolean"},"defaultGlossaryId":{"type":"integer","format":"int64"},"enableCache":{"type":"boolean"},"autoTranslateSelection":{"type":"boolean"},"fontSize":{"type":"integer","format":"int32"},"themeMode":{"type":"string"}}},"GlossaryItemRequest":{"required":["sourceWord","targetWord"],"type":"object","properties":{"sourceWord":{"maxLength":100,"minLength":0,"type":"string"},"targetWord":{"maxLength":100,"minLength":0,"type":"string"},"remark":{"maxLength":500,"minLength":0,"type":"string"}}},"GlossaryResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"sourceWord":{"type":"string"},"targetWord":{"type":"string"},"remark":{"type":"string"},"createTime":{"type":"string","format":"date-time"}}},"ResultGlossaryResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/GlossaryResponse"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"TextItem":{"type":"object","properties":{"id":{"type":"string"},"original":{"type":"string"},"context":{"type":"string"}}},"WebpageTranslateRequest":{"required":["targetLang","textRegistry"],"type":"object","properties":{"targetLang":{"type":"string"},"sourceLang":{"type":"string"},"engine":{"type":"string"},"fastMode":{"type":"boolean"},"textRegistry":{"type":"array","items":{"$ref":"#/components/schemas/TextItem"}}}},"SseEmitter":{"type":"object","properties":{"timeout":{"type":"integer","format":"int64"}}},"SelectionTranslationRequest":{"required":["text"],"type":"object","properties":{"text":{"type":"string"},"sourceLang":{"type":"string"},"targetLang":{"type":"string"},"engine":{"type":"string"},"mode":{"type":"string"}}},"SelectionTranslateResponse":{"type":"object","properties":{"success":{"type":"boolean"},"engine":{"type":"string"},"translation":{"type":"string"}}},"ReaderTranslateRequest":{"required":["content","targetLang"],"type":"object","properties":{"content":{"type":"string"},"targetLang":{"type":"string"},"sourceLang":{"type":"string"},"engine":{"type":"string"},"mode":{"type":"string"}}},"ReaderTranslateResponse":{"type":"object","properties":{"success":{"type":"boolean"},"engine":{"type":"string"},"translatedContent":{"type":"string"}}},"RagTranslationRequest":{"required":["targetLang","text"],"type":"object","properties":{"text":{"type":"string"},"targetLang":{"type":"string"},"sourceLang":{"type":"string"},"engine":{"type":"string"}}},"RagMatch":{"type":"object","properties":{"sourceText":{"type":"string"},"targetText":{"type":"string"},"similarity":{"type":"number","format":"double"},"memoryId":{"type":"integer","format":"int64"}}},"RagTranslationResponse":{"type":"object","properties":{"directHit":{"type":"boolean"},"translation":{"type":"string"},"similarity":{"type":"number","format":"double"},"matches":{"type":"array","items":{"$ref":"#/components/schemas/RagMatch"}}}},"ResultRagTranslationResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/RagTranslationResponse"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"ExternalTranslateRequest":{"required":["target_lang","text"],"type":"object","properties":{"engine":{"type":"string"},"target_lang":{"type":"string"},"source_lang":{"type":"string"},"text":{"type":"string"},"mode":{"type":"string"}}},"ExternalTranslateResponse":{"type":"object","properties":{"translatedText":{"type":"string"},"sourceLang":{"type":"string"},"targetLang":{"type":"string"},"engine":{"type":"string"},"usage":{"type":"integer","format":"int32"},"error":{"type":"string"}}},"ResultExternalTranslateResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/ExternalTranslateResponse"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"ExternalBatchTranslateRequest":{"required":["target_lang"],"type":"object","properties":{"engine":{"type":"string"},"texts":{"type":"array","items":{"type":"string"}},"target_lang":{"type":"string"},"source_lang":{"type":"string"},"mode":{"type":"string"}}},"ResultListExternalTranslateResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ExternalTranslateResponse"}},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"InviteMemberRequest":{"required":["role"],"type":"object","properties":{"email":{"type":"string"},"role":{"type":"string","enum":["OWNER","REVIEWER","TRANSLATOR"]}}},"ProjectMemberResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"userId":{"type":"integer","format":"int64"},"username":{"type":"string"},"email":{"type":"string"},"avatar":{"type":"string"},"role":{"type":"string"},"inviteStatus":{"type":"string"},"joinedTime":{"type":"string","format":"date-time"}}},"ResultProjectMemberResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/ProjectMemberResponse"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"InviteCodeResult":{"type":"object","properties":{"code":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"}}},"ResultInviteCodeResult":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/InviteCodeResult"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"CreateCommentRequest":{"required":["content"],"type":"object","properties":{"sourceText":{"type":"string"},"targetText":{"type":"string"},"content":{"type":"string"},"parentId":{"type":"integer","format":"int64"}}},"CommentResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"userId":{"type":"integer","format":"int64"},"username":{"type":"string"},"avatar":{"type":"string"},"sourceText":{"type":"string"},"targetText":{"type":"string"},"content":{"type":"string"},"resolved":{"type":"boolean"},"createTime":{"type":"string","format":"date-time"},"replies":{"type":"array","items":{"$ref":"#/components/schemas/CommentResponse"}}}},"ResultCommentResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/CommentResponse"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"SendCodeRequest":{"required":["email"],"type":"object","properties":{"email":{"type":"string"}}},"Result":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"ResetPasswordRequest":{"required":["code","email","newPassword"],"type":"object","properties":{"email":{"type":"string"},"code":{"type":"string"},"newPassword":{"maxLength":2147483647,"minLength":6,"type":"string"}}},"RegisterRequest":{"required":["code","email","password"],"type":"object","properties":{"email":{"type":"string"},"password":{"maxLength":2147483647,"minLength":6,"type":"string"},"code":{"type":"string"},"username":{"type":"string"},"avatar":{"type":"string"}}},"ResultString":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"RefreshTokenRequest":{"required":["refreshToken"],"type":"object","properties":{"refreshToken":{"type":"string"}}},"LoginRequest":{"required":["email","password"],"type":"object","properties":{"email":{"type":"string"},"password":{"type":"string"},"from":{"type":"string"}}},"ResultInteger":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"integer","format":"int32"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"DocumentTranslationResponse":{"type":"object","properties":{"taskId":{"type":"string"},"documentId":{"type":"integer","format":"int64"},"documentName":{"type":"string"},"status":{"type":"string"},"message":{"type":"string"},"projectId":{"type":"integer","format":"int64"}}},"ResultDocumentTranslationResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/DocumentTranslationResponse"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"ChangePasswordRequest":{"required":["newPassword","oldPassword"],"type":"object","properties":{"oldPassword":{"type":"string"},"newPassword":{"maxLength":2147483647,"minLength":6,"type":"string"}}},"CreateApiKeyRequest":{"required":["name"],"type":"object","properties":{"name":{"type":"string"}}},"ResultMapStringObject":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","additionalProperties":{"type":"object"}},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"PortalSessionResponse":{"type":"object","properties":{"portalUrl":{"type":"string"}}},"ResultPortalSessionResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/PortalSessionResponse"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"CheckoutSessionRequest":{"required":["billingCycle","plan"],"type":"object","properties":{"plan":{"type":"string"},"billingCycle":{"type":"string"}}},"CheckoutSessionResponse":{"type":"object","properties":{"checkoutUrl":{"type":"string"},"upgraded":{"type":"boolean"}}},"ResultCheckoutSessionResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/CheckoutSessionResponse"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"ResultSubscriptionStatusResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/SubscriptionStatusResponse"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"SubscriptionStatusResponse":{"type":"object","properties":{"plan":{"type":"string"},"status":{"type":"string"},"periodEnd":{"type":"string","format":"date-time"},"cancelAtPeriodEnd":{"type":"boolean"}}},"ResultTaskStatusResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/TaskStatusResponse"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"TaskStatusResponse":{"type":"object","properties":{"taskId":{"type":"string"},"type":{"type":"string"},"status":{"type":"string"},"progress":{"type":"integer","format":"int32"},"sourceLang":{"type":"string"},"targetLang":{"type":"string"},"createTime":{"type":"string"},"completedTime":{"type":"string"},"errorMessage":{"type":"string"}}},"ResultTranslationResultResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/TranslationResultResponse"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"TranslationResultResponse":{"type":"object","properties":{"taskId":{"type":"string"},"status":{"type":"string"},"translatedText":{"type":"string"},"sourceContent":{"type":"string"},"translatedFilePath":{"type":"string"},"sourceLang":{"type":"string"},"targetLang":{"type":"string"},"completedTime":{"type":"string"}}},"ResultListMapStringObject":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"type":"object","additionalProperties":{"type":"object"}}},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"PageResponseCollabProjectResponse":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"total":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int32"},"list":{"type":"array","items":{"$ref":"#/components/schemas/CollabProjectResponse"}}}},"ResultPageResponseCollabProjectResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/PageResponseCollabProjectResponse"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"PageResponseProjectMemberResponse":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"total":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int32"},"list":{"type":"array","items":{"$ref":"#/components/schemas/ProjectMemberResponse"}}}},"ResultPageResponseProjectMemberResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/PageResponseProjectMemberResponse"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"PageResponseChapterTaskResponse":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"total":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int32"},"list":{"type":"array","items":{"$ref":"#/components/schemas/ChapterTaskResponse"}}}},"ResultPageResponseChapterTaskResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/PageResponseChapterTaskResponse"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"PageResponseCommentResponse":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"total":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int32"},"list":{"type":"array","items":{"$ref":"#/components/schemas/CommentResponse"}}}},"ResultPageResponseCommentResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/PageResponseCommentResponse"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"PageResponseTranslationHistoryResponse":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"total":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int32"},"list":{"type":"array","items":{"$ref":"#/components/schemas/TranslationHistoryResponse"}}}},"ResultPageResponseTranslationHistoryResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/PageResponseTranslationHistoryResponse"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"TranslationHistoryResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"taskId":{"type":"string"},"type":{"type":"string"},"sourceLang":{"type":"string"},"targetLang":{"type":"string"},"sourceTextPreview":{"type":"string"},"targetTextPreview":{"type":"string"},"createTime":{"type":"string"},"status":{"type":"string"},"documentName":{"type":"string"}}},"ResultUserStatisticsResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/UserStatisticsResponse"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"UserStatisticsResponse":{"type":"object","properties":{"totalTranslations":{"type":"integer","format":"int32"},"textTranslations":{"type":"integer","format":"int32"},"documentTranslations":{"type":"integer","format":"int32"},"totalCharacters":{"type":"integer","format":"int64"},"totalDocuments":{"type":"integer","format":"int32"},"weekTranslations":{"type":"integer","format":"int32"},"monthTranslations":{"type":"integer","format":"int32"}}},"ResultUserQuotaResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/UserQuotaResponse"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"UserQuotaResponse":{"type":"object","properties":{"userLevel":{"type":"string"},"monthlyChars":{"type":"integer","format":"int64"},"usedThisMonth":{"type":"integer","format":"int64"},"remainingChars":{"type":"integer","format":"int64"},"concurrencyLimit":{"type":"integer","format":"int32"},"fastModeEquivalent":{"type":"integer","format":"int64"},"expertModeEquivalent":{"type":"integer","format":"int64"},"teamModeEquivalent":{"type":"integer","format":"int64"}}},"PageResponseGlossaryResponse":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"total":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int32"},"list":{"type":"array","items":{"$ref":"#/components/schemas/GlossaryResponse"}}}},"ResultPageResponseGlossaryResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/PageResponseGlossaryResponse"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"ResultListGlossaryResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/GlossaryResponse"}},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"ResultMapStringString":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"object","additionalProperties":{"type":"string"}},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"DocumentInfoResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"fileType":{"type":"string"},"fileSize":{"type":"integer","format":"int64"},"sourceLang":{"type":"string"},"targetLang":{"type":"string"},"taskId":{"type":"string"},"status":{"type":"string"},"progress":{"type":"integer","format":"int32"},"createTime":{"type":"string"},"completedTime":{"type":"string"},"errorMessage":{"type":"string"}}},"PageResponseDocumentInfoResponse":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"total":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int32"},"list":{"type":"array","items":{"$ref":"#/components/schemas/DocumentInfoResponse"}}}},"ResultPageResponseDocumentInfoResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/PageResponseDocumentInfoResponse"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"ResultDocumentInfoResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/DocumentInfoResponse"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"ApiKeyResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"apiKey":{"type":"string"},"active":{"type":"boolean"},"lastUsedAt":{"type":"string","format":"date-time"},"totalUsage":{"type":"integer","format":"int64"},"createdAt":{"type":"string","format":"date-time"}}},"PageResponseApiKeyResponse":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"total":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int32"},"list":{"type":"array","items":{"$ref":"#/components/schemas/ApiKeyResponse"}}}},"ResultPageResponseApiKeyResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/PageResponseApiKeyResponse"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"PaymentVerificationResponse":{"type":"object","properties":{"paid":{"type":"boolean"},"sessionId":{"type":"string"},"plan":{"type":"string"},"status":{"type":"string"},"message":{"type":"string"}}},"ResultPaymentVerificationResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/PaymentVerificationResponse"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}},"PlatformStatsResponse":{"type":"object","properties":{"totalUsers":{"type":"integer","format":"int32"},"activeUsersToday":{"type":"integer","format":"int32"},"activeUsersWeek":{"type":"integer","format":"int32"},"activeUsersMonth":{"type":"integer","format":"int32"},"totalTranslations":{"type":"integer","format":"int64"},"translationsToday":{"type":"integer","format":"int64"},"totalCharacters":{"type":"integer","format":"int64"},"totalDocumentTranslations":{"type":"integer","format":"int32"},"totalGlossaries":{"type":"integer","format":"int32"},"systemStatus":{"type":"string"}}},"ResultPlatformStatsResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/PlatformStatsResponse"},"code":{"type":"string"},"message":{"type":"string"},"token":{"type":"string"}}}}}}