TEAMYFY API v1
Модели данных
Схемы запросов и ответов
Типы извлечены из Kotlin DTO; здесь также находятся модели опубликованного клиентского контракта. Поле с default может отсутствовать в JSON. Отсутствие nullable-поля и явный null обрабатывайте по контракту операции. Числа, обозначенные как string, нельзя преобразовывать в JavaScript Number.
AccessTokenRefreshRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
refreshToken | string · null | Нет | |
clientName | string · null | Нет | Self-declared session display name, normalized and limited to 120 characters. Never used for authentication. |
clientPlatform | string · null | Нет | Self-declared client type WEB, ANDROID or DESKTOP. Missing or unrecognized values remain unknown; never an authorization claim. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"refreshToken": {
"type": "string",
"nullable": true
},
"clientName": {
"type": "string",
"nullable": true,
"description": "Self-declared session display name, normalized and limited to 120 characters. Never used for authentication."
},
"clientPlatform": {
"type": "string",
"nullable": true,
"description": "Self-declared client type WEB, ANDROID or DESKTOP. Missing or unrecognized values remain unknown; never an authorization claim."
}
}
}AccessTokenRefreshResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
accessToken | string · password | Да | Bearer JWT for native mode; exactly empty in cookie mode. |
tokenType | string: Bearer, Cookie | Да | |
expiresAtEpochMillis | integer · int64minimum=0 | Да | |
refreshToken | string · password · null | Нет | Rotating device-bound refresh proof in native mode only; omitted for HttpOnly cookie transport. |
refreshExpiresAtEpochMillis | integer · int64 · nullminimum=0 | Нет | Absolute session expiry; rotation never extends this bound. Omitted for cookie transport. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"accessToken",
"tokenType",
"expiresAtEpochMillis"
],
"properties": {
"accessToken": {
"type": "string",
"format": "password",
"description": "Bearer JWT for native mode; exactly empty in cookie mode.",
"x-sensitive": true
},
"tokenType": {
"type": "string",
"enum": [
"Bearer",
"Cookie"
]
},
"expiresAtEpochMillis": {
"type": "integer",
"format": "int64",
"minimum": 0
},
"refreshToken": {
"type": "string",
"nullable": true,
"format": "password",
"x-sensitive": true,
"description": "Rotating device-bound refresh proof in native mode only; omitted for HttpOnly cookie transport."
},
"refreshExpiresAtEpochMillis": {
"type": "integer",
"format": "int64",
"nullable": true,
"minimum": 0,
"description": "Absolute session expiry; rotation never extends this bound. Omitted for cookie transport."
}
}
}AccountChallengeResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
challengeId | string · uuid | Да | |
expiresAtEpochMillis | integer · int64minimum=0 | Да | |
resendAfterEpochMillis | integer · int64minimum=0 | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"challengeId",
"expiresAtEpochMillis",
"resendAfterEpochMillis"
],
"properties": {
"challengeId": {
"type": "string",
"format": "uuid"
},
"expiresAtEpochMillis": {
"type": "integer",
"format": "int64",
"minimum": 0
},
"resendAfterEpochMillis": {
"type": "integer",
"format": "int64",
"minimum": 0
}
}
}AccountCodeRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
challengeId | string · uuid | Да | |
code | stringpattern=^[0-9]{6}$ | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"challengeId",
"code"
],
"properties": {
"challengeId": {
"type": "string",
"format": "uuid"
},
"code": {
"type": "string",
"pattern": "^[0-9]{6}$",
"writeOnly": true,
"x-sensitive": true
}
}
}AccountSessionResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | string | Да | |
deviceId | string | Да | |
createdAtEpochMillis | integer · int64 | Да | |
lastSeenAtEpochMillis | integer · int64 | Да | |
expiresAtEpochMillis | integer · int64 | Да | |
current | boolean | Да | |
clientName | string · null | Нет | Self-declared session display name, normalized and limited to 120 characters. Never used for authentication. |
clientPlatform | string · null | Нет | Self-declared client type WEB, ANDROID or DESKTOP. Missing or unrecognized values remain unknown; never an authorization claim. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"deviceId",
"createdAtEpochMillis",
"lastSeenAtEpochMillis",
"expiresAtEpochMillis",
"current"
],
"properties": {
"id": {
"type": "string"
},
"deviceId": {
"type": "string"
},
"createdAtEpochMillis": {
"type": "integer",
"format": "int64"
},
"lastSeenAtEpochMillis": {
"type": "integer",
"format": "int64"
},
"expiresAtEpochMillis": {
"type": "integer",
"format": "int64"
},
"current": {
"type": "boolean"
},
"clientName": {
"type": "string",
"nullable": true,
"description": "Self-declared session display name, normalized and limited to 120 characters. Never used for authentication."
},
"clientPlatform": {
"type": "string",
"nullable": true,
"description": "Self-declared client type WEB, ANDROID or DESKTOP. Missing or unrecognized values remain unknown; never an authorization claim."
}
}
}AccountSessionsResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
sessions | array<AccountSessionResponse> | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"sessions"
],
"properties": {
"sessions": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AccountSessionResponse"
}
}
}
}AcquireMediaLeaseRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
contextType | MediaContextType | Да | |
sessionId | integer · int64 | Да | |
streamParticipationId | string · null | Нет | |
encryptionProtocolVersion | integer · int32 · null | Нет | Explicitly request 0 for VOICE, SPEAKER and STREAM channel audio/video without application E2EE. TLS/WebRTC protection and current access policy remain required. Missing/legacy values fail with MEDIA_TRANSPORT_ONLY_REQUIRED (426) before allocating credentials. An active legacy room must drain before mode 0 admission; do not negotiate a weaker mode as error recovery. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"contextType",
"sessionId"
],
"properties": {
"contextType": {
"$ref": "#/components/schemas/MediaContextType"
},
"sessionId": {
"type": "integer",
"format": "int64"
},
"streamParticipationId": {
"type": "string",
"nullable": true
},
"encryptionProtocolVersion": {
"type": "integer",
"format": "int32",
"nullable": true,
"description": "Explicitly request 0 for VOICE, SPEAKER and STREAM channel audio/video without application E2EE. TLS/WebRTC protection and current access policy remain required. Missing/legacy values fail with MEDIA_TRANSPORT_ONLY_REQUIRED (426) before allocating credentials. An active legacy room must drain before mode 0 admission; do not negotiate a weaker mode as error recovery."
}
}
}ApproveE2eeDeviceTransferRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
signedTransfer | string | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"signedTransfer"
],
"properties": {
"signedTransfer": {
"type": "string"
}
}
}ApproveSecureCooperativeAdmissionRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
signedApproval | string | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"signedApproval": {
"type": "string"
}
},
"required": [
"signedApproval"
]
}AuthResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
accessToken | string · password | Да | Bearer JWT for native mode; exactly empty in cookie mode. |
tokenType | string: Bearer, Cookie | Да | |
expiresAtEpochMillis | integer · int64minimum=0 | Да | |
user | AuthUserResponse | Да | |
refreshToken | string · password · null | Нет | Rotating device-bound refresh proof in native mode only; omitted for HttpOnly cookie transport. |
refreshExpiresAtEpochMillis | integer · int64 · nullminimum=0 | Нет | Absolute session expiry; rotation never extends this bound. Omitted for cookie transport. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"accessToken",
"tokenType",
"expiresAtEpochMillis",
"user"
],
"properties": {
"accessToken": {
"type": "string",
"format": "password",
"description": "Bearer JWT for native mode; exactly empty in cookie mode.",
"x-sensitive": true
},
"tokenType": {
"type": "string",
"enum": [
"Bearer",
"Cookie"
]
},
"expiresAtEpochMillis": {
"type": "integer",
"format": "int64",
"minimum": 0
},
"user": {
"$ref": "#/components/schemas/AuthUserResponse"
},
"refreshToken": {
"type": "string",
"nullable": true,
"format": "password",
"x-sensitive": true,
"description": "Rotating device-bound refresh proof in native mode only; omitted for HttpOnly cookie transport."
},
"refreshExpiresAtEpochMillis": {
"type": "integer",
"format": "int64",
"nullable": true,
"minimum": 0,
"description": "Absolute session expiry; rotation never extends this bound. Omitted for cookie transport."
}
}
}AuthUserResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64minimum=1 | Да | |
publicIdentifier | stringminLength=1 | Да | |
email | string · email | Да | |
username | stringminLength=1 | Да | |
displayName | stringminLength=1 | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"publicIdentifier",
"email",
"username",
"displayName"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"publicIdentifier": {
"type": "string",
"minLength": 1
},
"email": {
"type": "string",
"format": "email"
},
"username": {
"type": "string",
"minLength": 1
},
"displayName": {
"type": "string",
"minLength": 1
}
}
}AvatarUploadRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
file | string · binary | Да | Image payload, at most 5 MiB. |
JSON Schema
{
"type": "object",
"required": [
"file"
],
"properties": {
"file": {
"type": "string",
"format": "binary",
"description": "Image payload, at most 5 MiB."
}
}
}BotActionBindingView
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
bindingId | string | Да | |
bindingRevision | integer · int64 | Да | |
actionId | string | Да | |
componentType | integer · int32 | Да | |
source | BotActionSource | Да | |
expiresAt | string · null | Нет |
JSON Schema
{
"type": "object",
"properties": {
"bindingId": {
"type": "string"
},
"bindingRevision": {
"type": "integer",
"format": "int64"
},
"actionId": {
"type": "string"
},
"componentType": {
"type": "integer",
"format": "int32"
},
"source": {
"$ref": "#/components/schemas/BotActionSource"
},
"expiresAt": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotInteractionActions.kt",
"line": 21
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"bindingId",
"bindingRevision",
"actionId",
"componentType",
"source"
]
}BotActionDefinition
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
actionId | string | Да | |
componentType | integer · int32 | Да |
JSON Schema
{
"type": "object",
"properties": {
"actionId": {
"type": "string"
},
"componentType": {
"type": "integer",
"format": "int32"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotInteractionActions.kt",
"line": 10
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"actionId",
"componentType"
]
}BotActionSource
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
kind | string | Да | |
id | string | Да | |
revision | integer · int32 | Да | |
encryptedEnvelopeSha256 | string · null | Нет | |
interactionId | string · null | Нет | |
contentSha256 | string · null | Нет |
JSON Schema
{
"type": "object",
"properties": {
"kind": {
"type": "string"
},
"id": {
"type": "string"
},
"revision": {
"type": "integer",
"format": "int32"
},
"encryptedEnvelopeSha256": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"interactionId": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"contentSha256": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotInteractionActions.kt",
"line": 11
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"kind",
"id",
"revision"
]
}BotApplicationResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | string | Да | |
botUserId | string | Да | |
name | string | Да | |
scopes | array<string> | Да | |
createdAt | string | Да | |
enabled | boolean | Да | |
visibility | string | Нет | Default: "PRIVATE" |
revision | integer · int64 | Нет | Default: 1 |
JSON Schema
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"botUserId": {
"type": "string"
},
"name": {
"type": "string"
},
"scopes": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"createdAt": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"visibility": {
"type": "string",
"default": "PRIVATE",
"x-kotlin-default": "\"PRIVATE\""
},
"revision": {
"type": "integer",
"format": "int64",
"default": 1,
"x-kotlin-default": "1"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotModels.kt",
"line": 50
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"id",
"botUserId",
"name",
"scopes",
"createdAt",
"enabled"
]
}BotBanPage
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
items | array<BotModerationMember> | Да | |
nextAfterUserId | string · null | Нет |
JSON Schema
{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BotModerationMember"
}
},
"nextAfterUserId": {
"type": "string",
"nullable": true
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotModerationService.kt",
"line": 18
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"items"
]
}BotBulkDeleteRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
messageIds | array<string> | Да |
JSON Schema
{
"type": "object",
"properties": {
"messageIds": {
"type": "array",
"items": {
"type": "string"
}
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotMessageService.kt",
"line": 17
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"messageIds"
]
}BotCapabilitiesResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
apiVersion | string | Да | |
implemented | array<string> | Да |
JSON Schema
{
"type": "object",
"properties": {
"apiVersion": {
"type": "string"
},
"implemented": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotModels.kt",
"line": 65
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"apiVersion",
"implemented"
]
}BotChannelCommandApplication
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
applicationId | string | Да | |
installationId | string | Да | |
botUserId | string | Да | |
botName | string | Да | |
commands | array<BotCommandDefinitionResponse> | Да |
JSON Schema
{
"type": "object",
"properties": {
"applicationId": {
"type": "string"
},
"installationId": {
"type": "string"
},
"botUserId": {
"type": "string"
},
"botName": {
"type": "string"
},
"commands": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BotCommandDefinitionResponse"
}
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotInteractionService.kt",
"line": 17
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"applicationId",
"installationId",
"botUserId",
"botName",
"commands"
]
}BotChannelCommandPage
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
applications | array<BotChannelCommandApplication> | Да | |
nextAfter | string · null | Нет | |
hasMore | boolean | Да |
JSON Schema
{
"type": "object",
"properties": {
"applications": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BotChannelCommandApplication"
}
},
"nextAfter": {
"type": "string",
"nullable": true
},
"hasMore": {
"type": "boolean"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotInteractionService.kt",
"line": 19
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"applications",
"hasMore"
]
}BotChannelEnrollmentResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
channelId | string | Да | |
channelName | string | Да | |
secureEnrollment | string | Да | |
historyMode | string | Нет | Default: "FROM_JOIN_EPOCH" |
joinedEpoch | integer · int64 · null | Нет | |
admittedAt | string · null | Нет | |
contentProtocol | string · null | Нет |
JSON Schema
{
"type": "object",
"properties": {
"channelId": {
"type": "string"
},
"channelName": {
"type": "string"
},
"secureEnrollment": {
"type": "string"
},
"historyMode": {
"type": "string",
"default": "FROM_JOIN_EPOCH",
"x-kotlin-default": "\"FROM_JOIN_EPOCH\""
},
"joinedEpoch": {
"type": "integer",
"format": "int64",
"nullable": true,
"x-kotlin-default": "null"
},
"admittedAt": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"contentProtocol": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotInstallationInspection.kt",
"line": 16
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"channelId",
"channelName",
"secureEnrollment"
]
}BotCommandChoice
| Поле | Тип | Без default | Описание |
|---|---|---|---|
name | stringminLength=1; maxLength=100 | Да | |
value | stringminLength=1; maxLength=100 / number | Да | Matches option type: string for 3, integral number for 4, finite number for 10. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"name",
"value"
],
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"value": {
"oneOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 100
},
{
"type": "number"
}
],
"description": "Matches option type: string for 3, integral number for 4, finite number for 10."
}
}
}BotCommandDefinition
Public command metadata. At most 100 distinct (type,name) definitions, encoded collection <=131072 bytes. Type 1 chat input needs a lowercase Unicode name and description; types 2/3 user/message context commands require empty description and options. Required options precede optional options. Metadata contains no private invocation arguments.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
name | stringminLength=1; maxLength=32 | Да | |
description | stringmaxLength=100 | Да | |
type | integer: 1, 2, 3 | Нет | Default: 1 |
options | array<BotCommandOption> | Нет | Default: [] |
defaultMemberPermissions | string · nullpattern=^(0|[1-9][0-9]{0,19})$ | Нет |
JSON Schema
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"description": {
"type": "string",
"maxLength": 100
},
"type": {
"type": "integer",
"enum": [
1,
2,
3
],
"default": 1
},
"options": {
"type": "array",
"maxItems": 25,
"items": {
"$ref": "#/components/schemas/BotCommandOption"
},
"default": []
},
"defaultMemberPermissions": {
"type": "string",
"nullable": true,
"pattern": "^(0|[1-9][0-9]{0,19})$"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotCommandCatalog.kt",
"line": 10
},
"description": "Public command metadata. At most 100 distinct (type,name) definitions, encoded collection <=131072 bytes. Type 1 chat input needs a lowercase Unicode name and description; types 2/3 user/message context commands require empty description and options. Required options precede optional options. Metadata contains no private invocation arguments.",
"required": [
"name",
"description"
]
}BotCommandDefinitionResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | string | Да | |
compatId | string | Да | |
applicationId | string | Да | |
installationId | string · null | Нет | |
revision | integer · int64 | Да | |
definition | BotCommandDefinition | Да |
JSON Schema
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"compatId": {
"type": "string"
},
"applicationId": {
"type": "string"
},
"installationId": {
"type": "string",
"nullable": true
},
"revision": {
"type": "integer",
"format": "int64"
},
"definition": {
"$ref": "#/components/schemas/BotCommandDefinition"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotCommandCatalog.kt",
"line": 12
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"id",
"compatId",
"applicationId",
"revision",
"definition"
]
}BotCommandOption
Source validator: BotCommandCatalog.kt validateOptions. Types: 1 = subcommand, 2 = subcommand group, 3 = string, 4 = integer, 5 = boolean, 6 = user, 7 = channel, 8 = role, 9 = mentionable, 10 = number, 11 = attachment. Depth <= 2; group only at depth 0 and contains subcommands. Subcommands/groups cannot mix with scalar options. choices/autocomplete only types 3/4/10, mutually exclusive. channel_types only type 7; numeric bounds only 4/10; length bounds only 3. These cross-field rules are checked by the server.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
type | integerminimum=1; maximum=11 | Да | |
name | stringminLength=1; maxLength=32 | Да | |
description | stringminLength=1; maxLength=100 | Да | |
required | boolean | Нет | Default: false |
options | array<BotCommandOption> | Нет | |
choices | array<BotCommandChoice> | Нет | |
autocomplete | boolean | Нет | Default: false |
channel_types | array<integer: 0, 2> | Нет | |
min_value | number | Нет | |
max_value | number | Нет | |
min_length | integerminimum=0; maximum=6000 | Нет | |
max_length | integerminimum=0; maximum=6000 | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"type",
"name",
"description"
],
"description": "Source validator: BotCommandCatalog.kt validateOptions. Types: 1 = subcommand, 2 = subcommand group, 3 = string, 4 = integer, 5 = boolean, 6 = user, 7 = channel, 8 = role, 9 = mentionable, 10 = number, 11 = attachment. Depth <= 2; group only at depth 0 and contains subcommands. Subcommands/groups cannot mix with scalar options. choices/autocomplete only types 3/4/10, mutually exclusive. channel_types only type 7; numeric bounds only 4/10; length bounds only 3. These cross-field rules are checked by the server.",
"properties": {
"type": {
"type": "integer",
"minimum": 1,
"maximum": 11
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"description": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"required": {
"type": "boolean",
"default": false
},
"options": {
"type": "array",
"maxItems": 25,
"items": {
"$ref": "#/components/schemas/BotCommandOption"
}
},
"choices": {
"type": "array",
"maxItems": 25,
"items": {
"$ref": "#/components/schemas/BotCommandChoice"
}
},
"autocomplete": {
"type": "boolean",
"default": false
},
"channel_types": {
"type": "array",
"maxItems": 10,
"items": {
"type": "integer",
"enum": [
0,
2
]
}
},
"min_value": {
"type": "number"
},
"max_value": {
"type": "number"
},
"min_length": {
"type": "integer",
"minimum": 0,
"maximum": 6000
},
"max_length": {
"type": "integer",
"minimum": 0,
"maximum": 6000
}
}
}BotCompatIdResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
kind | string | Да | |
nativeId | string | Да | |
compatId | string | Да | |
createdAt | string | Да |
JSON Schema
{
"type": "object",
"properties": {
"kind": {
"type": "string"
},
"nativeId": {
"type": "string"
},
"compatId": {
"type": "string"
},
"createdAt": {
"type": "string"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotEventModels.kt",
"line": 21
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"kind",
"nativeId",
"compatId",
"createdAt"
]
}BotCompatSelfResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
user | BotCompatIdResponse | Да | |
application | BotCompatIdResponse | Да | |
owner | BotPublicUser | Да |
JSON Schema
{
"type": "object",
"properties": {
"user": {
"$ref": "#/components/schemas/BotCompatIdResponse"
},
"application": {
"$ref": "#/components/schemas/BotCompatIdResponse"
},
"owner": {
"$ref": "#/components/schemas/BotPublicUser"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotMetadataService.kt",
"line": 23
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"user",
"application",
"owner"
]
}BotCredentialResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | string | Да | |
scopes | array<string> | Да | |
createdAt | string | Да | |
expiresAt | string | Да | |
revoked | boolean | Да | |
neverExpires | boolean | Нет | Default: false |
JSON Schema
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"scopes": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"createdAt": {
"type": "string"
},
"expiresAt": {
"type": "string"
},
"revoked": {
"type": "boolean"
},
"neverExpires": {
"type": "boolean",
"default": false,
"x-kotlin-default": "false"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotModels.kt",
"line": 53
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"id",
"scopes",
"createdAt",
"expiresAt",
"revoked"
]
}BotDirectConsentResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
applicationId | string | Да | |
botUserId | string | Да | |
conversationId | string · null | Нет | |
compatConversationId | string · null | Нет | |
enabled | boolean | Да | |
blocked | boolean | Да | |
revision | integer · int64 | Да | |
scopes | array<string> | Да | |
consentGeneration | string · null | Нет | |
requiredEpoch | integer · int64 · null | Нет | |
historyMode | string | Нет | Default: "FROM_JOIN_EPOCH" |
secureEnrollment | string | Нет | Default: "pending_keys" |
botName | string | Нет | Default: "" |
availableScopes | array<string> | Нет | Default: [] |
contentProtocol | string · null | Нет |
JSON Schema
{
"type": "object",
"properties": {
"applicationId": {
"type": "string"
},
"botUserId": {
"type": "string"
},
"conversationId": {
"type": "string",
"nullable": true
},
"compatConversationId": {
"type": "string",
"nullable": true
},
"enabled": {
"type": "boolean"
},
"blocked": {
"type": "boolean"
},
"revision": {
"type": "integer",
"format": "int64"
},
"scopes": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"consentGeneration": {
"type": "string",
"nullable": true
},
"requiredEpoch": {
"type": "integer",
"format": "int64",
"nullable": true
},
"historyMode": {
"type": "string",
"default": "FROM_JOIN_EPOCH",
"x-kotlin-default": "\"FROM_JOIN_EPOCH\""
},
"secureEnrollment": {
"type": "string",
"default": "pending_keys",
"x-kotlin-default": "\"pending_keys\""
},
"botName": {
"type": "string",
"default": "",
"x-kotlin-default": "\"\""
},
"availableScopes": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true,
"default": [],
"x-kotlin-default": "emptySet()"
},
"contentProtocol": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotDirectModels.kt",
"line": 16
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"applicationId",
"botUserId",
"enabled",
"blocked",
"revision",
"scopes"
]
}BotDirectConversationPage
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
conversations | array<BotDirectConversationResponse> | Да | |
nextAfter | string · null | Нет | |
hasMore | boolean | Да |
JSON Schema
{
"type": "object",
"properties": {
"conversations": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BotDirectConversationResponse"
}
},
"nextAfter": {
"type": "string",
"nullable": true
},
"hasMore": {
"type": "boolean"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotDirectModels.kt",
"line": 24
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"conversations",
"hasMore"
]
}BotDirectConversationResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
conversationId | string | Да | |
compatId | string | Да | |
human | BotPublicUser | Да | |
consentGeneration | string | Да | |
revision | integer · int64 | Да | |
scopes | array<string> | Да | |
requiredEpoch | integer · int64 · null | Нет | |
closed | boolean | Да | |
historyMode | string | Нет | Default: "FROM_JOIN_EPOCH" |
contentProtocol | string · null | Нет |
JSON Schema
{
"type": "object",
"properties": {
"conversationId": {
"type": "string"
},
"compatId": {
"type": "string"
},
"human": {
"$ref": "#/components/schemas/BotPublicUser"
},
"consentGeneration": {
"type": "string"
},
"revision": {
"type": "integer",
"format": "int64"
},
"scopes": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"requiredEpoch": {
"type": "integer",
"format": "int64",
"nullable": true
},
"closed": {
"type": "boolean"
},
"historyMode": {
"type": "string",
"default": "FROM_JOIN_EPOCH",
"x-kotlin-default": "\"FROM_JOIN_EPOCH\""
},
"contentProtocol": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotDirectModels.kt",
"line": 21
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"conversationId",
"compatId",
"human",
"consentGeneration",
"revision",
"scopes",
"closed"
]
}BotEventBatchPage
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
installationId | string | Да | |
channelId | string | Да | |
page | BotEventPageResponse | Да |
JSON Schema
{
"type": "object",
"properties": {
"installationId": {
"type": "string"
},
"channelId": {
"type": "string"
},
"page": {
"$ref": "#/components/schemas/BotEventPageResponse"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotMetadataDeltaModels.kt",
"line": 31
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"installationId",
"channelId",
"page"
]
}BotEventBatchRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
channels | array<BotEventBatchScope> | Да | |
limitPerChannel | integer · int32 | Нет | Default: 20 |
JSON Schema
{
"type": "object",
"properties": {
"channels": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BotEventBatchScope"
}
},
"limitPerChannel": {
"type": "integer",
"format": "int32",
"default": 20,
"x-kotlin-default": "20"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotMetadataDeltaModels.kt",
"line": 30
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"channels"
]
}BotEventBatchResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
channels | array<BotEventBatchPage> | Да | |
deferred | array<BotEventBatchScope> | Да |
JSON Schema
{
"type": "object",
"properties": {
"channels": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BotEventBatchPage"
}
},
"deferred": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BotEventBatchScope"
}
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotMetadataDeltaModels.kt",
"line": 32
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"channels",
"deferred"
]
}BotEventBatchScope
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
installationId | string | Да | |
channelId | string | Да | |
after | string | Да |
JSON Schema
{
"type": "object",
"properties": {
"installationId": {
"type": "string"
},
"channelId": {
"type": "string"
},
"after": {
"type": "string"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotMetadataDeltaModels.kt",
"line": 29
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"installationId",
"channelId",
"after"
]
}BotEventPageResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
events | array<BotMessageEventResponse> | Да | |
nextCursor | string | Да | |
highWatermark | string | Да | |
hasMore | boolean | Да |
JSON Schema
{
"type": "object",
"properties": {
"events": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BotMessageEventResponse"
}
},
"nextCursor": {
"type": "string"
},
"highWatermark": {
"type": "string"
},
"hasMore": {
"type": "boolean"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotEventModels.kt",
"line": 32
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"events",
"nextCursor",
"highWatermark",
"hasMore"
]
}BotGatewayWaitRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
version | integer · int32 | Нет | Default: 1 |
after | string · null | Нет | |
waitMillis | integer · int64 | Нет | Default: 10000 |
JSON Schema
{
"type": "object",
"properties": {
"version": {
"type": "integer",
"format": "int32",
"default": 1,
"x-kotlin-default": "1"
},
"after": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"waitMillis": {
"type": "integer",
"format": "int64",
"default": 10000,
"x-kotlin-default": "10_000"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotGatewayWait.kt",
"line": 19
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer."
}BotGatewayWaitResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
version | integer · int32 | Нет | Default: 1 |
stamp | string | Да |
JSON Schema
{
"type": "object",
"properties": {
"version": {
"type": "integer",
"format": "int32",
"default": 1,
"x-kotlin-default": "1"
},
"stamp": {
"type": "string"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotGatewayWait.kt",
"line": 20
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"stamp"
]
}BotHistoryEpoch
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
epoch | integer · int64 | Да | |
keyAvailable | boolean | Да |
JSON Schema
{
"type": "object",
"properties": {
"epoch": {
"type": "integer",
"format": "int64"
},
"keyAvailable": {
"type": "boolean"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotHistoryModels.kt",
"line": 21
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"epoch",
"keyAvailable"
]
}BotHistoryEpochPage
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
grantId | string | Да | |
revision | integer · int64 | Да | |
conversationId | string | Да | |
historyGeneration | string | Да | |
epochs | array<BotHistoryEpoch> | Да | |
nextAfterEpoch | integer · int64 | Да | |
hasMore | boolean | Да |
JSON Schema
{
"type": "object",
"properties": {
"grantId": {
"type": "string"
},
"revision": {
"type": "integer",
"format": "int64"
},
"conversationId": {
"type": "string"
},
"historyGeneration": {
"type": "string"
},
"epochs": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BotHistoryEpoch"
}
},
"nextAfterEpoch": {
"type": "integer",
"format": "int64"
},
"hasMore": {
"type": "boolean"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotHistoryModels.kt",
"line": 22
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"grantId",
"revision",
"conversationId",
"historyGeneration",
"epochs",
"nextAfterEpoch",
"hasMore"
]
}BotHistoryStatusResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
installationId | string | Да | |
channelId | string | Да | |
installationRevision | integer · int64 | Да | |
revision | integer · int64 | Да | |
enabled | boolean | Да | |
effective | boolean | Да | |
state | string | Да | |
historyMode | string | Нет | Default: "FROM_JOIN_EPOCH" |
grantId | string · null | Нет | |
conversationId | string · null | Нет | |
historyGeneration | string · null | Нет | |
availableEpochCount | integer · int64 | Нет | Default: 0 |
contentProtocol | string · null | Нет |
JSON Schema
{
"type": "object",
"properties": {
"installationId": {
"type": "string"
},
"channelId": {
"type": "string"
},
"installationRevision": {
"type": "integer",
"format": "int64"
},
"revision": {
"type": "integer",
"format": "int64"
},
"enabled": {
"type": "boolean"
},
"effective": {
"type": "boolean"
},
"state": {
"type": "string"
},
"historyMode": {
"type": "string",
"default": "FROM_JOIN_EPOCH",
"x-kotlin-default": "\"FROM_JOIN_EPOCH\""
},
"grantId": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"conversationId": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"historyGeneration": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"availableEpochCount": {
"type": "integer",
"format": "int64",
"default": 0,
"x-kotlin-default": "0"
},
"contentProtocol": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotHistoryModels.kt",
"line": 16
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"installationId",
"channelId",
"installationRevision",
"revision",
"enabled",
"effective",
"state"
]
}BotIdentityResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
applicationId | string | Да | |
botUserId | string | Да | |
name | string | Да | |
scopes | array<string> | Да | |
publicIdentifier | string · null | Нет | |
displayName | string · null | Нет |
JSON Schema
{
"type": "object",
"properties": {
"applicationId": {
"type": "string"
},
"botUserId": {
"type": "string"
},
"name": {
"type": "string"
},
"scopes": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"publicIdentifier": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"displayName": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotModels.kt",
"line": 63
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"applicationId",
"botUserId",
"name",
"scopes"
]
}BotInstallableApplicationResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | string | Да | |
botUserId | string | Да | |
name | string | Да | |
avatarUrl | string · null | Нет | |
scopes | array<string> | Да | |
visibility | string | Да |
JSON Schema
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"botUserId": {
"type": "string"
},
"name": {
"type": "string"
},
"avatarUrl": {
"type": "string",
"nullable": true
},
"scopes": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"visibility": {
"type": "string"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotApplicationDiscovery.kt",
"line": 11
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"id",
"botUserId",
"name",
"scopes",
"visibility"
]
}BotInstallationAuditEvent
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | string | Да | |
actorUserId | string | Да | |
action | string | Да | |
createdAt | string | Да |
JSON Schema
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"actorUserId": {
"type": "string"
},
"action": {
"type": "string"
},
"createdAt": {
"type": "string"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotInstallationInspection.kt",
"line": 22
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"id",
"actorUserId",
"action",
"createdAt"
]
}BotInstallationAuditPage
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
events | array<BotInstallationAuditEvent> | Да | |
nextBefore | string · null | Нет | |
hasMore | boolean | Да |
JSON Schema
{
"type": "object",
"properties": {
"events": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BotInstallationAuditEvent"
}
},
"nextBefore": {
"type": "string",
"nullable": true
},
"hasMore": {
"type": "boolean"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotInstallationInspection.kt",
"line": 23
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"events",
"hasMore"
]
}BotInstallationKeyResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | string | Да | |
applicationId | string | Да | |
createdAt | string | Да | |
revokedAt | string · null | Нет |
JSON Schema
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"applicationId": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"revokedAt": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotApplicationDiscovery.kt",
"line": 16
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"id",
"applicationId",
"createdAt"
]
}BotInstallationResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | string | Да | |
applicationId | string | Да | |
communityId | string | Да | |
scopes | array<string> | Да | |
channelIds | array<string> | Да | |
revision | integer · int64 | Да | |
revoked | boolean | Да | |
secureEnrollment | string | Нет | Default: "required" |
allowedRoleIds | array<string> | Нет | Default: [] |
botName | string · null | Нет | |
avatarUrl | string · null | Нет | |
contentProtocol | string · null | Нет |
JSON Schema
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"applicationId": {
"type": "string"
},
"communityId": {
"type": "string"
},
"scopes": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"channelIds": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"revision": {
"type": "integer",
"format": "int64"
},
"revoked": {
"type": "boolean"
},
"secureEnrollment": {
"type": "string",
"default": "required",
"x-kotlin-default": "\"required\""
},
"allowedRoleIds": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true,
"default": [],
"x-kotlin-default": "emptySet()"
},
"botName": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"avatarUrl": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"contentProtocol": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotModels.kt",
"line": 58
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"id",
"applicationId",
"communityId",
"scopes",
"channelIds",
"revision",
"revoked"
]
}BotInstallationStatusResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
installationId | string | Да | |
applicationId | string | Да | |
botUserId | string | Да | |
botName | string | Да | |
revision | integer · int64 | Да | |
revoked | boolean | Да | |
channels | array<BotChannelEnrollmentResponse> | Да |
JSON Schema
{
"type": "object",
"properties": {
"installationId": {
"type": "string"
},
"applicationId": {
"type": "string"
},
"botUserId": {
"type": "string"
},
"botName": {
"type": "string"
},
"revision": {
"type": "integer",
"format": "int64"
},
"revoked": {
"type": "boolean"
},
"channels": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BotChannelEnrollmentResponse"
}
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotInstallationInspection.kt",
"line": 19
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"installationId",
"applicationId",
"botUserId",
"botName",
"revision",
"revoked",
"channels"
]
}BotInteractionAttachmentMetadata
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
uploadId | string | Да | |
nativeId | string | Да | |
compatId | string | Да | |
ciphertextBytes | integer · int64 · null | Нет | |
expiresAt | string | Да | |
contentProtocol | string | Нет | Default: "MLS_1" |
sizeBytes | integer · int64 · null | Нет | |
managedDescriptor | object · null | Нет | Explicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules. |
JSON Schema
{
"type": "object",
"properties": {
"uploadId": {
"type": "string"
},
"nativeId": {
"type": "string"
},
"compatId": {
"type": "string"
},
"ciphertextBytes": {
"type": "integer",
"format": "int64",
"nullable": true
},
"expiresAt": {
"type": "string"
},
"contentProtocol": {
"type": "string",
"default": "MLS_1",
"x-kotlin-default": "\"MLS_1\""
},
"sizeBytes": {
"type": "integer",
"format": "int64",
"nullable": true,
"x-kotlin-default": "null"
},
"managedDescriptor": {
"type": "object",
"additionalProperties": true,
"description": "Explicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules.",
"nullable": true,
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotInteractionAttachmentModels.kt",
"line": 11
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"uploadId",
"nativeId",
"compatId",
"expiresAt"
]
}BotInteractionChannel
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | string | Да | |
compatId | string | Да | |
communityId | string · null | Нет | |
compatCommunityId | string · null | Нет | |
name | string | Да | |
type | string | Да |
JSON Schema
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"compatId": {
"type": "string"
},
"communityId": {
"type": "string",
"nullable": true
},
"compatCommunityId": {
"type": "string",
"nullable": true
},
"name": {
"type": "string"
},
"type": {
"type": "string"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotInteractionContext.kt",
"line": 10
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"id",
"compatId",
"name",
"type"
]
}BotInteractionContextResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
command | BotCommandDefinitionResponse / null | Нет | |
actor | BotPublicMember / null | Нет | |
channel | BotInteractionChannel | Да | |
actorPermissions | string | Да | |
source | BotInteractionSource / null | Нет | |
directUser | BotPublicUser / null | Нет | |
snapshot | BotInteractionContextSnapshot / null | Нет |
JSON Schema
{
"type": "object",
"properties": {
"command": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/BotCommandDefinitionResponse"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"actor": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/BotPublicMember"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"channel": {
"$ref": "#/components/schemas/BotInteractionChannel"
},
"actorPermissions": {
"type": "string"
},
"source": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/BotInteractionSource"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
],
"x-kotlin-default": "null"
},
"directUser": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/BotPublicUser"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
],
"x-kotlin-default": "null"
},
"snapshot": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/BotInteractionContextSnapshot"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
],
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotInteractionContext.kt",
"line": 12
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"channel",
"actorPermissions"
]
}BotInteractionContextSnapshot
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
interaction | BotInteractionView | Да | |
target | BotSourceInteractionTarget / null | Нет | |
message | BotMessageEventResponse / null | Нет |
JSON Schema
{
"type": "object",
"properties": {
"interaction": {
"$ref": "#/components/schemas/BotInteractionView"
},
"target": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/BotSourceInteractionTarget"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
],
"x-kotlin-default": "null"
},
"message": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/BotMessageEventResponse"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
],
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotInteractionContext.kt",
"line": 18
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"interaction"
]
}BotInteractionPage
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
interactions | array<BotInteractionView> | Да | |
nextAfter | string · null | Нет | |
hasMore | boolean | Да |
JSON Schema
{
"type": "object",
"properties": {
"interactions": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BotInteractionView"
}
},
"nextAfter": {
"type": "string",
"nullable": true
},
"hasMore": {
"type": "boolean"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotInteractionModels.kt",
"line": 34
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"interactions",
"hasMore"
]
}BotInteractionReply
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
sequence | integer · int32 | Да | |
requestId | string | Да | |
type | integer · int32 | Да | |
encryptedEnvelope | string · null | Нет | |
createdAt | string | Да | |
id | string · null | Нет | |
compatId | string · null | Нет | |
visibility | string | Нет | Default: "private" |
publicMessageId | string · null | Нет | |
publicCompatMessageId | string · null | Нет | |
publicMessageRevision | integer · int32 · null | Нет | |
publicApplicationHash | string · null | Нет | |
revision | integer · int32 | Нет | Default: 0 |
contentRequestId | string · null | Нет | |
updatedAt | string · null | Нет | |
deleted | boolean | Нет | Default: false |
originalType | integer · int32 · null | Нет | |
originalEnvelopeSha256 | string · null | Нет | |
sourceUpdate | BotInteractionSourceUpdate / null | Нет | |
sourceDeletion | BotInteractionSourceDeletion / null | Нет | |
managedBody | object · null | Нет | Explicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules. |
contentProtocol | string | Нет | Default: "MLS_1" |
originalContentSha256 | string · null | Нет | |
contentSha256 | string · null | Нет |
JSON Schema
{
"type": "object",
"properties": {
"sequence": {
"type": "integer",
"format": "int32"
},
"requestId": {
"type": "string"
},
"type": {
"type": "integer",
"format": "int32"
},
"encryptedEnvelope": {
"type": "string",
"nullable": true
},
"createdAt": {
"type": "string"
},
"id": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"compatId": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"visibility": {
"type": "string",
"default": "private",
"x-kotlin-default": "\"private\""
},
"publicMessageId": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"publicCompatMessageId": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"publicMessageRevision": {
"type": "integer",
"format": "int32",
"nullable": true,
"x-kotlin-default": "null"
},
"publicApplicationHash": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"revision": {
"type": "integer",
"format": "int32",
"default": 0,
"x-kotlin-default": "0"
},
"contentRequestId": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"updatedAt": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"deleted": {
"type": "boolean",
"default": false,
"x-kotlin-default": "false"
},
"originalType": {
"type": "integer",
"format": "int32",
"nullable": true,
"x-kotlin-default": "null"
},
"originalEnvelopeSha256": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"sourceUpdate": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/BotInteractionSourceUpdate"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
],
"x-kotlin-default": "null"
},
"sourceDeletion": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/BotInteractionSourceDeletion"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
],
"x-kotlin-default": "null"
},
"managedBody": {
"type": "object",
"additionalProperties": true,
"description": "Explicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules.",
"nullable": true,
"x-kotlin-default": "null"
},
"contentProtocol": {
"type": "string",
"default": "MLS_1",
"x-kotlin-default": "\"MLS_1\""
},
"originalContentSha256": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"contentSha256": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotInteractionModels.kt",
"line": 25
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"sequence",
"requestId",
"type",
"createdAt"
]
}BotInteractionSource
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
bindingId | string | Да | |
bindingRevision | integer · int64 | Да | |
actionId | string | Да | |
componentType | integer · int32 | Да | |
source | BotActionSource | Да | |
actorDeviceId | string | Да |
JSON Schema
{
"type": "object",
"properties": {
"bindingId": {
"type": "string"
},
"bindingRevision": {
"type": "integer",
"format": "int64"
},
"actionId": {
"type": "string"
},
"componentType": {
"type": "integer",
"format": "int32"
},
"source": {
"$ref": "#/components/schemas/BotActionSource"
},
"actorDeviceId": {
"type": "string"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotInteractionActions.kt",
"line": 19
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"bindingId",
"bindingRevision",
"actionId",
"componentType",
"source",
"actorDeviceId"
]
}BotInteractionSourceDeletion
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
source | BotActionSource | Да | |
compatId | string | Да | |
requestSha256 | string | Да |
JSON Schema
{
"type": "object",
"properties": {
"source": {
"$ref": "#/components/schemas/BotActionSource"
},
"compatId": {
"type": "string"
},
"requestSha256": {
"type": "string"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotSourceDeletion.kt",
"line": 12
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"source",
"compatId",
"requestSha256"
]
}BotInteractionSourceUpdate
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
original | BotActionSource | Да | |
current | BotActionSource | Да | |
compatId | string | Да | |
requestSha256 | string | Да |
JSON Schema
{
"type": "object",
"properties": {
"original": {
"$ref": "#/components/schemas/BotActionSource"
},
"current": {
"$ref": "#/components/schemas/BotActionSource"
},
"compatId": {
"type": "string"
},
"requestSha256": {
"type": "string"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotSourceInteractions.kt",
"line": 18
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"original",
"current",
"compatId",
"requestSha256"
]
}BotInteractionView
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | string | Да | |
compatId | string | Да | |
applicationId | string | Да | |
installationId | string · null | Нет | |
channelId | string | Да | |
actorId | string | Да | |
botUserId | string | Да | |
commandId | string · null | Нет | |
commandRevision | integer · int64 | Да | |
kind | integer · int32 | Да | |
state | string | Да | |
clientMessageId | string | Да | |
expiresAt | string | Да | |
acknowledgementDeadline | string · null | Нет | |
audience | E2eeAudienceResponse / null | Нет | |
encryptedEnvelope | string · null | Нет | |
responses | array<BotInteractionReply> | Да | |
source | BotInteractionSource / null | Нет | |
scopeType | ChatScopeType | Нет | |
consentGeneration | string · null | Нет | |
managedBody | object · null | Нет | Explicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules. |
contentProtocol | string | Нет | Default: "MLS_1" |
historyGeneration | string · null | Нет |
JSON Schema
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"compatId": {
"type": "string"
},
"applicationId": {
"type": "string"
},
"installationId": {
"type": "string",
"nullable": true
},
"channelId": {
"type": "string"
},
"actorId": {
"type": "string"
},
"botUserId": {
"type": "string"
},
"commandId": {
"type": "string",
"nullable": true
},
"commandRevision": {
"type": "integer",
"format": "int64"
},
"kind": {
"type": "integer",
"format": "int32"
},
"state": {
"type": "string"
},
"clientMessageId": {
"type": "string"
},
"expiresAt": {
"type": "string"
},
"acknowledgementDeadline": {
"type": "string",
"nullable": true
},
"audience": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/E2eeAudienceResponse"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"encryptedEnvelope": {
"type": "string",
"nullable": true
},
"responses": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BotInteractionReply"
}
},
"source": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/BotInteractionSource"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
],
"x-kotlin-default": "null"
},
"scopeType": {
"allOf": [
{
"$ref": "#/components/schemas/ChatScopeType"
}
],
"x-kotlin-default": "ChatScopeType.CHANNEL"
},
"consentGeneration": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"managedBody": {
"type": "object",
"additionalProperties": true,
"description": "Explicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules.",
"nullable": true,
"x-kotlin-default": "null"
},
"contentProtocol": {
"type": "string",
"default": "MLS_1",
"x-kotlin-default": "\"MLS_1\""
},
"historyGeneration": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotInteractionModels.kt",
"line": 17
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"id",
"compatId",
"applicationId",
"channelId",
"actorId",
"botUserId",
"commandRevision",
"kind",
"state",
"clientMessageId",
"expiresAt",
"responses"
]
}BotManagedAdmissionResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
scopeType | ChatScopeType | Да | |
scopeId | string | Да | |
conversationId | string | Да | |
historyGeneration | string | Да | |
afterMessageId | integer · int64 | Да | |
afterThreadMessageId | integer · int64 | Да | |
admittedAt | string | Да | |
contentProtocol | string | Нет | Default: "SERVER_MANAGED_1" |
JSON Schema
{
"type": "object",
"properties": {
"scopeType": {
"$ref": "#/components/schemas/ChatScopeType"
},
"scopeId": {
"type": "string"
},
"conversationId": {
"type": "string"
},
"historyGeneration": {
"type": "string"
},
"afterMessageId": {
"type": "integer",
"format": "int64"
},
"afterThreadMessageId": {
"type": "integer",
"format": "int64"
},
"admittedAt": {
"type": "string"
},
"contentProtocol": {
"type": "string",
"default": "SERVER_MANAGED_1",
"x-kotlin-default": "\"SERVER_MANAGED_1\""
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotManagedContentModels.kt",
"line": 12
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"scopeType",
"scopeId",
"conversationId",
"historyGeneration",
"afterMessageId",
"afterThreadMessageId",
"admittedAt"
]
}BotManagedDeviceResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
deviceId | string | Да | |
historyGeneration | string | Да | |
contentProtocol | string | Нет | Default: "SERVER_MANAGED_1" |
JSON Schema
{
"type": "object",
"properties": {
"deviceId": {
"type": "string"
},
"historyGeneration": {
"type": "string"
},
"contentProtocol": {
"type": "string",
"default": "SERVER_MANAGED_1",
"x-kotlin-default": "\"SERVER_MANAGED_1\""
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotManagedContentModels.kt",
"line": 8
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"deviceId",
"historyGeneration"
]
}BotMemberPage
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
members | array<BotPublicMember> | Да | |
nextAfter | string · null | Нет | |
hasMore | boolean | Да |
JSON Schema
{
"type": "object",
"properties": {
"members": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BotPublicMember"
}
},
"nextAfter": {
"type": "string",
"nullable": true
},
"hasMore": {
"type": "boolean"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotMetadataService.kt",
"line": 20
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"members",
"hasMore"
]
}BotMessageEventResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
cursor | string | Да | |
eventType | string | Да | |
nativeMessageId | string · null | Нет | |
compatMessageId | string · null | Нет | |
threadRootMessageId | string · null | Нет | |
compatThreadRootMessageId | string · null | Нет | |
authorId | string | Да | |
compatAuthorId | string | Да | |
conversationId | string | Да | |
historyGeneration | string | Да | |
epoch | integer · int64 · null | Нет | |
revision | integer · int32 | Да | |
encryptedEnvelope | string · null | Нет | |
createdAt | string | Да | |
clientMessageId | string · null | Нет | |
replyToMessageId | string · null | Нет | |
attachmentUploadIds | array<string> | Да | |
author | BotPublicUser / null | Нет | |
actorId | string · null | Нет | |
compatActorId | string · null | Нет | |
actor | BotPublicUser / null | Нет | |
emoji | string · null | Нет | |
pinned | boolean · null | Нет | |
occurredAt | string | Нет | |
contentProtocol | string | Нет | Default: "MLS_1" |
managedBody | object · null | Нет | Explicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules. |
contentSha256 | string · null | Нет |
JSON Schema
{
"type": "object",
"properties": {
"cursor": {
"type": "string"
},
"eventType": {
"type": "string"
},
"nativeMessageId": {
"type": "string",
"nullable": true
},
"compatMessageId": {
"type": "string",
"nullable": true
},
"threadRootMessageId": {
"type": "string",
"nullable": true
},
"compatThreadRootMessageId": {
"type": "string",
"nullable": true
},
"authorId": {
"type": "string"
},
"compatAuthorId": {
"type": "string"
},
"conversationId": {
"type": "string"
},
"historyGeneration": {
"type": "string"
},
"epoch": {
"type": "integer",
"format": "int64",
"nullable": true
},
"revision": {
"type": "integer",
"format": "int32"
},
"encryptedEnvelope": {
"type": "string",
"nullable": true
},
"createdAt": {
"type": "string"
},
"clientMessageId": {
"type": "string",
"nullable": true
},
"replyToMessageId": {
"type": "string",
"nullable": true
},
"attachmentUploadIds": {
"type": "array",
"items": {
"type": "string"
}
},
"author": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/BotPublicUser"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"actorId": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"compatActorId": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"actor": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/BotPublicUser"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
],
"x-kotlin-default": "null"
},
"emoji": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"pinned": {
"type": "boolean",
"nullable": true,
"x-kotlin-default": "null"
},
"occurredAt": {
"type": "string",
"x-kotlin-default": "createdAt"
},
"contentProtocol": {
"type": "string",
"default": "MLS_1",
"x-kotlin-default": "\"MLS_1\""
},
"managedBody": {
"type": "object",
"additionalProperties": true,
"description": "Explicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules.",
"nullable": true,
"x-kotlin-default": "null"
},
"contentSha256": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotEventModels.kt",
"line": 22
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"cursor",
"eventType",
"authorId",
"compatAuthorId",
"conversationId",
"historyGeneration",
"revision",
"createdAt",
"attachmentUploadIds"
]
}BotMessageHistoryResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
messages | array<BotMessageEventResponse> | Да | |
highWatermark | string | Да | |
hasMore | boolean | Да |
JSON Schema
{
"type": "object",
"properties": {
"messages": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BotMessageEventResponse"
}
},
"highWatermark": {
"type": "string"
},
"hasMore": {
"type": "boolean"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotEventModels.kt",
"line": 34
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"messages",
"highWatermark",
"hasMore"
]
}BotMessageInteractions
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
reactions | array<BotMessageReaction> | Да | |
pinned | boolean | Да |
JSON Schema
{
"type": "object",
"properties": {
"reactions": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BotMessageReaction"
}
},
"pinned": {
"type": "boolean"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotMessageService.kt",
"line": 19
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"reactions",
"pinned"
]
}BotMessageReaction
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
emoji | string | Да | |
count | integer · int32 | Да | |
reactedByCurrentUser | boolean | Да |
JSON Schema
{
"type": "object",
"properties": {
"emoji": {
"type": "string"
},
"count": {
"type": "integer",
"format": "int32"
},
"reactedByCurrentUser": {
"type": "boolean"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotMessageService.kt",
"line": 18
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"emoji",
"count",
"reactedByCurrentUser"
]
}BotMetadataChangesResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
revision | string | Да | |
changed | array<string> | Да |
JSON Schema
{
"type": "object",
"properties": {
"revision": {
"type": "string"
},
"changed": {
"type": "array",
"items": {
"type": "string"
}
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotMetadataDeltaModels.kt",
"line": 21
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"revision",
"changed"
]
}BotModerationMember
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
user | BotPublicUser | Да | |
role | string | Да | |
joinedAt | string | Да | |
mutedUntil | string · null | Нет | |
banned | boolean | Да | |
microphoneMuted | boolean | Да |
JSON Schema
{
"type": "object",
"properties": {
"user": {
"$ref": "#/components/schemas/BotPublicUser"
},
"role": {
"type": "string"
},
"joinedAt": {
"type": "string"
},
"mutedUntil": {
"type": "string",
"nullable": true
},
"banned": {
"type": "boolean"
},
"microphoneMuted": {
"type": "boolean"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotModerationService.kt",
"line": 16
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"user",
"role",
"joinedAt",
"banned",
"microphoneMuted"
]
}BotOwnPermissionResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
channelId | string | Да | |
compatChannelId | string | Да | |
communityId | string | Да | |
compatCommunityId | string | Да | |
nativeRole | string | Да | |
scopes | array<string> | Да | |
mutedUntil | string · null | Нет | |
microphoneMuted | boolean | Да |
JSON Schema
{
"type": "object",
"properties": {
"channelId": {
"type": "string"
},
"compatChannelId": {
"type": "string"
},
"communityId": {
"type": "string"
},
"compatCommunityId": {
"type": "string"
},
"nativeRole": {
"type": "string"
},
"scopes": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"mutedUntil": {
"type": "string",
"nullable": true
},
"microphoneMuted": {
"type": "boolean"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotMetadataService.kt",
"line": 25
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"channelId",
"compatChannelId",
"communityId",
"compatCommunityId",
"nativeRole",
"scopes",
"microphoneMuted"
]
}BotPinnedMessage
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
messageId | string | Да | |
compatMessageId | string | Да | |
pinnedAt | string | Да |
JSON Schema
{
"type": "object",
"properties": {
"messageId": {
"type": "string"
},
"compatMessageId": {
"type": "string"
},
"pinnedAt": {
"type": "string"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotMessageService.kt",
"line": 20
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"messageId",
"compatMessageId",
"pinnedAt"
]
}BotPinnedMessages
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
messageIds | array<string> | Да | |
compatMessageIds | array<string> | Да | |
items | array<BotPinnedMessage> | Нет | Default: [] |
JSON Schema
{
"type": "object",
"properties": {
"messageIds": {
"type": "array",
"items": {
"type": "string"
}
},
"compatMessageIds": {
"type": "array",
"items": {
"type": "string"
}
},
"items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BotPinnedMessage"
},
"default": [],
"x-kotlin-default": "emptyList()"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotMessageService.kt",
"line": 21
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"messageIds",
"compatMessageIds"
]
}BotPresenceResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
expiresAt | string | Да | |
heartbeatIntervalSeconds | integer · int32 | Нет | Default: 30 |
JSON Schema
{
"type": "object",
"properties": {
"expiresAt": {
"type": "string"
},
"heartbeatIntervalSeconds": {
"type": "integer",
"format": "int32",
"default": 30,
"x-kotlin-default": "30"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotPresenceService.kt",
"line": 16
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"expiresAt"
]
}BotPublicApplicationPage
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
applications | array<BotInstallableApplicationResponse> | Да | |
nextAfter | string · null | Нет | |
hasMore | boolean | Да |
JSON Schema
{
"type": "object",
"properties": {
"applications": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BotInstallableApplicationResponse"
}
},
"nextAfter": {
"type": "string",
"nullable": true
},
"hasMore": {
"type": "boolean"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotApplicationDiscovery.kt",
"line": 13
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"applications",
"hasMore"
]
}BotPublicMember
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
user | BotPublicUser | Да | |
role | string | Да | |
roleIds | array<string> | Да | |
compatRoleIds | array<string> | Да | |
joinedAt | string | Да | |
mutedUntil | string · null | Нет | |
microphoneMuted | boolean | Да | |
online | boolean | Нет | Default: false |
presenceRevision | string | Нет | Default: "0" |
JSON Schema
{
"type": "object",
"properties": {
"user": {
"$ref": "#/components/schemas/BotPublicUser"
},
"role": {
"type": "string"
},
"roleIds": {
"type": "array",
"items": {
"type": "string"
}
},
"compatRoleIds": {
"type": "array",
"items": {
"type": "string"
}
},
"joinedAt": {
"type": "string"
},
"mutedUntil": {
"type": "string",
"nullable": true
},
"microphoneMuted": {
"type": "boolean"
},
"online": {
"type": "boolean",
"default": false,
"x-kotlin-default": "false"
},
"presenceRevision": {
"type": "string",
"default": "0",
"x-kotlin-default": "\"0\""
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotMetadataService.kt",
"line": 17
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"user",
"role",
"roleIds",
"compatRoleIds",
"joinedAt",
"microphoneMuted"
]
}BotPublicRole
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | string | Да | |
compatId | string | Да | |
name | string | Да | |
color | string | Да | |
position | integer · int32 | Да | |
permissions | array<string> | Да | |
kind | string | Нет | Default: "ROLE" |
JSON Schema
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"compatId": {
"type": "string"
},
"name": {
"type": "string"
},
"color": {
"type": "string"
},
"position": {
"type": "integer",
"format": "int32"
},
"permissions": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"kind": {
"type": "string",
"default": "ROLE",
"x-kotlin-default": "\"ROLE\""
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotMetadataService.kt",
"line": 21
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"id",
"compatId",
"name",
"color",
"position",
"permissions"
]
}BotPublicUser
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | string | Да | |
compatId | string | Да | |
username | string | Да | |
displayName | string | Да | |
avatarUrl | string · null | Нет | |
bot | boolean | Да | |
createdAt | string | Да | |
publicIdentifier | string · null | Нет |
JSON Schema
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"compatId": {
"type": "string"
},
"username": {
"type": "string"
},
"displayName": {
"type": "string"
},
"avatarUrl": {
"type": "string",
"nullable": true
},
"bot": {
"type": "boolean"
},
"createdAt": {
"type": "string"
},
"publicIdentifier": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotMetadataService.kt",
"line": 15
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"id",
"compatId",
"username",
"displayName",
"bot",
"createdAt"
]
}BotPublicVoiceState
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
userId | string | Да | |
compatUserId | string | Да | |
channelId | string | Да | |
compatChannelId | string | Да | |
sessionId | string | Да | |
participationId | string | Да | |
selfMute | boolean | Да | |
selfDeaf | boolean | Да | |
cameraEnabled | boolean | Да | |
screenSharePublished | boolean | Да | |
serverMute | boolean | Да | |
stageRole | string | Да |
JSON Schema
{
"type": "object",
"properties": {
"userId": {
"type": "string"
},
"compatUserId": {
"type": "string"
},
"channelId": {
"type": "string"
},
"compatChannelId": {
"type": "string"
},
"sessionId": {
"type": "string"
},
"participationId": {
"type": "string"
},
"selfMute": {
"type": "boolean"
},
"selfDeaf": {
"type": "boolean"
},
"cameraEnabled": {
"type": "boolean"
},
"screenSharePublished": {
"type": "boolean"
},
"serverMute": {
"type": "boolean"
},
"stageRole": {
"type": "string"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotMetadataDeltaModels.kt",
"line": 22
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"userId",
"compatUserId",
"channelId",
"compatChannelId",
"sessionId",
"participationId",
"selfMute",
"selfDeaf",
"cameraEnabled",
"screenSharePublished",
"serverMute",
"stageRole"
]
}BotRateLimitError
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
code | string | Нет | Default: "RATE_LIMITED" |
message | string | Нет | Default: "Bot request budget exhausted" |
retry_after | number · double | Да | |
global | boolean | Да |
JSON Schema
{
"type": "object",
"properties": {
"code": {
"type": "string",
"default": "RATE_LIMITED",
"x-kotlin-default": "\"RATE_LIMITED\""
},
"message": {
"type": "string",
"default": "Bot request budget exhausted",
"x-kotlin-default": "\"Bot request budget exhausted\""
},
"retry_after": {
"type": "number",
"format": "double"
},
"global": {
"type": "boolean"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotRateLimitRoutes.kt",
"line": 18
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"retry_after",
"global"
]
}BotSourceActionSet
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
actions | array<BotActionDefinition> | Да | |
expiresAt | string | Да |
JSON Schema
{
"type": "object",
"properties": {
"actions": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BotActionDefinition"
}
},
"expiresAt": {
"type": "string"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotSourceInteractions.kt",
"line": 12
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"actions",
"expiresAt"
]
}BotSourceInteractionResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
interaction | BotInteractionView | Да | |
application | SecureApplicationResponse / null | Нет | |
sourceInteraction | BotInteractionView / null | Нет | |
operation | BotSourceOperationReceipt / null | Нет |
JSON Schema
{
"type": "object",
"properties": {
"interaction": {
"$ref": "#/components/schemas/BotInteractionView"
},
"application": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/SecureApplicationResponse"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
],
"x-kotlin-default": "null"
},
"sourceInteraction": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/BotInteractionView"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
],
"x-kotlin-default": "null"
},
"operation": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/BotSourceOperationReceipt"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
],
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotSourceInteractions.kt",
"line": 20
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"interaction"
]
}BotSourceInteractionTarget
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
source | BotActionSource | Да | |
sourceInteraction | BotInteractionView / null | Нет |
JSON Schema
{
"type": "object",
"properties": {
"source": {
"$ref": "#/components/schemas/BotActionSource"
},
"sourceInteraction": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/BotInteractionView"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
],
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotSourceInteractions.kt",
"line": 23
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"source"
]
}BotSourceOperationReceipt
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
interactionId | string | Да | |
requestId | string | Да | |
requestSha256 | string | Да | |
previousSource | BotActionSource | Да | |
currentSource | BotActionSource | Да | |
compatId | string | Да | |
sourceCurrent | boolean | Да |
JSON Schema
{
"type": "object",
"properties": {
"interactionId": {
"type": "string"
},
"requestId": {
"type": "string"
},
"requestSha256": {
"type": "string"
},
"previousSource": {
"$ref": "#/components/schemas/BotActionSource"
},
"currentSource": {
"$ref": "#/components/schemas/BotActionSource"
},
"compatId": {
"type": "string"
},
"sourceCurrent": {
"type": "boolean"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotSourceInteractions.kt",
"line": 25
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"interactionId",
"requestId",
"requestSha256",
"previousSource",
"currentSource",
"compatId",
"sourceCurrent"
]
}BotSourceOperationStatus
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
receipt | BotSourceOperationReceipt / null | Нет |
JSON Schema
{
"type": "object",
"properties": {
"receipt": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/BotSourceOperationReceipt"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
],
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotSourceInteractions.kt",
"line": 27
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer."
}BotVoiceGenerationRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
generation | integer · int64 | Да |
JSON Schema
{
"type": "object",
"properties": {
"generation": {
"type": "integer",
"format": "int64"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotVoiceService.kt",
"line": 19
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"generation"
]
}BotVoiceHeartbeatResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | string | Да | |
generation | integer · int64 | Да | |
authorityExpiresAt | string | Да | |
media | MediaLeaseHeartbeatResponse | Да |
JSON Schema
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"generation": {
"type": "integer",
"format": "int64"
},
"authorityExpiresAt": {
"type": "string"
},
"media": {
"$ref": "#/components/schemas/MediaLeaseHeartbeatResponse"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotVoiceService.kt",
"line": 23
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"id",
"generation",
"authorityExpiresAt",
"media"
]
}BotVoiceSessionResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | string | Да | |
generation | integer · int64 | Да | |
installationId | string | Да | |
channelId | string | Да | |
participationId | string | Да | |
authorityExpiresAt | string | Да | |
media | MediaLeaseResponse | Да |
JSON Schema
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"generation": {
"type": "integer",
"format": "int64"
},
"installationId": {
"type": "string"
},
"channelId": {
"type": "string"
},
"participationId": {
"type": "string"
},
"authorityExpiresAt": {
"type": "string"
},
"media": {
"$ref": "#/components/schemas/MediaLeaseResponse"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotVoiceService.kt",
"line": 21
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"id",
"generation",
"installationId",
"channelId",
"participationId",
"authorityExpiresAt",
"media"
]
}BotVoiceStatePage
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
states | array<BotPublicVoiceState> | Да | |
nextAfterChannelId | string · null | Нет | |
nextAfterUserId | string · null | Нет | |
hasMore | boolean | Да |
JSON Schema
{
"type": "object",
"properties": {
"states": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BotPublicVoiceState"
}
},
"nextAfterChannelId": {
"type": "string",
"nullable": true
},
"nextAfterUserId": {
"type": "string",
"nullable": true
},
"hasMore": {
"type": "boolean"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotMetadataDeltaModels.kt",
"line": 26
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"states",
"hasMore"
]
}BrowserPushSubscriptionRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
endpoint | stringmaxLength=4096 | Да | |
p256dh | stringminLength=40; maxLength=512 | Да | |
auth | stringminLength=8; maxLength=256 | Да | |
userAgent | string · null | Нет | |
bindingAttempt | string · nullpattern=^[A-Za-z0-9_-]{1,128}$ | Нет | Opaque, client-selected identifier for this registration attempt, retained across retries. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"endpoint",
"p256dh",
"auth"
],
"properties": {
"endpoint": {
"type": "string",
"maxLength": 4096
},
"p256dh": {
"type": "string",
"minLength": 40,
"maxLength": 512
},
"auth": {
"type": "string",
"minLength": 8,
"maxLength": 256
},
"userAgent": {
"type": "string",
"nullable": true
},
"bindingAttempt": {
"type": "string",
"nullable": true,
"pattern": "^[A-Za-z0-9_-]{1,128}$",
"description": "Opaque, client-selected identifier for this registration attempt, retained across retries."
}
}
}BrowserPushSubscriptionResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64 | Да | |
endpoint | string | Да | |
bindingId | string · uuid · null | Нет | Server-generated registration generation used to match subsequent Web Push deliveries. Older servers can omit it. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"endpoint"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"endpoint": {
"type": "string"
},
"bindingId": {
"type": "string",
"format": "uuid",
"nullable": true,
"description": "Server-generated registration generation used to match subsequent Web Push deliveries. Older servers can omit it."
}
}
}ChannelChatContentPage
Bounded ascending-ID page of matching full timeline messages. Use nextBeforeId to load older matches when hasMore; omitted/null cursor means exhaustion.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
items | array<ForwardedChannelMessage> | Да | |
nextBeforeId | integer · int64 · nullminimum=1 | Нет | |
hasMore | boolean | Да |
JSON Schema
{
"type": "object",
"required": [
"items",
"hasMore"
],
"properties": {
"items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ForwardedChannelMessage"
}
},
"nextBeforeId": {
"type": "integer",
"format": "int64",
"nullable": true,
"minimum": 1
},
"hasMore": {
"type": "boolean"
}
},
"description": "Bounded ascending-ID page of matching full timeline messages. Use nextBeforeId to load older matches when hasMore; omitted/null cursor means exhaustion."
}ChannelMessageResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64 | Да | |
channelId | integer · int64 | Да | |
authorId | integer · int64 | Да | |
content | string | Да | |
createdAt | string | Да | |
editedAt | string · null | Нет | |
messageType | ChannelMessageType | Нет | |
clientMessageId | string · null | Нет | |
authorIdentifier | string · null | Нет | |
authorDisplayName | string · null | Нет | |
authorAvatarUrl | string · null | Нет | |
authorCommunityRole | CommunityRole / null | Нет | |
authorCustomRoleName | string · null | Нет | |
authorRoleColorHex | string · null | Нет | |
reactions | array<MessageReactionResponse> | Нет | |
pinned | boolean | Нет | |
pinnedByUserId | integer · int64 · null | Нет | |
pinnedAt | string · null | Нет | |
threadReplyCount | integer · int32 | Нет | |
threadRevision | integer · int64minimum=0 | Нет | |
attachments | array<ChatAttachmentResponse> | Нет | |
delivery | MessageReceiptSummaryResponse / null | Нет | |
forwardedFrom | ForwardedMessageAttribution / null | Нет | |
encryptedEnvelope | string · null | Нет | Legacy encrypted-content field; managed writes omit it. |
encryptionRevision | integer · int32 · null | Нет | |
replyToMessageId | integer · int64 · null | Нет | |
authorIsBot | boolean | Нет | |
managedBody | object · null | Нет | Server-readable structured content, validated by the owning message operation. Managed writers omit legacy encryptedEnvelope; transport encryption and server ACL still apply. |
contentRevision | integer · int32 | Нет | Default: 0 |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"channelId": {
"type": "integer",
"format": "int64"
},
"authorId": {
"type": "integer",
"format": "int64"
},
"content": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"editedAt": {
"type": "string",
"nullable": true
},
"messageType": {
"$ref": "#/components/schemas/ChannelMessageType"
},
"clientMessageId": {
"type": "string",
"nullable": true
},
"authorIdentifier": {
"type": "string",
"nullable": true
},
"authorDisplayName": {
"type": "string",
"nullable": true
},
"authorAvatarUrl": {
"type": "string",
"nullable": true
},
"authorCommunityRole": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/CommunityRole"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"authorCustomRoleName": {
"type": "string",
"nullable": true
},
"authorRoleColorHex": {
"type": "string",
"nullable": true
},
"reactions": {
"type": "array",
"items": {
"$ref": "#/components/schemas/MessageReactionResponse"
}
},
"pinned": {
"type": "boolean"
},
"pinnedByUserId": {
"type": "integer",
"format": "int64",
"nullable": true
},
"pinnedAt": {
"type": "string",
"nullable": true
},
"threadReplyCount": {
"type": "integer",
"format": "int32"
},
"threadRevision": {
"type": "integer",
"format": "int64",
"minimum": 0
},
"attachments": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ChatAttachmentResponse"
}
},
"delivery": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/MessageReceiptSummaryResponse"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"forwardedFrom": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/ForwardedMessageAttribution"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"encryptedEnvelope": {
"type": "string",
"nullable": true,
"deprecated": true,
"description": "Legacy encrypted-content field; managed writes omit it."
},
"encryptionRevision": {
"type": "integer",
"format": "int32",
"nullable": true
},
"replyToMessageId": {
"type": "integer",
"format": "int64",
"nullable": true
},
"authorIsBot": {
"type": "boolean"
},
"managedBody": {
"type": "object",
"additionalProperties": true,
"description": "Server-readable structured content, validated by the owning message operation. Managed writers omit legacy encryptedEnvelope; transport encryption and server ACL still apply.",
"nullable": true,
"x-kotlin-default": "null"
},
"contentRevision": {
"type": "integer",
"format": "int32",
"default": 0,
"x-kotlin-default": "0"
}
},
"required": [
"id",
"channelId",
"authorId",
"content",
"createdAt"
]
}ChannelMessageType
string: TEXT, ATTACHMENT, SYSTEM
JSON Schema
{
"type": "string",
"enum": [
"TEXT",
"ATTACHMENT",
"SYSTEM"
]
}ChatAttachmentResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64 | Да | |
fileName | string | Да | |
contentType | string | Да | |
sizeBytes | integer · int64 | Да | |
mediaUrl | string | Да | |
thumbnailUrl | string · null | Нет | |
kind | string: FILE, VOICE, VIDEO | Нет | Default: "FILE" |
durationMs | integer · int64 · null | Нет | |
downloadUrl | string | Нет | |
inlineImage | boolean | Нет | Explicit image presentation intent, default false for legacy/file uploads. Only FILE raster attachments may set true; MIME alone never changes presentation. Default: false |
previewWidth | integer · int32 · nullminimum=1; maximum=640 | Нет | Width of the real decoded preview in pixels, paired with previewHeight; absent for legacy or generic placeholder previews. |
previewHeight | integer · int32 · nullminimum=1; maximum=420 | Нет | Height of the real decoded preview in pixels, paired with previewWidth; absent for legacy or generic placeholder previews. |
sourceUploadId | string · null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"fileName",
"contentType",
"sizeBytes",
"mediaUrl"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"fileName": {
"type": "string"
},
"contentType": {
"type": "string"
},
"sizeBytes": {
"type": "integer",
"format": "int64"
},
"mediaUrl": {
"type": "string"
},
"thumbnailUrl": {
"type": "string",
"nullable": true
},
"kind": {
"type": "string",
"enum": [
"FILE",
"VOICE",
"VIDEO"
],
"default": "FILE"
},
"durationMs": {
"type": "integer",
"format": "int64",
"nullable": true
},
"downloadUrl": {
"type": "string"
},
"inlineImage": {
"type": "boolean",
"default": false,
"description": "Explicit image presentation intent, default false for legacy/file uploads. Only FILE raster attachments may set true; MIME alone never changes presentation."
},
"previewWidth": {
"type": "integer",
"format": "int32",
"nullable": true,
"minimum": 1,
"maximum": 640,
"description": "Width of the real decoded preview in pixels, paired with previewHeight; absent for legacy or generic placeholder previews."
},
"previewHeight": {
"type": "integer",
"format": "int32",
"nullable": true,
"minimum": 1,
"maximum": 420,
"description": "Height of the real decoded preview in pixels, paired with previewWidth; absent for legacy or generic placeholder previews."
},
"sourceUploadId": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
}
}
}ChatCardScopeType
string: DIRECT, CHANNEL
JSON Schema
{
"type": "string",
"enum": [
"DIRECT",
"CHANNEL"
]
}ChatDraftResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
scopeType | ChatScopeType | Да | |
scopeId | integer · int64 | Да | |
content | string | Да | |
updatedAt | string | Да | |
communityId | integer · int64 · null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"scopeType",
"scopeId",
"content",
"updatedAt"
],
"properties": {
"scopeType": {
"$ref": "#/components/schemas/ChatScopeType"
},
"scopeId": {
"type": "integer",
"format": "int64"
},
"content": {
"type": "string"
},
"updatedAt": {
"type": "string"
},
"communityId": {
"type": "integer",
"format": "int64",
"nullable": true
}
}
}ChatEventHeaderImageResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
mediaUrl | string | Да | |
thumbnailUrl | string · null | Нет | |
contentType | string | Да | |
fileName | string | Да | |
sizeBytes | integer · int64 | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"mediaUrl": {
"type": "string"
},
"thumbnailUrl": {
"type": "string",
"nullable": true
},
"contentType": {
"type": "string"
},
"fileName": {
"type": "string"
},
"sizeBytes": {
"type": "integer",
"format": "int64"
}
},
"required": [
"mediaUrl",
"contentType",
"fileName",
"sizeBytes"
]
}ChatEventParticipantResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
userId | integer · int64 | Да | |
displayName | string | Да | |
avatarUrl | string · null | Нет | |
status | ChatEventParticipationStatus | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"userId": {
"type": "integer",
"format": "int64"
},
"displayName": {
"type": "string"
},
"avatarUrl": {
"type": "string",
"nullable": true
},
"status": {
"$ref": "#/components/schemas/ChatEventParticipationStatus"
}
},
"required": [
"userId",
"displayName",
"status"
]
}ChatEventParticipationStatus
string: GOING, MAYBE
JSON Schema
{
"type": "string",
"enum": [
"GOING",
"MAYBE"
]
}ChatEventResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64 | Да | |
creatorId | integer · int64 | Да | |
scopeType | ChatCardScopeType | Да | |
conversationId | integer · int64 · null | Нет | |
channelId | integer · int64 · null | Нет | |
communityId | integer · int64 · null | Нет | |
communityName | string · null | Нет | |
channelName | string · null | Нет | |
messageId | integer · int64 · null | Нет | |
title | string | Да | |
description | string · null | Нет | |
fullDescription | string · null | Нет | |
location | string · null | Нет | |
startsAt | string | Да | |
endsAt | string · null | Нет | |
headerImage | ChatEventHeaderImageResponse / null | Нет | |
subscriberCount | integer · int32 | Да | |
subscribedByMe | boolean | Да | |
goingCount | integer · int32 | Нет | |
maybeCount | integer · int32 | Нет | |
participationStatusByMe | ChatEventParticipationStatus / null | Нет | |
participants | array<ChatEventParticipantResponse> | Нет | |
sharingAllowed | boolean | Нет | |
privateForChannel | boolean | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"creatorId": {
"type": "integer",
"format": "int64"
},
"scopeType": {
"$ref": "#/components/schemas/ChatCardScopeType"
},
"conversationId": {
"type": "integer",
"format": "int64",
"nullable": true
},
"channelId": {
"type": "integer",
"format": "int64",
"nullable": true
},
"communityId": {
"type": "integer",
"format": "int64",
"nullable": true
},
"communityName": {
"type": "string",
"nullable": true
},
"channelName": {
"type": "string",
"nullable": true
},
"messageId": {
"type": "integer",
"format": "int64",
"nullable": true
},
"title": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
},
"fullDescription": {
"type": "string",
"nullable": true
},
"location": {
"type": "string",
"nullable": true
},
"startsAt": {
"type": "string"
},
"endsAt": {
"type": "string",
"nullable": true
},
"headerImage": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/ChatEventHeaderImageResponse"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"subscriberCount": {
"type": "integer",
"format": "int32"
},
"subscribedByMe": {
"type": "boolean"
},
"goingCount": {
"type": "integer",
"format": "int32"
},
"maybeCount": {
"type": "integer",
"format": "int32"
},
"participationStatusByMe": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/ChatEventParticipationStatus"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"participants": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ChatEventParticipantResponse"
}
},
"sharingAllowed": {
"type": "boolean"
},
"privateForChannel": {
"type": "boolean"
}
},
"required": [
"id",
"creatorId",
"scopeType",
"title",
"startsAt",
"subscriberCount",
"subscribedByMe"
]
}ChatNewsImageResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64 | Да | |
position | integer · int32 | Да | |
mediaUrl | string | Да | |
thumbnailUrl | string · null | Нет | |
contentType | string | Да | |
fileName | string | Да | |
sizeBytes | integer · int64 | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"position": {
"type": "integer",
"format": "int32"
},
"mediaUrl": {
"type": "string"
},
"thumbnailUrl": {
"type": "string",
"nullable": true
},
"contentType": {
"type": "string"
},
"fileName": {
"type": "string"
},
"sizeBytes": {
"type": "integer",
"format": "int64"
}
},
"required": [
"id",
"position",
"mediaUrl",
"contentType",
"fileName",
"sizeBytes"
]
}ChatNewsResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64 | Да | |
creatorId | integer · int64 | Да | |
creatorIdentifier | string | Да | |
creatorDisplayName | string | Да | |
creatorAvatarUrl | string · null | Нет | |
communityId | integer · int64 | Да | |
communityName | string | Да | |
channelId | integer · int64 | Да | |
channelName | string | Да | |
messageId | integer · int64 · null | Нет | |
title | string | Да | |
shortDescription | string | Да | |
fullDescription | string | Да | |
publishedAt | string | Да | |
images | array<ChatNewsImageResponse> | Нет | |
sharingAllowed | boolean | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"creatorId": {
"type": "integer",
"format": "int64"
},
"creatorIdentifier": {
"type": "string"
},
"creatorDisplayName": {
"type": "string"
},
"creatorAvatarUrl": {
"type": "string",
"nullable": true
},
"communityId": {
"type": "integer",
"format": "int64"
},
"communityName": {
"type": "string"
},
"channelId": {
"type": "integer",
"format": "int64"
},
"channelName": {
"type": "string"
},
"messageId": {
"type": "integer",
"format": "int64",
"nullable": true
},
"title": {
"type": "string"
},
"shortDescription": {
"type": "string"
},
"fullDescription": {
"type": "string"
},
"publishedAt": {
"type": "string"
},
"images": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ChatNewsImageResponse"
}
},
"sharingAllowed": {
"type": "boolean"
}
},
"required": [
"id",
"creatorId",
"creatorIdentifier",
"creatorDisplayName",
"communityId",
"communityName",
"channelId",
"channelName",
"title",
"shortDescription",
"fullDescription",
"publishedAt"
]
}ChatScopeType
string: DIRECT, CHANNEL
JSON Schema
{
"type": "string",
"enum": [
"DIRECT",
"CHANNEL"
]
}ChatUploadSessionResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | string | Да | |
fileName | string | Да | |
contentType | string | Да | |
sizeBytes | integer · int64 | Да | |
chunkSize | integer · int32 | Да | |
totalChunks | integer · int32 | Да | |
uploadedChunks | array<integer · int32> | Да | |
uploadedBytes | integer · int64 | Да | |
status | string: UPLOADING, READY, RESERVED, CONSUMED, CANCELLED | Да | |
mediaUrl | string · null | Нет | |
thumbnailUrl | string · null | Нет | |
expiresAt | string | Да | |
inlineImage | boolean | Нет | Explicit image presentation intent, default false for legacy/file uploads. Only FILE raster attachments may set true; MIME alone never changes presentation. Default: false |
previewWidth | integer · int32 · nullminimum=1; maximum=640 | Нет | Width of the real decoded preview in pixels, paired with previewHeight; absent for legacy or generic placeholder previews. |
previewHeight | integer · int32 · nullminimum=1; maximum=420 | Нет | Height of the real decoded preview in pixels, paired with previewWidth; absent for legacy or generic placeholder previews. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"fileName",
"contentType",
"sizeBytes",
"chunkSize",
"totalChunks",
"uploadedChunks",
"uploadedBytes",
"status",
"expiresAt"
],
"properties": {
"id": {
"type": "string"
},
"fileName": {
"type": "string"
},
"contentType": {
"type": "string"
},
"sizeBytes": {
"type": "integer",
"format": "int64"
},
"chunkSize": {
"type": "integer",
"format": "int32"
},
"totalChunks": {
"type": "integer",
"format": "int32"
},
"uploadedChunks": {
"type": "array",
"items": {
"type": "integer",
"format": "int32"
}
},
"uploadedBytes": {
"type": "integer",
"format": "int64"
},
"status": {
"type": "string",
"enum": [
"UPLOADING",
"READY",
"RESERVED",
"CONSUMED",
"CANCELLED"
]
},
"mediaUrl": {
"type": "string",
"nullable": true
},
"thumbnailUrl": {
"type": "string",
"nullable": true
},
"expiresAt": {
"type": "string"
},
"inlineImage": {
"type": "boolean",
"default": false,
"description": "Explicit image presentation intent, default false for legacy/file uploads. Only FILE raster attachments may set true; MIME alone never changes presentation."
},
"previewWidth": {
"type": "integer",
"format": "int32",
"nullable": true,
"minimum": 1,
"maximum": 640,
"description": "Width of the real decoded preview in pixels, paired with previewHeight; absent for legacy or generic placeholder previews."
},
"previewHeight": {
"type": "integer",
"format": "int32",
"nullable": true,
"minimum": 1,
"maximum": 420,
"description": "Height of the real decoded preview in pixels, paired with previewWidth; absent for legacy or generic placeholder previews."
}
}
}ClassroomAttendanceRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
scope | LessonKeyScope | Да | |
participationId | string | Да | |
leaseId | integer · int64 | Да | |
leaseGeneration | integer · int32 | Да |
JSON Schema
{
"type": "object",
"properties": {
"scope": {
"$ref": "#/components/schemas/LessonKeyScope"
},
"participationId": {
"type": "string"
},
"leaseId": {
"type": "integer",
"format": "int64"
},
"leaseGeneration": {
"type": "integer",
"format": "int32"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/classroom/ClassroomAdmissionService.kt",
"line": 29
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"scope",
"participationId",
"leaseId",
"leaseGeneration"
],
"additionalProperties": false
}ClassroomAttendanceResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
leaseId | integer · int64 | Да | |
leaseGeneration | integer · int32 | Да | |
recipient | LessonAttendeeRecipient | Да |
JSON Schema
{
"type": "object",
"properties": {
"leaseId": {
"type": "integer",
"format": "int64"
},
"leaseGeneration": {
"type": "integer",
"format": "int32"
},
"recipient": {
"$ref": "#/components/schemas/LessonAttendeeRecipient"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/classroom/ClassroomAdmissionService.kt",
"line": 31
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"leaseId",
"leaseGeneration",
"recipient"
],
"additionalProperties": false
}CommunityAccessResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
restricted | boolean | Да | |
allowedSystemRoles | array<CommunityRole> | Нет | |
allowedCustomRoleIds | array<integer · int64> | Нет | |
allowedUserIds | array<integer · int64> | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"restricted": {
"type": "boolean"
},
"allowedSystemRoles": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CommunityRole"
}
},
"allowedCustomRoleIds": {
"type": "array",
"items": {
"type": "integer",
"format": "int64"
}
},
"allowedUserIds": {
"type": "array",
"items": {
"type": "integer",
"format": "int64"
}
}
},
"required": [
"restricted"
]
}CommunityAdministrationPermission
string: MANAGE_STRUCTURE
JSON Schema
{
"type": "string",
"enum": [
"MANAGE_STRUCTURE"
]
}CommunityCalendarEventResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64 | Да | |
communityId | integer · int64 | Да | |
communityName | string | Да | |
channelId | integer · int64 | Да | |
channelName | string | Да | |
messageId | integer · int64 · null | Нет | |
title | string | Да | |
description | string · null | Нет | |
startsAt | string | Да | |
endsAt | string · null | Нет | |
participationStatus | ChatEventParticipationStatus / null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"communityId": {
"type": "integer",
"format": "int64"
},
"communityName": {
"type": "string"
},
"channelId": {
"type": "integer",
"format": "int64"
},
"channelName": {
"type": "string"
},
"messageId": {
"type": "integer",
"format": "int64",
"nullable": true
},
"title": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
},
"startsAt": {
"type": "string"
},
"endsAt": {
"type": "string",
"nullable": true
},
"participationStatus": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/ChatEventParticipationStatus"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
}
},
"required": [
"id",
"communityId",
"communityName",
"channelId",
"channelName",
"title",
"startsAt"
]
}CommunityChannelPolicyRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
viewing | UpdateCommunityAccessRequest | Да | |
broadcasting | UpdateCommunityAccessRequest / null | Нет | |
speaking | UpdateCommunityAccessRequest / null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"viewing"
],
"properties": {
"viewing": {
"$ref": "#/components/schemas/UpdateCommunityAccessRequest"
},
"broadcasting": {
"anyOf": [
{
"$ref": "#/components/schemas/UpdateCommunityAccessRequest"
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"speaking": {
"anyOf": [
{
"$ref": "#/components/schemas/UpdateCommunityAccessRequest"
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
}
}
}CommunityChannelResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64 | Да | |
communityId | integer · int64 | Да | |
name | string | Да | |
topic | string · null | Нет | |
createdBy | integer · int64 | Да | |
createdAt | string | Да | |
sectionId | integer · int64 · null | Нет | |
channelType | CommunityChannelType | Нет | Legacy wire adapter only; channelKind is canonical and explicit channelKind wins. |
position | integer · int32 | Нет | |
systemPurpose | CommunityChannelSystemPurpose / null | Нет | |
access | CommunityAccessResponse / null | Нет | |
broadcastAccess | CommunityAccessResponse / null | Нет | |
canBroadcast | boolean | Нет | |
speakerAccess | CommunityAccessResponse / null | Нет | |
canBecomeSpeaker | boolean | Нет | |
speakerModeEnabled | boolean | Нет | Legacy wire adapter only; channelKind is canonical and explicit channelKind wins. |
iconUrl | string · null | Нет | |
channelKind | CommunityChannelType | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"communityId": {
"type": "integer",
"format": "int64"
},
"name": {
"type": "string"
},
"topic": {
"type": "string",
"nullable": true
},
"createdBy": {
"type": "integer",
"format": "int64"
},
"createdAt": {
"type": "string"
},
"sectionId": {
"type": "integer",
"format": "int64",
"nullable": true
},
"channelType": {
"allOf": [
{
"$ref": "#/components/schemas/CommunityChannelType"
}
],
"description": "Legacy wire adapter only; channelKind is canonical and explicit channelKind wins."
},
"position": {
"type": "integer",
"format": "int32"
},
"systemPurpose": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/CommunityChannelSystemPurpose"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"access": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/CommunityAccessResponse"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"broadcastAccess": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/CommunityAccessResponse"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"canBroadcast": {
"type": "boolean"
},
"speakerAccess": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/CommunityAccessResponse"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"canBecomeSpeaker": {
"type": "boolean"
},
"speakerModeEnabled": {
"type": "boolean",
"description": "Legacy wire adapter only; channelKind is canonical and explicit channelKind wins."
},
"iconUrl": {
"type": "string",
"nullable": true
},
"channelKind": {
"$ref": "#/components/schemas/CommunityChannelType"
}
},
"required": [
"id",
"communityId",
"name",
"createdBy",
"createdAt"
]
}CommunityChannelSystemPurpose
string: MEMBER_AUDIT, MODERATION_AUDIT
JSON Schema
{
"type": "string",
"enum": [
"MEMBER_AUDIT",
"MODERATION_AUDIT"
]
}CommunityChannelType
string: TEXT, VOICE, SPEAKER, STREAM
JSON Schema
{
"type": "string",
"enum": [
"TEXT",
"VOICE",
"SPEAKER",
"STREAM"
]
}CommunityContentVisibility
string: PUBLIC, MEMBERS
JSON Schema
{
"type": "string",
"enum": [
"PUBLIC",
"MEMBERS"
],
"x-source": {
"path": "src/main/kotlin/com/xchat/server/domain/Models.kt",
"line": 21
}
}CommunityCustomRoleResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
communityId | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
name | string | Да | |
colorHex | string | Да | |
position | integer · int32 | Да | |
permissions | array<CommunityAdministrationPermission> | Нет | |
showInMemberList | boolean | Нет | Display this role as a member-list category. Does not alter membership, role color or access. Default: true |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"communityId",
"name",
"colorHex",
"position"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
},
"communityId": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
},
"name": {
"type": "string"
},
"colorHex": {
"type": "string"
},
"position": {
"type": "integer",
"format": "int32"
},
"permissions": {
"type": "array",
"uniqueItems": true,
"items": {
"$ref": "#/components/schemas/CommunityAdministrationPermission"
}
},
"showInMemberList": {
"type": "boolean",
"default": true,
"description": "Display this role as a member-list category. Does not alter membership, role color or access."
}
}
}CommunityJoinMode
string: OPEN, CLOSED
JSON Schema
{
"type": "string",
"enum": [
"OPEN",
"CLOSED"
],
"x-source": {
"path": "src/main/kotlin/com/xchat/server/domain/Models.kt",
"line": 15
}
}CommunityMemberResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
userId | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
userIdentifier | string | Да | |
displayName | string | Да | |
role | CommunityRole | Да | |
mutedUntil | string · date-time · null | Нет | |
banned | boolean | Да | |
joinedAt | string · date-time | Да | |
customRoleIds | array<integer · int64minimum=1; maximum=9223372036854775807> | Нет | |
avatarUrl | string · null | Нет | |
online | boolean | Нет | Default: false |
microphoneMuted | boolean | Нет | Persistent moderator microphone restriction within this community. Clearing it permits voluntary microphone activation; it never turns on the microphone. Default: false |
microphoneModerationRevision | integer · int64minimum=0 | Нет | Default: 0 |
isBot | boolean | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"userId": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
},
"userIdentifier": {
"type": "string"
},
"displayName": {
"type": "string"
},
"role": {
"$ref": "#/components/schemas/CommunityRole"
},
"mutedUntil": {
"type": "string",
"format": "date-time",
"nullable": true
},
"banned": {
"type": "boolean"
},
"joinedAt": {
"type": "string",
"format": "date-time"
},
"customRoleIds": {
"type": "array",
"items": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
},
"uniqueItems": true
},
"avatarUrl": {
"type": "string",
"nullable": true
},
"online": {
"type": "boolean",
"default": false
},
"microphoneMuted": {
"type": "boolean",
"default": false,
"description": "Persistent moderator microphone restriction within this community. Clearing it permits voluntary microphone activation; it never turns on the microphone."
},
"microphoneModerationRevision": {
"type": "integer",
"format": "int64",
"minimum": 0,
"default": 0
},
"isBot": {
"type": "boolean"
}
},
"required": [
"userId",
"userIdentifier",
"displayName",
"role",
"banned",
"joinedAt"
]
}CommunityNicknameResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
communityId | integer · int64minimum=1 | Да | |
userId | integer · int64minimum=1 | Да | |
nickname | string · nullmaxLength=20 | Нет | Omitted or null means no override; clear any cached value for this identity and scope. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"communityId",
"userId"
],
"properties": {
"communityId": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"userId": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"nickname": {
"type": "string",
"nullable": true,
"maxLength": 20,
"description": "Omitted or null means no override; clear any cached value for this identity and scope."
}
}
}CommunityResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64 | Да | |
publicIdentifier | string | Да | |
name | string | Да | |
description | string · null | Нет | |
detailedDescription | string · null | Нет | |
ownerId | integer · int64 | Да | |
createdAt | string | Да | |
avatarUrl | string · null | Нет | |
joinMode | CommunityJoinMode | Нет | |
newsVisibility | CommunityContentVisibility | Нет | |
eventVisibility | CommunityContentVisibility | Нет | |
metadataRevision | integer · int64 | Нет | Default: 0 |
JSON Schema
{
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"publicIdentifier": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
},
"detailedDescription": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"ownerId": {
"type": "integer",
"format": "int64"
},
"createdAt": {
"type": "string"
},
"avatarUrl": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"joinMode": {
"allOf": [
{
"$ref": "#/components/schemas/CommunityJoinMode"
}
],
"x-kotlin-default": "CommunityJoinMode.OPEN"
},
"newsVisibility": {
"allOf": [
{
"$ref": "#/components/schemas/CommunityContentVisibility"
}
],
"x-kotlin-default": "CommunityContentVisibility.PUBLIC"
},
"eventVisibility": {
"allOf": [
{
"$ref": "#/components/schemas/CommunityContentVisibility"
}
],
"x-kotlin-default": "CommunityContentVisibility.PUBLIC"
},
"metadataRevision": {
"type": "integer",
"format": "int64",
"default": 0,
"x-kotlin-default": "0"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/community/CommunityDtos.kt",
"line": 16
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"id",
"publicIdentifier",
"name",
"ownerId",
"createdAt"
]
}CommunityRole
string: OWNER, ADMIN, MODERATOR, MEMBER
JSON Schema
{
"type": "string",
"enum": [
"OWNER",
"ADMIN",
"MODERATOR",
"MEMBER"
]
}CommunitySectionResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64 | Да | |
communityId | integer · int64 | Да | |
name | string | Да | |
position | integer · int32 | Да | |
systemPurpose | string · null: GENERAL, MODERATION, None | Нет | |
access | CommunityAccessResponse | Да | |
channels | array<CommunityChannelResponse> | Да | |
iconUrl | string · null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"communityId",
"name",
"position",
"access",
"channels"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"communityId": {
"type": "integer",
"format": "int64"
},
"name": {
"type": "string"
},
"position": {
"type": "integer",
"format": "int32"
},
"systemPurpose": {
"type": "string",
"nullable": true,
"enum": [
"GENERAL",
"MODERATION",
null
]
},
"access": {
"$ref": "#/components/schemas/CommunityAccessResponse"
},
"channels": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CommunityChannelResponse"
}
},
"iconUrl": {
"type": "string",
"nullable": true
}
}
}ConsumeE2eeDeviceTransferRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
signedTransferSha256 | string | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"signedTransferSha256"
],
"properties": {
"signedTransferSha256": {
"type": "string"
}
}
}CreateBotApplicationRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
name | string | Да | |
scopes | array<string> | Да | |
visibility | string | Нет | Default: "PRIVATE" |
JSON Schema
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"scopes": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"visibility": {
"type": "string",
"default": "PRIVATE",
"x-kotlin-default": "\"PRIVATE\""
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotModels.kt",
"line": 41
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"name",
"scopes"
]
}CreateBotCredentialRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
scopes | array<string> | Да | |
expiresInSeconds | integer · int64 | Нет | Default: 7776000 |
JSON Schema
{
"type": "object",
"properties": {
"scopes": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"expiresInSeconds": {
"type": "integer",
"format": "int64",
"default": 7776000,
"x-kotlin-default": "7_776_000"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotModels.kt",
"line": 43
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"scopes"
]
}CreateBotDirectConversationRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
humanUserId | string · null | Нет | |
humanCompatId | string · null | Нет |
JSON Schema
{
"type": "object",
"properties": {
"humanUserId": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"humanCompatId": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotDirectModels.kt",
"line": 15
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer."
}CreateBotInstallationKeyRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
expectedRevision | integer · int64 | Да |
JSON Schema
{
"type": "object",
"properties": {
"expectedRevision": {
"type": "integer",
"format": "int64"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotApplicationDiscovery.kt",
"line": 15
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"expectedRevision"
]
}CreateBotInteractionDraftUpload
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
interaction | PrepareBotInteractionRequest | Да | |
upload | CreateChatUploadRequest | Да |
JSON Schema
{
"type": "object",
"properties": {
"interaction": {
"$ref": "#/components/schemas/PrepareBotInteractionRequest"
},
"upload": {
"$ref": "#/components/schemas/CreateChatUploadRequest"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotInteractionAttachmentModels.kt",
"line": 9
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"interaction",
"upload"
]
}CreateChannelRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
policy | CommunityChannelPolicyRequest / null | Нет | |
name | string | Да | |
topic | string · null | Нет | |
sectionId | integer · int64 · null | Нет | |
channelType | CommunityChannelType | Нет | Legacy wire adapter only; channelKind is canonical and explicit channelKind wins. |
speakerModeEnabled | boolean | Нет | Legacy wire adapter only; channelKind is canonical and explicit channelKind wins. |
channelKind | CommunityChannelType / null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"policy": {
"anyOf": [
{
"$ref": "#/components/schemas/CommunityChannelPolicyRequest"
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"name": {
"type": "string"
},
"topic": {
"type": "string",
"nullable": true
},
"sectionId": {
"type": "integer",
"format": "int64",
"nullable": true
},
"channelType": {
"allOf": [
{
"$ref": "#/components/schemas/CommunityChannelType"
}
],
"description": "Legacy wire adapter only; channelKind is canonical and explicit channelKind wins."
},
"speakerModeEnabled": {
"type": "boolean",
"description": "Legacy wire adapter only; channelKind is canonical and explicit channelKind wins."
},
"channelKind": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/CommunityChannelType"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
}
},
"required": [
"name"
]
}CreateChatEventRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
title | string | Да | |
description | string · null | Нет | |
fullDescription | string · null | Нет | |
location | string · null | Нет | |
startsAt | string | Да | |
endsAt | string · null | Нет | |
headerImageUploadId | string · null | Нет | |
privateForChannel | boolean | Нет | Default: false |
clientOperationId | string · nullminLength=8; maxLength=64; pattern=^[A-Za-z0-9][A-Za-z0-9._:-]{7,63}$ | Нет | Stable operation identity for exact retries. Required for ordinary SERVER_MANAGED_1 card creation; the wire DTO retains its nullable legacy default. Reuse the same identity and unchanged request after an uncertain result; changed content returns CONTENT_OPERATION_CONFLICT. |
JSON Schema
{
"type": "object",
"properties": {
"title": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"fullDescription": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"location": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"startsAt": {
"type": "string"
},
"endsAt": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"headerImageUploadId": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"privateForChannel": {
"type": "boolean",
"default": false,
"x-kotlin-default": "false"
},
"clientOperationId": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null",
"minLength": 8,
"maxLength": 64,
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{7,63}$",
"description": "Stable operation identity for exact retries. Required for ordinary SERVER_MANAGED_1 card creation; the wire DTO retains its nullable legacy default. Reuse the same identity and unchanged request after an uncertain result; changed content returns CONTENT_OPERATION_CONFLICT."
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/chat/ChatCardDtos.kt",
"line": 12
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"title",
"startsAt"
],
"additionalProperties": false
}CreateChatNewsRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
title | string | Да | |
shortDescription | string | Да | |
fullDescription | string | Да | |
imageUploadIds | array<string> | Нет | Default: [] |
clientOperationId | string · nullminLength=8; maxLength=64; pattern=^[A-Za-z0-9][A-Za-z0-9._:-]{7,63}$ | Нет | Stable operation identity for exact retries. Required for ordinary SERVER_MANAGED_1 card creation; the wire DTO retains its nullable legacy default. Reuse the same identity and unchanged request after an uncertain result; changed content returns CONTENT_OPERATION_CONFLICT. |
JSON Schema
{
"type": "object",
"properties": {
"title": {
"type": "string"
},
"shortDescription": {
"type": "string"
},
"fullDescription": {
"type": "string"
},
"imageUploadIds": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"x-kotlin-default": "emptyList()"
},
"clientOperationId": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null",
"minLength": 8,
"maxLength": 64,
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{7,63}$",
"description": "Stable operation identity for exact retries. Required for ordinary SERVER_MANAGED_1 card creation; the wire DTO retains its nullable legacy default. Reuse the same identity and unchanged request after an uncertain result; changed content returns CONTENT_OPERATION_CONFLICT."
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/chat/ChatCardDtos.kt",
"line": 200
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"title",
"shortDescription",
"fullDescription"
],
"additionalProperties": false
}CreateChatUploadRequest
Shared source DTO. SERVER_MANAGED_1 uploads use actual filename/MIME and ordinary bytes; old application/vnd.teamyfy.e2ee is rejected. Current actor, installation/consent, scope, size, digest and READY-to-message custody remain required. Follow returned chunkSize and expiry.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
fileName | string | Да | |
contentType | string · null | Нет | |
sizeBytes | integer · int64 | Да | |
inlineImage | boolean | Нет | Explicit image presentation intent, default false for legacy/file uploads. Only FILE raster attachments may set true; MIME alone never changes presentation. Default: false |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"fileName",
"sizeBytes"
],
"properties": {
"fileName": {
"type": "string"
},
"contentType": {
"type": "string",
"nullable": true
},
"sizeBytes": {
"type": "integer",
"format": "int64"
},
"inlineImage": {
"type": "boolean",
"default": false,
"description": "Explicit image presentation intent, default false for legacy/file uploads. Only FILE raster attachments may set true; MIME alone never changes presentation."
}
},
"description": "Shared source DTO. SERVER_MANAGED_1 uploads use actual filename/MIME and ordinary bytes; old application/vnd.teamyfy.e2ee is rejected. Current actor, installation/consent, scope, size, digest and READY-to-message custody remain required. Follow returned chunkSize and expiry."
}CreateCommunityCustomRoleRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
name | string | Да | |
colorHex | string | Нет | Defaults to #8FAECF when omitted. |
permissions | array<CommunityAdministrationPermission> | Нет | |
showInMemberList | boolean | Нет | Default: true |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
},
"colorHex": {
"type": "string",
"description": "Defaults to #8FAECF when omitted."
},
"permissions": {
"type": "array",
"uniqueItems": true,
"items": {
"$ref": "#/components/schemas/CommunityAdministrationPermission"
}
},
"showInMemberList": {
"type": "boolean",
"default": true
}
}
}CreateCommunitySectionRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
name | string | Да | |
access | UpdateCommunityAccessRequest / null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
},
"access": {
"anyOf": [
{
"$ref": "#/components/schemas/UpdateCommunityAccessRequest"
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
}
}
}CreateE2eeDeviceTransferRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
transcript | string | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"transcript"
],
"properties": {
"transcript": {
"type": "string"
}
}
}CreateFeedbackRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
clientRequestId | string · uuid | Да | Stable idempotency key for this submission; reuse on retries. |
description | stringminLength=1; maxLength=500 | Да | Required user-written description, trimmed; bound is Unicode code points. |
platform | FeedbackPlatform | Да | |
imageUploadId | string · uuid · null | Нет | Optional account-owned READY image upload UUID, not a message attachment ID. |
appVersion | string · nullmaxLength=64 | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"clientRequestId",
"description",
"platform"
],
"properties": {
"clientRequestId": {
"type": "string",
"format": "uuid",
"description": "Stable idempotency key for this submission; reuse on retries."
},
"description": {
"type": "string",
"minLength": 1,
"maxLength": 500,
"description": "Required user-written description, trimmed; bound is Unicode code points."
},
"platform": {
"$ref": "#/components/schemas/FeedbackPlatform"
},
"imageUploadId": {
"type": "string",
"format": "uuid",
"nullable": true,
"description": "Optional account-owned READY image upload UUID, not a message attachment ID."
},
"appVersion": {
"type": "string",
"maxLength": 64,
"nullable": true
}
}
}CreateSecureCooperativeAdmissionRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
signedRequest | string | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"signedRequest": {
"type": "string"
}
},
"required": [
"signedRequest"
]
}CreateSocialPublicationRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
clientRequestId | string | Да | |
kind | SocialPublicationKind | Да | |
audience | SocialAudience | Нет | |
title | string · null | Нет | |
body | string | Нет | |
slides | array<SocialSlideRequest> | Нет | |
metadata | SocialPublicationMetadata / null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"clientRequestId": {
"type": "string"
},
"kind": {
"$ref": "#/components/schemas/SocialPublicationKind"
},
"audience": {
"$ref": "#/components/schemas/SocialAudience"
},
"title": {
"type": "string",
"nullable": true
},
"body": {
"type": "string"
},
"slides": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SocialSlideRequest"
}
},
"metadata": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/SocialPublicationMetadata"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
}
},
"required": [
"clientRequestId",
"kind"
]
}DeleteBrowserPushSubscriptionRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
endpoint | string | Да | |
bindingId | string · uuid · null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"endpoint"
],
"properties": {
"endpoint": {
"type": "string"
},
"bindingId": {
"type": "string",
"format": "uuid",
"nullable": true
}
}
}DeletePrivateBotReplyRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
requestId | string | Да | |
expectedRevision | integer · int32 | Да |
JSON Schema
{
"type": "object",
"properties": {
"requestId": {
"type": "string"
},
"expectedRevision": {
"type": "integer",
"format": "int32"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotPrivateReplyMutations.kt",
"line": 11
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"requestId",
"expectedRevision"
]
}DeleteSourceBotInteractionRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
requestId | string | Да | |
expectedSource | BotActionSource | Да |
JSON Schema
{
"type": "object",
"properties": {
"requestId": {
"type": "string"
},
"expectedSource": {
"$ref": "#/components/schemas/BotActionSource"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotSourceDeletion.kt",
"line": 10
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"requestId",
"expectedSource"
]
}DirectCallOutcome
string: RINGING, COMPLETED, NO_ANSWER, DECLINED_BY_PEER, CANCELLED_BY_CALLER
JSON Schema
{
"type": "string",
"enum": [
"RINGING",
"COMPLETED",
"NO_ANSWER",
"DECLINED_BY_PEER",
"CANCELLED_BY_CALLER"
]
}DirectCallState
string: RINGING, ACTIVE
JSON Schema
{
"type": "string",
"enum": [
"RINGING",
"ACTIVE"
]
}DirectChatContentPage
Bounded ascending-ID page of matching full timeline messages. Use nextBeforeId to load older matches when hasMore; omitted/null cursor means exhaustion.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
items | array<ForwardedDirectMessage> | Да | |
nextBeforeId | integer · int64 · nullminimum=1 | Нет | |
hasMore | boolean | Да |
JSON Schema
{
"type": "object",
"required": [
"items",
"hasMore"
],
"properties": {
"items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ForwardedDirectMessage"
}
},
"nextBeforeId": {
"type": "integer",
"format": "int64",
"nullable": true,
"minimum": 1
},
"hasMore": {
"type": "boolean"
}
},
"description": "Bounded ascending-ID page of matching full timeline messages. Use nextBeforeId to load older matches when hasMore; omitted/null cursor means exhaustion."
}DirectConversationListPageResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
items | array<DirectConversationResponse> | Да | |
nextCursor | string · null | Нет | |
hasMore | boolean | Да | |
order | DirectConversationOrder | Нет |
JSON Schema
{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/DirectConversationResponse"
}
},
"nextCursor": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"hasMore": {
"type": "boolean"
},
"order": {
"allOf": [
{
"$ref": "#/components/schemas/DirectConversationOrder"
}
],
"x-kotlin-default": "DirectConversationOrder.ACTIVITY"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/dm/DmDtos.kt",
"line": 46
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"items",
"hasMore"
],
"additionalProperties": false
}DirectConversationOrder
string: ACTIVITY, LAST_CALL
JSON Schema
{
"type": "string",
"enum": [
"ACTIVITY",
"LAST_CALL"
],
"x-source": {
"path": "src/main/kotlin/com/xchat/server/dm/DmDtos.kt",
"line": 43
}
}DirectConversationResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64 | Да | |
participantUserId | integer · int64 | Да | |
participantUserIdentifier | string | Да | |
participantDisplayName | string | Да | |
participantAvatarUrl | string · null | Нет | |
participantOnline | boolean | Да | |
relationStatus | DirectFriendRelationStatus | Да | |
activeFriendRequestId | integer · int64 · null | Нет | |
canSendMessages | boolean | Да | |
lastMessagePreview | string · null | Нет | |
lastMessage | DirectMessageResponse / null | Нет | |
participantIsBot | boolean | Нет | Default: false |
lastCallAt | string · date-time · null | Нет | Start of the latest persisted incoming or outgoing DIRECT audio/video call attempt; absent/null when no call is known. Text activity never changes it. |
JSON Schema
{
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"participantUserId": {
"type": "integer",
"format": "int64"
},
"participantUserIdentifier": {
"type": "string"
},
"participantDisplayName": {
"type": "string"
},
"participantAvatarUrl": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"participantOnline": {
"type": "boolean"
},
"relationStatus": {
"$ref": "#/components/schemas/DirectFriendRelationStatus"
},
"activeFriendRequestId": {
"type": "integer",
"format": "int64",
"nullable": true,
"x-kotlin-default": "null"
},
"canSendMessages": {
"type": "boolean"
},
"lastMessagePreview": {
"type": "string",
"nullable": true
},
"lastMessage": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/DirectMessageResponse"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
],
"x-kotlin-default": "null"
},
"participantIsBot": {
"type": "boolean",
"default": false,
"x-kotlin-default": "false"
},
"lastCallAt": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null",
"format": "date-time",
"description": "Start of the latest persisted incoming or outgoing DIRECT audio/video call attempt; absent/null when no call is known. Text activity never changes it."
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/dm/DmDtos.kt",
"line": 25
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"id",
"participantUserId",
"participantUserIdentifier",
"participantDisplayName",
"participantOnline",
"relationStatus",
"canSendMessages"
],
"additionalProperties": false
}DirectFriendRelationStatus
string: NONE, OUTGOING_REQUEST, INCOMING_REQUEST, FRIENDS, BLOCKED_BY_ME, BLOCKED_BY_OTHER
JSON Schema
{
"type": "string",
"enum": [
"NONE",
"OUTGOING_REQUEST",
"INCOMING_REQUEST",
"FRIENDS",
"BLOCKED_BY_ME",
"BLOCKED_BY_OTHER"
],
"x-source": {
"path": "src/main/kotlin/com/xchat/server/dm/DmDtos.kt",
"line": 15
}
}DirectMessageResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64 | Да | |
conversationId | integer · int64 | Да | |
authorId | integer · int64 | Да | |
content | string | Да | |
messageType | DirectMessageTypeResponse | Да | |
friendRequestId | integer · int64 · null | Нет | |
mediaContentType | string · null | Нет | |
mediaThumbnailUrl | string · null | Нет | |
friendRequestRequesterId | integer · int64 · null | Нет | |
friendRequestRequesterDisplayName | string · null | Нет | |
friendRequestTargetUserId | integer · int64 · null | Нет | |
friendRequestStatus | string · null | Нет | |
communityInviteId | integer · int64 · null | Нет | |
communityInviteIdentifier | string · null | Нет | |
communityInviteName | string · null | Нет | |
communityInviteDescription | string · null | Нет | |
directCallSessionId | integer · int64 · null | Нет | |
directCallOutcome | DirectCallOutcome / null | Нет | |
directCallDurationSeconds | integer · int64 · null | Нет | |
directCallHadVideo | boolean | Нет | |
createdAt | string | Да | |
editedAt | string · null | Нет | |
clientMessageId | string · null | Нет | |
reactions | array<MessageReactionResponse> | Нет | |
pinned | boolean | Нет | |
pinnedByUserId | integer · int64 · null | Нет | |
pinnedAt | string · null | Нет | |
threadReplyCount | integer · int32 | Нет | |
threadRevision | integer · int64minimum=0 | Нет | |
attachments | array<ChatAttachmentResponse> | Нет | |
delivery | MessageReceiptSummaryResponse / null | Нет | |
forwardedFrom | ForwardedMessageAttribution / null | Нет | |
encryptedEnvelope | string · null | Нет | Legacy encrypted-content field; managed writes omit it. |
encryptionRevision | integer · int32 · null | Нет | |
replyToMessageId | integer · int64 · null | Нет | |
authorIsBot | boolean | Нет | |
managedBody | object · null | Нет | Server-readable structured content, validated by the owning message operation. Managed writers omit legacy encryptedEnvelope; transport encryption and server ACL still apply. |
contentRevision | integer · int32 | Нет | Default: 0 |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"conversationId": {
"type": "integer",
"format": "int64"
},
"authorId": {
"type": "integer",
"format": "int64"
},
"content": {
"type": "string"
},
"messageType": {
"$ref": "#/components/schemas/DirectMessageTypeResponse"
},
"friendRequestId": {
"type": "integer",
"format": "int64",
"nullable": true
},
"mediaContentType": {
"type": "string",
"nullable": true
},
"mediaThumbnailUrl": {
"type": "string",
"nullable": true
},
"friendRequestRequesterId": {
"type": "integer",
"format": "int64",
"nullable": true
},
"friendRequestRequesterDisplayName": {
"type": "string",
"nullable": true
},
"friendRequestTargetUserId": {
"type": "integer",
"format": "int64",
"nullable": true
},
"friendRequestStatus": {
"type": "string",
"nullable": true
},
"communityInviteId": {
"type": "integer",
"format": "int64",
"nullable": true
},
"communityInviteIdentifier": {
"type": "string",
"nullable": true
},
"communityInviteName": {
"type": "string",
"nullable": true
},
"communityInviteDescription": {
"type": "string",
"nullable": true
},
"directCallSessionId": {
"type": "integer",
"format": "int64",
"nullable": true
},
"directCallOutcome": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/DirectCallOutcome"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"directCallDurationSeconds": {
"type": "integer",
"format": "int64",
"nullable": true
},
"directCallHadVideo": {
"type": "boolean"
},
"createdAt": {
"type": "string"
},
"editedAt": {
"type": "string",
"nullable": true
},
"clientMessageId": {
"type": "string",
"nullable": true
},
"reactions": {
"type": "array",
"items": {
"$ref": "#/components/schemas/MessageReactionResponse"
}
},
"pinned": {
"type": "boolean"
},
"pinnedByUserId": {
"type": "integer",
"format": "int64",
"nullable": true
},
"pinnedAt": {
"type": "string",
"nullable": true
},
"threadReplyCount": {
"type": "integer",
"format": "int32"
},
"threadRevision": {
"type": "integer",
"format": "int64",
"minimum": 0
},
"attachments": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ChatAttachmentResponse"
}
},
"delivery": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/MessageReceiptSummaryResponse"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"forwardedFrom": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/ForwardedMessageAttribution"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"encryptedEnvelope": {
"type": "string",
"nullable": true,
"deprecated": true,
"description": "Legacy encrypted-content field; managed writes omit it."
},
"encryptionRevision": {
"type": "integer",
"format": "int32",
"nullable": true
},
"replyToMessageId": {
"type": "integer",
"format": "int64",
"nullable": true
},
"authorIsBot": {
"type": "boolean"
},
"managedBody": {
"type": "object",
"additionalProperties": true,
"description": "Server-readable structured content, validated by the owning message operation. Managed writers omit legacy encryptedEnvelope; transport encryption and server ACL still apply.",
"nullable": true,
"x-kotlin-default": "null"
},
"contentRevision": {
"type": "integer",
"format": "int32",
"default": 0,
"x-kotlin-default": "0"
}
},
"required": [
"id",
"conversationId",
"authorId",
"content",
"messageType",
"createdAt"
]
}DirectMessageTypeResponse
string: TEXT, IMAGE, ATTACHMENT, FRIEND_REQUEST_SYSTEM, VOICE_CALL_SYSTEM, COMMUNITY_INVITE_SYSTEM
JSON Schema
{
"type": "string",
"enum": [
"TEXT",
"IMAGE",
"ATTACHMENT",
"FRIEND_REQUEST_SYSTEM",
"VOICE_CALL_SYSTEM",
"COMMUNITY_INVITE_SYSTEM"
]
}E2eeAudienceResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
identities | array<E2eeIdentityResponse> | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"identities"
],
"properties": {
"identities": {
"type": "array",
"items": {
"$ref": "#/components/schemas/E2eeIdentityResponse"
}
}
}
}E2eeBackupResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
identity | E2eeIdentityResponse / null | Нет | |
recoveryBackup | string · nullmaxLength=65536 | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"identity": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/E2eeIdentityResponse"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"recoveryBackup": {
"type": "string",
"nullable": true,
"maxLength": 65536,
"x-sensitive": true
}
}
}E2eeDeviceCertificate
| Поле | Тип | Без default | Описание |
|---|---|---|---|
version | integer · int32 | Нет | |
purpose | string | Нет | |
userId | integer · int64 | Да | |
deviceId | string | Да | |
signingKey | string | Да | |
encryptionKey | string | Да | |
createdAtEpochMillis | integer · int64 | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"userId",
"deviceId",
"signingKey",
"encryptionKey",
"createdAtEpochMillis"
],
"properties": {
"version": {
"type": "integer",
"format": "int32"
},
"purpose": {
"type": "string"
},
"userId": {
"type": "integer",
"format": "int64"
},
"deviceId": {
"type": "string"
},
"signingKey": {
"type": "string"
},
"encryptionKey": {
"type": "string"
},
"createdAtEpochMillis": {
"type": "integer",
"format": "int64"
}
}
}E2eeDeviceResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
deviceId | string | Да | |
certificate | string | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"deviceId",
"certificate"
],
"properties": {
"deviceId": {
"type": "string"
},
"certificate": {
"type": "string"
}
}
}E2eeDeviceTransferClaims
| Поле | Тип | Без default | Описание |
|---|---|---|---|
version | integer · int32 | Нет | |
purpose | string | Нет | |
userId | integer · int64 | Да | |
approverDeviceId | string | Да | |
transcript | string | Да | |
ciphertext | string | Да | |
ciphertextSha256 | string | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"userId",
"approverDeviceId",
"transcript",
"ciphertext",
"ciphertextSha256"
],
"properties": {
"version": {
"type": "integer",
"format": "int32"
},
"purpose": {
"type": "string"
},
"userId": {
"type": "integer",
"format": "int64"
},
"approverDeviceId": {
"type": "string"
},
"transcript": {
"type": "string"
},
"ciphertext": {
"type": "string"
},
"ciphertextSha256": {
"type": "string"
}
}
}E2eeDeviceTransferResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
transcript | string | Да | |
signedTransfer | string · null | Нет | |
status | string: PENDING, APPROVED, CONSUMED | Да | |
serverTimeEpochMillis | integer · int64 · null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"transcript",
"status"
],
"properties": {
"transcript": {
"type": "string"
},
"signedTransfer": {
"type": "string",
"nullable": true
},
"status": {
"type": "string",
"enum": [
"PENDING",
"APPROVED",
"CONSUMED"
]
},
"serverTimeEpochMillis": {
"type": "integer",
"format": "int64",
"nullable": true
}
}
}E2eeDeviceTransferTranscript
| Поле | Тип | Без default | Описание |
|---|---|---|---|
version | integer · int32 | Нет | |
purpose | string | Нет | |
requestId | string | Да | |
userId | integer · int64 | Да | |
recipientDeviceId | string | Да | |
recipientEncryptionKey | string | Да | |
createdAtEpochMillis | integer · int64 | Да | |
expiresAtEpochMillis | integer · int64 | Да | |
rootFingerprint | string | Да | |
archiveFingerprint | string | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"requestId",
"userId",
"recipientDeviceId",
"recipientEncryptionKey",
"createdAtEpochMillis",
"expiresAtEpochMillis",
"rootFingerprint",
"archiveFingerprint"
],
"properties": {
"version": {
"type": "integer",
"format": "int32"
},
"purpose": {
"type": "string"
},
"requestId": {
"type": "string"
},
"userId": {
"type": "integer",
"format": "int64"
},
"recipientDeviceId": {
"type": "string"
},
"recipientEncryptionKey": {
"type": "string"
},
"createdAtEpochMillis": {
"type": "integer",
"format": "int64"
},
"expiresAtEpochMillis": {
"type": "integer",
"format": "int64"
},
"rootFingerprint": {
"type": "string"
},
"archiveFingerprint": {
"type": "string"
}
}
}E2eeEnvelopeClaims
| Поле | Тип | Без default | Описание |
|---|---|---|---|
version | integer · int32 | Нет | |
purpose | string | Да | |
scopeId | integer · int64 | Да | |
senderId | integer · int64 | Да | |
senderDeviceId | string | Да | |
clientMessageId | string | Да | |
revision | integer · int32 | Нет | |
messageId | integer · int64 · null | Нет | |
rootMessageId | integer · int64 · null | Нет | |
ciphertext | stringmaxLength=262144 | Да | |
attachmentUploadIds | array<string> | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"purpose",
"scopeId",
"senderId",
"senderDeviceId",
"clientMessageId",
"ciphertext"
],
"properties": {
"version": {
"type": "integer",
"format": "int32"
},
"purpose": {
"type": "string"
},
"scopeId": {
"type": "integer",
"format": "int64"
},
"senderId": {
"type": "integer",
"format": "int64"
},
"senderDeviceId": {
"type": "string"
},
"clientMessageId": {
"type": "string"
},
"revision": {
"type": "integer",
"format": "int32"
},
"messageId": {
"type": "integer",
"format": "int64",
"nullable": true
},
"rootMessageId": {
"type": "integer",
"format": "int64",
"nullable": true
},
"ciphertext": {
"type": "string",
"maxLength": 262144,
"x-sensitive": true
},
"attachmentUploadIds": {
"type": "array",
"items": {
"type": "string"
}
}
}
}E2eeIdentityProof
| Поле | Тип | Без default | Описание |
|---|---|---|---|
version | integer · int32 | Нет | |
purpose | string | Нет | |
userId | integer · int64 | Да | |
rootSigningKey | string | Да | |
recoveryEncryptionKey | string | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"userId",
"rootSigningKey",
"recoveryEncryptionKey"
],
"properties": {
"version": {
"type": "integer",
"format": "int32"
},
"purpose": {
"type": "string"
},
"userId": {
"type": "integer",
"format": "int64"
},
"rootSigningKey": {
"type": "string"
},
"recoveryEncryptionKey": {
"type": "string"
}
}
}E2eeIdentityResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
userId | integer · int64 | Да | |
rootSigningKey | string | Да | |
recoveryEncryptionKey | string | Да | |
identityProof | string | Да | |
devices | array<E2eeDeviceResponse> | Да | |
previousDeviceCertificates | array<string> | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"userId",
"rootSigningKey",
"recoveryEncryptionKey",
"identityProof",
"devices"
],
"properties": {
"userId": {
"type": "integer",
"format": "int64"
},
"rootSigningKey": {
"type": "string"
},
"recoveryEncryptionKey": {
"type": "string"
},
"identityProof": {
"type": "string"
},
"devices": {
"type": "array",
"items": {
"$ref": "#/components/schemas/E2eeDeviceResponse"
}
},
"previousDeviceCertificates": {
"type": "array",
"items": {
"type": "string"
}
}
}
}E2eePassphraseBackupClaims
| Поле | Тип | Без default | Описание |
|---|---|---|---|
version | integer · int32 | Нет | |
purpose | string | Нет | |
userId | integer · int64 | Да | |
revision | integer · int32 | Да | |
salt | string | Да | |
iterations | integer · int32 | Да | |
rootFingerprint | string | Да | |
archiveFingerprint | string | Да | |
ciphertext | string | Да | |
ciphertextSha256 | string | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"userId",
"revision",
"salt",
"iterations",
"rootFingerprint",
"archiveFingerprint",
"ciphertext",
"ciphertextSha256"
],
"properties": {
"version": {
"type": "integer",
"format": "int32"
},
"purpose": {
"type": "string"
},
"userId": {
"type": "integer",
"format": "int64"
},
"revision": {
"type": "integer",
"format": "int32"
},
"salt": {
"type": "string"
},
"iterations": {
"type": "integer",
"format": "int32"
},
"rootFingerprint": {
"type": "string"
},
"archiveFingerprint": {
"type": "string"
},
"ciphertext": {
"type": "string"
},
"ciphertextSha256": {
"type": "string"
}
}
}E2eePassphraseBackupResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
revision | integer · int32 | Да | |
signedBackup | string · null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"revision"
],
"properties": {
"revision": {
"type": "integer",
"format": "int32"
},
"signedBackup": {
"type": "string",
"nullable": true
}
}
}E2eeRecoveryTimeResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
serverTimeEpochMillis | integer · int64 | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"serverTimeEpochMillis"
],
"properties": {
"serverTimeEpochMillis": {
"type": "integer",
"format": "int64"
}
}
}E2eeRoomEpochResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
protocolVersion | integer · int32 | Нет | |
contextType | MediaContextType | Да | |
sessionId | integer · int64 | Да | |
leaseId | integer · int64 | Да | |
generation | integer · int32 | Да | |
epoch | string | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"contextType",
"sessionId",
"leaseId",
"generation",
"epoch"
],
"properties": {
"protocolVersion": {
"type": "integer",
"format": "int32"
},
"contextType": {
"$ref": "#/components/schemas/MediaContextType"
},
"sessionId": {
"type": "integer",
"format": "int64"
},
"leaseId": {
"type": "integer",
"format": "int64"
},
"generation": {
"type": "integer",
"format": "int32"
},
"epoch": {
"type": "string"
}
}
}E2eeRoomKeyClaims
| Поле | Тип | Без default | Описание |
|---|---|---|---|
version | integer · int32 | Нет | |
purpose | string | Нет | |
contextType | MediaContextType | Да | |
sessionId | integer · int64 | Да | |
epoch | string | Да | |
leaderUserId | integer · int64 | Да | |
leaderDeviceId | string | Да | |
ciphertext | stringmaxLength=262144 | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"contextType",
"sessionId",
"epoch",
"leaderUserId",
"leaderDeviceId",
"ciphertext"
],
"properties": {
"version": {
"type": "integer",
"format": "int32"
},
"purpose": {
"type": "string"
},
"contextType": {
"$ref": "#/components/schemas/MediaContextType"
},
"sessionId": {
"type": "integer",
"format": "int64"
},
"epoch": {
"type": "string"
},
"leaderUserId": {
"type": "integer",
"format": "int64"
},
"leaderDeviceId": {
"type": "string"
},
"ciphertext": {
"type": "string",
"maxLength": 262144,
"x-sensitive": true
}
}
}E2eeRoomMember
| Поле | Тип | Без default | Описание |
|---|---|---|---|
userId | integer · int64 | Да | |
deviceId | string | Да | |
leaseId | integer · int64 | Да | |
generation | integer · int32 | Да | |
participationId | string | Да | |
identity | E2eeIdentityResponse | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"userId",
"deviceId",
"leaseId",
"generation",
"participationId",
"identity"
],
"properties": {
"userId": {
"type": "integer",
"format": "int64"
},
"deviceId": {
"type": "string"
},
"leaseId": {
"type": "integer",
"format": "int64"
},
"generation": {
"type": "integer",
"format": "int32"
},
"participationId": {
"type": "string"
},
"identity": {
"$ref": "#/components/schemas/E2eeIdentityResponse"
}
}
}E2eeRoomStateRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
contextType | MediaContextType | Да | |
sessionId | integer · int64 | Да | |
leaseId | integer · int64 | Да | |
generation | integer · int32 | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"contextType",
"sessionId",
"leaseId",
"generation"
],
"properties": {
"contextType": {
"$ref": "#/components/schemas/MediaContextType"
},
"sessionId": {
"type": "integer",
"format": "int64"
},
"leaseId": {
"type": "integer",
"format": "int64"
},
"generation": {
"type": "integer",
"format": "int32"
}
}
}E2eeRoomStateResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
protocolVersion | integer · int32 | Нет | |
contextType | MediaContextType | Да | |
sessionId | integer · int64 | Да | |
epoch | string | Да | |
leaderUserId | integer · int64 | Да | |
leaderDeviceId | string | Да | |
members | array<E2eeRoomMember> | Да | |
envelope | string · nullmaxLength=262144 | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"contextType",
"sessionId",
"epoch",
"leaderUserId",
"leaderDeviceId",
"members"
],
"properties": {
"protocolVersion": {
"type": "integer",
"format": "int32"
},
"contextType": {
"$ref": "#/components/schemas/MediaContextType"
},
"sessionId": {
"type": "integer",
"format": "int64"
},
"epoch": {
"type": "string"
},
"leaderUserId": {
"type": "integer",
"format": "int64"
},
"leaderDeviceId": {
"type": "string"
},
"members": {
"type": "array",
"items": {
"$ref": "#/components/schemas/E2eeRoomMember"
}
},
"envelope": {
"type": "string",
"nullable": true,
"maxLength": 262144,
"x-sensitive": true
}
}
}EditPrivateBotReplyRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
requestId | string | Да | |
expectedRevision | integer · int32 | Да | |
encryptedEnvelope | string · null | Нет | |
managedBody | object · null | Нет | Explicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules. |
JSON Schema
{
"type": "object",
"properties": {
"requestId": {
"type": "string"
},
"expectedRevision": {
"type": "integer",
"format": "int32"
},
"encryptedEnvelope": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"managedBody": {
"type": "object",
"additionalProperties": true,
"description": "Explicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules.",
"nullable": true,
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotPrivateReplyMutations.kt",
"line": 9
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"requestId",
"expectedRevision"
]
}EmailChangeChallengeResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
challengeId | string · uuid | Да | |
expiresAtEpochMillis | integer · int64minimum=0 | Да | |
resendAfterEpochMillis | integer · int64minimum=0 | Да | |
currentEmailConfirmationRequired | boolean | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"challengeId",
"expiresAtEpochMillis",
"resendAfterEpochMillis",
"currentEmailConfirmationRequired"
],
"properties": {
"challengeId": {
"type": "string",
"format": "uuid"
},
"expiresAtEpochMillis": {
"type": "integer",
"format": "int64",
"minimum": 0
},
"resendAfterEpochMillis": {
"type": "integer",
"format": "int64",
"minimum": 0
},
"currentEmailConfirmationRequired": {
"type": "boolean"
}
}
}EmailChangeConfirmRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
challengeId | string · uuid | Да | |
code | stringpattern=^[0-9]{6}$ | Да | |
currentEmailCode | string · nullpattern=^[0-9]{6}$ | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"challengeId",
"code"
],
"properties": {
"challengeId": {
"type": "string",
"format": "uuid"
},
"code": {
"type": "string",
"pattern": "^[0-9]{6}$",
"writeOnly": true,
"x-sensitive": true
},
"currentEmailCode": {
"type": "string",
"pattern": "^[0-9]{6}$",
"writeOnly": true,
"x-sensitive": true,
"nullable": true
}
}
}EmailChangeRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
email | string · emailmaxLength=255 | Да | |
currentPassword | string · passwordminLength=8; maxLength=72 | Да | Must contain 8 or more characters and encode to at most 72 UTF-8 bytes. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"email",
"currentPassword"
],
"properties": {
"email": {
"type": "string",
"format": "email",
"maxLength": 255
},
"currentPassword": {
"type": "string",
"format": "password",
"minLength": 8,
"maxLength": 72,
"description": "Must contain 8 or more characters and encode to at most 72 UTF-8 bytes.",
"writeOnly": true,
"x-sensitive": true
}
}
}EmojiItemResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64 | Да | |
packId | integer · int64 | Да | |
shortcode | string | Да | |
imageUrl | string | Да | |
contentType | string | Да | |
animated | boolean | Да | |
kind | EmojiPackKind / null | Нет | Actual parent pack kind, including items from private personal packs. Absent on legacy servers. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"packId",
"shortcode",
"imageUrl",
"contentType",
"animated"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"packId": {
"type": "integer",
"format": "int64"
},
"shortcode": {
"type": "string"
},
"imageUrl": {
"type": "string"
},
"contentType": {
"type": "string"
},
"animated": {
"type": "boolean"
},
"kind": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/EmojiPackKind"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
],
"description": "Actual parent pack kind, including items from private personal packs. Absent on legacy servers."
}
}
}EmojiPackKind
string: EMOJI, STICKER
JSON Schema
{
"type": "string",
"enum": [
"EMOJI",
"STICKER"
]
}EncryptedPosterResource
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
uploadId | string · uuid | Да | |
contentType | string: application/vnd.teamyfy.e2ee | Да | |
sizeBytes | integer · int64minimum=1; maximum=524288 | Да | |
mediaUrl | string | Да | Private ciphertext URL; authorization remains bound to the original current message. |
JSON Schema
{
"type": "object",
"properties": {
"uploadId": {
"type": "string",
"format": "uuid"
},
"contentType": {
"type": "string",
"enum": [
"application/vnd.teamyfy.e2ee"
]
},
"sizeBytes": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 524288
},
"mediaUrl": {
"type": "string",
"description": "Private ciphertext URL; authorization remains bound to the original current message."
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/media/poster/EncryptedPosterModels.kt",
"line": 9
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"uploadId",
"contentType",
"sizeBytes",
"mediaUrl"
],
"additionalProperties": false
}EncryptedPosterResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
version | integer · int32 | Нет | Default: 1 |
originalAttachmentId | integer · int64 | Да | |
poster | EncryptedPosterResource | Да | |
encryptedDescriptor | string | Да |
JSON Schema
{
"type": "object",
"properties": {
"version": {
"type": "integer",
"format": "int32",
"default": 1,
"x-kotlin-default": "1"
},
"originalAttachmentId": {
"type": "integer",
"format": "int64"
},
"poster": {
"$ref": "#/components/schemas/EncryptedPosterResource"
},
"encryptedDescriptor": {
"type": "string"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/media/poster/EncryptedPosterModels.kt",
"line": 12
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"originalAttachmentId",
"poster",
"encryptedDescriptor"
],
"additionalProperties": false
}ErrorResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
message | string | Да | |
code | string · null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"message"
],
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string",
"nullable": true
}
}
}ExternalVideoMetadataV1
| Поле | Тип | Без default | Описание |
|---|---|---|---|
provider | ExternalVideoProviderV1 | Да | |
videoId | stringminLength=1; maxLength=32; pattern=^[A-Za-z0-9_-]+$ | Да | |
ownerId | string · nullmaxLength=20; pattern=^-?[0-9]+$ | Нет | |
startSeconds | integer · int32 · nullminimum=1; maximum=86400 | Нет | |
canonicalUrl | string · urimaxLength=2000 | Да | |
posterUrl | string · uri · nullmaxLength=2000 | Нет | |
sourceWidth | integer · int32 · nullminimum=1; maximum=16384 | Нет | Provider-reported source video width. Absent when the source geometry was not independently verified. |
sourceHeight | integer · int32 · nullminimum=1; maximum=16384 | Нет | Provider-reported source video height. Absent when the source geometry was not independently verified. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"provider",
"videoId",
"canonicalUrl"
],
"properties": {
"provider": {
"$ref": "#/components/schemas/ExternalVideoProviderV1"
},
"videoId": {
"type": "string",
"minLength": 1,
"maxLength": 32,
"pattern": "^[A-Za-z0-9_-]+$"
},
"ownerId": {
"type": "string",
"maxLength": 20,
"pattern": "^-?[0-9]+$",
"nullable": true
},
"startSeconds": {
"type": "integer",
"format": "int32",
"minimum": 1,
"maximum": 86400,
"nullable": true
},
"canonicalUrl": {
"type": "string",
"format": "uri",
"maxLength": 2000
},
"posterUrl": {
"type": "string",
"format": "uri",
"maxLength": 2000,
"nullable": true
},
"sourceWidth": {
"type": "integer",
"format": "int32",
"minimum": 1,
"maximum": 16384,
"nullable": true,
"description": "Provider-reported source video width. Absent when the source geometry was not independently verified."
},
"sourceHeight": {
"type": "integer",
"format": "int32",
"minimum": 1,
"maximum": 16384,
"nullable": true,
"description": "Provider-reported source video height. Absent when the source geometry was not independently verified."
}
}
}ExternalVideoProviderV1
string: YOUTUBE, VK_VIDEO, RUTUBE
JSON Schema
{
"type": "string",
"enum": [
"YOUTUBE",
"VK_VIDEO",
"RUTUBE"
]
}FeedbackPlatform
string: WEB, DESKTOP, ANDROID
JSON Schema
{
"type": "string",
"enum": [
"WEB",
"DESKTOP",
"ANDROID"
]
}FeedbackResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64minimum=1 | Да | |
clientRequestId | string · uuid | Да | |
createdAt | string · date-time | Да | |
hasImage | boolean | Да | No image URL is exposed by this response. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"clientRequestId",
"createdAt",
"hasImage"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"clientRequestId": {
"type": "string",
"format": "uuid"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"hasImage": {
"type": "boolean",
"description": "No image URL is exposed by this response."
}
}
}ForwardMessageRequest
Forward one visible root message into a writable direct conversation or TEXT channel. IDs name conversation/channel scopes; the stable clientMessageId binds retries to the exact source tuple and target. System messages and event/poll/news cards are rejected.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
sourceScopeType | string: DIRECT, CHANNEL | Да | |
sourceScopeId | integer · int64minimum=1 | Да | |
sourceMessageId | integer · int64minimum=1 | Да | |
targetScopeType | string: DIRECT, CHANNEL | Да | |
targetScopeId | integer · int64minimum=1 | Да | |
clientMessageId | stringminLength=8; maxLength=64; pattern=^[A-Za-z0-9][A-Za-z0-9._:-]{7,63}$ | Да | |
decryptedContent | string · nullmaxLength=2000 | Нет | Explicit client-decrypted content only when forwarding an encrypted direct message into a channel. |
attachmentUploadIds | array<string> | Нет | New owned plaintext uploads for explicit encrypted-direct-to-channel forwarding. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"sourceScopeType",
"sourceScopeId",
"sourceMessageId",
"targetScopeType",
"targetScopeId",
"clientMessageId"
],
"properties": {
"sourceScopeType": {
"type": "string",
"enum": [
"DIRECT",
"CHANNEL"
]
},
"sourceScopeId": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"sourceMessageId": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"targetScopeType": {
"type": "string",
"enum": [
"DIRECT",
"CHANNEL"
]
},
"targetScopeId": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"clientMessageId": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{7,63}$",
"minLength": 8,
"maxLength": 64
},
"decryptedContent": {
"type": "string",
"nullable": true,
"maxLength": 2000,
"description": "Explicit client-decrypted content only when forwarding an encrypted direct message into a channel."
},
"attachmentUploadIds": {
"type": "array",
"maxItems": 10,
"items": {
"type": "string"
},
"description": "New owned plaintext uploads for explicit encrypted-direct-to-channel forwarding."
}
},
"description": "Forward one visible root message into a writable direct conversation or TEXT channel. IDs name conversation/channel scopes; the stable clientMessageId binds retries to the exact source tuple and target. System messages and event/poll/news cards are rejected."
}ForwardMessageResponse
Exactly the matching directMessage or channelMessage is present. Identical retries return the same persisted copy; conflicting reuse returns 409. Forwarded messages cannot be edited while carrying original attribution.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
scopeType | string: DIRECT, CHANNEL | Да | |
scopeId | integer · int64minimum=1 | Да | |
directMessage | ForwardedDirectMessage / null | Нет | |
channelMessage | ForwardedChannelMessage / null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"scopeType",
"scopeId"
],
"properties": {
"scopeType": {
"type": "string",
"enum": [
"DIRECT",
"CHANNEL"
]
},
"scopeId": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"directMessage": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/ForwardedDirectMessage"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"channelMessage": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/ForwardedChannelMessage"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
}
},
"description": "Exactly the matching directMessage or channelMessage is present. Identical retries return the same persisted copy; conflicting reuse returns 409. Forwarded messages cannot be edited while carrying original attribution."
}ForwardedChannelMessage
Existing full timeline message DTO with additive forwardedFrom. The sender remains authorId. Media metadata and generated attachment download IDs belong to the new destination; no blob reupload occurs.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64minimum=1 | Да | |
channelId | integer · int64minimum=1 | Да | |
authorId | integer · int64minimum=1 | Да | |
content | string | Да | |
createdAt | string · date-time | Да | |
forwardedFrom | ForwardedMessageAttribution | Нет | |
attachments | array<ChatAttachmentResponse> | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": true,
"required": [
"id",
"channelId",
"authorId",
"content",
"createdAt"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"channelId": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"authorId": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"content": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"forwardedFrom": {
"$ref": "#/components/schemas/ForwardedMessageAttribution"
},
"attachments": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ChatAttachmentResponse"
}
}
},
"description": "Existing full timeline message DTO with additive forwardedFrom. The sender remains authorId. Media metadata and generated attachment download IDs belong to the new destination; no blob reupload occurs."
}ForwardedDirectMessage
Existing full timeline message DTO with additive forwardedFrom. The sender remains authorId. Media metadata and generated attachment download IDs belong to the new destination; no blob reupload occurs.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64minimum=1 | Да | |
conversationId | integer · int64minimum=1 | Да | |
authorId | integer · int64minimum=1 | Да | |
content | string | Да | |
createdAt | string · date-time | Да | |
forwardedFrom | ForwardedMessageAttribution | Нет | |
attachments | array<ChatAttachmentResponse> | Нет | |
encryptedEnvelope | string · nullmaxLength=262144 | Нет | |
encryptionRevision | integer · int32 · nullminimum=0 | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": true,
"required": [
"id",
"conversationId",
"authorId",
"content",
"createdAt"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"conversationId": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"authorId": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"content": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"forwardedFrom": {
"$ref": "#/components/schemas/ForwardedMessageAttribution"
},
"attachments": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ChatAttachmentResponse"
}
},
"encryptedEnvelope": {
"type": "string",
"nullable": true,
"maxLength": 262144,
"x-sensitive": true
},
"encryptionRevision": {
"type": "integer",
"format": "int32",
"nullable": true,
"minimum": 0
}
},
"description": "Existing full timeline message DTO with additive forwardedFrom. The sender remains authorId. Media metadata and generated attachment download IDs belong to the new destination; no blob reupload occurs."
}ForwardedMessageAttribution
Immutable public identity snapshot from the original author and source community. Reforwarding preserves it. Private aliases, conversation ids and source message ids are never exposed.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
authorId | integer · int64minimum=1 | Да | |
authorDisplayName | string | Да | |
authorPublicIdentifier | string | Да | |
communityId | integer · int64 · nullminimum=1 | Нет | |
communityName | string · null | Нет | |
communityPublicIdentifier | string · null | Нет | |
authorIsBot | boolean | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"authorId",
"authorDisplayName",
"authorPublicIdentifier"
],
"properties": {
"authorId": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"authorDisplayName": {
"type": "string"
},
"authorPublicIdentifier": {
"type": "string"
},
"communityId": {
"type": "integer",
"format": "int64",
"minimum": 1,
"nullable": true
},
"communityName": {
"type": "string",
"nullable": true
},
"communityPublicIdentifier": {
"type": "string",
"nullable": true
},
"authorIsBot": {
"type": "boolean"
}
},
"description": "Immutable public identity snapshot from the original author and source community. Reforwarding preserves it. Private aliases, conversation ids and source message ids are never exposed."
}FriendActivityBatchResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
items | array<FriendActivityResponse> | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"items"
],
"properties": {
"items": {
"type": "array",
"maxItems": 100,
"items": {
"$ref": "#/components/schemas/FriendActivityResponse"
}
}
}
}FriendActivityRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
userIds | array<integer · int64minimum=1; maximum=9223372036854775807> | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"userIds"
],
"properties": {
"userIds": {
"type": "array",
"minItems": 1,
"maxItems": 100,
"items": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
}
}
}
}FriendActivityResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
userId | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
activityType | FriendActivityType / null | Нет | |
activityCommunityName | string · null | Нет | |
activityChannelName | string · null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"userId"
],
"properties": {
"userId": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
},
"activityType": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/FriendActivityType"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"activityCommunityName": {
"type": "string",
"nullable": true
},
"activityChannelName": {
"type": "string",
"nullable": true
}
}
}FriendActivityType
string: VOICE_CHANNEL, STREAM
JSON Schema
{
"type": "string",
"enum": [
"VOICE_CHANNEL",
"STREAM"
]
}InspectBotActionsRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
applicationId | string | Да | |
source | BotActionSource | Да | |
actionIds | array<string> | Да |
JSON Schema
{
"type": "object",
"properties": {
"applicationId": {
"type": "string"
},
"source": {
"$ref": "#/components/schemas/BotActionSource"
},
"actionIds": {
"type": "array",
"items": {
"type": "string"
}
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotInteractionActions.kt",
"line": 18
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"applicationId",
"source",
"actionIds"
]
}IssuedBotCredentialResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
credential | BotCredentialResponse | Да | |
token | string | Да |
JSON Schema
{
"type": "object",
"properties": {
"credential": {
"$ref": "#/components/schemas/BotCredentialResponse"
},
"token": {
"type": "string"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotModels.kt",
"line": 55
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"credential",
"token"
]
}IssuedBotInstallationKeyResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | string | Да | |
applicationId | string | Да | |
key | string | Да | |
createdAt | string | Да |
JSON Schema
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"applicationId": {
"type": "string"
},
"key": {
"type": "string"
},
"createdAt": {
"type": "string"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotApplicationDiscovery.kt",
"line": 21
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"id",
"applicationId",
"key",
"createdAt"
]
}JoinBotVoiceRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
installationId | string | Да | |
channelId | string | Да | |
listen | boolean | Нет | Default: false |
encryptionProtocolVersion | integer · int32 | Нет | Default: 1 |
JSON Schema
{
"type": "object",
"properties": {
"installationId": {
"type": "string"
},
"channelId": {
"type": "string"
},
"listen": {
"type": "boolean",
"default": false,
"x-kotlin-default": "false"
},
"encryptionProtocolVersion": {
"type": "integer",
"format": "int32",
"default": 1,
"x-kotlin-default": "1"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotVoiceService.kt",
"line": 17
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"installationId",
"channelId"
]
}LessonAttendeeRecipient
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
userId | integer · int64 | Да | |
attendanceId | string | Да | |
rootKeyThumbprint | string · null | Нет | |
archiveKeyThumbprint | string · null | Нет |
JSON Schema
{
"type": "object",
"properties": {
"userId": {
"type": "integer",
"format": "int64"
},
"attendanceId": {
"type": "string"
},
"rootKeyThumbprint": {
"type": "string",
"nullable": true
},
"archiveKeyThumbprint": {
"type": "string",
"nullable": true
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/board/LessonKeyModels.kt",
"line": 18
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"userId",
"attendanceId"
],
"additionalProperties": false
}LessonKeyScope
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
channelId | integer · int64 | Да | |
voiceSessionId | integer · int64 | Да | |
incarnation | string | Да |
JSON Schema
{
"type": "object",
"properties": {
"channelId": {
"type": "integer",
"format": "int64"
},
"voiceSessionId": {
"type": "integer",
"format": "int64"
},
"incarnation": {
"type": "string"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/board/LessonKeyModels.kt",
"line": 10
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"channelId",
"voiceSessionId",
"incarnation"
],
"additionalProperties": false
}LinkPreviewResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
url | string · urimaxLength=2000 | Да | |
title | string · nullmaxLength=300 | Нет | |
description | string · nullmaxLength=300 | Нет | |
imageUrl | string · uri · nullmaxLength=2000 | Нет | |
siteName | string · nullmaxLength=300 | Нет | |
externalVideo | ExternalVideoMetadataV1 / null | Нет | |
vkPost | VkPostMetadataV1 / null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"maxLength": 2000
},
"title": {
"type": "string",
"maxLength": 300,
"nullable": true
},
"description": {
"type": "string",
"maxLength": 300,
"nullable": true
},
"imageUrl": {
"type": "string",
"format": "uri",
"maxLength": 2000,
"nullable": true
},
"siteName": {
"type": "string",
"maxLength": 300,
"nullable": true
},
"externalVideo": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/ExternalVideoMetadataV1"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"vkPost": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/VkPostMetadataV1"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
}
}
}LoginRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
email | stringmaxLength=255 | Да | Email address or immutable case-insensitive login name. Email syntax selects email lookup; ambiguous legacy names require email sign-in. |
password | string · passwordminLength=8; maxLength=72 | Да | Must contain 8 or more characters and encode to at most 72 UTF-8 bytes. |
clientName | string · null | Нет | Self-declared session display name, normalized and limited to 120 characters. Never used for authentication. |
clientPlatform | string · null | Нет | Self-declared client type WEB, ANDROID or DESKTOP. Missing or unrecognized values remain unknown; never an authorization claim. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"email",
"password"
],
"properties": {
"email": {
"type": "string",
"maxLength": 255,
"description": "Email address or immutable case-insensitive login name. Email syntax selects email lookup; ambiguous legacy names require email sign-in."
},
"password": {
"type": "string",
"format": "password",
"minLength": 8,
"maxLength": 72,
"description": "Must contain 8 or more characters and encode to at most 72 UTF-8 bytes.",
"writeOnly": true,
"x-sensitive": true
},
"clientName": {
"type": "string",
"nullable": true,
"description": "Self-declared session display name, normalized and limited to 120 characters. Never used for authentication."
},
"clientPlatform": {
"type": "string",
"nullable": true,
"description": "Self-declared client type WEB, ANDROID or DESKTOP. Missing or unrecognized values remain unknown; never an authorization claim."
}
}
}MediaContextType
string: STREAM, VOICE_CHANNEL
JSON Schema
{
"type": "string",
"enum": [
"STREAM",
"VOICE_CHANNEL"
]
}MediaLeaseGenerationRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
generation | integer · int32 | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"generation"
],
"properties": {
"generation": {
"type": "integer",
"format": "int32"
}
}
}MediaLeaseHeartbeatResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64 | Да | |
generation | integer · int32 | Да | |
leaseExpiresAt | string | Да | |
credentials | MediaTransportCredentialsResponse / null | Нет | Fresh credentials for the same authorized lease and generation; clients retain them for transport recovery. |
microphoneAdmission | VoiceMicrophoneAdmissionResponse / null | Нет | |
mediaEncryptionVersion | integer · int32: 0, 1, 2 | Нет | Protocol persisted on this exact lease. Explicit 0 uses TLS/WebRTC without application media E2EE. Values 1/2 identify legacy leases and require an update; omission means 1 and must never enable mode 0. Default: 1 |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"generation",
"leaseExpiresAt"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"generation": {
"type": "integer",
"format": "int32"
},
"leaseExpiresAt": {
"type": "string"
},
"credentials": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/MediaTransportCredentialsResponse"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
],
"description": "Fresh credentials for the same authorized lease and generation; clients retain them for transport recovery."
},
"microphoneAdmission": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/VoiceMicrophoneAdmissionResponse"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"mediaEncryptionVersion": {
"type": "integer",
"format": "int32",
"enum": [
0,
1,
2
],
"default": 1,
"description": "Protocol persisted on this exact lease. Explicit 0 uses TLS/WebRTC without application media E2EE. Values 1/2 identify legacy leases and require an update; omission means 1 and must never enable mode 0."
}
}
}MediaLeaseResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64 | Да | |
generation | integer · int32 | Да | |
contextType | MediaContextType | Да | |
sessionId | integer · int64 | Да | |
leaseExpiresAt | string | Да | |
capabilities | MediaTransportCapabilitiesResponse | Да | |
credentials | MediaTransportCredentialsResponse | Да | |
microphoneAdmission | VoiceMicrophoneAdmissionResponse / null | Нет | |
mediaEncryptionVersion | integer · int32: 0, 1, 2 | Нет | Protocol persisted on this exact lease. Explicit 0 uses TLS/WebRTC without application media E2EE. Values 1/2 identify legacy leases and require an update; omission means 1 and must never enable mode 0. Default: 1 |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"generation",
"contextType",
"sessionId",
"leaseExpiresAt",
"capabilities",
"credentials"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"generation": {
"type": "integer",
"format": "int32"
},
"contextType": {
"$ref": "#/components/schemas/MediaContextType"
},
"sessionId": {
"type": "integer",
"format": "int64"
},
"leaseExpiresAt": {
"type": "string"
},
"capabilities": {
"$ref": "#/components/schemas/MediaTransportCapabilitiesResponse"
},
"credentials": {
"$ref": "#/components/schemas/MediaTransportCredentialsResponse"
},
"microphoneAdmission": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/VoiceMicrophoneAdmissionResponse"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"mediaEncryptionVersion": {
"type": "integer",
"format": "int32",
"enum": [
0,
1,
2
],
"default": 1,
"description": "Protocol persisted on this exact lease. Explicit 0 uses TLS/WebRTC without application media E2EE. Values 1/2 identify legacy leases and require an update; omission means 1 and must never enable mode 0."
}
}
}MediaPublicationKind
string: AUDIO, VIDEO
JSON Schema
{
"type": "string",
"enum": [
"AUDIO",
"VIDEO"
]
}MediaPublicationResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64 | Да | |
leaseId | integer · int64 | Да | |
generation | integer · int32 | Да | |
kind | MediaPublicationKind | Да | |
source | MediaPublicationSource | Да | |
status | MediaPublicationStatus | Да | |
codec | string · null | Нет | |
width | integer · int32 · null | Нет | |
height | integer · int32 · null | Нет | |
frameRate | integer · int32 · null | Нет | |
bitrateKbps | integer · int32 · null | Нет | |
spatialLayers | integer · int32 · null | Нет | |
updatedAt | string | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"leaseId",
"generation",
"kind",
"source",
"status",
"updatedAt"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"leaseId": {
"type": "integer",
"format": "int64"
},
"generation": {
"type": "integer",
"format": "int32"
},
"kind": {
"$ref": "#/components/schemas/MediaPublicationKind"
},
"source": {
"$ref": "#/components/schemas/MediaPublicationSource"
},
"status": {
"$ref": "#/components/schemas/MediaPublicationStatus"
},
"codec": {
"type": "string",
"nullable": true
},
"width": {
"type": "integer",
"format": "int32",
"nullable": true
},
"height": {
"type": "integer",
"format": "int32",
"nullable": true
},
"frameRate": {
"type": "integer",
"format": "int32",
"nullable": true
},
"bitrateKbps": {
"type": "integer",
"format": "int32",
"nullable": true
},
"spatialLayers": {
"type": "integer",
"format": "int32",
"nullable": true
},
"updatedAt": {
"type": "string"
}
}
}MediaPublicationSource
string: MICROPHONE, CAMERA, SCREEN_SHARE, SCREEN_SHARE_AUDIO
JSON Schema
{
"type": "string",
"enum": [
"MICROPHONE",
"CAMERA",
"SCREEN_SHARE",
"SCREEN_SHARE_AUDIO"
]
}MediaPublicationStatus
string: PREPARING, ACTIVE, MUTED, ENDED, FAILED
JSON Schema
{
"type": "string",
"enum": [
"PREPARING",
"ACTIVE",
"MUTED",
"ENDED",
"FAILED"
]
}MediaQualityMode
string: AUTO, CUSTOM
JSON Schema
{
"type": "string",
"enum": [
"AUTO",
"CUSTOM"
]
}MediaTransportCapabilitiesResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
canPublishAudio | boolean | Да | |
canPublishVideo | boolean | Да | |
canSubscribe | boolean | Да | |
allowedSources | array<MediaPublicationSource> | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"canPublishAudio",
"canPublishVideo",
"canSubscribe",
"allowedSources"
],
"properties": {
"canPublishAudio": {
"type": "boolean"
},
"canPublishVideo": {
"type": "boolean"
},
"canSubscribe": {
"type": "boolean"
},
"allowedSources": {
"type": "array",
"items": {
"$ref": "#/components/schemas/MediaPublicationSource"
}
}
}
}MediaTransportCredentialsResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
provider | MediaTransportProvider | Да | |
serverUrl | string | Да | |
roomName | string | Да | |
participantIdentity | string | Да | |
accessToken | string | Да | |
expiresAt | string | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"provider",
"serverUrl",
"roomName",
"participantIdentity",
"accessToken",
"expiresAt"
],
"properties": {
"provider": {
"$ref": "#/components/schemas/MediaTransportProvider"
},
"serverUrl": {
"type": "string"
},
"roomName": {
"type": "string"
},
"participantIdentity": {
"type": "string"
},
"accessToken": {
"type": "string",
"x-sensitive": true
},
"expiresAt": {
"type": "string"
}
}
}MediaTransportProvider
string: LIVEKIT
JSON Schema
{
"type": "string",
"enum": [
"LIVEKIT"
]
}MessageDeliveryStatus
string: SENT, DELIVERED, READ
JSON Schema
{
"type": "string",
"enum": [
"SENT",
"DELIVERED",
"READ"
]
}MessageReactionResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
emoji | string | Да | |
count | integer · int32 | Да | |
reactedByMe | boolean | Да | |
reactors | array<MessageReactionUserResponse> | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"emoji": {
"type": "string"
},
"count": {
"type": "integer",
"format": "int32"
},
"reactedByMe": {
"type": "boolean"
},
"reactors": {
"type": "array",
"items": {
"$ref": "#/components/schemas/MessageReactionUserResponse"
}
}
},
"required": [
"emoji",
"count",
"reactedByMe"
]
}MessageReactionUserResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
userId | integer · int64 | Да | |
displayName | string | Да | |
isBot | boolean | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"userId": {
"type": "integer",
"format": "int64"
},
"displayName": {
"type": "string"
},
"isBot": {
"type": "boolean"
}
},
"required": [
"userId",
"displayName"
]
}MessageReceiptSummaryResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
status | MessageDeliveryStatus | Да | |
recipientCount | integer · int32 | Да | |
deliveredCount | integer · int32 | Да | |
readCount | integer · int32 | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"status": {
"$ref": "#/components/schemas/MessageDeliveryStatus"
},
"recipientCount": {
"type": "integer",
"format": "int32"
},
"deliveredCount": {
"type": "integer",
"format": "int32"
},
"readCount": {
"type": "integer",
"format": "int32"
}
},
"required": [
"status",
"recipientCount",
"deliveredCount",
"readCount"
]
}MessageThreadPageResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
items | array<MessageThreadReplyResponse> | Да | |
nextBeforeId | integer · int64 · null | Нет | |
hasMore | boolean | Да | |
totalCount | integer · int32 | Да | |
threadRevision | integer · int64minimum=0 | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"items",
"hasMore",
"totalCount"
],
"properties": {
"items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/MessageThreadReplyResponse"
}
},
"nextBeforeId": {
"type": "integer",
"format": "int64",
"nullable": true
},
"hasMore": {
"type": "boolean"
},
"totalCount": {
"type": "integer",
"format": "int32"
},
"threadRevision": {
"type": "integer",
"format": "int64",
"minimum": 0
}
}
}MessageThreadReplyResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64 | Да | |
rootMessageId | integer · int64 | Да | |
authorId | integer · int64 | Да | |
authorIdentifier | string · null | Нет | |
authorDisplayName | string · null | Нет | |
authorAvatarUrl | string · null | Нет | |
content | string | Да | |
createdAt | string | Да | |
editedAt | string · null | Нет | |
encryptedEnvelope | string · nullmaxLength=262144 | Нет | Legacy encrypted-content field; managed writes omit it. |
encryptionRevision | integer · int32 · null | Нет | |
authorIsBot | boolean | Нет | |
managedBody | object · null | Нет | Server-readable structured content, validated by the owning message operation. Managed writers omit legacy encryptedEnvelope; transport encryption and server ACL still apply. |
contentRevision | integer · int32 | Нет | Default: 0 |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"rootMessageId",
"authorId",
"content",
"createdAt"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"rootMessageId": {
"type": "integer",
"format": "int64"
},
"authorId": {
"type": "integer",
"format": "int64"
},
"authorIdentifier": {
"type": "string",
"nullable": true
},
"authorDisplayName": {
"type": "string",
"nullable": true
},
"authorAvatarUrl": {
"type": "string",
"nullable": true
},
"content": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"editedAt": {
"type": "string",
"nullable": true
},
"encryptedEnvelope": {
"type": "string",
"nullable": true,
"maxLength": 262144,
"x-sensitive": true,
"deprecated": true,
"description": "Legacy encrypted-content field; managed writes omit it."
},
"encryptionRevision": {
"type": "integer",
"format": "int32",
"nullable": true
},
"authorIsBot": {
"type": "boolean"
},
"managedBody": {
"type": "object",
"additionalProperties": true,
"description": "Server-readable structured content, validated by the owning message operation. Managed writers omit legacy encryptedEnvelope; transport encryption and server ACL still apply.",
"nullable": true,
"x-kotlin-default": "null"
},
"contentRevision": {
"type": "integer",
"format": "int32",
"default": 0,
"x-kotlin-default": "0"
}
}
}MoveBotVoiceRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
generation | integer · int64 | Да | |
channelId | string | Да | |
encryptionProtocolVersion | integer · int32 | Нет | Default: 1 |
JSON Schema
{
"type": "object",
"properties": {
"generation": {
"type": "integer",
"format": "int64"
},
"channelId": {
"type": "string"
},
"encryptionProtocolVersion": {
"type": "integer",
"format": "int32",
"default": 1,
"x-kotlin-default": "1"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotVoiceService.kt",
"line": 20
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"generation",
"channelId"
]
}NotificationMode
string: ALL, MENTIONS, MUTED
JSON Schema
{
"type": "string",
"enum": [
"ALL",
"MENTIONS",
"MUTED"
]
}NotificationPreferenceResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
scopeType | NotificationScopeType | Да | |
scopeId | integer · int64 · null | Нет | |
mode | NotificationMode | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"scopeType": {
"$ref": "#/components/schemas/NotificationScopeType"
},
"scopeId": {
"type": "integer",
"format": "int64",
"nullable": true
},
"mode": {
"$ref": "#/components/schemas/NotificationMode"
}
},
"required": [
"scopeType",
"mode"
]
}NotificationPreferencesResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
defaultMode | NotificationMode | Да | |
overrides | array<NotificationPreferenceResponse> | Да | |
settings | NotificationSettingsResponse | Нет | |
revision | integer · int64minimum=0 | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"defaultMode": {
"$ref": "#/components/schemas/NotificationMode"
},
"overrides": {
"type": "array",
"items": {
"$ref": "#/components/schemas/NotificationPreferenceResponse"
}
},
"settings": {
"$ref": "#/components/schemas/NotificationSettingsResponse"
},
"revision": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
"required": [
"defaultMode",
"overrides"
]
}NotificationScopeType
string: GLOBAL, DIRECT, COMMUNITY, CHANNEL
JSON Schema
{
"type": "string",
"enum": [
"GLOBAL",
"DIRECT",
"COMMUNITY",
"CHANNEL"
]
}NotificationSettingsResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
quietHoursEnabled | boolean | Нет | |
quietStartMinutes | integer · int32minimum=0; maximum=1439 | Нет | |
quietEndMinutes | integer · int32minimum=0; maximum=1439 | Нет | |
quietTimezone | string | Нет | |
mentionsEnabled | boolean | Нет | |
repliesEnabled | boolean | Нет | |
threadsEnabled | boolean | Нет | |
quietTimezoneConfigured | boolean | Нет | Whether the account has saved its quiet-hours timezone. An unset timezone follows the device when quiet hours are first enabled. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"quietHoursEnabled": {
"type": "boolean"
},
"quietStartMinutes": {
"type": "integer",
"format": "int32",
"minimum": 0,
"maximum": 1439
},
"quietEndMinutes": {
"type": "integer",
"format": "int32",
"minimum": 0,
"maximum": 1439
},
"quietTimezone": {
"type": "string"
},
"mentionsEnabled": {
"type": "boolean"
},
"repliesEnabled": {
"type": "boolean"
},
"threadsEnabled": {
"type": "boolean"
},
"quietTimezoneConfigured": {
"type": "boolean",
"description": "Whether the account has saved its quiet-hours timezone. An unset timezone follows the device when quiet hours are first enabled."
}
}
}PasswordResetCompleteRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
resetTicket | stringpattern=^[A-Za-z0-9_-]{43}$ | Да | |
newPassword | string · passwordminLength=12; maxLength=72 | Да | New passwords require at least 12 characters, at most 72 UTF-8 bytes, and must not be an obvious common password. Existing passwords still work at login. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"resetTicket",
"newPassword"
],
"properties": {
"resetTicket": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{43}$",
"x-sensitive": true,
"writeOnly": true
},
"newPassword": {
"type": "string",
"format": "password",
"minLength": 12,
"maxLength": 72,
"description": "New passwords require at least 12 characters, at most 72 UTF-8 bytes, and must not be an obvious common password. Existing passwords still work at login.",
"writeOnly": true,
"x-sensitive": true
}
}
}PasswordResetRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
email | string · emailmaxLength=255 | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"email"
],
"properties": {
"email": {
"type": "string",
"format": "email",
"maxLength": 255
}
}
}PasswordResetTicketResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
resetTicket | stringpattern=^[A-Za-z0-9_-]{43}$ | Да | |
expiresAtEpochMillis | integer · int64minimum=0 | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"resetTicket",
"expiresAtEpochMillis"
],
"properties": {
"resetTicket": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{43}$",
"x-sensitive": true
},
"expiresAtEpochMillis": {
"type": "integer",
"format": "int64",
"minimum": 0
}
}
}PrepareBotActionRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
applicationId | string | Да | |
actionId | string | Да | |
source | BotActionSource | Да | |
requestId | string | Да |
JSON Schema
{
"type": "object",
"properties": {
"applicationId": {
"type": "string"
},
"actionId": {
"type": "string"
},
"source": {
"$ref": "#/components/schemas/BotActionSource"
},
"requestId": {
"type": "string"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotInteractionActions.kt",
"line": 16
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"applicationId",
"actionId",
"source",
"requestId"
]
}PrepareBotInteractionRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
applicationId | string | Да | |
commandId | string | Да | |
commandRevision | integer · int64 | Да | |
requestId | string | Да | |
kind | integer · int32 | Нет | Default: 2 |
attachmentUploadIds | array<string> | Нет | Default: [] |
JSON Schema
{
"type": "object",
"properties": {
"applicationId": {
"type": "string"
},
"commandId": {
"type": "string"
},
"commandRevision": {
"type": "integer",
"format": "int64"
},
"requestId": {
"type": "string"
},
"kind": {
"type": "integer",
"format": "int32",
"default": 2,
"x-kotlin-default": "2"
},
"attachmentUploadIds": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"x-kotlin-default": "emptyList()"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotInteractionModels.kt",
"line": 12
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"applicationId",
"commandId",
"commandRevision",
"requestId"
]
}ProposeSecureCooperativeAdmissionRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
signedManifest | string | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"signedManifest": {
"type": "string"
}
},
"required": [
"signedManifest"
]
}PublicBotInteractionResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
interaction | BotInteractionView | Да | |
application | SecureApplicationResponse | Да |
JSON Schema
{
"type": "object",
"properties": {
"interaction": {
"$ref": "#/components/schemas/BotInteractionView"
},
"application": {
"$ref": "#/components/schemas/SecureApplicationResponse"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotPublicInteractions.kt",
"line": 16
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"interaction",
"application"
]
}PublicUserProfileResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64minimum=1 | Да | |
publicIdentifier | stringminLength=1 | Да | |
displayName | stringminLength=1 | Да | |
bio | string · null | Нет | |
avatarUrl | string · uri · null | Нет | |
isBot | boolean | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"publicIdentifier",
"displayName"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"publicIdentifier": {
"type": "string",
"minLength": 1
},
"displayName": {
"type": "string",
"minLength": 1
},
"bio": {
"type": "string",
"nullable": true
},
"avatarUrl": {
"type": "string",
"format": "uri",
"nullable": true
},
"isBot": {
"type": "boolean"
}
}
}PublishE2eeRoomKeyRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
contextType | MediaContextType | Да | |
sessionId | integer · int64 | Да | |
leaseId | integer · int64 | Да | |
generation | integer · int32 | Да | |
epoch | string | Да | |
envelope | stringmaxLength=262144 | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"contextType",
"sessionId",
"leaseId",
"generation",
"epoch",
"envelope"
],
"properties": {
"contextType": {
"$ref": "#/components/schemas/MediaContextType"
},
"sessionId": {
"type": "integer",
"format": "int64"
},
"leaseId": {
"type": "integer",
"format": "int64"
},
"generation": {
"type": "integer",
"format": "int32"
},
"epoch": {
"type": "string"
},
"envelope": {
"type": "string",
"maxLength": 262144,
"x-sensitive": true
}
}
}PublishSecureHistoryGrantsRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
signedGrants | array<stringmaxLength=16384> | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"signedGrants": {
"type": "array",
"items": {
"type": "string",
"maxLength": 16384
},
"minItems": 1,
"maxItems": 16
}
},
"required": [
"signedGrants"
]
}PublishSecureKeyPackagesRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
signedKeyPackages | array<string> | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"signedKeyPackages": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"signedKeyPackages"
]
}PublishVoicePublisherKeyRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
sessionId | integer · int64 | Да | |
leaseId | integer · int64 | Да | |
generation | integer · int32 | Да | |
expectedRosterDigest | string | Да | |
keyGeneration | integer · int64minimum=1 | Да | |
previousKeyGeneration | integer · int64minimum=0 | Да | |
keyIndex | integer · int32: 0 | Да | |
transition | VoicePublisherKeyTransition | Да | |
envelope | string | Да |
JSON Schema
{
"type": "object",
"properties": {
"sessionId": {
"type": "integer",
"format": "int64"
},
"leaseId": {
"type": "integer",
"format": "int64"
},
"generation": {
"type": "integer",
"format": "int32"
},
"expectedRosterDigest": {
"type": "string"
},
"keyGeneration": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"previousKeyGeneration": {
"type": "integer",
"format": "int64",
"minimum": 0
},
"keyIndex": {
"type": "integer",
"format": "int32",
"enum": [
0
]
},
"transition": {
"$ref": "#/components/schemas/VoicePublisherKeyTransition"
},
"envelope": {
"type": "string"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/voice/crypto/VoicePublisherKeyModels.kt",
"line": 52
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"sessionId",
"leaseId",
"generation",
"expectedRosterDigest",
"keyGeneration",
"previousKeyGeneration",
"keyIndex",
"transition",
"envelope"
],
"additionalProperties": false
}PutBotDirectConsentRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
scopes | array<string> | Да | |
expectedRevision | integer · int64 | Да |
JSON Schema
{
"type": "object",
"properties": {
"scopes": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"expectedRevision": {
"type": "integer",
"format": "int64"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotDirectModels.kt",
"line": 14
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"scopes",
"expectedRevision"
]
}PutBotHistoryGrantRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
expectedInstallationRevision | integer · int64 | Да | |
expectedRevision | integer · int64 | Да |
JSON Schema
{
"type": "object",
"properties": {
"expectedInstallationRevision": {
"type": "integer",
"format": "int64"
},
"expectedRevision": {
"type": "integer",
"format": "int64"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotHistoryModels.kt",
"line": 15
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"expectedInstallationRevision",
"expectedRevision"
]
}PutBotInstallationRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
applicationId | string | Да | |
scopes | array<string> | Да | |
channelIds | array<string> | Да | |
allowedRoleIds | array<string> | Нет | Default: [] |
installationKey | string · null | Нет |
JSON Schema
{
"type": "object",
"properties": {
"applicationId": {
"type": "string"
},
"scopes": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"channelIds": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"allowedRoleIds": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true,
"default": [],
"x-kotlin-default": "emptySet()"
},
"installationKey": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotModels.kt",
"line": 44
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"applicationId",
"scopes",
"channelIds"
]
}PutE2eePassphraseBackupRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
expectedRevision | integer · int32 | Да | |
signedBackup | string | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"expectedRevision",
"signedBackup"
],
"properties": {
"expectedRevision": {
"type": "integer",
"format": "int32"
},
"signedBackup": {
"type": "string"
}
}
}PutEncryptedPosterRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
version | integer · int32: 1 | Нет | Default: 1 |
posterUploadId | string · uuid | Да | |
encryptedDescriptor | stringminLength=40; maxLength=16384 | Да | Compact JWE descriptor sealed with the original attachment context. Exactly four period separators; no plaintext media key or image metadata. |
JSON Schema
{
"type": "object",
"properties": {
"version": {
"type": "integer",
"format": "int32",
"default": 1,
"x-kotlin-default": "1",
"enum": [
1
]
},
"posterUploadId": {
"type": "string",
"format": "uuid"
},
"encryptedDescriptor": {
"type": "string",
"minLength": 40,
"maxLength": 16384,
"description": "Compact JWE descriptor sealed with the original attachment context. Exactly four period separators; no plaintext media key or image metadata."
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/media/poster/EncryptedPosterModels.kt",
"line": 6
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"posterUploadId",
"encryptedDescriptor"
],
"additionalProperties": false
}PutSecureDeviceContentCapabilityRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
signedCapability | string | Да | |
expectedRevision | integer · int64minimum=0 | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"signedCapability": {
"type": "string"
},
"expectedRevision": {
"type": "integer",
"format": "int64",
"minimum": 0
}
},
"required": [
"signedCapability",
"expectedRevision"
]
}PutSecurePublicChatCardRequest
Exactly one of news or event, with the exact retained MLS application. Public event must have privateForChannel=false. Preserve cardId and ciphertext after a lost acknowledgement.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
cardId | integer · int64minimum=4611686018427387904; maximum=9223372036854775807 | Да | |
news | CreateChatNewsRequest / null | Нет | |
event | CreateChatEventRequest / null | Нет | |
application | SubmitSecureApplicationRequest | Да |
JSON Schema
{
"type": "object",
"properties": {
"cardId": {
"type": "integer",
"format": "int64",
"minimum": 4611686018427387904,
"maximum": 9223372036854775807
},
"news": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/CreateChatNewsRequest"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
],
"x-kotlin-default": "null"
},
"event": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/CreateChatEventRequest"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
],
"x-kotlin-default": "null"
},
"application": {
"$ref": "#/components/schemas/SubmitSecureApplicationRequest"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/e2ee/SecurePublicChatCardDtos.kt",
"line": 10
},
"description": "Exactly one of news or event, with the exact retained MLS application. Public event must have privateForChannel=false. Preserve cardId and ciphertext after a lost acknowledgement.",
"required": [
"cardId",
"application"
],
"additionalProperties": false
}QuerySecureContentCapabilitiesRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
requiredFeatures | array<string: media-renditions-v2> | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"requiredFeatures": {
"type": "array",
"items": {
"type": "string",
"enum": [
"media-renditions-v2"
]
},
"minItems": 1,
"maxItems": 1
}
},
"required": [
"requiredFeatures"
]
}QuerySecureContentCapabilitiesResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
ready | boolean | Да | |
reason | SecureContentCapabilityNotReadyReason / null | Нет | |
serverTimeEpochMillis | integer · int64minimum=1 | Да | |
snapshot | SecureContentCapabilitySnapshot / null | Нет | |
snapshotSha256 | string · nullpattern=^[0-9a-f]{64}$ | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"ready": {
"type": "boolean"
},
"reason": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/SecureContentCapabilityNotReadyReason"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"serverTimeEpochMillis": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"snapshot": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/SecureContentCapabilitySnapshot"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"snapshotSha256": {
"type": "string",
"pattern": "^[0-9a-f]{64}$",
"nullable": true
}
},
"required": [
"ready",
"serverTimeEpochMillis"
]
}QuerySecureHistoryGrantsRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
epochs | array<integer · int64minimum=1> | Да | Distinct historical epochs; duplicate values are rejected. |
expectedEpoch | integer · int64minimum=1 | Да | |
expectedCommitHash | string | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"epochs": {
"type": "array",
"items": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"minItems": 1,
"maxItems": 8,
"description": "Distinct historical epochs; duplicate values are rejected."
},
"expectedEpoch": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"expectedCommitHash": {
"type": "string"
}
},
"required": [
"epochs",
"expectedEpoch",
"expectedCommitHash"
]
}RealtimeTicketResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
ticket | string · passwordpattern=^[A-Za-z0-9_-]{43}$ | Да | Short-lived one-time credential for /api/v1/realtime/ws?ticket=... |
expiresAtEpochMillis | integer · int64minimum=0 | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"ticket",
"expiresAtEpochMillis"
],
"properties": {
"ticket": {
"type": "string",
"format": "password",
"pattern": "^[A-Za-z0-9_-]{43}$",
"description": "Short-lived one-time credential for /api/v1/realtime/ws?ticket=...",
"x-sensitive": true
},
"expiresAtEpochMillis": {
"type": "integer",
"format": "int64",
"minimum": 0
}
}
}RegisterBotActionsRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
source | BotActionSource | Да | |
actions | array<BotActionDefinition> | Да | |
expiresAt | string · null | Нет |
JSON Schema
{
"type": "object",
"properties": {
"source": {
"$ref": "#/components/schemas/BotActionSource"
},
"actions": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BotActionDefinition"
}
},
"expiresAt": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotInteractionActions.kt",
"line": 15
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"source",
"actions"
]
}RegisterE2eeDeviceRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
certificate | string | Да | |
expectedPredecessorCertificateSha256 | string · nullpattern=^[0-9a-f]{64}$ | Нет | SHA-256 of the exact current certificate. Null or omitted permits creation only, or an exact retry of the current live certificate. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"certificate"
],
"properties": {
"certificate": {
"type": "string"
},
"expectedPredecessorCertificateSha256": {
"type": "string",
"nullable": true,
"pattern": "^[0-9a-f]{64}$",
"description": "SHA-256 of the exact current certificate. Null or omitted permits creation only, or an exact retry of the current live certificate."
}
}
}RegisterE2eeIdentityRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
identityProof | string | Да | |
rootSigningKey | string | Да | |
recoveryEncryptionKey | string | Да | |
recoveryBackup | stringmaxLength=65536 | Да | |
deviceCertificate | string | Да | |
expectedPredecessorCertificateSha256 | string · nullpattern=^[0-9a-f]{64}$ | Нет | SHA-256 of the exact current certificate. Null or omitted permits creation only, or an exact retry of the current live certificate. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"identityProof",
"rootSigningKey",
"recoveryEncryptionKey",
"recoveryBackup",
"deviceCertificate"
],
"properties": {
"identityProof": {
"type": "string"
},
"rootSigningKey": {
"type": "string"
},
"recoveryEncryptionKey": {
"type": "string"
},
"recoveryBackup": {
"type": "string",
"maxLength": 65536,
"x-sensitive": true
},
"deviceCertificate": {
"type": "string"
},
"expectedPredecessorCertificateSha256": {
"type": "string",
"nullable": true,
"pattern": "^[0-9a-f]{64}$",
"description": "SHA-256 of the exact current certificate. Null or omitted permits creation only, or an exact retry of the current live certificate."
}
}
}RegisterRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
email | string · emailmaxLength=255 | Да | |
username | stringminLength=3; maxLength=40 | Да | Immutable login; case-insensitive uniqueness. New names cannot contain @ or control characters. Existing duplicate names are not renamed. |
password | string · passwordminLength=12; maxLength=72 | Да | New passwords require at least 12 characters, at most 72 UTF-8 bytes, and must not be an obvious common password. Existing passwords still work at login. |
displayName | string · nullminLength=3; maxLength=15; pattern=\S | Нет | |
clientName | string · null | Нет | Self-declared session display name, normalized and limited to 120 characters. Never used for authentication. |
clientPlatform | string · null | Нет | Self-declared client type WEB, ANDROID or DESKTOP. Missing or unrecognized values remain unknown; never an authorization claim. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"email",
"username",
"password"
],
"properties": {
"email": {
"type": "string",
"format": "email",
"maxLength": 255
},
"username": {
"type": "string",
"minLength": 3,
"maxLength": 40,
"description": "Immutable login; case-insensitive uniqueness. New names cannot contain @ or control characters. Existing duplicate names are not renamed."
},
"password": {
"type": "string",
"format": "password",
"minLength": 12,
"maxLength": 72,
"description": "New passwords require at least 12 characters, at most 72 UTF-8 bytes, and must not be an obvious common password. Existing passwords still work at login.",
"writeOnly": true,
"x-sensitive": true
},
"displayName": {
"type": "string",
"minLength": 3,
"maxLength": 15,
"pattern": "\\S",
"nullable": true
},
"clientName": {
"type": "string",
"nullable": true,
"description": "Self-declared session display name, normalized and limited to 120 characters. Never used for authentication."
},
"clientPlatform": {
"type": "string",
"nullable": true,
"description": "Self-declared client type WEB, ANDROID or DESKTOP. Missing or unrecognized values remain unknown; never an authorization claim."
}
}
}ReplaceBotCommandsRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
commands | array<BotCommandDefinition> | Да |
JSON Schema
{
"type": "object",
"properties": {
"commands": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BotCommandDefinition"
}
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotCommandCatalog.kt",
"line": 14
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"commands"
]
}ReserveManagedRecordingCardRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
clientMessageId | string | Да | |
managedBody | object | Да | Explicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules. |
attachmentUploadIds | array<string> | Да |
JSON Schema
{
"type": "object",
"properties": {
"clientMessageId": {
"type": "string"
},
"managedBody": {
"type": "object",
"additionalProperties": true,
"description": "Explicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules."
},
"attachmentUploadIds": {
"type": "array",
"items": {
"type": "string"
}
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/e2ee/SecureConversationDtos.kt",
"line": 174
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"clientMessageId",
"managedBody",
"attachmentUploadIds"
],
"additionalProperties": false
}ReserveSecureKeyPackagesRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
requestId | string | Да | |
devices | array<SecureDeviceRef> | Да | |
allowPartial | boolean | Нет | When true, return available certified target packages. No available packages returns MLS_KEY_PACKAGE_NOT_READY without saving a reservation. An initial DIRECT reservation must still cover both accounts including the creator. Retries with a successful requestId replay its original subset; use a new requestId to reserve additional packages that become available later. Default: false |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"requestId": {
"type": "string"
},
"devices": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SecureDeviceRef"
}
},
"allowPartial": {
"type": "boolean",
"default": false,
"description": "When true, return available certified target packages. No available packages returns MLS_KEY_PACKAGE_NOT_READY without saving a reservation. An initial DIRECT reservation must still cover both accounts including the creator. Retries with a successful requestId replay its original subset; use a new requestId to reserve additional packages that become available later."
}
},
"required": [
"requestId",
"devices"
]
}ResolveBotInstallationKeyRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
installationKey | string | Да |
JSON Schema
{
"type": "object",
"properties": {
"installationKey": {
"type": "string"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotApplicationDiscovery.kt",
"line": 18
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"installationKey"
]
}ResolveMentionsRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
identifiers | array<stringmaxLength=32> | Да |
JSON Schema
{
"type": "object",
"required": [
"identifiers"
],
"properties": {
"identifiers": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 32
}
}
},
"additionalProperties": false
}ResolveMentionsResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
users | array<UserMentionResponse> | Да | |
ownIdentifiers | array<string> | Да |
JSON Schema
{
"type": "object",
"required": [
"users",
"ownIdentifiers"
],
"properties": {
"users": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UserMentionResponse"
}
},
"ownIdentifiers": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
}ResolveUserNamesRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
userIds | array<integer · int64minimum=1> | Да | Raw list is bounded before deduplication. Resolves only the supplied identities; unknown IDs return null overrides. |
communityId | integer · int64 · nullminimum=1 | Нет | Requires current joined, non-banned viewer membership. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"userIds"
],
"properties": {
"userIds": {
"type": "array",
"maxItems": 100,
"items": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"description": "Raw list is bounded before deduplication. Resolves only the supplied identities; unknown IDs return null overrides."
},
"communityId": {
"type": "integer",
"format": "int64",
"minimum": 1,
"nullable": true,
"description": "Requires current joined, non-banned viewer membership."
}
}
}RespondBotInteractionRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
requestId | string | Да | |
type | integer · int32 | Да | |
encryptedEnvelope | string · null | Нет | |
managedBody | object · null | Нет | Explicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules. |
JSON Schema
{
"type": "object",
"properties": {
"requestId": {
"type": "string"
},
"type": {
"type": "integer",
"format": "int32"
},
"encryptedEnvelope": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"managedBody": {
"type": "object",
"additionalProperties": true,
"description": "Explicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules.",
"nullable": true,
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotInteractionModels.kt",
"line": 15
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"requestId",
"type"
]
}RespondPublicBotInteractionRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
requestId | string | Да | |
application | SubmitSecureApplicationRequest / null | Нет | |
managedBody | object · null | Нет | Explicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules. |
clientMessageId | string · null | Нет | |
replyToMessageId | integer · int64 · null | Нет |
JSON Schema
{
"type": "object",
"properties": {
"requestId": {
"type": "string"
},
"application": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/SubmitSecureApplicationRequest"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
],
"x-kotlin-default": "null"
},
"managedBody": {
"type": "object",
"additionalProperties": true,
"description": "Explicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules.",
"nullable": true,
"x-kotlin-default": "null"
},
"clientMessageId": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"replyToMessageId": {
"type": "integer",
"format": "int64",
"nullable": true,
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotPublicInteractions.kt",
"line": 14
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"requestId"
]
}RespondSourceBotInteractionRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
requestId | string | Да | |
expectedSource | BotActionSource | Да | |
application | SubmitSecureApplicationRequest / null | Нет | |
encryptedEnvelope | string · null | Нет | |
managedBody | object · null | Нет | Explicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules. |
clientMessageId | string · null | Нет | |
replyToMessageId | integer · int64 · null | Нет | |
sourceActions | BotSourceActionSet / null | Нет |
JSON Schema
{
"type": "object",
"properties": {
"requestId": {
"type": "string"
},
"expectedSource": {
"$ref": "#/components/schemas/BotActionSource"
},
"application": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/SubmitSecureApplicationRequest"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
],
"x-kotlin-default": "null"
},
"encryptedEnvelope": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"managedBody": {
"type": "object",
"additionalProperties": true,
"description": "Explicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules.",
"nullable": true,
"x-kotlin-default": "null"
},
"clientMessageId": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"replyToMessageId": {
"type": "integer",
"format": "int64",
"nullable": true,
"x-kotlin-default": "null"
},
"sourceActions": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/BotSourceActionSet"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
],
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotSourceInteractions.kt",
"line": 14
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"requestId",
"expectedSource"
]
}RevokeSecureDeviceRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
deviceId | string | Да | |
signedRevocation | string | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"deviceId": {
"type": "string"
},
"signedRevocation": {
"type": "string"
}
},
"required": [
"deviceId",
"signedRevocation"
]
}SaveChatDraftRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
content | stringmaxLength=65536 | Да | Encrypted direct drafts use e2ee:v1: followed by a signed own-account draft envelope; legacy and channel plaintext stays bounded to 4000 characters. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"content"
],
"properties": {
"content": {
"type": "string",
"maxLength": 65536,
"description": "Encrypted direct drafts use e2ee:v1: followed by a signed own-account draft envelope; legacy and channel plaintext stays bounded to 4000 characters."
}
}
}ScheduleChatMessageRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
scopeType | ChatScopeType | Да | |
scopeId | integer · int64 | Да | |
content | string | Да | Empty string for encrypted direct schedules. User-visible text and attachment descriptors exist only in encryptedEnvelope. |
scheduledAt | string | Да | |
silent | boolean | Нет | |
attachmentUploadIds | array<string> | Нет | |
encryptedEnvelope | string · nullmaxLength=262144 | Нет | Legacy encrypted-content field; managed writes omit it. |
clientMessageId | string · null | Нет | |
managedBody | object · null | Нет | Server-readable structured content, validated by the owning message operation. Managed writers omit legacy encryptedEnvelope; transport encryption and server ACL still apply. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"scopeType",
"scopeId",
"content",
"scheduledAt"
],
"properties": {
"scopeType": {
"$ref": "#/components/schemas/ChatScopeType"
},
"scopeId": {
"type": "integer",
"format": "int64"
},
"content": {
"type": "string",
"description": "Empty string for encrypted direct schedules. User-visible text and attachment descriptors exist only in encryptedEnvelope."
},
"scheduledAt": {
"type": "string"
},
"silent": {
"type": "boolean"
},
"attachmentUploadIds": {
"type": "array",
"items": {
"type": "string"
}
},
"encryptedEnvelope": {
"type": "string",
"nullable": true,
"maxLength": 262144,
"x-sensitive": true,
"deprecated": true,
"description": "Legacy encrypted-content field; managed writes omit it."
},
"clientMessageId": {
"type": "string",
"nullable": true
},
"managedBody": {
"type": "object",
"additionalProperties": true,
"description": "Server-readable structured content, validated by the owning message operation. Managed writers omit legacy encryptedEnvelope; transport encryption and server ACL still apply.",
"nullable": true,
"x-kotlin-default": "null"
}
}
}ScheduleSecureMessageRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
requestId | stringminLength=8; maxLength=128 | Да | |
application | SubmitSecureApplicationRequest | Да | |
privatePreview | stringmaxLength=65536 | Да | Device-signed e2ee:draft:v2 account-only encrypted editor preview. The plaintext contains the SHA-256 of the exact application envelope and its authenticated body. |
scheduledAt | string | Да | Future ISO-8601 instant, at most 365 days ahead. |
silent | boolean | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"requestId",
"application",
"privatePreview",
"scheduledAt"
],
"properties": {
"requestId": {
"type": "string",
"minLength": 8,
"maxLength": 128
},
"application": {
"$ref": "#/components/schemas/SubmitSecureApplicationRequest"
},
"privatePreview": {
"type": "string",
"maxLength": 65536,
"x-sensitive": true,
"description": "Device-signed e2ee:draft:v2 account-only encrypted editor preview. The plaintext contains the SHA-256 of the exact application envelope and its authenticated body."
},
"scheduledAt": {
"type": "string",
"description": "Future ISO-8601 instant, at most 365 days ahead."
},
"silent": {
"type": "boolean"
}
}
}ScheduledChatMessageListPageResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
items | array<ScheduledChatMessageResponse> | Да | |
nextCursor | string · null | Нет | |
hasMore | boolean | Нет | |
previousCursor | string · null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"items"
],
"properties": {
"items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ScheduledChatMessageResponse"
}
},
"nextCursor": {
"type": "string",
"nullable": true
},
"hasMore": {
"type": "boolean"
},
"previousCursor": {
"type": "string",
"nullable": true
}
}
}ScheduledChatMessageResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64 | Да | |
scopeType | ChatScopeType | Да | |
scopeId | integer · int64 | Да | |
content | string | Да | For MLS schedules, device-signed e2ee:draft:v2 ciphertext for the owner preview; never user-visible plaintext. Legacy schedules may have empty content. |
scheduledAt | string | Да | |
silent | boolean | Да | |
status | ScheduledChatMessageStatus | Да | |
sentMessageId | integer · int64 · null | Нет | |
lastError | string · null | Нет | |
createdAt | string | Да | |
attachments | array<ChatUploadSessionResponse> | Нет | |
encryptedEnvelope | string · nullmaxLength=262144 | Нет | Legacy encrypted-content field; managed writes omit it. |
clientMessageId | string · null | Нет | |
managedBody | object · null | Нет | Server-readable structured content, validated by the owning message operation. Managed writers omit legacy encryptedEnvelope; transport encryption and server ACL still apply. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"scopeType",
"scopeId",
"content",
"scheduledAt",
"silent",
"status",
"createdAt"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"scopeType": {
"$ref": "#/components/schemas/ChatScopeType"
},
"scopeId": {
"type": "integer",
"format": "int64"
},
"content": {
"type": "string",
"description": "For MLS schedules, device-signed e2ee:draft:v2 ciphertext for the owner preview; never user-visible plaintext. Legacy schedules may have empty content."
},
"scheduledAt": {
"type": "string"
},
"silent": {
"type": "boolean"
},
"status": {
"$ref": "#/components/schemas/ScheduledChatMessageStatus"
},
"sentMessageId": {
"type": "integer",
"format": "int64",
"nullable": true
},
"lastError": {
"type": "string",
"nullable": true
},
"createdAt": {
"type": "string"
},
"attachments": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ChatUploadSessionResponse"
}
},
"encryptedEnvelope": {
"type": "string",
"nullable": true,
"maxLength": 262144,
"x-sensitive": true,
"deprecated": true,
"description": "Legacy encrypted-content field; managed writes omit it."
},
"clientMessageId": {
"type": "string",
"nullable": true
},
"managedBody": {
"type": "object",
"additionalProperties": true,
"description": "Server-readable structured content, validated by the owning message operation. Managed writers omit legacy encryptedEnvelope; transport encryption and server ACL still apply.",
"nullable": true,
"x-kotlin-default": "null"
}
}
}ScheduledChatMessageStatus
string: PENDING, PROCESSING, SENT, FAILED, CANCELLED
JSON Schema
{
"type": "string",
"enum": [
"PENDING",
"PROCESSING",
"SENT",
"FAILED",
"CANCELLED"
]
}SecureAdmissionPolicyClaims
| Поле | Тип | Без default | Описание |
|---|---|---|---|
version | integer · int32 | Нет | |
purpose | string | Нет | |
scopeType | ChatScopeType | Да | |
scopeId | string | Да | |
communityId | string | Да | |
conversationId | string | Да | |
historyGeneration | string | Да | |
authorityUserIds | array<string> | Да | |
authorityRootFingerprints | array<string> | Да | |
activationEpoch | integer · int64 | Да | |
baseCommitHash | string · null | Нет | |
baseRosterHash | string · null | Нет | |
mode | string | Нет | |
history | string | Нет | |
policyRevision | integer · int64 | Нет | |
previousPolicySha256 | string · null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"version": {
"type": "integer",
"format": "int32"
},
"purpose": {
"type": "string"
},
"scopeType": {
"$ref": "#/components/schemas/ChatScopeType"
},
"scopeId": {
"type": "string"
},
"communityId": {
"type": "string"
},
"conversationId": {
"type": "string"
},
"historyGeneration": {
"type": "string"
},
"authorityUserIds": {
"type": "array",
"items": {
"type": "string"
}
},
"authorityRootFingerprints": {
"type": "array",
"items": {
"type": "string"
}
},
"activationEpoch": {
"type": "integer",
"format": "int64"
},
"baseCommitHash": {
"type": "string",
"nullable": true
},
"baseRosterHash": {
"type": "string",
"nullable": true
},
"mode": {
"type": "string"
},
"history": {
"type": "string"
},
"policyRevision": {
"type": "integer",
"format": "int64"
},
"previousPolicySha256": {
"type": "string",
"nullable": true
}
},
"required": [
"scopeType",
"scopeId",
"communityId",
"conversationId",
"historyGeneration",
"authorityUserIds",
"authorityRootFingerprints",
"activationEpoch"
]
}SecureApplicationClaims
| Поле | Тип | Без default | Описание |
|---|---|---|---|
version | integer · int32 | Нет | |
purpose | string | Нет | |
scopeType | ChatScopeType | Да | |
scopeId | string | Да | |
conversationId | string | Да | |
historyGeneration | string | Да | |
epoch | integer · int64 | Да | |
commitHash | string | Да | |
rosterHash | string | Да | |
senderUserId | string | Да | |
senderDeviceId | string | Да | |
clientMessageId | string | Да | |
revision | integer · int32 | Да | |
messageId | string · null | Нет | |
replyToMessageId | string · null | Нет | |
rootMessageId | string · null | Нет | |
attachmentUploadIds | array<string> | Да | |
context | string | Да | |
ciphertext | string | Да | |
archiveCiphertext | string | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"version": {
"type": "integer",
"format": "int32"
},
"purpose": {
"type": "string"
},
"scopeType": {
"$ref": "#/components/schemas/ChatScopeType"
},
"scopeId": {
"type": "string"
},
"conversationId": {
"type": "string"
},
"historyGeneration": {
"type": "string"
},
"epoch": {
"type": "integer",
"format": "int64"
},
"commitHash": {
"type": "string"
},
"rosterHash": {
"type": "string"
},
"senderUserId": {
"type": "string"
},
"senderDeviceId": {
"type": "string"
},
"clientMessageId": {
"type": "string"
},
"revision": {
"type": "integer",
"format": "int32"
},
"messageId": {
"type": "string",
"nullable": true
},
"replyToMessageId": {
"type": "string",
"nullable": true
},
"rootMessageId": {
"type": "string",
"nullable": true
},
"attachmentUploadIds": {
"type": "array",
"maxItems": 30,
"items": {
"type": "string"
}
},
"context": {
"type": "string"
},
"ciphertext": {
"type": "string"
},
"archiveCiphertext": {
"type": "string"
}
},
"required": [
"scopeType",
"scopeId",
"conversationId",
"historyGeneration",
"epoch",
"commitHash",
"rosterHash",
"senderUserId",
"senderDeviceId",
"clientMessageId",
"revision",
"attachmentUploadIds",
"context",
"ciphertext",
"archiveCiphertext"
]
}SecureApplicationContentRequirementClaims
| Поле | Тип | Без default | Описание |
|---|---|---|---|
version | integer · int32minimum=1; maximum=1 | Нет | |
purpose | string: mls-application-content-requirement | Нет | |
userId | string | Да | |
deviceId | stringmaxLength=128 | Да | |
certificateSha256 | stringpattern=^[0-9a-f]{64}$ | Да | |
encryptedEnvelopeSha256 | stringpattern=^[0-9a-f]{64}$ | Да | |
capabilitySnapshotSha256 | stringpattern=^[0-9a-f]{64}$ | Да | |
requiredFeatures | array<string: media-renditions-v2> | Да | |
expiresAtEpochMillis | integer · int64minimum=1 | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"version": {
"type": "integer",
"format": "int32",
"minimum": 1,
"maximum": 1
},
"purpose": {
"type": "string",
"enum": [
"mls-application-content-requirement"
]
},
"userId": {
"type": "string"
},
"deviceId": {
"type": "string",
"maxLength": 128
},
"certificateSha256": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"encryptedEnvelopeSha256": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"capabilitySnapshotSha256": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"requiredFeatures": {
"type": "array",
"items": {
"type": "string",
"enum": [
"media-renditions-v2"
]
},
"minItems": 1,
"maxItems": 1
},
"expiresAtEpochMillis": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
"required": [
"userId",
"deviceId",
"certificateSha256",
"encryptedEnvelopeSha256",
"capabilitySnapshotSha256",
"requiredFeatures",
"expiresAtEpochMillis"
]
}SecureApplicationResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
messageId | integer · int64 | Да | |
revision | integer · int32 | Да | |
inserted | boolean | Да | |
directMessage | DirectMessageResponse / null | Нет | |
channelMessage | ChannelMessageResponse / null | Нет | |
threadReply | MessageThreadReplyResponse / null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"messageId": {
"type": "integer",
"format": "int64"
},
"revision": {
"type": "integer",
"format": "int32"
},
"inserted": {
"type": "boolean"
},
"directMessage": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/DirectMessageResponse"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"channelMessage": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/ChannelMessageResponse"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"threadReply": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/MessageThreadReplyResponse"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
}
},
"required": [
"messageId",
"revision",
"inserted"
]
}SecureArchiveCapsule
| Поле | Тип | Без default | Описание |
|---|---|---|---|
userId | string | Да | |
rootFingerprint | string | Да | |
ciphertext | string | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"userId": {
"type": "string"
},
"rootFingerprint": {
"type": "string"
},
"ciphertext": {
"type": "string"
}
},
"required": [
"userId",
"rootFingerprint",
"ciphertext"
]
}SecureContentCapabilityNotReadyReason
string: NOT_ACTIVE, AUDIENCE_TOO_LARGE, DEVICE_NOT_READY, CAPABILITY_NOT_READY
JSON Schema
{
"type": "string",
"enum": [
"NOT_ACTIVE",
"AUDIENCE_TOO_LARGE",
"DEVICE_NOT_READY",
"CAPABILITY_NOT_READY"
]
}SecureContentCapabilitySnapshot
| Поле | Тип | Без default | Описание |
|---|---|---|---|
version | integer · int32minimum=1; maximum=1 | Нет | |
purpose | string: mls-content-capability-snapshot | Нет | |
scopeType | ChatScopeType | Да | |
scopeId | string | Да | |
conversationId | string | Да | |
historyGeneration | string | Да | |
epoch | integer · int64minimum=1 | Да | |
commitHash | stringpattern=^[0-9a-f]{64}$ | Да | |
rosterHash | stringpattern=^[0-9a-f]{64}$ | Да | |
requiredFeatures | array<string: media-renditions-v2> | Да | |
eligibleUserIds | array<string> | Да | |
devices | array<SecureDeviceContentCapabilityProof> | Да | |
expiresAtEpochMillis | integer · int64minimum=1 | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"version": {
"type": "integer",
"format": "int32",
"minimum": 1,
"maximum": 1
},
"purpose": {
"type": "string",
"enum": [
"mls-content-capability-snapshot"
]
},
"scopeType": {
"$ref": "#/components/schemas/ChatScopeType"
},
"scopeId": {
"type": "string"
},
"conversationId": {
"type": "string"
},
"historyGeneration": {
"type": "string"
},
"epoch": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"commitHash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"rosterHash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"requiredFeatures": {
"type": "array",
"items": {
"type": "string",
"enum": [
"media-renditions-v2"
]
},
"minItems": 1,
"maxItems": 1
},
"eligibleUserIds": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1,
"maxItems": 512
},
"devices": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SecureDeviceContentCapabilityProof"
},
"minItems": 1,
"maxItems": 512
},
"expiresAtEpochMillis": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
"required": [
"scopeType",
"scopeId",
"conversationId",
"historyGeneration",
"epoch",
"commitHash",
"rosterHash",
"requiredFeatures",
"eligibleUserIds",
"devices",
"expiresAtEpochMillis"
]
}SecureControlPageResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
transitions | array<SecureTransitionResponse> | Да | |
nextAfterEpoch | integer · int64 | Да | |
hasMore | boolean | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"transitions": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SecureTransitionResponse"
}
},
"nextAfterEpoch": {
"type": "integer",
"format": "int64"
},
"hasMore": {
"type": "boolean"
}
},
"required": [
"transitions",
"nextAfterEpoch",
"hasMore"
]
}SecureConversationStateResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
protocol | string | Нет | |
scopeType | ChatScopeType | Да | |
scopeId | string | Да | |
conversationId | string | Да | |
historyGeneration | string | Да | |
status | string | Да | |
communityId | integer · int64 · null | Нет | |
epoch | integer · int64 · null | Нет | |
commitHash | string · null | Нет | |
rosterHash | string · null | Нет | |
roster | array<SecureRosterMember> | Да | |
authorityUserIds | array<string> | Да | |
identities | array<E2eeIdentityResponse> | Да | |
openSelfJoinEligible | boolean | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"protocol": {
"type": "string"
},
"scopeType": {
"$ref": "#/components/schemas/ChatScopeType"
},
"scopeId": {
"type": "string"
},
"conversationId": {
"type": "string"
},
"historyGeneration": {
"type": "string"
},
"status": {
"type": "string"
},
"communityId": {
"type": "integer",
"format": "int64",
"nullable": true
},
"epoch": {
"type": "integer",
"format": "int64",
"nullable": true
},
"commitHash": {
"type": "string",
"nullable": true
},
"rosterHash": {
"type": "string",
"nullable": true
},
"roster": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SecureRosterMember"
}
},
"authorityUserIds": {
"type": "array",
"items": {
"type": "string"
}
},
"identities": {
"type": "array",
"items": {
"$ref": "#/components/schemas/E2eeIdentityResponse"
}
},
"openSelfJoinEligible": {
"type": "boolean"
}
},
"required": [
"scopeType",
"scopeId",
"conversationId",
"historyGeneration",
"status",
"roster",
"authorityUserIds",
"identities"
]
}SecureCooperativeAdmissionClaims
| Поле | Тип | Без default | Описание |
|---|---|---|---|
version | integer · int32 | Нет | Default: 1 |
purpose | string | Нет | Default: "mls-cooperative-admission" |
requestId | string | Да | |
scopeType | ChatScopeType | Да | |
scopeId | string | Да | |
conversationId | string | Да | |
historyGeneration | string | Да | |
authorityUserId | string | Да | |
authorityRootFingerprint | string | Да | |
targetDeviceId | string | Да | |
targetCertificateSha256 | string | Да | |
baseEpoch | integer · int64 | Да | |
baseCommitHash | string | Да | |
baseRosterHash | string | Да | |
createdAtEpochMillis | integer · int64 | Да | |
expiresAtEpochMillis | integer · int64 | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"version": {
"type": "integer",
"format": "int32",
"default": 1
},
"purpose": {
"type": "string",
"default": "mls-cooperative-admission"
},
"requestId": {
"type": "string"
},
"scopeType": {
"$ref": "#/components/schemas/ChatScopeType"
},
"scopeId": {
"type": "string"
},
"conversationId": {
"type": "string"
},
"historyGeneration": {
"type": "string"
},
"authorityUserId": {
"type": "string"
},
"authorityRootFingerprint": {
"type": "string"
},
"targetDeviceId": {
"type": "string"
},
"targetCertificateSha256": {
"type": "string"
},
"baseEpoch": {
"type": "integer",
"format": "int64"
},
"baseCommitHash": {
"type": "string"
},
"baseRosterHash": {
"type": "string"
},
"createdAtEpochMillis": {
"type": "integer",
"format": "int64"
},
"expiresAtEpochMillis": {
"type": "integer",
"format": "int64"
}
},
"required": [
"requestId",
"scopeType",
"scopeId",
"conversationId",
"historyGeneration",
"authorityUserId",
"authorityRootFingerprint",
"targetDeviceId",
"targetCertificateSha256",
"baseEpoch",
"baseCommitHash",
"baseRosterHash",
"createdAtEpochMillis",
"expiresAtEpochMillis"
]
}SecureCooperativeAdmissionListResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
requests | array<SecureCooperativeAdmissionResponse> | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"requests": {
"type": "array",
"maxItems": 8,
"items": {
"$ref": "#/components/schemas/SecureCooperativeAdmissionResponse"
}
}
},
"required": [
"requests"
]
}SecureCooperativeAdmissionResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
requestId | string | Да | |
status | SecureCooperativeAdmissionStatus | Да | |
signedRequest | string | Да | |
targetUserId | string | Да | |
targetDeviceId | string | Да | |
expiresAtEpochMillis | integer · int64 | Да | |
serverTimeEpochMillis | integer · int64 | Да | |
helperUserId | string · null | Нет | |
helperDeviceId | string · null | Нет | |
helperCertificateSha256 | string · null | Нет | |
signedManifest | string · null | Нет | |
signedApproval | string · null | Нет | |
verificationIdentities | array<E2eeIdentityResponse> | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"requestId": {
"type": "string"
},
"status": {
"$ref": "#/components/schemas/SecureCooperativeAdmissionStatus"
},
"signedRequest": {
"type": "string"
},
"targetUserId": {
"type": "string"
},
"targetDeviceId": {
"type": "string"
},
"expiresAtEpochMillis": {
"type": "integer",
"format": "int64"
},
"serverTimeEpochMillis": {
"type": "integer",
"format": "int64"
},
"helperUserId": {
"type": "string",
"nullable": true
},
"helperDeviceId": {
"type": "string",
"nullable": true
},
"helperCertificateSha256": {
"type": "string",
"nullable": true
},
"signedManifest": {
"type": "string",
"nullable": true
},
"signedApproval": {
"type": "string",
"nullable": true
},
"verificationIdentities": {
"type": "array",
"items": {
"$ref": "#/components/schemas/E2eeIdentityResponse"
}
}
},
"required": [
"requestId",
"status",
"signedRequest",
"targetUserId",
"targetDeviceId",
"expiresAtEpochMillis",
"serverTimeEpochMillis"
]
}SecureCooperativeAdmissionStatus
string: REQUESTED, CLAIMED, PROPOSED, APPROVED, COMMITTED, CANCELLED, EXPIRED, SUPERSEDED
JSON Schema
{
"type": "string",
"enum": [
"REQUESTED",
"CLAIMED",
"PROPOSED",
"APPROVED",
"COMMITTED",
"CANCELLED",
"EXPIRED",
"SUPERSEDED"
]
}SecureCredentialClaims
| Поле | Тип | Без default | Описание |
|---|---|---|---|
version | integer · int32 | Нет | |
purpose | string | Нет | |
userId | string | Да | |
deviceId | string | Да | |
rootFingerprint | string | Да | |
certificateSha256 | string | Да | |
signingPublicKey | string | Да | |
cipherSuite | integer · int32 | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"version": {
"type": "integer",
"format": "int32"
},
"purpose": {
"type": "string"
},
"userId": {
"type": "string"
},
"deviceId": {
"type": "string"
},
"rootFingerprint": {
"type": "string"
},
"certificateSha256": {
"type": "string"
},
"signingPublicKey": {
"type": "string"
},
"cipherSuite": {
"type": "integer",
"format": "int32"
}
},
"required": [
"userId",
"deviceId",
"rootFingerprint",
"certificateSha256",
"signingPublicKey"
]
}SecureDeviceContentCapabilityClaims
| Поле | Тип | Без default | Описание |
|---|---|---|---|
version | integer · int32minimum=1; maximum=1 | Нет | |
purpose | string: mls-device-content-capability | Нет | |
userId | string | Да | |
deviceId | stringmaxLength=128 | Да | |
certificateSha256 | stringpattern=^[0-9a-f]{64}$ | Да | |
revision | integer · int64minimum=1 | Да | |
features | array<string: media-renditions-v2> | Да | |
issuedAtEpochMillis | integer · int64minimum=1 | Да | |
expiresAtEpochMillis | integer · int64minimum=1 | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"version": {
"type": "integer",
"format": "int32",
"minimum": 1,
"maximum": 1
},
"purpose": {
"type": "string",
"enum": [
"mls-device-content-capability"
]
},
"userId": {
"type": "string"
},
"deviceId": {
"type": "string",
"maxLength": 128
},
"certificateSha256": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"revision": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"features": {
"type": "array",
"items": {
"type": "string",
"enum": [
"media-renditions-v2"
]
},
"minItems": 0,
"maxItems": 1
},
"issuedAtEpochMillis": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"expiresAtEpochMillis": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
"required": [
"userId",
"deviceId",
"certificateSha256",
"revision",
"features",
"issuedAtEpochMillis",
"expiresAtEpochMillis"
]
}SecureDeviceContentCapabilityProof
| Поле | Тип | Без default | Описание |
|---|---|---|---|
userId | string | Да | |
deviceId | stringmaxLength=128 | Да | |
certificateSha256 | stringpattern=^[0-9a-f]{64}$ | Да | |
revision | integer · int64minimum=1 | Да | |
signedCapability | string | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"userId": {
"type": "string"
},
"deviceId": {
"type": "string",
"maxLength": 128
},
"certificateSha256": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"revision": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"signedCapability": {
"type": "string"
}
},
"required": [
"userId",
"deviceId",
"certificateSha256",
"revision",
"signedCapability"
]
}SecureDeviceContentCapabilityResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
certificateSha256 | stringpattern=^[0-9a-f]{64}$ | Да | |
revision | integer · int64minimum=0 | Да | |
signedCapability | string · null | Нет | |
serverTimeEpochMillis | integer · int64minimum=1 | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"certificateSha256": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"revision": {
"type": "integer",
"format": "int64",
"minimum": 0
},
"signedCapability": {
"type": "string",
"nullable": true
},
"serverTimeEpochMillis": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
"required": [
"certificateSha256",
"revision",
"serverTimeEpochMillis"
]
}SecureDeviceRef
| Поле | Тип | Без default | Описание |
|---|---|---|---|
userId | string | Да | |
deviceId | string | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"userId": {
"type": "string"
},
"deviceId": {
"type": "string"
}
},
"required": [
"userId",
"deviceId"
]
}SecureDeviceRevocationClaims
| Поле | Тип | Без default | Описание |
|---|---|---|---|
version | integer · int32 | Нет | |
purpose | string | Нет | |
userId | string | Да | |
deviceId | string | Да | |
certificateSha256 | string | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"version": {
"type": "integer",
"format": "int32"
},
"purpose": {
"type": "string"
},
"userId": {
"type": "string"
},
"deviceId": {
"type": "string"
},
"certificateSha256": {
"type": "string"
}
},
"required": [
"userId",
"deviceId",
"certificateSha256"
]
}SecureGroupMentionTargets
| Поле | Тип | Без default | Описание |
|---|---|---|---|
everyone | boolean | Нет | Default: false |
systemRoles | array<string> | Нет | Default: [] |
customRoleIds | array<string> | Нет | Default: [] |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"everyone": {
"type": "boolean",
"default": false
},
"systemRoles": {
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"customRoleIds": {
"type": "array",
"items": {
"type": "string"
},
"default": []
}
}
}SecureHistoryGrantClaims
| Поле | Тип | Без default | Описание |
|---|---|---|---|
version | integer · int32 | Нет | |
purpose | string | Нет | |
scopeType | ChatScopeType | Да | |
scopeId | string | Да | |
conversationId | string | Да | |
historyGeneration | string | Да | |
epoch | integer · int64minimum=1 | Да | |
commitHash | string | Да | |
grantorUserId | string | Да | |
grantorDeviceId | string | Да | |
grantorCertificateSha256 | string | Да | |
authorizedAtEpoch | integer · int64minimum=1 | Да | |
authorizedAtCommitHash | string | Да | |
capsule | SecureArchiveCapsule | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"version": {
"type": "integer",
"format": "int32"
},
"purpose": {
"type": "string"
},
"scopeType": {
"$ref": "#/components/schemas/ChatScopeType"
},
"scopeId": {
"type": "string"
},
"conversationId": {
"type": "string"
},
"historyGeneration": {
"type": "string"
},
"epoch": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"commitHash": {
"type": "string"
},
"grantorUserId": {
"type": "string"
},
"grantorDeviceId": {
"type": "string"
},
"grantorCertificateSha256": {
"type": "string"
},
"authorizedAtEpoch": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"authorizedAtCommitHash": {
"type": "string"
},
"capsule": {
"$ref": "#/components/schemas/SecureArchiveCapsule"
}
},
"required": [
"scopeType",
"scopeId",
"conversationId",
"historyGeneration",
"epoch",
"commitHash",
"grantorUserId",
"grantorDeviceId",
"grantorCertificateSha256",
"authorizedAtEpoch",
"authorizedAtCommitHash",
"capsule"
]
}SecureHistoryGrantResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
epoch | integer · int64minimum=1 | Да | |
signedGrant | stringmaxLength=16384 | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"epoch": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"signedGrant": {
"type": "string",
"maxLength": 16384
}
},
"required": [
"epoch",
"signedGrant"
]
}SecureHistoryGrantTarget
| Поле | Тип | Без default | Описание |
|---|---|---|---|
epoch | integer · int64minimum=1 | Да | |
recipientUserIds | array<string> | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"epoch": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"recipientUserIds": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1,
"maxItems": 16
}
},
"required": [
"epoch",
"recipientUserIds"
]
}SecureHistoryGrantsResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
grants | array<SecureHistoryGrantResponse> | Нет | |
pending | array<SecureHistoryGrantTarget> | Нет | At most 16 recipients in total across these targets. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"grants": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SecureHistoryGrantResponse"
},
"maxItems": 8
},
"pending": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SecureHistoryGrantTarget"
},
"maxItems": 12,
"description": "At most 16 recipients in total across these targets."
}
}
}SecureKeyPackageClaims
| Поле | Тип | Без default | Описание |
|---|---|---|---|
version | integer · int32 | Нет | |
purpose | string | Нет | |
userId | string | Да | |
deviceId | string | Да | |
certificateSha256 | string | Да | |
credential | string | Да | |
keyPackage | string | Да | |
keyPackageSha256 | string | Да | |
expiresAtEpochMillis | integer · int64 | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"version": {
"type": "integer",
"format": "int32"
},
"purpose": {
"type": "string"
},
"userId": {
"type": "string"
},
"deviceId": {
"type": "string"
},
"certificateSha256": {
"type": "string"
},
"credential": {
"type": "string"
},
"keyPackage": {
"type": "string"
},
"keyPackageSha256": {
"type": "string"
},
"expiresAtEpochMillis": {
"type": "integer",
"format": "int64"
}
},
"required": [
"userId",
"deviceId",
"certificateSha256",
"credential",
"keyPackage",
"keyPackageSha256",
"expiresAtEpochMillis"
]
}SecureKeyPackageListResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
keyPackages | array<SecureKeyPackageResponse> | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"keyPackages": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SecureKeyPackageResponse"
}
}
},
"required": [
"keyPackages"
]
}SecureKeyPackageReservationResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
requestId | string | Да | |
expiresAtEpochMillis | integer · int64 | Да | |
keyPackages | array<SecureKeyPackageResponse> | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"requestId": {
"type": "string"
},
"expiresAtEpochMillis": {
"type": "integer",
"format": "int64"
},
"keyPackages": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SecureKeyPackageResponse"
}
}
},
"required": [
"requestId",
"expiresAtEpochMillis",
"keyPackages"
]
}SecureKeyPackageResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
signedKeyPackage | string | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"signedKeyPackage": {
"type": "string"
}
},
"required": [
"signedKeyPackage"
]
}SecureMessagingCapabilityResponse
SERVER_MANAGED_1 with enabled=false selects server-managed content; historyGeneration and minimumContentProtocolVersion fence current writes. This does not disable HTTPS/WSS or WebRTC transport encryption.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
protocol | string | Нет | |
enabled | boolean | Да | |
historyGeneration | string | Да | |
minimumContentProtocolVersion | integer · int32minimum=1 | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"protocol": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"historyGeneration": {
"type": "string"
},
"minimumContentProtocolVersion": {
"type": "integer",
"format": "int32",
"x-kotlin-default": "com.xchat.server.message.CONTENT_PROTOCOL_VERSION",
"minimum": 1
}
},
"required": [
"enabled",
"historyGeneration"
],
"description": "SERVER_MANAGED_1 with enabled=false selects server-managed content; historyGeneration and minimumContentProtocolVersion fence current writes. This does not disable HTTPS/WSS or WebRTC transport encryption."
}SecureNotificationIntentClaims
| Поле | Тип | Без default | Описание |
|---|---|---|---|
version | integer · int32 | Нет | Default: 1 |
purpose | string | Нет | Default: "message-notification-intent" |
senderUserId | string | Да | |
senderDeviceId | string | Да | |
scopeType | ChatScopeType | Да | |
scopeId | string | Да | |
clientMessageId | string | Да | |
encryptedEnvelopeSha256 | string | Да | |
targets | SecureGroupMentionTargets | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"version": {
"type": "integer",
"format": "int32",
"default": 1
},
"purpose": {
"type": "string",
"default": "message-notification-intent"
},
"senderUserId": {
"type": "string"
},
"senderDeviceId": {
"type": "string"
},
"scopeType": {
"$ref": "#/components/schemas/ChatScopeType"
},
"scopeId": {
"type": "string"
},
"clientMessageId": {
"type": "string"
},
"encryptedEnvelopeSha256": {
"type": "string"
},
"targets": {
"$ref": "#/components/schemas/SecureGroupMentionTargets"
}
},
"required": [
"senderUserId",
"senderDeviceId",
"scopeType",
"scopeId",
"clientMessageId",
"encryptedEnvelopeSha256",
"targets"
]
}SecurePrivateDraftClaims
| Поле | Тип | Без default | Описание |
|---|---|---|---|
version | integer · int32 | Нет | |
purpose | string | Нет | |
scopeType | ChatScopeType | Да | |
scopeId | string | Да | |
ownerUserId | string | Да | |
senderDeviceId | string | Да | |
ciphertext | string | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"version": {
"type": "integer",
"format": "int32"
},
"purpose": {
"type": "string"
},
"scopeType": {
"$ref": "#/components/schemas/ChatScopeType"
},
"scopeId": {
"type": "string"
},
"ownerUserId": {
"type": "string"
},
"senderDeviceId": {
"type": "string"
},
"ciphertext": {
"type": "string"
}
},
"required": [
"scopeType",
"scopeId",
"ownerUserId",
"senderDeviceId",
"ciphertext"
]
}SecurePublicChatCardResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
news | ChatNewsResponse / null | Нет | |
event | ChatEventResponse / null | Нет | |
application | SecureApplicationResponse | Да |
JSON Schema
{
"type": "object",
"properties": {
"news": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/ChatNewsResponse"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
],
"x-kotlin-default": "null"
},
"event": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/ChatEventResponse"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
],
"x-kotlin-default": "null"
},
"application": {
"$ref": "#/components/schemas/SecureApplicationResponse"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/e2ee/SecurePublicChatCardDtos.kt",
"line": 17
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"application"
],
"additionalProperties": false
}SecureRosterMember
| Поле | Тип | Без default | Описание |
|---|---|---|---|
userId | string | Да | |
deviceId | string | Да | |
certificateSha256 | string | Да | |
credential | string | Да | |
keyPackageSha256 | string · null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"userId": {
"type": "string"
},
"deviceId": {
"type": "string"
},
"certificateSha256": {
"type": "string"
},
"credential": {
"type": "string"
},
"keyPackageSha256": {
"type": "string",
"nullable": true
}
},
"required": [
"userId",
"deviceId",
"certificateSha256",
"credential"
]
}SecureTransitionManifest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
version | integer · int32 | Нет | |
purpose | string | Нет | |
scopeType | ChatScopeType | Да | |
scopeId | string | Да | |
conversationId | string | Да | |
historyGeneration | string | Да | |
authorityUserIds | array<string> | Да | |
requestId | string | Да | |
committerUserId | string | Да | |
committerDeviceId | string | Да | |
previousEpoch | integer · int64 · null | Нет | |
previousCommitHash | string · null | Нет | |
previousRosterHash | string · null | Нет | |
nextEpoch | integer · int64 | Да | |
commit | string | Да | |
nextRoster | array<SecureRosterMember> | Да | |
welcomes | array<SecureWelcome> | Да | |
reservationRequestId | string · null | Нет | |
archiveCapsules | array<SecureArchiveCapsule> | Да | |
transitionKind | string · null | Нет | |
signedAdmissionPolicy | string · null | Нет | |
nextExternalGroupInfo | string · null | Нет | |
externalJoinBaseGroupInfoSha256 | string · null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"version": {
"type": "integer",
"format": "int32"
},
"purpose": {
"type": "string"
},
"scopeType": {
"$ref": "#/components/schemas/ChatScopeType"
},
"scopeId": {
"type": "string"
},
"conversationId": {
"type": "string"
},
"historyGeneration": {
"type": "string"
},
"authorityUserIds": {
"type": "array",
"items": {
"type": "string"
}
},
"requestId": {
"type": "string"
},
"committerUserId": {
"type": "string"
},
"committerDeviceId": {
"type": "string"
},
"previousEpoch": {
"type": "integer",
"format": "int64",
"nullable": true
},
"previousCommitHash": {
"type": "string",
"nullable": true
},
"previousRosterHash": {
"type": "string",
"nullable": true
},
"nextEpoch": {
"type": "integer",
"format": "int64"
},
"commit": {
"type": "string"
},
"nextRoster": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SecureRosterMember"
}
},
"welcomes": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SecureWelcome"
}
},
"reservationRequestId": {
"type": "string",
"nullable": true
},
"archiveCapsules": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SecureArchiveCapsule"
}
},
"transitionKind": {
"type": "string",
"nullable": true
},
"signedAdmissionPolicy": {
"type": "string",
"nullable": true
},
"nextExternalGroupInfo": {
"type": "string",
"nullable": true
},
"externalJoinBaseGroupInfoSha256": {
"type": "string",
"nullable": true
}
},
"required": [
"scopeType",
"scopeId",
"conversationId",
"historyGeneration",
"authorityUserIds",
"requestId",
"committerUserId",
"committerDeviceId",
"nextEpoch",
"commit",
"nextRoster",
"welcomes",
"archiveCapsules"
]
}SecureTransitionResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
epoch | integer · int64 | Да | |
commitHash | string | Да | |
rosterHash | string | Да | |
signedManifest | string | Да | |
membershipApprovals | array<string> | Да | |
verificationIdentities | array<E2eeIdentityResponse> | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"epoch": {
"type": "integer",
"format": "int64"
},
"commitHash": {
"type": "string"
},
"rosterHash": {
"type": "string"
},
"signedManifest": {
"type": "string"
},
"membershipApprovals": {
"type": "array",
"items": {
"type": "string"
}
},
"verificationIdentities": {
"type": "array",
"items": {
"$ref": "#/components/schemas/E2eeIdentityResponse"
}
}
},
"required": [
"epoch",
"commitHash",
"rosterHash",
"signedManifest",
"membershipApprovals",
"verificationIdentities"
]
}SecureWelcome
| Поле | Тип | Без default | Описание |
|---|---|---|---|
userId | string | Да | |
deviceId | string | Да | |
keyPackageSha256 | string | Да | |
ciphertext | string | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"userId": {
"type": "string"
},
"deviceId": {
"type": "string"
},
"keyPackageSha256": {
"type": "string"
},
"ciphertext": {
"type": "string"
}
},
"required": [
"userId",
"deviceId",
"keyPackageSha256",
"ciphertext"
]
}SendChannelMessageRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
content | string | Да | |
clientMessageId | string · null | Нет | |
replyToMessageId | integer · int64 · null | Нет | |
managedBody | object · null | Нет | Explicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules. |
JSON Schema
{
"type": "object",
"properties": {
"content": {
"type": "string"
},
"clientMessageId": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"replyToMessageId": {
"type": "integer",
"format": "int64",
"nullable": true,
"x-kotlin-default": "null"
},
"managedBody": {
"type": "object",
"additionalProperties": true,
"description": "Explicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules.",
"nullable": true,
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/channel/ChannelDtos.kt",
"line": 62
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"content"
]
}SendDirectMessageRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
content | string | Да | |
clientMessageId | string · null | Нет | |
replyToMessageId | integer · int64 · null | Нет | |
encryptedEnvelope | string · nullmaxLength=262144 | Нет | Legacy encrypted-content field; managed writes omit it. |
managedBody | object · null | Нет | Server-readable structured content, validated by the owning message operation. Managed writers omit legacy encryptedEnvelope; transport encryption and server ACL still apply. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"content"
],
"properties": {
"content": {
"type": "string"
},
"clientMessageId": {
"type": "string",
"nullable": true
},
"replyToMessageId": {
"type": "integer",
"format": "int64",
"nullable": true
},
"encryptedEnvelope": {
"type": "string",
"nullable": true,
"maxLength": 262144,
"x-sensitive": true,
"deprecated": true,
"description": "Legacy encrypted-content field; managed writes omit it."
},
"managedBody": {
"type": "object",
"additionalProperties": true,
"description": "Server-readable structured content, validated by the owning message operation. Managed writers omit legacy encryptedEnvelope; transport encryption and server ACL still apply.",
"nullable": true,
"x-kotlin-default": "null"
}
}
}SendMessageThreadReplyRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
content | string | Да | |
clientMessageId | string · null | Нет | |
encryptedEnvelope | string · nullmaxLength=262144 | Нет | Legacy encrypted-content field; managed writes omit it. |
managedBody | object · null | Нет | Server-readable structured content, validated by the owning message operation. Managed writers omit legacy encryptedEnvelope; transport encryption and server ACL still apply. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"content"
],
"properties": {
"content": {
"type": "string"
},
"clientMessageId": {
"type": "string",
"nullable": true
},
"encryptedEnvelope": {
"type": "string",
"nullable": true,
"maxLength": 262144,
"x-sensitive": true,
"deprecated": true,
"description": "Legacy encrypted-content field; managed writes omit it."
},
"managedBody": {
"type": "object",
"additionalProperties": true,
"description": "Server-readable structured content, validated by the owning message operation. Managed writers omit legacy encryptedEnvelope; transport encryption and server ACL still apply.",
"nullable": true,
"x-kotlin-default": "null"
}
}
}SendPreparedAttachmentsRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
uploadIds | array<string> | Да | |
caption | string · null | Нет | |
clientMessageId | string · null | Нет | |
voiceDurationMs | integer · int64 · null | Нет | |
videoDurationMs | integer · int64 · null | Нет | |
encryptedEnvelope | string · nullmaxLength=262144 | Нет | Legacy encrypted-content field; managed writes omit it. |
managedBody | object · null | Нет | Server-readable structured content, validated by the owning message operation. Managed writers omit legacy encryptedEnvelope; transport encryption and server ACL still apply. |
replyToMessageId | integer · int64 · null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"uploadIds"
],
"properties": {
"uploadIds": {
"type": "array",
"items": {
"type": "string"
}
},
"caption": {
"type": "string",
"nullable": true
},
"clientMessageId": {
"type": "string",
"nullable": true
},
"voiceDurationMs": {
"type": "integer",
"format": "int64",
"nullable": true
},
"videoDurationMs": {
"type": "integer",
"format": "int64",
"nullable": true
},
"encryptedEnvelope": {
"type": "string",
"nullable": true,
"maxLength": 262144,
"x-sensitive": true,
"deprecated": true,
"description": "Legacy encrypted-content field; managed writes omit it."
},
"managedBody": {
"type": "object",
"additionalProperties": true,
"description": "Server-readable structured content, validated by the owning message operation. Managed writers omit legacy encryptedEnvelope; transport encryption and server ACL still apply.",
"nullable": true,
"x-kotlin-default": "null"
},
"replyToMessageId": {
"type": "integer",
"format": "int64",
"nullable": true,
"x-kotlin-default": "null"
}
}
}SetMessagePinRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
pinned | boolean | Да |
JSON Schema
{
"type": "object",
"properties": {
"pinned": {
"type": "boolean"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/message/MessageDtos.kt",
"line": 32
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"pinned"
]
}SetMessageReactionRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
emoji | string | Да | |
active | boolean | Да |
JSON Schema
{
"type": "object",
"properties": {
"emoji": {
"type": "string"
},
"active": {
"type": "boolean"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/message/MessageDtos.kt",
"line": 21
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"emoji",
"active"
]
}SocialAudience
string: FRIENDS, PUBLIC
JSON Schema
{
"type": "string",
"enum": [
"FRIENDS",
"PUBLIC"
]
}SocialFeedItemResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
key | string | Да | |
kind | string | Да | |
sortAt | string | Да | |
publication | SocialPublicationResponse / null | Нет | |
news | ChatNewsResponse / null | Нет | |
event | UpcomingChatEventResponse / null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"key": {
"type": "string"
},
"kind": {
"type": "string"
},
"sortAt": {
"type": "string"
},
"publication": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/SocialPublicationResponse"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"news": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/ChatNewsResponse"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"event": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/UpcomingChatEventResponse"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
}
},
"required": [
"key",
"kind",
"sortAt"
]
}SocialFeedPageResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
items | array<SocialFeedItemResponse> | Да | |
nextCursor | string · null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SocialFeedItemResponse"
}
},
"nextCursor": {
"type": "string",
"nullable": true
}
},
"required": [
"items"
]
}SocialPublicationKind
string: POST, STORY
JSON Schema
{
"type": "string",
"enum": [
"POST",
"STORY"
]
}SocialPublicationMetadata
| Поле | Тип | Без default | Описание |
|---|---|---|---|
location | string · nullmaxLength=160 | Нет | |
people | array<stringminLength=1; maxLength=64> | Нет | |
event | string · nullmaxLength=160 | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"location": {
"type": "string",
"nullable": true,
"maxLength": 160
},
"people": {
"type": "array",
"maxItems": 10,
"items": {
"type": "string",
"minLength": 1,
"maxLength": 64
}
},
"event": {
"type": "string",
"nullable": true,
"maxLength": 160
}
},
"nullable": true
}SocialPublicationPageResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
items | array<SocialPublicationResponse> | Да | |
nextCursor | string · null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SocialPublicationResponse"
}
},
"nextCursor": {
"type": "string",
"nullable": true
}
},
"required": [
"items"
]
}SocialPublicationResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64 | Да | |
authorUserId | integer · int64 | Да | |
authorUserIdentifier | string | Да | |
authorDisplayName | string | Да | |
authorAvatarUrl | string · null | Нет | |
kind | SocialPublicationKind | Да | |
audience | SocialAudience | Да | |
title | string · null | Нет | |
body | string | Да | |
slides | array<SocialSlideResponse> | Да | |
createdAt | string | Да | |
updatedAt | string · null | Нет | |
revision | integer · int64 | Да | |
highlightUntil | string · null | Нет | |
seen | boolean | Нет | |
canEdit | boolean | Нет | |
metadata | SocialPublicationMetadata / null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"authorUserId": {
"type": "integer",
"format": "int64"
},
"authorUserIdentifier": {
"type": "string"
},
"authorDisplayName": {
"type": "string"
},
"authorAvatarUrl": {
"type": "string",
"nullable": true
},
"kind": {
"$ref": "#/components/schemas/SocialPublicationKind"
},
"audience": {
"$ref": "#/components/schemas/SocialAudience"
},
"title": {
"type": "string",
"nullable": true
},
"body": {
"type": "string"
},
"slides": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SocialSlideResponse"
}
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string",
"nullable": true
},
"revision": {
"type": "integer",
"format": "int64"
},
"highlightUntil": {
"type": "string",
"nullable": true
},
"seen": {
"type": "boolean"
},
"canEdit": {
"type": "boolean"
},
"metadata": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/SocialPublicationMetadata"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
}
},
"required": [
"id",
"authorUserId",
"authorUserIdentifier",
"authorDisplayName",
"kind",
"audience",
"body",
"slides",
"createdAt",
"revision"
]
}SocialSlideRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
uploadId | string · null | Нет | |
retainedSlideId | integer · int64 · null | Нет | |
caption | string · null | Нет | |
location | string · null | Нет | |
people | array<string> | Нет | |
event | string · null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"uploadId": {
"type": "string",
"nullable": true
},
"retainedSlideId": {
"type": "integer",
"format": "int64",
"nullable": true
},
"caption": {
"type": "string",
"nullable": true
},
"location": {
"type": "string",
"nullable": true
},
"people": {
"type": "array",
"items": {
"type": "string"
}
},
"event": {
"type": "string",
"nullable": true
}
}
}SocialSlideResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64 | Да | |
position | integer · int32 | Да | |
mediaUrl | string | Да | |
thumbnailUrl | string · null | Нет | |
width | integer · int32 · null | Нет | |
height | integer · int32 · null | Нет | |
caption | string · null | Нет | |
location | string · null | Нет | |
people | array<string> | Нет | |
event | string · null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"position": {
"type": "integer",
"format": "int32"
},
"mediaUrl": {
"type": "string"
},
"thumbnailUrl": {
"type": "string",
"nullable": true
},
"width": {
"type": "integer",
"format": "int32",
"nullable": true
},
"height": {
"type": "integer",
"format": "int32",
"nullable": true
},
"caption": {
"type": "string",
"nullable": true
},
"location": {
"type": "string",
"nullable": true
},
"people": {
"type": "array",
"items": {
"type": "string"
}
},
"event": {
"type": "string",
"nullable": true
}
},
"required": [
"id",
"position",
"mediaUrl"
]
}StartChannelVoiceSessionRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
maxParticipants | integer · int32 · null | Нет | |
ownershipProtocolVersion | integer · int32 · null | Нет | Required value 1 for commands; omission is rejected with 426. |
expectedSessionId | integer · int64 · nullminimum=1; maximum=9223372036854775807 | Нет | |
participationId | string · uuid · null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"maxParticipants": {
"type": "integer",
"format": "int32",
"nullable": true
},
"ownershipProtocolVersion": {
"type": "integer",
"format": "int32",
"nullable": true,
"description": "Required value 1 for commands; omission is rejected with 426."
},
"expectedSessionId": {
"type": "integer",
"format": "int64",
"nullable": true,
"minimum": 1,
"maximum": 9223372036854775807
},
"participationId": {
"type": "string",
"format": "uuid",
"nullable": true
}
}
}StartStreamSessionRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
title | stringmaxLength=120 | Да | |
videoSource | VideoSourceType | Нет | |
videoQuality | VideoQualitySettings | Нет | |
ownershipProtocolVersion | integer · int32 · null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"title"
],
"properties": {
"title": {
"type": "string",
"maxLength": 120
},
"videoSource": {
"$ref": "#/components/schemas/VideoSourceType"
},
"videoQuality": {
"$ref": "#/components/schemas/VideoQualitySettings"
},
"ownershipProtocolVersion": {
"type": "integer",
"format": "int32",
"nullable": true
}
}
}StreamParticipantPageResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
sessionId | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
status | StreamSessionStatus | Да | |
rosterRevision | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
participantsCount | integer · int32minimum=0 | Да | |
items | array<StreamParticipantResponse> | Да | |
hasMore | boolean | Да | |
nextCursor | string · nullminLength=1; maxLength=512 | Нет | Opaque continuation token. Do not parse or construct it on the client. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"sessionId": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"status": {
"$ref": "#/components/schemas/StreamSessionStatus"
},
"rosterRevision": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"participantsCount": {
"type": "integer",
"format": "int32",
"minimum": 0
},
"items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/StreamParticipantResponse"
},
"maxItems": 100
},
"hasMore": {
"type": "boolean"
},
"nextCursor": {
"type": "string",
"nullable": true,
"minLength": 1,
"maxLength": 512,
"description": "Opaque continuation token. Do not parse or construct it on the client."
}
},
"required": [
"sessionId",
"status",
"rosterRevision",
"participantsCount",
"items",
"hasMore"
]
}StreamParticipantResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
userId | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
userIdentifier | string | Да | |
displayName | string | Да | |
avatarUrl | string · null | Нет | |
role | StreamParticipantRole | Да | |
joinedAt | string · date-time | Да | |
canPublishAudio | boolean | Да | |
canPublishVideo | boolean | Да | |
participationId | string · uuid · null | Нет | |
isBot | boolean | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"userId": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"userIdentifier": {
"type": "string"
},
"displayName": {
"type": "string"
},
"avatarUrl": {
"type": "string",
"nullable": true
},
"role": {
"$ref": "#/components/schemas/StreamParticipantRole"
},
"joinedAt": {
"type": "string",
"format": "date-time"
},
"canPublishAudio": {
"type": "boolean"
},
"canPublishVideo": {
"type": "boolean"
},
"participationId": {
"type": "string",
"format": "uuid",
"nullable": true
},
"isBot": {
"type": "boolean"
}
},
"required": [
"userId",
"userIdentifier",
"displayName",
"role",
"joinedAt",
"canPublishAudio",
"canPublishVideo"
]
}StreamParticipantRole
string: HOST, SPEAKER, VIEWER
JSON Schema
{
"type": "string",
"enum": [
"HOST",
"SPEAKER",
"VIEWER"
]
}StreamSessionResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
status | StreamSessionStatus | Да | |
title | string | Да | |
communityId | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
communityName | string | Да | |
communityAvatarUrl | string · null | Нет | |
channelId | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
channelName | string | Да | |
videoSource | VideoSourceType | Да | |
videoQuality | VideoQualitySettings | Да | |
hostUserId | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
hostDisplayName | string | Да | |
hostAvatarUrl | string · null | Нет | |
startedAt | string · date-time | Да | |
endedAt | string · date-time · null | Нет | |
participantsCount | integer · int32minimum=0 | Да | |
participants | array<StreamParticipantResponse> | Да | |
currentUserJoined | boolean | Да | |
currentUserRole | StreamParticipantRole / null | Нет | |
canPublishAudio | boolean | Да | |
canPublishVideo | boolean | Да | |
canManage | boolean | Да | |
canModerateSpeakers | boolean | Да | |
ownershipProtocolVersion | integer · int32 | Нет | Advertised ownership capability; when absent, ownership commands are unsupported. |
currentUserParticipationId | string · uuid · null | Нет | Current or last inactive membership UUID. Read before explicit join; null only when no membership has existed. |
currentUserOwnerDeviceId | string · null | Нет | Only the authenticated user's device owner; null for legacy membership. |
summaryRevision | integer · int64 · nullminimum=0 | Нет | |
rosterRevision | integer · int64 · nullminimum=0 | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"status": {
"$ref": "#/components/schemas/StreamSessionStatus"
},
"title": {
"type": "string"
},
"communityId": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"communityName": {
"type": "string"
},
"communityAvatarUrl": {
"type": "string",
"nullable": true
},
"channelId": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"channelName": {
"type": "string"
},
"videoSource": {
"$ref": "#/components/schemas/VideoSourceType"
},
"videoQuality": {
"$ref": "#/components/schemas/VideoQualitySettings"
},
"hostUserId": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"hostDisplayName": {
"type": "string"
},
"hostAvatarUrl": {
"type": "string",
"nullable": true
},
"startedAt": {
"type": "string",
"format": "date-time"
},
"endedAt": {
"type": "string",
"nullable": true,
"format": "date-time"
},
"participantsCount": {
"type": "integer",
"format": "int32",
"minimum": 0
},
"participants": {
"type": "array",
"items": {
"$ref": "#/components/schemas/StreamParticipantResponse"
}
},
"currentUserJoined": {
"type": "boolean"
},
"currentUserRole": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/StreamParticipantRole"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"canPublishAudio": {
"type": "boolean"
},
"canPublishVideo": {
"type": "boolean"
},
"canManage": {
"type": "boolean"
},
"canModerateSpeakers": {
"type": "boolean"
},
"ownershipProtocolVersion": {
"type": "integer",
"description": "Advertised ownership capability; when absent, ownership commands are unsupported.",
"format": "int32"
},
"currentUserParticipationId": {
"type": "string",
"format": "uuid",
"nullable": true,
"description": "Current or last inactive membership UUID. Read before explicit join; null only when no membership has existed."
},
"currentUserOwnerDeviceId": {
"type": "string",
"nullable": true,
"description": "Only the authenticated user's device owner; null for legacy membership."
},
"summaryRevision": {
"type": "integer",
"format": "int64",
"nullable": true,
"minimum": 0
},
"rosterRevision": {
"type": "integer",
"format": "int64",
"nullable": true,
"minimum": 0
}
},
"required": [
"id",
"status",
"title",
"communityId",
"communityName",
"channelId",
"channelName",
"videoSource",
"videoQuality",
"hostUserId",
"hostDisplayName",
"startedAt",
"participantsCount",
"participants",
"currentUserJoined",
"canPublishAudio",
"canPublishVideo",
"canManage",
"canModerateSpeakers"
]
}StreamSessionStatus
string: LIVE, ENDED
JSON Schema
{
"type": "string",
"enum": [
"LIVE",
"ENDED"
]
}StreamSessionSummaryResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
status | StreamSessionStatus | Да | |
title | string | Да | |
communityId | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
communityName | string | Да | |
communityAvatarUrl | string · null | Нет | |
channelId | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
channelName | string | Да | |
videoSource | VideoSourceType | Да | |
videoQuality | VideoQualitySettings | Да | |
hostUserId | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
hostDisplayName | string | Да | |
hostAvatarUrl | string · null | Нет | |
startedAt | string · date-time | Да | |
endedAt | string · date-time · null | Нет | |
participantsCount | integer · int32minimum=0 | Да | |
viewersCount | integer · int32minimum=0 | Да | |
speakersCount | integer · int32minimum=0 | Да | |
currentUserJoined | boolean | Да | |
currentUserRole | StreamParticipantRole / null | Нет | |
canPublishAudio | boolean | Да | |
canPublishVideo | boolean | Да | |
canManage | boolean | Да | |
canModerateSpeakers | boolean | Да | |
summaryRevision | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
rosterRevision | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
ownershipProtocolVersion | integer · int32 | Нет | Advertised ownership capability; when absent, ownership commands are unsupported. |
currentUserParticipationId | string · uuid · null | Нет | Current or last inactive membership UUID. Read before explicit join; null only when no membership has existed. |
currentUserOwnerDeviceId | string · null | Нет | Only the authenticated user's device owner; null for legacy membership. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"status": {
"$ref": "#/components/schemas/StreamSessionStatus"
},
"title": {
"type": "string"
},
"communityId": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"communityName": {
"type": "string"
},
"communityAvatarUrl": {
"type": "string",
"nullable": true
},
"channelId": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"channelName": {
"type": "string"
},
"videoSource": {
"$ref": "#/components/schemas/VideoSourceType"
},
"videoQuality": {
"$ref": "#/components/schemas/VideoQualitySettings"
},
"hostUserId": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"hostDisplayName": {
"type": "string"
},
"hostAvatarUrl": {
"type": "string",
"nullable": true
},
"startedAt": {
"type": "string",
"format": "date-time"
},
"endedAt": {
"type": "string",
"nullable": true,
"format": "date-time"
},
"participantsCount": {
"type": "integer",
"format": "int32",
"minimum": 0
},
"viewersCount": {
"type": "integer",
"format": "int32",
"minimum": 0
},
"speakersCount": {
"type": "integer",
"format": "int32",
"minimum": 0
},
"currentUserJoined": {
"type": "boolean"
},
"currentUserRole": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/StreamParticipantRole"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"canPublishAudio": {
"type": "boolean"
},
"canPublishVideo": {
"type": "boolean"
},
"canManage": {
"type": "boolean"
},
"canModerateSpeakers": {
"type": "boolean"
},
"summaryRevision": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"rosterRevision": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"ownershipProtocolVersion": {
"type": "integer",
"description": "Advertised ownership capability; when absent, ownership commands are unsupported.",
"format": "int32"
},
"currentUserParticipationId": {
"type": "string",
"format": "uuid",
"nullable": true,
"description": "Current or last inactive membership UUID. Read before explicit join; null only when no membership has existed."
},
"currentUserOwnerDeviceId": {
"type": "string",
"nullable": true,
"description": "Only the authenticated user's device owner; null for legacy membership."
}
},
"required": [
"id",
"status",
"title",
"communityId",
"communityName",
"channelId",
"channelName",
"videoSource",
"videoQuality",
"hostUserId",
"hostDisplayName",
"startedAt",
"participantsCount",
"viewersCount",
"speakersCount",
"currentUserJoined",
"canPublishAudio",
"canPublishVideo",
"canManage",
"canModerateSpeakers",
"summaryRevision",
"rosterRevision"
]
}StreamStartOperationClockResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
serverTimeEpochMs | integer · int64minimum=1 | Да | |
validityMs | integer · int64minimum=1 | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"serverTimeEpochMs",
"validityMs"
],
"properties": {
"serverTimeEpochMs": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"validityMs": {
"type": "integer",
"format": "int64",
"minimum": 1
}
}
}StreamStartOperationResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
operationId | string · uuid | Да | |
channelId | integer · int64minimum=1 | Да | |
status | StreamStartOperationStatus | Да | |
sessionId | integer · int64 · nullminimum=1 | Нет | |
participationId | string · null | Нет | |
rejectionCode | string · null | Нет | |
retiredThroughEpochMs | integer · int64 · nullminimum=0 | Нет | Required for EXPIRED. Durable monotonic account floor proving this UUID can never start and no LIVE exact receipt was retired. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"operationId",
"channelId",
"status"
],
"properties": {
"operationId": {
"type": "string",
"format": "uuid"
},
"channelId": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"status": {
"$ref": "#/components/schemas/StreamStartOperationStatus"
},
"sessionId": {
"type": "integer",
"format": "int64",
"minimum": 1,
"nullable": true
},
"participationId": {
"type": "string",
"nullable": true
},
"rejectionCode": {
"type": "string",
"nullable": true
},
"retiredThroughEpochMs": {
"type": "integer",
"format": "int64",
"minimum": 0,
"nullable": true,
"description": "Required for EXPIRED. Durable monotonic account floor proving this UUID can never start and no LIVE exact receipt was retired."
}
}
}StreamStartOperationStatus
string: UNKNOWN, STARTED, CANCELLED, REJECTED, ENDED, EXPIRED
JSON Schema
{
"type": "string",
"enum": [
"UNKNOWN",
"STARTED",
"CANCELLED",
"REJECTED",
"ENDED",
"EXPIRED"
]
}StreamSummaryPageResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
items | array<StreamSessionSummaryResponse> | Да | |
hasMore | boolean | Да | |
nextCursor | string · nullminLength=1; maxLength=512 | Нет | Opaque continuation token. Do not parse or construct it on the client. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/StreamSessionSummaryResponse"
},
"maxItems": 100
},
"hasMore": {
"type": "boolean"
},
"nextCursor": {
"type": "string",
"nullable": true,
"minLength": 1,
"maxLength": 512,
"description": "Opaque continuation token. Do not parse or construct it on the client."
}
},
"required": [
"items",
"hasMore"
]
}SubmitBotInteractionRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
encryptedEnvelope | string · null | Нет | |
managedBody | object · null | Нет | Explicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules. |
JSON Schema
{
"type": "object",
"properties": {
"encryptedEnvelope": {
"type": "string",
"nullable": true,
"x-kotlin-default": "null"
},
"managedBody": {
"type": "object",
"additionalProperties": true,
"description": "Explicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules.",
"nullable": true,
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotInteractionModels.kt",
"line": 14
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer."
}SubmitSecureApplicationRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
signedContentRequirement | string · null | Нет | Optional device-signed requirement bound to the exact encrypted envelope and current content-capability snapshot. Required for fresh inventories above ten resources and all future rendition writes; accepted exact replay is resolved before this admission proof. |
signedNotificationIntent | string · null | Нет | Optional device-signed collective mention intent bound to the exact encrypted envelope, sender, scope and client message ID. Notification routing only; existing MLS application bytes and recipient authority are unchanged. |
encryptedEnvelope | string | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"signedContentRequirement": {
"type": "string",
"nullable": true,
"description": "Optional device-signed requirement bound to the exact encrypted envelope and current content-capability snapshot. Required for fresh inventories above ten resources and all future rendition writes; accepted exact replay is resolved before this admission proof."
},
"signedNotificationIntent": {
"type": "string",
"nullable": true,
"description": "Optional device-signed collective mention intent bound to the exact encrypted envelope, sender, scope and client message ID. Notification routing only; existing MLS application bytes and recipient authority are unchanged."
},
"encryptedEnvelope": {
"type": "string"
}
},
"required": [
"encryptedEnvelope"
]
}SubmitSecureTransitionRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
signedManifest | string | Да | |
membershipApprovals | array<string> | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"signedManifest": {
"type": "string"
},
"membershipApprovals": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"signedManifest",
"membershipApprovals"
]
}UpcomingChatEventResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64 | Да | |
communityId | integer · int64 | Да | |
communityName | string | Да | |
channelId | integer · int64 | Да | |
channelName | string | Да | |
messageId | integer · int64 · null | Нет | |
title | string | Да | |
description | string · null | Нет | |
startsAt | string | Да | |
endsAt | string · null | Нет | |
participationStatus | ChatEventParticipationStatus | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"communityId": {
"type": "integer",
"format": "int64"
},
"communityName": {
"type": "string"
},
"channelId": {
"type": "integer",
"format": "int64"
},
"channelName": {
"type": "string"
},
"messageId": {
"type": "integer",
"format": "int64",
"nullable": true
},
"title": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
},
"startsAt": {
"type": "string"
},
"endsAt": {
"type": "string",
"nullable": true
},
"participationStatus": {
"$ref": "#/components/schemas/ChatEventParticipationStatus"
}
},
"required": [
"id",
"communityId",
"communityName",
"channelId",
"channelName",
"title",
"startsAt",
"participationStatus"
]
}UpdateBotApplicationRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
scopes | array<string> | Да | |
visibility | string | Да | |
expectedRevision | integer · int64 | Да |
JSON Schema
{
"type": "object",
"properties": {
"scopes": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"visibility": {
"type": "string"
},
"expectedRevision": {
"type": "integer",
"format": "int64"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotModels.kt",
"line": 42
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"scopes",
"visibility",
"expectedRevision"
]
}UpdateBotInstallationRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
scopes | array<string> | Да | |
channelIds | array<string> | Да | |
expectedRevision | integer · int64 | Да | |
allowedRoleIds | array<string> · null | Нет |
JSON Schema
{
"type": "object",
"properties": {
"scopes": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"channelIds": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"expectedRevision": {
"type": "integer",
"format": "int64"
},
"allowedRoleIds": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true,
"nullable": true,
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/bot/BotModels.kt",
"line": 48
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"scopes",
"channelIds",
"expectedRevision"
]
}UpdateChannelMessageRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
content | string | Да | |
managedBody | object · null | Нет | Explicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules. |
expectedContentRevision | integer · int32 · null | Нет |
JSON Schema
{
"type": "object",
"properties": {
"content": {
"type": "string"
},
"managedBody": {
"type": "object",
"additionalProperties": true,
"description": "Explicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules.",
"nullable": true,
"x-kotlin-default": "null"
},
"expectedContentRevision": {
"type": "integer",
"format": "int32",
"nullable": true,
"x-kotlin-default": "null"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/channel/ChannelDtos.kt",
"line": 70
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"content"
]
}UpdateChannelRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
policy | CommunityChannelPolicyRequest / null | Нет | |
name | string | Да | |
topic | string · null | Нет | |
sectionId | integer · int64 | Да | |
channelType | CommunityChannelType / null | Нет | Legacy wire adapter only; explicit channelKind wins. When both channelKind and channelType are absent or null, preserve the stored kind. |
position | integer · int32 | Нет | |
speakerModeEnabled | boolean | Нет | Legacy wire adapter only; channelKind is canonical and explicit channelKind wins. |
channelKind | CommunityChannelType / null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"policy": {
"anyOf": [
{
"$ref": "#/components/schemas/CommunityChannelPolicyRequest"
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"name": {
"type": "string"
},
"topic": {
"type": "string",
"nullable": true
},
"sectionId": {
"type": "integer",
"format": "int64"
},
"channelType": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/CommunityChannelType"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
],
"description": "Legacy wire adapter only; explicit channelKind wins. When both channelKind and channelType are absent or null, preserve the stored kind."
},
"position": {
"type": "integer",
"format": "int32"
},
"speakerModeEnabled": {
"type": "boolean",
"description": "Legacy wire adapter only; channelKind is canonical and explicit channelKind wins."
},
"channelKind": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/CommunityChannelType"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
}
},
"required": [
"name",
"sectionId"
]
}UpdateCommunityAccessRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
allowedSystemRoles | array<CommunityRole> | Нет | |
allowedCustomRoleIds | array<integer · int64minimum=1> | Нет | |
allowedUserIds | array<integer · int64minimum=1> | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"allowedSystemRoles": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CommunityRole"
},
"uniqueItems": true
},
"allowedCustomRoleIds": {
"type": "array",
"items": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"uniqueItems": true
},
"allowedUserIds": {
"type": "array",
"items": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"uniqueItems": true
}
}
}UpdateCommunityCustomRoleRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
name | string | Да | |
colorHex | string | Да | |
position | integer · int32 | Да | |
permissions | array<CommunityAdministrationPermission> | Нет | |
showInMemberList | boolean · null | Нет | Omitted or null preserves the stored flag, including false. Display only; permissions are unchanged by this field. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"name",
"colorHex",
"position"
],
"properties": {
"name": {
"type": "string"
},
"colorHex": {
"type": "string"
},
"position": {
"type": "integer",
"format": "int32"
},
"permissions": {
"type": "array",
"uniqueItems": true,
"items": {
"$ref": "#/components/schemas/CommunityAdministrationPermission"
}
},
"showInMemberList": {
"type": "boolean",
"nullable": true,
"description": "Omitted or null preserves the stored flag, including false. Display only; permissions are unchanged by this field."
}
}
}UpdateCommunityMemberModerationRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
mutedMinutes | integer · int64 · nullminimum=0; maximum=525600 | Нет | Null or omitted preserves the chat mute. Zero clears it; positive minutes mute new messages, edits and replies. |
banned | boolean · null | Нет | |
microphoneMuted | boolean · null | Нет | Null or omitted preserves microphone permission. True revokes this community voice/stream audio grants; false allows the user to enable their microphone voluntarily. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"mutedMinutes": {
"type": "integer",
"format": "int64",
"minimum": 0,
"maximum": 525600,
"nullable": true,
"description": "Null or omitted preserves the chat mute. Zero clears it; positive minutes mute new messages, edits and replies."
},
"banned": {
"type": "boolean",
"nullable": true
},
"microphoneMuted": {
"type": "boolean",
"nullable": true,
"description": "Null or omitted preserves microphone permission. True revokes this community voice/stream audio grants; false allows the user to enable their microphone voluntarily."
}
}
}UpdateCommunityNicknameRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
nickname | string | Да | Trimmed input must contain at most 20 Unicode code points. ISO control characters are rejected. Empty or whitespace-only input resets the value. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"nickname"
],
"properties": {
"nickname": {
"type": "string",
"description": "Trimmed input must contain at most 20 Unicode code points. ISO control characters are rejected. Empty or whitespace-only input resets the value."
}
}
}UpdateCommunitySectionRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
name | string | Да | |
position | integer · int32 | Да | |
access | UpdateCommunityAccessRequest / null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"name",
"position"
],
"properties": {
"name": {
"type": "string"
},
"position": {
"type": "integer",
"format": "int32"
},
"access": {
"anyOf": [
{
"$ref": "#/components/schemas/UpdateCommunityAccessRequest"
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
}
}
}UpdateDirectMessageRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
content | string | Да | |
encryptedEnvelope | string · nullmaxLength=262144 | Нет | Legacy encrypted-content field; managed writes omit it. |
managedBody | object · null | Нет | Server-readable structured content, validated by the owning message operation. Managed writers omit legacy encryptedEnvelope; transport encryption and server ACL still apply. |
expectedContentRevision | integer · int32 · null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"content"
],
"properties": {
"content": {
"type": "string"
},
"encryptedEnvelope": {
"type": "string",
"nullable": true,
"maxLength": 262144,
"x-sensitive": true,
"deprecated": true,
"description": "Legacy encrypted-content field; managed writes omit it."
},
"managedBody": {
"type": "object",
"additionalProperties": true,
"description": "Server-readable structured content, validated by the owning message operation. Managed writers omit legacy encryptedEnvelope; transport encryption and server ACL still apply.",
"nullable": true,
"x-kotlin-default": "null"
},
"expectedContentRevision": {
"type": "integer",
"format": "int32",
"nullable": true,
"x-kotlin-default": "null"
}
}
}UpdateDirectVoiceParticipantStateRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
microphoneEnabled | boolean | Да | |
afk | boolean | Да | |
cameraEnabled | boolean · null | Нет | |
expectedSessionId | integer · int64 · nullminimum=1; maximum=9223372036854775807 | Нет | |
participationId | string · uuid · null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"microphoneEnabled": {
"type": "boolean"
},
"afk": {
"type": "boolean"
},
"cameraEnabled": {
"type": "boolean",
"nullable": true
},
"expectedSessionId": {
"type": "integer",
"format": "int64",
"nullable": true,
"minimum": 1,
"maximum": 9223372036854775807
},
"participationId": {
"type": "string",
"format": "uuid",
"nullable": true
}
},
"required": [
"microphoneEnabled",
"afk"
]
}UpdateMediaPublicationRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
generation | integer · int32 | Да | |
kind | MediaPublicationKind | Да | |
source | MediaPublicationSource | Да | |
status | MediaPublicationStatus | Да | |
codec | string · null | Нет | |
width | integer · int32 · null | Нет | |
height | integer · int32 · null | Нет | |
frameRate | integer · int32 · null | Нет | |
bitrateKbps | integer · int32 · null | Нет | |
spatialLayers | integer · int32 · null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"generation",
"kind",
"source",
"status"
],
"properties": {
"generation": {
"type": "integer",
"format": "int32"
},
"kind": {
"$ref": "#/components/schemas/MediaPublicationKind"
},
"source": {
"$ref": "#/components/schemas/MediaPublicationSource"
},
"status": {
"$ref": "#/components/schemas/MediaPublicationStatus"
},
"codec": {
"type": "string",
"nullable": true
},
"width": {
"type": "integer",
"format": "int32",
"nullable": true
},
"height": {
"type": "integer",
"format": "int32",
"nullable": true
},
"frameRate": {
"type": "integer",
"format": "int32",
"nullable": true
},
"bitrateKbps": {
"type": "integer",
"format": "int32",
"nullable": true
},
"spatialLayers": {
"type": "integer",
"format": "int32",
"nullable": true
}
}
}UpdateMessageThreadReplyRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
content | string | Да | |
clientMessageId | string · null | Нет | |
encryptedEnvelope | string · nullmaxLength=262144 | Нет | Legacy encrypted-content field; managed writes omit it. |
managedBody | object · null | Нет | Server-readable structured content, validated by the owning message operation. Managed writers omit legacy encryptedEnvelope; transport encryption and server ACL still apply. |
expectedContentRevision | integer · int32 · null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"content"
],
"properties": {
"content": {
"type": "string"
},
"clientMessageId": {
"type": "string",
"nullable": true
},
"encryptedEnvelope": {
"type": "string",
"nullable": true,
"maxLength": 262144,
"x-sensitive": true,
"deprecated": true,
"description": "Legacy encrypted-content field; managed writes omit it."
},
"managedBody": {
"type": "object",
"additionalProperties": true,
"description": "Server-readable structured content, validated by the owning message operation. Managed writers omit legacy encryptedEnvelope; transport encryption and server ACL still apply.",
"nullable": true,
"x-kotlin-default": "null"
},
"expectedContentRevision": {
"type": "integer",
"format": "int32",
"nullable": true,
"x-kotlin-default": "null"
}
}
}UpdateNotificationPreferenceRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
scopeType | NotificationScopeType | Да | |
scopeId | integer · int64 · null | Нет | |
mode | NotificationMode | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"scopeType": {
"$ref": "#/components/schemas/NotificationScopeType"
},
"scopeId": {
"type": "integer",
"format": "int64",
"nullable": true
},
"mode": {
"$ref": "#/components/schemas/NotificationMode"
}
},
"required": [
"scopeType"
]
}UpdateNotificationSettingsRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
quietHoursEnabled | boolean | Да | |
quietStartMinutes | integer · int32minimum=0; maximum=1439 | Да | |
quietEndMinutes | integer · int32minimum=0; maximum=1439 | Да | |
quietTimezone | string | Да | |
mentionsEnabled | boolean | Да | |
repliesEnabled | boolean | Да | |
threadsEnabled | boolean | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"quietHoursEnabled": {
"type": "boolean"
},
"quietStartMinutes": {
"type": "integer",
"format": "int32",
"minimum": 0,
"maximum": 1439
},
"quietEndMinutes": {
"type": "integer",
"format": "int32",
"minimum": 0,
"maximum": 1439
},
"quietTimezone": {
"type": "string"
},
"mentionsEnabled": {
"type": "boolean"
},
"repliesEnabled": {
"type": "boolean"
},
"threadsEnabled": {
"type": "boolean"
}
},
"required": [
"quietHoursEnabled",
"quietStartMinutes",
"quietEndMinutes",
"quietTimezone",
"mentionsEnabled",
"repliesEnabled",
"threadsEnabled"
]
}UpdateProfileRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
displayName | stringminLength=3; maxLength=15; pattern=\S | Да | |
publicIdentifier | string · nullminLength=6; maxLength=15; pattern=^[a-z0-9][a-z0-9._-]{5,14}$ | Нет | |
bio | string · null | Нет | |
preserveDisplayName | boolean | Нет | Default: false |
preserveBio | boolean | Нет | Default: false |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"displayName"
],
"properties": {
"displayName": {
"type": "string",
"minLength": 3,
"maxLength": 15,
"pattern": "\\S"
},
"publicIdentifier": {
"type": "string",
"minLength": 6,
"maxLength": 15,
"pattern": "^[a-z0-9][a-z0-9._-]{5,14}$",
"nullable": true
},
"bio": {
"type": "string",
"nullable": true
},
"preserveDisplayName": {
"type": "boolean",
"default": false
},
"preserveBio": {
"type": "boolean",
"default": false
}
}
}UpdateScheduledChatMessageRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
content | string · null | Нет | |
scheduledAt | string · null | Нет | |
silent | boolean · null | Нет | |
encryptedEnvelope | string · nullmaxLength=262144 | Нет | Legacy encrypted-content field; managed writes omit it. |
clientMessageId | string · null | Нет | |
managedBody | object · null | Нет | Server-readable structured content, validated by the owning message operation. Managed writers omit legacy encryptedEnvelope; transport encryption and server ACL still apply. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"content": {
"type": "string",
"nullable": true
},
"scheduledAt": {
"type": "string",
"nullable": true
},
"silent": {
"type": "boolean",
"nullable": true
},
"encryptedEnvelope": {
"type": "string",
"nullable": true,
"maxLength": 262144,
"x-sensitive": true,
"deprecated": true,
"description": "Legacy encrypted-content field; managed writes omit it."
},
"clientMessageId": {
"type": "string",
"nullable": true
},
"managedBody": {
"type": "object",
"additionalProperties": true,
"description": "Server-readable structured content, validated by the owning message operation. Managed writers omit legacy encryptedEnvelope; transport encryption and server ACL still apply.",
"nullable": true,
"x-kotlin-default": "null"
}
}
}UpdateSecureScheduledMessageRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
expectedEnvelopeSha256 | stringpattern=^[0-9a-f]{64}$ | Да | Compare-and-set against the currently queued envelope. An exact accepted retry is returned before checking this hash. |
replacement | ScheduleSecureMessageRequest | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"expectedEnvelopeSha256",
"replacement"
],
"properties": {
"expectedEnvelopeSha256": {
"type": "string",
"pattern": "^[0-9a-f]{64}$",
"description": "Compare-and-set against the currently queued envelope. An exact accepted retry is returned before checking this hash."
},
"replacement": {
"$ref": "#/components/schemas/ScheduleSecureMessageRequest"
}
}
}UpdateSocialPublicationRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
expectedRevision | integer · int64 | Да | |
audience | SocialAudience | Нет | |
title | string · null | Нет | |
body | string | Нет | |
slides | array<SocialSlideRequest> | Нет | |
metadata | SocialPublicationMetadata / null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"expectedRevision": {
"type": "integer",
"format": "int64"
},
"audience": {
"$ref": "#/components/schemas/SocialAudience"
},
"title": {
"type": "string",
"nullable": true
},
"body": {
"type": "string"
},
"slides": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SocialSlideRequest"
}
},
"metadata": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/SocialPublicationMetadata"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
}
},
"required": [
"expectedRevision"
]
}UpdateUserAliasRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
alias | string | Да | Trimmed input must contain at most 20 Unicode code points. ISO control characters are rejected. Empty or whitespace-only input resets the value. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"alias"
],
"properties": {
"alias": {
"type": "string",
"description": "Trimmed input must contain at most 20 Unicode code points. ISO control characters are rejected. Empty or whitespace-only input resets the value."
}
}
}UpdateVoiceHandRaisedRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
raised | boolean | Да | |
expectedSessionId | integer · int64 · nullminimum=1; maximum=9223372036854775807 | Нет | |
participationId | string · uuid · null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"raised": {
"type": "boolean"
},
"expectedSessionId": {
"type": "integer",
"format": "int64",
"nullable": true,
"minimum": 1,
"maximum": 9223372036854775807
},
"participationId": {
"type": "string",
"format": "uuid",
"nullable": true
}
},
"required": [
"raised"
]
}UpdateVoiceStageRoleRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
role | VoiceParticipantRole | Да | |
expectedSessionId | integer · int64 · nullminimum=1; maximum=9223372036854775807 | Нет | |
participationId | string · uuid · null | Нет | |
targetParticipationId | string · uuid · null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"role": {
"$ref": "#/components/schemas/VoiceParticipantRole"
},
"expectedSessionId": {
"type": "integer",
"format": "int64",
"nullable": true,
"minimum": 1,
"maximum": 9223372036854775807
},
"participationId": {
"type": "string",
"format": "uuid",
"nullable": true
},
"targetParticipationId": {
"type": "string",
"format": "uuid",
"nullable": true
}
},
"required": [
"role"
]
}UserAliasResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
userId | integer · int64minimum=1 | Да | |
privateAlias | string · nullmaxLength=20 | Нет | Omitted or null means no override; clear any cached value for this identity and scope. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"userId"
],
"properties": {
"userId": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"privateAlias": {
"type": "string",
"nullable": true,
"maxLength": 20,
"description": "Omitted or null means no override; clear any cached value for this identity and scope.",
"x-sensitive": true
}
}
}UserMentionResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
identifier | string | Да | |
userId | integer · int64 | Да | |
publicIdentifier | string | Да | |
isBot | boolean | Нет |
JSON Schema
{
"type": "object",
"required": [
"identifier",
"userId",
"publicIdentifier"
],
"properties": {
"identifier": {
"type": "string"
},
"userId": {
"type": "integer",
"format": "int64"
},
"publicIdentifier": {
"type": "string"
},
"isBot": {
"type": "boolean"
}
},
"additionalProperties": false
}UserNameOverridesListResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
items | array<UserNameOverridesResponse> | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"items"
],
"properties": {
"items": {
"type": "array",
"maxItems": 100,
"items": {
"$ref": "#/components/schemas/UserNameOverridesResponse"
}
}
}
}UserNameOverridesResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
userId | integer · int64minimum=1 | Да | |
privateAlias | string · nullmaxLength=20 | Нет | Omitted or null means no override; clear any cached value for this identity and scope. |
communityNickname | string · nullmaxLength=20 | Нет | Omitted or null means no override; clear any cached value for this identity and scope. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"userId"
],
"properties": {
"userId": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"privateAlias": {
"type": "string",
"nullable": true,
"maxLength": 20,
"description": "Omitted or null means no override; clear any cached value for this identity and scope.",
"x-sensitive": true
},
"communityNickname": {
"type": "string",
"nullable": true,
"maxLength": 20,
"description": "Omitted or null means no override; clear any cached value for this identity and scope."
}
}
}UserProfileResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64minimum=1 | Да | |
publicIdentifier | stringminLength=1 | Да | |
email | string · email | Да | |
username | stringminLength=1 | Да | |
displayName | stringminLength=1 | Да | |
bio | string · null | Нет | |
avatarUrl | string · uri · null | Нет | |
emailVerified | boolean | Нет | Whether the current account email has been confirmed by a one-time code. Default: false |
isBot | boolean | Нет | |
supportsPartialProfileUpdate | boolean | Нет | The profile endpoint accepts preserveDisplayName and preserveBio. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"publicIdentifier",
"email",
"username",
"displayName"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"publicIdentifier": {
"type": "string",
"minLength": 1
},
"email": {
"type": "string",
"format": "email"
},
"username": {
"type": "string",
"minLength": 1,
"readOnly": true
},
"displayName": {
"type": "string",
"minLength": 1
},
"bio": {
"type": "string",
"nullable": true
},
"avatarUrl": {
"type": "string",
"format": "uri",
"nullable": true
},
"emailVerified": {
"type": "boolean",
"default": false,
"description": "Whether the current account email has been confirmed by a one-time code."
},
"isBot": {
"type": "boolean"
},
"supportsPartialProfileUpdate": {
"type": "boolean",
"description": "The profile endpoint accepts preserveDisplayName and preserveBio."
}
}
}VideoQualitySettings
| Поле | Тип | Без default | Описание |
|---|---|---|---|
mode | MediaQualityMode | Нет | |
width | integer · int32 · null | Нет | |
height | integer · int32 · null | Нет | |
frameRate | integer · int32 · null | Нет | |
bitrateKbps | integer · int32 · null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"mode": {
"$ref": "#/components/schemas/MediaQualityMode"
},
"width": {
"type": "integer",
"format": "int32",
"nullable": true
},
"height": {
"type": "integer",
"format": "int32",
"nullable": true
},
"frameRate": {
"type": "integer",
"format": "int32",
"nullable": true
},
"bitrateKbps": {
"type": "integer",
"format": "int32",
"nullable": true
}
}
}VideoSourceType
string: CAMERA, SCREEN, WINDOW, BROWSER_TAB
JSON Schema
{
"type": "string",
"enum": [
"CAMERA",
"SCREEN",
"WINDOW",
"BROWSER_TAB"
]
}VkPostImageV1
| Поле | Тип | Без default | Описание |
|---|---|---|---|
url | string · urimaxLength=2000 | Да | |
width | integer · int32minimum=1 | Да | |
height | integer · int32minimum=1 | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"url",
"width",
"height"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"maxLength": 2000
},
"width": {
"type": "integer",
"format": "int32",
"minimum": 1
},
"height": {
"type": "integer",
"format": "int32",
"minimum": 1
}
}
}VkPostMetadataV1
| Поле | Тип | Без default | Описание |
|---|---|---|---|
ownerId | stringmaxLength=20; pattern=^-?[0-9]+$ | Да | |
postId | stringmaxLength=20; pattern=^[0-9]+$ | Да | |
canonicalUrl | string · urimaxLength=2000 | Да | |
authorName | stringmaxLength=300 | Да | |
authorAvatarUrl | string · uri · nullmaxLength=2000 | Нет | |
publishedAtEpochSeconds | integer · int64 · nullminimum=1 | Нет | |
text | string · nullmaxLength=1200 | Нет | |
images | array<VkPostImageV1> | Нет | |
likeCount | integer · int32 · nullminimum=0 | Нет | |
commentCount | integer · int32 · nullminimum=0 | Нет | |
shareCount | integer · int32 · nullminimum=0 | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"ownerId",
"postId",
"canonicalUrl",
"authorName"
],
"properties": {
"ownerId": {
"type": "string",
"maxLength": 20,
"pattern": "^-?[0-9]+$"
},
"postId": {
"type": "string",
"maxLength": 20,
"pattern": "^[0-9]+$"
},
"canonicalUrl": {
"type": "string",
"format": "uri",
"maxLength": 2000
},
"authorName": {
"type": "string",
"maxLength": 300
},
"authorAvatarUrl": {
"type": "string",
"format": "uri",
"maxLength": 2000,
"nullable": true
},
"publishedAtEpochSeconds": {
"type": "integer",
"format": "int64",
"minimum": 1,
"nullable": true
},
"text": {
"type": "string",
"maxLength": 1200,
"nullable": true
},
"images": {
"type": "array",
"maxItems": 4,
"items": {
"$ref": "#/components/schemas/VkPostImageV1"
}
},
"likeCount": {
"type": "integer",
"format": "int32",
"minimum": 0,
"nullable": true
},
"commentCount": {
"type": "integer",
"format": "int32",
"minimum": 0,
"nullable": true
},
"shareCount": {
"type": "integer",
"format": "int32",
"minimum": 0,
"nullable": true
}
}
}VoiceAdmissionRecipient
| Поле | Тип | Без default | Описание |
|---|---|---|---|
userId | integer · int64 | Да | |
attendanceId | string | Да | |
rootKeyThumbprint | string · null | Нет | |
archiveKeyThumbprint | string · null | Нет | |
contentProtocol | string | Нет | Default: "E2EE_1" |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"userId": {
"type": "integer",
"format": "int64"
},
"attendanceId": {
"type": "string"
},
"rootKeyThumbprint": {
"type": "string",
"nullable": true
},
"archiveKeyThumbprint": {
"type": "string",
"nullable": true
},
"contentProtocol": {
"type": "string",
"default": "E2EE_1",
"x-kotlin-default": "\"E2EE_1\""
}
},
"required": [
"userId",
"attendanceId"
]
}VoiceAdmissionRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
scope | VoiceAdmissionScope | Да | |
participationId | string | Да | |
request | AcquireMediaLeaseRequest | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"scope": {
"$ref": "#/components/schemas/VoiceAdmissionScope"
},
"participationId": {
"type": "string"
},
"request": {
"$ref": "#/components/schemas/AcquireMediaLeaseRequest"
}
},
"required": [
"scope",
"participationId",
"request"
]
}VoiceAdmissionResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
lease | MediaLeaseResponse | Да | |
recipient | VoiceAdmissionRecipient / null | Нет | Optional feature attendance. Absent for prepared ordinary VOICE v2; acquire separately only when board/screen features are requested. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"lease": {
"$ref": "#/components/schemas/MediaLeaseResponse"
},
"recipient": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/VoiceAdmissionRecipient"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
],
"description": "Optional feature attendance. Absent for prepared ordinary VOICE v2; acquire separately only when board/screen features are requested."
}
},
"required": [
"lease"
]
}VoiceAdmissionScope
| Поле | Тип | Без default | Описание |
|---|---|---|---|
channelId | integer · int64 | Да | |
voiceSessionId | integer · int64 | Да | |
incarnation | string | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"channelId": {
"type": "integer",
"format": "int64"
},
"voiceSessionId": {
"type": "integer",
"format": "int64"
},
"incarnation": {
"type": "string"
}
},
"required": [
"channelId",
"voiceSessionId",
"incarnation"
]
}VoiceAudioPipelineDiagnostic
| Поле | Тип | Без default | Описание |
|---|---|---|---|
stage | string: capture, inbound, playout | Да | |
flowAlias | stringpattern=^(capture|inbound|playout)-[1-9][0-9]{0,5}$ | Да | Room and sampling epoch scoped counter alias whose prefix must equal stage. Never a device, SDK, track or participant identifier. |
sampleTimestampMillis | number · doubleminimum=0; maximum=253402300799999 | Да | |
energyDelta | number · double · nullminimum=0; maximum=1000000000000000 | Нет | |
durationSecondsDelta | number · double · nullminimum=0; maximum=86400 | Нет | |
audioLevel | number · double · nullminimum=0; maximum=1 | Нет | |
samplesDelta | integer · int64 · nullminimum=0; maximum=1000000000000000 | Нет | |
interruptionEventsDelta | integer · int64 · nullminimum=0; maximum=1000000000000000 | Нет | |
interruptedDurationSecondsDelta | number · double · nullminimum=0; maximum=86400 | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"stage": {
"type": "string",
"enum": [
"capture",
"inbound",
"playout"
]
},
"flowAlias": {
"type": "string",
"pattern": "^(capture|inbound|playout)-[1-9][0-9]{0,5}$",
"description": "Room and sampling epoch scoped counter alias whose prefix must equal stage. Never a device, SDK, track or participant identifier."
},
"sampleTimestampMillis": {
"type": "number",
"format": "double",
"minimum": 0,
"maximum": 253402300799999
},
"energyDelta": {
"type": "number",
"format": "double",
"nullable": true,
"minimum": 0,
"maximum": 1000000000000000
},
"durationSecondsDelta": {
"type": "number",
"format": "double",
"nullable": true,
"minimum": 0,
"maximum": 86400
},
"audioLevel": {
"type": "number",
"format": "double",
"nullable": true,
"minimum": 0,
"maximum": 1
},
"samplesDelta": {
"type": "integer",
"format": "int64",
"nullable": true,
"minimum": 0,
"maximum": 1000000000000000
},
"interruptionEventsDelta": {
"type": "integer",
"format": "int64",
"nullable": true,
"minimum": 0,
"maximum": 1000000000000000
},
"interruptedDurationSecondsDelta": {
"type": "number",
"format": "double",
"nullable": true,
"minimum": 0,
"maximum": 86400
}
},
"required": [
"stage",
"flowAlias",
"sampleTimestampMillis"
]
}VoiceChannelSummariesRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
channelIds | array<integer · int64minimum=1; maximum=9223372036854775807> | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"channelIds": {
"type": "array",
"items": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"maxItems": 100,
"minItems": 1
}
},
"required": [
"channelIds"
]
}VoiceChannelSummariesResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
items | array<VoiceChannelSummaryResponse> | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/VoiceChannelSummaryResponse"
},
"maxItems": 100
}
},
"required": [
"items"
]
}VoiceChannelSummaryResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
channelId | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
session | VoiceSessionSummaryResponse / null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"channelId": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"session": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/VoiceSessionSummaryResponse"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
}
},
"required": [
"channelId"
]
}VoiceDiagnosticDetails
| Поле | Тип | Без default | Описание |
|---|---|---|---|
platform | string: desktop, android, web | Да | |
appVersion | stringminLength=1; maxLength=64; pattern=^[A-Za-z0-9][A-Za-z0-9.+_-]{0,63}$ | Да | |
sampleTimestampMillis | integer · int64minimum=0; maximum=253402300799999 | Да | |
protocolVersion | integer · int32minimum=1; maximum=1 | Нет | Default: 1 |
roomEpoch | integer · int64 · nullminimum=0; maximum=1000000000000000 | Нет | |
samplingEpoch | integer · int64 · nullminimum=0; maximum=1000000000000000 | Нет | |
packetsSent | integer · int64 · nullminimum=0; maximum=1000000000000000 | Нет | |
audioLevel | number · double · nullminimum=0; maximum=1 | Нет | |
jitterBufferDelayMs | number · double · nullminimum=0; maximum=60000 | Нет | |
qualityIntervalMillis | number · double · nullminimum=0; maximum=60000 | Нет | Consecutive receive sample interval in milliseconds. When supplied, must be strictly positive. Required when an interval quality metric is supplied. |
jitterBufferDelayMsInterval | number · double · nullminimum=0; maximum=60000 | Нет | Mean jitter buffer delay during this interval, not end-to-end latency. |
concealedSampleRatioInterval | number · double · nullminimum=0; maximum=1 | Нет | Concealed audio samples divided by total received audio samples during this interval. |
concealmentEventsPerSecondInterval | number · double · nullminimum=0; maximum=1000000 | Нет | Concealment events per second during this receive interval. |
concealedSamples | integer · int64 · nullminimum=0; maximum=1000000000000000 | Нет | |
concealmentEvents | integer · int64 · nullminimum=0; maximum=1000000000000000 | Нет | |
microphoneRequested | boolean · null | Нет | |
microphoneCommandEnabled | boolean · null | Нет | |
afk | boolean · null | Нет | |
outputEnabled | boolean · null | Нет | |
captureActive | boolean · null | Нет | |
publicationMuted | boolean · null | Нет | |
audioProcessingStatus | string · null: applied, rejected, unsupported, inactive, None | Нет | |
audioPipeline | array<VoiceAudioPipelineDiagnostic> · null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"platform": {
"type": "string",
"enum": [
"desktop",
"android",
"web"
]
},
"appVersion": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[A-Za-z0-9][A-Za-z0-9.+_-]{0,63}$"
},
"sampleTimestampMillis": {
"type": "integer",
"format": "int64",
"minimum": 0,
"maximum": 253402300799999
},
"protocolVersion": {
"type": "integer",
"format": "int32",
"minimum": 1,
"maximum": 1,
"default": 1
},
"roomEpoch": {
"type": "integer",
"format": "int64",
"nullable": true,
"minimum": 0,
"maximum": 1000000000000000
},
"samplingEpoch": {
"type": "integer",
"format": "int64",
"nullable": true,
"minimum": 0,
"maximum": 1000000000000000
},
"packetsSent": {
"type": "integer",
"format": "int64",
"nullable": true,
"minimum": 0,
"maximum": 1000000000000000
},
"audioLevel": {
"type": "number",
"format": "double",
"nullable": true,
"minimum": 0,
"maximum": 1
},
"jitterBufferDelayMs": {
"type": "number",
"format": "double",
"nullable": true,
"minimum": 0,
"maximum": 60000
},
"qualityIntervalMillis": {
"type": "number",
"format": "double",
"description": "Consecutive receive sample interval in milliseconds. When supplied, must be strictly positive. Required when an interval quality metric is supplied.",
"nullable": true,
"minimum": 0,
"exclusiveMinimum": true,
"maximum": 60000
},
"jitterBufferDelayMsInterval": {
"type": "number",
"format": "double",
"description": "Mean jitter buffer delay during this interval, not end-to-end latency.",
"nullable": true,
"minimum": 0,
"maximum": 60000
},
"concealedSampleRatioInterval": {
"type": "number",
"format": "double",
"description": "Concealed audio samples divided by total received audio samples during this interval.",
"nullable": true,
"minimum": 0,
"maximum": 1
},
"concealmentEventsPerSecondInterval": {
"type": "number",
"format": "double",
"description": "Concealment events per second during this receive interval.",
"nullable": true,
"minimum": 0,
"maximum": 1000000
},
"concealedSamples": {
"type": "integer",
"format": "int64",
"nullable": true,
"minimum": 0,
"maximum": 1000000000000000
},
"concealmentEvents": {
"type": "integer",
"format": "int64",
"nullable": true,
"minimum": 0,
"maximum": 1000000000000000
},
"microphoneRequested": {
"type": "boolean",
"nullable": true
},
"microphoneCommandEnabled": {
"type": "boolean",
"nullable": true
},
"afk": {
"type": "boolean",
"nullable": true
},
"outputEnabled": {
"type": "boolean",
"nullable": true
},
"captureActive": {
"type": "boolean",
"nullable": true
},
"publicationMuted": {
"type": "boolean",
"nullable": true
},
"audioProcessingStatus": {
"type": "string",
"nullable": true,
"enum": [
"applied",
"rejected",
"unsupported",
"inactive",
null
]
},
"audioPipeline": {
"type": "array",
"items": {
"$ref": "#/components/schemas/VoiceAudioPipelineDiagnostic"
},
"nullable": true,
"maxItems": 4
}
},
"required": [
"platform",
"appVersion",
"sampleTimestampMillis"
]
}VoiceDiagnosticRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
sessionType | VoiceSessionType | Да | |
sessionId | integer · int64 | Да | |
event | string: CONNECTED, DISCONNECTED, FAILED, STATS | Да | |
mediaKind | string · null | Нет | |
direction | string · null | Нет | |
localCandidateType | string · null | Нет | |
remoteCandidateType | string · null | Нет | |
protocol | string · null | Нет | |
relayProtocol | string · null | Нет | |
roundTripTimeMs | number · double · null | Нет | |
jitterMs | number · double · null | Нет | |
packetsLost | integer · int64 · null | Нет | |
packetsReceived | integer · int64 · null | Нет | |
packetLossPercent | number · double · null | Нет | |
availableOutgoingBitrateKbps | number · double · null | Нет | |
qualityLevel | string · null: EXCELLENT, GOOD, POOR, SEVERE, None | Нет | |
adaptationReason | string · null: NONE, NETWORK, PACKET_LOSS, JITTER, LATENCY, BANDWIDTH, CONNECTION, DEVICE, None | Нет | |
audioTargetBitrateKbps | integer · int32 · null | Нет | |
videoTargetBitrateKbps | integer · int32 · null | Нет | |
maxVideoFrameRate | integer · int32 · null | Нет | |
videoPreviewsEnabled | boolean · null | Нет | |
videoPublishingEnabled | boolean · null | Нет | |
videoSubscriptionsEnabled | boolean · null | Нет | |
sampleCount | integer · int32 · null | Нет | |
flowId | string · null | Нет | |
framesPerSecond | number · double · null | Нет | |
framesEncoded | integer · int64 · null | Нет | |
framesSent | integer · int64 · null | Нет | |
framesReceived | integer · int64 · null | Нет | |
framesDecoded | integer · int64 · null | Нет | |
framesDropped | integer · int64 · null | Нет | |
keyFrames | integer · int64 · null | Нет | |
freezeCount | integer · int64 · null | Нет | |
totalFreezeDurationMs | number · double · null | Нет | |
bytesTransferred | integer · int64 · null | Нет | |
retransmittedPackets | integer · int64 · null | Нет | |
nackCount | integer · int64 · null | Нет | |
pliCount | integer · int64 · null | Нет | |
firCount | integer · int64 · null | Нет | |
frameWidth | integer · int32 · null | Нет | |
frameHeight | integer · int32 · null | Нет | |
targetBitrateKbps | number · double · null | Нет | |
codecImplementation | string · null | Нет | |
details | VoiceDiagnosticDetails / null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"sessionType": {
"$ref": "#/components/schemas/VoiceSessionType"
},
"sessionId": {
"type": "integer",
"format": "int64"
},
"event": {
"type": "string",
"enum": [
"CONNECTED",
"DISCONNECTED",
"FAILED",
"STATS"
]
},
"mediaKind": {
"type": "string",
"nullable": true
},
"direction": {
"type": "string",
"nullable": true
},
"localCandidateType": {
"type": "string",
"nullable": true
},
"remoteCandidateType": {
"type": "string",
"nullable": true
},
"protocol": {
"type": "string",
"nullable": true
},
"relayProtocol": {
"type": "string",
"nullable": true
},
"roundTripTimeMs": {
"type": "number",
"format": "double",
"nullable": true
},
"jitterMs": {
"type": "number",
"format": "double",
"nullable": true
},
"packetsLost": {
"type": "integer",
"format": "int64",
"nullable": true
},
"packetsReceived": {
"type": "integer",
"format": "int64",
"nullable": true
},
"packetLossPercent": {
"type": "number",
"format": "double",
"nullable": true
},
"availableOutgoingBitrateKbps": {
"type": "number",
"format": "double",
"nullable": true
},
"qualityLevel": {
"type": "string",
"enum": [
"EXCELLENT",
"GOOD",
"POOR",
"SEVERE",
null
],
"nullable": true
},
"adaptationReason": {
"type": "string",
"enum": [
"NONE",
"NETWORK",
"PACKET_LOSS",
"JITTER",
"LATENCY",
"BANDWIDTH",
"CONNECTION",
"DEVICE",
null
],
"nullable": true
},
"audioTargetBitrateKbps": {
"type": "integer",
"format": "int32",
"nullable": true
},
"videoTargetBitrateKbps": {
"type": "integer",
"format": "int32",
"nullable": true
},
"maxVideoFrameRate": {
"type": "integer",
"format": "int32",
"nullable": true
},
"videoPreviewsEnabled": {
"type": "boolean",
"nullable": true
},
"videoPublishingEnabled": {
"type": "boolean",
"nullable": true
},
"videoSubscriptionsEnabled": {
"type": "boolean",
"nullable": true
},
"sampleCount": {
"type": "integer",
"format": "int32",
"nullable": true
},
"flowId": {
"type": "string",
"nullable": true
},
"framesPerSecond": {
"type": "number",
"format": "double",
"nullable": true
},
"framesEncoded": {
"type": "integer",
"format": "int64",
"nullable": true
},
"framesSent": {
"type": "integer",
"format": "int64",
"nullable": true
},
"framesReceived": {
"type": "integer",
"format": "int64",
"nullable": true
},
"framesDecoded": {
"type": "integer",
"format": "int64",
"nullable": true
},
"framesDropped": {
"type": "integer",
"format": "int64",
"nullable": true
},
"keyFrames": {
"type": "integer",
"format": "int64",
"nullable": true
},
"freezeCount": {
"type": "integer",
"format": "int64",
"nullable": true
},
"totalFreezeDurationMs": {
"type": "number",
"format": "double",
"nullable": true
},
"bytesTransferred": {
"type": "integer",
"format": "int64",
"nullable": true
},
"retransmittedPackets": {
"type": "integer",
"format": "int64",
"nullable": true
},
"nackCount": {
"type": "integer",
"format": "int64",
"nullable": true
},
"pliCount": {
"type": "integer",
"format": "int64",
"nullable": true
},
"firCount": {
"type": "integer",
"format": "int64",
"nullable": true
},
"frameWidth": {
"type": "integer",
"format": "int32",
"nullable": true
},
"frameHeight": {
"type": "integer",
"format": "int32",
"nullable": true
},
"targetBitrateKbps": {
"type": "number",
"format": "double",
"nullable": true
},
"codecImplementation": {
"type": "string",
"nullable": true
},
"details": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/VoiceDiagnosticDetails"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
}
},
"required": [
"sessionType",
"sessionId",
"event"
]
}VoiceDirectHeartbeatAckResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
active | boolean | Да | |
currentParticipant | VoiceOwnParticipantResponse | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 9223372036854775807
},
"active": {
"type": "boolean"
},
"currentParticipant": {
"$ref": "#/components/schemas/VoiceOwnParticipantResponse"
}
},
"required": [
"id",
"active",
"currentParticipant"
]
}VoiceHeartbeatAckResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
channelId | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
active | boolean | Да | |
speakerModeEnabled | boolean | Да | |
currentParticipant | VoiceOwnParticipantResponse | Да | |
currentUserJoined | boolean | Да | |
currentDeviceJoined | boolean | Да | |
joinedOnAnotherDevice | boolean | Да | |
currentUserCanModerateStage | boolean | Да | |
currentUserCanBroadcastVideo | boolean | Да | |
summaryRevision | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
rosterRevision | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
roomKind | VoiceRoomKind | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"channelId": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"active": {
"type": "boolean"
},
"speakerModeEnabled": {
"type": "boolean"
},
"currentParticipant": {
"$ref": "#/components/schemas/VoiceOwnParticipantResponse"
},
"currentUserJoined": {
"type": "boolean"
},
"currentDeviceJoined": {
"type": "boolean"
},
"joinedOnAnotherDevice": {
"type": "boolean"
},
"currentUserCanModerateStage": {
"type": "boolean"
},
"currentUserCanBroadcastVideo": {
"type": "boolean"
},
"summaryRevision": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"rosterRevision": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"roomKind": {
"$ref": "#/components/schemas/VoiceRoomKind"
}
},
"required": [
"id",
"channelId",
"active",
"speakerModeEnabled",
"currentParticipant",
"currentUserJoined",
"currentDeviceJoined",
"joinedOnAnotherDevice",
"currentUserCanModerateStage",
"currentUserCanBroadcastVideo",
"summaryRevision",
"rosterRevision"
]
}VoiceHostPreviewResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
userId | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
userIdentifier | string | Да | |
displayName | string | Да | |
avatarUrl | string · null | Нет | |
isBot | boolean | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"userId": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"userIdentifier": {
"type": "string"
},
"displayName": {
"type": "string"
},
"avatarUrl": {
"type": "string",
"nullable": true
},
"isBot": {
"type": "boolean"
}
},
"required": [
"userId",
"userIdentifier",
"displayName"
]
}VoiceIceConfigurationResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
iceServers | array<VoiceIceServerResponse> | Да | |
expiresAt | string · null | Нет | |
ownershipProtocolVersion | integer · int32 | Нет | Advertised ownership capability; when absent, ownership commands are unsupported. |
livenessProtocolVersion | integer · int32 | Нет | Advertised liveness capability; when absent, direct heartbeat is unsupported. |
directHeartbeatIntervalMillis | integer · int64minimum=5000; maximum=60000 | Нет | |
directReconnectGraceMillis | integer · int64minimum=60000; maximum=900000 | Нет | |
streamOwnershipProtocolVersion | integer · int32 | Нет | Must be checked before first stream Start. Missing capability means stream ownership commands are unsupported. |
diagnosticsDetailedEnabled | boolean | Нет | Manual server policy for detailed media diagnostics; absent means disabled. No automatic expiry. Disabled servers discard detailed observations immediately. Default: false |
streamStartOperationProtocolVersion | integer · int32 | Нет | Exact durable Start receipt and cancel protocol. Missing capability means this protocol is unsupported; never fall back after dispatch. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"iceServers": {
"type": "array",
"items": {
"$ref": "#/components/schemas/VoiceIceServerResponse"
}
},
"expiresAt": {
"type": "string",
"nullable": true
},
"ownershipProtocolVersion": {
"type": "integer",
"format": "int32",
"description": "Advertised ownership capability; when absent, ownership commands are unsupported."
},
"livenessProtocolVersion": {
"type": "integer",
"format": "int32",
"description": "Advertised liveness capability; when absent, direct heartbeat is unsupported."
},
"directHeartbeatIntervalMillis": {
"type": "integer",
"format": "int64",
"minimum": 5000,
"maximum": 60000
},
"directReconnectGraceMillis": {
"type": "integer",
"format": "int64",
"minimum": 60000,
"maximum": 900000
},
"streamOwnershipProtocolVersion": {
"type": "integer",
"format": "int32",
"description": "Must be checked before first stream Start. Missing capability means stream ownership commands are unsupported."
},
"diagnosticsDetailedEnabled": {
"type": "boolean",
"default": false,
"description": "Manual server policy for detailed media diagnostics; absent means disabled. No automatic expiry. Disabled servers discard detailed observations immediately."
},
"streamStartOperationProtocolVersion": {
"type": "integer",
"format": "int32",
"description": "Exact durable Start receipt and cancel protocol. Missing capability means this protocol is unsupported; never fall back after dispatch."
}
},
"required": [
"iceServers"
]
}VoiceIceServerResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
urls | array<string> | Да | |
username | string · null | Нет | |
credential | string · password · null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"urls": {
"type": "array",
"items": {
"type": "string"
}
},
"username": {
"type": "string",
"nullable": true
},
"credential": {
"type": "string",
"nullable": true,
"format": "password",
"x-sensitive": true
}
},
"required": [
"urls"
]
}VoiceMemberLocationResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
userId | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
channelId | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
sessionId | integer · int64minimum=1; maximum=9223372036854775807 | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"userId": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"channelId": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"sessionId": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
}
},
"required": [
"userId",
"channelId",
"sessionId"
]
}VoiceMemberLocationsRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
userIds | array<integer · int64minimum=1; maximum=9223372036854775807> | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"userIds": {
"type": "array",
"items": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"maxItems": 100,
"minItems": 1
}
},
"required": [
"userIds"
]
}VoiceMemberLocationsResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
items | array<VoiceMemberLocationResponse> | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/VoiceMemberLocationResponse"
},
"maxItems": 100
}
},
"required": [
"items"
]
}VoiceMicrophoneAdmissionResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
leaseId | integer · int64 | Да | |
generation | integer · int32 | Да | |
participationId | string · uuid | Да | |
state | VoiceMicrophoneAdmissionState | Да | |
revision | integer · int64minimum=1 | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"leaseId": {
"type": "integer",
"format": "int64"
},
"generation": {
"type": "integer",
"format": "int32"
},
"participationId": {
"type": "string",
"format": "uuid"
},
"state": {
"$ref": "#/components/schemas/VoiceMicrophoneAdmissionState"
},
"revision": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
"required": [
"leaseId",
"generation",
"participationId",
"state",
"revision"
]
}VoiceMicrophoneAdmissionState
string: PENDING, GRANTED, DENIED
JSON Schema
{
"type": "string",
"enum": [
"PENDING",
"GRANTED",
"DENIED"
]
}VoiceOwnParticipantResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
userId | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
joinedAt | string · date-time | Да | |
muted | boolean | Да | |
deafened | boolean | Да | |
stageRole | VoiceParticipantRole | Да | |
handRaised | boolean | Да | |
cameraEnabled | boolean | Да | |
revision | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
participationId | string · uuid | Да | |
microphoneBlocked | boolean | Нет | Independent server microphone restriction; muted remains the participant personal or AFK intent. Default: false |
microphoneBlockedRevision | integer · int64minimum=0 | Нет | Durable community microphone policy revision, ordered separately from participant and roster revisions; 0 means legacy or direct-call policy. Default: 0 |
stage | VoiceStageResponse / null | Нет | SPEAKER room state only; absent/null for VOICE and direct calls. No stage authority exists in VOICE. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"userId": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"joinedAt": {
"type": "string",
"format": "date-time"
},
"muted": {
"type": "boolean"
},
"deafened": {
"type": "boolean"
},
"stageRole": {
"$ref": "#/components/schemas/VoiceParticipantRole"
},
"handRaised": {
"type": "boolean"
},
"cameraEnabled": {
"type": "boolean"
},
"revision": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"participationId": {
"type": "string",
"format": "uuid"
},
"microphoneBlocked": {
"type": "boolean",
"default": false,
"description": "Independent server microphone restriction; muted remains the participant personal or AFK intent."
},
"microphoneBlockedRevision": {
"type": "integer",
"format": "int64",
"minimum": 0,
"default": 0,
"description": "Durable community microphone policy revision, ordered separately from participant and roster revisions; 0 means legacy or direct-call policy."
},
"stage": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/VoiceStageResponse"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
],
"description": "SPEAKER room state only; absent/null for VOICE and direct calls. No stage authority exists in VOICE."
}
},
"required": [
"userId",
"joinedAt",
"muted",
"deafened",
"stageRole",
"handRaised",
"cameraEnabled",
"revision",
"participationId"
]
}VoiceParticipantRole
string: HOST, SPEAKER, AUDIENCE
JSON Schema
{
"type": "string",
"enum": [
"HOST",
"SPEAKER",
"AUDIENCE"
]
}VoiceParticipantsPageResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
sessionId | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
rosterRevision | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
items | array<VoiceSessionParticipantResponse> | Да | |
nextCursor | string · nullminLength=1; maxLength=512 | Нет | Opaque continuation token. Do not parse or construct it on the client. |
hasMore | boolean | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"sessionId": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"rosterRevision": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/VoiceSessionParticipantResponse"
},
"maxItems": 100
},
"nextCursor": {
"type": "string",
"nullable": true,
"minLength": 1,
"maxLength": 512,
"description": "Opaque continuation token. Do not parse or construct it on the client."
},
"hasMore": {
"type": "boolean"
}
},
"required": [
"sessionId",
"rosterRevision",
"items"
]
}VoicePublisherBinding
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
userId | integer · int64 | Да | |
deviceId | string | Да | |
participationId | string | Да | |
leaseId | integer · int64 | Да | |
leaseGeneration | integer · int32 | Да | |
providerParticipantIdentity | string | Да |
JSON Schema
{
"type": "object",
"properties": {
"userId": {
"type": "integer",
"format": "int64"
},
"deviceId": {
"type": "string"
},
"participationId": {
"type": "string"
},
"leaseId": {
"type": "integer",
"format": "int64"
},
"leaseGeneration": {
"type": "integer",
"format": "int32"
},
"providerParticipantIdentity": {
"type": "string"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/voice/crypto/VoicePublisherKeyModels.kt",
"line": 8
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"userId",
"deviceId",
"participationId",
"leaseId",
"leaseGeneration",
"providerParticipantIdentity"
],
"additionalProperties": false
}VoicePublisherKeyClaims
Payload of the device-signed compact JWS envelope. ciphertext is recipient-qualified JWE for exactly the current certified roster; server never receives plaintext media keys.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
version | integer · int32 | Нет | Default: 2 |
purpose | string | Нет | Default: "voice-publisher-key" |
sessionId | integer · int64 | Да | |
publisher | VoicePublisherBinding | Да | |
keyGeneration | integer · int64minimum=1 | Да | |
previousKeyGeneration | integer · int64minimum=0 | Да | |
keyIndex | integer · int32: 0 | Да | |
transition | VoicePublisherKeyTransition | Да | |
rosterDigest | string | Да | |
ciphertext | string | Да |
JSON Schema
{
"type": "object",
"properties": {
"version": {
"type": "integer",
"format": "int32",
"default": 2,
"x-kotlin-default": "2"
},
"purpose": {
"type": "string",
"default": "voice-publisher-key",
"x-kotlin-default": "\"voice-publisher-key\""
},
"sessionId": {
"type": "integer",
"format": "int64"
},
"publisher": {
"$ref": "#/components/schemas/VoicePublisherBinding"
},
"keyGeneration": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"previousKeyGeneration": {
"type": "integer",
"format": "int64",
"minimum": 0
},
"keyIndex": {
"type": "integer",
"format": "int32",
"enum": [
0
]
},
"transition": {
"$ref": "#/components/schemas/VoicePublisherKeyTransition"
},
"rosterDigest": {
"type": "string"
},
"ciphertext": {
"type": "string"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/voice/crypto/VoicePublisherKeyModels.kt",
"line": 65
},
"description": "Payload of the device-signed compact JWS envelope. ciphertext is recipient-qualified JWE for exactly the current certified roster; server never receives plaintext media keys.",
"required": [
"sessionId",
"publisher",
"keyGeneration",
"previousKeyGeneration",
"keyIndex",
"transition",
"rosterDigest",
"ciphertext"
],
"additionalProperties": false
}VoicePublisherKeyHead
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
publisher | VoicePublisherBinding | Да | |
keyGeneration | integer · int64minimum=1 | Да | |
previousKeyGeneration | integer · int64minimum=0 | Да | |
keyIndex | integer · int32: 0 | Да | |
transition | VoicePublisherKeyTransition | Да | |
rosterDigest | string | Да | |
envelope | string | Да |
JSON Schema
{
"type": "object",
"properties": {
"publisher": {
"$ref": "#/components/schemas/VoicePublisherBinding"
},
"keyGeneration": {
"type": "integer",
"format": "int64",
"minimum": 1
},
"previousKeyGeneration": {
"type": "integer",
"format": "int64",
"minimum": 0
},
"keyIndex": {
"type": "integer",
"format": "int32",
"enum": [
0
]
},
"transition": {
"$ref": "#/components/schemas/VoicePublisherKeyTransition"
},
"rosterDigest": {
"type": "string"
},
"envelope": {
"type": "string"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/voice/crypto/VoicePublisherKeyModels.kt",
"line": 27
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"publisher",
"keyGeneration",
"previousKeyGeneration",
"keyIndex",
"transition",
"rosterDigest",
"envelope"
],
"additionalProperties": false
}VoicePublisherKeyMember
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
publisher | VoicePublisherBinding | Да | |
identity | E2eeIdentityResponse | Да |
JSON Schema
{
"type": "object",
"properties": {
"publisher": {
"$ref": "#/components/schemas/VoicePublisherBinding"
},
"identity": {
"$ref": "#/components/schemas/E2eeIdentityResponse"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/voice/crypto/VoicePublisherKeyModels.kt",
"line": 18
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"publisher",
"identity"
],
"additionalProperties": false
}VoicePublisherKeyStateRequest
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
sessionId | integer · int64 | Да | |
leaseId | integer · int64 | Да | |
generation | integer · int32 | Да |
JSON Schema
{
"type": "object",
"properties": {
"sessionId": {
"type": "integer",
"format": "int64"
},
"leaseId": {
"type": "integer",
"format": "int64"
},
"generation": {
"type": "integer",
"format": "int32"
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/voice/crypto/VoicePublisherKeyModels.kt",
"line": 38
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"sessionId",
"leaseId",
"generation"
],
"additionalProperties": false
}VoicePublisherKeyStateResponse
Default-valued and null response fields may be omitted by the production JSON serializer.
| Поле | Тип | Без default | Описание |
|---|---|---|---|
protocolVersion | integer · int32 | Нет | Default: 2 |
sessionId | integer · int64 | Да | |
receiverLeaseId | integer · int64 | Да | |
receiverGeneration | integer · int32 | Да | |
rosterDigest | string | Да | |
members | array<VoicePublisherKeyMember> | Да | |
publishers | array<VoicePublisherKeyHead> | Да |
JSON Schema
{
"type": "object",
"properties": {
"protocolVersion": {
"type": "integer",
"format": "int32",
"default": 2,
"x-kotlin-default": "2"
},
"sessionId": {
"type": "integer",
"format": "int64"
},
"receiverLeaseId": {
"type": "integer",
"format": "int64"
},
"receiverGeneration": {
"type": "integer",
"format": "int32"
},
"rosterDigest": {
"type": "string"
},
"members": {
"type": "array",
"items": {
"$ref": "#/components/schemas/VoicePublisherKeyMember"
}
},
"publishers": {
"type": "array",
"items": {
"$ref": "#/components/schemas/VoicePublisherKeyHead"
}
}
},
"x-source": {
"path": "src/main/kotlin/com/xchat/server/voice/crypto/VoicePublisherKeyModels.kt",
"line": 41
},
"description": "Default-valued and null response fields may be omitted by the production JSON serializer.",
"required": [
"sessionId",
"receiverLeaseId",
"receiverGeneration",
"rosterDigest",
"members",
"publishers"
],
"additionalProperties": false
}VoicePublisherKeyTransition
string: INITIAL, ADD_RATCHET, REMOVE_RESEED
JSON Schema
{
"type": "string",
"enum": [
"INITIAL",
"ADD_RATCHET",
"REMOVE_RESEED"
],
"x-source": {
"path": "src/main/kotlin/com/xchat/server/voice/crypto/VoicePublisherKeyModels.kt",
"line": 24
}
}VoiceRoomKind
string: VOICE, SPEAKER
JSON Schema
{
"type": "string",
"enum": [
"VOICE",
"SPEAKER"
]
}VoiceSessionCommandRequest
| Поле | Тип | Без default | Описание |
|---|---|---|---|
ownershipProtocolVersion | integer · int32 · null | Нет | Required value 1 for commands; omission is rejected with 426. |
expectedSessionId | integer · int64 · nullminimum=1; maximum=9223372036854775807 | Нет | |
participationId | string · uuid · null | Нет | |
livenessProtocolVersion | integer · int32 · null | Нет | Direct start/join opt in only with value 1. Direct heartbeat requires 1. Omission or 0 preserves legacy participation policy. |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"ownershipProtocolVersion": {
"type": "integer",
"format": "int32",
"nullable": true,
"description": "Required value 1 for commands; omission is rejected with 426."
},
"expectedSessionId": {
"type": "integer",
"format": "int64",
"nullable": true,
"minimum": 1,
"maximum": 9223372036854775807
},
"participationId": {
"type": "string",
"format": "uuid",
"nullable": true
},
"livenessProtocolVersion": {
"type": "integer",
"format": "int32",
"nullable": true,
"description": "Direct start/join opt in only with value 1. Direct heartbeat requires 1. Omission or 0 preserves legacy participation policy."
}
}
}VoiceSessionParticipantResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
userId | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
userIdentifier | string | Да | |
displayName | string | Да | |
joinedAt | string · date-time | Да | |
muted | boolean | Да | |
deafened | boolean | Да | |
stageRole | VoiceParticipantRole | Нет | |
handRaised | boolean | Нет | |
cameraEnabled | boolean | Нет | |
participationId | string · uuid | Да | |
cameraPublished | boolean · null | Нет | Active camera publication in a paged roster; omitted or null means unknown. |
screenSharePublished | boolean · null | Нет | Active screen-share video publication in a paged roster; omitted or null means unknown. |
microphoneBlocked | boolean | Нет | Independent server microphone restriction; muted remains the participant personal or AFK intent. Default: false |
microphoneBlockedRevision | integer · int64minimum=0 | Нет | Durable community microphone policy revision, ordered separately from participant and roster revisions; 0 means legacy or direct-call policy. Default: 0 |
isBot | boolean | Нет | |
stage | VoiceStageResponse / null | Нет | SPEAKER room state only; absent/null for VOICE and direct calls. No stage authority exists in VOICE. |
revision | integer · int64minimum=0 | Нет | Durable participant-state revision for this exact participation. Zero is a legacy response without a participant-state watermark; it must not overwrite a newer typed realtime participant delta. Default: 0 |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"userId": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"userIdentifier": {
"type": "string"
},
"displayName": {
"type": "string"
},
"joinedAt": {
"type": "string",
"format": "date-time"
},
"muted": {
"type": "boolean"
},
"deafened": {
"type": "boolean"
},
"stageRole": {
"$ref": "#/components/schemas/VoiceParticipantRole"
},
"handRaised": {
"type": "boolean"
},
"cameraEnabled": {
"type": "boolean"
},
"participationId": {
"type": "string",
"format": "uuid"
},
"cameraPublished": {
"type": "boolean",
"nullable": true,
"description": "Active camera publication in a paged roster; omitted or null means unknown."
},
"screenSharePublished": {
"type": "boolean",
"nullable": true,
"description": "Active screen-share video publication in a paged roster; omitted or null means unknown."
},
"microphoneBlocked": {
"type": "boolean",
"default": false,
"description": "Independent server microphone restriction; muted remains the participant personal or AFK intent."
},
"microphoneBlockedRevision": {
"type": "integer",
"format": "int64",
"minimum": 0,
"default": 0,
"description": "Durable community microphone policy revision, ordered separately from participant and roster revisions; 0 means legacy or direct-call policy."
},
"isBot": {
"type": "boolean"
},
"stage": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/VoiceStageResponse"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
],
"description": "SPEAKER room state only; absent/null for VOICE and direct calls. No stage authority exists in VOICE."
},
"revision": {
"type": "integer",
"format": "int64",
"minimum": 0,
"default": 0,
"description": "Durable participant-state revision for this exact participation. Zero is a legacy response without a participant-state watermark; it must not overwrite a newer typed realtime participant delta."
}
},
"required": [
"userId",
"userIdentifier",
"displayName",
"joinedAt",
"muted",
"deafened",
"participationId"
]
}VoiceSessionResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
sessionType | VoiceSessionType | Да | |
directConversationId | integer · int64 · nullminimum=1; maximum=9223372036854775807 | Нет | |
channelId | integer · int64 · nullminimum=1; maximum=9223372036854775807 | Нет | |
createdBy | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
maxParticipants | integer · int32 | Да | |
active | boolean | Да | |
participantsCount | integer · int32minimum=0 | Да | |
canAcceptMoreParticipants | boolean | Да | |
createdAt | string · date-time | Да | |
endedAt | string · date-time · null | Нет | |
participants | array<VoiceSessionParticipantResponse> | Да | |
directCallState | DirectCallState / null | Нет | |
incoming | boolean | Нет | |
currentUserJoined | boolean | Нет | |
currentDeviceJoined | boolean | Нет | |
joinedOnAnotherDevice | boolean | Нет | |
ringingExpiresAt | string · date-time · null | Нет | |
hadVideo | boolean | Нет | |
currentUserCanModerateStage | boolean | Нет | |
currentUserCanBroadcastVideo | boolean | Нет | |
speakerModeEnabled | boolean | Нет | |
videoParticipantCount | integer · int32 · nullminimum=0 | Нет | |
summaryRevision | integer · int64minimum=0; maximum=9223372036854775807 | Нет | |
rosterRevision | integer · int64minimum=0; maximum=9223372036854775807 | Нет | |
roomKind | VoiceRoomKind / null | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"sessionType": {
"$ref": "#/components/schemas/VoiceSessionType"
},
"directConversationId": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"nullable": true,
"minimum": 1
},
"channelId": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"nullable": true,
"minimum": 1
},
"createdBy": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"maxParticipants": {
"type": "integer",
"format": "int32"
},
"active": {
"type": "boolean"
},
"participantsCount": {
"type": "integer",
"format": "int32",
"minimum": 0
},
"canAcceptMoreParticipants": {
"type": "boolean"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"endedAt": {
"type": "string",
"nullable": true,
"format": "date-time"
},
"participants": {
"type": "array",
"items": {
"$ref": "#/components/schemas/VoiceSessionParticipantResponse"
}
},
"directCallState": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/DirectCallState"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"incoming": {
"type": "boolean"
},
"currentUserJoined": {
"type": "boolean"
},
"currentDeviceJoined": {
"type": "boolean"
},
"joinedOnAnotherDevice": {
"type": "boolean"
},
"ringingExpiresAt": {
"type": "string",
"nullable": true,
"format": "date-time"
},
"hadVideo": {
"type": "boolean"
},
"currentUserCanModerateStage": {
"type": "boolean"
},
"currentUserCanBroadcastVideo": {
"type": "boolean"
},
"speakerModeEnabled": {
"type": "boolean"
},
"videoParticipantCount": {
"type": "integer",
"format": "int32",
"nullable": true,
"minimum": 0
},
"summaryRevision": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 0
},
"rosterRevision": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 0
},
"roomKind": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/VoiceRoomKind"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
}
},
"required": [
"id",
"sessionType",
"createdBy",
"maxParticipants",
"active",
"participantsCount",
"canAcceptMoreParticipants",
"createdAt",
"participants"
]
}VoiceSessionSummaryResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
id | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
createdBy | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
maxParticipants | integer · int32 | Да | |
active | boolean | Да | |
createdAt | string · date-time | Да | |
participantsCount | integer · int32minimum=0 | Да | |
canAcceptMoreParticipants | boolean | Да | |
videoParticipantCount | integer · int32minimum=0 | Да | |
host | VoiceHostPreviewResponse / null | Нет | |
speakerModeEnabled | boolean | Да | |
currentParticipant | VoiceOwnParticipantResponse / null | Нет | |
currentUserJoined | boolean | Да | |
currentDeviceJoined | boolean | Да | |
joinedOnAnotherDevice | boolean | Да | |
currentUserCanModerateStage | boolean | Да | |
currentUserCanBroadcastVideo | boolean | Да | |
summaryRevision | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
rosterRevision | integer · int64minimum=1; maximum=9223372036854775807 | Да | |
roomKind | VoiceRoomKind | Нет |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"createdBy": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"maxParticipants": {
"type": "integer",
"format": "int32"
},
"active": {
"type": "boolean"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"participantsCount": {
"type": "integer",
"format": "int32",
"minimum": 0
},
"canAcceptMoreParticipants": {
"type": "boolean"
},
"videoParticipantCount": {
"type": "integer",
"format": "int32",
"minimum": 0
},
"host": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/VoiceHostPreviewResponse"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"speakerModeEnabled": {
"type": "boolean"
},
"currentParticipant": {
"anyOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/VoiceOwnParticipantResponse"
}
]
},
{
"type": "object",
"nullable": true,
"enum": [
null
]
}
]
},
"currentUserJoined": {
"type": "boolean"
},
"currentDeviceJoined": {
"type": "boolean"
},
"joinedOnAnotherDevice": {
"type": "boolean"
},
"currentUserCanModerateStage": {
"type": "boolean"
},
"currentUserCanBroadcastVideo": {
"type": "boolean"
},
"summaryRevision": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"rosterRevision": {
"type": "integer",
"format": "int64",
"maximum": 9223372036854775807,
"minimum": 1
},
"roomKind": {
"$ref": "#/components/schemas/VoiceRoomKind"
}
},
"required": [
"id",
"createdBy",
"maxParticipants",
"active",
"createdAt",
"participantsCount",
"canAcceptMoreParticipants",
"videoParticipantCount",
"speakerModeEnabled",
"currentUserJoined",
"currentDeviceJoined",
"joinedOnAnotherDevice",
"currentUserCanModerateStage",
"currentUserCanBroadcastVideo",
"summaryRevision",
"rosterRevision"
]
}VoiceSessionType
string: DIRECT, CHANNEL
JSON Schema
{
"type": "string",
"enum": [
"DIRECT",
"CHANNEL"
]
}VoiceStageResponse
| Поле | Тип | Без default | Описание |
|---|---|---|---|
role | VoiceParticipantRole | Да | |
handRaised | boolean | Да |
JSON Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"role": {
"$ref": "#/components/schemas/VoiceParticipantRole"
},
"handRaised": {
"type": "boolean"
}
},
"required": [
"role",
"handRaised"
]
}