TEAMYFY API v1

Модели данных

Схемы запросов и ответов

Типы извлечены из Kotlin DTO; здесь также находятся модели опубликованного клиентского контракта. Поле с default может отсутствовать в JSON. Отсутствие nullable-поля и явный null обрабатывайте по контракту операции. Числа, обозначенные как string, нельзя преобразовывать в JavaScript Number.

AccessTokenRefreshRequest

ПолеТипБез defaultОписание
refreshTokenstring · nullНет
clientNamestring · nullНетSelf-declared session display name, normalized and limited to 120 characters. Never used for authentication.
clientPlatformstring · 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Описание
accessTokenstring · passwordДаBearer JWT for native mode; exactly empty in cookie mode.
tokenTypestring: Bearer, CookieДа
expiresAtEpochMillisinteger · int64
minimum=0
Да
refreshTokenstring · password · nullНетRotating device-bound refresh proof in native mode only; omitted for HttpOnly cookie transport.
refreshExpiresAtEpochMillisinteger · int64 · null
minimum=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Описание
challengeIdstring · uuidДа
expiresAtEpochMillisinteger · int64
minimum=0
Да
resendAfterEpochMillisinteger · int64
minimum=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Описание
challengeIdstring · uuidДа
codestring
pattern=^[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Описание
idstringДа
deviceIdstringДа
createdAtEpochMillisinteger · int64Да
lastSeenAtEpochMillisinteger · int64Да
expiresAtEpochMillisinteger · int64Да
currentbooleanДа
clientNamestring · nullНетSelf-declared session display name, normalized and limited to 120 characters. Never used for authentication.
clientPlatformstring · 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Описание
sessionsarray<AccountSessionResponse>Да
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "sessions"
  ],
  "properties": {
    "sessions": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AccountSessionResponse"
      }
    }
  }
}

AcquireMediaLeaseRequest

ПолеТипБез defaultОписание
contextTypeMediaContextTypeДа
sessionIdinteger · int64Да
streamParticipationIdstring · nullНет
encryptionProtocolVersioninteger · 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Описание
signedTransferstringДа
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "signedTransfer"
  ],
  "properties": {
    "signedTransfer": {
      "type": "string"
    }
  }
}

ApproveSecureCooperativeAdmissionRequest

ПолеТипБез defaultОписание
signedApprovalstringДа
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "signedApproval": {
      "type": "string"
    }
  },
  "required": [
    "signedApproval"
  ]
}

AuthResponse

