{
  "openapi": "3.1.0",
  "info": {
    "title": "LingoCatch 监管测试 API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://lingocatch.com/api/regulatory/v1"
    }
  ],
  "paths": {
    "/media/uploads": {
      "post": {
        "summary": "Upload Media",
        "operationId": "upload_media_media_uploads_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MediaUpload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateUploadResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "description": "监管凭证无效、过期或已撤销"
          },
          "429": {
            "description": "机构每日配额耗尽"
          },
          "503": {
            "description": "正式服务未配置或不可用"
          }
        },
        "parameters": []
      }
    },
    "/media/{media_id}/complete": {
      "post": {
        "summary": "Complete Media",
        "operationId": "complete_media_media__media_id__complete_post",
        "parameters": [
          {
            "name": "media_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Media Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "description": "监管凭证无效、过期或已撤销"
          },
          "429": {
            "description": "机构每日配额耗尽"
          },
          "503": {
            "description": "正式服务未配置或不可用"
          }
        }
      }
    },
    "/media/{media_id}": {
      "get": {
        "summary": "Get Media",
        "operationId": "get_media_media__media_id__get",
        "parameters": [
          {
            "name": "media_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Media Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "description": "监管凭证无效、过期或已撤销"
          },
          "429": {
            "description": "机构每日配额耗尽"
          },
          "503": {
            "description": "正式服务未配置或不可用"
          }
        }
      }
    },
    "/articles": {
      "post": {
        "summary": "Article",
        "operationId": "article_articles_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ArticleInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArticleOutput"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "description": "监管凭证无效、过期或已撤销"
          },
          "429": {
            "description": "机构每日配额耗尽"
          },
          "503": {
            "description": "正式服务未配置或不可用"
          }
        },
        "parameters": []
      }
    },
    "/articles/txt": {
      "post": {
        "summary": "Article Txt",
        "operationId": "article_txt_articles_txt_post",
        "parameters": [
          {
            "name": "sourceLocale",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "en-US",
              "title": "Sourcelocale"
            }
          },
          {
            "name": "targetLocale",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "zh-Hans",
              "title": "Targetlocale"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_article_txt_articles_txt_post"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArticleOutput"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "description": "监管凭证无效、过期或已撤销"
          },
          "429": {
            "description": "机构每日配额耗尽"
          },
          "503": {
            "description": "正式服务未配置或不可用"
          }
        }
      }
    },
    "/words/contextual-lookup": {
      "post": {
        "tags": [
          "words"
        ],
        "summary": "Contextual Lookup",
        "operationId": "contextual_lookup_words_contextual_lookup_post",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContextualLookupRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContextualLookupResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "description": "监管凭证无效、过期或已撤销"
          },
          "429": {
            "description": "机构每日配额耗尽"
          },
          "503": {
            "description": "正式服务未配置或不可用"
          }
        }
      }
    },
    "/words/contextual-chat": {
      "post": {
        "tags": [
          "words"
        ],
        "summary": "Chat About Contextual Entry",
        "operationId": "chat_about_contextual_entry_words_contextual_chat_post",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContextualChatRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WordChatResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "description": "监管凭证无效、过期或已撤销"
          },
          "429": {
            "description": "机构每日配额耗尽"
          },
          "503": {
            "description": "正式服务未配置或不可用"
          }
        }
      }
    },
    "/words/analyze": {
      "post": {
        "tags": [
          "words"
        ],
        "summary": "Analyze Word",
        "operationId": "analyze_word_words_analyze_post",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WordAnalyzeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WordAnalysisResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "description": "监管凭证无效、过期或已撤销"
          },
          "429": {
            "description": "机构每日配额耗尽"
          },
          "503": {
            "description": "正式服务未配置或不可用"
          }
        }
      }
    },
    "/words/section": {
      "post": {
        "tags": [
          "words"
        ],
        "summary": "Analyze Word Section",
        "operationId": "analyze_word_section_words_section_post",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WordSectionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WordSectionResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "description": "监管凭证无效、过期或已撤销"
          },
          "429": {
            "description": "机构每日配额耗尽"
          },
          "503": {
            "description": "正式服务未配置或不可用"
          }
        }
      }
    },
    "/words/chat": {
      "post": {
        "tags": [
          "words"
        ],
        "summary": "Chat About Word",
        "operationId": "chat_about_word_words_chat_post",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WordChatRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WordChatResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "description": "监管凭证无效、过期或已撤销"
          },
          "429": {
            "description": "机构每日配额耗尽"
          },
          "503": {
            "description": "正式服务未配置或不可用"
          }
        }
      }
    },
    "/sentences/analyze": {
      "post": {
        "tags": [
          "sentences"
        ],
        "summary": "Analyze Sentence",
        "operationId": "analyze_sentence_sentences_analyze_post",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SentenceAnalyzeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SentenceAnalysisResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "description": "监管凭证无效、过期或已撤销"
          },
          "429": {
            "description": "机构每日配额耗尽"
          },
          "503": {
            "description": "正式服务未配置或不可用"
          }
        }
      }
    },
    "/sentences/sections": {
      "post": {
        "tags": [
          "sentences"
        ],
        "summary": "Analyze Sentence Section",
        "operationId": "analyze_sentence_section_sentences_sections_post",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SentenceSectionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SentenceSectionResponse-Output"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "description": "监管凭证无效、过期或已撤销"
          },
          "429": {
            "description": "机构每日配额耗尽"
          },
          "503": {
            "description": "正式服务未配置或不可用"
          }
        }
      }
    },
    "/sentences/chat": {
      "post": {
        "tags": [
          "sentences"
        ],
        "summary": "Chat About Sentence",
        "operationId": "chat_about_sentence_sentences_chat_post",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SentenceChatRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WordChatResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "description": "监管凭证无效、过期或已撤销"
          },
          "429": {
            "description": "机构每日配额耗尽"
          },
          "503": {
            "description": "正式服务未配置或不可用"
          }
        }
      }
    },
    "/sentences/moderate-article": {
      "post": {
        "tags": [
          "sentences"
        ],
        "summary": "Check Article",
        "description": "Authenticated, non-premium preflight for iOS on-device translation.",
        "operationId": "check_article_sentences_moderate_article_post",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ArticleTranslationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  },
                  "title": "Response Check Article Sentences Moderate Article Post"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "description": "监管凭证无效、过期或已撤销"
          },
          "429": {
            "description": "机构每日配额耗尽"
          },
          "503": {
            "description": "正式服务未配置或不可用"
          }
        }
      }
    },
    "/sentences/translate-article": {
      "post": {
        "tags": [
          "sentences"
        ],
        "summary": "Translate Article",
        "operationId": "translate_article_sentences_translate_article_post",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ArticleTranslationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArticleTranslationResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "401": {
            "description": "监管凭证无效、过期或已撤销"
          },
          "429": {
            "description": "机构每日配额耗尽"
          },
          "503": {
            "description": "正式服务未配置或不可用"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ArticleInput": {
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 60000,
            "minLength": 1,
            "title": "Text"
          },
          "sourceLocale": {
            "type": "string",
            "maxLength": 16,
            "title": "Sourcelocale",
            "default": "en-US"
          },
          "targetLocale": {
            "type": "string",
            "maxLength": 16,
            "title": "Targetlocale",
            "default": "zh-Hans"
          }
        },
        "type": "object",
        "required": [
          "text"
        ],
        "title": "ArticleInput"
      },
      "ArticleOutput": {
        "properties": {
          "segments": {
            "items": {
              "$ref": "#/components/schemas/ArticleSegment"
            },
            "type": "array",
            "title": "Segments"
          },
          "translations": {
            "items": {
              "$ref": "#/components/schemas/ArticleTranslation"
            },
            "type": "array",
            "title": "Translations"
          }
        },
        "type": "object",
        "required": [
          "segments",
          "translations"
        ],
        "title": "ArticleOutput"
      },
      "ArticleSegment": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "text": {
            "type": "string",
            "maxLength": 12000,
            "minLength": 1,
            "title": "Text"
          }
        },
        "type": "object",
        "required": [
          "id",
          "text"
        ],
        "title": "ArticleSegment"
      },
      "ArticleTranslation": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "translation": {
            "type": "string",
            "maxLength": 24000,
            "minLength": 1,
            "title": "Translation"
          }
        },
        "type": "object",
        "required": [
          "id",
          "translation"
        ],
        "title": "ArticleTranslation"
      },
      "ArticleTranslationRequest": {
        "properties": {
          "segments": {
            "items": {
              "$ref": "#/components/schemas/ArticleSegment"
            },
            "type": "array",
            "maxItems": 2000,
            "minItems": 1,
            "title": "Segments"
          },
          "sourceLocale": {
            "type": "string",
            "maxLength": 16,
            "title": "Sourcelocale",
            "default": "en-US"
          },
          "targetLocale": {
            "type": "string",
            "maxLength": 16,
            "title": "Targetlocale",
            "default": "zh-Hans"
          }
        },
        "type": "object",
        "required": [
          "segments"
        ],
        "title": "ArticleTranslationRequest"
      },
      "ArticleTranslationResponse": {
        "properties": {
          "translations": {
            "items": {
              "$ref": "#/components/schemas/ArticleTranslation"
            },
            "type": "array",
            "title": "Translations"
          }
        },
        "type": "object",
        "required": [
          "translations"
        ],
        "title": "ArticleTranslationResponse"
      },
      "Body_article_txt_articles_txt_post": {
        "properties": {
          "file": {
            "type": "string",
            "format": "binary",
            "title": "File"
          }
        },
        "type": "object",
        "required": [
          "file"
        ],
        "title": "Body_article_txt_articles_txt_post"
      },
      "ContextualChatRequest": {
        "properties": {
          "entry": {
            "$ref": "#/components/schemas/ContextualLookupEntry"
          },
          "contextSentence": {
            "type": "string",
            "maxLength": 600,
            "minLength": 1,
            "title": "Contextsentence"
          },
          "sourceLocale": {
            "type": "string",
            "maxLength": 16,
            "title": "Sourcelocale",
            "default": "en-US"
          },
          "targetLocale": {
            "type": "string",
            "maxLength": 16,
            "title": "Targetlocale",
            "default": "zh-Hans"
          },
          "history": {
            "items": {
              "$ref": "#/components/schemas/WordChatMessage"
            },
            "type": "array",
            "maxItems": 12,
            "title": "History"
          },
          "question": {
            "type": "string",
            "maxLength": 500,
            "minLength": 1,
            "title": "Question"
          }
        },
        "type": "object",
        "required": [
          "entry",
          "contextSentence",
          "question"
        ],
        "title": "ContextualChatRequest"
      },
      "ContextualLookupEntry": {
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "phrase",
              "word"
            ],
            "title": "Kind"
          },
          "label": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1,
            "title": "Label"
          },
          "sourceWordIndexes": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 8,
            "minItems": 1,
            "title": "Sourcewordindexes"
          },
          "originalMeaning": {
            "type": "string",
            "maxLength": 300,
            "minLength": 1,
            "title": "Originalmeaning"
          },
          "contextExplanation": {
            "type": "string",
            "maxLength": 500,
            "minLength": 1,
            "title": "Contextexplanation"
          }
        },
        "type": "object",
        "required": [
          "kind",
          "label",
          "sourceWordIndexes",
          "originalMeaning",
          "contextExplanation"
        ],
        "title": "ContextualLookupEntry"
      },
      "ContextualLookupRequest": {
        "properties": {
          "word": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1,
            "title": "Word"
          },
          "clickedWordIndex": {
            "type": "integer",
            "maximum": 400.0,
            "minimum": 0.0,
            "title": "Clickedwordindex"
          },
          "contextSentence": {
            "type": "string",
            "maxLength": 600,
            "minLength": 1,
            "title": "Contextsentence"
          },
          "sourceLocale": {
            "type": "string",
            "maxLength": 16,
            "title": "Sourcelocale",
            "default": "en-US"
          },
          "targetLocale": {
            "type": "string",
            "maxLength": 16,
            "title": "Targetlocale",
            "default": "zh-Hans"
          }
        },
        "type": "object",
        "required": [
          "word",
          "clickedWordIndex",
          "contextSentence"
        ],
        "title": "ContextualLookupRequest"
      },
      "ContextualLookupResponse": {
        "properties": {
          "phrase": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ContextualLookupEntry"
              },
              {
                "type": "null"
              }
            ]
          },
          "words": {
            "items": {
              "$ref": "#/components/schemas/ContextualLookupEntry"
            },
            "type": "array",
            "maxItems": 8,
            "minItems": 1,
            "title": "Words"
          }
        },
        "type": "object",
        "required": [
          "words"
        ],
        "title": "ContextualLookupResponse"
      },
      "CreateUploadResponse": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "objectKey": {
            "type": "string",
            "title": "Objectkey"
          },
          "uploadUrl": {
            "type": "string",
            "title": "Uploadurl"
          },
          "uploadHeaders": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Uploadheaders"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "title": "Expiresat"
          }
        },
        "type": "object",
        "required": [
          "id",
          "objectKey",
          "uploadUrl",
          "uploadHeaders",
          "expiresAt"
        ],
        "title": "CreateUploadResponse"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "JobResponse": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "status": {
            "$ref": "#/components/schemas/JobStatus"
          },
          "locale": {
            "type": "string",
            "title": "Locale"
          },
          "errorCode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errorcode"
          },
          "errorMessage": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errormessage"
          },
          "segments": {
            "anyOf": [
              {
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Segments"
          },
          "ocrTargets": {
            "anyOf": [
              {
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ocrtargets"
          },
          "srtAvailable": {
            "type": "boolean",
            "title": "Srtavailable"
          }
        },
        "type": "object",
        "required": [
          "id",
          "status",
          "locale",
          "srtAvailable"
        ],
        "title": "JobResponse"
      },
      "JobStatus": {
        "type": "string",
        "enum": [
          "uploading",
          "submitted",
          "pending",
          "running",
          "awaiting_visual_cues",
          "formatting",
          "succeeded",
          "failed"
        ],
        "title": "JobStatus"
      },
      "MediaResponse": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "errorCode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Errorcode"
          },
          "result": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/JobResponse"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "id",
          "status"
        ],
        "title": "MediaResponse"
      },
      "MediaUpload": {
        "properties": {
          "fileName": {
            "type": "string",
            "maxLength": 512,
            "minLength": 1,
            "title": "Filename"
          },
          "contentType": {
            "type": "string",
            "enum": [
              "video/mp4",
              "video/quicktime",
              "audio/mp4",
              "audio/x-m4a",
              "audio/mpeg",
              "audio/wav",
              "audio/x-wav"
            ],
            "title": "Contenttype"
          },
          "sizeBytes": {
            "type": "integer",
            "maximum": 524288000.0,
            "exclusiveMinimum": 0.0,
            "title": "Sizebytes"
          },
          "locale": {
            "type": "string",
            "enum": [
              "en-US",
              "en-GB",
              "zh-CN",
              "zh-TW",
              "ja-JP",
              "ko-KR"
            ],
            "title": "Locale",
            "default": "en-US"
          }
        },
        "type": "object",
        "required": [
          "fileName",
          "contentType",
          "sizeBytes"
        ],
        "title": "MediaUpload"
      },
      "SentenceAnalysisResponse": {
        "properties": {
          "pronunciation": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SentencePronunciationResponse"
              },
              {
                "type": "null"
              }
            ]
          },
          "sentence": {
            "type": "string",
            "maxLength": 1200,
            "minLength": 1,
            "title": "Sentence"
          },
          "translation": {
            "type": "string",
            "maxLength": 1600,
            "minLength": 1,
            "title": "Translation"
          },
          "semanticChunks": {
            "items": {
              "$ref": "#/components/schemas/SentenceSemanticChunk"
            },
            "type": "array",
            "maxItems": 30,
            "minItems": 1,
            "title": "Semanticchunks"
          },
          "keywords": {
            "items": {
              "$ref": "#/components/schemas/SentenceKeyword"
            },
            "type": "array",
            "maxItems": 16,
            "title": "Keywords"
          },
          "keyPoints": {
            "items": {
              "$ref": "#/components/schemas/SentenceKeyPoint"
            },
            "type": "array",
            "maxItems": 10,
            "minItems": 1,
            "title": "Keypoints"
          },
          "sentenceStructure": {
            "items": {
              "$ref": "#/components/schemas/SentenceStructurePart"
            },
            "type": "array",
            "maxItems": 20,
            "title": "Sentencestructure"
          }
        },
        "type": "object",
        "required": [
          "sentence",
          "translation",
          "semanticChunks",
          "keyPoints"
        ],
        "title": "SentenceAnalysisResponse"
      },
      "SentenceAnalyzeRequest": {
        "properties": {
          "sentence": {
            "type": "string",
            "maxLength": 1200,
            "minLength": 1,
            "title": "Sentence"
          },
          "previousSentence": {
            "type": "string",
            "maxLength": 1200,
            "title": "Previoussentence",
            "default": ""
          },
          "nextSentence": {
            "type": "string",
            "maxLength": 1200,
            "title": "Nextsentence",
            "default": ""
          },
          "sourceLocale": {
            "type": "string",
            "maxLength": 16,
            "title": "Sourcelocale",
            "default": "en-US"
          },
          "targetLocale": {
            "type": "string",
            "maxLength": 16,
            "title": "Targetlocale",
            "default": "zh-Hans"
          }
        },
        "type": "object",
        "required": [
          "sentence"
        ],
        "title": "SentenceAnalyzeRequest"
      },
      "SentenceChatRequest": {
        "properties": {
          "sentence": {
            "type": "string",
            "maxLength": 1200,
            "minLength": 1,
            "title": "Sentence"
          },
          "previousSentence": {
            "type": "string",
            "maxLength": 1200,
            "title": "Previoussentence",
            "default": ""
          },
          "nextSentence": {
            "type": "string",
            "maxLength": 1200,
            "title": "Nextsentence",
            "default": ""
          },
          "sourceLocale": {
            "type": "string",
            "maxLength": 16,
            "title": "Sourcelocale",
            "default": "en-US"
          },
          "targetLocale": {
            "type": "string",
            "maxLength": 16,
            "title": "Targetlocale",
            "default": "zh-Hans"
          },
          "analysis": {
            "$ref": "#/components/schemas/SentenceSectionResponse-Input"
          },
          "history": {
            "items": {
              "$ref": "#/components/schemas/WordChatMessage"
            },
            "type": "array",
            "maxItems": 12,
            "title": "History"
          },
          "question": {
            "type": "string",
            "maxLength": 500,
            "minLength": 1,
            "title": "Question"
          }
        },
        "type": "object",
        "required": [
          "sentence",
          "analysis",
          "question"
        ],
        "title": "SentenceChatRequest"
      },
      "SentenceKeyPoint": {
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1,
            "title": "Title"
          },
          "explanation": {
            "type": "string",
            "maxLength": 700,
            "minLength": 1,
            "title": "Explanation"
          }
        },
        "type": "object",
        "required": [
          "title",
          "explanation"
        ],
        "title": "SentenceKeyPoint"
      },
      "SentenceKeyword": {
        "properties": {
          "term": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1,
            "title": "Term"
          },
          "category": {
            "type": "string",
            "maxLength": 60,
            "title": "Category",
            "default": ""
          },
          "meaning": {
            "type": "string",
            "maxLength": 300,
            "minLength": 1,
            "title": "Meaning"
          }
        },
        "type": "object",
        "required": [
          "term",
          "meaning"
        ],
        "title": "SentenceKeyword"
      },
      "SentencePronunciationDetail": {
        "properties": {
          "term": {
            "type": "string",
            "maxLength": 240,
            "title": "Term",
            "default": ""
          },
          "ipa": {
            "type": "string",
            "maxLength": 240,
            "title": "Ipa",
            "default": ""
          },
          "analysis": {
            "type": "string",
            "maxLength": 1200,
            "title": "Analysis",
            "default": ""
          }
        },
        "type": "object",
        "title": "SentencePronunciationDetail"
      },
      "SentencePronunciationResponse": {
        "properties": {
          "source": {
            "type": "string",
            "enum": [
              "text",
              "audio"
            ],
            "title": "Source",
            "default": "text"
          },
          "sentence": {
            "type": "string",
            "maxLength": 1200,
            "minLength": 1,
            "title": "Sentence"
          },
          "ipa": {
            "type": "string",
            "maxLength": 1200,
            "title": "Ipa",
            "default": ""
          },
          "words": {
            "items": {
              "$ref": "#/components/schemas/SentencePronunciationWord"
            },
            "type": "array",
            "maxItems": 60,
            "title": "Words"
          },
          "observations": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 12,
            "title": "Observations"
          },
          "details": {
            "items": {
              "$ref": "#/components/schemas/SentencePronunciationDetail"
            },
            "type": "array",
            "maxItems": 20,
            "title": "Details"
          }
        },
        "type": "object",
        "required": [
          "sentence"
        ],
        "title": "SentencePronunciationResponse"
      },
      "SentencePronunciationWord": {
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1,
            "title": "Text"
          },
          "ipa": {
            "type": "string",
            "maxLength": 120,
            "title": "Ipa",
            "default": ""
          },
          "observation": {
            "type": "string",
            "maxLength": 300,
            "title": "Observation",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "text"
        ],
        "title": "SentencePronunciationWord"
      },
      "SentenceSectionRequest": {
        "properties": {
          "sentence": {
            "type": "string",
            "maxLength": 1200,
            "minLength": 1,
            "title": "Sentence"
          },
          "previousSentence": {
            "type": "string",
            "maxLength": 1200,
            "title": "Previoussentence",
            "default": ""
          },
          "nextSentence": {
            "type": "string",
            "maxLength": 1200,
            "title": "Nextsentence",
            "default": ""
          },
          "sourceLocale": {
            "type": "string",
            "maxLength": 16,
            "title": "Sourcelocale",
            "default": "en-US"
          },
          "targetLocale": {
            "type": "string",
            "maxLength": 16,
            "title": "Targetlocale",
            "default": "zh-Hans"
          },
          "section": {
            "type": "string",
            "enum": [
              "translation",
              "vocabulary",
              "pronunciation",
              "structure",
              "ai"
            ],
            "title": "Section"
          }
        },
        "type": "object",
        "required": [
          "sentence",
          "section"
        ],
        "title": "SentenceSectionRequest"
      },
      "SentenceSectionResponse-Input": {
        "properties": {
          "sentence": {
            "type": "string",
            "maxLength": 1200,
            "minLength": 1,
            "title": "Sentence"
          },
          "translation": {
            "type": "string",
            "maxLength": 1600,
            "title": "Translation",
            "default": ""
          },
          "semanticChunks": {
            "items": {
              "$ref": "#/components/schemas/SentenceSemanticChunk"
            },
            "type": "array",
            "maxItems": 30,
            "title": "Semanticchunks"
          },
          "keywords": {
            "items": {
              "$ref": "#/components/schemas/SentenceKeyword"
            },
            "type": "array",
            "maxItems": 16,
            "title": "Keywords"
          },
          "keyPoints": {
            "items": {
              "$ref": "#/components/schemas/SentenceKeyPoint"
            },
            "type": "array",
            "maxItems": 10,
            "title": "Keypoints"
          },
          "sentenceStructure": {
            "items": {
              "$ref": "#/components/schemas/SentenceStructurePart"
            },
            "type": "array",
            "maxItems": 20,
            "title": "Sentencestructure"
          },
          "pronunciation": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SentencePronunciationResponse"
              },
              {
                "type": "null"
              }
            ]
          },
          "aiExplanation": {
            "type": "string",
            "maxLength": 5000,
            "title": "Aiexplanation",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "sentence"
        ],
        "title": "SentenceSectionResponse"
      },
      "SentenceSectionResponse-Output": {
        "properties": {
          "sentence": {
            "type": "string",
            "maxLength": 1200,
            "minLength": 1,
            "title": "Sentence"
          },
          "translation": {
            "type": "string",
            "maxLength": 1600,
            "title": "Translation",
            "default": ""
          },
          "semanticChunks": {
            "items": {
              "$ref": "#/components/schemas/SentenceSemanticChunk"
            },
            "type": "array",
            "maxItems": 30,
            "title": "Semanticchunks"
          },
          "keywords": {
            "items": {
              "$ref": "#/components/schemas/SentenceKeyword"
            },
            "type": "array",
            "maxItems": 16,
            "title": "Keywords"
          },
          "keyPoints": {
            "items": {
              "$ref": "#/components/schemas/SentenceKeyPoint"
            },
            "type": "array",
            "maxItems": 10,
            "title": "Keypoints"
          },
          "sentenceStructure": {
            "items": {
              "$ref": "#/components/schemas/SentenceStructurePart"
            },
            "type": "array",
            "maxItems": 20,
            "title": "Sentencestructure"
          },
          "pronunciation": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SentencePronunciationResponse"
              },
              {
                "type": "null"
              }
            ]
          },
          "aiExplanation": {
            "type": "string",
            "maxLength": 5000,
            "title": "Aiexplanation",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "sentence"
        ],
        "title": "SentenceSectionResponse"
      },
      "SentenceSemanticChunk": {
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 300,
            "minLength": 1,
            "title": "Text"
          },
          "meaning": {
            "type": "string",
            "maxLength": 400,
            "minLength": 1,
            "title": "Meaning"
          }
        },
        "type": "object",
        "required": [
          "text",
          "meaning"
        ],
        "title": "SentenceSemanticChunk"
      },
      "SentenceStructurePart": {
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 300,
            "minLength": 1,
            "title": "Text"
          },
          "role": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Role"
          },
          "explanation": {
            "type": "string",
            "maxLength": 400,
            "title": "Explanation",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "text",
          "role"
        ],
        "title": "SentenceStructurePart"
      },
      "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"
      },
      "WordAnalysisResponse": {
        "properties": {
          "word": {
            "type": "string",
            "maxLength": 120,
            "title": "Word"
          },
          "ukIpa": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Ukipa"
          },
          "usIpa": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Usipa"
          },
          "contextMeaning": {
            "type": "string",
            "maxLength": 400,
            "title": "Contextmeaning"
          },
          "definitions": {
            "items": {
              "$ref": "#/components/schemas/WordDefinition"
            },
            "type": "array",
            "maxItems": 6,
            "minItems": 1,
            "title": "Definitions"
          },
          "collocations": {
            "items": {
              "$ref": "#/components/schemas/WordCollocation"
            },
            "type": "array",
            "maxItems": 8,
            "title": "Collocations"
          },
          "examples": {
            "items": {
              "$ref": "#/components/schemas/WordExample"
            },
            "type": "array",
            "maxItems": 6,
            "title": "Examples"
          },
          "forms": {
            "items": {
              "$ref": "#/components/schemas/WordForm"
            },
            "type": "array",
            "maxItems": 8,
            "title": "Forms"
          },
          "usageNotes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 6,
            "title": "Usagenotes"
          },
          "suggestedQuestions": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 8,
            "title": "Suggestedquestions"
          },
          "lexiconEntryId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lexiconentryid"
          },
          "canonicalTerm": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 120
              },
              {
                "type": "null"
              }
            ],
            "title": "Canonicalterm"
          }
        },
        "type": "object",
        "required": [
          "word",
          "contextMeaning",
          "definitions"
        ],
        "title": "WordAnalysisResponse"
      },
      "WordAnalyzeRequest": {
        "properties": {
          "word": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1,
            "title": "Word"
          },
          "entryKind": {
            "type": "string",
            "enum": [
              "word",
              "phrase"
            ],
            "title": "Entrykind",
            "default": "word"
          },
          "contextSentence": {
            "type": "string",
            "maxLength": 600,
            "title": "Contextsentence",
            "default": ""
          },
          "sourceLocale": {
            "type": "string",
            "maxLength": 16,
            "title": "Sourcelocale",
            "default": "en-US"
          },
          "targetLocale": {
            "type": "string",
            "maxLength": 16,
            "title": "Targetlocale",
            "default": "zh-Hans"
          },
          "ukIpa": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Ukipa"
          },
          "usIpa": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Usipa"
          },
          "detailMode": {
            "type": "string",
            "enum": [
              "overview",
              "full"
            ],
            "title": "Detailmode",
            "default": "full"
          },
          "includeSuggestedQuestions": {
            "type": "boolean",
            "title": "Includesuggestedquestions",
            "default": true
          }
        },
        "type": "object",
        "required": [
          "word"
        ],
        "title": "WordAnalyzeRequest"
      },
      "WordChatMessage": {
        "properties": {
          "role": {
            "type": "string",
            "enum": [
              "user",
              "assistant"
            ],
            "title": "Role"
          },
          "content": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 1,
            "title": "Content"
          }
        },
        "type": "object",
        "required": [
          "role",
          "content"
        ],
        "title": "WordChatMessage"
      },
      "WordChatRequest": {
        "properties": {
          "word": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1,
            "title": "Word"
          },
          "contextSentence": {
            "type": "string",
            "maxLength": 600,
            "title": "Contextsentence",
            "default": ""
          },
          "sourceLocale": {
            "type": "string",
            "maxLength": 16,
            "title": "Sourcelocale",
            "default": "en-US"
          },
          "targetLocale": {
            "type": "string",
            "maxLength": 16,
            "title": "Targetlocale",
            "default": "zh-Hans"
          },
          "analysis": {
            "$ref": "#/components/schemas/WordAnalysisResponse"
          },
          "history": {
            "items": {
              "$ref": "#/components/schemas/WordChatMessage"
            },
            "type": "array",
            "maxItems": 12,
            "title": "History"
          },
          "question": {
            "type": "string",
            "maxLength": 500,
            "minLength": 1,
            "title": "Question"
          }
        },
        "type": "object",
        "required": [
          "word",
          "analysis",
          "question"
        ],
        "title": "WordChatRequest"
      },
      "WordChatResponse": {
        "properties": {
          "answer": {
            "type": "string",
            "maxLength": 4000,
            "minLength": 1,
            "title": "Answer"
          }
        },
        "type": "object",
        "required": [
          "answer"
        ],
        "title": "WordChatResponse"
      },
      "WordCollocation": {
        "properties": {
          "phrase": {
            "type": "string",
            "maxLength": 120,
            "title": "Phrase"
          },
          "meaning": {
            "type": "string",
            "maxLength": 200,
            "title": "Meaning"
          }
        },
        "type": "object",
        "required": [
          "phrase",
          "meaning"
        ],
        "title": "WordCollocation"
      },
      "WordDefinition": {
        "properties": {
          "partOfSpeech": {
            "type": "string",
            "maxLength": 40,
            "title": "Partofspeech"
          },
          "meaning": {
            "type": "string",
            "maxLength": 300,
            "title": "Meaning"
          }
        },
        "type": "object",
        "required": [
          "partOfSpeech",
          "meaning"
        ],
        "title": "WordDefinition"
      },
      "WordExample": {
        "properties": {
          "sentence": {
            "type": "string",
            "maxLength": 300,
            "title": "Sentence"
          },
          "translation": {
            "type": "string",
            "maxLength": 300,
            "title": "Translation"
          }
        },
        "type": "object",
        "required": [
          "sentence",
          "translation"
        ],
        "title": "WordExample"
      },
      "WordForm": {
        "properties": {
          "label": {
            "type": "string",
            "maxLength": 80,
            "title": "Label"
          },
          "value": {
            "type": "string",
            "maxLength": 120,
            "title": "Value"
          }
        },
        "type": "object",
        "required": [
          "label",
          "value"
        ],
        "title": "WordForm"
      },
      "WordSectionRequest": {
        "properties": {
          "word": {
            "type": "string",
            "maxLength": 120,
            "minLength": 1,
            "title": "Word"
          },
          "entryKind": {
            "type": "string",
            "enum": [
              "word",
              "phrase"
            ],
            "title": "Entrykind",
            "default": "word"
          },
          "contextSentence": {
            "type": "string",
            "maxLength": 600,
            "title": "Contextsentence",
            "default": ""
          },
          "sourceLocale": {
            "type": "string",
            "maxLength": 16,
            "title": "Sourcelocale",
            "default": "en-US"
          },
          "targetLocale": {
            "type": "string",
            "maxLength": 16,
            "title": "Targetlocale",
            "default": "zh-Hans"
          },
          "section": {
            "type": "string",
            "enum": [
              "phonics",
              "englishDictionary",
              "etymology",
              "affixes",
              "roots",
              "forms",
              "mnemonic",
              "collocations",
              "derivatives",
              "synonyms",
              "antonyms",
              "usageTips"
            ],
            "title": "Section"
          }
        },
        "type": "object",
        "required": [
          "word",
          "section"
        ],
        "title": "WordSectionRequest"
      },
      "WordSectionResponse": {
        "properties": {
          "section": {
            "type": "string",
            "enum": [
              "phonics",
              "englishDictionary",
              "etymology",
              "affixes",
              "roots",
              "forms",
              "mnemonic",
              "collocations",
              "derivatives",
              "synonyms",
              "antonyms",
              "usageTips"
            ],
            "title": "Section"
          },
          "data": {
            "type": "object",
            "title": "Data"
          }
        },
        "type": "object",
        "required": [
          "section",
          "data"
        ],
        "title": "WordSectionResponse"
      }
    },
    "securitySchemes": {
      "RegulatoryBearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "专用监管凭证，服务端签发并可撤销"
      }
    }
  },
  "security": [
    {
      "RegulatoryBearer": []
    }
  ]
}
