{
    "openapi": "3.1.2",
    "info": {
        "title": "LiteWMS Chat API",
        "version": "1.0.0",
        "description": "\u0427\u0430\u0442 \u0434\u043b\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430: \u0434\u0438\u0430\u043b\u043e\u0433\u0438, \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u044b\u0435 \u0438 \u0444\u0430\u0439\u043b\u044b, \u043d\u0435\u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043d\u043e\u0435, \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0438 push. \u041e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 API\n\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0432\u0435\u0431-\u043a\u043b\u0438\u0435\u043d\u0442 (`\/embed`, `\/app`) \u0438 \u0431\u0443\u0434\u0443\u0449\u0435\u0435 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.\n\n## \u041a\u0430\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0430\u0439\u0442\n\n1. \u0410\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u0447\u0430\u0442\u0430 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435: `php artisan chat:app \"\u041b\u041a litewms\" --origin=https:\/\/test.litewms.ru`.\n   \u0412 \u043e\u0442\u0432\u0435\u0442\u0435 \u0442\u0440\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f: \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 `app key`, `secret` (\u043f\u043e\u0434\u043f\u0438\u0441\u044c \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u0432\u0445\u043e\u0434\u0430) \u0438 `server token` (\u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0439 API).\n   `secret` \u0438 `server token` \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f **\u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0431\u044d\u043a\u0435\u043d\u0434\u0435** \u0441\u0430\u0439\u0442\u0430.\n2. \u0411\u044d\u043a\u0435\u043d\u0434 \u0441\u0430\u0439\u0442\u0430 \u0434\u043b\u044f \u0443\u0436\u0435 \u0432\u043e\u0448\u0435\u0434\u0448\u0435\u0433\u043e \u0443 \u0441\u0435\u0431\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432\u044b\u0434\u0430\u0451\u0442 **handoff-\u0442\u043e\u043a\u0435\u043d** \u2014 JWT HS256, \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 `secret`:\n\n| claim | \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 |\n|---|---|\n| `iss` | \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 `app key` |\n| `sub` | id \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u0432\u0430\u0448\u0435\u043c \u0441\u0430\u0439\u0442\u0435 |\n| `exp` | \u043d\u0435 \u043f\u043e\u0437\u0436\u0435 \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 10 \u043c\u0438\u043d\u0443\u0442 \u043e\u0442 `iat` |\n| `jti` | \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430: \u0442\u043e\u043a\u0435\u043d \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0440\u0430\u0437 |\n| `name`, `email`, `avatar`, `role` | \u043f\u0440\u043e\u0444\u0438\u043b\u044c (\u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e); `role` \u2014 \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u0432\u0440\u043e\u0434\u0435 \u00ab\u041f\u0440\u043e\u0434\u0430\u0432\u0435\u0446\u00bb |\n| `operator` | `true` \u2014 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0432\u0438\u0434\u0438\u0442 \u0432\u0441\u0435 \u0434\u0438\u0430\u043b\u043e\u0433\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f |\n\n3. \u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043e\u0442\u0434\u0430\u0451\u0442 \u0442\u043e\u043a\u0435\u043d \u0447\u0430\u0442\u0443: \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 `embed.js` \u0441\u0430\u043c \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442 \u0435\u0433\u043e \u0443 \u0432\u0430\u0448\u0435\u0433\u043e \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u0430 (`token-url`), \u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0435\n   \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u0435\u0433\u043e \u0432 `POST \/auth\/exchange` \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 Bearer-\u0442\u043e\u043a\u0435\u043d.\n\n```php\n\/\/ PHP (Laravel): \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442 \u0441\u0430\u0439\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 embed.js\n$now = time();\nreturn response()->json(['token' => \\Firebase\\JWT\\JWT::encode([\n    'iss' => config('chat.app_key'), 'sub' => (string) $user->id, 'iat' => $now, 'exp' => $now + 120,\n    'jti' => (string) \\Illuminate\\Support\\Str::uuid(), 'name' => $user->name, 'role' => '\u041f\u0440\u043e\u0434\u0430\u0432\u0435\u0446',\n], config('chat.app_secret'), 'HS256')]);\n```\n\n## \u0414\u0438\u0430\u043b\u043e\u0433\u0438 \u0438 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\n\n\u0414\u0438\u0430\u043b\u043e\u0433 \u0431\u044b\u0432\u0430\u0435\u0442 `support` (\u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430\u043c), `direct` (\u0434\u0432\u043e\u0435) \u0438 `group`. \u041a \u0434\u0438\u0430\u043b\u043e\u0433\u0443 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c **\u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442** \u2014\n\u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044c \u0432\u0430\u0448\u0435\u0433\u043e \u0441\u0430\u0439\u0442\u0430 (`context.type` + `context.id`, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 `request` \/ `123`): \u0442\u0430\u043a \u043a\u043d\u043e\u043f\u043a\u0430 \u00ab\u0427\u0430\u0442\u00bb \u0432 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0435 \u0437\u0430\u044f\u0432\u043a\u0438\n\u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u043a\u0443 \u043f\u043e \u044d\u0442\u043e\u0439 \u0437\u0430\u044f\u0432\u043a\u0435. \u041a\u0442\u043e \u0441 \u043a\u0435\u043c \u043c\u043e\u0436\u0435\u0442 \u043e\u0431\u0449\u0430\u0442\u044c\u0441\u044f, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0431\u044d\u043a\u0435\u043d\u0434 \u0441\u0430\u0439\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0439 API.\n\n## \u0413\u043e\u0441\u0442\u0438\n\n\u0412\u0445\u043e\u0434 \u0431\u0435\u0437 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 (`POST \/auth\/guest`) \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e **\u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d**: \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 `403 \u00ab\u0413\u043e\u0441\u0442\u0435\u0432\u043e\u0439 \u0440\u0435\u0436\u0438\u043c \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d.\u00bb`, \u0430 \u0444\u043e\u0440\u043c\u0430 \u00ab\u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430\u043c\u00bb \u043d\u0430 `\/app` \u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f. \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0444\u043b\u0430\u0433\u043e\u043c `--guests` \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 `chat:setting guests on` \u0434\u043b\u044f \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e. \u041e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u0433\u043e\u0441\u0442\u044f \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u0432 \u0434\u0438\u0430\u043b\u043e\u0433 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043a\u043e \u0432\u0441\u0435\u043c \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f (`operator: true` \u0432 \u0442\u043e\u043a\u0435\u043d\u0435 \u0432\u0445\u043e\u0434\u0430 \u0438\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 `chat:operator`); \u0435\u0441\u043b\u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432 \u0435\u0449\u0451 \u043d\u0435\u0442, \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 \u0411\u0414, \u0430 \u043d\u043e\u0432\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0445\u043e\u0434\u0438\u0442 \u0432\u043e \u0432\u0441\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0435 \u0434\u0438\u0430\u043b\u043e\u0433\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 (\u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u043d\u043e\u0435 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u043c).\n\n## \u0420\u0435\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f\n\nWebSocket-\u0441\u0435\u0440\u0432\u0435\u0440 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c \u0441 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u043c Pusher (Laravel Reverb). \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u043a\u0430\u043d\u0430\u043b\u043e\u0432: `POST \/api\/v1\/broadcasting\/auth`\n\u0441 \u0442\u0435\u043c \u0436\u0435 Bearer-\u0442\u043e\u043a\u0435\u043d\u043e\u043c. \u0414\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u043e\u0433\u043e \u043a\u0430\u043d\u0430\u043b\u0430 `private-participant.{id}` \u2014 \u043f\u043e \u043d\u0435\u043c\u0443 \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u044f:\n\n| \u0441\u043e\u0431\u044b\u0442\u0438\u0435 | \u043a\u043e\u0433\u0434\u0430 |\n|---|---|\n| `message.created`, `message.updated` | \u043d\u043e\u0432\u043e\u0435 \/ \u0438\u0437\u043c\u0435\u043d\u0451\u043d\u043d\u043e\u0435 \/ \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u0432 payload \u2014 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0438 \u0434\u0438\u0430\u043b\u043e\u0433 \u0441 \u0432\u0430\u0448\u0438\u043c `unread_count` |\n| `message.read` | \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043d\u0438\u043a \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b \u0434\u0438\u0430\u043b\u043e\u0433 (`last_read_message_id`) |\n| `conversation.updated` | \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u0434\u0438\u0430\u043b\u043e\u0433 \u0438\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0441\u044f \u0441\u0447\u0451\u0442\u0447\u0438\u043a \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u043c \u0432\u0430\u0448\u0435\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 |\n| `conversation.removed` | \u0432\u0430\u0441 \u0443\u0431\u0440\u0430\u043b\u0438 \u0438\u0437 \u0434\u0438\u0430\u043b\u043e\u0433\u0430 |\n\nPresence-\u043a\u0430\u043d\u0430\u043b `presence-conversation.{id}` \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u043a\u0442\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u043c \u0434\u0438\u0430\u043b\u043e\u0433\u0435, \u0438 \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 `typing`.\n\n## \u041e\u0448\u0438\u0431\u043a\u0438\n\n`401` \u2014 \u043d\u0435\u0442\/\u043f\u0440\u043e\u0441\u0440\u043e\u0447\u0435\u043d \u0442\u043e\u043a\u0435\u043d; `403` \u2014 \u043d\u0435\u0442 \u043f\u0440\u0430\u0432; `404` \u2014 \u0434\u0438\u0430\u043b\u043e\u0433\u0430 \u043d\u0435\u0442 **\u0438\u043b\u0438 \u043e\u043d \u0432\u0430\u043c \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d**; `422` \u2014 \u043e\u0448\u0438\u0431\u043a\u0430 \u0432 \u0434\u0430\u043d\u043d\u044b\u0445\n(\u0442\u0435\u043b\u043e: `message`, `errors`); `429` \u2014 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0447\u0430\u0441\u0442\u043e.\n"
    },
    "servers": [
        {
            "url": "https:\/\/chat.litewms.ru\/api\/v1"
        }
    ],
    "paths": {
        "\/auth\/exchange": {
            "post": {
                "operationId": "v1.auth.exchange",
                "description": "\u0411\u044d\u043a\u0435\u043d\u0434 \u0441\u0430\u0439\u0442\u0430-\u0445\u043e\u0437\u044f\u0438\u043d\u0430 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u041b\u041a) \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 JWT (HS256, \u0441\u0435\u043a\u0440\u0435\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f) \u0434\u043b\u044f \u0443\u0436\u0435 \u0432\u043e\u0448\u0435\u0434\u0448\u0435\u0433\u043e \u0443 \u0441\u0435\u0431\u044f\n\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f: `iss` \u2014 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, `sub` \u2014 id \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0443 \u0445\u043e\u0437\u044f\u0438\u043d\u0430, `exp` \u2014 \u043d\u0435 \u043f\u043e\u0437\u0436\u0435\n\u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 10 \u043c\u0438\u043d\u0443\u0442, `jti` \u2014 \u043e\u0434\u043d\u043e\u0440\u0430\u0437\u043e\u0432\u044b\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440; \u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e `name`, `email`, `avatar`, `role`,\n`operator` (true \u2014 \u0432\u0438\u0434\u0438\u0442 \u0432\u0441\u0435 \u0434\u0438\u0430\u043b\u043e\u0433\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438), `meta`. \u0422\u043e\u043a\u0435\u043d \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0440\u0430\u0437.",
                "summary": "\u041e\u0431\u043c\u0435\u043d handoff-\u0442\u043e\u043a\u0435\u043d\u0430 \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 Bearer-\u0442\u043e\u043a\u0435\u043d",
                "tags": [
                    "\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "token": {
                                        "type": "string",
                                        "maxLength": 4096
                                    }
                                },
                                "required": [
                                    "token"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {}
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "\u0414\u043e\u0441\u0442\u0443\u043f \u0437\u0430\u043a\u0440\u044b\u0442."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    }
                },
                "security": []
            }
        },
        "\/auth\/guest": {
            "post": {
                "operationId": "v1.auth.guest",
                "description": "\u0421\u043e\u0437\u0434\u0430\u0451\u0442 \u0433\u043e\u0441\u0442\u044f \u0438 \u0435\u0433\u043e \u0434\u0438\u0430\u043b\u043e\u0433 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438. \u0412 \u043e\u0442\u0432\u0435\u0442\u0435 \u2014 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0442\u043e\u043a\u0435\u043d \u0438 \u043b\u0438\u0447\u043d\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430-\u0441\u0435\u043a\u0440\u0435\u0442 `link_secret`:\n\u043f\u043e \u043d\u0435\u0439 \u0433\u043e\u0441\u0442\u044c \u0432\u0435\u0440\u043d\u0451\u0442\u0441\u044f \u0432 \u0442\u043e\u0442 \u0436\u0435 \u0434\u0438\u0430\u043b\u043e\u0433 (\u0441\u043c. \u00ab\u0412\u0445\u043e\u0434 \u043f\u043e \u043b\u0438\u0447\u043d\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0435\u00bb).",
                "summary": "\u0410\u043d\u043e\u043d\u0438\u043c\u043d\u044b\u0439 \u0433\u043e\u0441\u0442\u044c (\u0435\u0441\u043b\u0438 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043e \u0434\u043b\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f)",
                "tags": [
                    "\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "app_key": {
                                        "type": "string",
                                        "maxLength": 64
                                    },
                                    "name": {
                                        "type": "string",
                                        "maxLength": 120
                                    },
                                    "email": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "email",
                                        "maxLength": 190
                                    }
                                },
                                "required": [
                                    "app_key",
                                    "name"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {}
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "\u0413\u043e\u0441\u0442\u0435\u0432\u043e\u0439 \u0440\u0435\u0436\u0438\u043c \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "404": {
                        "$ref": "#\/components\/responses\/ModelNotFoundException"
                    }
                },
                "security": []
            }
        },
        "\/auth\/link": {
            "post": {
                "operationId": "v1.auth.link",
                "description": "\u0413\u043e\u0441\u0442\u044c \u0438\u043b\u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 `chat:operator`, \u043e\u0431\u043c\u0435\u043d\u0438\u0432\u0430\u0435\u0442 \u0441\u0435\u043a\u0440\u0435\u0442 \u0438\u0437 \u0441\u0432\u043e\u0435\u0439 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0442\u043e\u043a\u0435\u043d.",
                "summary": "\u0412\u0445\u043e\u0434 \u043f\u043e \u043b\u0438\u0447\u043d\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0435",
                "tags": [
                    "\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "secret": {
                                        "type": "string",
                                        "maxLength": 128
                                    }
                                },
                                "required": [
                                    "secret"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {}
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "An error",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0435\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u0430."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    }
                },
                "security": []
            }
        },
        "\/me": {
            "get": {
                "operationId": "v1.me",
                "summary": "\u041a\u0442\u043e \u044f",
                "tags": [
                    "\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "participant": {
                                                    "type": "array",
                                                    "items": {}
                                                },
                                                "app": {
                                                    "type": "object",
                                                    "properties": {
                                                        "key": {
                                                            "type": "string"
                                                        },
                                                        "name": {
                                                            "type": "string"
                                                        },
                                                        "title": {},
                                                        "accent": {
                                                            "type": "string"
                                                        },
                                                        "support_enabled": {
                                                            "type": "boolean"
                                                        },
                                                        "user_conversations": {
                                                            "type": "boolean"
                                                        },
                                                        "directory": {
                                                            "type": "boolean"
                                                        }
                                                    },
                                                    "required": [
                                                        "key",
                                                        "name",
                                                        "title",
                                                        "accent",
                                                        "support_enabled",
                                                        "user_conversations",
                                                        "directory"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "participant",
                                                "app"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                },
                "security": [
                    {
                        "participant": []
                    }
                ]
            }
        },
        "\/auth\/logout": {
            "post": {
                "operationId": "v1.auth.logout",
                "summary": "\u0412\u044b\u0445\u043e\u0434: \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0442\u043e\u043a\u0435\u043d \u043e\u0442\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f",
                "tags": [
                    "\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "ok"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                },
                "security": [
                    {
                        "participant": []
                    }
                ]
            }
        },
        "\/conversations": {
            "get": {
                "operationId": "v1.conversations.index",
                "description": "\u0421\u0430\u043c\u044b\u0435 \u0441\u0432\u0435\u0436\u0438\u0435 \u0441\u0432\u0435\u0440\u0445\u0443, \u0441 \u0447\u0438\u0441\u043b\u043e\u043c \u043d\u0435\u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u0445. \u0424\u0438\u043b\u044c\u0442\u0440 \u043f\u043e \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0443 (`context_type` + `context_id`) \u043e\u0442\u0434\u0430\u0451\u0442\n\u0434\u0438\u0430\u043b\u043e\u0433\u0438, \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u043a \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438 \u0441\u0430\u0439\u0442\u0430 \u2014 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043a \u0437\u0430\u044f\u0432\u043a\u0435. \u041f\u043e\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u043e\u0441\u0442\u044c: `page`, `per_page` (\u0434\u043e 100).",
                "summary": "\u0421\u043f\u0438\u0441\u043e\u043a \u043c\u043e\u0438\u0445 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432",
                "tags": [
                    "\u0414\u0438\u0430\u043b\u043e\u0433\u0438"
                ],
                "parameters": [
                    {
                        "name": "type",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "enum": [
                                "direct",
                                "group",
                                "support",
                                null
                            ]
                        }
                    },
                    {
                        "name": "context_type",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 64
                        }
                    },
                    {
                        "name": "context_id",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 191
                        }
                    },
                    {
                        "name": "unread",
                        "in": "query",
                        "schema": {
                            "type": [
                                "boolean",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "q",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `ConversationResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#\/components\/schemas\/ConversationResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                },
                "security": [
                    {
                        "participant": []
                    }
                ]
            },
            "post": {
                "operationId": "v1.conversations.store",
                "description": "- `support` \u2014 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u0432 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 (\u043e\u0434\u043d\u043e \u043d\u0430 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442; \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 \u0432\u0435\u0440\u043d\u0451\u0442 \u0443\u0436\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0435, \u043a\u043e\u0434 200);\n- `direct` \u2014 \u043b\u0438\u0447\u043d\u044b\u0439 \u0434\u0438\u0430\u043b\u043e\u0433 \u0441 `participant_id`;\n- `group` \u2014 \u0433\u0440\u0443\u043f\u043f\u0430: `title` \u0438 `participant_ids`.\n\n`direct` \u0438 `group` \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b, \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0441\u0430\u0439\u0442-\u0445\u043e\u0437\u044f\u0438\u043d \u0432\u043a\u043b\u044e\u0447\u0438\u043b `user_conversations`;\n\u0438\u043d\u0430\u0447\u0435 \u0438\u0445 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0435\u0433\u043e \u0431\u044d\u043a\u0435\u043d\u0434 \u0447\u0435\u0440\u0435\u0437 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0439 API.",
                "summary": "\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0434\u0438\u0430\u043b\u043e\u0433",
                "tags": [
                    "\u0414\u0438\u0430\u043b\u043e\u0433\u0438"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "type": {
                                        "type": "string",
                                        "enum": [
                                            "direct",
                                            "group",
                                            "support"
                                        ]
                                    },
                                    "participant_id": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ]
                                    },
                                    "participant_ids": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "items": {
                                            "type": "integer"
                                        },
                                        "minItems": 1,
                                        "maxItems": 200
                                    },
                                    "title": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "maxLength": 190
                                    },
                                    "context": {
                                        "type": [
                                            "object",
                                            "null"
                                        ],
                                        "properties": {
                                            "type": {
                                                "type": "string",
                                                "maxLength": 64
                                            },
                                            "id": {
                                                "type": "string",
                                                "maxLength": 191
                                            },
                                            "title": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ],
                                                "maxLength": 255
                                            },
                                            "url": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ],
                                                "format": "uri",
                                                "maxLength": 500
                                            }
                                        }
                                    }
                                },
                                "required": [
                                    "type"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error\n\nAn error",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "anyOf": [
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "description": "Error overview.",
                                                    "examples": [
                                                        "\u041e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u0432 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u044b."
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "message"
                                            ]
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string",
                                                    "description": "Error overview.",
                                                    "examples": [
                                                        "\u0421\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0434\u0438\u0430\u043b\u043e\u0433\u0438 \u043c\u043e\u0436\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0430\u0439\u0442-\u0445\u043e\u0437\u044f\u0438\u043d."
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "message"
                                            ]
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                },
                "security": [
                    {
                        "participant": []
                    }
                ]
            }
        },
        "\/conversations\/{conversation}": {
            "get": {
                "operationId": "v1.conversations.show",
                "summary": "\u041e\u0434\u0438\u043d \u0434\u0438\u0430\u043b\u043e\u0433",
                "tags": [
                    "\u0414\u0438\u0430\u043b\u043e\u0433\u0438"
                ],
                "parameters": [
                    {
                        "name": "conversation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`ConversationResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#\/components\/schemas\/ConversationResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                },
                "security": [
                    {
                        "participant": []
                    }
                ]
            },
            "patch": {
                "operationId": "v1.conversations.update",
                "description": "`muted_until` \u2014 \u0434\u043e \u043a\u0430\u043a\u043e\u0433\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043d\u0435 \u043f\u0440\u0438\u0441\u044b\u043b\u0430\u0442\u044c push (null \u2014 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0442\u043d\u043e).",
                "summary": "\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0434\u0438\u0430\u043b\u043e\u0433: \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0433\u0440\u0443\u043f\u043f\u044b, \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f",
                "tags": [
                    "\u0414\u0438\u0430\u043b\u043e\u0433\u0438"
                ],
                "parameters": [
                    {
                        "name": "conversation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "title": {
                                        "type": "string",
                                        "maxLength": 190
                                    },
                                    "muted_until": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date-time"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`ConversationResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#\/components\/schemas\/ConversationResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u043c\u0435\u043d\u044f\u0442\u044c \u0432\u043b\u0430\u0434\u0435\u043b\u0435\u0446 \u0433\u0440\u0443\u043f\u043f\u044b."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                },
                "security": [
                    {
                        "participant": []
                    }
                ]
            }
        },
        "\/conversations\/{conversation}\/members": {
            "post": {
                "operationId": "v1.conversations.members.store",
                "description": "\u0422\u043e\u043b\u044c\u043a\u043e \u0432\u043b\u0430\u0434\u0435\u043b\u0435\u0446 \u0433\u0440\u0443\u043f\u043f\u044b \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0441\u0430\u0439\u0442-\u0445\u043e\u0437\u044f\u0438\u043d \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043b `user_conversations`.",
                "summary": "\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432 \u0432 \u0433\u0440\u0443\u043f\u043f\u0443",
                "tags": [
                    "\u0414\u0438\u0430\u043b\u043e\u0433\u0438"
                ],
                "parameters": [
                    {
                        "name": "conversation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "participant_ids": {
                                        "type": "array",
                                        "items": {
                                            "type": "integer"
                                        },
                                        "minItems": 1,
                                        "maxItems": 200
                                    }
                                },
                                "required": [
                                    "participant_ids"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`ConversationResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#\/components\/schemas\/ConversationResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "\u041d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u0430\u0432."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                },
                "security": [
                    {
                        "participant": []
                    }
                ]
            }
        },
        "\/conversations\/{conversation}\/members\/{participant}": {
            "delete": {
                "operationId": "v1.conversations.members.destroy",
                "description": "\u0421\u0432\u043e\u0439 id \u2014 \u0432\u044b\u0445\u043e\u0434 \u0438\u0437 \u0433\u0440\u0443\u043f\u043f\u044b; \u0447\u0443\u0436\u043e\u0439 \u2014 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043b\u0430\u0434\u0435\u043b\u0435\u0446.",
                "summary": "\u0423\u0431\u0440\u0430\u0442\u044c \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430 \u0438\u0437 \u0433\u0440\u0443\u043f\u043f\u044b \u0438\u043b\u0438 \u0432\u044b\u0439\u0442\u0438 \u0441\u0430\u043c\u043e\u043c\u0443",
                "tags": [
                    "\u0414\u0438\u0430\u043b\u043e\u0433\u0438"
                ],
                "parameters": [
                    {
                        "name": "conversation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "participant",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "ok"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "An error",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "\u0412\u044b\u0439\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u0433\u0440\u0443\u043f\u043f\u044b."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "\u041d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u0430\u0432."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                },
                "security": [
                    {
                        "participant": []
                    }
                ]
            }
        },
        "\/unread": {
            "get": {
                "operationId": "v1.unread",
                "description": "\u0414\u043b\u044f \u0431\u0435\u0439\u0434\u0436\u0430 \u00ab\u0427\u0430\u0442 (3)\u00bb \u0432 \u043c\u0435\u043d\u044e \u0441\u0430\u0439\u0442\u0430: `total` \u2014 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439, `conversations` \u2014 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432 \u0441 \u043d\u0435\u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u043c.",
                "summary": "\u0421\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043d\u043e\u0433\u043e",
                "tags": [
                    "\u041f\u0440\u043e\u0447\u0435\u0435"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "total": {
                                                    "type": "integer"
                                                },
                                                "conversations": {
                                                    "type": "integer"
                                                }
                                            },
                                            "required": [
                                                "total",
                                                "conversations"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                },
                "security": [
                    {
                        "participant": []
                    }
                ]
            }
        },
        "\/participants": {
            "get": {
                "operationId": "v1.participants.index",
                "description": "\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0441\u0430\u0439\u0442-\u0445\u043e\u0437\u044f\u0438\u043d \u0432\u043a\u043b\u044e\u0447\u0438\u043b `directory`. \u0418\u043d\u0430\u0447\u0435 \u2014 \u043f\u0443\u0441\u0442\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a.",
                "summary": "\u041f\u043e\u0438\u0441\u043a \u043b\u044e\u0434\u0435\u0439 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f",
                "tags": [
                    "\u041f\u0440\u043e\u0447\u0435\u0435"
                ],
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "minLength": 2,
                            "maxLength": 100
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `ParticipantResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#\/components\/schemas\/ParticipantResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                },
                "security": [
                    {
                        "participant": []
                    }
                ]
            }
        },
        "\/push\/subscribe": {
            "post": {
                "operationId": "v1.push.subscribe",
                "description": "\u041f\u043e\u043b\u044f \u0431\u0435\u0440\u0443\u0442\u0441\u044f \u0438\u0437 `PushSubscription.toJSON()`: `endpoint` \u0438 `keys.p256dh` \/ `keys.auth`.",
                "summary": "\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043d\u0430 push (Web Push \/ VAPID)",
                "tags": [
                    "\u041f\u0440\u043e\u0447\u0435\u0435"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "endpoint": {
                                        "type": "string",
                                        "format": "uri",
                                        "maxLength": 2000
                                    },
                                    "keys": {
                                        "type": "object",
                                        "properties": {
                                            "p256dh": {
                                                "type": "string",
                                                "maxLength": 255
                                            },
                                            "auth": {
                                                "type": "string",
                                                "maxLength": 255
                                            }
                                        },
                                        "required": [
                                            "p256dh",
                                            "auth"
                                        ]
                                    }
                                },
                                "required": [
                                    "endpoint",
                                    "keys"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "ok"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                },
                "security": [
                    {
                        "participant": []
                    }
                ]
            }
        },
        "\/push\/unsubscribe": {
            "post": {
                "operationId": "v1.push.unsubscribe",
                "summary": "\u041e\u0442\u043f\u0438\u0441\u0430\u0442\u044c \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043e\u0442 push",
                "tags": [
                    "\u041f\u0440\u043e\u0447\u0435\u0435"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "endpoint": {
                                        "type": "string",
                                        "format": "uri",
                                        "maxLength": 2000
                                    }
                                },
                                "required": [
                                    "endpoint"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "ok"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                },
                "security": [
                    {
                        "participant": []
                    }
                ]
            }
        },
        "\/devices": {
            "post": {
                "operationId": "v1.devices.store",
                "description": "\u0422\u043e\u043a\u0435\u043d FCM\/APNs. \u041e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c.",
                "summary": "\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f",
                "tags": [
                    "\u041f\u0440\u043e\u0447\u0435\u0435"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "platform": {
                                        "type": "string",
                                        "enum": [
                                            "ios",
                                            "android"
                                        ]
                                    },
                                    "token": {
                                        "type": "string",
                                        "maxLength": 4096
                                    }
                                },
                                "required": [
                                    "platform",
                                    "token"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "ok"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                },
                "security": [
                    {
                        "participant": []
                    }
                ]
            },
            "delete": {
                "operationId": "v1.devices.destroy",
                "summary": "\u0417\u0430\u0431\u044b\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f",
                "tags": [
                    "\u041f\u0440\u043e\u0447\u0435\u0435"
                ],
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "maxLength": 4096
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "ok"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                },
                "security": [
                    {
                        "participant": []
                    }
                ]
            }
        },
        "\/broadcasting\/auth": {
            "get": {
                "operationId": "broadcast.authenticate",
                "summary": "Authenticate the request for channel access",
                "tags": [
                    "\u041f\u0440\u043e\u0447\u0435\u0435"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                },
                "security": [
                    {
                        "participant": []
                    }
                ]
            }
        },
        "\/server\/participants\/{externalId}": {
            "put": {
                "operationId": "v1.server.participants.upsert",
                "description": "\u0418\u043c\u044f, \u0440\u043e\u043b\u044c \u0438 \u043f\u0440\u0438\u0437\u043d\u0430\u043a \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f. \u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u0432\u043e \u0432\u0441\u0435 \u0434\u0438\u0430\u043b\u043e\u0433\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438.",
                "summary": "\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0438\u043b\u0438 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430",
                "tags": [
                    "\u0421\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0439 API (\u0434\u043b\u044f \u0431\u044d\u043a\u0435\u043d\u0434\u0430 \u0441\u0430\u0439\u0442\u0430)"
                ],
                "parameters": [
                    {
                        "name": "externalId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "maxLength": 190
                                    },
                                    "email": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "maxLength": 190
                                    },
                                    "avatar_url": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "uri",
                                        "maxLength": 500
                                    },
                                    "role": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "maxLength": 64
                                    },
                                    "is_operator": {
                                        "type": "boolean"
                                    },
                                    "meta": {
                                        "type": [
                                            "array",
                                            "null"
                                        ],
                                        "items": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`ParticipantResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#\/components\/schemas\/ParticipantResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    }
                },
                "security": [
                    {
                        "server": []
                    }
                ]
            }
        },
        "\/server\/participants\/{externalId}\/block": {
            "post": {
                "operationId": "v1.server.participants.block",
                "summary": "\u0417\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430: \u0442\u043e\u043a\u0435\u043d\u044b \u043e\u0442\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f, \u0432\u0445\u043e\u0434 \u0437\u0430\u043a\u0440\u044b\u0442 (\u0434\u0438\u0430\u043b\u043e\u0433\u0438 \u0438 \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u043e\u0441\u0442\u0430\u044e\u0442\u0441\u044f)",
                "tags": [
                    "\u0421\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0439 API (\u0434\u043b\u044f \u0431\u044d\u043a\u0435\u043d\u0434\u0430 \u0441\u0430\u0439\u0442\u0430)"
                ],
                "parameters": [
                    {
                        "name": "externalId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "ok"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "server": []
                    }
                ]
            }
        },
        "\/server\/participants\/{externalId}\/unblock": {
            "post": {
                "operationId": "v1.server.participants.unblock",
                "summary": "\u0421\u043d\u044f\u0442\u044c \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0443 \u0441 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430",
                "tags": [
                    "\u0421\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0439 API (\u0434\u043b\u044f \u0431\u044d\u043a\u0435\u043d\u0434\u0430 \u0441\u0430\u0439\u0442\u0430)"
                ],
                "parameters": [
                    {
                        "name": "externalId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "ok"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "server": []
                    }
                ]
            }
        },
        "\/server\/participants\/{externalId}\/unread": {
            "get": {
                "operationId": "v1.server.participants.unread",
                "summary": "\u041d\u0435\u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u0435 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430 \u2014 \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0447\u0438\u0441\u043b\u043e \u0432 \u043c\u0435\u043d\u044e \u043f\u0440\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u043c \u0440\u0435\u043d\u0434\u0435\u0440\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b",
                "tags": [
                    "\u0421\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0439 API (\u0434\u043b\u044f \u0431\u044d\u043a\u0435\u043d\u0434\u0430 \u0441\u0430\u0439\u0442\u0430)"
                ],
                "parameters": [
                    {
                        "name": "externalId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "anyOf": [
                                                {
                                                    "type": "object",
                                                    "properties": {
                                                        "total": {
                                                            "type": "integer"
                                                        },
                                                        "conversations": {
                                                            "type": "integer"
                                                        }
                                                    },
                                                    "required": [
                                                        "total",
                                                        "conversations"
                                                    ]
                                                },
                                                {
                                                    "type": "object",
                                                    "properties": {
                                                        "total": {
                                                            "type": "integer",
                                                            "const": 0
                                                        },
                                                        "conversations": {
                                                            "type": "integer",
                                                            "const": 0
                                                        }
                                                    },
                                                    "required": [
                                                        "total",
                                                        "conversations"
                                                    ]
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "server": []
                    }
                ]
            }
        },
        "\/server\/conversations": {
            "post": {
                "operationId": "v1.server.conversations.store",
                "description": "\u0423\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u043a\u0430\u043a `members` \u0441 `external_id`; \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0435 \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u043b\u0435\u0442\u0443 \u0438\u0437 \u043f\u0440\u0438\u0441\u043b\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u0435\u0439.\n`unique_key` \u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u044b\u0437\u043e\u0432 \u0438\u0434\u0435\u043c\u043f\u043e\u0442\u0435\u043d\u0442\u043d\u044b\u043c: \u0442\u043e\u0442 \u0436\u0435 \u043a\u043b\u044e\u0447 \u2014 \u0442\u043e\u0442 \u0436\u0435 \u0434\u0438\u0430\u043b\u043e\u0433 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 `request:123:seller:45`).\n`context` \u043f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u0442 \u0434\u0438\u0430\u043b\u043e\u0433 \u043a \u0437\u0430\u044f\u0432\u043a\u0435, \u0442\u043e\u0432\u0430\u0440\u0443 \u0438\u043b\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0443. `message` \u2014 \u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u0435\u0440\u0432\u043e\u0435\n\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 (`from` \u2014 external_id \u0430\u0432\u0442\u043e\u0440\u0430; \u0431\u0435\u0437 `from` \u043e\u043d\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0435).",
                "summary": "\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0434\u0438\u0430\u043b\u043e\u0433 (\u0438\u0434\u0435\u043c\u043f\u043e\u0442\u0435\u043d\u0442\u043d\u043e)",
                "tags": [
                    "\u0421\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0439 API (\u0434\u043b\u044f \u0431\u044d\u043a\u0435\u043d\u0434\u0430 \u0441\u0430\u0439\u0442\u0430)"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "type": {
                                        "type": "string",
                                        "enum": [
                                            "direct",
                                            "group",
                                            "support"
                                        ]
                                    },
                                    "title": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "maxLength": 190
                                    },
                                    "unique_key": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "maxLength": 190
                                    },
                                    "members": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "external_id": {
                                                    "type": "string",
                                                    "maxLength": 191
                                                },
                                                "name": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "maxLength": 190
                                                },
                                                "email": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "maxLength": 190
                                                },
                                                "avatar_url": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "format": "uri",
                                                    "maxLength": 500
                                                },
                                                "role": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "maxLength": 64
                                                },
                                                "is_operator": {
                                                    "type": "boolean"
                                                },
                                                "meta": {
                                                    "type": [
                                                        "array",
                                                        "null"
                                                    ],
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "external_id"
                                            ]
                                        },
                                        "minItems": 1,
                                        "maxItems": 500
                                    },
                                    "context": {
                                        "type": [
                                            "object",
                                            "null"
                                        ],
                                        "properties": {
                                            "type": {
                                                "type": "string",
                                                "maxLength": 64
                                            },
                                            "id": {
                                                "type": "string",
                                                "maxLength": 191
                                            },
                                            "title": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ],
                                                "maxLength": 255
                                            },
                                            "url": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ],
                                                "format": "uri",
                                                "maxLength": 500
                                            }
                                        }
                                    },
                                    "message": {
                                        "type": [
                                            "object",
                                            "null"
                                        ],
                                        "properties": {
                                            "body": {
                                                "type": "string",
                                                "maxLength": 4000
                                            },
                                            "from": {
                                                "type": [
                                                    "string",
                                                    "null"
                                                ],
                                                "maxLength": 191
                                            }
                                        }
                                    }
                                },
                                "required": [
                                    "type",
                                    "members"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    }
                },
                "security": [
                    {
                        "server": []
                    }
                ]
            }
        },
        "\/server\/conversations\/{conversation}\/members": {
            "post": {
                "operationId": "v1.server.conversations.members.store",
                "summary": "\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432 \u0432 \u0434\u0438\u0430\u043b\u043e\u0433 (\u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0435 \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f)",
                "tags": [
                    "\u0421\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0439 API (\u0434\u043b\u044f \u0431\u044d\u043a\u0435\u043d\u0434\u0430 \u0441\u0430\u0439\u0442\u0430)"
                ],
                "parameters": [
                    {
                        "name": "conversation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "members": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "external_id": {
                                                    "type": "string",
                                                    "maxLength": 191
                                                },
                                                "name": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "maxLength": 190
                                                },
                                                "email": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "maxLength": 190
                                                },
                                                "avatar_url": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "format": "uri",
                                                    "maxLength": 500
                                                },
                                                "role": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "maxLength": 64
                                                },
                                                "is_operator": {
                                                    "type": "boolean"
                                                },
                                                "meta": {
                                                    "type": [
                                                        "array",
                                                        "null"
                                                    ],
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "required": [
                                                "external_id"
                                            ]
                                        },
                                        "minItems": 1,
                                        "maxItems": 500
                                    }
                                },
                                "required": [
                                    "members"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "ok"
                                        },
                                        "added": {
                                            "type": "integer",
                                            "minimum": 0
                                        }
                                    },
                                    "required": [
                                        "message",
                                        "added"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    }
                },
                "security": [
                    {
                        "server": []
                    }
                ]
            }
        },
        "\/server\/conversations\/{conversation}\/members\/{externalId}": {
            "delete": {
                "operationId": "v1.server.conversations.members.destroy",
                "summary": "\u0423\u0431\u0440\u0430\u0442\u044c \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430 \u0438\u0437 \u0434\u0438\u0430\u043b\u043e\u0433\u0430 (\u0435\u0433\u043e \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u0443 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f)",
                "tags": [
                    "\u0421\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0439 API (\u0434\u043b\u044f \u0431\u044d\u043a\u0435\u043d\u0434\u0430 \u0441\u0430\u0439\u0442\u0430)"
                ],
                "parameters": [
                    {
                        "name": "conversation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "externalId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "ok"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "server": []
                    }
                ]
            }
        },
        "\/server\/conversations\/{conversation}\/archive": {
            "post": {
                "operationId": "v1.server.conversations.archive",
                "summary": "\u0410\u0440\u0445\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0438\u0430\u043b\u043e\u0433: \u0438\u0441\u0447\u0435\u0437\u0430\u0435\u0442 \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432, \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e\u0442\u0441\u044f",
                "tags": [
                    "\u0421\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0439 API (\u0434\u043b\u044f \u0431\u044d\u043a\u0435\u043d\u0434\u0430 \u0441\u0430\u0439\u0442\u0430)"
                ],
                "parameters": [
                    {
                        "name": "conversation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "ok"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    }
                },
                "security": [
                    {
                        "server": []
                    }
                ]
            }
        },
        "\/server\/conversations\/{conversation}\/messages": {
            "post": {
                "operationId": "v1.server.conversations.messages.store",
                "description": "`from` \u2014 external_id \u0430\u0432\u0442\u043e\u0440\u0430; \u0431\u0435\u0437 \u043d\u0435\u0433\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0435 (\u00ab\u0417\u0430\u044f\u0432\u043a\u0430 \u043f\u0440\u0438\u043d\u044f\u0442\u0430\u00bb).",
                "summary": "\u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u0434\u0438\u0430\u043b\u043e\u0433 \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430 \u0438\u043b\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b",
                "tags": [
                    "\u0421\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0439 API (\u0434\u043b\u044f \u0431\u044d\u043a\u0435\u043d\u0434\u0430 \u0441\u0430\u0439\u0442\u0430)"
                ],
                "parameters": [
                    {
                        "name": "conversation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "body": {
                                        "type": "string",
                                        "maxLength": 4000
                                    },
                                    "from": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "maxLength": 191
                                    },
                                    "client_uuid": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "maxLength": 64
                                    }
                                },
                                "required": [
                                    "body"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`MessageResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#\/components\/schemas\/MessageResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    }
                },
                "security": [
                    {
                        "server": []
                    }
                ]
            }
        },
        "\/media\/{message}": {
            "get": {
                "operationId": "chat.media",
                "description": "\u0421\u0441\u044b\u043b\u043a\u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u0432 \u043f\u043e\u043b\u044f\u0445 `voice.url` \u0438 `file.url` \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f; \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0442 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0438 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u0442\u043e\u043a\u0435\u043d\u0430,\n\u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0442 \u0434\u043b\u044f `<img>`, `<audio>`, `<video>` \u0438 \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u043f\u043b\u0435\u0435\u0440\u043e\u0432.",
                "summary": "\u0424\u0430\u0439\u043b \u0438\u043b\u0438 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0435 \u043f\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0435",
                "tags": [
                    "\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f"
                ],
                "parameters": [
                    {
                        "name": "message",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/octet-stream": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary"
                                }
                            }
                        },
                        "headers": {
                            "Transfer-Encoding": {
                                "required": true,
                                "schema": {
                                    "type": "string",
                                    "enum": [
                                        "chunked"
                                    ]
                                }
                            }
                        }
                    }
                },
                "security": []
            }
        },
        "\/conversations\/{conversation}\/messages": {
            "get": {
                "operationId": "v1.messages.index",
                "description": "\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0434\u043e `limit` \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u043f\u043e \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u043d\u0438\u044e id. \u0411\u0435\u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u2014 \u0441\u0430\u043c\u044b\u0435 \u0441\u0432\u0435\u0436\u0438\u0435. \u041b\u0438\u0441\u0442\u0430\u0442\u044c \u043d\u0430\u0437\u0430\u0434:\n`before` = id \u0441\u0430\u043c\u043e\u0433\u043e \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u0438\u0437 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0445; \u0432\u043f\u0435\u0440\u0451\u0434 (\u0434\u043e\u0433\u0440\u0443\u0437\u043a\u0430 \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u0440\u044b\u0432\u0430 \u0441\u0432\u044f\u0437\u0438): `after`.",
                "summary": "\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0434\u0438\u0430\u043b\u043e\u0433\u0430",
                "tags": [
                    "\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f"
                ],
                "parameters": [
                    {
                        "name": "conversation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "before",
                        "in": "query",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1
                        }
                    },
                    {
                        "name": "after",
                        "in": "query",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 0
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `MessageResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#\/components\/schemas\/MessageResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                },
                "security": [
                    {
                        "participant": []
                    }
                ]
            },
            "post": {
                "operationId": "v1.messages.store",
                "description": "`client_uuid` \u2014 \u0432\u0430\u0448 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043f\u043e\u043f\u044b\u0442\u043a\u0438: \u043f\u043e\u0432\u0442\u043e\u0440 \u0441 \u0442\u0435\u043c \u0436\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u0434\u0443\u0431\u043b\u044c (\u0443\u0434\u043e\u0431\u043d\u043e \u043f\u0440\u0438 \u043f\u043b\u043e\u0445\u043e\u0439 \u0441\u0432\u044f\u0437\u0438).",
                "summary": "\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0442\u0435\u043a\u0441\u0442",
                "tags": [
                    "\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f"
                ],
                "parameters": [
                    {
                        "name": "conversation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "body": {
                                        "type": "string",
                                        "maxLength": 4000
                                    },
                                    "reply_to_id": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ]
                                    },
                                    "client_uuid": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "maxLength": 64
                                    }
                                },
                                "required": [
                                    "body"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`MessageResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#\/components\/schemas\/MessageResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                },
                "security": [
                    {
                        "participant": []
                    }
                ]
            }
        },
        "\/conversations\/{conversation}\/messages\/voice": {
            "post": {
                "operationId": "v1.messages.voice",
                "description": "\u0417\u0430\u043f\u0440\u043e\u0441 `multipart\/form-data`: `audio` (webm\/ogg\/mp4\/m4a\/mp3, \u0434\u043e 10 \u041c\u0411) \u0438 `duration` \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445.",
                "summary": "\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u043e\u0435",
                "tags": [
                    "\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f"
                ],
                "parameters": [
                    {
                        "name": "conversation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart\/form-data": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "audio": {
                                        "type": "string",
                                        "format": "binary",
                                        "contentMediaType": "application\/octet-stream",
                                        "description": "Maximum file size: 10240 kilobytes."
                                    },
                                    "duration": {
                                        "type": "integer",
                                        "minimum": 1,
                                        "maximum": 300
                                    },
                                    "reply_to_id": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ]
                                    },
                                    "client_uuid": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "maxLength": 64
                                    }
                                },
                                "required": [
                                    "audio",
                                    "duration"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`MessageResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#\/components\/schemas\/MessageResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                },
                "security": [
                    {
                        "participant": []
                    }
                ]
            }
        },
        "\/conversations\/{conversation}\/messages\/file": {
            "post": {
                "operationId": "v1.messages.file",
                "description": "\u0417\u0430\u043f\u0440\u043e\u0441 `multipart\/form-data`, \u043f\u043e\u043b\u0435 `file`, \u0434\u043e 25 \u041c\u0411. \u0418\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0435 \u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432\u044b\u0435 \u0442\u0438\u043f\u044b \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u044b.",
                "summary": "\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0444\u0430\u0439\u043b, \u0444\u043e\u0442\u043e \u0438\u043b\u0438 \u0432\u0438\u0434\u0435\u043e",
                "tags": [
                    "\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f"
                ],
                "parameters": [
                    {
                        "name": "conversation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart\/form-data": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "file": {
                                        "type": "string",
                                        "format": "binary",
                                        "contentMediaType": "application\/octet-stream",
                                        "description": "Maximum file size: 25600 kilobytes."
                                    },
                                    "reply_to_id": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ]
                                    },
                                    "client_uuid": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "maxLength": 64
                                    }
                                },
                                "required": [
                                    "file"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`MessageResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#\/components\/schemas\/MessageResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                },
                "security": [
                    {
                        "participant": []
                    }
                ]
            }
        },
        "\/conversations\/{conversation}\/messages\/{message}": {
            "patch": {
                "operationId": "v1.messages.update",
                "description": "\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f: `original_body` \u0432\u0438\u0434\u044f\u0442 \u0432\u0441\u0435 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 (\u00ab\u0431\u044b\u043b\u043e: \u2026\u00bb).",
                "summary": "\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0432\u043e\u0451 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435",
                "tags": [
                    "\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f"
                ],
                "parameters": [
                    {
                        "name": "conversation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "message",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "body": {
                                        "type": "string",
                                        "maxLength": 4000
                                    }
                                },
                                "required": [
                                    "body"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`MessageResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#\/components\/schemas\/MessageResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                },
                "security": [
                    {
                        "participant": []
                    }
                ]
            },
            "delete": {
                "operationId": "v1.messages.destroy",
                "description": "\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u00ab\u043c\u044f\u0433\u043a\u043e\u0435\u00bb: \u0443 \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043d\u0438\u043a\u043e\u0432 \u0432 \u043b\u0435\u043d\u0442\u0435 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u043f\u043e\u043c\u0435\u0442\u043a\u0430 \u00ab\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0443\u0434\u0430\u043b\u0435\u043d\u043e\u00bb.",
                "summary": "\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0432\u043e\u0451 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435",
                "tags": [
                    "\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f"
                ],
                "parameters": [
                    {
                        "name": "conversation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "message",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`MessageResource`",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#\/components\/schemas\/MessageResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                },
                "security": [
                    {
                        "participant": []
                    }
                ]
            }
        },
        "\/conversations\/{conversation}\/messages\/{message}\/reveal": {
            "get": {
                "operationId": "v1.messages.reveal",
                "description": "\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f. \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430\u043c \u2014 403.",
                "summary": "\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u0435 (\u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b)",
                "tags": [
                    "\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f"
                ],
                "parameters": [
                    {
                        "name": "conversation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "message",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "integer"
                                                },
                                                "body": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "original_body": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "deleted_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "body",
                                                "original_body",
                                                "deleted_at"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "An error",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "description": "Error overview.",
                                            "examples": [
                                                "\u0422\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432."
                                            ]
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                },
                "security": [
                    {
                        "participant": []
                    }
                ]
            }
        },
        "\/conversations\/{conversation}\/read": {
            "post": {
                "operationId": "v1.conversations.read",
                "description": "\u0411\u0435\u0437 `message_id` \u2014 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d \u0432\u0435\u0441\u044c \u0434\u0438\u0430\u043b\u043e\u0433. \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430\u043c \u0443\u0439\u0434\u0451\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 `message.read`.",
                "summary": "\u041f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043e \u0434\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f",
                "tags": [
                    "\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f"
                ],
                "parameters": [
                    {
                        "name": "conversation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "message_id": {
                                        "type": [
                                            "integer",
                                            "null"
                                        ],
                                        "minimum": 1
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "ok"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#\/components\/responses\/ValidationException"
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                },
                "security": [
                    {
                        "participant": []
                    }
                ]
            }
        },
        "\/conversations\/{conversation}\/typing": {
            "post": {
                "operationId": "v1.conversations.typing",
                "description": "\u041b\u0451\u0433\u043a\u0438\u0439 \u0441\u0438\u0433\u043d\u0430\u043b \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043d\u0438\u043a\u0430\u043c (\u0441\u043e\u0431\u044b\u0442\u0438\u0435 `typing` \u0432 presence-\u043a\u0430\u043d\u0430\u043b\u0435 \u0434\u0438\u0430\u043b\u043e\u0433\u0430). \u0428\u043b\u0438\u0442\u0435 \u043d\u0435 \u0447\u0430\u0449\u0435 \u0440\u0430\u0437\u0430 \u0432 3 \u0441\u0435\u043a\u0443\u043d\u0434\u044b.",
                "summary": "\u00ab\u041f\u0435\u0447\u0430\u0442\u0430\u0435\u0442\u2026\u00bb",
                "tags": [
                    "\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f"
                ],
                "parameters": [
                    {
                        "name": "conversation",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "const": "ok"
                                        }
                                    },
                                    "required": [
                                        "message"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "$ref": "#\/components\/responses\/AuthenticationException"
                    }
                },
                "security": [
                    {
                        "participant": []
                    }
                ]
            }
        }
    },
    "components": {
        "securitySchemes": {
            "participant": {
                "type": "http",
                "description": "\u0420\u0430\u0431\u043e\u0447\u0438\u0439 \u0442\u043e\u043a\u0435\u043d \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430: `data.token` \u0438\u0437 `POST \/auth\/exchange`, `\/auth\/guest` \u0438\u043b\u0438 `\/auth\/link`.",
                "scheme": "bearer"
            },
            "server": {
                "type": "http",
                "description": "\u0421\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0439 \u0442\u043e\u043a\u0435\u043d \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f (`lcs_\u2026`). \u0425\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0431\u044d\u043a\u0435\u043d\u0434\u0435 \u0441\u0430\u0439\u0442\u0430-\u0445\u043e\u0437\u044f\u0438\u043d\u0430.",
                "scheme": "bearer"
            }
        },
        "schemas": {
            "ConversationResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "type": {
                        "type": "string",
                        "description": "direct | group | support"
                    },
                    "title": {
                        "type": "string"
                    },
                    "context": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "\u041a \u0447\u0435\u043c\u0443 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d \u0434\u0438\u0430\u043b\u043e\u0433 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435-\u0445\u043e\u0437\u044f\u0438\u043d\u0435 (\u0437\u0430\u044f\u0432\u043a\u0430, \u0442\u043e\u0432\u0430\u0440\u2026) \u2014 null, \u0435\u0441\u043b\u0438 \u043d\u0438 \u043a \u0447\u0435\u043c\u0443.",
                        "properties": {
                            "type": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "id": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "title": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "url": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "type",
                            "id",
                            "title",
                            "url"
                        ]
                    },
                    "members": {
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                },
                                "minItems": 0,
                                "maxItems": 0
                            }
                        ]
                    },
                    "member_count": {
                        "type": "integer"
                    },
                    "last_message": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "items": {}
                    },
                    "unread_count": {
                        "type": "integer",
                        "description": "\u041d\u0435\u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u0435 \u0438\u043c\u0435\u043d\u043d\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u043a\u0442\u043e \u0441\u043c\u043e\u0442\u0440\u0438\u0442."
                    },
                    "muted": {
                        "type": "boolean"
                    },
                    "last_message_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": "string"
                    }
                },
                "required": [
                    "id",
                    "type",
                    "title",
                    "context",
                    "members",
                    "member_count",
                    "last_message",
                    "unread_count",
                    "muted",
                    "last_message_at",
                    "created_at"
                ],
                "title": "ConversationResource"
            },
            "MessageResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "conversation_id": {
                        "type": "string"
                    },
                    "type": {
                        "type": "string"
                    },
                    "body": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "\u0422\u0435\u043a\u0441\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f; \u0443 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u2014 null (\u043c\u0435\u0441\u0442\u043e \u0432 \u043b\u0435\u043d\u0442\u0435 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f)."
                    },
                    "deleted": {
                        "type": "boolean"
                    },
                    "edited_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "original_body": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "\u0422\u0435\u043a\u0441\u0442 \u0434\u043e \u043f\u0435\u0440\u0432\u043e\u0439 \u043f\u0440\u0430\u0432\u043a\u0438: \u043e\u0431\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0432\u0438\u0434\u044f\u0442, \u0447\u0442\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u043e\u0441\u044c."
                    },
                    "sender": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "items": {}
                    },
                    "reply_to": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "id": {
                                "type": "integer"
                            },
                            "sender_name": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "preview": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "id",
                            "sender_name",
                            "preview"
                        ]
                    },
                    "voice": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "url": {
                                "type": "string"
                            },
                            "duration": {
                                "type": [
                                    "integer",
                                    "null"
                                ]
                            },
                            "mime": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "url",
                            "duration",
                            "mime"
                        ]
                    },
                    "file": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "url": {
                                "type": "string"
                            },
                            "name": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "mime": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "size": {
                                "type": [
                                    "integer",
                                    "null"
                                ]
                            },
                            "kind": {
                                "type": "string",
                                "description": "image | video | file \u2014 \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0432\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u0438",
                                "enum": [
                                    "image",
                                    "video",
                                    "file"
                                ]
                            }
                        },
                        "required": [
                            "url",
                            "name",
                            "mime",
                            "size",
                            "kind"
                        ]
                    },
                    "client_uuid": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": "string"
                    }
                },
                "required": [
                    "id",
                    "conversation_id",
                    "type",
                    "body",
                    "deleted",
                    "edited_at",
                    "original_body",
                    "sender",
                    "reply_to",
                    "voice",
                    "file",
                    "client_uuid",
                    "created_at"
                ],
                "title": "MessageResource"
            },
            "ParticipantResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "external_id": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "kind": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "avatar_url": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "role": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "is_operator": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "id",
                    "external_id",
                    "kind",
                    "name",
                    "avatar_url",
                    "role",
                    "is_operator"
                ],
                "title": "ParticipantResource"
            }
        },
        "responses": {
            "ValidationException": {
                "description": "Validation error",
                "content": {
                    "application\/json": {
                        "schema": {
                            "type": "object",
                            "properties": {
                                "message": {
                                    "type": "string",
                                    "description": "Errors overview."
                                },
                                "errors": {
                                    "type": "object",
                                    "description": "A detailed description of each field that failed validation.",
                                    "additionalProperties": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    }
                                }
                            },
                            "required": [
                                "message",
                                "errors"
                            ]
                        }
                    }
                }
            },
            "ModelNotFoundException": {
                "description": "Not found",
                "content": {
                    "application\/json": {
                        "schema": {
                            "type": "object",
                            "properties": {
                                "message": {
                                    "type": "string",
                                    "description": "Error overview."
                                }
                            },
                            "required": [
                                "message"
                            ]
                        }
                    }
                }
            },
            "AuthenticationException": {
                "description": "Unauthenticated",
                "content": {
                    "application\/json": {
                        "schema": {
                            "type": "object",
                            "properties": {
                                "message": {
                                    "type": "string",
                                    "description": "Error overview."
                                }
                            },
                            "required": [
                                "message"
                            ]
                        }
                    }
                }
            }
        }
    }
}