ПолеТипБез defaultОписание
accessTokenstring · passwordДаBearer JWT for native mode; exactly empty in cookie mode.
tokenTypestring: Bearer, CookieДа
expiresAtEpochMillisinteger · int64
minimum=0
Да
userAuthUserResponseДа
refreshTokenstring · password · nullНетRotating device-bound refresh proof in native mode only; omitted for HttpOnly cookie transport.
refreshExpiresAtEpochMillisinteger · int64 · null
minimum=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Описание
idinteger · int64
minimum=1
Да
publicIdentifierstring
minLength=1
Да
emailstring · emailДа
usernamestring
minLength=1
Да
displayNamestring
minLength=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Описание
filestring · 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Описание
bindingIdstringДа
bindingRevisioninteger · int64Да
actionIdstringДа
componentTypeinteger · int32Да
sourceBotActionSourceДа
expiresAtstring · 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Описание
actionIdstringДа
componentTypeinteger · 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Описание
kindstringДа
idstringДа
revisioninteger · int32Да
encryptedEnvelopeSha256string · nullНет
interactionIdstring · nullНет
contentSha256string · 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Описание
idstringДа
botUserIdstringДа
namestringДа
scopesarray<string>Да
createdAtstringДа
enabledbooleanДа
visibilitystringНет
Default: "PRIVATE"
revisioninteger · 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Описание
itemsarray<BotModerationMember>Да
nextAfterUserIdstring · 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Описание
messageIdsarray<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Описание
apiVersionstringДа
implementedarray<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Описание
applicationIdstringДа
installationIdstringДа
botUserIdstringДа
botNamestringДа
commandsarray<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Описание
applicationsarray<BotChannelCommandApplication>Да
nextAfterstring · nullНет
hasMorebooleanДа
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Описание
channelIdstringДа
channelNamestringДа
secureEnrollmentstringДа
historyModestringНет
Default: "FROM_JOIN_EPOCH"
joinedEpochinteger · int64 · nullНет
admittedAtstring · nullНет
contentProtocolstring · 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Описание
namestring
minLength=1; maxLength=100
Да
valuestring
minLength=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Описание
namestring
minLength=1; maxLength=32
Да
descriptionstring
maxLength=100
Да
typeinteger: 1, 2, 3Нет
Default: 1
optionsarray<BotCommandOption>Нет
Default: []
defaultMemberPermissionsstring · null
pattern=^(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Описание
idstringДа
compatIdstringДа
applicationIdstringДа
installationIdstring · nullНет
revisioninteger · int64Да
definitionBotCommandDefinitionДа
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Описание
typeinteger
minimum=1; maximum=11
Да
namestring
minLength=1; maxLength=32
Да
descriptionstring
minLength=1; maxLength=100
Да
requiredbooleanНет
Default: false
optionsarray<BotCommandOption>Нет
choicesarray<BotCommandChoice>Нет
autocompletebooleanНет
Default: false
channel_typesarray<integer: 0, 2>Нет
min_valuenumberНет
max_valuenumberНет
min_lengthinteger
minimum=0; maximum=6000
Нет
max_lengthinteger
minimum=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Описание
kindstringДа
nativeIdstringДа
compatIdstringДа
createdAtstringДа
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Описание
userBotCompatIdResponseДа
applicationBotCompatIdResponseДа
ownerBotPublicUserДа
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Описание
idstringДа
scopesarray<string>Да
createdAtstringДа
expiresAtstringДа
revokedbooleanДа
neverExpiresbooleanНет
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Описание
applicationIdstringДа
botUserIdstringДа
conversationIdstring · nullНет
compatConversationIdstring · nullНет
enabledbooleanДа
blockedbooleanДа
revisioninteger · int64Да
scopesarray<string>Да
consentGenerationstring · nullНет
requiredEpochinteger · int64 · nullНет
historyModestringНет
Default: "FROM_JOIN_EPOCH"
secureEnrollmentstringНет
Default: "pending_keys"
botNamestringНет
Default: ""
availableScopesarray<string>Нет
Default: []
contentProtocolstring · 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Описание
conversationsarray<BotDirectConversationResponse>Да
nextAfterstring · nullНет
hasMorebooleanДа
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Описание
conversationIdstringДа
compatIdstringДа
humanBotPublicUserДа
consentGenerationstringДа
revisioninteger · int64Да
scopesarray<string>Да
requiredEpochinteger · int64 · nullНет
closedbooleanДа
historyModestringНет
Default: "FROM_JOIN_EPOCH"
contentProtocolstring · 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Описание
installationIdstringДа
channelIdstringДа
pageBotEventPageResponseДа
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Описание
channelsarray<BotEventBatchScope>Да
limitPerChannelinteger · 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Описание
channelsarray<BotEventBatchPage>Да
deferredarray<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Описание
installationIdstringДа
channelIdstringДа
afterstringДа
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Описание
eventsarray<BotMessageEventResponse>Да
nextCursorstringДа
highWatermarkstringДа
hasMorebooleanДа
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Описание
versioninteger · int32Нет
Default: 1
afterstring · nullНет
waitMillisinteger · 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Описание
versioninteger · int32Нет
Default: 1
stampstringДа
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Описание
epochinteger · int64Да
keyAvailablebooleanДа
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Описание
grantIdstringДа
revisioninteger · int64Да
conversationIdstringДа
historyGenerationstringДа
epochsarray<BotHistoryEpoch>Да
nextAfterEpochinteger · int64Да
hasMorebooleanДа
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Описание
installationIdstringДа
channelIdstringДа
installationRevisioninteger · int64Да
revisioninteger · int64Да
enabledbooleanДа
effectivebooleanДа
statestringДа
historyModestringНет
Default: "FROM_JOIN_EPOCH"
grantIdstring · nullНет
conversationIdstring · nullНет
historyGenerationstring · nullНет
availableEpochCountinteger · int64Нет
Default: 0
contentProtocolstring · 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Описание
applicationIdstringДа
botUserIdstringДа
namestringДа
scopesarray<string>Да
publicIdentifierstring · nullНет
displayNamestring · 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Описание
idstringДа
botUserIdstringДа
namestringДа
avatarUrlstring · nullНет
scopesarray<string>Да
visibilitystringДа
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Описание
idstringДа
actorUserIdstringДа
actionstringДа
createdAtstringДа
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Описание
eventsarray<BotInstallationAuditEvent>Да
nextBeforestring · nullНет
hasMorebooleanДа
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Описание
idstringДа
applicationIdstringДа
createdAtstringДа
revokedAtstring · 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Описание
idstringДа
applicationIdstringДа
communityIdstringДа
scopesarray<string>Да
channelIdsarray<string>Да
revisioninteger · int64Да
revokedbooleanДа
secureEnrollmentstringНет
Default: "required"
allowedRoleIdsarray<string>Нет
Default: []
botNamestring · nullНет
avatarUrlstring · nullНет
contentProtocolstring · 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Описание
installationIdstringДа
applicationIdstringДа
botUserIdstringДа
botNamestringДа
revisioninteger · int64Да
revokedbooleanДа
channelsarray<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Описание
uploadIdstringДа
nativeIdstringДа
compatIdstringДа
ciphertextBytesinteger · int64 · nullНет
expiresAtstringДа
contentProtocolstringНет
Default: "MLS_1"
sizeBytesinteger · int64 · nullНет
managedDescriptorobject · 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Описание
idstringДа
compatIdstringДа
communityIdstring · nullНет
compatCommunityIdstring · nullНет
namestringДа
typestringДа
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Описание
commandBotCommandDefinitionResponse / nullНет
actorBotPublicMember / nullНет
channelBotInteractionChannelДа
actorPermissionsstringДа
sourceBotInteractionSource / nullНет
directUserBotPublicUser / nullНет
snapshotBotInteractionContextSnapshot / 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Описание
interactionBotInteractionViewДа
targetBotSourceInteractionTarget / nullНет
messageBotMessageEventResponse / 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Описание
interactionsarray<BotInteractionView>Да
nextAfterstring · nullНет
hasMorebooleanДа
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Описание
sequenceinteger · int32Да
requestIdstringДа
typeinteger · int32Да
encryptedEnvelopestring · nullНет
createdAtstringДа
idstring · nullНет
compatIdstring · nullНет
visibilitystringНет
Default: "private"
publicMessageIdstring · nullНет
publicCompatMessageIdstring · nullНет
publicMessageRevisioninteger · int32 · nullНет
publicApplicationHashstring · nullНет
revisioninteger · int32Нет
Default: 0
contentRequestIdstring · nullНет
updatedAtstring · nullНет
deletedbooleanНет
Default: false
originalTypeinteger · int32 · nullНет
originalEnvelopeSha256string · nullНет
sourceUpdateBotInteractionSourceUpdate / nullНет
sourceDeletionBotInteractionSourceDeletion / nullНет
managedBodyobject · nullНетExplicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules.
contentProtocolstringНет
Default: "MLS_1"
originalContentSha256string · nullНет
contentSha256string · 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Описание
bindingIdstringДа
bindingRevisioninteger · int64Да
actionIdstringДа
componentTypeinteger · int32Да
sourceBotActionSourceДа
actorDeviceIdstringДа
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Описание
sourceBotActionSourceДа
compatIdstringДа
requestSha256stringДа
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Описание
originalBotActionSourceДа
currentBotActionSourceДа
compatIdstringДа
requestSha256stringДа
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Описание
idstringДа
compatIdstringДа
applicationIdstringДа
installationIdstring · nullНет
channelIdstringДа
actorIdstringДа
botUserIdstringДа
commandIdstring · nullНет
commandRevisioninteger · int64Да
kindinteger · int32Да
statestringДа
clientMessageIdstringДа
expiresAtstringДа
acknowledgementDeadlinestring · nullНет
audienceE2eeAudienceResponse / nullНет
encryptedEnvelopestring · nullНет
responsesarray<BotInteractionReply>Да
sourceBotInteractionSource / nullНет
scopeTypeChatScopeTypeНет
consentGenerationstring · nullНет
managedBodyobject · nullНетExplicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules.
contentProtocolstringНет
Default: "MLS_1"
historyGenerationstring · 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Описание
scopeTypeChatScopeTypeДа
scopeIdstringДа
conversationIdstringДа
historyGenerationstringДа
afterMessageIdinteger · int64Да
afterThreadMessageIdinteger · int64Да
admittedAtstringДа
contentProtocolstringНет
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Описание
deviceIdstringДа
historyGenerationstringДа
contentProtocolstringНет
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Описание
membersarray<BotPublicMember>Да
nextAfterstring · nullНет
hasMorebooleanДа
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Описание
cursorstringДа
eventTypestringДа
nativeMessageIdstring · nullНет
compatMessageIdstring · nullНет
threadRootMessageIdstring · nullНет
compatThreadRootMessageIdstring · nullНет
authorIdstringДа
compatAuthorIdstringДа
conversationIdstringДа
historyGenerationstringДа
epochinteger · int64 · nullНет
revisioninteger · int32Да
encryptedEnvelopestring · nullНет
createdAtstringДа
clientMessageIdstring · nullНет
replyToMessageIdstring · nullНет
attachmentUploadIdsarray<string>Да
authorBotPublicUser / nullНет
actorIdstring · nullНет
compatActorIdstring · nullНет
actorBotPublicUser / nullНет
emojistring · nullНет
pinnedboolean · nullНет
occurredAtstringНет
contentProtocolstringНет
Default: "MLS_1"
managedBodyobject · nullНетExplicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules.
contentSha256string · 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Описание
messagesarray<BotMessageEventResponse>Да
highWatermarkstringДа
hasMorebooleanДа
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Описание
reactionsarray<BotMessageReaction>Да
pinnedbooleanДа
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Описание
emojistringДа
countinteger · int32Да
reactedByCurrentUserbooleanДа
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Описание
revisionstringДа
changedarray<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Описание
userBotPublicUserДа
rolestringДа
joinedAtstringДа
mutedUntilstring · nullНет
bannedbooleanДа
microphoneMutedbooleanДа
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Описание
channelIdstringДа
compatChannelIdstringДа
communityIdstringДа
compatCommunityIdstringДа
nativeRolestringДа
scopesarray<string>Да
mutedUntilstring · nullНет
microphoneMutedbooleanДа
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Описание
messageIdstringДа
compatMessageIdstringДа
pinnedAtstringДа
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Описание
messageIdsarray<string>Да
compatMessageIdsarray<string>Да
itemsarray<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Описание
expiresAtstringДа
heartbeatIntervalSecondsinteger · 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Описание
applicationsarray<BotInstallableApplicationResponse>Да
nextAfterstring · nullНет
hasMorebooleanДа
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Описание
userBotPublicUserДа
rolestringДа
roleIdsarray<string>Да
compatRoleIdsarray<string>Да
joinedAtstringДа
mutedUntilstring · nullНет
microphoneMutedbooleanДа
onlinebooleanНет
Default: false
presenceRevisionstringНет
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Описание
idstringДа
compatIdstringДа
namestringДа
colorstringДа
positioninteger · int32Да
permissionsarray<string>Да
kindstringНет
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Описание
idstringДа
compatIdstringДа
usernamestringДа
displayNamestringДа
avatarUrlstring · nullНет
botbooleanДа
createdAtstringДа
publicIdentifierstring · 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Описание
userIdstringДа
compatUserIdstringДа
channelIdstringДа
compatChannelIdstringДа
sessionIdstringДа
participationIdstringДа
selfMutebooleanДа
selfDeafbooleanДа
cameraEnabledbooleanДа
screenSharePublishedbooleanДа
serverMutebooleanДа
stageRolestringДа
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Описание
codestringНет
Default: "RATE_LIMITED"
messagestringНет
Default: "Bot request budget exhausted"
retry_afternumber · doubleДа
globalbooleanДа
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Описание
actionsarray<BotActionDefinition>Да
expiresAtstringДа
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Описание
interactionBotInteractionViewДа
applicationSecureApplicationResponse / nullНет
sourceInteractionBotInteractionView / nullНет
operationBotSourceOperationReceipt / 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Описание
sourceBotActionSourceДа
sourceInteractionBotInteractionView / 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Описание
interactionIdstringДа
requestIdstringДа
requestSha256stringДа
previousSourceBotActionSourceДа
currentSourceBotActionSourceДа
compatIdstringДа
sourceCurrentbooleanДа
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Описание
receiptBotSourceOperationReceipt / 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Описание
generationinteger · 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Описание
idstringДа
generationinteger · int64Да
authorityExpiresAtstringДа
mediaMediaLeaseHeartbeatResponseДа
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Описание
idstringДа
generationinteger · int64Да
installationIdstringДа
channelIdstringДа
participationIdstringДа
authorityExpiresAtstringДа
mediaMediaLeaseResponseДа
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Описание
statesarray<BotPublicVoiceState>Да
nextAfterChannelIdstring · nullНет
nextAfterUserIdstring · nullНет
hasMorebooleanДа
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Описание
endpointstring
maxLength=4096
Да
p256dhstring
minLength=40; maxLength=512
Да
authstring
minLength=8; maxLength=256
Да
userAgentstring · nullНет
bindingAttemptstring · null
pattern=^[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Описание
idinteger · int64Да
endpointstringДа
bindingIdstring · 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Описание
itemsarray<ForwardedChannelMessage>Да
nextBeforeIdinteger · int64 · null
minimum=1
Нет
hasMorebooleanДа
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Описание
idinteger · int64Да
channelIdinteger · int64Да
authorIdinteger · int64Да
contentstringДа
createdAtstringДа
editedAtstring · nullНет
messageTypeChannelMessageTypeНет
clientMessageIdstring · nullНет
authorIdentifierstring · nullНет
authorDisplayNamestring · nullНет
authorAvatarUrlstring · nullНет
authorCommunityRoleCommunityRole / nullНет
authorCustomRoleNamestring · nullНет
authorRoleColorHexstring · nullНет
reactionsarray<MessageReactionResponse>Нет
pinnedbooleanНет
pinnedByUserIdinteger · int64 · nullНет
pinnedAtstring · nullНет
threadReplyCountinteger · int32Нет
threadRevisioninteger · int64
minimum=0
Нет
attachmentsarray<ChatAttachmentResponse>Нет
deliveryMessageReceiptSummaryResponse / nullНет
forwardedFromForwardedMessageAttribution / nullНет
encryptedEnvelopestring · nullНетLegacy encrypted-content field; managed writes omit it.
encryptionRevisioninteger · int32 · nullНет
replyToMessageIdinteger · int64 · nullНет
authorIsBotbooleanНет
managedBodyobject · nullНетServer-readable structured content, validated by the owning message operation. Managed writers omit legacy encryptedEnvelope; transport encryption and server ACL still apply.
contentRevisioninteger · 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Описание
idinteger · int64Да
fileNamestringДа
contentTypestringДа
sizeBytesinteger · int64Да
mediaUrlstringДа
thumbnailUrlstring · nullНет
kindstring: FILE, VOICE, VIDEOНет
Default: "FILE"
durationMsinteger · int64 · nullНет
downloadUrlstringНет
inlineImagebooleanНетExplicit image presentation intent, default false for legacy/file uploads. Only FILE raster attachments may set true; MIME alone never changes presentation.
Default: false
previewWidthinteger · int32 · null
minimum=1; maximum=640
НетWidth of the real decoded preview in pixels, paired with previewHeight; absent for legacy or generic placeholder previews.
previewHeightinteger · int32 · null
minimum=1; maximum=420
НетHeight of the real decoded preview in pixels, paired with previewWidth; absent for legacy or generic placeholder previews.
sourceUploadIdstring · 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Описание
scopeTypeChatScopeTypeДа
scopeIdinteger · int64Да
contentstringДа
updatedAtstringДа
communityIdinteger · 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Описание
mediaUrlstringДа
thumbnailUrlstring · nullНет
contentTypestringДа
fileNamestringДа
sizeBytesinteger · 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Описание
userIdinteger · int64Да
displayNamestringДа
avatarUrlstring · nullНет
statusChatEventParticipationStatusДа
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Описание
idinteger · int64Да
creatorIdinteger · int64Да
scopeTypeChatCardScopeTypeДа
conversationIdinteger · int64 · nullНет
channelIdinteger · int64 · nullНет
communityIdinteger · int64 · nullНет
communityNamestring · nullНет
channelNamestring · nullНет
messageIdinteger · int64 · nullНет
titlestringДа
descriptionstring · nullНет
fullDescriptionstring · nullНет
locationstring · nullНет
startsAtstringДа
endsAtstring · nullНет
headerImageChatEventHeaderImageResponse / nullНет
subscriberCountinteger · int32Да
subscribedByMebooleanДа
goingCountinteger · int32Нет
maybeCountinteger · int32Нет
participationStatusByMeChatEventParticipationStatus / nullНет
participantsarray<ChatEventParticipantResponse>Нет
sharingAllowedbooleanНет
privateForChannelbooleanНет
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Описание
idinteger · int64Да
positioninteger · int32Да
mediaUrlstringДа
thumbnailUrlstring · nullНет
contentTypestringДа
fileNamestringДа
sizeBytesinteger · 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Описание
idinteger · int64Да
creatorIdinteger · int64Да
creatorIdentifierstringДа
creatorDisplayNamestringДа
creatorAvatarUrlstring · nullНет
communityIdinteger · int64Да
communityNamestringДа
channelIdinteger · int64Да
channelNamestringДа
messageIdinteger · int64 · nullНет
titlestringДа
shortDescriptionstringДа
fullDescriptionstringДа
publishedAtstringДа
imagesarray<ChatNewsImageResponse>Нет
sharingAllowedbooleanНет
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Описание
idstringДа
fileNamestringДа
contentTypestringДа
sizeBytesinteger · int64Да
chunkSizeinteger · int32Да
totalChunksinteger · int32Да
uploadedChunksarray<integer · int32>Да
uploadedBytesinteger · int64Да
statusstring: UPLOADING, READY, RESERVED, CONSUMED, CANCELLEDДа
mediaUrlstring · nullНет
thumbnailUrlstring · nullНет
expiresAtstringДа
inlineImagebooleanНетExplicit image presentation intent, default false for legacy/file uploads. Only FILE raster attachments may set true; MIME alone never changes presentation.
Default: false
previewWidthinteger · int32 · null
minimum=1; maximum=640
НетWidth of the real decoded preview in pixels, paired with previewHeight; absent for legacy or generic placeholder previews.
previewHeightinteger · int32 · null
minimum=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Описание
scopeLessonKeyScopeДа
participationIdstringДа
leaseIdinteger · int64Да
leaseGenerationinteger · 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Описание
leaseIdinteger · int64Да
leaseGenerationinteger · int32Да
recipientLessonAttendeeRecipientДа
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Описание
restrictedbooleanДа
allowedSystemRolesarray<CommunityRole>Нет
allowedCustomRoleIdsarray<integer · int64>Нет
allowedUserIdsarray<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Описание
idinteger · int64Да
communityIdinteger · int64Да
communityNamestringДа
channelIdinteger · int64Да
channelNamestringДа
messageIdinteger · int64 · nullНет
titlestringДа
descriptionstring · nullНет
startsAtstringДа
endsAtstring · nullНет
participationStatusChatEventParticipationStatus / 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Описание
viewingUpdateCommunityAccessRequestДа
broadcastingUpdateCommunityAccessRequest / nullНет
speakingUpdateCommunityAccessRequest / 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Описание
idinteger · int64Да
communityIdinteger · int64Да
namestringДа
topicstring · nullНет
createdByinteger · int64Да
createdAtstringДа
sectionIdinteger · int64 · nullНет
channelTypeCommunityChannelTypeНетLegacy wire adapter only; channelKind is canonical and explicit channelKind wins.
positioninteger · int32Нет
systemPurposeCommunityChannelSystemPurpose / nullНет
accessCommunityAccessResponse / nullНет
broadcastAccessCommunityAccessResponse / nullНет
canBroadcastbooleanНет
speakerAccessCommunityAccessResponse / nullНет
canBecomeSpeakerbooleanНет
speakerModeEnabledbooleanНетLegacy wire adapter only; channelKind is canonical and explicit channelKind wins.
iconUrlstring · nullНет
channelKindCommunityChannelTypeНет
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Описание
idinteger · int64
minimum=1; maximum=9223372036854775807
Да
communityIdinteger · int64
minimum=1; maximum=9223372036854775807
Да
namestringДа
colorHexstringДа
positioninteger · int32Да
permissionsarray<CommunityAdministrationPermission>Нет
showInMemberListbooleanНет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Описание
userIdinteger · int64
minimum=1; maximum=9223372036854775807
Да
userIdentifierstringДа
displayNamestringДа
roleCommunityRoleДа
mutedUntilstring · date-time · nullНет
bannedbooleanДа
joinedAtstring · date-timeДа
customRoleIdsarray<integer · int64
minimum=1; maximum=9223372036854775807>
Нет
avatarUrlstring · nullНет
onlinebooleanНет
Default: false
microphoneMutedbooleanНетPersistent moderator microphone restriction within this community. Clearing it permits voluntary microphone activation; it never turns on the microphone.
Default: false
microphoneModerationRevisioninteger · int64
minimum=0
Нет
Default: 0
isBotbooleanНет
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Описание
communityIdinteger · int64
minimum=1
Да
userIdinteger · int64
minimum=1
Да
nicknamestring · null
maxLength=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Описание
idinteger · int64Да
publicIdentifierstringДа
namestringДа
descriptionstring · nullНет
detailedDescriptionstring · nullНет
ownerIdinteger · int64Да
createdAtstringДа
avatarUrlstring · nullНет
joinModeCommunityJoinModeНет
newsVisibilityCommunityContentVisibilityНет
eventVisibilityCommunityContentVisibilityНет
metadataRevisioninteger · 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Описание
idinteger · int64Да
communityIdinteger · int64Да
namestringДа
positioninteger · int32Да
systemPurposestring · null: GENERAL, MODERATION, NoneНет
accessCommunityAccessResponseДа
channelsarray<CommunityChannelResponse>Да
iconUrlstring · 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Описание
signedTransferSha256stringДа
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Описание
namestringДа
scopesarray<string>Да
visibilitystringНет
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Описание
scopesarray<string>Да
expiresInSecondsinteger · 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Описание
humanUserIdstring · nullНет
humanCompatIdstring · 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Описание
expectedRevisioninteger · 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Описание
interactionPrepareBotInteractionRequestДа
uploadCreateChatUploadRequestДа
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Описание
policyCommunityChannelPolicyRequest / nullНет
namestringДа
topicstring · nullНет
sectionIdinteger · int64 · nullНет
channelTypeCommunityChannelTypeНетLegacy wire adapter only; channelKind is canonical and explicit channelKind wins.
speakerModeEnabledbooleanНетLegacy wire adapter only; channelKind is canonical and explicit channelKind wins.
channelKindCommunityChannelType / 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Описание
titlestringДа
descriptionstring · nullНет
fullDescriptionstring · nullНет
locationstring · nullНет
startsAtstringДа
endsAtstring · nullНет
headerImageUploadIdstring · nullНет
privateForChannelbooleanНет
Default: false
clientOperationIdstring · null
minLength=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Описание
titlestringДа
shortDescriptionstringДа
fullDescriptionstringДа
imageUploadIdsarray<string>Нет
Default: []
clientOperationIdstring · null
minLength=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Описание
fileNamestringДа
contentTypestring · nullНет
sizeBytesinteger · int64Да
inlineImagebooleanНет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Описание
namestringДа
colorHexstringНетDefaults to #8FAECF when omitted.
permissionsarray<CommunityAdministrationPermission>Нет
showInMemberListbooleanНет
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Описание
namestringДа
accessUpdateCommunityAccessRequest / 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Описание
transcriptstringДа
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "transcript"
  ],
  "properties": {
    "transcript": {
      "type": "string"
    }
  }
}

