{
 "openapi": "3.1.0",
 "info": {
  "title": "KRINO WORLD",
  "version": "0.1.0"
 },
 "paths": {
  "/api/auth/register": {
   "post": {
    "tags": [
     "users"
    ],
    "summary": "Register",
    "operationId": "register_api_auth_register_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/Credentials"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/auth/login": {
   "post": {
    "tags": [
     "users"
    ],
    "summary": "Login",
    "operationId": "login_api_auth_login_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/Credentials"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/auth/logout": {
   "post": {
    "tags": [
     "users"
    ],
    "summary": "Logout",
    "operationId": "logout_api_auth_logout_post",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/me": {
   "get": {
    "tags": [
     "users"
    ],
    "summary": "Me",
    "operationId": "me_api_me_get",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "patch": {
    "tags": [
     "users"
    ],
    "summary": "Update Me",
    "operationId": "update_me_api_me_patch",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SettingsIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "users"
    ],
    "summary": "Delete Account",
    "description": "注销账号：角色、记忆、聊天、关系、上传的模型、发布的作品全部删除，不能恢复。",
    "operationId": "delete_account_api_me_delete",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/DeleteIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/keys": {
   "get": {
    "tags": [
     "users"
    ],
    "summary": "List Keys",
    "operationId": "list_keys_api_keys_get",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "users"
    ],
    "summary": "Create Key",
    "description": "新建一把密钥。原文只在这次返回里出现，服务器只存哈希，丢了就删掉重建。",
    "operationId": "create_key_api_keys_post",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ApiKeyIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/keys/{key_id}": {
   "delete": {
    "tags": [
     "users"
    ],
    "summary": "Delete Key",
    "operationId": "delete_key_api_keys__key_id__delete",
    "parameters": [
     {
      "name": "key_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Key Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/persona-schema": {
   "get": {
    "tags": [
     "personas"
    ],
    "summary": "Persona Schema",
    "description": "人格编辑器要用的字段、风格预设和可选的表情/动作。",
    "operationId": "persona_schema_api_persona_schema_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     }
    }
   }
  },
  "/api/characters": {
   "get": {
    "tags": [
     "personas"
    ],
    "summary": "List Characters",
    "operationId": "list_characters_api_characters_get",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "personas"
    ],
    "summary": "Create Character",
    "operationId": "create_character_api_characters_post",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/app__personas__CharacterIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/characters/generate": {
   "post": {
    "tags": [
     "personas"
    ],
    "summary": "Generate",
    "operationId": "generate_api_characters_generate_post",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/GenerateIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/voice/design": {
   "post": {
    "tags": [
     "personas"
    ],
    "summary": "Voice Design",
    "description": "按描述设计一个专属声音：返回试听 WAV，响应头 X-Voice-Id 是新音色编号（存进 behavior.voice.voice）。",
    "operationId": "voice_design_api_voice_design_post",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/VoiceDesignIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/characters/{cid}": {
   "get": {
    "tags": [
     "personas"
    ],
    "summary": "Get Character",
    "operationId": "get_character_api_characters__cid__get",
    "parameters": [
     {
      "name": "cid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Cid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "put": {
    "tags": [
     "personas"
    ],
    "summary": "Save Character",
    "operationId": "save_character_api_characters__cid__put",
    "parameters": [
     {
      "name": "cid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Cid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SaveIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "personas"
    ],
    "summary": "Farewell",
    "description": "告别：角色和你们之间的记忆、聊天、关系都会删除。",
    "operationId": "farewell_api_characters__cid__delete",
    "parameters": [
     {
      "name": "cid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Cid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/characters/{cid}/source": {
   "get": {
    "tags": [
     "personas"
    ],
    "summary": "Get Source",
    "description": "Markdown / JSON 编辑器的原文。",
    "operationId": "get_source_api_characters__cid__source_get",
    "parameters": [
     {
      "name": "cid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Cid"
      }
     },
     {
      "name": "format",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "default": "md",
       "title": "Format"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "put": {
    "tags": [
     "personas"
    ],
    "summary": "Put Source",
    "operationId": "put_source_api_characters__cid__source_put",
    "parameters": [
     {
      "name": "cid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Cid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SourceIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/characters/{cid}/versions": {
   "get": {
    "tags": [
     "personas"
    ],
    "summary": "Versions",
    "operationId": "versions_api_characters__cid__versions_get",
    "parameters": [
     {
      "name": "cid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Cid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/characters/{cid}/versions/{version}/restore": {
   "post": {
    "tags": [
     "personas"
    ],
    "summary": "Restore",
    "operationId": "restore_api_characters__cid__versions__version__restore_post",
    "parameters": [
     {
      "name": "cid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Cid"
      }
     },
     {
      "name": "version",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "title": "Version"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/characters/{cid}/reset": {
   "post": {
    "tags": [
     "personas"
    ],
    "summary": "Reset",
    "description": "官方角色还原成官方设定（当前版本先存一份）。",
    "operationId": "reset_api_characters__cid__reset_post",
    "parameters": [
     {
      "name": "cid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Cid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/characters/{cid}/export": {
   "get": {
    "tags": [
     "personas"
    ],
    "summary": "Export",
    "description": "导出人设：人格配置 + 形象（JSON 里内嵌图片；Markdown 只有文字和地址），不含私人记忆。",
    "operationId": "export_api_characters__cid__export_get",
    "parameters": [
     {
      "name": "cid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Cid"
      }
     },
     {
      "name": "format",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "default": "json",
       "title": "Format"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/characters/import/preview": {
   "post": {
    "tags": [
     "personas"
    ],
    "summary": "Import Preview",
    "operationId": "import_preview_api_characters_import_preview_post",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "multipart/form-data": {
       "schema": {
        "$ref": "#/components/schemas/Body_import_preview_api_characters_import_preview_post"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/characters/import": {
   "post": {
    "tags": [
     "personas"
    ],
    "summary": "Import Character",
    "operationId": "import_character_api_characters_import_post",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "multipart/form-data": {
       "schema": {
        "$ref": "#/components/schemas/Body_import_character_api_characters_import_post"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/sessions": {
   "get": {
    "tags": [
     "chat"
    ],
    "summary": "List Sessions",
    "operationId": "list_sessions_api_sessions_get",
    "parameters": [
     {
      "name": "character_id",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Character Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "chat"
    ],
    "summary": "Create Session",
    "operationId": "create_session_api_sessions_post",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SessionIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/sessions/{sid}": {
   "get": {
    "tags": [
     "chat"
    ],
    "summary": "Get Session",
    "operationId": "get_session_api_sessions__sid__get",
    "parameters": [
     {
      "name": "sid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Sid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "chat"
    ],
    "summary": "Delete Session",
    "operationId": "delete_session_api_sessions__sid__delete",
    "parameters": [
     {
      "name": "sid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Sid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/sessions/{sid}/messages": {
   "post": {
    "tags": [
     "chat"
    ],
    "summary": "Send",
    "operationId": "send_api_sessions__sid__messages_post",
    "parameters": [
     {
      "name": "sid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Sid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/MessageIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/sessions/{sid}/stream": {
   "post": {
    "tags": [
     "chat"
    ],
    "summary": "Send Stream",
    "operationId": "send_stream_api_sessions__sid__stream_post",
    "parameters": [
     {
      "name": "sid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Sid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/MessageIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/sessions/{sid}/events": {
   "post": {
    "tags": [
     "chat"
    ],
    "summary": "Send Event",
    "description": "用户触发的预设互动、页面上的“安静了一阵”、眼镜模拟器分享的画面。",
    "operationId": "send_event_api_sessions__sid__events_post",
    "parameters": [
     {
      "name": "sid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Sid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/EventIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/sessions/{sid}/end": {
   "post": {
    "tags": [
     "chat"
    ],
    "summary": "End",
    "operationId": "end_api_sessions__sid__end_post",
    "parameters": [
     {
      "name": "sid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Sid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/memories": {
   "get": {
    "tags": [
     "memory"
    ],
    "summary": "List Memories",
    "operationId": "list_memories_api_memories_get",
    "parameters": [
     {
      "name": "character_id",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Character Id"
      }
     },
     {
      "name": "status",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "default": "active",
       "title": "Status"
      }
     },
     {
      "name": "type",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Type"
      }
     },
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Q"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "memory"
    ],
    "summary": "Add Memory",
    "operationId": "add_memory_api_memories_post",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/MemoryIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/memories/candidates": {
   "get": {
    "tags": [
     "memory"
    ],
    "summary": "List Candidates",
    "operationId": "list_candidates_api_memories_candidates_get",
    "parameters": [
     {
      "name": "character_id",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Character Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/memories/candidates/{cand_id}/accept": {
   "post": {
    "tags": [
     "memory"
    ],
    "summary": "Accept Candidate",
    "operationId": "accept_candidate_api_memories_candidates__cand_id__accept_post",
    "parameters": [
     {
      "name": "cand_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Cand Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AcceptIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/memories/candidates/{cand_id}": {
   "delete": {
    "tags": [
     "memory"
    ],
    "summary": "Reject Candidate",
    "operationId": "reject_candidate_api_memories_candidates__cand_id__delete",
    "parameters": [
     {
      "name": "cand_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Cand Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/memories/{mid}": {
   "get": {
    "tags": [
     "memory"
    ],
    "summary": "Memory Detail",
    "operationId": "memory_detail_api_memories__mid__get",
    "parameters": [
     {
      "name": "mid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Mid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "patch": {
    "tags": [
     "memory"
    ],
    "summary": "Edit Memory",
    "description": "改内容 = 存成新版本（旧的留作“旧版本”）；改其他字段直接改。",
    "operationId": "edit_memory_api_memories__mid__patch",
    "parameters": [
     {
      "name": "mid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Mid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/MemoryPatch"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "memory"
    ],
    "summary": "Remove Memory",
    "operationId": "remove_memory_api_memories__mid__delete",
    "parameters": [
     {
      "name": "mid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Mid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/memories/{mid}/forget": {
   "post": {
    "tags": [
     "memory"
    ],
    "summary": "Forget Memory",
    "operationId": "forget_memory_api_memories__mid__forget_post",
    "parameters": [
     {
      "name": "mid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Mid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/memories/{mid}/restore": {
   "post": {
    "tags": [
     "memory"
    ],
    "summary": "Restore Memory",
    "operationId": "restore_memory_api_memories__mid__restore_post",
    "parameters": [
     {
      "name": "mid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Mid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/memory-jobs/{job_id}": {
   "get": {
    "tags": [
     "memory"
    ],
    "summary": "Job Status",
    "operationId": "job_status_api_memory_jobs__job_id__get",
    "parameters": [
     {
      "name": "job_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Job Id"
      }
     },
     {
      "name": "wait",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number",
       "default": 0,
       "title": "Wait"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/relations/{cid}/bond": {
   "get": {
    "tags": [
     "memory"
    ],
    "summary": "Bond",
    "operationId": "bond_api_relations__cid__bond_get",
    "parameters": [
     {
      "name": "cid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Cid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "patch": {
    "tags": [
     "memory"
    ],
    "summary": "Patch Bond",
    "operationId": "patch_bond_api_relations__cid__bond_patch",
    "parameters": [
     {
      "name": "cid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Cid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/BondPatch"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "memory"
    ],
    "summary": "Reset Bond",
    "operationId": "reset_bond_api_relations__cid__bond_delete",
    "parameters": [
     {
      "name": "cid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Cid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/relations/{cid}/export": {
   "get": {
    "tags": [
     "memory"
    ],
    "summary": "Export Relation",
    "description": "导出你和这个角色之间的私人数据（记忆、关系，可选聊天）。和人设导出分开。",
    "operationId": "export_relation_api_relations__cid__export_get",
    "parameters": [
     {
      "name": "cid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Cid"
      }
     },
     {
      "name": "chats",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Chats"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/relations/{cid}/import": {
   "post": {
    "tags": [
     "memory"
    ],
    "summary": "Import Relation",
    "description": "导入记忆包：只导入在用的记忆，内容相同的跳过。",
    "operationId": "import_relation_api_relations__cid__import_post",
    "parameters": [
     {
      "name": "cid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Cid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RelationImportIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/policy/status": {
   "get": {
    "tags": [
     "policy"
    ],
    "summary": "Status",
    "operationId": "status_api_policy_status_get",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/policy/test": {
   "post": {
    "tags": [
     "policy"
    ],
    "summary": "Test",
    "description": "用当前角色跑几个固定场景，看策略会选什么（不调模型、不写聊天记录）。",
    "operationId": "test_api_policy_test_post",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/TestIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/voice/config": {
   "get": {
    "tags": [
     "voice"
    ],
    "summary": "Voice Config",
    "description": "前端据此决定用浏览器还是服务端。",
    "operationId": "voice_config_api_voice_config_get",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/voice/stt": {
   "post": {
    "tags": [
     "voice"
    ],
    "summary": "Stt",
    "operationId": "stt_api_voice_stt_post",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "multipart/form-data": {
       "schema": {
        "$ref": "#/components/schemas/Body_stt_api_voice_stt_post"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/voice/tts": {
   "post": {
    "tags": [
     "voice"
    ],
    "summary": "Tts",
    "operationId": "tts_api_voice_tts_post",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/TTSIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/vision/describe": {
   "post": {
    "tags": [
     "voice"
    ],
    "summary": "Vision",
    "operationId": "vision_api_vision_describe_post",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/VisionIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/workshop/meta": {
   "get": {
    "tags": [
     "workshop"
    ],
    "summary": "Meta",
    "operationId": "meta_api_workshop_meta_get",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/workshop/items": {
   "get": {
    "tags": [
     "workshop"
    ],
    "summary": "Browse",
    "operationId": "browse_api_workshop_items_get",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "default": "",
       "title": "Q"
      }
     },
     {
      "name": "category",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "default": "",
       "title": "Category"
      }
     },
     {
      "name": "tag",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "default": "",
       "title": "Tag"
      }
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "default": "new",
       "title": "Sort"
      }
     },
     {
      "name": "page",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 1,
       "title": "Page"
      }
     },
     {
      "name": "mine",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Mine"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/workshop/items/{item_id}": {
   "get": {
    "tags": [
     "workshop"
    ],
    "summary": "Detail",
    "operationId": "detail_api_workshop_items__item_id__get",
    "parameters": [
     {
      "name": "item_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Item Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "workshop"
    ],
    "summary": "Withdraw",
    "operationId": "withdraw_api_workshop_items__item_id__delete",
    "parameters": [
     {
      "name": "item_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Item Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/workshop/items/{item_id}/download": {
   "get": {
    "tags": [
     "workshop"
    ],
    "summary": "Download",
    "operationId": "download_api_workshop_items__item_id__download_get",
    "parameters": [
     {
      "name": "item_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Item Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/workshop/publish": {
   "post": {
    "tags": [
     "workshop"
    ],
    "summary": "Publish",
    "operationId": "publish_api_workshop_publish_post",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/PublishIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/workshop/upload": {
   "post": {
    "tags": [
     "workshop"
    ],
    "summary": "Upload",
    "description": "直接上传一个人设包 / 角色卡发布到工坊（不用先导入成自己的角色）。",
    "operationId": "upload_api_workshop_upload_post",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "multipart/form-data": {
       "schema": {
        "$ref": "#/components/schemas/Body_upload_api_workshop_upload_post"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/workshop/items/{item_id}/install": {
   "post": {
    "tags": [
     "workshop"
    ],
    "summary": "Install Item",
    "operationId": "install_item_api_workshop_items__item_id__install_post",
    "parameters": [
     {
      "name": "item_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Item Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/workshop/items/{item_id}/update": {
   "post": {
    "tags": [
     "workshop"
    ],
    "summary": "Update Item",
    "operationId": "update_item_api_workshop_items__item_id__update_post",
    "parameters": [
     {
      "name": "item_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Item Id"
      }
     },
     {
      "name": "force",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Force"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/workshop/items/{item_id}/vote": {
   "post": {
    "tags": [
     "workshop"
    ],
    "summary": "Vote Item",
    "operationId": "vote_item_api_workshop_items__item_id__vote_post",
    "parameters": [
     {
      "name": "item_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Item Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/VoteIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/workshop/items/{item_id}/comments": {
   "post": {
    "tags": [
     "workshop"
    ],
    "summary": "Comment",
    "operationId": "comment_api_workshop_items__item_id__comments_post",
    "parameters": [
     {
      "name": "item_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Item Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CommentIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/workshop/comments/{comment_id}": {
   "delete": {
    "tags": [
     "workshop"
    ],
    "summary": "Delete Comment",
    "operationId": "delete_comment_api_workshop_comments__comment_id__delete",
    "parameters": [
     {
      "name": "comment_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Comment Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/workshop/items/{item_id}/report": {
   "post": {
    "tags": [
     "workshop"
    ],
    "summary": "Report Item",
    "operationId": "report_item_api_workshop_items__item_id__report_post",
    "parameters": [
     {
      "name": "item_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Item Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ReportIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/workshop/reports": {
   "get": {
    "tags": [
     "workshop"
    ],
    "summary": "Reports",
    "operationId": "reports_api_workshop_reports_get",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/workshop/reports/{report_id}": {
   "post": {
    "tags": [
     "workshop"
    ],
    "summary": "Resolve",
    "operationId": "resolve_api_workshop_reports__report_id__post",
    "parameters": [
     {
      "name": "report_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Report Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ResolveIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/workshop/items/{item_id}/moderate": {
   "post": {
    "tags": [
     "workshop"
    ],
    "summary": "Moderate",
    "operationId": "moderate_api_workshop_items__item_id__moderate_post",
    "parameters": [
     {
      "name": "item_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Item Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ModerateIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/workbench": {
   "get": {
    "tags": [
     "workbench"
    ],
    "summary": "Info",
    "operationId": "info_api_workbench_get",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/workbench/design": {
   "post": {
    "tags": [
     "workbench"
    ],
    "summary": "Design",
    "operationId": "design_api_workbench_design_post",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/DesignIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/workbench/expressions": {
   "post": {
    "tags": [
     "workbench"
    ],
    "summary": "Expressions",
    "description": "以一张立绘为底，同时生成几种表情（并发，一般一分钟左右）。失败的表情单独报错，不影响其他的。",
    "operationId": "expressions_api_workbench_expressions_post",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ExpressionsIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/workbench/upload": {
   "post": {
    "tags": [
     "workbench"
    ],
    "summary": "Upload",
    "description": "上传自己画的立绘：存成文件（不去背景，透明 PNG 原样保留），之后可以在它上面修改、生成表情。",
    "operationId": "upload_api_workbench_upload_post",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/UploadIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/workbench/character": {
   "post": {
    "tags": [
     "workbench"
    ],
    "summary": "Character",
    "description": "设计一个新角色：灵魂（人设、开场白、对话示例、音色）+ 按外貌画一张形象，总是新建。\n已有角色的灵魂不在这里改（改了就不是她了）；灵魂只在新建时设计。",
    "operationId": "character_api_workbench_character_post",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/app__workbench__CharacterIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/workbench/motion": {
   "post": {
    "tags": [
     "workbench"
    ],
    "summary": "Make Motion",
    "description": "给自己创建的角色补做动图（用她现在的立绘）。后台做，10 分钟左右；做的时候照常能聊，做好了自动换上。",
    "operationId": "make_motion_api_workbench_motion_post",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/MotionIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/credits": {
   "get": {
    "tags": [
     "credits"
    ],
    "summary": "Info",
    "operationId": "info_api_credits_get",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/devices": {
   "get": {
    "tags": [
     "devices"
    ],
    "summary": "Status",
    "operationId": "status_api_devices_get",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/devices/test-ar": {
   "post": {
    "tags": [
     "devices"
    ],
    "summary": "Test Ar",
    "description": "给连着的模拟器发一组测试 AR 事件。",
    "operationId": "test_ar_api_devices_test_ar_post",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/TestAR"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/health": {
   "get": {
    "tags": [
     "status"
    ],
    "summary": "Health",
    "operationId": "health_api_health_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     }
    }
   }
  },
  "/api/services": {
   "get": {
    "tags": [
     "status"
    ],
    "summary": "Services",
    "description": "模型服务配置状态（不含密钥）+ 互动策略状态。",
    "operationId": "services_api_services_get",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/status": {
   "get": {
    "tags": [
     "status"
    ],
    "summary": "Status",
    "operationId": "status_api_status_get",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/events": {
   "get": {
    "tags": [
     "status"
    ],
    "summary": "Recent Events",
    "operationId": "recent_events_api_events_get",
    "parameters": [
     {
      "name": "kind",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Kind"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 50,
       "title": "Limit"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/social": {
   "get": {
    "tags": [
     "social"
    ],
    "summary": "Overview",
    "description": "圈子首页：我的角色（带 ID）、待处理的好友申请。",
    "operationId": "overview_api_social_get",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/social/lookup/{pid}": {
   "get": {
    "tags": [
     "social"
    ],
    "summary": "Lookup",
    "operationId": "lookup_api_social_lookup__pid__get",
    "parameters": [
     {
      "name": "pid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Pid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/social/requests": {
   "post": {
    "tags": [
     "social"
    ],
    "summary": "Send Request",
    "operationId": "send_request_api_social_requests_post",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RequestIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/social/requests/{fid}/accept": {
   "post": {
    "tags": [
     "social"
    ],
    "summary": "Accept",
    "operationId": "accept_api_social_requests__fid__accept_post",
    "parameters": [
     {
      "name": "fid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Fid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/social/requests/{fid}/decline": {
   "post": {
    "tags": [
     "social"
    ],
    "summary": "Decline",
    "operationId": "decline_api_social_requests__fid__decline_post",
    "parameters": [
     {
      "name": "fid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Fid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/social/friends": {
   "get": {
    "tags": [
     "social"
    ],
    "summary": "Friends",
    "operationId": "friends_api_social_friends_get",
    "parameters": [
     {
      "name": "character_id",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Character Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/social/friends/{fid}": {
   "delete": {
    "tags": [
     "social"
    ],
    "summary": "Unfriend",
    "operationId": "unfriend_api_social_friends__fid__delete",
    "parameters": [
     {
      "name": "fid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Fid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/social/threads/{fid}": {
   "get": {
    "tags": [
     "social"
    ],
    "summary": "Thread",
    "description": "一段私信的全部内容（两边的主人都能看）。",
    "operationId": "thread_api_social_threads__fid__get",
    "parameters": [
     {
      "name": "fid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Fid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/social/threads/{fid}/chat": {
   "post": {
    "tags": [
     "social"
    ],
    "summary": "Start Chat",
    "description": "让她去找这位朋友聊几句（后台进行，前端轮询这段私信）。",
    "operationId": "start_chat_api_social_threads__fid__chat_post",
    "parameters": [
     {
      "name": "fid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Fid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ChatIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/social/posts": {
   "post": {
    "tags": [
     "social"
    ],
    "summary": "New Post",
    "description": "让她发一条朋友圈（写什么由她自己决定）。",
    "operationId": "new_post_api_social_posts_post",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/PostIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/social/feed": {
   "get": {
    "tags": [
     "social"
    ],
    "summary": "Feed",
    "description": "朋友圈：我的角色和她们好友发的动态，最新的在前。给了 character_id 就只看这位角色的圈子。",
    "operationId": "feed_api_social_feed_get",
    "parameters": [
     {
      "name": "character_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Character Id"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/social/posts/{pid}/react": {
   "post": {
    "tags": [
     "social"
    ],
    "summary": "React Post",
    "description": "让她给这条动态点赞或评论（评论由她自己写）。",
    "operationId": "react_post_api_social_posts__pid__react_post",
    "parameters": [
     {
      "name": "pid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Pid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ReactIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/social/posts/{pid}": {
   "delete": {
    "tags": [
     "social"
    ],
    "summary": "Delete Post",
    "description": "主人可以删掉自己角色发的动态。",
    "operationId": "delete_post_api_social_posts__pid__delete",
    "parameters": [
     {
      "name": "pid",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Pid"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/tavern": {
   "get": {
    "tags": [
     "tavern"
    ],
    "summary": "Room",
    "operationId": "room_api_tavern_get",
    "parameters": [
     {
      "name": "after",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "After"
      }
     },
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "tavern"
    ],
    "summary": "Clear",
    "description": "清空酒馆的聊天记录（印象不受影响）。",
    "operationId": "clear_api_tavern_delete",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/tavern/go": {
   "post": {
    "tags": [
     "tavern"
    ],
    "summary": "Go",
    "description": "让她们聊一会儿（可以给个话题）。",
    "operationId": "go_api_tavern_go_post",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/GoIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/tavern/say": {
   "post": {
    "tags": [
     "tavern"
    ],
    "summary": "Say",
    "description": "主人插一句，几个角色接话。",
    "operationId": "say_api_tavern_say_post",
    "parameters": [
     {
      "name": "authorization",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Authorization"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SayIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/site": {
   "get": {
    "summary": "Site",
    "description": "站点版本信息，前端启动时先取：商标、语言、页脚（国内版的备案号）。不需要登录。",
    "operationId": "site_api_site_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     }
    }
   }
  }
 },
 "components": {
  "schemas": {
   "AcceptIn": {
    "properties": {
     "content": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2000
       },
       {
        "type": "null"
       }
      ],
      "title": "Content"
     }
    },
    "type": "object",
    "title": "AcceptIn"
   },
   "ApiKeyIn": {
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 40,
      "title": "Name",
      "default": ""
     }
    },
    "type": "object",
    "title": "ApiKeyIn"
   },
   "Body_import_character_api_characters_import_post": {
    "properties": {
     "file": {
      "type": "string",
      "contentMediaType": "application/octet-stream",
      "title": "File"
     }
    },
    "type": "object",
    "required": [
     "file"
    ],
    "title": "Body_import_character_api_characters_import_post"
   },
   "Body_import_preview_api_characters_import_preview_post": {
    "properties": {
     "file": {
      "type": "string",
      "contentMediaType": "application/octet-stream",
      "title": "File"
     }
    },
    "type": "object",
    "required": [
     "file"
    ],
    "title": "Body_import_preview_api_characters_import_preview_post"
   },
   "Body_stt_api_voice_stt_post": {
    "properties": {
     "file": {
      "type": "string",
      "contentMediaType": "application/octet-stream",
      "title": "File"
     }
    },
    "type": "object",
    "required": [
     "file"
    ],
    "title": "Body_stt_api_voice_stt_post"
   },
   "Body_upload_api_workshop_upload_post": {
    "properties": {
     "file": {
      "type": "string",
      "contentMediaType": "application/octet-stream",
      "title": "File"
     },
     "category": {
      "type": "string",
      "title": "Category",
      "default": "other"
     },
     "description": {
      "type": "string",
      "title": "Description",
      "default": ""
     }
    },
    "type": "object",
    "required": [
     "file"
    ],
    "title": "Body_upload_api_workshop_upload_post"
   },
   "BondPatch": {
    "properties": {
     "user_calls_her": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 24
       },
       {
        "type": "null"
       }
      ],
      "title": "User Calls Her"
     },
     "drop_view": {
      "type": "boolean",
      "title": "Drop View",
      "default": false
     },
     "drop_milestone": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Drop Milestone"
     }
    },
    "type": "object",
    "title": "BondPatch"
   },
   "ChatIn": {
    "properties": {
     "character_id": {
      "type": "string",
      "title": "Character Id"
     },
     "topic": {
      "type": "string",
      "maxLength": 80,
      "title": "Topic",
      "default": ""
     }
    },
    "type": "object",
    "required": [
     "character_id"
    ],
    "title": "ChatIn"
   },
   "CommentIn": {
    "properties": {
     "body": {
      "type": "string",
      "maxLength": 1000,
      "minLength": 1,
      "title": "Body"
     }
    },
    "type": "object",
    "required": [
     "body"
    ],
    "title": "CommentIn"
   },
   "Credentials": {
    "properties": {
     "username": {
      "type": "string",
      "title": "Username"
     },
     "password": {
      "type": "string",
      "maxLength": 128,
      "minLength": 6,
      "title": "Password"
     },
     "display_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 32
       },
       {
        "type": "null"
       }
      ],
      "title": "Display Name"
     }
    },
    "type": "object",
    "required": [
     "username",
     "password"
    ],
    "title": "Credentials"
   },
   "DeleteIn": {
    "properties": {
     "password": {
      "type": "string",
      "title": "Password"
     }
    },
    "type": "object",
    "required": [
     "password"
    ],
    "title": "DeleteIn"
   },
   "DesignIn": {
    "properties": {
     "prompt": {
      "type": "string",
      "maxLength": 500,
      "minLength": 1,
      "title": "Prompt"
     },
     "base": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Base"
     },
     "n": {
      "type": "integer",
      "maximum": 4.0,
      "minimum": 1.0,
      "title": "N",
      "default": 1
     }
    },
    "type": "object",
    "required": [
     "prompt"
    ],
    "title": "DesignIn"
   },
   "EventIn": {
    "properties": {
     "type": {
      "type": "string",
      "pattern": "^(idle|gesture|perception)$",
      "title": "Type"
     },
     "gesture": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Gesture"
     },
     "idle_count": {
      "type": "integer",
      "maximum": 100.0,
      "minimum": 0.0,
      "title": "Idle Count",
      "default": 1
     },
     "text": {
      "type": "string",
      "maxLength": 400,
      "title": "Text",
      "default": ""
     },
     "image": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 8000000
       },
       {
        "type": "null"
       }
      ],
      "title": "Image"
     },
     "character_id": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 32
       },
       {
        "type": "null"
       }
      ],
      "title": "Character Id"
     }
    },
    "type": "object",
    "required": [
     "type"
    ],
    "title": "EventIn"
   },
   "ExpressionsIn": {
    "properties": {
     "base": {
      "type": "string",
      "maxLength": 200,
      "title": "Base"
     },
     "expressions": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "maxItems": 10,
      "minItems": 1,
      "title": "Expressions"
     }
    },
    "type": "object",
    "required": [
     "base",
     "expressions"
    ],
    "title": "ExpressionsIn"
   },
   "GenerateIn": {
    "properties": {
     "prompt": {
      "type": "string",
      "maxLength": 800,
      "title": "Prompt"
     },
     "style": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Style"
     }
    },
    "type": "object",
    "required": [
     "prompt"
    ],
    "title": "GenerateIn"
   },
   "GoIn": {
    "properties": {
     "topic": {
      "type": "string",
      "maxLength": 80,
      "title": "Topic",
      "default": ""
     }
    },
    "type": "object",
    "title": "GoIn"
   },
   "HTTPValidationError": {
    "properties": {
     "detail": {
      "items": {
       "$ref": "#/components/schemas/ValidationError"
      },
      "type": "array",
      "title": "Detail"
     }
    },
    "type": "object",
    "title": "HTTPValidationError"
   },
   "MemoryIn": {
    "properties": {
     "character_id": {
      "type": "string",
      "title": "Character Id"
     },
     "content": {
      "type": "string",
      "maxLength": 2000,
      "minLength": 1,
      "title": "Content"
     },
     "type": {
      "type": "string",
      "pattern": "^(fact|preference|event|commitment)$",
      "title": "Type",
      "default": "fact"
     },
     "reality": {
      "type": "string",
      "pattern": "^(real|story)$",
      "title": "Reality",
      "default": "real"
     },
     "title": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 80
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "importance": {
      "type": "integer",
      "maximum": 5.0,
      "minimum": 1.0,
      "title": "Importance",
      "default": 3
     },
     "pinned": {
      "type": "boolean",
      "title": "Pinned",
      "default": false
     },
     "sensitive": {
      "type": "boolean",
      "title": "Sensitive",
      "default": false
     },
     "source_message_id": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Source Message Id"
     }
    },
    "type": "object",
    "required": [
     "character_id",
     "content"
    ],
    "title": "MemoryIn"
   },
   "MemoryPatch": {
    "properties": {
     "content": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2000
       },
       {
        "type": "null"
       }
      ],
      "title": "Content"
     },
     "title": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 80
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "type": {
      "anyOf": [
       {
        "type": "string",
        "pattern": "^(fact|preference|event|commitment)$"
       },
       {
        "type": "null"
       }
      ],
      "title": "Type"
     },
     "reality": {
      "anyOf": [
       {
        "type": "string",
        "pattern": "^(real|story)$"
       },
       {
        "type": "null"
       }
      ],
      "title": "Reality"
     },
     "importance": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 5.0,
        "minimum": 1.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Importance"
     },
     "pinned": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Pinned"
     }
    },
    "type": "object",
    "title": "MemoryPatch"
   },
   "MessageIn": {
    "properties": {
     "text": {
      "type": "string",
      "maxLength": 4000,
      "title": "Text",
      "default": ""
     },
     "audio": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 6000000
       },
       {
        "type": "null"
       }
      ],
      "title": "Audio"
     },
     "image": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 8000000
       },
       {
        "type": "null"
       }
      ],
      "title": "Image"
     },
     "source": {
      "type": "string",
      "pattern": "^(app|voice|glasses)$",
      "title": "Source",
      "default": "app"
     },
     "character_id": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 32
       },
       {
        "type": "null"
       }
      ],
      "title": "Character Id"
     }
    },
    "type": "object",
    "title": "MessageIn"
   },
   "ModerateIn": {
    "properties": {
     "status": {
      "type": "string",
      "pattern": "^(published|hidden|removed)$",
      "title": "Status"
     },
     "note": {
      "type": "string",
      "maxLength": 200,
      "title": "Note",
      "default": ""
     }
    },
    "type": "object",
    "required": [
     "status"
    ],
    "title": "ModerateIn"
   },
   "MotionIn": {
    "properties": {
     "character_id": {
      "type": "string",
      "maxLength": 32,
      "title": "Character Id"
     }
    },
    "type": "object",
    "required": [
     "character_id"
    ],
    "title": "MotionIn"
   },
   "PostIn": {
    "properties": {
     "character_id": {
      "type": "string",
      "title": "Character Id"
     }
    },
    "type": "object",
    "required": [
     "character_id"
    ],
    "title": "PostIn"
   },
   "PublishIn": {
    "properties": {
     "character_id": {
      "type": "string",
      "title": "Character Id"
     },
     "title": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 40
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "tagline": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 80
       },
       {
        "type": "null"
       }
      ],
      "title": "Tagline"
     },
     "description": {
      "type": "string",
      "maxLength": 4000,
      "title": "Description",
      "default": ""
     },
     "category": {
      "type": "string",
      "title": "Category",
      "default": "other"
     },
     "tags": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "maxItems": 8,
      "title": "Tags"
     },
     "changelog": {
      "type": "string",
      "maxLength": 500,
      "title": "Changelog",
      "default": ""
     }
    },
    "type": "object",
    "required": [
     "character_id"
    ],
    "title": "PublishIn"
   },
   "ReactIn": {
    "properties": {
     "character_id": {
      "type": "string",
      "title": "Character Id"
     },
     "kind": {
      "type": "string",
      "pattern": "^(like|comment)$",
      "title": "Kind"
     }
    },
    "type": "object",
    "required": [
     "character_id",
     "kind"
    ],
    "title": "ReactIn"
   },
   "RelationImportIn": {
    "properties": {
     "data": {
      "additionalProperties": true,
      "type": "object",
      "title": "Data"
     }
    },
    "type": "object",
    "required": [
     "data"
    ],
    "title": "RelationImportIn"
   },
   "ReportIn": {
    "properties": {
     "reason": {
      "type": "string",
      "title": "Reason"
     },
     "detail": {
      "type": "string",
      "maxLength": 500,
      "title": "Detail",
      "default": ""
     },
     "comment_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Comment Id"
     }
    },
    "type": "object",
    "required": [
     "reason"
    ],
    "title": "ReportIn"
   },
   "RequestIn": {
    "properties": {
     "from_id": {
      "type": "string",
      "title": "From Id"
     },
     "to": {
      "type": "string",
      "maxLength": 16,
      "minLength": 3,
      "title": "To"
     },
     "note": {
      "type": "string",
      "maxLength": 120,
      "title": "Note",
      "default": ""
     }
    },
    "type": "object",
    "required": [
     "from_id",
     "to"
    ],
    "title": "RequestIn"
   },
   "ResolveIn": {
    "properties": {
     "action": {
      "type": "string",
      "pattern": "^(dismiss|hide|remove)$",
      "title": "Action"
     }
    },
    "type": "object",
    "required": [
     "action"
    ],
    "title": "ResolveIn"
   },
   "SaveIn": {
    "properties": {
     "persona": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Persona"
     },
     "behavior": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Behavior"
     },
     "lore": {
      "anyOf": [
       {
        "items": {
         "additionalProperties": true,
         "type": "object"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Lore"
     },
     "model": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Model"
     }
    },
    "type": "object",
    "title": "SaveIn"
   },
   "SayIn": {
    "properties": {
     "text": {
      "type": "string",
      "maxLength": 300,
      "minLength": 1,
      "title": "Text"
     }
    },
    "type": "object",
    "required": [
     "text"
    ],
    "title": "SayIn"
   },
   "SessionIn": {
    "properties": {
     "character_id": {
      "type": "string",
      "title": "Character Id"
     }
    },
    "type": "object",
    "required": [
     "character_id"
    ],
    "title": "SessionIn"
   },
   "SettingsIn": {
    "properties": {
     "display_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 32
       },
       {
        "type": "null"
       }
      ],
      "title": "Display Name"
     },
     "save_sensitive": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Save Sensitive"
     },
     "privacy": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Privacy"
     },
     "voice": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Voice"
     },
     "interaction": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Interaction"
     },
     "evaluator": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Evaluator"
     },
     "social": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Social"
     }
    },
    "type": "object",
    "title": "SettingsIn"
   },
   "SourceIn": {
    "properties": {
     "format": {
      "type": "string",
      "pattern": "^(md|json)$",
      "title": "Format"
     },
     "text": {
      "type": "string",
      "maxLength": 200000,
      "title": "Text"
     }
    },
    "type": "object",
    "required": [
     "format",
     "text"
    ],
    "title": "SourceIn"
   },
   "TTSIn": {
    "properties": {
     "text": {
      "type": "string",
      "maxLength": 600,
      "minLength": 1,
      "title": "Text"
     },
     "voice": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 40
       },
       {
        "type": "null"
       }
      ],
      "title": "Voice"
     },
     "rate": {
      "type": "number",
      "maximum": 2.0,
      "minimum": 0.5,
      "title": "Rate",
      "default": 1.0
     },
     "style": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 300
       },
       {
        "type": "null"
       }
      ],
      "title": "Style"
     },
     "stream": {
      "type": "boolean",
      "title": "Stream",
      "default": false
     },
     "opus_stream": {
      "type": "boolean",
      "title": "Opus Stream",
      "default": false
     },
     "opus_file": {
      "type": "boolean",
      "title": "Opus File",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "text"
    ],
    "title": "TTSIn"
   },
   "TestAR": {
    "properties": {
     "text": {
      "type": "string",
      "maxLength": 120,
      "title": "Text",
      "default": "AR 显示测试：看得到我吗？"
     }
    },
    "type": "object",
    "title": "TestAR"
   },
   "TestIn": {
    "properties": {
     "character_id": {
      "type": "string",
      "title": "Character Id"
     },
     "mode": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Mode"
     }
    },
    "type": "object",
    "required": [
     "character_id"
    ],
    "title": "TestIn"
   },
   "UploadIn": {
    "properties": {
     "image": {
      "type": "string",
      "maxLength": 4500000,
      "title": "Image"
     }
    },
    "type": "object",
    "required": [
     "image"
    ],
    "title": "UploadIn"
   },
   "ValidationError": {
    "properties": {
     "loc": {
      "items": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "integer"
        }
       ]
      },
      "type": "array",
      "title": "Location"
     },
     "msg": {
      "type": "string",
      "title": "Message"
     },
     "type": {
      "type": "string",
      "title": "Error Type"
     },
     "input": {
      "title": "Input"
     },
     "ctx": {
      "type": "object",
      "title": "Context"
     }
    },
    "type": "object",
    "required": [
     "loc",
     "msg",
     "type"
    ],
    "title": "ValidationError"
   },
   "VisionIn": {
    "properties": {
     "image": {
      "type": "string",
      "maxLength": 8000000,
      "title": "Image"
     },
     "question": {
      "type": "string",
      "maxLength": 200,
      "title": "Question",
      "default": ""
     }
    },
    "type": "object",
    "required": [
     "image"
    ],
    "title": "VisionIn"
   },
   "VoiceDesignIn": {
    "properties": {
     "description": {
      "type": "string",
      "maxLength": 300,
      "minLength": 2,
      "title": "Description"
     },
     "sample": {
      "type": "string",
      "maxLength": 2000,
      "title": "Sample",
      "default": ""
     }
    },
    "type": "object",
    "required": [
     "description"
    ],
    "title": "VoiceDesignIn"
   },
   "VoteIn": {
    "properties": {
     "value": {
      "type": "integer",
      "maximum": 1.0,
      "minimum": -1.0,
      "title": "Value"
     }
    },
    "type": "object",
    "required": [
     "value"
    ],
    "title": "VoteIn"
   },
   "app__personas__CharacterIn": {
    "properties": {
     "persona": {
      "additionalProperties": true,
      "type": "object",
      "title": "Persona"
     },
     "behavior": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Behavior"
     },
     "lore": {
      "anyOf": [
       {
        "items": {
         "additionalProperties": true,
         "type": "object"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Lore"
     }
    },
    "type": "object",
    "required": [
     "persona"
    ],
    "title": "CharacterIn"
   },
   "app__workbench__CharacterIn": {
    "properties": {
     "prompt": {
      "type": "string",
      "maxLength": 500,
      "title": "Prompt",
      "default": ""
     },
     "draft": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Draft"
     },
     "character_id": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 32
       },
       {
        "type": "null"
       }
      ],
      "title": "Character Id"
     },
     "wait": {
      "type": "boolean",
      "title": "Wait",
      "default": false
     },
     "motion": {
      "type": "boolean",
      "title": "Motion",
      "default": false
     }
    },
    "type": "object",
    "title": "CharacterIn"
   }
  }
 }
}
