{ "openapi": "3.1.0", "info": { "title": "Mikoto Superego", "version": "" }, "paths": { "/": { "get": { "summary": "Index", "operationId": "index", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/IndexResponse" } } } } } } }, "/account/register": { "post": { "tags": [ "Account" ], "summary": "User Registration", "operationId": "account.register", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterPayload" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenPair" } } } } } } }, "/account/login": { "post": { "tags": [ "Account" ], "summary": "User Login", "operationId": "account.login", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginPayload" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenPair" } } } } } } }, "/account/refresh": { "post": { "tags": [ "Account" ], "summary": "Refresh Access Token", "operationId": "account.refresh", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RefreshPayload" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenPair" } } } } } } }, "/account/change_password": { "post": { "tags": [ "Account" ], "summary": "Change Password", "operationId": "account.change_password", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChangePasswordPayload" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenPair" } } } } } } }, "/account/reset_password": { "post": { "tags": [ "Account" ], "summary": "Reset Password", "operationId": "account.reset_password", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ResetPasswordPayload" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "null" } } } } } } }, "/account/reset_password/submit": { "post": { "tags": [ "Account" ], "summary": "Confirm Password Reset", "operationId": "account.reset_password.confirm", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ResetPasswordConfirmData" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "null" } } } } } } }, "/bots/": { "get": { "tags": [ "Bots" ], "summary": "List Bots", "operationId": "bots.list", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/BotInfo" } } } } } } }, "post": { "tags": [ "Bots" ], "summary": "Create a Bot", "operationId": "bots.create", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateBotPayload" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BotCreatedResponse" } } } } } } }, "/bots/login": { "post": { "tags": [ "Bots" ], "summary": "Authenticate as Bot", "description": "Exchange a bot ID and secret token for a JWT access token.", "operationId": "bots.login", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BotLoginPayload" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenPair" } } } } } } }, "/bots/{botId}": { "get": { "tags": [ "Bots" ], "summary": "Get Bot Details", "operationId": "bots.get", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BotInfo" } } } } } }, "delete": { "tags": [ "Bots" ], "summary": "Delete Bot", "operationId": "bots.delete", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "null" } } } } } }, "patch": { "tags": [ "Bots" ], "summary": "Update Bot", "operationId": "bots.update", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateBotPayload" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BotInfo" } } } } } } }, "/bots/{botId}/regenerate-token": { "post": { "tags": [ "Bots" ], "summary": "Regenerate Bot Token", "operationId": "bots.regenerateToken", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BotCreatedResponse" } } } } } } }, "/bots/{botId}/spaces": { "get": { "tags": [ "Bots" ], "summary": "List Spaces Bot Is In", "operationId": "bots.listSpaces", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/BotSpaceInfo" } } } } } } } }, "/bots/{botId}/install": { "post": { "tags": [ "Bots" ], "summary": "Install Bot Into Space", "operationId": "bots.install", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InstallBotPayload" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "null" } } } } } } }, "/bots/{botId}/spaces/{spaceId}": { "delete": { "tags": [ "Bots" ], "summary": "Remove Bot From Space", "operationId": "bots.removeFromSpace", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "null" } } } } } } }, "/handles/{handle}": { "get": { "tags": [ "Handles" ], "summary": "Resolve a Handle", "operationId": "handles.resolve", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HandleResolution" } } } } } } }, "/.well-known/mikoto/instance.json": { "get": { "tags": [ "Instance" ], "summary": "Get Instance Information", "description": "Returns instance information for federation, including the public key for verifying handle attestations.", "operationId": "instance.info", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InstanceInfo" } } } } } } }, "/users/me": { "get": { "tags": [ "Users" ], "summary": "Get Current User", "operationId": "user.get", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserExt" } } } } } }, "patch": { "tags": [ "Users" ], "summary": "Update User", "operationId": "user.update", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserPatch" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserExt" } } } } } } }, "/users/me/handle": { "post": { "tags": [ "Users" ], "summary": "Set or Change User Handle", "operationId": "user.setHandle", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HandlePayload" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserExt" } } } } } }, "delete": { "tags": [ "Users" ], "summary": "Release User Handle", "operationId": "user.deleteHandle", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserExt" } } } } } } }, "/users/me/handle/verify": { "post": { "tags": [ "Users" ], "summary": "Start Custom Domain Verification", "description": "Generates a verification challenge for a custom domain handle. Returns the DNS TXT record and well-known file content to add for verification.", "operationId": "user.startHandleVerification", "requestBody": { "description": "Request to initiate handle verification", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VerifyHandleRequest" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VerificationChallenge" } } } } } } }, "/users/me/handle/verify/complete": { "post": { "tags": [ "Users" ], "summary": "Complete Custom Domain Verification", "description": "Verifies the custom domain by checking DNS TXT records or well-known files. On success, updates the user's handle to the verified domain.", "operationId": "user.completeHandleVerification", "requestBody": { "description": "Request to initiate handle verification", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VerifyHandleRequest" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VerificationResult" } } } } } } }, "/relations/": { "get": { "tags": [ "Relations" ], "summary": "List Relationships", "operationId": "relations.list", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RelationshipExt" } } } } } } } }, "/relations/{relationId}": { "get": { "tags": [ "Relations" ], "summary": "Get Relationship", "operationId": "relations.get", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RelationshipExt" } } } } } }, "delete": { "tags": [ "Relations" ], "summary": "Remove Friend", "operationId": "relations.remove", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "null" } } } } } } }, "/relations/{relationId}/request": { "post": { "tags": [ "Relations" ], "summary": "Send Friend Request", "operationId": "relations.sendRequest", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RelationshipExt" } } } } } } }, "/relations/{relationId}/accept": { "post": { "tags": [ "Relations" ], "summary": "Accept Friend Request", "operationId": "relations.accept", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RelationshipExt" } } } } } } }, "/relations/{relationId}/decline": { "post": { "tags": [ "Relations" ], "summary": "Decline Friend Request", "operationId": "relations.decline", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "null" } } } } } } }, "/relations/{relationId}/block": { "post": { "tags": [ "Relations" ], "summary": "Block User", "operationId": "relations.block", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RelationshipExt" } } } } } }, "delete": { "tags": [ "Relations" ], "summary": "Unblock User", "operationId": "relations.unblock", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "null" } } } } } } }, "/relations/{relationId}/dm": { "post": { "tags": [ "Relations" ], "summary": "Open Direct Messages", "operationId": "relations.openDm", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Channel" } } } } } } }, "/dm/{channelId}/messages/": { "get": { "tags": [ "DM" ], "summary": "List DM Messages", "operationId": "dm.messages.list", "parameters": [ { "in": "query", "name": "cursor", "schema": { "type": [ "string", "null" ], "format": "uuid" }, "style": "form" }, { "in": "query", "name": "limit", "schema": { "type": [ "integer", "null" ], "format": "int32" }, "style": "form" } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/MessageExt" } } } } } } }, "post": { "tags": [ "DM" ], "summary": "Send DM Message", "operationId": "dm.messages.create", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MessageSendPayload" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MessageExt" } } } } } } }, "/dm/{channelId}/messages/{messageId}": { "delete": { "tags": [ "DM" ], "summary": "Delete DM Message", "operationId": "dm.messages.delete", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "null" } } } } } }, "patch": { "tags": [ "DM" ], "summary": "Edit DM Message", "operationId": "dm.messages.update", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MessageEditPayload" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MessageExt" } } } } } } }, "/dm/unreads": { "get": { "tags": [ "DM" ], "summary": "List DM Unreads", "operationId": "dm.unreads", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ChannelUnread" } } } } } } } }, "/dm/{channelId}/ack": { "post": { "tags": [ "DM" ], "summary": "Acknowledge DM Channel", "operationId": "dm.acknowledge", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "null" } } } } } } }, "/push/config": { "get": { "tags": [ "Push" ], "summary": "Get Push Notification Config", "operationId": "push.config", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PushConfig" } } } } } } }, "/push/subscribe": { "post": { "tags": [ "Push" ], "summary": "Register a Push Subscription", "operationId": "push.subscribe", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SubscribePayload" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SubscribeResponse" } } } } } } }, "/push/unsubscribe": { "post": { "tags": [ "Push" ], "summary": "Remove a Push Subscription", "operationId": "push.unsubscribe", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UnsubscribePayload" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "null" } } } } } } }, "/spaces/": { "get": { "tags": [ "Spaces" ], "summary": "List My Spaces", "operationId": "spaces.list", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SpaceExt" } } } } } } }, "post": { "tags": [ "Spaces" ], "summary": "Create Space", "operationId": "spaces.create", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SpaceCreatePayload" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SpaceExt" } } } } } } }, "/spaces/discover": { "get": { "tags": [ "Spaces" ], "summary": "List Public Spaces", "operationId": "spaces.discover", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SpaceExt" } } } } } } } }, "/spaces/{spaceId}": { "get": { "tags": [ "Spaces" ], "summary": "Get Space", "operationId": "spaces.get", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SpaceExt" } } } } } }, "delete": { "tags": [ "Spaces" ], "summary": "Delete Space", "operationId": "spaces.delete", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "null" } } } } } }, "patch": { "tags": [ "Spaces" ], "summary": "Update Space", "operationId": "spaces.update", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SpaceUpdatePayload" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SpaceExt" } } } } } } }, "/spaces/join/{invite}": { "get": { "tags": [ "Spaces" ], "summary": "Preview Space Invite", "operationId": "spaces.preview", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SpaceExt" } } } } } }, "post": { "tags": [ "Spaces" ], "summary": "Join Space", "operationId": "spaces.join", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SpaceExt" } } } } } } }, "/spaces/{spaceId}/leave": { "delete": { "tags": [ "Spaces" ], "summary": "Leave Space", "operationId": "spaces.leave", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "null" } } } } } } }, "/spaces/notification-preferences": { "get": { "tags": [ "Spaces" ], "summary": "List Notification Preferences", "operationId": "spaces.listNotificationPreferences", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/NotificationPreference" } } } } } } } }, "/spaces/{spaceId}/notification-preference": { "get": { "tags": [ "Spaces" ], "summary": "Get Notification Preference", "operationId": "spaces.getNotificationPreference", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationPreference" } } } } } }, "post": { "tags": [ "Spaces" ], "summary": "Set Notification Preference", "operationId": "spaces.setNotificationPreference", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationPreferencePayload" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationPreference" } } } } } } }, "/spaces/{spaceId}/handle/verify": { "post": { "tags": [ "Spaces" ], "summary": "Start Custom Domain Verification", "description": "Generates a verification challenge for a custom domain handle. Returns the DNS TXT record and well-known file content to add for verification.", "operationId": "spaces.startHandleVerification", "requestBody": { "description": "Request to initiate handle verification", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VerifyHandleRequest" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VerificationChallenge" } } } } } } }, "/spaces/{spaceId}/handle/verify/complete": { "post": { "tags": [ "Spaces" ], "summary": "Complete Custom Domain Verification", "description": "Verifies the custom domain by checking DNS TXT records or well-known files. On success, updates the space's handle to the verified domain.", "operationId": "spaces.completeHandleVerification", "requestBody": { "description": "Request to initiate handle verification", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VerifyHandleRequest" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VerificationResult" } } } } } } }, "/spaces/{spaceId}/channels/": { "get": { "tags": [ "Channels" ], "summary": "List Channels", "operationId": "channels.list", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Channel" } } } } } } }, "post": { "tags": [ "Channels" ], "summary": "Create Channel", "operationId": "channels.create", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChannelCreatePayload" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Channel" } } } } } } }, "/spaces/{spaceId}/channels/{channelId}": { "get": { "tags": [ "Channels" ], "summary": "Get Channel", "operationId": "channels.get", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Channel" } } } } } }, "delete": { "tags": [ "Channels" ], "summary": "Delete Channel", "operationId": "channels.delete", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "null" } } } } } }, "patch": { "tags": [ "Channels" ], "summary": "Update Channel", "operationId": "channels.update", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChannelPatch" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Channel" } } } } } } }, "/spaces/{spaceId}/channels/unreads": { "get": { "tags": [ "Channels" ], "summary": "List Unreads", "operationId": "channels.unreads", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ChannelUnread" } } } } } } } }, "/spaces/{spaceId}/channels/{channelId}/ack": { "post": { "tags": [ "Channels" ], "summary": "Acknowledge Channel", "operationId": "channels.acknowledge", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "null" } } } } } } }, "/spaces/{spaceId}/channels/{channelId}/messages/": { "get": { "tags": [ "Messages" ], "summary": "List Messages", "operationId": "messages.list", "parameters": [ { "in": "query", "name": "cursor", "schema": { "type": [ "string", "null" ], "format": "uuid" }, "style": "form" }, { "in": "query", "name": "limit", "schema": { "type": [ "integer", "null" ], "format": "int32" }, "style": "form" } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/MessageExt" } } } } } } }, "post": { "tags": [ "Messages" ], "summary": "Create Message", "operationId": "messages.create", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MessageSendPayload2" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MessageExt" } } } } } } }, "/spaces/{spaceId}/channels/{channelId}/messages/{messageId}": { "get": { "tags": [ "Messages" ], "summary": "Get Message", "operationId": "messages.get", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MessageExt" } } } } } }, "delete": { "tags": [ "Messages" ], "summary": "Delete Message", "operationId": "messages.delete", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "null" } } } } } }, "patch": { "tags": [ "Messages" ], "summary": "Update Message", "operationId": "messages.update", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MessageEditPayload2" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MessageExt" } } } } } } }, "/spaces/{spaceId}/channels/{channelId}/voice/": { "post": { "tags": [ "Voice" ], "summary": "Join Voice Channel", "operationId": "voice.join", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VoiceToken" } } } } } } }, "/spaces/{spaceId}/channels/{channelId}/documents/": { "get": { "tags": [ "Documents" ], "summary": "Get Document", "operationId": "documents.get", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Document" } } } } } }, "patch": { "tags": [ "Documents" ], "summary": "Update Document", "operationId": "documents.update", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentPatch" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Document" } } } } } } }, "/spaces/{spaceId}/channels/{channelId}/documents/claim-bootstrap": { "post": { "tags": [ "Documents" ], "summary": "Claim Document Bootstrap", "operationId": "documents.claimBootstrap", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClaimBootstrapResponse" } } } } } } }, "/spaces/{spaceId}/members/": { "get": { "tags": [ "Members" ], "summary": "List Members in Space", "operationId": "members.list", "parameters": [ { "in": "query", "name": "cursor", "schema": { "type": [ "string", "null" ], "format": "uuid" }, "style": "form" }, { "in": "query", "name": "limit", "schema": { "type": [ "integer", "null" ], "format": "int64" }, "style": "form" } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/MemberExt" } } } } } } }, "post": { "tags": [ "Members" ], "summary": "Add Bot Member", "operationId": "members.create", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MemberCreatePayload" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MemberExt" } } } } } } }, "/spaces/{spaceId}/members/{userId}": { "get": { "tags": [ "Members" ], "summary": "Get Member from Space", "operationId": "members.get", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MemberExt" } } } } } }, "delete": { "tags": [ "Members" ], "summary": "Kick Member", "operationId": "members.delete", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "null" } } } } } }, "patch": { "tags": [ "Members" ], "summary": "Update Member", "operationId": "members.update", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MemberUpdatePayload" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MemberExt" } } } } } } }, "/spaces/{spaceId}/members/{userId}/roles/{roleId}": { "post": { "tags": [ "Members" ], "summary": "Add Role to Member", "operationId": "members.addRole", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MemberExt" } } } } } }, "delete": { "tags": [ "Members" ], "summary": "Remove Role from Member", "operationId": "members.removeRole", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MemberExt" } } } } } } }, "/spaces/{spaceId}/roles/": { "post": { "tags": [ "Roles" ], "summary": "Create Role", "operationId": "roles.create", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RoleCreatePayload" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Role" } } } } } } }, "/spaces/{spaceId}/roles/{roleId}": { "delete": { "tags": [ "Roles" ], "summary": "Delete Role", "operationId": "roles.delete", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "null" } } } } } }, "patch": { "tags": [ "Roles" ], "summary": "Update Role", "operationId": "roles.update", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RolePatch" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Role" } } } } } } }, "/spaces/{spaceId}/bans/": { "get": { "tags": [ "Bans" ], "summary": "List Bans", "operationId": "bans.list", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/BanInfo" } } } } } } }, "post": { "tags": [ "Bans" ], "summary": "Ban User", "operationId": "bans.create", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BanCreatePayload" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BanInfo" } } } } } } }, "/spaces/{spaceId}/bans/{userId}": { "delete": { "tags": [ "Bans" ], "summary": "Unban User", "operationId": "bans.delete", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "null" } } } } } } }, "/spaces/{spaceId}/invites/": { "get": { "tags": [ "Spaces" ], "summary": "List Invites", "operationId": "invites.list", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Invite" } } } } } } }, "post": { "tags": [ "Spaces" ], "summary": "Create Invite", "operationId": "invites.create", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InviteCreatePayload" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Invite" } } } } } } }, "/spaces/{spaceId}/invites/{inviteId}": { "delete": { "tags": [ "Spaces" ], "summary": "Delete Invite", "operationId": "invites.delete", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "null" } } } } } } } }, "components": { "schemas": { "BanCreatePayload": { "type": "object", "required": [ "userId" ], "properties": { "reason": { "type": [ "string", "null" ] }, "userId": { "type": "string", "format": "uuid" } } }, "BanInfo": { "type": "object", "required": [ "id", "spaceId", "userId" ], "properties": { "id": { "type": "string", "format": "uuid" }, "reason": { "type": [ "string", "null" ] }, "spaceId": { "type": "string", "format": "uuid" }, "user": { "anyOf": [ { "$ref": "#/components/schemas/User" }, { "type": "null" } ] }, "userId": { "type": "string", "format": "uuid" } } }, "BotCreatedResponse": { "type": "object", "required": [ "id", "name", "ownerId", "token" ], "properties": { "id": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "ownerId": { "type": "string", "format": "uuid" }, "token": { "type": "string" } } }, "BotInfo": { "type": "object", "required": [ "id", "name", "ownerId", "permissions", "visibility" ], "properties": { "id": { "type": "string", "format": "uuid" }, "lastTokenRegeneratedAt": { "type": [ "string", "null" ], "format": "date-time" }, "name": { "type": "string" }, "ownerId": { "type": "string", "format": "uuid" }, "permissions": { "type": "array", "items": { "type": "string" } }, "user": { "anyOf": [ { "$ref": "#/components/schemas/UserExt" }, { "type": "null" } ] }, "visibility": { "$ref": "#/components/schemas/BotVisibility" } } }, "BotLoginPayload": { "type": "object", "required": [ "botId", "token" ], "properties": { "botId": { "type": "string", "format": "uuid" }, "token": { "type": "string" } } }, "BotSpaceInfo": { "type": "object", "required": [ "spaceId", "spaceName" ], "properties": { "spaceIcon": { "type": [ "string", "null" ] }, "spaceId": { "type": "string", "format": "uuid" }, "spaceName": { "type": "string" } } }, "BotVisibility": { "type": "string", "enum": [ "PUBLIC", "PRIVATE" ] }, "ChangePasswordPayload": { "type": "object", "required": [ "newPassword", "oldPassword" ], "properties": { "newPassword": { "type": "string" }, "oldPassword": { "type": "string" } } }, "Channel": { "type": "object", "required": [ "id", "name", "order", "type" ], "properties": { "id": { "type": "string", "format": "uuid" }, "lastUpdated": { "anyOf": [ { "$ref": "#/components/schemas/Timestamp" }, { "type": "null" } ] }, "name": { "type": "string" }, "order": { "type": "integer", "format": "int32" }, "parentId": { "type": [ "string", "null" ], "format": "uuid" }, "spaceId": { "type": [ "string", "null" ], "format": "uuid" }, "type": { "$ref": "#/components/schemas/ChannelType" } } }, "ChannelCreatePayload": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string" }, "parentId": { "type": [ "string", "null" ], "format": "uuid" }, "type": { "anyOf": [ { "$ref": "#/components/schemas/ChannelType" }, { "type": "null" } ] } } }, "ChannelPatch": { "type": "object", "properties": { "name": { "type": [ "string", "null" ] } } }, "ChannelType": { "type": "string", "enum": [ "TEXT", "VOICE", "DOCUMENT", "APPLICATION", "THREAD", "CATEGORY" ] }, "ChannelUnread": { "type": "object", "required": [ "channelId", "timestamp", "userId" ], "properties": { "channelId": { "type": "string", "format": "uuid" }, "timestamp": { "$ref": "#/components/schemas/Timestamp" }, "userId": { "type": "string", "format": "uuid" } } }, "ClaimBootstrapResponse": { "type": "object", "required": [ "shouldBootstrap" ], "properties": { "shouldBootstrap": { "type": "boolean" } } }, "CreateBotPayload": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string" } } }, "Document": { "type": "object", "required": [ "channelId", "content", "id" ], "properties": { "channelId": { "type": "string", "format": "uuid" }, "content": { "type": "string" }, "id": { "type": "string", "format": "uuid" } } }, "DocumentPatch": { "type": "object", "properties": { "content": { "type": [ "string", "null" ] } } }, "HandleOwner": { "description": "Represents what entity type owns a handle", "oneOf": [ { "type": "object", "required": [ "id", "type" ], "properties": { "id": { "type": "string", "format": "uuid" }, "type": { "type": "string", "enum": [ "user" ] } } }, { "type": "object", "required": [ "id", "type" ], "properties": { "id": { "type": "string", "format": "uuid" }, "type": { "type": "string", "enum": [ "space" ] } } } ] }, "HandlePayload": { "type": "object", "required": [ "handle" ], "properties": { "handle": { "type": "string" } } }, "HandleResolution": { "description": "Response for handle resolution", "type": "object", "required": [ "createdAt", "handle", "owner" ], "properties": { "createdAt": { "type": "string", "format": "partial-date-time" }, "handle": { "type": "string" }, "owner": { "$ref": "#/components/schemas/HandleOwner" }, "verifiedAt": { "type": [ "string", "null" ], "format": "partial-date-time" } } }, "IndexResponse": { "type": "object", "required": [ "name", "version" ], "properties": { "name": { "type": "string" }, "version": { "type": "string" } } }, "InstallBotPayload": { "type": "object", "required": [ "spaceId" ], "properties": { "spaceId": { "type": "string", "format": "uuid" } } }, "InstanceInfo": { "type": "object", "required": [ "apiEndpoint", "domain", "handleDomain" ], "properties": { "apiEndpoint": { "type": "string" }, "domain": { "type": "string" }, "handleDomain": { "type": "string" }, "publicKey": { "type": [ "string", "null" ] } } }, "Invite": { "type": "object", "required": [ "createdAt", "creatorId", "id", "spaceId" ], "properties": { "createdAt": { "$ref": "#/components/schemas/Timestamp" }, "creatorId": { "type": "string", "format": "uuid" }, "id": { "type": "string" }, "spaceId": { "type": "string", "format": "uuid" } } }, "InviteCreatePayload": { "type": "object" }, "ListQuery": { "type": "object", "properties": { "cursor": { "type": [ "string", "null" ], "format": "uuid" }, "limit": { "type": [ "integer", "null" ], "format": "int32" } } }, "LoginPayload": { "examples": [ { "email": "misaka.mikoto@tokiwadai.ac.jp", "password": "correcthorsebatterystaple" } ], "type": "object", "required": [ "email", "password" ], "properties": { "email": { "type": "string" }, "password": { "type": "string" } } }, "MemberCreatePayload": { "type": "object", "required": [ "userId" ], "properties": { "userId": { "type": "string", "format": "uuid" } } }, "MemberExt": { "type": "object", "required": [ "id", "roleIds", "spaceId", "user", "userId" ], "properties": { "id": { "type": "string", "format": "uuid" }, "name": { "type": [ "string", "null" ] }, "roleIds": { "type": "array", "items": { "type": "string", "format": "uuid" } }, "spaceId": { "type": "string", "format": "uuid" }, "user": { "$ref": "#/components/schemas/UserExt" }, "userId": { "type": "string", "format": "uuid" } } }, "MemberListQuery": { "type": "object", "properties": { "cursor": { "type": [ "string", "null" ], "format": "uuid" }, "limit": { "type": [ "integer", "null" ], "format": "int64" } } }, "MemberUpdatePayload": { "type": "object", "required": [ "roleIds" ], "properties": { "roleIds": { "type": "array", "items": { "type": "string", "format": "uuid" } } } }, "MessageAttachment": { "type": "object", "required": [ "contentType", "filename", "id", "messageId", "order", "size", "url" ], "properties": { "contentType": { "type": "string" }, "filename": { "type": "string" }, "id": { "type": "string", "format": "uuid" }, "messageId": { "type": "string", "format": "uuid" }, "order": { "type": "integer", "format": "int32" }, "size": { "type": "integer", "format": "int32" }, "url": { "type": "string" } } }, "MessageAttachmentInput": { "type": "object", "required": [ "contentType", "filename", "size", "url" ], "properties": { "contentType": { "type": "string" }, "filename": { "type": "string" }, "size": { "type": "integer", "format": "int32" }, "url": { "type": "string" } } }, "MessageEditPayload": { "type": "object", "required": [ "content" ], "properties": { "content": { "type": "string" } } }, "MessageEditPayload2": { "type": "object", "required": [ "content" ], "properties": { "content": { "type": "string" } } }, "MessageExt": { "type": "object", "required": [ "attachments", "channelId", "content", "id", "timestamp" ], "properties": { "attachments": { "type": "array", "items": { "$ref": "#/components/schemas/MessageAttachment" } }, "author": { "anyOf": [ { "$ref": "#/components/schemas/User" }, { "type": "null" } ] }, "authorId": { "type": [ "string", "null" ], "format": "uuid" }, "channelId": { "type": "string", "format": "uuid" }, "content": { "type": "string" }, "editedTimestamp": { "anyOf": [ { "$ref": "#/components/schemas/Timestamp" }, { "type": "null" } ] }, "id": { "type": "string", "format": "uuid" }, "timestamp": { "$ref": "#/components/schemas/Timestamp" } } }, "MessageKey": { "type": "object", "required": [ "channelId", "messageId" ], "properties": { "channelId": { "type": "string", "format": "uuid" }, "messageId": { "type": "string", "format": "uuid" } } }, "MessageListQuery": { "type": "object", "properties": { "cursor": { "type": [ "string", "null" ], "format": "uuid" }, "limit": { "type": [ "integer", "null" ], "format": "int32" } } }, "MessageSendPayload": { "type": "object", "required": [ "content" ], "properties": { "attachments": { "default": [], "type": "array", "items": { "$ref": "#/components/schemas/MessageAttachmentInput" } }, "content": { "type": "string" } } }, "MessageSendPayload2": { "type": "object", "required": [ "content" ], "properties": { "attachments": { "default": [], "type": "array", "items": { "$ref": "#/components/schemas/MessageAttachmentInput" } }, "content": { "type": "string" } } }, "NotificationLevel": { "type": "string", "enum": [ "ALL", "MENTIONS", "NOTHING" ] }, "NotificationPreference": { "type": "object", "required": [ "level", "spaceId", "userId" ], "properties": { "level": { "$ref": "#/components/schemas/NotificationLevel" }, "spaceId": { "type": "string", "format": "uuid" }, "userId": { "type": "string", "format": "uuid" } } }, "NotificationPreferencePayload": { "type": "object", "required": [ "level" ], "properties": { "level": { "$ref": "#/components/schemas/NotificationLevel" } } }, "ObjectWithId": { "type": "object", "required": [ "id" ], "properties": { "id": { "type": "string", "format": "uuid" } } }, "Ping": { "type": "object", "required": [ "message" ], "properties": { "message": { "type": "string" } } }, "PushConfig": { "type": "object", "properties": { "publicKey": { "description": "Base64 URL-safe encoded VAPID public key for PushManager.subscribe(). Null when push is not configured on this server.", "type": [ "string", "null" ] } } }, "RefreshPayload": { "type": "object", "required": [ "refreshToken" ], "properties": { "refreshToken": { "type": "string" } } }, "RegisterPayload": { "examples": [ { "email": "misaka.mikoto@tokiwadai.ac.jp", "name": "biribiri", "password": "correcthorsebatterystaple" } ], "type": "object", "required": [ "email", "name", "password" ], "properties": { "email": { "type": "string" }, "name": { "type": "string" }, "password": { "type": "string" } } }, "RelationState": { "type": "string", "enum": [ "NONE", "FRIEND", "BLOCKED", "INCOMING_REQUEST", "OUTGOING_REQUEST" ] }, "RelationshipExt": { "description": "Relationship with extended data including the related user", "type": "object", "required": [ "id", "relationId", "state", "user", "userId" ], "properties": { "channelId": { "type": [ "string", "null" ], "format": "uuid" }, "id": { "type": "string", "format": "uuid" }, "relationId": { "type": "string", "format": "uuid" }, "state": { "$ref": "#/components/schemas/RelationState" }, "user": { "$ref": "#/components/schemas/UserExt" }, "userId": { "type": "string", "format": "uuid" } } }, "ResetPasswordConfirmData": { "type": "object", "required": [ "password", "token" ], "properties": { "password": { "type": "string" }, "token": { "type": "string" } } }, "ResetPasswordPayload": { "type": "object", "required": [ "email" ], "properties": { "email": { "type": "string" } } }, "Role": { "type": "object", "required": [ "id", "name", "permissions", "position", "spaceId" ], "properties": { "color": { "type": [ "string", "null" ] }, "id": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "permissions": { "type": "string" }, "position": { "type": "integer", "format": "int32" }, "spaceId": { "type": "string", "format": "uuid" } } }, "RoleCreatePayload": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string" } } }, "RolePatch": { "type": "object", "required": [ "name", "permissions", "position" ], "properties": { "color": { "type": [ "string", "null" ] }, "name": { "type": "string" }, "permissions": { "type": "string" }, "position": { "type": "integer", "format": "int32" } } }, "ServeParams": { "type": "object", "properties": { "h": { "type": [ "integer", "null" ], "format": "uint32", "minimum": 0.0 }, "w": { "type": [ "integer", "null" ], "format": "uint32", "minimum": 0.0 } } }, "SpaceCreatePayload": { "type": "object", "required": [ "name" ], "properties": { "accent": { "description": "Accent color of the space, as a `#RRGGBB` hex string.", "type": [ "string", "null" ] }, "name": { "type": "string" } } }, "SpaceExt": { "title": "Space", "description": "Represents a Mikoto Space.", "type": "object", "required": [ "channels", "id", "memberCount", "name", "roles", "type" ], "properties": { "accent": { "description": "Accent color of the space, as a `#RRGGBB` hex string.", "type": [ "string", "null" ] }, "channels": { "type": "array", "items": { "$ref": "#/components/schemas/Channel" } }, "handle": { "description": "The space's handle (if claimed)", "type": [ "string", "null" ] }, "icon": { "type": [ "string", "null" ] }, "id": { "type": "string", "format": "uuid" }, "memberCount": { "type": "integer", "format": "int64" }, "name": { "type": "string" }, "ownerId": { "type": [ "string", "null" ], "format": "uuid" }, "roles": { "type": "array", "items": { "$ref": "#/components/schemas/Role" } }, "type": { "$ref": "#/components/schemas/SpaceType" }, "visibility": { "anyOf": [ { "$ref": "#/components/schemas/SpaceVisibility" }, { "type": "null" } ] } } }, "SpaceType": { "type": "string", "enum": [ "NONE", "DM", "GROUP" ] }, "SpaceUpdatePayload": { "type": "object", "properties": { "accent": { "description": "Accent color as a `#RRGGBB` hex string. Omit to leave unchanged, `null` to clear.", "type": [ "string", "null" ] }, "handle": { "type": [ "string", "null" ] }, "icon": { "type": [ "string", "null" ] }, "name": { "type": [ "string", "null" ] }, "visibility": { "anyOf": [ { "$ref": "#/components/schemas/SpaceVisibility" }, { "type": "null" } ] } } }, "SpaceVisibility": { "type": "string", "enum": [ "PRIVATE", "PUBLIC" ] }, "SubscribePayload": { "type": "object", "required": [ "auth", "endpoint", "p256dh" ], "properties": { "auth": { "type": "string" }, "endpoint": { "type": "string" }, "p256dh": { "type": "string" } } }, "SubscribeResponse": { "type": "object", "required": [ "id" ], "properties": { "id": { "type": "string", "format": "uuid" } } }, "Timestamp": { "type": "string", "format": "date-time" }, "TokenPair": { "type": "object", "required": [ "accessToken" ], "properties": { "accessToken": { "type": "string" }, "refreshToken": { "description": "If the refresh token is not provided, you can continue using the same refresh token.", "type": [ "string", "null" ] } } }, "TypingStart": { "type": "object", "required": [ "channelId" ], "properties": { "channelId": { "type": "string" } } }, "TypingUpdate": { "type": "object", "required": [ "channelId", "userId" ], "properties": { "channelId": { "type": "string" }, "userId": { "type": "string" } } }, "UnsubscribePayload": { "type": "object", "required": [ "endpoint" ], "properties": { "endpoint": { "type": "string" } } }, "UpdateBotPayload": { "type": "object", "properties": { "avatar": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] }, "name": { "type": [ "string", "null" ] }, "permissions": { "type": [ "array", "null" ], "items": { "type": "string" } }, "visibility": { "anyOf": [ { "$ref": "#/components/schemas/BotVisibility" }, { "type": "null" } ] } } }, "User": { "type": "object", "required": [ "id", "name" ], "properties": { "avatar": { "type": [ "string", "null" ] }, "category": { "anyOf": [ { "$ref": "#/components/schemas/UserCategory" }, { "type": "null" } ] }, "description": { "type": [ "string", "null" ] }, "id": { "type": "string", "format": "uuid" }, "name": { "type": "string" } } }, "UserCategory": { "type": "string", "enum": [ "BOT", "UNVERIFIED" ] }, "UserExt": { "description": "User with extended data including handle", "type": "object", "required": [ "id", "name" ], "properties": { "avatar": { "type": [ "string", "null" ] }, "category": { "anyOf": [ { "$ref": "#/components/schemas/UserCategory" }, { "type": "null" } ] }, "description": { "type": [ "string", "null" ] }, "handle": { "description": "The user's handle (if claimed)", "type": [ "string", "null" ] }, "id": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "spaceOrder": { "description": "Persisted ordering of the user's spaces in the sidebar. Always present on responses; optional in the schema so the base `User` shape remains structurally assignable to `UserExt`.", "type": [ "array", "null" ], "items": { "type": "string", "format": "uuid" } } } }, "UserPatch": { "type": "object", "properties": { "avatar": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] }, "name": { "type": [ "string", "null" ] }, "spaceOrder": { "type": [ "array", "null" ], "items": { "type": "string", "format": "uuid" } } } }, "VerificationChallenge": { "description": "Verification challenge sent to the user", "type": "object", "required": [ "createdAt", "dnsTxtName", "dnsTxtRecord", "entityId", "entityType", "handle", "nonce", "wellKnownContent", "wellKnownUrl" ], "properties": { "createdAt": { "description": "When this challenge was created", "type": "string", "format": "date-time" }, "dnsTxtName": { "description": "The DNS TXT record name (subdomain)", "type": "string" }, "dnsTxtRecord": { "description": "The DNS TXT record to add", "type": "string" }, "entityId": { "description": "The entity ID", "type": "string", "format": "uuid" }, "entityType": { "description": "The entity type (user or space)", "type": "string" }, "handle": { "description": "The domain being verified", "type": "string" }, "nonce": { "description": "Random nonce for this challenge", "type": "string" }, "wellKnownContent": { "description": "The well-known file content", "type": "string" }, "wellKnownUrl": { "description": "The well-known file URL", "type": "string" } } }, "VerificationResult": { "description": "Result of a verification attempt", "type": "object", "required": [ "success" ], "properties": { "error": { "type": [ "string", "null" ] }, "method": { "type": [ "string", "null" ] }, "success": { "type": "boolean" } } }, "VerifyHandleRequest": { "description": "Request to initiate handle verification", "type": "object", "required": [ "handle" ], "properties": { "handle": { "description": "The domain to verify", "type": "string" } } }, "VoiceToken": { "type": "object", "required": [ "channelId", "token", "url" ], "properties": { "channelId": { "type": "string", "format": "uuid" }, "token": { "type": "string" }, "url": { "type": "string" } } } } }, "websocket": { "commands": { "ping": { "$ref": "#/components/schemas/Ping" }, "typing.start": { "$ref": "#/components/schemas/TypingStart" } }, "events": { "channels.onCreate": { "$ref": "#/components/schemas/Channel" }, "channels.onDelete": { "$ref": "#/components/schemas/Channel" }, "channels.onUpdate": { "$ref": "#/components/schemas/Channel" }, "members.onCreate": { "$ref": "#/components/schemas/MemberExt" }, "members.onDelete": { "$ref": "#/components/schemas/MemberExt" }, "members.onUpdate": { "$ref": "#/components/schemas/MemberExt" }, "messages.onCreate": { "$ref": "#/components/schemas/MessageExt" }, "messages.onDelete": { "$ref": "#/components/schemas/MessageKey" }, "messages.onUpdate": { "$ref": "#/components/schemas/MessageExt" }, "pong": { "$ref": "#/components/schemas/Ping" }, "relations.onCreate": { "$ref": "#/components/schemas/RelationshipExt" }, "relations.onDelete": { "$ref": "#/components/schemas/ObjectWithId" }, "relations.onUpdate": { "$ref": "#/components/schemas/RelationshipExt" }, "roles.onCreate": { "$ref": "#/components/schemas/Role" }, "roles.onDelete": { "$ref": "#/components/schemas/Role" }, "roles.onUpdate": { "$ref": "#/components/schemas/Role" }, "spaces.onCreate": { "$ref": "#/components/schemas/SpaceExt" }, "spaces.onDelete": { "$ref": "#/components/schemas/SpaceExt" }, "spaces.onUpdate": { "$ref": "#/components/schemas/SpaceExt" }, "typing.onUpdate": { "$ref": "#/components/schemas/TypingUpdate" }, "users.onCreate": { "$ref": "#/components/schemas/UserExt" }, "users.onDelete": { "$ref": "#/components/schemas/ObjectWithId" }, "users.onUpdate": { "$ref": "#/components/schemas/UserExt" } } } }