CreateFeedbackRequest

ПолеТипБез defaultОписание
clientRequestIdstring · uuidДаStable idempotency key for this submission; reuse on retries.
descriptionstring
minLength=1; maxLength=500
ДаRequired user-written description, trimmed; bound is Unicode code points.
platformFeedbackPlatformДа
imageUploadIdstring · uuid · nullНетOptional account-owned READY image upload UUID, not a message attachment ID.
appVersionstring · null
maxLength=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Описание
signedRequeststringДа
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "signedRequest": {
      "type": "string"
    }
  },
  "required": [
    "signedRequest"
  ]
}

CreateSocialPublicationRequest

ПолеТипБез defaultОписание
clientRequestIdstringДа
kindSocialPublicationKindДа
audienceSocialAudienceНет
titlestring · nullНет
bodystringНет
slidesarray<SocialSlideRequest>Нет
metadataSocialPublicationMetadata / 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Описание
endpointstringДа
bindingIdstring · 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Описание
requestIdstringДа
expectedRevisioninteger · 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Описание
requestIdstringДа
expectedSourceBotActionSourceДа
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Описание
itemsarray<ForwardedDirectMessage>Да
nextBeforeIdinteger · int64 · null
minimum=1
Нет
hasMorebooleanДа
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Описание
itemsarray<DirectConversationResponse>Да
nextCursorstring · nullНет
hasMorebooleanДа
orderDirectConversationOrderНет
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Описание
idinteger · int64Да
participantUserIdinteger · int64Да
participantUserIdentifierstringДа
participantDisplayNamestringДа
participantAvatarUrlstring · nullНет
participantOnlinebooleanДа
relationStatusDirectFriendRelationStatusДа
activeFriendRequestIdinteger · int64 · nullНет
canSendMessagesbooleanДа
lastMessagePreviewstring · nullНет
lastMessageDirectMessageResponse / nullНет
participantIsBotbooleanНет
Default: false
lastCallAtstring · 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Описание
idinteger · int64Да
conversationIdinteger · int64Да
authorIdinteger · int64Да
contentstringДа
messageTypeDirectMessageTypeResponseДа
friendRequestIdinteger · int64 · nullНет
mediaContentTypestring · nullНет
mediaThumbnailUrlstring · nullНет
friendRequestRequesterIdinteger · int64 · nullНет
friendRequestRequesterDisplayNamestring · nullНет
friendRequestTargetUserIdinteger · int64 · nullНет
friendRequestStatusstring · nullНет
communityInviteIdinteger · int64 · nullНет
communityInviteIdentifierstring · nullНет
communityInviteNamestring · nullНет
communityInviteDescriptionstring · nullНет
directCallSessionIdinteger · int64 · nullНет
directCallOutcomeDirectCallOutcome / nullНет
directCallDurationSecondsinteger · int64 · nullНет
directCallHadVideobooleanНет
createdAtstringДа
editedAtstring · nullНет
clientMessageIdstring · nullНет
reactionsarray<MessageReactionResponse>Нет
pinnedbooleanНет
pinnedByUserIdinteger · int64 · nullНет
pinnedAtstring · nullНет
threadReplyCountinteger · int32Нет
threadRevisioninteger · int64
minimum=0
Нет
attachmentsarray<ChatAttachmentResponse>Нет
deliveryMessageReceiptSummaryResponse / nullНет
forwardedFromForwardedMessageAttribution / nullНет
encryptedEnvelopestring · nullНетLegacy encrypted-content field; managed writes omit it.
encryptionRevisioninteger · int32 · nullНет
replyToMessageIdinteger · int64 · nullНет
authorIsBotbooleanНет
managedBodyobject · nullНетServer-readable structured content, validated by the owning message operation. Managed writers omit legacy encryptedEnvelope; transport encryption and server ACL still apply.
contentRevisioninteger · 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Описание
identitiesarray<E2eeIdentityResponse>Да
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "identities"
  ],
  "properties": {
    "identities": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/E2eeIdentityResponse"
      }
    }
  }
}

E2eeBackupResponse

ПолеТипБез defaultОписание
identityE2eeIdentityResponse / nullНет
recoveryBackupstring · null
maxLength=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Описание
versioninteger · int32Нет
purposestringНет
userIdinteger · int64Да
deviceIdstringДа
signingKeystringДа
encryptionKeystringДа
createdAtEpochMillisinteger · 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Описание
deviceIdstringДа
certificatestringДа
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "deviceId",
    "certificate"
  ],
  "properties": {
    "deviceId": {
      "type": "string"
    },
    "certificate": {
      "type": "string"
    }
  }
}

E2eeDeviceTransferClaims

ПолеТипБез defaultОписание
versioninteger · int32Нет
purposestringНет
userIdinteger · int64Да
approverDeviceIdstringДа
transcriptstringДа
ciphertextstringДа
ciphertextSha256stringДа
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Описание
transcriptstringДа
signedTransferstring · nullНет
statusstring: PENDING, APPROVED, CONSUMEDДа
serverTimeEpochMillisinteger · 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Описание
versioninteger · int32Нет
purposestringНет
requestIdstringДа
userIdinteger · int64Да
recipientDeviceIdstringДа
recipientEncryptionKeystringДа
createdAtEpochMillisinteger · int64Да
expiresAtEpochMillisinteger · int64Да
rootFingerprintstringДа
archiveFingerprintstringДа
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Описание
versioninteger · int32Нет
purposestringДа
scopeIdinteger · int64Да
senderIdinteger · int64Да
senderDeviceIdstringДа
clientMessageIdstringДа
revisioninteger · int32Нет
messageIdinteger · int64 · nullНет
rootMessageIdinteger · int64 · nullНет
ciphertextstring
maxLength=262144
Да
attachmentUploadIdsarray<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Описание
versioninteger · int32Нет
purposestringНет
userIdinteger · int64Да
rootSigningKeystringДа
recoveryEncryptionKeystringДа
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Описание
userIdinteger · int64Да
rootSigningKeystringДа
recoveryEncryptionKeystringДа
identityProofstringДа
devicesarray<E2eeDeviceResponse>Да
previousDeviceCertificatesarray<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Описание
versioninteger · int32Нет
purposestringНет
userIdinteger · int64Да
revisioninteger · int32Да
saltstringДа
iterationsinteger · int32Да
rootFingerprintstringДа
archiveFingerprintstringДа
ciphertextstringДа
ciphertextSha256stringДа
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Описание
revisioninteger · int32Да
signedBackupstring · nullНет
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "revision"
  ],
  "properties": {
    "revision": {
      "type": "integer",
      "format": "int32"
    },
    "signedBackup": {
      "type": "string",
      "nullable": true
    }
  }
}

E2eeRecoveryTimeResponse

ПолеТипБез defaultОписание
serverTimeEpochMillisinteger · int64Да
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "serverTimeEpochMillis"
  ],
  "properties": {
    "serverTimeEpochMillis": {
      "type": "integer",
      "format": "int64"
    }
  }
}

E2eeRoomEpochResponse

