# Generated with protoc-gen-openapi # https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi openapi: 3.0.3 info: title: "" version: 0.0.1 paths: /role/creating: post: tags: - RoleManager operationId: RoleManager_CreateRole requestBody: content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.CreateRoleRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.CreateRoleReply' /role/deleting: post: tags: - RoleManager operationId: RoleManager_DeleteRole requestBody: content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.DeleteRoleRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.DeleteRoleReply' /role/getting: post: tags: - RoleManager operationId: RoleManager_GetRoles requestBody: content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.GetRolesRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.GetRolesReply' /role/model/getting: post: tags: - RoleManager operationId: RoleManager_GetAvailableModels requestBody: content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.GetAvailableModelsRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.GetAvailableModelsReply' /role/setting: post: tags: - RoleManager operationId: RoleManager_SetRole requestBody: content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.SetRoleRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.SetRoleReply' /seminar/document/getting: post: tags: - Seminar operationId: Seminar_GetDocuments requestBody: content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.GetDocumentsRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.GetDocumentsReply' /seminar/mcp/add: post: tags: - Seminar operationId: Seminar_AddMCPServer requestBody: content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.AddMCPServerReqeust' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.AddMCPServerReply' /seminar/mcp/delete: post: tags: - Seminar operationId: Seminar_DeleteMCPServer requestBody: content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.DeleteMCPServerRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.DeleteMCPServerReply' /seminar/mcp/disable: post: tags: - Seminar operationId: Seminar_DisableMCPServer requestBody: content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.DisableMCPServerRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.DisableMCPServerReply' /seminar/mcp/enable: post: tags: - Seminar operationId: Seminar_EnableMCPServer requestBody: content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.EnableMCPServerRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.EnableMCPServerReply' /seminar/mcp/getting: post: tags: - Seminar operationId: Seminar_GetMCPServers requestBody: content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.GetMCPServersRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.GetMCPServersReply' /seminar/mcp/health: post: tags: - Seminar operationId: Seminar_CheckMCPServerHealth requestBody: content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.CheckMCPServerHealthReqeust' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.CheckMCPServerHealthReply' /seminar/topic/creating: post: tags: - Seminar operationId: Seminar_CreateTopic requestBody: content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.CreateTopicRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.CreateTopicReply' /seminar/topic/deleting: post: tags: - Seminar operationId: Seminar_DeleteTopic requestBody: content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.DeleteTopicRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.DeleteTopicReply' /seminar/topic/getting: post: tags: - Seminar description: 获取讨论主题的详细信息,进入讨论时加载 operationId: Seminar_GetTopic requestBody: content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.GetTopicRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.GetTopicReply' /seminar/topic/metadata: post: tags: - Seminar description: 获取用户所有讨论主题的元信息,用于前端展示 operationId: Seminar_GetTopicsMetadata requestBody: content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.GetTopicsMetadataRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.GetTopicsMetadataReply' /seminar/topic/stopping: post: tags: - Seminar operationId: Seminar_StopTopic requestBody: content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.StopTopicRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.StopTopicReply' /user/login: post: tags: - User operationId: User_Login requestBody: content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.LoginRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.LoginReply' /user/profile: get: tags: - User operationId: User_GetProfile parameters: - name: phone in: query schema: type: string responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.GetProfileReply' /user/profile/setting: post: tags: - User operationId: User_SetProfile requestBody: content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.SetProfileRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.SetProfileReply' /user/refresh: post: tags: - User operationId: User_RefreshToken requestBody: content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.RefreshTokenRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.RefreshTokenReply' /user/register: post: tags: - User operationId: User_Register requestBody: content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.RegisterRequest' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/Ayana.v1.RegisterReply' components: schemas: Ayana.v1.AddMCPServerReply: type: object properties: message: type: string Ayana.v1.AddMCPServerReqeust: type: object properties: name: type: string url: type: string requestHeader: type: string phone: type: string Ayana.v1.CheckMCPServerHealthReply: type: object properties: health: type: integer format: int32 description: '0: unhealthy, 1: healthy' Ayana.v1.CheckMCPServerHealthReqeust: type: object properties: url: type: string Ayana.v1.CreateRoleReply: type: object properties: uid: type: string Ayana.v1.CreateRoleRequest: type: object properties: phone: type: string role: $ref: '#/components/schemas/Ayana.v1.Role' Ayana.v1.CreateTopicReply: type: object properties: uid: type: string Ayana.v1.CreateTopicRequest: type: object properties: phone: type: string content: type: string moderator: type: string participants: type: array items: type: string documents: type: array items: type: string Ayana.v1.DeleteMCPServerReply: type: object properties: message: type: string Ayana.v1.DeleteMCPServerRequest: type: object properties: uid: type: string phone: type: string Ayana.v1.DeleteRoleReply: type: object properties: message: type: string Ayana.v1.DeleteRoleRequest: type: object properties: phone: type: string uid: type: string Ayana.v1.DeleteTopicReply: type: object properties: message: type: string Ayana.v1.DeleteTopicRequest: type: object properties: uid: type: string Ayana.v1.DisableMCPServerReply: type: object properties: message: type: string Ayana.v1.DisableMCPServerRequest: type: object properties: uid: type: string phone: type: string Ayana.v1.Document: type: object properties: uid: type: string filename: type: string totalSize: type: string Ayana.v1.EnableMCPServerReply: type: object properties: status: type: integer format: int32 Ayana.v1.EnableMCPServerRequest: type: object properties: uid: type: string url: type: string phone: type: string Ayana.v1.GetAvailableModelsReply: type: object properties: models: type: array items: $ref: '#/components/schemas/Ayana.v1.Model' Ayana.v1.GetAvailableModelsRequest: type: object properties: {} Ayana.v1.GetDocumentsReply: type: object properties: documents: type: array items: $ref: '#/components/schemas/Ayana.v1.Document' Ayana.v1.GetDocumentsRequest: type: object properties: phone: type: string Ayana.v1.GetMCPServersReply: type: object properties: servers: type: array items: $ref: '#/components/schemas/Ayana.v1.MCPServer' Ayana.v1.GetMCPServersRequest: type: object properties: phone: type: string Ayana.v1.GetProfileReply: type: object properties: profile: $ref: '#/components/schemas/Ayana.v1.Profile' Ayana.v1.GetRolesReply: type: object properties: roles: type: array items: $ref: '#/components/schemas/Ayana.v1.Role' Ayana.v1.GetRolesRequest: type: object properties: phone: type: string Ayana.v1.GetTopicReply: type: object properties: topic: $ref: '#/components/schemas/Ayana.v1.Topic' Ayana.v1.GetTopicRequest: type: object properties: uid: type: string description: 获取讨论主题的详细信息,进入讨论时加载 Ayana.v1.GetTopicsMetadataReply: type: object properties: topics: type: array items: $ref: '#/components/schemas/Ayana.v1.TopicMetadata' Ayana.v1.GetTopicsMetadataRequest: type: object properties: phone: type: string Ayana.v1.LoginReply: type: object properties: accessToken: type: string refreshToken: type: string Ayana.v1.LoginRequest: type: object properties: phone: type: string password: type: string Ayana.v1.MCPServer: type: object properties: uid: type: string name: type: string url: type: string requestHeader: type: string health: type: integer format: int32 status: type: integer format: int32 Ayana.v1.Model: type: object properties: provider: type: string name: type: string Ayana.v1.Profile: type: object properties: name: type: string avatar: type: string Ayana.v1.RefreshTokenReply: type: object properties: accessToken: type: string Ayana.v1.RefreshTokenRequest: type: object properties: refreshToken: type: string Ayana.v1.RegisterReply: type: object properties: message: type: string Ayana.v1.RegisterRequest: type: object properties: phone: type: string password: type: string Ayana.v1.Role: type: object properties: uid: type: string description: type: string avatar: type: string apiPath: type: string apiKey: type: string model: $ref: '#/components/schemas/Ayana.v1.Model' name: type: string Ayana.v1.SetProfileReply: type: object properties: message: type: string Ayana.v1.SetProfileRequest: type: object properties: phone: type: string profile: $ref: '#/components/schemas/Ayana.v1.Profile' Ayana.v1.SetRoleReply: type: object properties: message: type: string Ayana.v1.SetRoleRequest: type: object properties: phone: type: string uid: type: string role: $ref: '#/components/schemas/Ayana.v1.Role' Ayana.v1.Speech: type: object properties: uid: type: string roleUid: type: string content: type: string Ayana.v1.StopTopicReply: type: object properties: message: type: string Ayana.v1.StopTopicRequest: type: object properties: topicId: type: string Ayana.v1.Topic: type: object properties: uid: type: string participants: type: array items: type: string speeches: type: array items: $ref: '#/components/schemas/Ayana.v1.Speech' documents: type: array items: $ref: '#/components/schemas/Ayana.v1.Document' title: type: string titleImage: type: string content: type: string moderator: type: string Ayana.v1.TopicMetadata: type: object properties: uid: type: string content: type: string moderator: type: string participants: type: array items: type: string documents: type: array items: $ref: '#/components/schemas/Ayana.v1.Document' tags: - name: RoleManager - name: Seminar - name: User