ПолеТипБез defaultОписание
protocolVersioninteger · int32Нет
contextTypeMediaContextTypeДа
sessionIdinteger · int64Да
leaseIdinteger · int64Да
generationinteger · int32Да
epochstringДа
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Описание
versioninteger · int32Нет
purposestringНет
contextTypeMediaContextTypeДа
sessionIdinteger · int64Да
epochstringДа
leaderUserIdinteger · int64Да
leaderDeviceIdstringДа
ciphertextstring
maxLength=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Описание
userIdinteger · int64Да
deviceIdstringДа
leaseIdinteger · int64Да
generationinteger · int32Да
participationIdstringДа
identityE2eeIdentityResponseДа
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Описание
contextTypeMediaContextTypeДа
sessionIdinteger · int64Да
leaseIdinteger · int64Да
generationinteger · 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Описание
protocolVersioninteger · int32Нет
contextTypeMediaContextTypeДа
sessionIdinteger · int64Да
epochstringДа
leaderUserIdinteger · int64Да
leaderDeviceIdstringДа
membersarray<E2eeRoomMember>Да
envelopestring · null
maxLength=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Описание
requestIdstringДа
expectedRevisioninteger · int32Да
encryptedEnvelopestring · nullНет
managedBodyobject · 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Описание
challengeIdstring · uuidДа
expiresAtEpochMillisinteger · int64
minimum=0
Да
resendAfterEpochMillisinteger · int64
minimum=0
Да
currentEmailConfirmationRequiredbooleanДа
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Описание
challengeIdstring · uuidДа
codestring
pattern=^[0-9]{6}$
Да
currentEmailCodestring · null
pattern=^[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Описание
emailstring · email
maxLength=255
Да
currentPasswordstring · password
minLength=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Описание
idinteger · int64Да
packIdinteger · int64Да
shortcodestringДа
imageUrlstringДа
contentTypestringДа
animatedbooleanДа
kindEmojiPackKind / 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Описание
uploadIdstring · uuidДа
contentTypestring: application/vnd.teamyfy.e2eeДа
sizeBytesinteger · int64
minimum=1; maximum=524288
Да
mediaUrlstringДа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Описание
versioninteger · int32Нет
Default: 1
originalAttachmentIdinteger · int64Да
posterEncryptedPosterResourceДа
encryptedDescriptorstringДа
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Описание
messagestringДа
codestring · nullНет
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "message"
  ],
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string",
      "nullable": true
    }
  }
}

ExternalVideoMetadataV1

ПолеТипБез defaultОписание
providerExternalVideoProviderV1Да
videoIdstring
minLength=1; maxLength=32; pattern=^[A-Za-z0-9_-]+$
Да
ownerIdstring · null
maxLength=20; pattern=^-?[0-9]+$
Нет
startSecondsinteger · int32 · null
minimum=1; maximum=86400
Нет
canonicalUrlstring · uri
maxLength=2000
Да
posterUrlstring · uri · null
maxLength=2000
Нет
sourceWidthinteger · int32 · null
minimum=1; maximum=16384
НетProvider-reported source video width. Absent when the source geometry was not independently verified.
sourceHeightinteger · int32 · null
minimum=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Описание
idinteger · int64
minimum=1
Да
clientRequestIdstring · uuidДа
createdAtstring · date-timeДа
hasImagebooleanДа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Описание
sourceScopeTypestring: DIRECT, CHANNELДа
sourceScopeIdinteger · int64
minimum=1
Да
sourceMessageIdinteger · int64
minimum=1
Да
targetScopeTypestring: DIRECT, CHANNELДа
targetScopeIdinteger · int64
minimum=1
Да
clientMessageIdstring
minLength=8; maxLength=64; pattern=^[A-Za-z0-9][A-Za-z0-9._:-]{7,63}$
Да
decryptedContentstring · null
maxLength=2000
НетExplicit client-decrypted content only when forwarding an encrypted direct message into a channel.
attachmentUploadIdsarray<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Описание
scopeTypestring: DIRECT, CHANNELДа
scopeIdinteger · int64
minimum=1
Да
directMessageForwardedDirectMessage / nullНет
channelMessageForwardedChannelMessage / 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Описание
idinteger · int64
minimum=1
Да
channelIdinteger · int64
minimum=1
Да
authorIdinteger · int64
minimum=1
Да
contentstringДа
createdAtstring · date-timeДа
forwardedFromForwardedMessageAttributionНет
attachmentsarray<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Описание
idinteger · int64
minimum=1
Да
conversationIdinteger · int64
minimum=1
Да
authorIdinteger · int64
minimum=1
Да
contentstringДа
createdAtstring · date-timeДа
forwardedFromForwardedMessageAttributionНет
attachmentsarray<ChatAttachmentResponse>Нет
encryptedEnvelopestring · null
maxLength=262144
Нет
encryptionRevisioninteger · int32 · null
minimum=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Описание
authorIdinteger · int64
minimum=1
Да
authorDisplayNamestringДа
authorPublicIdentifierstringДа
communityIdinteger · int64 · null
minimum=1
Нет
communityNamestring · nullНет
communityPublicIdentifierstring · nullНет
authorIsBotbooleanНет
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Описание
itemsarray<FriendActivityResponse>Да
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "items"
  ],
  "properties": {
    "items": {
      "type": "array",
      "maxItems": 100,
      "items": {
        "$ref": "#/components/schemas/FriendActivityResponse"
      }
    }
  }
}

FriendActivityRequest

ПолеТипБез defaultОписание
userIdsarray<integer · int64
minimum=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Описание
userIdinteger · int64
minimum=1; maximum=9223372036854775807
Да
activityTypeFriendActivityType / nullНет
activityCommunityNamestring · nullНет
activityChannelNamestring · 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Описание
applicationIdstringДа
sourceBotActionSourceДа
actionIdsarray<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Описание
credentialBotCredentialResponseДа
tokenstringДа
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Описание
idstringДа
applicationIdstringДа
keystringДа
createdAtstringДа
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Описание
installationIdstringДа
channelIdstringДа
listenbooleanНет
Default: false
encryptionProtocolVersioninteger · 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Описание
userIdinteger · int64Да
attendanceIdstringДа
rootKeyThumbprintstring · nullНет
archiveKeyThumbprintstring · 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Описание
channelIdinteger · int64Да
voiceSessionIdinteger · int64Да
incarnationstringДа
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Описание
urlstring · uri
maxLength=2000
Да
titlestring · null
maxLength=300
Нет
descriptionstring · null
maxLength=300
Нет
imageUrlstring · uri · null
maxLength=2000
Нет
siteNamestring · null
maxLength=300
Нет
externalVideoExternalVideoMetadataV1 / nullНет
vkPostVkPostMetadataV1 / 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Описание
emailstring
maxLength=255
ДаEmail address or immutable case-insensitive login name. Email syntax selects email lookup; ambiguous legacy names require email sign-in.
passwordstring · password
minLength=8; maxLength=72
ДаMust contain 8 or more characters and encode to at most 72 UTF-8 bytes.
clientNamestring · nullНетSelf-declared session display name, normalized and limited to 120 characters. Never used for authentication.
clientPlatformstring · 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Описание
generationinteger · int32Да
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "generation"
  ],
  "properties": {
    "generation": {
      "type": "integer",
      "format": "int32"
    }
  }
}

MediaLeaseHeartbeatResponse

ПолеТипБез defaultОписание
idinteger · int64Да
generationinteger · int32Да
leaseExpiresAtstringДа
credentialsMediaTransportCredentialsResponse / nullНетFresh credentials for the same authorized lease and generation; clients retain them for transport recovery.
microphoneAdmissionVoiceMicrophoneAdmissionResponse / nullНет
mediaEncryptionVersioninteger · 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Описание
idinteger · int64Да
generationinteger · int32Да
contextTypeMediaContextTypeДа
sessionIdinteger · int64Да
leaseExpiresAtstringДа
capabilitiesMediaTransportCapabilitiesResponseДа
credentialsMediaTransportCredentialsResponseДа
microphoneAdmissionVoiceMicrophoneAdmissionResponse / nullНет
mediaEncryptionVersioninteger · 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Описание
idinteger · int64Да
leaseIdinteger · int64Да
generationinteger · int32Да
kindMediaPublicationKindДа
sourceMediaPublicationSourceДа
statusMediaPublicationStatusДа
codecstring · nullНет
widthinteger · int32 · nullНет
heightinteger · int32 · nullНет
frameRateinteger · int32 · nullНет
bitrateKbpsinteger · int32 · nullНет
spatialLayersinteger · int32 · nullНет
updatedAtstringДа
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Описание
canPublishAudiobooleanДа
canPublishVideobooleanДа
canSubscribebooleanДа
allowedSourcesarray<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Описание
providerMediaTransportProviderДа
serverUrlstringДа
roomNamestringДа
participantIdentitystringДа
accessTokenstringДа
expiresAtstringДа
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Описание
emojistringДа
countinteger · int32Да
reactedByMebooleanДа
reactorsarray<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Описание
userIdinteger · int64Да
displayNamestringДа
isBotbooleanНет
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "userId": {
      "type": "integer",
      "format": "int64"
    },
    "displayName": {
      "type": "string"
    },
    "isBot": {
      "type": "boolean"
    }
  },
  "required": [
    "userId",
    "displayName"
  ]
}

MessageReceiptSummaryResponse

ПолеТипБез defaultОписание
statusMessageDeliveryStatusДа
recipientCountinteger · int32Да
deliveredCountinteger · int32Да
readCountinteger · 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Описание
itemsarray<MessageThreadReplyResponse>Да
nextBeforeIdinteger · int64 · nullНет
hasMorebooleanДа
totalCountinteger · int32Да
threadRevisioninteger · int64
minimum=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Описание
idinteger · int64Да
rootMessageIdinteger · int64Да
authorIdinteger · int64Да
authorIdentifierstring · nullНет
authorDisplayNamestring · nullНет
authorAvatarUrlstring · nullНет
contentstringДа
createdAtstringДа
editedAtstring · nullНет
encryptedEnvelopestring · null
maxLength=262144
НетLegacy encrypted-content field; managed writes omit it.
encryptionRevisioninteger · int32 · nullНет
authorIsBotbooleanНет
managedBodyobject · nullНетServer-readable structured content, validated by the owning message operation. Managed writers omit legacy encryptedEnvelope; transport encryption and server ACL still apply.
contentRevisioninteger · 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Описание
generationinteger · int64Да
channelIdstringДа
encryptionProtocolVersioninteger · 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Описание
scopeTypeNotificationScopeTypeДа
scopeIdinteger · int64 · nullНет
modeNotificationModeДа
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Описание
defaultModeNotificationModeДа
overridesarray<NotificationPreferenceResponse>Да
settingsNotificationSettingsResponseНет
revisioninteger · int64
minimum=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Описание
quietHoursEnabledbooleanНет
quietStartMinutesinteger · int32
minimum=0; maximum=1439
Нет
quietEndMinutesinteger · int32
minimum=0; maximum=1439
Нет
quietTimezonestringНет
mentionsEnabledbooleanНет
repliesEnabledbooleanНет
threadsEnabledbooleanНет
quietTimezoneConfiguredbooleanНет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Описание
resetTicketstring
pattern=^[A-Za-z0-9_-]{43}$
Да
newPasswordstring · password
minLength=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Описание
emailstring · email
maxLength=255
Да
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "email"
  ],
  "properties": {
    "email": {
      "type": "string",
      "format": "email",
      "maxLength": 255
    }
  }
}

PasswordResetTicketResponse

ПолеТипБез defaultОписание
resetTicketstring
pattern=^[A-Za-z0-9_-]{43}$
Да
expiresAtEpochMillisinteger · int64
minimum=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Описание
applicationIdstringДа
actionIdstringДа
sourceBotActionSourceДа
requestIdstringДа
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Описание
applicationIdstringДа
commandIdstringДа
commandRevisioninteger · int64Да
requestIdstringДа
kindinteger · int32Нет
Default: 2
attachmentUploadIdsarray<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Описание
signedManifeststringДа
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Описание
interactionBotInteractionViewДа
applicationSecureApplicationResponseДа
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Описание
idinteger · int64
minimum=1
Да
publicIdentifierstring
minLength=1
Да
displayNamestring
minLength=1
Да
biostring · nullНет
avatarUrlstring · uri · nullНет
isBotbooleanНет
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Описание
contextTypeMediaContextTypeДа
sessionIdinteger · int64Да
leaseIdinteger · int64Да
generationinteger · int32Да
epochstringДа
envelopestring
maxLength=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Описание
signedGrantsarray<string
maxLength=16384>
Да
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "signedGrants": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 16384
      },
      "minItems": 1,
      "maxItems": 16
    }
  },
  "required": [
    "signedGrants"
  ]
}

PublishSecureKeyPackagesRequest

ПолеТипБез defaultОписание
signedKeyPackagesarray<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Описание
sessionIdinteger · int64Да
leaseIdinteger · int64Да
generationinteger · int32Да
expectedRosterDigeststringДа
keyGenerationinteger · int64
minimum=1
Да
previousKeyGenerationinteger · int64
minimum=0
Да
keyIndexinteger · int32: 0Да
transitionVoicePublisherKeyTransitionДа
envelopestringДа
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Описание
scopesarray<string>Да
expectedRevisioninteger · 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Описание
expectedInstallationRevisioninteger · int64Да
expectedRevisioninteger · 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Описание
applicationIdstringДа
scopesarray<string>Да
channelIdsarray<string>Да
allowedRoleIdsarray<string>Нет
Default: []
installationKeystring · 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Описание
expectedRevisioninteger · int32Да
signedBackupstringДа
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Описание
versioninteger · int32: 1Нет
Default: 1
posterUploadIdstring · uuidДа
encryptedDescriptorstring
minLength=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Описание
signedCapabilitystringДа
expectedRevisioninteger · int64
minimum=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Описание
cardIdinteger · int64
minimum=4611686018427387904; maximum=9223372036854775807
Да
newsCreateChatNewsRequest / nullНет
eventCreateChatEventRequest / nullНет
applicationSubmitSecureApplicationRequestДа
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Описание
requiredFeaturesarray<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Описание
readybooleanДа
reasonSecureContentCapabilityNotReadyReason / nullНет
serverTimeEpochMillisinteger · int64
minimum=1
Да
snapshotSecureContentCapabilitySnapshot / nullНет
snapshotSha256string · null
pattern=^[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Описание
epochsarray<integer · int64
minimum=1>
ДаDistinct historical epochs; duplicate values are rejected.
expectedEpochinteger · int64
minimum=1
Да
expectedCommitHashstringДа
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Описание
ticketstring · password
pattern=^[A-Za-z0-9_-]{43}$
ДаShort-lived one-time credential for /api/v1/realtime/ws?ticket=...
expiresAtEpochMillisinteger · int64
minimum=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Описание
sourceBotActionSourceДа
actionsarray<BotActionDefinition>Да
expiresAtstring · 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Описание
certificatestringДа
expectedPredecessorCertificateSha256string · null
pattern=^[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Описание
identityProofstringДа
rootSigningKeystringДа
recoveryEncryptionKeystringДа
recoveryBackupstring
maxLength=65536
Да
deviceCertificatestringДа
expectedPredecessorCertificateSha256string · null
pattern=^[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Описание
emailstring · email
maxLength=255
Да
usernamestring
minLength=3; maxLength=40
ДаImmutable login; case-insensitive uniqueness. New names cannot contain @ or control characters. Existing duplicate names are not renamed.
passwordstring · password
minLength=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.
displayNamestring · null
minLength=3; maxLength=15; pattern=\S
Нет
clientNamestring · nullНетSelf-declared session display name, normalized and limited to 120 characters. Never used for authentication.
clientPlatformstring · 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Описание
commandsarray<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Описание
clientMessageIdstringДа
managedBodyobjectДаExplicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules.
attachmentUploadIdsarray<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Описание
requestIdstringДа
devicesarray<SecureDeviceRef>Да
allowPartialbooleanНет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Описание
installationKeystringДа
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Описание
identifiersarray<string
maxLength=32>
Да
JSON Schema
{
  "type": "object",
  "required": [
    "identifiers"
  ],
  "properties": {
    "identifiers": {
      "type": "array",
      "maxItems": 100,
      "items": {
        "type": "string",
        "maxLength": 32
      }
    }
  },
  "additionalProperties": false
}

ResolveMentionsResponse

ПолеТипБез defaultОписание
usersarray<UserMentionResponse>Да
ownIdentifiersarray<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Описание
userIdsarray<integer · int64
minimum=1>
ДаRaw list is bounded before deduplication. Resolves only the supplied identities; unknown IDs return null overrides.
communityIdinteger · int64 · null
minimum=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Описание
requestIdstringДа
typeinteger · int32Да
encryptedEnvelopestring · nullНет
managedBodyobject · 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Описание
requestIdstringДа
applicationSubmitSecureApplicationRequest / nullНет
managedBodyobject · nullНетExplicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules.
clientMessageIdstring · nullНет
replyToMessageIdinteger · 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Описание
requestIdstringДа
expectedSourceBotActionSourceДа
applicationSubmitSecureApplicationRequest / nullНет
encryptedEnvelopestring · nullНет
managedBodyobject · nullНетExplicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules.
clientMessageIdstring · nullНет
replyToMessageIdinteger · int64 · nullНет
sourceActionsBotSourceActionSet / 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Описание
deviceIdstringДа
signedRevocationstringДа
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "deviceId": {
      "type": "string"
    },
    "signedRevocation": {
      "type": "string"
    }
  },
  "required": [
    "deviceId",
    "signedRevocation"
  ]
}

SaveChatDraftRequest

ПолеТипБез defaultОписание
contentstring
maxLength=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Описание
scopeTypeChatScopeTypeДа
scopeIdinteger · int64Да
contentstringДаEmpty string for encrypted direct schedules. User-visible text and attachment descriptors exist only in encryptedEnvelope.
scheduledAtstringДа
silentbooleanНет
attachmentUploadIdsarray<string>Нет
encryptedEnvelopestring · null
maxLength=262144
НетLegacy encrypted-content field; managed writes omit it.
clientMessageIdstring · nullНет
managedBodyobject · 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Описание
requestIdstring
minLength=8; maxLength=128
Да
applicationSubmitSecureApplicationRequestДа
privatePreviewstring
maxLength=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.
scheduledAtstringДаFuture ISO-8601 instant, at most 365 days ahead.
silentbooleanНет
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Описание
itemsarray<ScheduledChatMessageResponse>Да
nextCursorstring · nullНет
hasMorebooleanНет
previousCursorstring · 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Описание
idinteger · int64Да
scopeTypeChatScopeTypeДа
scopeIdinteger · int64Да
contentstringДаFor MLS schedules, device-signed e2ee:draft:v2 ciphertext for the owner preview; never user-visible plaintext. Legacy schedules may have empty content.
scheduledAtstringДа
silentbooleanДа
statusScheduledChatMessageStatusДа
sentMessageIdinteger · int64 · nullНет
lastErrorstring · nullНет
createdAtstringДа
attachmentsarray<ChatUploadSessionResponse>Нет
encryptedEnvelopestring · null
maxLength=262144
НетLegacy encrypted-content field; managed writes omit it.
clientMessageIdstring · nullНет
managedBodyobject · 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Описание
versioninteger · int32Нет
purposestringНет
scopeTypeChatScopeTypeДа
scopeIdstringДа
communityIdstringДа
conversationIdstringДа
historyGenerationstringДа
authorityUserIdsarray<string>Да
authorityRootFingerprintsarray<string>Да
activationEpochinteger · int64Да
baseCommitHashstring · nullНет
baseRosterHashstring · nullНет
modestringНет
historystringНет
policyRevisioninteger · int64Нет
previousPolicySha256string · 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Описание
versioninteger · int32Нет
purposestringНет
scopeTypeChatScopeTypeДа
scopeIdstringДа
conversationIdstringДа
historyGenerationstringДа
epochinteger · int64Да
commitHashstringДа
rosterHashstringДа
senderUserIdstringДа
senderDeviceIdstringДа
clientMessageIdstringДа
revisioninteger · int32Да
messageIdstring · nullНет
replyToMessageIdstring · nullНет
rootMessageIdstring · nullНет
attachmentUploadIdsarray<string>Да
contextstringДа
ciphertextstringДа
archiveCiphertextstringДа
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Описание
versioninteger · int32
minimum=1; maximum=1
Нет
purposestring: mls-application-content-requirementНет
userIdstringДа
deviceIdstring
maxLength=128
Да
certificateSha256string
pattern=^[0-9a-f]{64}$
Да
encryptedEnvelopeSha256string
pattern=^[0-9a-f]{64}$
Да
capabilitySnapshotSha256string
pattern=^[0-9a-f]{64}$
Да
requiredFeaturesarray<string: media-renditions-v2>Да
expiresAtEpochMillisinteger · int64
minimum=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Описание
messageIdinteger · int64Да
revisioninteger · int32Да
insertedbooleanДа
directMessageDirectMessageResponse / nullНет
channelMessageChannelMessageResponse / nullНет
threadReplyMessageThreadReplyResponse / 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Описание
userIdstringДа
rootFingerprintstringДа
ciphertextstringДа
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Описание
versioninteger · int32
minimum=1; maximum=1
Нет
purposestring: mls-content-capability-snapshotНет
scopeTypeChatScopeTypeДа
scopeIdstringДа
conversationIdstringДа
historyGenerationstringДа
epochinteger · int64
minimum=1
Да
commitHashstring
pattern=^[0-9a-f]{64}$
Да
rosterHashstring
pattern=^[0-9a-f]{64}$
Да
requiredFeaturesarray<string: media-renditions-v2>Да
eligibleUserIdsarray<string>Да
devicesarray<SecureDeviceContentCapabilityProof>Да
expiresAtEpochMillisinteger · int64
minimum=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Описание
transitionsarray<SecureTransitionResponse>Да
nextAfterEpochinteger · int64Да
hasMorebooleanДа
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Описание
protocolstringНет
scopeTypeChatScopeTypeДа
scopeIdstringДа
conversationIdstringДа
historyGenerationstringДа
statusstringДа
communityIdinteger · int64 · nullНет
epochinteger · int64 · nullНет
commitHashstring · nullНет
rosterHashstring · nullНет
rosterarray<SecureRosterMember>Да
authorityUserIdsarray<string>Да
identitiesarray<E2eeIdentityResponse>Да
openSelfJoinEligiblebooleanНет
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Описание
versioninteger · int32Нет
Default: 1
purposestringНет
Default: "mls-cooperative-admission"
requestIdstringДа
scopeTypeChatScopeTypeДа
scopeIdstringДа
conversationIdstringДа
historyGenerationstringДа
authorityUserIdstringДа
authorityRootFingerprintstringДа
targetDeviceIdstringДа
targetCertificateSha256stringДа
baseEpochinteger · int64Да
baseCommitHashstringДа
baseRosterHashstringДа
createdAtEpochMillisinteger · int64Да
expiresAtEpochMillisinteger · 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Описание
requestsarray<SecureCooperativeAdmissionResponse>Да
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "requests": {
      "type": "array",
      "maxItems": 8,
      "items": {
        "$ref": "#/components/schemas/SecureCooperativeAdmissionResponse"
      }
    }
  },
  "required": [
    "requests"
  ]
}

SecureCooperativeAdmissionResponse

ПолеТипБез defaultОписание
requestIdstringДа
statusSecureCooperativeAdmissionStatusДа
signedRequeststringДа
targetUserIdstringДа
targetDeviceIdstringДа
expiresAtEpochMillisinteger · int64Да
serverTimeEpochMillisinteger · int64Да
helperUserIdstring · nullНет
helperDeviceIdstring · nullНет
helperCertificateSha256string · nullНет
signedManifeststring · nullНет
signedApprovalstring · nullНет
verificationIdentitiesarray<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Описание
versioninteger · int32Нет
purposestringНет
userIdstringДа
deviceIdstringДа
rootFingerprintstringДа
certificateSha256stringДа
signingPublicKeystringДа
cipherSuiteinteger · 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Описание
versioninteger · int32
minimum=1; maximum=1
Нет
purposestring: mls-device-content-capabilityНет
userIdstringДа
deviceIdstring
maxLength=128
Да
certificateSha256string
pattern=^[0-9a-f]{64}$
Да
revisioninteger · int64
minimum=1
Да
featuresarray<string: media-renditions-v2>Да
issuedAtEpochMillisinteger · int64
minimum=1
Да
expiresAtEpochMillisinteger · int64
minimum=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Описание
userIdstringДа
deviceIdstring
maxLength=128
Да
certificateSha256string
pattern=^[0-9a-f]{64}$
Да
revisioninteger · int64
minimum=1
Да
signedCapabilitystringДа
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Описание
certificateSha256string
pattern=^[0-9a-f]{64}$
Да
revisioninteger · int64
minimum=0
Да
signedCapabilitystring · nullНет
serverTimeEpochMillisinteger · int64
minimum=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Описание
userIdstringДа
deviceIdstringДа
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "userId": {
      "type": "string"
    },
    "deviceId": {
      "type": "string"
    }
  },
  "required": [
    "userId",
    "deviceId"
  ]
}

SecureDeviceRevocationClaims

ПолеТипБез defaultОписание
versioninteger · int32Нет
purposestringНет
userIdstringДа
deviceIdstringДа
certificateSha256stringДа
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Описание
everyonebooleanНет
Default: false
systemRolesarray<string>Нет
Default: []
customRoleIdsarray<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Описание
versioninteger · int32Нет
purposestringНет
scopeTypeChatScopeTypeДа
scopeIdstringДа
conversationIdstringДа
historyGenerationstringДа
epochinteger · int64
minimum=1
Да
commitHashstringДа
grantorUserIdstringДа
grantorDeviceIdstringДа
grantorCertificateSha256stringДа
authorizedAtEpochinteger · int64
minimum=1
Да
authorizedAtCommitHashstringДа
capsuleSecureArchiveCapsuleДа
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Описание
epochinteger · int64
minimum=1
Да
signedGrantstring
maxLength=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Описание
epochinteger · int64
minimum=1
Да
recipientUserIdsarray<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Описание
grantsarray<SecureHistoryGrantResponse>Нет
pendingarray<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Описание
versioninteger · int32Нет
purposestringНет
userIdstringДа
deviceIdstringДа
certificateSha256stringДа
credentialstringДа
keyPackagestringДа
keyPackageSha256stringДа
expiresAtEpochMillisinteger · 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Описание
keyPackagesarray<SecureKeyPackageResponse>Да
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "keyPackages": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/SecureKeyPackageResponse"
      }
    }
  },
  "required": [
    "keyPackages"
  ]
}

SecureKeyPackageReservationResponse

ПолеТипБез defaultОписание
requestIdstringДа
expiresAtEpochMillisinteger · int64Да
keyPackagesarray<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Описание
signedKeyPackagestringДа
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Описание
protocolstringНет
enabledbooleanДа
historyGenerationstringДа
minimumContentProtocolVersioninteger · int32
minimum=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Описание
versioninteger · int32Нет
Default: 1
purposestringНет
Default: "message-notification-intent"
senderUserIdstringДа
senderDeviceIdstringДа
scopeTypeChatScopeTypeДа
scopeIdstringДа
clientMessageIdstringДа
encryptedEnvelopeSha256stringДа
targetsSecureGroupMentionTargetsДа
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Описание
versioninteger · int32Нет
purposestringНет
scopeTypeChatScopeTypeДа
scopeIdstringДа
ownerUserIdstringДа
senderDeviceIdstringДа
ciphertextstringДа
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Описание
newsChatNewsResponse / nullНет
eventChatEventResponse / nullНет
applicationSecureApplicationResponseДа
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Описание
userIdstringДа
deviceIdstringДа
certificateSha256stringДа
credentialstringДа
keyPackageSha256string · 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Описание
versioninteger · int32Нет
purposestringНет
scopeTypeChatScopeTypeДа
scopeIdstringДа
conversationIdstringДа
historyGenerationstringДа
authorityUserIdsarray<string>Да
requestIdstringДа
committerUserIdstringДа
committerDeviceIdstringДа
previousEpochinteger · int64 · nullНет
previousCommitHashstring · nullНет
previousRosterHashstring · nullНет
nextEpochinteger · int64Да
commitstringДа
nextRosterarray<SecureRosterMember>Да
welcomesarray<SecureWelcome>Да
reservationRequestIdstring · nullНет
archiveCapsulesarray<SecureArchiveCapsule>Да
transitionKindstring · nullНет
signedAdmissionPolicystring · nullНет
nextExternalGroupInfostring · nullНет
externalJoinBaseGroupInfoSha256string · 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Описание
epochinteger · int64Да
commitHashstringДа
rosterHashstringДа
signedManifeststringДа
membershipApprovalsarray<string>Да
verificationIdentitiesarray<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Описание
userIdstringДа
deviceIdstringДа
keyPackageSha256stringДа
ciphertextstringДа
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Описание
contentstringДа
clientMessageIdstring · nullНет
replyToMessageIdinteger · int64 · nullНет
managedBodyobject · 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Описание
contentstringДа
clientMessageIdstring · nullНет
replyToMessageIdinteger · int64 · nullНет
encryptedEnvelopestring · null
maxLength=262144
НетLegacy encrypted-content field; managed writes omit it.
managedBodyobject · 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Описание
contentstringДа
clientMessageIdstring · nullНет
encryptedEnvelopestring · null
maxLength=262144
НетLegacy encrypted-content field; managed writes omit it.
managedBodyobject · 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Описание
uploadIdsarray<string>Да
captionstring · nullНет
clientMessageIdstring · nullНет
voiceDurationMsinteger · int64 · nullНет
videoDurationMsinteger · int64 · nullНет
encryptedEnvelopestring · null
maxLength=262144
НетLegacy encrypted-content field; managed writes omit it.
managedBodyobject · nullНетServer-readable structured content, validated by the owning message operation. Managed writers omit legacy encryptedEnvelope; transport encryption and server ACL still apply.
replyToMessageIdinteger · 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Описание
pinnedbooleanДа
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Описание
emojistringДа
activebooleanДа
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Описание
keystringДа
kindstringДа
sortAtstringДа
publicationSocialPublicationResponse / nullНет
newsChatNewsResponse / nullНет
eventUpcomingChatEventResponse / 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Описание
itemsarray<SocialFeedItemResponse>Да
nextCursorstring · 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Описание
locationstring · null
maxLength=160
Нет
peoplearray<string
minLength=1; maxLength=64>
Нет
eventstring · null
maxLength=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Описание
itemsarray<SocialPublicationResponse>Да
nextCursorstring · 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Описание
idinteger · int64Да
authorUserIdinteger · int64Да
authorUserIdentifierstringДа
authorDisplayNamestringДа
authorAvatarUrlstring · nullНет
kindSocialPublicationKindДа
audienceSocialAudienceДа
titlestring · nullНет
bodystringДа
slidesarray<SocialSlideResponse>Да
createdAtstringДа
updatedAtstring · nullНет
revisioninteger · int64Да
highlightUntilstring · nullНет
seenbooleanНет
canEditbooleanНет
metadataSocialPublicationMetadata / 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Описание
uploadIdstring · nullНет
retainedSlideIdinteger · int64 · nullНет
captionstring · nullНет
locationstring · nullНет
peoplearray<string>Нет
eventstring · 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Описание
idinteger · int64Да
positioninteger · int32Да
mediaUrlstringДа
thumbnailUrlstring · nullНет
widthinteger · int32 · nullНет
heightinteger · int32 · nullНет
captionstring · nullНет
locationstring · nullНет
peoplearray<string>Нет
eventstring · 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Описание
maxParticipantsinteger · int32 · nullНет
ownershipProtocolVersioninteger · int32 · nullНетRequired value 1 for commands; omission is rejected with 426.
expectedSessionIdinteger · int64 · null
minimum=1; maximum=9223372036854775807
Нет
participationIdstring · 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Описание
titlestring
maxLength=120
Да
videoSourceVideoSourceTypeНет
videoQualityVideoQualitySettingsНет
ownershipProtocolVersioninteger · 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Описание
sessionIdinteger · int64
minimum=1; maximum=9223372036854775807
Да
statusStreamSessionStatusДа
rosterRevisioninteger · int64
minimum=1; maximum=9223372036854775807
Да
participantsCountinteger · int32
minimum=0
Да
itemsarray<StreamParticipantResponse>Да
hasMorebooleanДа
nextCursorstring · null
minLength=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Описание
userIdinteger · int64
minimum=1; maximum=9223372036854775807
Да
userIdentifierstringДа
displayNamestringДа
avatarUrlstring · nullНет
roleStreamParticipantRoleДа
joinedAtstring · date-timeДа
canPublishAudiobooleanДа
canPublishVideobooleanДа
participationIdstring · uuid · nullНет
isBotbooleanНет
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Описание
idinteger · int64
minimum=1; maximum=9223372036854775807
Да
statusStreamSessionStatusДа
titlestringДа
communityIdinteger · int64
minimum=1; maximum=9223372036854775807
Да
communityNamestringДа
communityAvatarUrlstring · nullНет
channelIdinteger · int64
minimum=1; maximum=9223372036854775807
Да
channelNamestringДа
videoSourceVideoSourceTypeДа
videoQualityVideoQualitySettingsДа
hostUserIdinteger · int64
minimum=1; maximum=9223372036854775807
Да
hostDisplayNamestringДа
hostAvatarUrlstring · nullНет
startedAtstring · date-timeДа
endedAtstring · date-time · nullНет
participantsCountinteger · int32
minimum=0
Да
participantsarray<StreamParticipantResponse>Да
currentUserJoinedbooleanДа
currentUserRoleStreamParticipantRole / nullНет
canPublishAudiobooleanДа
canPublishVideobooleanДа
canManagebooleanДа
canModerateSpeakersbooleanДа
ownershipProtocolVersioninteger · int32НетAdvertised ownership capability; when absent, ownership commands are unsupported.
currentUserParticipationIdstring · uuid · nullНетCurrent or last inactive membership UUID. Read before explicit join; null only when no membership has existed.
currentUserOwnerDeviceIdstring · nullНетOnly the authenticated user's device owner; null for legacy membership.
summaryRevisioninteger · int64 · null
minimum=0
Нет
rosterRevisioninteger · int64 · null
minimum=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Описание
idinteger · int64
minimum=1; maximum=9223372036854775807
Да
statusStreamSessionStatusДа
titlestringДа
communityIdinteger · int64
minimum=1; maximum=9223372036854775807
Да
communityNamestringДа
communityAvatarUrlstring · nullНет
channelIdinteger · int64
minimum=1; maximum=9223372036854775807
Да
channelNamestringДа
videoSourceVideoSourceTypeДа
videoQualityVideoQualitySettingsДа
hostUserIdinteger · int64
minimum=1; maximum=9223372036854775807
Да
hostDisplayNamestringДа
hostAvatarUrlstring · nullНет
startedAtstring · date-timeДа
endedAtstring · date-time · nullНет
participantsCountinteger · int32
minimum=0
Да
viewersCountinteger · int32
minimum=0
Да
speakersCountinteger · int32
minimum=0
Да
currentUserJoinedbooleanДа
currentUserRoleStreamParticipantRole / nullНет
canPublishAudiobooleanДа
canPublishVideobooleanДа
canManagebooleanДа
canModerateSpeakersbooleanДа
summaryRevisioninteger · int64
minimum=1; maximum=9223372036854775807
Да
rosterRevisioninteger · int64
minimum=1; maximum=9223372036854775807
Да
ownershipProtocolVersioninteger · int32НетAdvertised ownership capability; when absent, ownership commands are unsupported.
currentUserParticipationIdstring · uuid · nullНетCurrent or last inactive membership UUID. Read before explicit join; null only when no membership has existed.
currentUserOwnerDeviceIdstring · 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Описание
serverTimeEpochMsinteger · int64
minimum=1
Да
validityMsinteger · int64
minimum=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Описание
operationIdstring · uuidДа
channelIdinteger · int64
minimum=1
Да
statusStreamStartOperationStatusДа
sessionIdinteger · int64 · null
minimum=1
Нет
participationIdstring · nullНет
rejectionCodestring · nullНет
retiredThroughEpochMsinteger · int64 · null
minimum=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Описание
itemsarray<StreamSessionSummaryResponse>Да
hasMorebooleanДа
nextCursorstring · null
minLength=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Описание
encryptedEnvelopestring · nullНет
managedBodyobject · 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Описание
signedContentRequirementstring · 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.
signedNotificationIntentstring · 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.
encryptedEnvelopestringДа
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Описание
signedManifeststringДа
membershipApprovalsarray<string>Да
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "signedManifest": {
      "type": "string"
    },
    "membershipApprovals": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "signedManifest",
    "membershipApprovals"
  ]
}

UpcomingChatEventResponse

ПолеТипБез defaultОписание
idinteger · int64Да
communityIdinteger · int64Да
communityNamestringДа
channelIdinteger · int64Да
channelNamestringДа
messageIdinteger · int64 · nullНет
titlestringДа
descriptionstring · nullНет
startsAtstringДа
endsAtstring · nullНет
participationStatusChatEventParticipationStatusДа
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Описание
scopesarray<string>Да
visibilitystringДа
expectedRevisioninteger · 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Описание
scopesarray<string>Да
channelIdsarray<string>Да
expectedRevisioninteger · int64Да
allowedRoleIdsarray<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Описание
contentstringДа
managedBodyobject · nullНетExplicit kotlinx.serialization JsonObject wire value; see the operation-specific content rules.
expectedContentRevisioninteger · 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Описание
policyCommunityChannelPolicyRequest / nullНет
namestringДа
topicstring · nullНет
sectionIdinteger · int64Да
channelTypeCommunityChannelType / nullНетLegacy wire adapter only; explicit channelKind wins. When both channelKind and channelType are absent or null, preserve the stored kind.
positioninteger · int32Нет
speakerModeEnabledbooleanНетLegacy wire adapter only; channelKind is canonical and explicit channelKind wins.
channelKindCommunityChannelType / 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Описание
allowedSystemRolesarray<CommunityRole>Нет
allowedCustomRoleIdsarray<integer · int64
minimum=1>
Нет
allowedUserIdsarray<integer · int64
minimum=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Описание
namestringДа
colorHexstringДа
positioninteger · int32Да
permissionsarray<CommunityAdministrationPermission>Нет
showInMemberListboolean · 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Описание
mutedMinutesinteger · int64 · null
minimum=0; maximum=525600
НетNull or omitted preserves the chat mute. Zero clears it; positive minutes mute new messages, edits and replies.
bannedboolean · nullНет
microphoneMutedboolean · 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Описание
nicknamestringДа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Описание
namestringДа
positioninteger · int32Да
accessUpdateCommunityAccessRequest / 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Описание
contentstringДа
encryptedEnvelopestring · null
maxLength=262144
НетLegacy encrypted-content field; managed writes omit it.
managedBodyobject · nullНетServer-readable structured content, validated by the owning message operation. Managed writers omit legacy encryptedEnvelope; transport encryption and server ACL still apply.
expectedContentRevisioninteger · 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Описание
microphoneEnabledbooleanДа
afkbooleanДа
cameraEnabledboolean · nullНет
expectedSessionIdinteger · int64 · null
minimum=1; maximum=9223372036854775807
Нет
participationIdstring · 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Описание
generationinteger · int32Да
kindMediaPublicationKindДа
sourceMediaPublicationSourceДа
statusMediaPublicationStatusДа
codecstring · nullНет
widthinteger · int32 · nullНет
heightinteger · int32 · nullНет
frameRateinteger · int32 · nullНет
bitrateKbpsinteger · int32 · nullНет
spatialLayersinteger · 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Описание
contentstringДа
clientMessageIdstring · nullНет
encryptedEnvelopestring · null
maxLength=262144
НетLegacy encrypted-content field; managed writes omit it.
managedBodyobject · nullНетServer-readable structured content, validated by the owning message operation. Managed writers omit legacy encryptedEnvelope; transport encryption and server ACL still apply.
expectedContentRevisioninteger · 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Описание
scopeTypeNotificationScopeTypeДа
scopeIdinteger · int64 · nullНет
modeNotificationModeНет
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Описание
quietHoursEnabledbooleanДа
quietStartMinutesinteger · int32
minimum=0; maximum=1439
Да
quietEndMinutesinteger · int32
minimum=0; maximum=1439
Да
quietTimezonestringДа
mentionsEnabledbooleanДа
repliesEnabledbooleanДа
threadsEnabledbooleanДа
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Описание
displayNamestring
minLength=3; maxLength=15; pattern=\S
Да
publicIdentifierstring · null
minLength=6; maxLength=15; pattern=^[a-z0-9][a-z0-9._-]{5,14}$
Нет
biostring · nullНет
preserveDisplayNamebooleanНет
Default: false
preserveBiobooleanНет
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Описание
contentstring · nullНет
scheduledAtstring · nullНет
silentboolean · nullНет
encryptedEnvelopestring · null
maxLength=262144
НетLegacy encrypted-content field; managed writes omit it.
clientMessageIdstring · nullНет
managedBodyobject · 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Описание
expectedEnvelopeSha256string
pattern=^[0-9a-f]{64}$
ДаCompare-and-set against the currently queued envelope. An exact accepted retry is returned before checking this hash.
replacementScheduleSecureMessageRequestДа
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Описание
expectedRevisioninteger · int64Да
audienceSocialAudienceНет
titlestring · nullНет
bodystringНет
slidesarray<SocialSlideRequest>Нет
metadataSocialPublicationMetadata / 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Описание
aliasstringДа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Описание
raisedbooleanДа
expectedSessionIdinteger · int64 · null
minimum=1; maximum=9223372036854775807
Нет
participationIdstring · 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Описание
roleVoiceParticipantRoleДа
expectedSessionIdinteger · int64 · null
minimum=1; maximum=9223372036854775807
Нет
participationIdstring · uuid · nullНет
targetParticipationIdstring · 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Описание
userIdinteger · int64
minimum=1
Да
privateAliasstring · null
maxLength=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Описание
identifierstringДа
userIdinteger · int64Да
publicIdentifierstringДа
isBotbooleanНет
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Описание
itemsarray<UserNameOverridesResponse>Да
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "items"
  ],
  "properties": {
    "items": {
      "type": "array",
      "maxItems": 100,
      "items": {
        "$ref": "#/components/schemas/UserNameOverridesResponse"
      }
    }
  }
}

UserNameOverridesResponse

ПолеТипБез defaultОписание
userIdinteger · int64
minimum=1
Да
privateAliasstring · null
maxLength=20
НетOmitted or null means no override; clear any cached value for this identity and scope.
communityNicknamestring · null
maxLength=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Описание
idinteger · int64
minimum=1
Да
publicIdentifierstring
minLength=1
Да
emailstring · emailДа
usernamestring
minLength=1
Да
displayNamestring
minLength=1
Да
biostring · nullНет
avatarUrlstring · uri · nullНет
emailVerifiedbooleanНетWhether the current account email has been confirmed by a one-time code.
Default: false
isBotbooleanНет
supportsPartialProfileUpdatebooleanНет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Описание
modeMediaQualityModeНет
widthinteger · int32 · nullНет
heightinteger · int32 · nullНет
frameRateinteger · int32 · nullНет
bitrateKbpsinteger · 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Описание
urlstring · uri
maxLength=2000
Да
widthinteger · int32
minimum=1
Да
heightinteger · int32
minimum=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Описание
ownerIdstring
maxLength=20; pattern=^-?[0-9]+$
Да
postIdstring
maxLength=20; pattern=^[0-9]+$
Да
canonicalUrlstring · uri
maxLength=2000
Да
authorNamestring
maxLength=300
Да
authorAvatarUrlstring · uri · null
maxLength=2000
Нет
publishedAtEpochSecondsinteger · int64 · null
minimum=1
Нет
textstring · null
maxLength=1200
Нет
imagesarray<VkPostImageV1>Нет
likeCountinteger · int32 · null
minimum=0
Нет
commentCountinteger · int32 · null
minimum=0
Нет
shareCountinteger · int32 · null
minimum=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Описание
userIdinteger · int64Да
attendanceIdstringДа
rootKeyThumbprintstring · nullНет
archiveKeyThumbprintstring · nullНет
contentProtocolstringНет
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Описание
scopeVoiceAdmissionScopeДа
participationIdstringДа
requestAcquireMediaLeaseRequestДа
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Описание
leaseMediaLeaseResponseДа
recipientVoiceAdmissionRecipient / 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Описание
channelIdinteger · int64Да
voiceSessionIdinteger · int64Да
incarnationstringДа
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Описание
stagestring: capture, inbound, playoutДа
flowAliasstring
pattern=^(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.
sampleTimestampMillisnumber · double
minimum=0; maximum=253402300799999
Да
energyDeltanumber · double · null
minimum=0; maximum=1000000000000000
Нет
durationSecondsDeltanumber · double · null
minimum=0; maximum=86400
Нет
audioLevelnumber · double · null
minimum=0; maximum=1
Нет
samplesDeltainteger · int64 · null
minimum=0; maximum=1000000000000000
Нет
interruptionEventsDeltainteger · int64 · null
minimum=0; maximum=1000000000000000
Нет
interruptedDurationSecondsDeltanumber · double · null
minimum=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Описание
channelIdsarray<integer · int64
minimum=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Описание
itemsarray<VoiceChannelSummaryResponse>Да
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/VoiceChannelSummaryResponse"
      },
      "maxItems": 100
    }
  },
  "required": [
    "items"
  ]
}

VoiceChannelSummaryResponse

ПолеТипБез defaultОписание
channelIdinteger · int64
minimum=1; maximum=9223372036854775807
Да
sessionVoiceSessionSummaryResponse / 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Описание
platformstring: desktop, android, webДа
appVersionstring
minLength=1; maxLength=64; pattern=^[A-Za-z0-9][A-Za-z0-9.+_-]{0,63}$
Да
sampleTimestampMillisinteger · int64
minimum=0; maximum=253402300799999
Да
protocolVersioninteger · int32
minimum=1; maximum=1
Нет
Default: 1
roomEpochinteger · int64 · null
minimum=0; maximum=1000000000000000
Нет
samplingEpochinteger · int64 · null
minimum=0; maximum=1000000000000000
Нет
packetsSentinteger · int64 · null
minimum=0; maximum=1000000000000000
Нет
audioLevelnumber · double · null
minimum=0; maximum=1
Нет
jitterBufferDelayMsnumber · double · null
minimum=0; maximum=60000
Нет
qualityIntervalMillisnumber · double · null
minimum=0; maximum=60000
НетConsecutive receive sample interval in milliseconds. When supplied, must be strictly positive. Required when an interval quality metric is supplied.
jitterBufferDelayMsIntervalnumber · double · null
minimum=0; maximum=60000
НетMean jitter buffer delay during this interval, not end-to-end latency.
concealedSampleRatioIntervalnumber · double · null
minimum=0; maximum=1
НетConcealed audio samples divided by total received audio samples during this interval.
concealmentEventsPerSecondIntervalnumber · double · null
minimum=0; maximum=1000000
НетConcealment events per second during this receive interval.
concealedSamplesinteger · int64 · null
minimum=0; maximum=1000000000000000
Нет
concealmentEventsinteger · int64 · null
minimum=0; maximum=1000000000000000
Нет
microphoneRequestedboolean · nullНет
microphoneCommandEnabledboolean · nullНет
afkboolean · nullНет
outputEnabledboolean · nullНет
captureActiveboolean · nullНет
publicationMutedboolean · nullНет
audioProcessingStatusstring · null: applied, rejected, unsupported, inactive, NoneНет
audioPipelinearray<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Описание
sessionTypeVoiceSessionTypeДа
sessionIdinteger · int64Да
eventstring: CONNECTED, DISCONNECTED, FAILED, STATSДа
mediaKindstring · nullНет
directionstring · nullНет
localCandidateTypestring · nullНет
remoteCandidateTypestring · nullНет
protocolstring · nullНет
relayProtocolstring · nullНет
roundTripTimeMsnumber · double · nullНет
jitterMsnumber · double · nullНет
packetsLostinteger · int64 · nullНет
packetsReceivedinteger · int64 · nullНет
packetLossPercentnumber · double · nullНет
availableOutgoingBitrateKbpsnumber · double · nullНет
qualityLevelstring · null: EXCELLENT, GOOD, POOR, SEVERE, NoneНет
adaptationReasonstring · null: NONE, NETWORK, PACKET_LOSS, JITTER, LATENCY, BANDWIDTH, CONNECTION, DEVICE, NoneНет
audioTargetBitrateKbpsinteger · int32 · nullНет
videoTargetBitrateKbpsinteger · int32 · nullНет
maxVideoFrameRateinteger · int32 · nullНет
videoPreviewsEnabledboolean · nullНет
videoPublishingEnabledboolean · nullНет
videoSubscriptionsEnabledboolean · nullНет
sampleCountinteger · int32 · nullНет
flowIdstring · nullНет
framesPerSecondnumber · double · nullНет
framesEncodedinteger · int64 · nullНет
framesSentinteger · int64 · nullНет
framesReceivedinteger · int64 · nullНет
framesDecodedinteger · int64 · nullНет
framesDroppedinteger · int64 · nullНет
keyFramesinteger · int64 · nullНет
freezeCountinteger · int64 · nullНет
totalFreezeDurationMsnumber · double · nullНет
bytesTransferredinteger · int64 · nullНет
retransmittedPacketsinteger · int64 · nullНет
nackCountinteger · int64 · nullНет
pliCountinteger · int64 · nullНет
firCountinteger · int64 · nullНет
frameWidthinteger · int32 · nullНет
frameHeightinteger · int32 · nullНет
targetBitrateKbpsnumber · double · nullНет
codecImplementationstring · nullНет
detailsVoiceDiagnosticDetails / 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Описание
idinteger · int64
minimum=1; maximum=9223372036854775807
Да
activebooleanДа
currentParticipantVoiceOwnParticipantResponseДа
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Описание
idinteger · int64
minimum=1; maximum=9223372036854775807
Да
channelIdinteger · int64
minimum=1; maximum=9223372036854775807
Да
activebooleanДа
speakerModeEnabledbooleanДа
currentParticipantVoiceOwnParticipantResponseДа
currentUserJoinedbooleanДа
currentDeviceJoinedbooleanДа
joinedOnAnotherDevicebooleanДа
currentUserCanModerateStagebooleanДа
currentUserCanBroadcastVideobooleanДа
summaryRevisioninteger · int64
minimum=1; maximum=9223372036854775807
Да
rosterRevisioninteger · int64
minimum=1; maximum=9223372036854775807
Да
roomKindVoiceRoomKindНет
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Описание
userIdinteger · int64
minimum=1; maximum=9223372036854775807
Да
userIdentifierstringДа
displayNamestringДа
avatarUrlstring · nullНет
isBotbooleanНет
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Описание
iceServersarray<VoiceIceServerResponse>Да
expiresAtstring · nullНет
ownershipProtocolVersioninteger · int32НетAdvertised ownership capability; when absent, ownership commands are unsupported.
livenessProtocolVersioninteger · int32НетAdvertised liveness capability; when absent, direct heartbeat is unsupported.
directHeartbeatIntervalMillisinteger · int64
minimum=5000; maximum=60000
Нет
directReconnectGraceMillisinteger · int64
minimum=60000; maximum=900000
Нет
streamOwnershipProtocolVersioninteger · int32НетMust be checked before first stream Start. Missing capability means stream ownership commands are unsupported.
diagnosticsDetailedEnabledbooleanНетManual server policy for detailed media diagnostics; absent means disabled. No automatic expiry. Disabled servers discard detailed observations immediately.
Default: false
streamStartOperationProtocolVersioninteger · 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Описание
urlsarray<string>Да
usernamestring · nullНет
credentialstring · 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Описание
userIdinteger · int64
minimum=1; maximum=9223372036854775807
Да
channelIdinteger · int64
minimum=1; maximum=9223372036854775807
Да
sessionIdinteger · int64
minimum=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Описание
userIdsarray<integer · int64
minimum=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Описание
itemsarray<VoiceMemberLocationResponse>Да
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/VoiceMemberLocationResponse"
      },
      "maxItems": 100
    }
  },
  "required": [
    "items"
  ]
}

VoiceMicrophoneAdmissionResponse

ПолеТипБез defaultОписание
leaseIdinteger · int64Да
generationinteger · int32Да
participationIdstring · uuidДа
stateVoiceMicrophoneAdmissionStateДа
revisioninteger · int64
minimum=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Описание
userIdinteger · int64
minimum=1; maximum=9223372036854775807
Да
joinedAtstring · date-timeДа
mutedbooleanДа
deafenedbooleanДа
stageRoleVoiceParticipantRoleДа
handRaisedbooleanДа
cameraEnabledbooleanДа
revisioninteger · int64
minimum=1; maximum=9223372036854775807
Да
participationIdstring · uuidДа
microphoneBlockedbooleanНетIndependent server microphone restriction; muted remains the participant personal or AFK intent.
Default: false
microphoneBlockedRevisioninteger · int64
minimum=0
НетDurable community microphone policy revision, ordered separately from participant and roster revisions; 0 means legacy or direct-call policy.
Default: 0
stageVoiceStageResponse / 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Описание
sessionIdinteger · int64
minimum=1; maximum=9223372036854775807
Да
rosterRevisioninteger · int64
minimum=1; maximum=9223372036854775807
Да
itemsarray<VoiceSessionParticipantResponse>Да
nextCursorstring · null
minLength=1; maxLength=512
НетOpaque continuation token. Do not parse or construct it on the client.
hasMorebooleanНет
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Описание
userIdinteger · int64Да
deviceIdstringДа
participationIdstringДа
leaseIdinteger · int64Да
leaseGenerationinteger · int32Да
providerParticipantIdentitystringДа
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Описание
versioninteger · int32Нет
Default: 2
purposestringНет
Default: "voice-publisher-key"
sessionIdinteger · int64Да
publisherVoicePublisherBindingДа
keyGenerationinteger · int64
minimum=1
Да
previousKeyGenerationinteger · int64
minimum=0
Да
keyIndexinteger · int32: 0Да
transitionVoicePublisherKeyTransitionДа
rosterDigeststringДа
ciphertextstringДа
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Описание
publisherVoicePublisherBindingДа
keyGenerationinteger · int64
minimum=1
Да
previousKeyGenerationinteger · int64
minimum=0
Да
keyIndexinteger · int32: 0Да
transitionVoicePublisherKeyTransitionДа
rosterDigeststringДа
envelopestringДа
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Описание
publisherVoicePublisherBindingДа
identityE2eeIdentityResponseДа
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Описание
sessionIdinteger · int64Да
leaseIdinteger · int64Да
generationinteger · 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Описание
protocolVersioninteger · int32Нет
Default: 2
sessionIdinteger · int64Да
receiverLeaseIdinteger · int64Да
receiverGenerationinteger · int32Да
rosterDigeststringДа
membersarray<VoicePublisherKeyMember>Да
publishersarray<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Описание
ownershipProtocolVersioninteger · int32 · nullНетRequired value 1 for commands; omission is rejected with 426.
expectedSessionIdinteger · int64 · null
minimum=1; maximum=9223372036854775807
Нет
participationIdstring · uuid · nullНет
livenessProtocolVersioninteger · 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Описание
userIdinteger · int64
minimum=1; maximum=9223372036854775807
Да
userIdentifierstringДа
displayNamestringДа
joinedAtstring · date-timeДа
mutedbooleanДа
deafenedbooleanДа
stageRoleVoiceParticipantRoleНет
handRaisedbooleanНет
cameraEnabledbooleanНет
participationIdstring · uuidДа
cameraPublishedboolean · nullНетActive camera publication in a paged roster; omitted or null means unknown.
screenSharePublishedboolean · nullНетActive screen-share video publication in a paged roster; omitted or null means unknown.
microphoneBlockedbooleanНетIndependent server microphone restriction; muted remains the participant personal or AFK intent.
Default: false
microphoneBlockedRevisioninteger · int64
minimum=0
НетDurable community microphone policy revision, ordered separately from participant and roster revisions; 0 means legacy or direct-call policy.
Default: 0
isBotbooleanНет
stageVoiceStageResponse / nullНетSPEAKER room state only; absent/null for VOICE and direct calls. No stage authority exists in VOICE.
revisioninteger · int64
minimum=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Описание
idinteger · int64
minimum=1; maximum=9223372036854775807
Да
sessionTypeVoiceSessionTypeДа
directConversationIdinteger · int64 · null
minimum=1; maximum=9223372036854775807
Нет
channelIdinteger · int64 · null
minimum=1; maximum=9223372036854775807
Нет
createdByinteger · int64
minimum=1; maximum=9223372036854775807
Да
maxParticipantsinteger · int32Да
activebooleanДа
participantsCountinteger · int32
minimum=0
Да
canAcceptMoreParticipantsbooleanДа
createdAtstring · date-timeДа
endedAtstring · date-time · nullНет
participantsarray<VoiceSessionParticipantResponse>Да
directCallStateDirectCallState / nullНет
incomingbooleanНет
currentUserJoinedbooleanНет
currentDeviceJoinedbooleanНет
joinedOnAnotherDevicebooleanНет
ringingExpiresAtstring · date-time · nullНет
hadVideobooleanНет
currentUserCanModerateStagebooleanНет
currentUserCanBroadcastVideobooleanНет
speakerModeEnabledbooleanНет
videoParticipantCountinteger · int32 · null
minimum=0
Нет
summaryRevisioninteger · int64
minimum=0; maximum=9223372036854775807
Нет
rosterRevisioninteger · int64
minimum=0; maximum=9223372036854775807
Нет
roomKindVoiceRoomKind / 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Описание
idinteger · int64
minimum=1; maximum=9223372036854775807
Да
createdByinteger · int64
minimum=1; maximum=9223372036854775807
Да
maxParticipantsinteger · int32Да
activebooleanДа
createdAtstring · date-timeДа
participantsCountinteger · int32
minimum=0
Да
canAcceptMoreParticipantsbooleanДа
videoParticipantCountinteger · int32
minimum=0
Да
hostVoiceHostPreviewResponse / nullНет
speakerModeEnabledbooleanДа
currentParticipantVoiceOwnParticipantResponse / nullНет
currentUserJoinedbooleanДа
currentDeviceJoinedbooleanДа
joinedOnAnotherDevicebooleanДа
currentUserCanModerateStagebooleanДа
currentUserCanBroadcastVideobooleanДа
summaryRevisioninteger · int64
minimum=1; maximum=9223372036854775807
Да
rosterRevisioninteger · int64
minimum=1; maximum=9223372036854775807
Да
roomKindVoiceRoomKindНет
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Описание
roleVoiceParticipantRoleДа
handRaisedbooleanДа
JSON Schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "role": {
      "$ref": "#/components/schemas/VoiceParticipantRole"
    },
    "handRaised": {
      "type": "boolean"
    }
  },
  "required": [
    "role",
    "handRaised"
  ]
}