github.com/tada-team/tdproto@v1.51.57/codegen/markdown/README.md (about) 1 ## Structures 2 3 ### ServerConfirm 4 Server confirmed client message 5 6 7 8 ### ClientCallLeave 9 Leave call 10 11 12 13 ### CallDevice 14 Call participant device 15 16 * **muted** (bool) — Device muted. 17 * **useragent** (string) — Device description. 18 19 20 ### ClientCallTrickle 21 Send trickle candidate for webrtc connection 22 23 24 25 ### ServerCallBuzz 26 Call buzzing 27 28 29 30 ### Terms 31 Experimental translation fields for "team" entity renaming. Readonly 32 33 34 35 ### ShortMessage 36 Short message based on chat message 37 38 * **chat** ( [JID](#JID) , readonly for clients) — Chat id. 39 * **chat_type** ( [ChatType](#ChatType) , readonly for clients) — Chat type. 40 * **created** (ISODateTimeString, readonly for clients) — Message creation datetime (set by server side) or sending datetime in future for draft messages. 41 * **from** ( [JID](#JID) , readonly for clients) — Sender contact id. 42 * **gentime** (int64, readonly for clients) — Object version. 43 * **is_archive** (bool, readonly for clients, omitempty) — This message is archive. True or null. 44 * **message_id** (string) — Message uid. 45 * **to** ( [JID](#JID) ) — Recipient id (group, task or contact). 46 47 48 ### UploadShortMessage 49 Upload + ShortMessage 50 51 52 53 ### ServerCallMuteall 54 All participants in call muted 55 56 57 58 ### MessagePush 59 Push message over websockets. Readonly 60 61 * **chat** ( [JID](#JID) ) — Chat id. 62 * **click_action** (string) — Url opened on click. 63 * **created** (ISODateTimeString) — Message creation iso datetime. 64 * **icon_url** (string) — Absolute url to push icon. 65 * **message** (string) — Push body. 66 * **message_id** (string) — Message id. 67 * **sender** ( [JID](#JID) ) — Sender contact id. 68 * **subtitle** (string) — Push subtitle. 69 * **tag** (string) — Push tag (for join pushes). 70 * **team** (string) — Team uid. 71 * **title** (string) — Push title. 72 73 74 ### ServerCallTalking 75 Someone talks in call 76 77 78 79 ### Message 80 Chat message 81 82 * **chat** ( [JID](#JID) , readonly for clients) — Chat id. 83 * **chat_type** ( [ChatType](#ChatType) , readonly for clients) — Chat type. 84 * **content** ( [MessageContent](#MessageContent) ) — Message content struct. 85 * **created** (ISODateTimeString, readonly for clients) — Message creation datetime (set by server side) or sending datetime in future for draft messages. 86 * **_debug** (string, readonly for clients, omitempty) — Debug information, if any. 87 * **drafted** (ISODateTimeString, readonly for clients, omitempty) — Creation datetime for draft messages. 88 * **editable_until** (ISODateTimeString, readonly for clients, omitempty) — Author can change this message until date. Can be null. 89 * **edited** (ISODateTimeString, readonly for clients, omitempty) — ISODateTimeString of message modification or deletion. 90 * **from** ( [JID](#JID) , readonly for clients) — Sender contact id. 91 * **gentime** (int64, readonly for clients) — Object version. 92 * **has_previews** (bool, readonly for clients, omitempty) — Has link previews. True or null. 93 * **important** (bool, omitempty) — Importance flag. 94 * **is_archive** (bool, readonly for clients, omitempty) — This message is archive. True or null. 95 * **is_first** (bool, readonly for clients, omitempty) — This message is first in this chat. True or null. 96 * **is_last** (bool, readonly for clients, omitempty) — This message is first in this chat. True or null. 97 * **linked_messages** ( [Message](#Message) , list, omitempty) — Forwarded messages. Can be null. Also contains double of ReplyTo for backward compatibility. 98 * **links** ( [MessageLinks](#MessageLinks) , readonly for clients, omitempty) — External/internals links. 99 * **markup** ( [MarkupEntity](#MarkupEntity) , readonly for clients, list, omitempty) — Markup entities. Experimental. 100 * **message_id** (string) — Message uid. 101 * **nopreview** (bool, omitempty) — Disable link previews. True or null. 102 * **notice** (bool, readonly for clients, omitempty) — Has mention (@). True or null. 103 * **num** (int, readonly for clients, nullable, omitempty) — Index number of this message. Starts from 0. Null for deleted messages. Changes when any previous message wad deleted. 104 * **num_received** (int, readonly for clients, omitempty) — Unused yet. 105 * **prev** (string, readonly for clients, omitempty) — Previous message id in this chat. Uid or null. 106 * **push_text** (string, readonly for clients, omitempty) — Simple plaintext message representation. 107 * **reactions** ( [MessageReaction](#MessageReaction) , readonly for clients, list, omitempty) — Message reactions struct. Can be null. 108 * **received** (bool, readonly for clients, omitempty) — Message was seen by anybody in chat. True or null. 109 * **reply_to** ( [Message](#Message) , nullable, omitempty) — Message that was replied to, if any. 110 * **silently** (bool, readonly for clients, omitempty) — Message has no pushes and did not affect any counters. 111 * **to** ( [JID](#JID) ) — Recipient id (group, task or contact). 112 * **uploads** ( [Upload](#Upload) , list, omitempty) — Message uploads. 113 114 115 ### ServerPanic 116 Critical server error 117 118 119 120 ### DeletedTag 121 Delete tag message 122 123 * **uid** (string) — Tag id. 124 125 126 ### Country 127 Country for phone numbers selection on login screen 128 129 * **code** (string) — Country code. 130 * **default** (bool, omitempty) — Selected by default. 131 * **name** (string) — Country name. 132 * **popular** (bool, omitempty) — Is popular, need to cache. 133 134 135 ### ServerCallCheckFingerprint 136 Experimental function 137 138 139 140 ### ClientPing 141 Empty message for checking server connection 142 143 144 145 ### ServerCallReject 146 Call rejected 147 148 149 150 ### Subtask 151 Link to sub/sup task 152 153 * **assignee** ( [JID](#JID) ) — Assignee contact id. Tasks only. 154 * **display_name** (string) — Title. 155 * **jid** ( [JID](#JID) ) — Task id. 156 * **num** (uint) — Task number in this team. 157 * **public** (bool, omitempty) — Can other team member see this task/group chat. 158 * **title** (string) — Task title. Generated from number and description. 159 160 161 ### ServerTagUpdated 162 Tag created or changed 163 164 165 166 ### IntegrationKind 167 Integration kind 168 169 * **description** (string) — Plugin description. 170 * **icon** (string) — Path to icon. 171 * **kind** (string) — Integration unique name. 172 * **template** ( [Integration](#Integration) ) — Integration template. 173 * **title** (string) — Plugin title. 174 175 176 ### ColorRule 177 Set of rules to apply to tasks for coloring 178 179 180 181 ### TeamShort 182 Short team representation. For invites, push notifications, etc. Readonly 183 184 * **icons** ( [IconData](#IconData) ) — Team icons. 185 * **name** (string) — Team name. 186 * **uid** (string) — Team id. 187 188 189 ### ServerTime 190 Current server time 191 192 193 194 ### ServerMessagePush 195 Push replacement for desktop application 196 197 198 199 ### ServerTeamCounters 200 Counters form other teams 201 202 203 204 ### MessageLinkPreview 205 Website title and description 206 207 * **description** (string, omitempty) — Website description. 208 * **title** (string) — Website title or og:title content. 209 210 211 ### GroupMembership 212 Group chat membership status 213 214 * **can_remove** (bool, omitempty) — Can I remove this member. 215 * **jid** ( [JID](#JID) ) — Contact id. 216 * **status** ( [GroupStatus](#GroupStatus) ) — Status in group. 217 218 219 ### ServerChatUpdated 220 Chat created or updated 221 222 223 224 ### ServerCallLeave 225 Participant leave a call 226 227 228 229 ### ServerRemindDeleted 230 Task or group remind deleted 231 232 233 234 ### DeletedTeam 235 Team deletion message. Readonly 236 237 * **gentime** (int64) — Object version. 238 * **is_archive** (bool) — Team deleted. 239 * **uid** (string) — Team id. 240 241 242 ### Session 243 Websocket session 244 245 * **addr** (string, omitempty) — IP address. 246 * **afk** (bool, omitempty) — Away from keyboard. 247 * **created** (ISODateTimeString) — Creation datetime. 248 * **is_mobile** (bool, omitempty) — Mobile. 249 * **lang** (string, omitempty) — Language code. 250 * **team** (string, omitempty) — Team id. 251 * **uid** (string) — Session id. 252 * **useragent** (string, omitempty) — User agent. 253 254 255 ### Wallpaper 256 Chat wallpaper 257 258 * **key** (string) — Unique identifier. 259 * **name** (string) — Localized description. 260 * **url** (string) — Url to jpg or png. 261 262 263 ### Upload 264 Uploaded media 265 266 * **animated** (bool, omitempty) — Is animated (images only). 267 * **blurhash** (string, omitempty) — Compact representation of a placeholder for an image (images only). 268 * **content_type** (string) — Content type. 269 * **created** (ISODateTimeString) — Uploaded at. 270 * **duration** (uint, omitempty) — Mediafile duration (for audio/video only). 271 * **type** ( [UploadMediaType](#UploadMediaType) ) — ?type=file,image,audio,video. 272 * **name** (string) — Filename. 273 * **pdf_version** ( [PdfVersion](#PdfVersion) , nullable, omitempty) — PDF version of file. Experimental. 274 * **preview** ( [UploadPreview](#UploadPreview) , nullable, omitempty) — Preview details. 275 * **processing** (bool, omitempty) — File still processing (video only). 276 * **size** (int) — Upload size in bytes. 277 * **uid** (string) — Upload id. 278 * **url** (string) — Absolute url. 279 280 281 ### ClientMessageUpdated 282 Message created or changed 283 284 285 286 ### ClientCallSound 287 Change mute state in call 288 289 290 291 ### ServerCallState 292 Call participant number or parameters changed 293 294 295 296 ### Integrations 297 Complete integrations data, as received from server 298 299 * **integrations** ( [Integration](#Integration) , list) — Currently existing integrations. 300 * **kinds** ( [IntegrationKind](#IntegrationKind) , list) — Types of integrations available for setup. 301 302 303 ### MessageLink 304 Checked message links. In short: "Click here: {link.Pattern}" => "Click here: <a href='{link.Url}'>{link.Text}</a>" 305 306 * **nopreview** (bool, omitempty) — Website previews disabled. 307 * **pattern** (string) — Text fragment that should be replaced by link. 308 * **preview** ( [MessageLinkPreview](#MessageLinkPreview) , nullable, omitempty) — Optional preview info, for websites. 309 * **text** (string) — Text replacement. 310 * **uploads** ( [Upload](#Upload) , list, omitempty) — Optional upload info. 311 * **url** (string) — Internal or external link. 312 * **youtube_id** (string, omitempty) — Optional youtube movie id. 313 314 315 ### TaskColor 316 Task color rules color 317 318 319 320 ### Features 321 Server information. Readonly 322 323 * **afk_age** (int) — Max inactivity seconds. 324 * **allow_admin_mute** (bool, omitempty) — Wiki pages in chats. Experimental. 325 * **android_app** (string) — Link to Google Play. 326 * **app_schemes** (string, list) — Local applications urls. 327 * **app_title** (string) — Application title. 328 * **auth_2fa** (bool, omitempty) — Two-factor authentication (2FA) enabled. 329 * **auth_by_password** (bool, omitempty) — Password authentication enabled. 330 * **auth_by_qr_code** (bool, omitempty) — QR-code / link authentication enabled. 331 * **auth_by_sms** (bool, omitempty) — SMS authentication enabled. 332 * **background** (string, omitempty) — Background image url, if any. 333 * **build** (string) — Build/revision of server side. 334 * **calls** (bool) — Calls functions enabled. 335 * **calls_record** (bool) — Calls record enabled. 336 * **custom_server** (bool) — True for premise installation. 337 * **default_wallpaper** ( [Wallpaper](#Wallpaper) , nullable, omitempty) — Default wallpaper url for mobile apps, if any. 338 * **desktop_version** (string) — Desktop application version. 339 * **firebase_api_key** (string) — Firebase settings for web-push notifications. 340 * **firebase_app_id** (string) — Firebase settings for web-push notifications. 341 * **firebase_auth_domain** (string) — Firebase settings for web-push notifications. 342 * **firebase_database_url** (string) — Firebase settings for web-push notifications. 343 * **firebase_project_id** (string) — Firebase settings for web-push notifications. 344 * **firebase_sender_id** (string) — Firebase settings for web-push notifications. 345 * **firebase_storage_bucket** (string) — Firebase settings for web-push notifications. 346 * **free_registration** (bool) — Free registration allowed. 347 * **front_version** (string) — Webclient version. 348 * **host** (string) — Current host. 349 * **ice_servers** ( [ICEServer](#ICEServer) , list) — ICE servers for WebRTC. 350 * **ios_app** (string) — Link to AppStore. 351 * **installation_title** (string, omitempty) — Installation title, used on login screen. 352 * **installation_type** (string) — Name of installation. 353 * **is_testing** (bool) — Testing installation. 354 * **landing_url** (string, omitempty) — Landing page address, if any. 355 * **max_color_rule_description_length** (int) — Maximum length for ColorRule description. 356 * **max_group_title_length** (int) — Maximum chars for group chat name. 357 * **max_integration_comment_length** (int) — Maximum length for Integration comment. 358 * **max_linked_messages** (int) — Maximum number of forwarded messages. 359 * **max_message_length** (int) — Maximum chars for text message. 360 * **max_message_search_limit** (int) — Maximum search result. 361 * **max_message_uploads** (int) — Maximum number of message uploads. 362 * **max_mood_length** (int) — Maximum chars for mood in team. 363 * **max_participants_per_call** (int, omitempty) — Maximum number of participants per call. 364 * **max_role_length** (int) — Maximum chars for role in team. 365 * **max_section_length** (int) — Maximum length for project and contact's sections names. 366 * **max_tag_length** (int) — Maximum length for tags. 367 * **max_task_title_length** (int) — Maximum length for task title. 368 * **max_teams** (int) — Maximum teams for one account. 369 * **max_upload_mb** (int) — Maximum size of user's upload. 370 * **max_url_length** (int) — Maximum length for urls. 371 * **max_username_part_length** (int) — Maximum chars for: family_name, given_name, patronymic if any. 372 * **message_uploads** (bool) — Multiple message uploads. 373 * **metrika** (string) — Yandex metrika counter id. 374 * **min_app_version** (string) — Minimal application version required for this server. Used for breaking changes. 375 * **min_search_length** (int) — Minimal chars number for starting global search. 376 * **mobile_calls** (bool) — Calls functions enabled for mobile applications. 377 * **oauth_services** ( [OAuthService](#OAuthService) , list, omitempty) — External services. 378 * **only_one_device_per_call** (bool, omitempty) — Disallow call from multiply devices. Experimental. 379 * **readonly_groups** (bool) — Deprecated. 380 * **resend_timeout** (int) — Resend message in n seconds if no confirmation from server given. 381 * **safari_push_id** (string) — Safari push id for web-push notifications. 382 * **sentry_dsn_js** (string) — Frontend sentry.io settings. 383 * **server_drafts** (bool) — Message drafts saved on server. 384 * **single_group_teams** (bool) — Cross team communication. Experimental. 385 * **task_checklist** (bool) — Deprecated. 386 * **task_dashboard** (bool) — Deprecated. 387 * **task_messages** (bool) — Deprecated. 388 * **task_public** (bool) — Deprecated. 389 * **task_tags** (bool) — Deprecated. 390 * **terms** ( [Terms](#Terms) ) — Team entity naming. Experimental. 391 * **theme** (string) — Default UI theme. 392 * **userver** (string) — Static files server address. 393 * **wiki_pages** (bool) — Wiki pages in chats. Experimental. 394 395 396 ### UserWithMe 397 Accouint data with extra information 398 399 * **devices** ( [PushDevice](#PushDevice) , list) — Registered push devices. 400 * **inviter** ( [JID](#JID) , omitempty) — Inviter id, if any. 401 * **teams** ( [Team](#Team) , list) — Available teams. 402 * **alt_send** (bool) — Use Ctrl/Cmd + Enter instead Enter. 403 * **always_send_pushes** (bool) — Send pushes even user is online. 404 * **asterisk_mention** (bool) — Use * as @ for mentions. 405 * **default_lang** (string, omitempty) — Default language code. 406 * **email** (string, omitempty) — Email for login. 407 * **family_name** (string, omitempty) — Family name. 408 * **given_name** (string, omitempty) — Given name. 409 * **munread_first** (bool) — Show unread chats in chat list first on mobiles. 410 * **patronymic** (string, omitempty) — Patronymic, if any. 411 * **phone** (string, omitempty) — Phone for login. 412 * **quiet_time_finish** (string, nullable) — Finish silently time (no pushes, no sounds). 413 * **quiet_time_start** (string, nullable) — Start silently time (no pushes, no sounds). 414 * **timezone** (string) — Timezone. 415 * **unread_first** (bool) — Show unread chats in chat list first. 416 417 418 ### Unread 419 Unread message counters 420 421 * **chats** (uint) — Total chats with unread messages. 422 * **messages** (uint) — Total unread messages. 423 * **notice_messages** (uint) — Total unread messages with mentions. 424 425 426 ### ServerLogin 427 Login from other device 428 429 430 431 ### Team 432 Team 433 434 * **bad_profile** (bool, readonly for clients, omitempty) — My profile in this team isn't full. 435 * **changeable_statuses** ( [TeamStatus](#TeamStatus) , readonly for clients, list, omitempty) — What status I can set to other team members. 436 * **contacts** ( [Contact](#Contact) , readonly for clients, list, omitempty) — Team contacts. Used only for team creation. 437 * **default_task_deadline** (string, omitempty) — Default task deadline. 438 * **display_family_name_first** (bool, omitempty) — Family name should be first in display name. 439 * **gentime** (int64, readonly for clients) — Object version. 440 * **hide_archived_users** (bool, omitempty) — Don't show archived users by default. 441 * **icons** ( [IconData](#IconData) , readonly for clients) — Team icons. 442 * **is_archive** (bool, readonly for clients, omitempty) — Team deleted. 443 * **last_active** (bool, readonly for clients) — User last activity was in this team. 444 * **max_message_update_age** (int) — Max message update/deletion age, in seconds. 445 * **me** ( [Contact](#Contact) , readonly for clients) — My profile in this team. 446 * **name** (string) — Team name. 447 * **need_confirmation** (bool, readonly for clients) — Need confirmation after invite to this team. 448 * **single_group** ( [JID](#JID) , readonly for clients, omitempty) — For single group teams, jid of chat. 449 * **task_importance_max** (int, omitempty) — Maximum value of task importance. Default is 5. 450 * **task_importance_min** (int, omitempty) — Minimal value of task importance. Default is 1. 451 * **task_importance_rev** (bool, omitempty) — Bigger number = bigger importance. Default: lower number = bigger importance. 452 * **theme** ( [Theme](#Theme) , readonly for clients, nullable, omitempty) — Color theme, if any. 453 * **uid** (string, readonly for clients) — Team id. 454 * **unread** ( [TeamUnread](#TeamUnread) , readonly for clients, nullable) — Unread message counters. 455 * **uploads_size** (int64, readonly for clients, omitempty) — Total uploads size, bytes. 456 * **uploads_size_limit** (int64, readonly for clients, omitempty) — Maximum uploads size, bytes, if any. 457 * **use_patronymic** (bool, omitempty) — Patronymic in usernames for this team. 458 * **use_task_complexity** (bool, omitempty) — Use complexity field in task. 459 * **use_task_importance** (bool, omitempty) — Use importance field in task. 460 * **use_task_spent_time** (bool, omitempty) — Use spent time field in task. 461 * **use_task_urgency** (bool, omitempty) — Use urgency field in task. 462 * **user_fields** (string, readonly for clients, list) — Username fields ordering. 463 464 465 ### ChatShort 466 Minimal chat representation 467 468 * **chat_type** ( [ChatType](#ChatType) ) — Chat type. 469 * **display_name** (string) — Title. 470 * **icons** ( [IconData](#IconData) , nullable) — Icon data. 471 * **jid** ( [JID](#JID) ) — Group/Task/Contact id. 472 473 474 ### ServerChatDraft 475 Changed draft message in chan 476 477 478 479 ### CallOnliner 480 Call participant 481 482 * **devices** ( [CallDevice](#CallDevice) , list) — Member devices, strictly one for now. 483 * **display_name** (string) — Contact name. 484 * **icon** (string) — Contact icon. 485 * **jid** ( [JID](#JID) ) — Contact id. 486 * **muted** (bool) — Microphone muted. Computed from devices muted states. 487 * **role** (string) — Contact role. 488 489 490 ### TaskSort 491 Task sort type 492 493 * **key** ( [TaskSortKey](#TaskSortKey) ) — Field. 494 * **title** (string) — Sort title. 495 496 497 ### ServerRemindFired 498 Task or group remind fired 499 500 501 502 ### Contact 503 Contact 504 505 * **add_to_team_rights** (bool, omitempty) — Can contact add users to this team. 506 * **alt_send** (bool, nullable, omitempty) — Use Ctrl/Cmd + Enter instead Enter. 507 * **always_send_pushes** (bool, nullable, omitempty) — Send push notifications even contact is online. 508 * **asterisk_mention** (bool, nullable, omitempty) — Use * as @ for mentions. 509 * **auth_2fa_enabled** (bool, omitempty) — Two-factor authentication is configured and confirmed. 510 * **auth_2fa_status** (string, omitempty) — Two-factor authentication status. 511 * **botname** (string, omitempty) — Bot name. Empty for users. 512 * **can_add_to_group** (bool, omitempty) — Can I add this contact to group chats. 513 * **can_add_to_team** (bool, omitempty) — Can I add new members to this team. 514 * **can_call** (bool, omitempty) — Can I call to this contact. 515 * **can_create_group** (bool, omitempty) — Can I create group chats in this team. 516 * **can_create_task** (bool, omitempty) — Can I call create task for this contact. 517 * **can_delete** (bool, omitempty) — Can I remove this contact from team. 518 * **can_delete_any_message** (bool, omitempty) — Deprecated: use CanDeleteAnyMessage in chat object. 519 * **can_join_public_groups** (bool, omitempty) — Can I view/join public group in this team. 520 * **can_join_public_tasks** (bool, omitempty) — Can I view/join public tasks in this team. 521 * **can_manage_color_rules** (bool, omitempty) — Can I manage color rules in this team. 522 * **can_manage_integrations** (bool, omitempty) — Can I manage integrations in this team. 523 * **can_manage_sections** (bool, omitempty) — Can I manage sections in this team. 524 * **can_manage_tags** (bool, omitempty) — Can I manage tags in this team. 525 * **can_send_message** (bool, omitempty) — Can I send message to this contact. 526 * **cant_send_message_reason** (string, omitempty) — Why I can't send message to this chat (if can't). 527 * **changeable_fields** (string, list, omitempty) — Changeable fields. 528 * **contact_email** (string) — Contact email in this team. 529 * **contact_mshort_view** (bool, nullable, omitempty) — Short view in contact list in mobile app. 530 * **contact_phone** (string) — Contact phone in this team. 531 * **contact_short_view** (bool, nullable, omitempty) — Short view in contact list. 532 * **contact_show_archived** (bool, nullable, omitempty) — Show archived contacts in contact list. 533 * **custom_fields** ( [ContactCustomFields](#ContactCustomFields) , nullable, omitempty) — Extra contact fields. 534 * **debug_show_activity** (bool, nullable, omitempty) — Enable debug messages in UI. 535 * **default_lang** (string, nullable, omitempty) — Default language code. 536 * **display_name** (string) — Full name in chats. 537 * **dropall_enabled** (bool, nullable, omitempty) — Enable remove all messages experimental features. 538 * **family_name** (string, omitempty) — Family name. 539 * **given_name** (string, omitempty) — Given name. 540 * **group_mshort_view** (bool, nullable, omitempty) — Short view in group list in mobile app. 541 * **group_notifications_enabled** (bool, nullable, omitempty) — Push notifications for group chats. 542 * **group_short_view** (bool, nullable, omitempty) — Short view in group list. 543 * **icons** ( [IconData](#IconData) , nullable) — Icons data. 544 * **is_archive** (bool, omitempty) — Contact deleted. 545 * **jid** ( [JID](#JID) ) — Contact Id. 546 * **last_activity** (ISODateTimeString, omitempty) — Last activity in this team (iso datetime). 547 * **munread_first** (bool, nullable, omitempty) — Show unread chats first in feed in mobile app. 548 * **mood** (string, omitempty) — Mood in this team. 549 * **patronymic** (string, omitempty) — Patronymic, if any. 550 * **quiet_time_finish** (string, nullable, omitempty) — Quiet time finish. 551 * **quiet_time_start** (string, nullable, omitempty) — Quiet time start. 552 * **role** (string) — Role in this team. 553 * **sections** (string, list) — Section ids. 554 * **short_name** (string) — Short name in chats. 555 * **task_mshort_view** (bool, nullable, omitempty) — Short view in task list in mobile app. 556 * **task_notifications_enabled** (bool, nullable, omitempty) — Push notifications for task chats. 557 * **task_short_view** (bool, nullable, omitempty) — Short view in task list. 558 * **status** ( [TeamStatus](#TeamStatus) ) — Status in this team. 559 * **timezone** (string, nullable, omitempty) — Timezone, if any. 560 * **unread_first** (bool, nullable, omitempty) — Show unread chats first in feed. 561 562 563 ### ServerCallRestart 564 Call restarted 565 566 567 568 ### ServerTagDeleted 569 Tag deleted 570 571 572 573 ### MessageContent 574 Chat message content 575 576 * **actor** ( [JID](#JID) , omitempty) — Change actor contact id (for "change" mediatype). 577 * **animated** (bool, omitempty) — Upload is animated image, if any. Deprecated: use Uploads instead. 578 * **blurhash** (string, omitempty) — Compact representation of a placeholder for an image. Deprecated: use Uploads instead. 579 * **comment** (string, omitempty) — Comment (for "audiomsg" mediatype). 580 * **duration** (uint, nullable, omitempty) — Upload duration, if any. Deprecated: use Uploads instead. 581 * **emails** (string, list, omitempty) — Emails list (for "contact" mediatype). 582 * **family_name** (string, omitempty) — Family name (for "contact" mediatype). 583 * **given_name** (string, omitempty) — Given name (for "contact" mediatype). 584 * **mediaURL** (string, omitempty) — Upload url, if any. Deprecated: use Uploads instead. 585 * **name** (string, omitempty) — Upload name, if any. Deprecated: use Uploads instead. 586 * **new** (string, nullable, omitempty) — Change new value (for "change" mediatype). 587 * **old** (string, nullable, omitempty) — Change old value (for "change" mediatype). 588 * **patronymic** (string, omitempty) — Patronymic name (for "contact" mediatype). 589 * **pdf_version** ( [PdfVersion](#PdfVersion) , nullable, omitempty) — Pdf version, if any. 590 * **phones** (string, list, omitempty) — Contact phones list (for "contact" mediatype). 591 * **preview2xURL** (string, omitempty) — Upload high resolution preview absolute url, if any. Deprecated: use Uploads instead. 592 * **previewHeight** (int, omitempty) — Upload preview height, in pixels, if any. Deprecated: use Uploads instead. 593 * **previewURL** (string, omitempty) — Upload preview absolute url, if any. Deprecated: use Uploads instead. 594 * **previewWidth** (int, omitempty) — Upload width, in pixels, if any. Deprecated: use Uploads instead. 595 * **processing** (bool, omitempty) — Upload still processing, if any. Deprecated: use Uploads instead. 596 * **size** (int, omitempty) — Upload size, if any. Deprecated: use Uploads instead. 597 * **stickerpack** (string, omitempty) — Stickerpack name (for "sticker" subtype). 598 * **subtype** ( [Mediasubtype](#Mediasubtype) , omitempty) — Message subtype, if any. 599 * **text** (string) — Text representation of message. 600 * **title** (string, omitempty) — Change title (for "change" mediatype). 601 * **type** ( [Mediatype](#Mediatype) ) — Message type. 602 * **upload** (string, omitempty) — Upload id, if any. Deprecated: use Uploads instead. 603 604 605 ### ClientCallReject 606 Reject the call 607 608 609 610 ### ServerSectionUpdated 611 Contact section or task project created or changed 612 613 614 615 ### Remind 616 Remind 617 618 * **chat** ( [JID](#JID) ) — Chat id. 619 * **comment** (string, omitempty) — Comment, if any. 620 * **fire_at** (ISODateTimeString) — Activation time, iso. 621 * **uid** (string) — Remind id. 622 623 624 ### ServerWarning 625 Something went wrong with client message 626 627 628 629 ### ServerProcessing 630 Status of background operation 631 632 633 634 ### ClientActivity 635 Change AFK (away from keyboard) status 636 637 638 639 ### ServerChatLastread 640 Changed last read message in chat 641 642 643 644 ### UploadPreview 645 Upload preview 646 647 * **height** (int) — Height in pixels. 648 * **url** (string) — Absolute url to image. 649 * **url_2x** (string) — Absolute url to high resolution image (retina). 650 * **width** (int) — Width in pixels. 651 652 653 ### ServerCallAnswer 654 Call parameters 655 656 657 658 ### ClientChatComposing 659 Typing or recording audiomessage 660 661 662 663 ### User 664 Account data 665 666 * **alt_send** (bool) — Use Ctrl/Cmd + Enter instead Enter. 667 * **always_send_pushes** (bool) — Send pushes even user is online. 668 * **asterisk_mention** (bool) — Use * as @ for mentions. 669 * **default_lang** (string, omitempty) — Default language code. 670 * **email** (string, omitempty) — Email for login. 671 * **family_name** (string, omitempty) — Family name. 672 * **given_name** (string, omitempty) — Given name. 673 * **munread_first** (bool) — Show unread chats in chat list first on mobiles. 674 * **patronymic** (string, omitempty) — Patronymic, if any. 675 * **phone** (string, omitempty) — Phone for login. 676 * **quiet_time_finish** (string, nullable) — Finish silently time (no pushes, no sounds). 677 * **quiet_time_start** (string, nullable) — Start silently time (no pushes, no sounds). 678 * **timezone** (string) — Timezone. 679 * **unread_first** (bool) — Show unread chats in chat list first. 680 681 682 ### TaskCounters 683 Tasks counters 684 685 * **jid** ( [JID](#JID) ) — Task jid. 686 * **num_unread** (uint, omitempty) — Unreads counter. 687 * **num_unread_notices** (uint, omitempty) — Mentions (@) counter. 688 689 690 ### IntegrationForm 691 Integration form 692 693 * **api_key** ( [IntegrationField](#IntegrationField) , nullable, omitempty) — Api key field, if any. 694 * **url** ( [IntegrationField](#IntegrationField) , nullable, omitempty) — Url, if any. 695 * **webhook_url** ( [IntegrationField](#IntegrationField) , nullable, omitempty) — Webhook url, if any. 696 697 698 ### ClientCallOffer 699 Start a call 700 701 702 703 ### TaskItem 704 Task checklist item 705 706 * **can_toggle** (bool, omitempty) — Can I toggle this item. 707 * **checked** (bool, omitempty) — Item checked. 708 * **sort_ordering** (uint, omitempty) — Sort ordering. 709 * **subtask** ( [Subtask](#Subtask) , nullable, omitempty) — Link to subtask. Optional. 710 * **text** (string) — Text or "#{OtherTaskNumber}". 711 * **uid** (string, omitempty) — Id. 712 713 714 ### IconData 715 Icon data. For icon generated from display name contains Letters + Color fields 716 717 * **blurhash** (string, omitempty) — Compact representation of a placeholder for an image (experimental). 718 * **color** (string, omitempty) — Icon background color (only for stub icon). 719 * **letters** (string, omitempty) — Letters (only for stub icon). 720 * **lg** ( [SingleIcon](#SingleIcon) ) — Large image. 721 * **sm** ( [SingleIcon](#SingleIcon) ) — Small icon. 722 * **stub** (string, omitempty) — Deprecated. 723 724 725 ### TaskStatus 726 Custom task status 727 728 * **is_archive** (bool, omitempty) — Status not used anymore. 729 * **name** (string) — Status internal name. 730 * **sort_ordering** (uint) — Status sort ordering. 731 * **title** (string) — Status localized name. 732 * **uid** (string, omitempty) — Status id. 733 734 735 ### TeamCounter 736 Unread message counters 737 738 * **uid** (string) — Team id. 739 * **unread** ( [TeamUnread](#TeamUnread) ) — Unread message counters. 740 741 742 ### ServerRemindUpdated 743 Task/group remind created or changed 744 745 746 747 ### ClientChatLastread 748 Last read message in chat changed 749 750 751 752 ### ServerMessageReceived 753 Message received by someone in chat 754 755 756 757 ### ServerChatComposing 758 Someone typing or recording audiomessage in chat 759 760 761 762 ### ServerContactUpdated 763 Contact created or updated 764 765 766 767 ### TaskTab 768 Task tab 769 770 * **filters** ( [TaskFilter](#TaskFilter) , list) — Filters inside tab. 771 * **hide_empty** (bool) — Disable this tab when it has no contents. 772 * **key** ( [TaskTabKey](#TaskTabKey) ) — Tab name. 773 * **pagination** (bool) — Enable pagination. 774 * **show_counter** (bool) — Show unread badge. 775 * **sort** ( [TaskSort](#TaskSort) , list) — Sort available in tab. 776 * **title** (string) — Tab title. 777 * **unread_tasks** ( [TaskCounters](#TaskCounters) , list) — Unread tasks with jid and counters. 778 779 780 ### PdfVersion 781 PDF preview of mediafile. Experimental 782 783 * **text_preview** (string, omitempty) — First string of text content. 784 * **url** (string) — Absolute url. 785 786 787 ### CallEvent 788 Audio call information 789 790 * **audiorecord** (bool) — Call record enabled. 791 * **finish** (ISODateTimeString, nullable) — Call finish. 792 * **onliners** ( [CallOnliner](#CallOnliner) , list, omitempty) — Call participants. 793 * **start** (ISODateTimeString, nullable) — Call start. 794 795 796 ### Integration 797 Integration for concrete chat 798 799 * **comment** (string) — Comment, if any. 800 * **created** (ISODateTimeString, omitempty) — Creation datetime, iso. 801 * **enabled** (bool) — Integration enabled. 802 * **form** ( [IntegrationForm](#IntegrationForm) ) — Integration form. 803 * **group** ( [JID](#JID) ) — Chat id. 804 * **help** (string, omitempty) — Full description. 805 * **kind** (string) — Unique integration name. 806 * **uid** (string, omitempty) — Id. 807 808 809 ### OAuthService 810 OAuth service 811 812 * **name** (string) — Integration title. 813 * **url** (string) — Redirect url. 814 815 816 ### ContactCustomFields 817 Extra contact fields 818 819 820 821 ### MarkupEntity 822 Markup entity. Experimental 823 824 * **childs** ( [MarkupEntity](#MarkupEntity) , list, omitempty) — List of internal markup entities. 825 * **cl** (int) — Close marker offset. 826 * **cllen** (int, omitempty) — Close marker length. 827 * **op** (int) — Open marker offset. 828 * **oplen** (int, omitempty) — Open marker length. 829 * **repl** (string, omitempty) — Text replacement. 830 * **time** (string, omitempty) — Time, for Time type. 831 * **typ** ( [MarkupType](#MarkupType) ) — Marker type. 832 * **url** (string, omitempty) — Url, for Link type. 833 834 835 ### ServerChatDeleted 836 Chat deleted 837 838 839 840 ### TaskFilter 841 Task filter 842 843 * **field** ( [TaskFilterKey](#TaskFilterKey) ) — Task filter field. 844 * **title** (string) — Filter title. 845 846 847 ### ServerUploadUpdated 848 Upload object created or changed 849 850 851 852 ### ServerTeamDeleted 853 Team archived 854 855 856 857 ### ServerCallSound 858 Mute/unmute call participant 859 860 861 862 ### ClientConfirm 863 Client confirmed server message 864 865 866 867 ### ServerUiSettings 868 Part of UI settings changed 869 870 871 872 ### WikiPage 873 Wiki page. Experimental 874 875 * **editor** ( [JID](#JID) ) — Last editor contact id. 876 * **gentime** (int64) — Object version. 877 * **text** (string) — Page text. 878 * **updated** (ISODateTimeString) — Update time. 879 880 881 ### ICEServer 882 Interactive Connectivity Establishment Server for WEB Rtc connection. Readonly 883 884 * **urls** (string) — URls. 885 886 887 ### ServerCallBuzzcancel 888 Call cancelled on buzzing 889 890 891 892 ### ServerTeamUpdated 893 Team created or changed 894 895 896 897 ### DeletedRemind 898 Remind deleted message 899 900 * **uid** (string) — Remind id. 901 902 903 ### SingleIcon 904 Small or large icon 905 906 * **height** (int) — Icon height, in pixels. 907 * **url** (string) — absolute url to icon. 908 * **width** (int) — Icon width, in pixels. 909 910 911 ### MessageReaction 912 Message emoji reaction 913 914 * **counter** (int) — Number of reactions. 915 * **details** ( [MessageReactionDetail](#MessageReactionDetail) , list) — Details. 916 * **name** (string) — Emoji. 917 918 919 ### ClientMessageDeleted 920 Message deleted 921 922 923 924 ### Chat 925 Chat (direct, group, task) representation 926 927 * **assignee** ( [JID](#JID) , omitempty) — Assignee contact id. Tasks only. 928 * **autocleanup_age** (int, nullable, omitempty) — Delete messages in this chat in seconds. Experimental function. 929 * **base_gentime** (int64, omitempty) — Base fields (not related to concrete participant) version. 930 * **can_add_member** (bool, omitempty) — Can I add member to this group chat. 931 * **can_call** (bool, omitempty) — Can I call to this chat. 932 * **can_change_member_status** (bool, omitempty) — Can I change member status in this group chat. 933 * **can_change_settings** (bool, omitempty) — deprecated: use changeable fields. 934 * **can_delete** (bool, omitempty) — Can I delete this chat. 935 * **can_delete_any_message** (bool, omitempty) — Can I delete any message in this chat. 936 * **can_join** (bool, omitempty) — Can I join to this public group/task. 937 * **can_remove_member** (bool, omitempty) — Can I remove member from this group chat. 938 * **can_send_message** (bool, omitempty) — Can I send message to this chat. 939 * **can_set_important_any_message** (bool, omitempty) — Can I change Important flag in any message in this chat. 940 * **cant_send_message_reason** (string, omitempty) — Why I can't send message to this chat (if can't). 941 * **changeable_fields** (string, list, omitempty) — List of editable fields. 942 * **chat_type** ( [ChatType](#ChatType) ) — Chat type. 943 * **collapsed** (bool, omitempty) — Description collapsed. Used for tasks only. 944 * **color_index** (uint16, nullable, omitempty) — Custom color index from table of colors. Tasks only. 945 * **complexity** (int, nullable, omitempty) — Task complexity, number. 946 * **counters_enabled** (bool, omitempty) — Include unread messages to counters. 947 * **created** (ISODateTimeString) — Creation date, iso datetime. 948 * **deadline** (ISODateTimeString, omitempty) — Task deadline in iso format, if any. 949 * **deadline_expired** (bool, omitempty) — Is task deadline expired. 950 * **default_for_all** (bool, omitempty) — Any new team member will be added to this group chat. 951 * **description** (string, omitempty) — Group or task description. 952 * **display_name** (string) — Title. 953 * **done** (ISODateTimeString, omitempty) — Task done date in iso format, if any. 954 * **done_reason** (string, omitempty) — Task done reason, if any. 955 * **draft** (string, omitempty) — Last message draft, if any. 956 * **draft_num** (int64, omitempty) — Last message draft version , if any. 957 * **feed** (bool, omitempty) — Present in feed (main screen). 958 * **gentime** (int64) — Chat fields related to concrete participant) version. 959 * **hidden** (bool, omitempty) — Hidden chat. 960 * **icons** ( [IconData](#IconData) , nullable) — Icons info. 961 * **importance** (int, nullable, omitempty) — Task importance, if available in team. 962 * **items** ( [TaskItem](#TaskItem) , list, omitempty) — Checklist items. Task only. 963 * **jid** ( [JID](#JID) ) — Group/Task/Contact id. 964 * **last_activity** (ISODateTimeString, omitempty) — Date of the last message sent even if it was deleted. 965 * **last_message** ( [Message](#Message) , nullable, omitempty) — Last message object. 966 * **last_read_message_id** (string, omitempty) — Last read message id, if any. 967 * **linked_messages** (interface{}, list, omitempty) — Used for "Create task from messages...". 968 * **links** ( [MessageLinks](#MessageLinks) , omitempty) — Links in description. 969 * **markup** ( [MarkupEntity](#MarkupEntity) , readonly for clients, list, omitempty) — Markup entities for description field. Experimental. 970 * **members** ( [GroupMembership](#GroupMembership) , list, omitempty) — Group chat members. 971 * **notifications_enabled** (bool, omitempty) — Push notifications enabled. 972 * **num** (uint, omitempty) — Task number in this team. 973 * **num_checked_items** (uint, nullable, omitempty) — Checked items in checklist. Tasks only. 974 * **num_importants** (int, omitempty) — Number of important messages. 975 * **num_items** (uint, nullable, omitempty) — Items in checklist. Tasks only. 976 * **num_members** (uint, nullable, omitempty) — Non-archive participants number. 977 * **num_unread** (uint, omitempty) — Unread counter. 978 * **num_unread_notices** (uint, omitempty) — Mentions (@) counter. 979 * **observers** ( [JID](#JID) , list, omitempty) — Task followers id's. TODO: rename to "followers". 980 * **owner** ( [JID](#JID) , omitempty) — Task creator. 981 * **parents** ( [Subtask](#Subtask) , list, omitempty) — Parent tasks. 982 * **pinned** (bool, omitempty) — Is chat pinned on top. 983 * **pinned_message** ( [Message](#Message) , nullable, omitempty) — Pinned message for this chat. 984 * **pinned_sort_ordering** (int, omitempty) — Sort ordering for pinned chat. 985 * **public** (bool, omitempty) — Can other team member see this task/group chat. 986 * **readonly_for_members** (bool, omitempty) — Readonly for non-admins group chat (Like Channels in Telegram bug switchable). 987 * **section** (string, omitempty) — Project / section id, if any. 988 * **spent_time** (int, nullable, omitempty) — Task spent time, number. 989 * **status** ( [GroupStatus](#GroupStatus) , nullable, omitempty) — My status in group chat. 990 * **tabs** ( [TaskTabKey](#TaskTabKey) , list, omitempty) — Tab names. 991 * **tags** (string, list, omitempty) — Task tags list, if any. 992 * **task_status** (string, omitempty) — Task status. May be custom. 993 * **title** (string, omitempty) — Task title. Generated from number and description. 994 * **uploads** ( [Upload](#Upload) , list, omitempty) — Upload uids for request, upload objects for response. 995 * **urgency** (int, nullable, omitempty) — Task urgency, if available in team. 996 997 998 ### Theme 999 Color theme 1000 1001 * **AppAccentColor** (string) — Deprecated. 1002 * **AppPrimaryColor** (string) — Deprecated. 1003 * **BgColor** (string) — Web colors. 1004 * **brand** (string) — App colors. 1005 1006 1007 ### Tag 1008 Task tag 1009 1010 * **name** (string) — Tag name. 1011 * **uid** (string) — Tag id. 1012 1013 1014 ### ServerDebug 1015 Debug message 1016 1017 1018 1019 ### IntegrationField 1020 Integration form field 1021 1022 * **label** (string) — Label. 1023 * **readonly** (bool) — Is field readonly. 1024 * **value** (string) — Current value. 1025 1026 1027 ### MessageReactionDetail 1028 Message reaction detail 1029 1030 * **created** (ISODateTimeString) — When reaction added, iso datetime. 1031 * **name** (string) — Reaction emoji. 1032 * **sender** ( [JID](#JID) ) — Reaction author. 1033 1034 1035 ### ContactShort 1036 Short contact representation 1037 1038 * **display_name** (string) — Full name in chats. 1039 * **icons** ( [IconData](#IconData) , nullable) — Icons data. 1040 * **jid** ( [JID](#JID) ) — Contact Id. 1041 * **short_name** (string) — Short name in chats. 1042 1043 1044 ### ServerOnline 1045 Online team members and current active calls 1046 1047 1048 1049 ### ClientCallMuteAll 1050 Mute all other call participants 1051 1052 1053 1054 ### ServerSectionDeleted 1055 Contact section or task project deleted 1056 1057 1058 1059 ### clientCallBuzzParams 1060 Call buzzing 1061 1062 * **jid** ( [JID](#JID) ) — Chat or contact id. 1063 * **members** ( [JID](#JID) , list) — List of call participants. 1064 1065 1066 ### DeletedChat 1067 Minimal chat representation for deletion 1068 1069 * **chat_type** ( [ChatType](#ChatType) ) — Chat type. 1070 * **gentime** (int64) — Chat fields (related to concrete participant) version. 1071 * **is_archive** (bool) — Archive flag. Always true for this structure. 1072 * **jid** ( [JID](#JID) ) — Group/Task/Contact id. 1073 1074 1075 ### ClientCallBuzzCancel 1076 Call buzzing cancelled 1077 1078 1079 1080 ### ServerMessageUpdated 1081 Chat message created, updated or deleted 1082 1083 1084 ## Events 1085 1086 ### "client.activity" 1087 1088 Event structure: [ClientActivity](#ClientActivity) 1089 1090 Change AFK (away from keyboard) status 1091 1092 ``` 1093 { 1094 "confirm_id": "75a406625c58", 1095 "event": "client.activity", 1096 "params": { 1097 "afk": "BOOL" 1098 } 1099 } 1100 ``` 1101 ### "client.call.buzz" 1102 1103 Event structure: [ClientCallBuzz](#ClientCallBuzz) 1104 1105 1106 1107 ``` 1108 { 1109 "confirm_id": "64977b08d763", 1110 "event": "client.call.buzz", 1111 "params": { 1112 "jid": "JID" 1113 } 1114 } 1115 ``` 1116 ### "client.call.buzzcancel" 1117 1118 Event structure: [ClientCallBuzzCancel](#ClientCallBuzzCancel) 1119 1120 Call buzzing cancelled 1121 1122 ``` 1123 { 1124 "confirm_id": "8c52201ff7ed", 1125 "event": "client.call.buzzcancel", 1126 "params": { 1127 "jid": "JID" 1128 } 1129 } 1130 ``` 1131 ### "client.call.leave" 1132 1133 Event structure: [ClientCallLeave](#ClientCallLeave) 1134 1135 Leave call 1136 1137 ``` 1138 { 1139 "confirm_id": "f5b6d29013c3", 1140 "event": "client.call.leave", 1141 "params": { 1142 "jid": "JID", 1143 "reason": "STRING" 1144 } 1145 } 1146 ``` 1147 ### "client.call.muteall" 1148 1149 Event structure: [ClientCallMuteAll](#ClientCallMuteAll) 1150 1151 Mute all other call participants 1152 1153 ``` 1154 EVENT MISSING EXAMPLE 1155 ``` 1156 ### "client.call.offer" 1157 1158 Event structure: [ClientCallOffer](#ClientCallOffer) 1159 1160 Start a call 1161 1162 ``` 1163 { 1164 "confirm_id": "b45fdc034116", 1165 "event": "client.call.offer", 1166 "params": { 1167 "jid": "JID", 1168 "muted": "BOOL", 1169 "sdp": "STRING", 1170 "trickle": "BOOL" 1171 } 1172 } 1173 ``` 1174 ### "client.call.reject" 1175 1176 Event structure: [ClientCallReject](#ClientCallReject) 1177 1178 Reject the call 1179 1180 ``` 1181 { 1182 "confirm_id": "55e8cc25d534", 1183 "event": "client.call.reject", 1184 "params": { 1185 "jid": "JID" 1186 } 1187 } 1188 ``` 1189 ### "client.call.sound" 1190 1191 Event structure: [ClientCallSound](#ClientCallSound) 1192 1193 Change mute state in call 1194 1195 ``` 1196 { 1197 "confirm_id": "4a24b770a659", 1198 "event": "client.call.sound", 1199 "params": { 1200 "jid": "JID", 1201 "muted": "BOOL" 1202 } 1203 } 1204 ``` 1205 ### "client.call.trickle" 1206 1207 Event structure: [ClientCallTrickle](#ClientCallTrickle) 1208 1209 Send trickle candidate for webrtc connection 1210 1211 ``` 1212 { 1213 "confirm_id": "5bde78b37316", 1214 "event": "client.call.trickle", 1215 "params": { 1216 "candidate": "STRING", 1217 "jid": "JID", 1218 "sdp_mid": "STRING", 1219 "sdp_mline_index": "INT" 1220 } 1221 } 1222 ``` 1223 ### "client.chat.composing" 1224 1225 Event structure: [ClientChatComposing](#ClientChatComposing) 1226 1227 Typing or recording audiomessage 1228 1229 ``` 1230 { 1231 "confirm_id": "2bd5afaf39af", 1232 "event": "client.chat.composing", 1233 "params": { 1234 "jid": "JID" 1235 } 1236 } 1237 ``` 1238 ### "client.chat.lastread" 1239 1240 Event structure: [ClientChatLastread](#ClientChatLastread) 1241 1242 Last read message in chat changed 1243 1244 ``` 1245 { 1246 "confirm_id": "8561d892f3d8", 1247 "event": "client.chat.lastread", 1248 "params": { 1249 "jid": "JID", 1250 "last_read_message_id": "STRING" 1251 } 1252 } 1253 ``` 1254 ### "client.confirm" 1255 1256 Event structure: [ClientConfirm](#ClientConfirm) 1257 1258 Client confirmed server message 1259 1260 ``` 1261 { 1262 "event": "client.confirm", 1263 "params": { 1264 "confirm_id": "str" 1265 } 1266 } 1267 ``` 1268 ### "client.message.deleted" 1269 1270 Event structure: [ClientMessageDeleted](#ClientMessageDeleted) 1271 1272 Message deleted 1273 1274 ``` 1275 { 1276 "confirm_id": "cd778785149a", 1277 "event": "client.message.deleted", 1278 "params": { 1279 "message_id": "STRING" 1280 } 1281 } 1282 ``` 1283 ### "client.message.updated" 1284 1285 Event structure: [ClientMessageUpdated](#ClientMessageUpdated) 1286 1287 Message created or changed 1288 1289 ``` 1290 { 1291 "confirm_id": "2694a2864526", 1292 "event": "client.message.updated", 1293 "params": { 1294 "comment": "STRING", 1295 "content": { 1296 "text": "...", 1297 "type": "plain" 1298 }, 1299 "important": "BOOL", 1300 "linked_messages": [ 1301 "STRING" 1302 ], 1303 "message_id": "STRING", 1304 "nopreview": "BOOL", 1305 "to": "JID" 1306 } 1307 } 1308 ``` 1309 ### "client.ping" 1310 1311 Event structure: [ClientPing](#ClientPing) 1312 1313 Empty message for checking server connection 1314 1315 ``` 1316 { 1317 "confirm_id": "8aad294579b8", 1318 "event": "client.ping" 1319 } 1320 ``` 1321 ### "server.call.answer" 1322 1323 Event structure: [ServerCallAnswer](#ServerCallAnswer) 1324 1325 Call parameters 1326 1327 ``` 1328 { 1329 "event": "server.call.answer", 1330 "params": { 1331 "candidates": [ 1332 { 1333 "candidate": "candidate:2 1 tcp 1019216383 95.213.181.86 0 typ host tcptype active", 1334 "sdpMLineIndex": 0 1335 } 1336 ], 1337 "jid": "g-3f7e2a85-49f5-4586-8229-d9c52813dcb2", 1338 "jsep": { 1339 "sdp": ".....SDP....", 1340 "type": "answer" 1341 }, 1342 "onliners": [ 1343 { 1344 "devices": [ 1345 { 1346 "browser": null, 1347 "muted": true 1348 }, 1349 { 1350 "browser": null, 1351 "muted": true 1352 } 1353 ], 1354 "jid": "d-ef53637c-f44c-4f49-9ffb-05436eb995ce", 1355 "muted": true 1356 } 1357 ] 1358 } 1359 } 1360 ``` 1361 ### "server.call.buzz" 1362 1363 Event structure: [ServerCallBuzz](#ServerCallBuzz) 1364 1365 Call buzzing 1366 1367 ``` 1368 { 1369 "event": "server.call.buzz", 1370 "params": { 1371 "display_name": "имя фамилия", 1372 "icons": { 1373 "lg": { 1374 "height": 512, 1375 "url": "http://127.0.0.1:8000/static/tada-bots/systembot512.png", 1376 "width": 512 1377 }, 1378 "sm": { 1379 "height": 256, 1380 "url": "http://127.0.0.1:8000/static/tada-bots/systembot256.png", 1381 "width": 256 1382 } 1383 }, 1384 "jid": "g-3f7e2a85-49f5-4586-8229-d9c52813dcb2", 1385 "team": "6aefcf3b-e61c-4f35-8b5b-9d762a6a6cf9" 1386 } 1387 } 1388 ``` 1389 ### "server.call.buzzcancel" 1390 1391 Event structure: [ServerCallBuzzcancel](#ServerCallBuzzcancel) 1392 1393 Call cancelled on buzzing 1394 1395 ``` 1396 { 1397 "event": "server.call.buzzcancel", 1398 "params": { 1399 "jid": "d-0bdfbbf5-abfa-4ed2-9f98-991d5bb80127", 1400 "team": "848cc926-3048-44b3-a9ba-3195a394351d" 1401 } 1402 } 1403 ``` 1404 ### "server.call.checkfingerprint" 1405 1406 Event structure: [ServerCallCheckFingerprint](#ServerCallCheckFingerprint) 1407 1408 Experimental function 1409 1410 ``` 1411 EVENT MISSING EXAMPLE 1412 ``` 1413 ### "server.call.leave" 1414 1415 Event structure: [ServerCallLeave](#ServerCallLeave) 1416 1417 Participant leave a call 1418 1419 ``` 1420 EVENT MISSING EXAMPLE 1421 ``` 1422 ### "server.call.muteall" 1423 1424 Event structure: [ServerCallMuteall](#ServerCallMuteall) 1425 1426 All participants in call muted 1427 1428 ``` 1429 EVENT MISSING EXAMPLE 1430 ``` 1431 ### "server.call.reject" 1432 1433 Event structure: [ServerCallReject](#ServerCallReject) 1434 1435 Call rejected 1436 1437 ``` 1438 EVENT MISSING EXAMPLE 1439 ``` 1440 ### "server.call.restart" 1441 1442 Event structure: [ServerCallRestart](#ServerCallRestart) 1443 1444 Call restarted 1445 1446 ``` 1447 EVENT MISSING EXAMPLE 1448 ``` 1449 ### "server.call.sound" 1450 1451 Event structure: [ServerCallSound](#ServerCallSound) 1452 1453 Mute/unmute call participant 1454 1455 ``` 1456 EVENT MISSING EXAMPLE 1457 ``` 1458 ### "server.call.state" 1459 1460 Event structure: [ServerCallState](#ServerCallState) 1461 1462 Call participant number or parameters changed 1463 1464 ``` 1465 { 1466 "event": "server.call.state", 1467 "params": { 1468 "audiorecord": true, 1469 "buzz": false, 1470 "finish": null, 1471 "jid": "g-3f7e2a85-49f5-4586-8229-d9c52813dcb2", 1472 "onliners": [ 1473 { 1474 "devices": [ 1475 { 1476 "muted": false, 1477 "useragent": "Chrome" 1478 } 1479 ], 1480 "jid": "d-d6de9748-0bcd-4145-b1ce-3d7f41c1c26f", 1481 "muted": false 1482 } 1483 ], 1484 "start": "2019-09-27T01:01:35.264095Z" 1485 } 1486 } 1487 ``` 1488 ### "server.call.talking" 1489 1490 Event structure: [ServerCallTalking](#ServerCallTalking) 1491 1492 Someone talks in call 1493 1494 ``` 1495 { 1496 "event": "server.call.talking", 1497 "params": { 1498 "_level": null, 1499 "actor": "d-bd500a50-3a38-44d1-a43c-fb1a48e1a79e", 1500 "jid": "d-bd500a50-3a38-44d1-a43c-fb1a48e1a79e", 1501 "talking": true 1502 } 1503 } 1504 ``` 1505 ### "server.chat.composing" 1506 1507 Event structure: [ServerChatComposing](#ServerChatComposing) 1508 1509 Someone typing or recording audiomessage in chat 1510 1511 ``` 1512 { 1513 "event": "server.chat.composing", 1514 "params": { 1515 "actor": "d-bd500a50-3a38-44d1-a43c-fb1a48e1a79e", 1516 "composing": true, 1517 "is_audio": false, 1518 "jid": "d-bd500a50-3a38-44d1-a43c-fb1a48e1a79e" 1519 } 1520 } 1521 ``` 1522 ### "server.chat.deleted" 1523 1524 Event structure: [ServerChatDeleted](#ServerChatDeleted) 1525 1526 Chat deleted 1527 1528 ``` 1529 { 1530 "event": "server.chat.deleted", 1531 "params": { 1532 "badge": 449, 1533 "chats": [ 1534 { 1535 "chat_type": "group", 1536 "gentime": 1569546094920474368, 1537 "is_archive": true, 1538 "jid": "g-3f7e2a85-49f5-4586-8229-d9c52813dcb2" 1539 } 1540 ], 1541 "team_unread": { 1542 "direct": { 1543 "chats": 1, 1544 "messages": 31 1545 }, 1546 "group": { 1547 "chats": 0, 1548 "messages": 0 1549 }, 1550 "task": { 1551 "chats": 1, 1552 "messages": 1 1553 } 1554 } 1555 } 1556 } 1557 ``` 1558 ### "server.chat.draft" 1559 1560 Event structure: [ServerChatDraft](#ServerChatDraft) 1561 1562 Changed draft message in chan 1563 1564 ``` 1565 EVENT MISSING EXAMPLE 1566 ``` 1567 ### "server.chat.lastread" 1568 1569 Event structure: [ServerChatLastread](#ServerChatLastread) 1570 1571 Changed last read message in chat 1572 1573 ``` 1574 { 1575 "event": "server.chat.lastread", 1576 "params": { 1577 "badge": 0, 1578 "chats": [ 1579 { 1580 "chat_type": "direct", 1581 "gentime": 1569546084300075149, 1582 "jid": "d-2a9d8c43-41d1-479c-9c8c-f029f799a724", 1583 "last_read_message_id": "f4f1f09c-f978-4b54-a321-b4c82604010d", 1584 "num_unread": 0, 1585 "num_unread_notices": 0 1586 } 1587 ], 1588 "team_unread": { 1589 "direct": { 1590 "chats": 0, 1591 "messages": 0 1592 }, 1593 "group": { 1594 "chats": 0, 1595 "messages": 0 1596 }, 1597 "task": { 1598 "chats": 0, 1599 "messages": 0 1600 } 1601 } 1602 } 1603 } 1604 ``` 1605 ### "server.chat.updated" 1606 1607 Event structure: [ServerChatUpdated](#ServerChatUpdated) 1608 1609 Chat created or updated 1610 1611 ``` 1612 { 1613 "event": "server.chat.updated", 1614 "params": { 1615 "badge": 449, 1616 "chats": [ 1617 { 1618 "can_call": true, 1619 "can_send_message": true, 1620 "chat_type": "group", 1621 "counters_enabled": true, 1622 "created": "2019-09-18T00:00:06.105362Z", 1623 "default_for_all": true, 1624 "description": "Сюда автоматически попадают все участники команды", 1625 "display_name": "Общий чат", 1626 "gentime": 1568764808134709248, 1627 "icons": { 1628 "stub": "http://127.0.0.1:8000/u/f0769a/%D0%9E%D1%87/256.png" 1629 }, 1630 "jid": "g-82d6c0d4-8921-4519-abb3-02f17373112f", 1631 "notifications_enabled": true, 1632 "num_members": 32, 1633 "public": true, 1634 "status": "member" 1635 } 1636 ], 1637 "team_unread": { 1638 "direct": { 1639 "chats": 1, 1640 "messages": 31 1641 }, 1642 "group": { 1643 "chats": 0, 1644 "messages": 0 1645 }, 1646 "task": { 1647 "chats": 1, 1648 "messages": 1 1649 } 1650 } 1651 } 1652 } 1653 ``` 1654 ### "server.confirm" 1655 1656 Event structure: [ServerConfirm](#ServerConfirm) 1657 1658 Server confirmed client message 1659 1660 ``` 1661 { 1662 "event": "server.confirm", 1663 "params": { 1664 "confirm_id": "b8b2ccd6-35a6-408f-a591-c696a9f9e73e" 1665 } 1666 } 1667 ``` 1668 ### "server.contact.updated" 1669 1670 Event structure: [ServerContactUpdated](#ServerContactUpdated) 1671 1672 Contact created or updated 1673 1674 ``` 1675 { 1676 "event": "server.contact.updated", 1677 "params": { 1678 "contacts": [ 1679 { 1680 "can_add_to_group": true, 1681 "can_call": true, 1682 "can_create_task": true, 1683 "can_send_message": true, 1684 "changeable_fields": [], 1685 "contact_email": "", 1686 "contact_phone": "+75550000031", 1687 "display_name": "Контакт №32", 1688 "icons": { 1689 "stub": "http://127.0.0.1:8000/u/8e88eb/32/256.png" 1690 }, 1691 "jid": "d-a792832a-d9f6-4bbc-b545-f2800e329c8c", 1692 "last_activity": null, 1693 "role": "", 1694 "sections": [], 1695 "status": "member" 1696 } 1697 ] 1698 } 1699 } 1700 ``` 1701 ### "server.debug" 1702 1703 Event structure: [ServerDebug](#ServerDebug) 1704 1705 Debug message 1706 1707 ``` 1708 EVENT MISSING EXAMPLE 1709 ``` 1710 ### "server.login" 1711 1712 Event structure: [ServerLogin](#ServerLogin) 1713 1714 Login from other device 1715 1716 ``` 1717 { 1718 "event": "server.login", 1719 "params": { 1720 "device_name": "(unknown device)" 1721 } 1722 } 1723 ``` 1724 ### "server.message.push" 1725 1726 Event structure: [ServerMessagePush](#ServerMessagePush) 1727 1728 Push replacement for desktop application 1729 1730 ``` 1731 EVENT MISSING EXAMPLE 1732 ``` 1733 ### "server.message.received" 1734 1735 Event structure: [ServerMessageReceived](#ServerMessageReceived) 1736 1737 Message received by someone in chat 1738 1739 ``` 1740 { 1741 "event": "server.message.received", 1742 "params": { 1743 "messages": [ 1744 { 1745 "chat": "t-be962c01-14ae-4c59-aeb0-f0ff5cffab74", 1746 "message_id": "e0fca4c2-0d17-4317-96cd-703c2ca781e4", 1747 "num_received": 0, 1748 "received": false 1749 } 1750 ] 1751 } 1752 } 1753 ``` 1754 ### "server.message.updated" 1755 1756 Event structure: [ServerMessageUpdated](#ServerMessageUpdated) 1757 1758 Chat message created, updated or deleted 1759 1760 ``` 1761 { 1762 "event": "server.message.updated", 1763 "params": { 1764 "badge": 51, 1765 "chat_counters": [ 1766 { 1767 "chat_type": "task", 1768 "gentime": 1569546093662061959, 1769 "jid": "t-be962c01-14ae-4c59-aeb0-f0ff5cffab74", 1770 "last_read_message_id": null, 1771 "num_unread": 0, 1772 "num_unread_notices": 0 1773 } 1774 ], 1775 "delayed": false, 1776 "messages": [ 1777 { 1778 "chat": "t-be962c01-14ae-4c59-aeb0-f0ff5cffab74", 1779 "chat_type": "task", 1780 "content": { 1781 "actor": "d-0b1b2362-fb69-4dd6-8bfb-90c89517168d", 1782 "text": "Создана задача для @Контакт_№394: Тест", 1783 "title": "Создана задача для @Контакт_№394: Тест", 1784 "type": "change" 1785 }, 1786 "created": "2019-09-27T01:01:33.661466Z", 1787 "editable_until": "2019-09-28T01:01:33.661466Z", 1788 "from": "d-a2d94e8e-74aa-4b0b-b55d-0b4fc1ce07f4", 1789 "gentime": 1569546093662061959, 1790 "is_first": true, 1791 "is_last": true, 1792 "message_id": "e0fca4c2-0d17-4317-96cd-703c2ca781e4", 1793 "to": "t-be962c01-14ae-4c59-aeb0-f0ff5cffab74" 1794 } 1795 ], 1796 "team_unread": { 1797 "direct": { 1798 "chats": 1, 1799 "messages": 51 1800 }, 1801 "group": { 1802 "chats": 0, 1803 "messages": 0 1804 }, 1805 "task": { 1806 "chats": 0, 1807 "messages": 0 1808 } 1809 } 1810 } 1811 } 1812 ``` 1813 ### "server.online" 1814 1815 Event structure: [ServerOnline](#ServerOnline) 1816 1817 Online team members and current active calls 1818 1819 ``` 1820 { 1821 "event": "server.online", 1822 "params": { 1823 "calls": [ 1824 { 1825 "jid": "g-3f7e2a85-49f5-4586-8229-d9c52813dcb2" 1826 } 1827 ], 1828 "contacts": [ 1829 { 1830 "afk": false, 1831 "jid": "d-bd500a50-3a38-44d1-a43c-fb1a48e1a79e", 1832 "mobile": false 1833 } 1834 ] 1835 } 1836 } 1837 ``` 1838 ### "server.panic" 1839 1840 Event structure: [ServerPanic](#ServerPanic) 1841 1842 Critical server error 1843 1844 ``` 1845 { 1846 "event": "server.panic", 1847 "params": { 1848 "code": "INVALID_TEAM", 1849 "debug": null 1850 } 1851 } 1852 ``` 1853 ### "server.processing" 1854 1855 Event structure: [ServerProcessing](#ServerProcessing) 1856 1857 Status of background operation 1858 1859 ``` 1860 EVENT MISSING EXAMPLE 1861 ``` 1862 ### "server.remind.deleted" 1863 1864 Event structure: [ServerRemindDeleted](#ServerRemindDeleted) 1865 1866 Task or group remind deleted 1867 1868 ``` 1869 { 1870 "event": "server.remind.deleted", 1871 "params": { 1872 "reminds": [ 1873 { 1874 "uid": "22018199-c3ae-4a9c-829e-985e975eb62a" 1875 } 1876 ] 1877 } 1878 } 1879 ``` 1880 ### "server.remind.fired" 1881 1882 Event structure: [ServerRemindFired](#ServerRemindFired) 1883 1884 Task or group remind fired 1885 1886 ``` 1887 { 1888 "event": "server.remind.fired", 1889 "params": { 1890 "reminds": [ 1891 { 1892 "chat": "t-2c527748-2e00-440e-a625-58121d42fdad", 1893 "fire_at": "2019-09-27T11:01:03.428564Z", 1894 "uid": "22018199-c3ae-4a9c-829e-985e975eb62a" 1895 } 1896 ] 1897 } 1898 } 1899 ``` 1900 ### "server.remind.updated" 1901 1902 Event structure: [ServerRemindUpdated](#ServerRemindUpdated) 1903 1904 Task/group remind created or changed 1905 1906 ``` 1907 { 1908 "event": "server.remind.updated", 1909 "params": { 1910 "reminds": [ 1911 { 1912 "chat": "t-2c527748-2e00-440e-a625-58121d42fdad", 1913 "fire_at": "2019-09-27T11:01:03.428564Z", 1914 "uid": "22018199-c3ae-4a9c-829e-985e975eb62a" 1915 } 1916 ] 1917 } 1918 } 1919 ``` 1920 ### "server.roster" 1921 1922 Event structure: [ServerRoster](#ServerRoster) 1923 1924 1925 1926 ``` 1927 { 1928 "event": "server.roster", 1929 "params": { 1930 "badge": 449, 1931 "contact_sections": [ 1932 { 1933 "gentime": 1568764805859444992, 1934 "name": "Боты", 1935 "sort_ordering": 99, 1936 "uid": "3a8b23f2-25b4-4acb-afab-590303bedd50" 1937 } 1938 ], 1939 "contacts": [ 1940 { 1941 "botname": "systembot", 1942 "can_send_message": true, 1943 "changeable_fields": [], 1944 "contact_email": "support@tada.team", 1945 "contact_phone": "", 1946 "display_name": "tada.teamBot", 1947 "icons": { 1948 "lg": { 1949 "height": 512, 1950 "url": "http://127.0.0.1:8000/static/tada-bots/systembot512.png", 1951 "width": 512 1952 }, 1953 "sm": { 1954 "height": 256, 1955 "url": "http://127.0.0.1:8000/static/tada-bots/systembot256.png", 1956 "width": 256 1957 } 1958 }, 1959 "jid": "d-23eae5d4-4371-4a43-8815-a6a655cb623e", 1960 "last_activity": "2019-09-27T01:01:32.354349Z", 1961 "role": "Виртуальный ассистент", 1962 "section": "3a8b23f2-25b4-4acb-afab-590303bedd50", 1963 "sections": [ 1964 "3a8b23f2-25b4-4acb-afab-590303bedd50" 1965 ], 1966 "status": "member" 1967 }, 1968 { 1969 "can_add_to_group": true, 1970 "can_call": true, 1971 "can_create_task": true, 1972 "can_send_message": true, 1973 "changeable_fields": [], 1974 "contact_email": "", 1975 "contact_phone": "+75550000000", 1976 "display_name": "Контакт №1", 1977 "icons": { 1978 "stub": "http://127.0.0.1:8000/u/578e3c/%D0%9A%E2%84%96/256.png" 1979 }, 1980 "jid": "d-181b9859-ea3f-4e26-85c9-9e7ee7aaaa9a", 1981 "last_activity": null, 1982 "role": "", 1983 "sections": [], 1984 "status": "admin" 1985 }, 1986 { 1987 "can_add_to_group": true, 1988 "can_call": true, 1989 "can_create_task": true, 1990 "can_send_message": true, 1991 "changeable_fields": [], 1992 "contact_email": "", 1993 "contact_phone": "+75550000009", 1994 "display_name": "Контакт №10", 1995 "icons": { 1996 "stub": "http://127.0.0.1:8000/u/579dda/10/256.png" 1997 }, 1998 "jid": "d-a87e168a-78df-49aa-9abb-9b5409eb7de5", 1999 "last_activity": null, 2000 "role": "", 2001 "sections": [], 2002 "status": "member" 2003 }, 2004 { 2005 "can_add_to_group": true, 2006 "can_call": true, 2007 "can_create_task": true, 2008 "can_send_message": true, 2009 "changeable_fields": [], 2010 "contact_email": "", 2011 "contact_phone": "+75550000010", 2012 "display_name": "Контакт №11", 2013 "icons": { 2014 "stub": "http://127.0.0.1:8000/u/8e88eb/11/256.png" 2015 }, 2016 "jid": "d-8bb2ed5e-5cf4-457c-9a7b-070d7e4116a9", 2017 "last_activity": null, 2018 "role": "", 2019 "sections": [], 2020 "status": "member" 2021 }, 2022 { 2023 "can_add_to_group": true, 2024 "can_call": true, 2025 "can_create_task": true, 2026 "can_send_message": true, 2027 "changeable_fields": [], 2028 "contact_email": "", 2029 "contact_phone": "+75550000011", 2030 "display_name": "Контакт №12", 2031 "icons": { 2032 "stub": "http://127.0.0.1:8000/u/e36659/12/256.png" 2033 }, 2034 "jid": "d-5049173a-93dc-4904-8796-6807b6f07bf1", 2035 "last_activity": null, 2036 "role": "", 2037 "sections": [], 2038 "status": "member" 2039 }, 2040 { 2041 "can_add_to_group": true, 2042 "can_call": true, 2043 "can_create_task": true, 2044 "can_send_message": true, 2045 "changeable_fields": [], 2046 "contact_email": "", 2047 "contact_phone": "+75550000012", 2048 "display_name": "Контакт №13", 2049 "icons": { 2050 "stub": "http://127.0.0.1:8000/u/f0769a/13/256.png" 2051 }, 2052 "jid": "d-26879ae0-a4b9-4523-8875-4e26c4787d27", 2053 "last_activity": null, 2054 "role": "", 2055 "sections": [], 2056 "status": "member" 2057 }, 2058 { 2059 "can_add_to_group": true, 2060 "can_call": true, 2061 "can_create_task": true, 2062 "can_send_message": true, 2063 "changeable_fields": [], 2064 "contact_email": "", 2065 "contact_phone": "+75550000013", 2066 "display_name": "Контакт №14", 2067 "icons": { 2068 "stub": "http://127.0.0.1:8000/u/f08c50/14/256.png" 2069 }, 2070 "jid": "d-84e3cb48-598b-4ffd-918e-0662ebeb3469", 2071 "last_activity": null, 2072 "role": "", 2073 "sections": [], 2074 "status": "member" 2075 }, 2076 { 2077 "can_add_to_group": true, 2078 "can_call": true, 2079 "can_create_task": true, 2080 "can_send_message": true, 2081 "changeable_fields": [], 2082 "contact_email": "", 2083 "contact_phone": "+75550000014", 2084 "display_name": "Контакт №15", 2085 "icons": { 2086 "stub": "http://127.0.0.1:8000/u/578e3c/15/256.png" 2087 }, 2088 "jid": "d-6496b27c-3251-4683-896a-a7f2191b7a33", 2089 "last_activity": null, 2090 "role": "", 2091 "sections": [], 2092 "status": "member" 2093 }, 2094 { 2095 "can_add_to_group": true, 2096 "can_call": true, 2097 "can_create_task": true, 2098 "can_send_message": true, 2099 "changeable_fields": [], 2100 "contact_email": "", 2101 "contact_phone": "+75550000015", 2102 "display_name": "Контакт №16", 2103 "icons": { 2104 "stub": "http://127.0.0.1:8000/u/63bed3/16/256.png" 2105 }, 2106 "jid": "d-c540dd6e-4da3-4b65-8e89-bd35554978c2", 2107 "last_activity": null, 2108 "role": "", 2109 "sections": [], 2110 "status": "member" 2111 }, 2112 { 2113 "can_add_to_group": true, 2114 "can_call": true, 2115 "can_create_task": true, 2116 "can_send_message": true, 2117 "changeable_fields": [], 2118 "contact_email": "", 2119 "contact_phone": "+75550000016", 2120 "display_name": "Контакт №17", 2121 "icons": { 2122 "stub": "http://127.0.0.1:8000/u/579dda/17/256.png" 2123 }, 2124 "jid": "d-951775af-15fd-4e5f-bb13-099c9afd6586", 2125 "last_activity": null, 2126 "role": "", 2127 "sections": [], 2128 "status": "member" 2129 }, 2130 { 2131 "can_add_to_group": true, 2132 "can_call": true, 2133 "can_create_task": true, 2134 "can_send_message": true, 2135 "changeable_fields": [], 2136 "contact_email": "", 2137 "contact_phone": "+75550000017", 2138 "display_name": "Контакт №18", 2139 "icons": { 2140 "stub": "http://127.0.0.1:8000/u/8e88eb/18/256.png" 2141 }, 2142 "jid": "d-ce8117ae-867d-400d-b7c8-e7df6a2ecee7", 2143 "last_activity": null, 2144 "role": "", 2145 "sections": [], 2146 "status": "member" 2147 }, 2148 { 2149 "can_add_to_group": true, 2150 "can_call": true, 2151 "can_create_task": true, 2152 "can_send_message": true, 2153 "changeable_fields": [], 2154 "contact_email": "", 2155 "contact_phone": "+75550000018", 2156 "display_name": "Контакт №19", 2157 "icons": { 2158 "stub": "http://127.0.0.1:8000/u/e36659/19/256.png" 2159 }, 2160 "jid": "d-1d60b554-5da7-4f17-a078-eb77168081a8", 2161 "last_activity": null, 2162 "role": "", 2163 "sections": [], 2164 "status": "member" 2165 }, 2166 { 2167 "alt_send": false, 2168 "can_add_to_group": true, 2169 "can_create_task": true, 2170 "can_delete": true, 2171 "changeable_fields": [ 2172 "alt_send", 2173 "contact_email", 2174 "contact_mshort_view", 2175 "contact_phone", 2176 "contact_short_view", 2177 "contact_show_archived", 2178 "debug_show_activity", 2179 "default_lang", 2180 "family_name", 2181 "given_name", 2182 "group_mshort_view", 2183 "group_notifications_enabled", 2184 "group_short_view", 2185 "icons", 2186 "phone", 2187 "role", 2188 "task_mshort_view", 2189 "task_notifications_enabled", 2190 "task_short_view", 2191 "unread_first" 2192 ], 2193 "contact_email": "", 2194 "contact_mshort_view": false, 2195 "contact_phone": "+75550000001", 2196 "contact_short_view": false, 2197 "contact_show_archived": false, 2198 "debug_show_activity": false, 2199 "default_lang": null, 2200 "display_name": "Контакт №2", 2201 "family_name": "№2", 2202 "given_name": "Контакт", 2203 "group_mshort_view": false, 2204 "group_notifications_enabled": true, 2205 "group_short_view": false, 2206 "icons": { 2207 "stub": "http://127.0.0.1:8000/u/63bed3/%D0%9A%E2%84%96/256.png" 2208 }, 2209 "jid": "d-bd500a50-3a38-44d1-a43c-fb1a48e1a79e", 2210 "last_activity": null, 2211 "role": "", 2212 "sections": [], 2213 "status": "member", 2214 "task_mshort_view": false, 2215 "task_notifications_enabled": true, 2216 "task_short_view": false, 2217 "unread_first": false 2218 }, 2219 { 2220 "can_add_to_group": true, 2221 "can_call": true, 2222 "can_create_task": true, 2223 "can_send_message": true, 2224 "changeable_fields": [], 2225 "contact_email": "", 2226 "contact_phone": "+75550000019", 2227 "display_name": "Контакт №20", 2228 "icons": { 2229 "stub": "http://127.0.0.1:8000/u/f0769a/20/256.png" 2230 }, 2231 "jid": "d-13b47a4f-4473-4a8f-82ef-00b00ce5c02f", 2232 "last_activity": null, 2233 "role": "", 2234 "sections": [], 2235 "status": "member" 2236 }, 2237 { 2238 "can_add_to_group": true, 2239 "can_call": true, 2240 "can_create_task": true, 2241 "can_send_message": true, 2242 "changeable_fields": [], 2243 "contact_email": "", 2244 "contact_phone": "+75550000020", 2245 "display_name": "Контакт №21", 2246 "icons": { 2247 "stub": "http://127.0.0.1:8000/u/f08c50/21/256.png" 2248 }, 2249 "jid": "d-14ba8969-e3a9-4daf-b6c3-bed4ea931e06", 2250 "last_activity": null, 2251 "role": "", 2252 "sections": [], 2253 "status": "member" 2254 }, 2255 { 2256 "can_add_to_group": true, 2257 "can_call": true, 2258 "can_create_task": true, 2259 "can_send_message": true, 2260 "changeable_fields": [], 2261 "contact_email": "", 2262 "contact_phone": "+75550000021", 2263 "display_name": "Контакт №22", 2264 "icons": { 2265 "stub": "http://127.0.0.1:8000/u/578e3c/22/256.png" 2266 }, 2267 "jid": "d-571d1843-96d1-497b-a53c-2cc03d815194", 2268 "last_activity": null, 2269 "role": "", 2270 "sections": [], 2271 "status": "member" 2272 }, 2273 { 2274 "can_add_to_group": true, 2275 "can_call": true, 2276 "can_create_task": true, 2277 "can_send_message": true, 2278 "changeable_fields": [], 2279 "contact_email": "", 2280 "contact_phone": "+75550000022", 2281 "display_name": "Контакт №23", 2282 "icons": { 2283 "stub": "http://127.0.0.1:8000/u/63bed3/23/256.png" 2284 }, 2285 "jid": "d-c15b9ad4-b03b-4dc1-aeaa-725e09bedbcf", 2286 "last_activity": null, 2287 "role": "", 2288 "sections": [], 2289 "status": "member" 2290 }, 2291 { 2292 "can_add_to_group": true, 2293 "can_call": true, 2294 "can_create_task": true, 2295 "can_send_message": true, 2296 "changeable_fields": [], 2297 "contact_email": "", 2298 "contact_phone": "+75550000023", 2299 "display_name": "Контакт №24", 2300 "icons": { 2301 "stub": "http://127.0.0.1:8000/u/579dda/24/256.png" 2302 }, 2303 "jid": "d-0f902404-96c4-4c5e-8385-d33a46fd5566", 2304 "last_activity": null, 2305 "role": "", 2306 "sections": [], 2307 "status": "member" 2308 }, 2309 { 2310 "can_add_to_group": true, 2311 "can_call": true, 2312 "can_create_task": true, 2313 "can_send_message": true, 2314 "changeable_fields": [], 2315 "contact_email": "", 2316 "contact_phone": "+75550000024", 2317 "display_name": "Контакт №25", 2318 "icons": { 2319 "stub": "http://127.0.0.1:8000/u/8e88eb/25/256.png" 2320 }, 2321 "jid": "d-b54d8559-4d94-46e6-b1ff-673a55e5cf5d", 2322 "last_activity": null, 2323 "role": "", 2324 "sections": [], 2325 "status": "member" 2326 }, 2327 { 2328 "can_add_to_group": true, 2329 "can_call": true, 2330 "can_create_task": true, 2331 "can_send_message": true, 2332 "changeable_fields": [], 2333 "contact_email": "", 2334 "contact_phone": "+75550000025", 2335 "display_name": "Контакт №26", 2336 "icons": { 2337 "stub": "http://127.0.0.1:8000/u/e36659/26/256.png" 2338 }, 2339 "jid": "d-d62ca7c6-83b5-4853-bfc5-10e8c2e68b13", 2340 "last_activity": null, 2341 "role": "", 2342 "sections": [], 2343 "status": "member" 2344 }, 2345 { 2346 "can_add_to_group": true, 2347 "can_call": true, 2348 "can_create_task": true, 2349 "can_send_message": true, 2350 "changeable_fields": [], 2351 "contact_email": "", 2352 "contact_phone": "+75550000026", 2353 "display_name": "Контакт №27", 2354 "icons": { 2355 "stub": "http://127.0.0.1:8000/u/f0769a/27/256.png" 2356 }, 2357 "jid": "d-7589ac63-4c0d-4685-9bf5-63b83cdcc3ab", 2358 "last_activity": null, 2359 "role": "", 2360 "sections": [], 2361 "status": "member" 2362 }, 2363 { 2364 "can_add_to_group": true, 2365 "can_call": true, 2366 "can_create_task": true, 2367 "can_send_message": true, 2368 "changeable_fields": [], 2369 "contact_email": "", 2370 "contact_phone": "+75550000027", 2371 "display_name": "Контакт №28", 2372 "icons": { 2373 "stub": "http://127.0.0.1:8000/u/f08c50/28/256.png" 2374 }, 2375 "jid": "d-10e10caf-6127-4649-b2d6-5ad1395d32a5", 2376 "last_activity": null, 2377 "role": "", 2378 "sections": [], 2379 "status": "member" 2380 }, 2381 { 2382 "can_add_to_group": true, 2383 "can_call": true, 2384 "can_create_task": true, 2385 "can_send_message": true, 2386 "changeable_fields": [], 2387 "contact_email": "", 2388 "contact_phone": "+75550000028", 2389 "display_name": "Контакт №29", 2390 "icons": { 2391 "stub": "http://127.0.0.1:8000/u/578e3c/29/256.png" 2392 }, 2393 "jid": "d-1b20a9aa-ecf5-49fd-8477-0998d42e1ade", 2394 "last_activity": null, 2395 "role": "", 2396 "sections": [], 2397 "status": "member" 2398 }, 2399 { 2400 "can_add_to_group": true, 2401 "can_call": true, 2402 "can_create_task": true, 2403 "can_send_message": true, 2404 "changeable_fields": [], 2405 "contact_email": "", 2406 "contact_phone": "+75550000002", 2407 "display_name": "Контакт №3", 2408 "icons": { 2409 "stub": "http://127.0.0.1:8000/u/579dda/%D0%9A%E2%84%96/256.png" 2410 }, 2411 "jid": "d-ee3d7c07-fe0f-4cbd-bf3a-b8e72f0ff1c6", 2412 "last_activity": null, 2413 "role": "", 2414 "sections": [], 2415 "status": "member" 2416 }, 2417 { 2418 "can_add_to_group": true, 2419 "can_call": true, 2420 "can_create_task": true, 2421 "can_send_message": true, 2422 "changeable_fields": [], 2423 "contact_email": "", 2424 "contact_phone": "+75550000029", 2425 "display_name": "Контакт №30", 2426 "icons": { 2427 "stub": "http://127.0.0.1:8000/u/63bed3/30/256.png" 2428 }, 2429 "jid": "d-bc7550f7-ae4b-41de-82d3-d4b5b5b7f600", 2430 "last_activity": null, 2431 "role": "", 2432 "sections": [], 2433 "status": "member" 2434 }, 2435 { 2436 "can_add_to_group": true, 2437 "can_call": true, 2438 "can_create_task": true, 2439 "can_send_message": true, 2440 "changeable_fields": [], 2441 "contact_email": "", 2442 "contact_phone": "+75550000030", 2443 "display_name": "Контакт №31", 2444 "icons": { 2445 "stub": "http://127.0.0.1:8000/u/579dda/31/256.png" 2446 }, 2447 "jid": "d-bfe1fa23-c32b-48ea-8fed-d2b6f583fb77", 2448 "last_activity": null, 2449 "role": "", 2450 "sections": [], 2451 "status": "member" 2452 }, 2453 { 2454 "can_add_to_group": true, 2455 "can_call": true, 2456 "can_create_task": true, 2457 "can_send_message": true, 2458 "changeable_fields": [], 2459 "contact_email": "", 2460 "contact_phone": "+75550000031", 2461 "display_name": "Контакт №32", 2462 "icons": { 2463 "stub": "http://127.0.0.1:8000/u/8e88eb/32/256.png" 2464 }, 2465 "jid": "d-a792832a-d9f6-4bbc-b545-f2800e329c8c", 2466 "last_activity": null, 2467 "role": "", 2468 "sections": [], 2469 "status": "member" 2470 }, 2471 { 2472 "can_add_to_group": true, 2473 "can_call": true, 2474 "can_create_task": true, 2475 "can_send_message": true, 2476 "changeable_fields": [], 2477 "contact_email": "", 2478 "contact_phone": "+75550000003", 2479 "display_name": "Контакт №4", 2480 "icons": { 2481 "stub": "http://127.0.0.1:8000/u/8e88eb/%D0%9A%E2%84%96/256.png" 2482 }, 2483 "jid": "d-c094f142-1b54-4fae-8128-9b41504b56a9", 2484 "last_activity": null, 2485 "role": "", 2486 "sections": [], 2487 "status": "member" 2488 }, 2489 { 2490 "can_add_to_group": true, 2491 "can_call": true, 2492 "can_create_task": true, 2493 "can_send_message": true, 2494 "changeable_fields": [], 2495 "contact_email": "", 2496 "contact_phone": "+75550000004", 2497 "display_name": "Контакт №5", 2498 "icons": { 2499 "stub": "http://127.0.0.1:8000/u/e36659/%D0%9A%E2%84%96/256.png" 2500 }, 2501 "jid": "d-53e898d1-3d7b-4cc4-9ff6-ca034b5709cb", 2502 "last_activity": null, 2503 "role": "", 2504 "sections": [], 2505 "status": "member" 2506 }, 2507 { 2508 "can_add_to_group": true, 2509 "can_call": true, 2510 "can_create_task": true, 2511 "can_send_message": true, 2512 "changeable_fields": [], 2513 "contact_email": "", 2514 "contact_phone": "+75550000005", 2515 "display_name": "Контакт №6", 2516 "icons": { 2517 "stub": "http://127.0.0.1:8000/u/f0769a/%D0%9A%E2%84%96/256.png" 2518 }, 2519 "jid": "d-af8d0ae3-ff07-4c49-94d0-7d531f972b0e", 2520 "last_activity": null, 2521 "role": "", 2522 "sections": [], 2523 "status": "member" 2524 }, 2525 { 2526 "can_add_to_group": true, 2527 "can_call": true, 2528 "can_create_task": true, 2529 "can_send_message": true, 2530 "changeable_fields": [], 2531 "contact_email": "", 2532 "contact_phone": "+75550000006", 2533 "display_name": "Контакт №7", 2534 "icons": { 2535 "stub": "http://127.0.0.1:8000/u/f08c50/%D0%9A%E2%84%96/256.png" 2536 }, 2537 "jid": "d-f73f2847-4fcb-4f7e-bc11-8d2aaf21cf00", 2538 "last_activity": null, 2539 "role": "", 2540 "sections": [], 2541 "status": "member" 2542 }, 2543 { 2544 "can_add_to_group": true, 2545 "can_call": true, 2546 "can_create_task": true, 2547 "can_send_message": true, 2548 "changeable_fields": [], 2549 "contact_email": "", 2550 "contact_phone": "+75550000007", 2551 "display_name": "Контакт №8", 2552 "icons": { 2553 "stub": "http://127.0.0.1:8000/u/578e3c/%D0%9A%E2%84%96/256.png" 2554 }, 2555 "jid": "d-2bde58fa-3b2b-4c10-8041-b0a65e6d74b4", 2556 "last_activity": null, 2557 "role": "", 2558 "sections": [], 2559 "status": "member" 2560 }, 2561 { 2562 "can_add_to_group": true, 2563 "can_call": true, 2564 "can_create_task": true, 2565 "can_send_message": true, 2566 "changeable_fields": [], 2567 "contact_email": "", 2568 "contact_phone": "+75550000008", 2569 "display_name": "Контакт №9", 2570 "icons": { 2571 "stub": "http://127.0.0.1:8000/u/63bed3/%D0%9A%E2%84%96/256.png" 2572 }, 2573 "jid": "d-425ef763-2162-4dcf-8e0e-5ce0615518d8", 2574 "last_activity": null, 2575 "role": "", 2576 "sections": [], 2577 "status": "member" 2578 }, 2579 { 2580 "botname": "notebot", 2581 "can_send_message": true, 2582 "changeable_fields": [], 2583 "contact_email": "", 2584 "contact_phone": "", 2585 "display_name": "Мои заметки", 2586 "icons": { 2587 "lg": { 2588 "height": 512, 2589 "url": "http://127.0.0.1:8000/static/tada-bots/notebot512.png", 2590 "width": 512 2591 }, 2592 "sm": { 2593 "height": 256, 2594 "url": "http://127.0.0.1:8000/static/tada-bots/notebot256.png", 2595 "width": 256 2596 } 2597 }, 2598 "jid": "d-6d02dd61-8c07-4d11-a1f5-4584569d7b6d", 2599 "last_activity": "2019-09-27T01:01:32.354092Z", 2600 "role": "Блокнот", 2601 "section": "3a8b23f2-25b4-4acb-afab-590303bedd50", 2602 "sections": [ 2603 "3a8b23f2-25b4-4acb-afab-590303bedd50" 2604 ], 2605 "status": "member" 2606 } 2607 ], 2608 "devices": [], 2609 "direct_chats": [ 2610 { 2611 "can_call": true, 2612 "can_send_message": true, 2613 "chat_type": "direct", 2614 "counters_enabled": true, 2615 "created": "2019-09-18T00:00:42.318781Z", 2616 "display_name": "Контакт №32", 2617 "gentime": 1568764842326248192, 2618 "icons": { 2619 "stub": "http://127.0.0.1:8000/u/8e88eb/32/256.png" 2620 }, 2621 "jid": "d-a792832a-d9f6-4bbc-b545-f2800e329c8c", 2622 "notifications_enabled": true 2623 }, 2624 { 2625 "can_call": true, 2626 "can_send_message": true, 2627 "chat_type": "direct", 2628 "counters_enabled": true, 2629 "created": "2019-09-18T00:00:41.097659Z", 2630 "display_name": "Контакт №31", 2631 "gentime": 1568764841104200192, 2632 "icons": { 2633 "stub": "http://127.0.0.1:8000/u/579dda/31/256.png" 2634 }, 2635 "jid": "d-bfe1fa23-c32b-48ea-8fed-d2b6f583fb77", 2636 "notifications_enabled": true 2637 }, 2638 { 2639 "can_call": true, 2640 "can_send_message": true, 2641 "chat_type": "direct", 2642 "counters_enabled": true, 2643 "created": "2019-09-18T00:00:38.428242Z", 2644 "display_name": "Контакт №30", 2645 "gentime": 1568764838432389632, 2646 "icons": { 2647 "stub": "http://127.0.0.1:8000/u/63bed3/30/256.png" 2648 }, 2649 "jid": "d-bc7550f7-ae4b-41de-82d3-d4b5b5b7f600", 2650 "notifications_enabled": true 2651 }, 2652 { 2653 "can_call": true, 2654 "can_send_message": true, 2655 "chat_type": "direct", 2656 "counters_enabled": true, 2657 "created": "2019-09-18T00:00:36.676433Z", 2658 "display_name": "Контакт №29", 2659 "gentime": 1568764836680841984, 2660 "icons": { 2661 "stub": "http://127.0.0.1:8000/u/578e3c/29/256.png" 2662 }, 2663 "jid": "d-1b20a9aa-ecf5-49fd-8477-0998d42e1ade", 2664 "notifications_enabled": true 2665 }, 2666 { 2667 "can_call": true, 2668 "can_send_message": true, 2669 "chat_type": "direct", 2670 "counters_enabled": true, 2671 "created": "2019-09-18T00:00:34.945690Z", 2672 "display_name": "Контакт №28", 2673 "gentime": 1568764834949238528, 2674 "icons": { 2675 "stub": "http://127.0.0.1:8000/u/f08c50/28/256.png" 2676 }, 2677 "jid": "d-10e10caf-6127-4649-b2d6-5ad1395d32a5", 2678 "notifications_enabled": true 2679 }, 2680 { 2681 "can_call": true, 2682 "can_send_message": true, 2683 "chat_type": "direct", 2684 "counters_enabled": true, 2685 "created": "2019-09-18T00:00:33.326639Z", 2686 "display_name": "Контакт №27", 2687 "gentime": 1568764833332984320, 2688 "icons": { 2689 "stub": "http://127.0.0.1:8000/u/f0769a/27/256.png" 2690 }, 2691 "jid": "d-7589ac63-4c0d-4685-9bf5-63b83cdcc3ab", 2692 "notifications_enabled": true 2693 }, 2694 { 2695 "can_call": true, 2696 "can_send_message": true, 2697 "chat_type": "direct", 2698 "counters_enabled": true, 2699 "created": "2019-09-18T00:00:31.700784Z", 2700 "display_name": "Контакт №26", 2701 "gentime": 1568764831705233664, 2702 "icons": { 2703 "stub": "http://127.0.0.1:8000/u/e36659/26/256.png" 2704 }, 2705 "jid": "d-d62ca7c6-83b5-4853-bfc5-10e8c2e68b13", 2706 "notifications_enabled": true 2707 }, 2708 { 2709 "can_call": true, 2710 "can_send_message": true, 2711 "chat_type": "direct", 2712 "counters_enabled": true, 2713 "created": "2019-09-18T00:00:30.429840Z", 2714 "display_name": "Контакт №25", 2715 "gentime": 1568764830435267328, 2716 "icons": { 2717 "stub": "http://127.0.0.1:8000/u/8e88eb/25/256.png" 2718 }, 2719 "jid": "d-b54d8559-4d94-46e6-b1ff-673a55e5cf5d", 2720 "notifications_enabled": true 2721 }, 2722 { 2723 "can_call": true, 2724 "can_send_message": true, 2725 "chat_type": "direct", 2726 "counters_enabled": true, 2727 "created": "2019-09-18T00:00:28.982264Z", 2728 "display_name": "Контакт №24", 2729 "gentime": 1568764828988044800, 2730 "icons": { 2731 "stub": "http://127.0.0.1:8000/u/579dda/24/256.png" 2732 }, 2733 "jid": "d-0f902404-96c4-4c5e-8385-d33a46fd5566", 2734 "notifications_enabled": true 2735 }, 2736 { 2737 "can_call": true, 2738 "can_send_message": true, 2739 "chat_type": "direct", 2740 "counters_enabled": true, 2741 "created": "2019-09-18T00:00:27.429493Z", 2742 "display_name": "Контакт №23", 2743 "gentime": 1568764827437857536, 2744 "icons": { 2745 "stub": "http://127.0.0.1:8000/u/63bed3/23/256.png" 2746 }, 2747 "jid": "d-c15b9ad4-b03b-4dc1-aeaa-725e09bedbcf", 2748 "notifications_enabled": true 2749 }, 2750 { 2751 "can_call": true, 2752 "can_send_message": true, 2753 "chat_type": "direct", 2754 "counters_enabled": true, 2755 "created": "2019-09-18T00:00:26.171104Z", 2756 "display_name": "Контакт №22", 2757 "gentime": 1568764826174592768, 2758 "icons": { 2759 "stub": "http://127.0.0.1:8000/u/578e3c/22/256.png" 2760 }, 2761 "jid": "d-571d1843-96d1-497b-a53c-2cc03d815194", 2762 "notifications_enabled": true 2763 }, 2764 { 2765 "can_call": true, 2766 "can_send_message": true, 2767 "chat_type": "direct", 2768 "counters_enabled": true, 2769 "created": "2019-09-18T00:00:25.083140Z", 2770 "display_name": "Контакт №21", 2771 "gentime": 1568764825085393152, 2772 "icons": { 2773 "stub": "http://127.0.0.1:8000/u/f08c50/21/256.png" 2774 }, 2775 "jid": "d-14ba8969-e3a9-4daf-b6c3-bed4ea931e06", 2776 "notifications_enabled": true 2777 }, 2778 { 2779 "can_call": true, 2780 "can_send_message": true, 2781 "chat_type": "direct", 2782 "counters_enabled": true, 2783 "created": "2019-09-18T00:00:23.970206Z", 2784 "display_name": "Контакт №20", 2785 "gentime": 1568764823973247744, 2786 "icons": { 2787 "stub": "http://127.0.0.1:8000/u/f0769a/20/256.png" 2788 }, 2789 "jid": "d-13b47a4f-4473-4a8f-82ef-00b00ce5c02f", 2790 "notifications_enabled": true 2791 }, 2792 { 2793 "can_call": true, 2794 "can_send_message": true, 2795 "chat_type": "direct", 2796 "counters_enabled": true, 2797 "created": "2019-09-18T00:00:23.013194Z", 2798 "display_name": "Контакт №19", 2799 "gentime": 1568764823017283072, 2800 "icons": { 2801 "stub": "http://127.0.0.1:8000/u/e36659/19/256.png" 2802 }, 2803 "jid": "d-1d60b554-5da7-4f17-a078-eb77168081a8", 2804 "notifications_enabled": true 2805 }, 2806 { 2807 "can_call": true, 2808 "can_send_message": true, 2809 "chat_type": "direct", 2810 "counters_enabled": true, 2811 "created": "2019-09-18T00:00:21.974534Z", 2812 "display_name": "Контакт №18", 2813 "gentime": 1568764821976428800, 2814 "icons": { 2815 "stub": "http://127.0.0.1:8000/u/8e88eb/18/256.png" 2816 }, 2817 "jid": "d-ce8117ae-867d-400d-b7c8-e7df6a2ecee7", 2818 "notifications_enabled": true 2819 }, 2820 { 2821 "can_call": true, 2822 "can_send_message": true, 2823 "chat_type": "direct", 2824 "counters_enabled": true, 2825 "created": "2019-09-18T00:00:21.113294Z", 2826 "display_name": "Контакт №17", 2827 "gentime": 1568764821115754496, 2828 "icons": { 2829 "stub": "http://127.0.0.1:8000/u/579dda/17/256.png" 2830 }, 2831 "jid": "d-951775af-15fd-4e5f-bb13-099c9afd6586", 2832 "notifications_enabled": true 2833 }, 2834 { 2835 "can_call": true, 2836 "can_send_message": true, 2837 "chat_type": "direct", 2838 "counters_enabled": true, 2839 "created": "2019-09-18T00:00:20.254806Z", 2840 "display_name": "Контакт №16", 2841 "gentime": 1568764820257041664, 2842 "icons": { 2843 "stub": "http://127.0.0.1:8000/u/63bed3/16/256.png" 2844 }, 2845 "jid": "d-c540dd6e-4da3-4b65-8e89-bd35554978c2", 2846 "notifications_enabled": true 2847 }, 2848 { 2849 "can_call": true, 2850 "can_send_message": true, 2851 "chat_type": "direct", 2852 "counters_enabled": true, 2853 "created": "2019-09-18T00:00:19.406973Z", 2854 "display_name": "Контакт №15", 2855 "gentime": 1568764819409007360, 2856 "icons": { 2857 "stub": "http://127.0.0.1:8000/u/578e3c/15/256.png" 2858 }, 2859 "jid": "d-6496b27c-3251-4683-896a-a7f2191b7a33", 2860 "notifications_enabled": true 2861 }, 2862 { 2863 "can_call": true, 2864 "can_send_message": true, 2865 "chat_type": "direct", 2866 "counters_enabled": true, 2867 "created": "2019-09-18T00:00:18.430679Z", 2868 "display_name": "Контакт №14", 2869 "gentime": 1568764818432459008, 2870 "icons": { 2871 "stub": "http://127.0.0.1:8000/u/f08c50/14/256.png" 2872 }, 2873 "jid": "d-84e3cb48-598b-4ffd-918e-0662ebeb3469", 2874 "notifications_enabled": true 2875 }, 2876 { 2877 "can_call": true, 2878 "can_send_message": true, 2879 "chat_type": "direct", 2880 "counters_enabled": true, 2881 "created": "2019-09-18T00:00:17.577868Z", 2882 "display_name": "Контакт №13", 2883 "gentime": 1568764817580576512, 2884 "icons": { 2885 "stub": "http://127.0.0.1:8000/u/f0769a/13/256.png" 2886 }, 2887 "jid": "d-26879ae0-a4b9-4523-8875-4e26c4787d27", 2888 "notifications_enabled": true 2889 }, 2890 { 2891 "can_call": true, 2892 "can_send_message": true, 2893 "chat_type": "direct", 2894 "counters_enabled": true, 2895 "created": "2019-09-18T00:00:16.423089Z", 2896 "display_name": "Контакт №12", 2897 "gentime": 1568764816433606656, 2898 "icons": { 2899 "stub": "http://127.0.0.1:8000/u/e36659/12/256.png" 2900 }, 2901 "jid": "d-5049173a-93dc-4904-8796-6807b6f07bf1", 2902 "notifications_enabled": true 2903 }, 2904 { 2905 "can_call": true, 2906 "can_send_message": true, 2907 "chat_type": "direct", 2908 "counters_enabled": true, 2909 "created": "2019-09-18T00:00:15.370702Z", 2910 "display_name": "Контакт №11", 2911 "gentime": 1568764815376827136, 2912 "icons": { 2913 "stub": "http://127.0.0.1:8000/u/8e88eb/11/256.png" 2914 }, 2915 "jid": "d-8bb2ed5e-5cf4-457c-9a7b-070d7e4116a9", 2916 "notifications_enabled": true 2917 }, 2918 { 2919 "can_call": true, 2920 "can_send_message": true, 2921 "chat_type": "direct", 2922 "counters_enabled": true, 2923 "created": "2019-09-18T00:00:14.302001Z", 2924 "display_name": "Контакт №10", 2925 "gentime": 1568764814322221056, 2926 "icons": { 2927 "stub": "http://127.0.0.1:8000/u/579dda/10/256.png" 2928 }, 2929 "jid": "d-a87e168a-78df-49aa-9abb-9b5409eb7de5", 2930 "notifications_enabled": true 2931 }, 2932 { 2933 "can_call": true, 2934 "can_send_message": true, 2935 "chat_type": "direct", 2936 "counters_enabled": true, 2937 "created": "2019-09-18T00:00:13.306725Z", 2938 "display_name": "Контакт №9", 2939 "gentime": 1568764813310813440, 2940 "icons": { 2941 "stub": "http://127.0.0.1:8000/u/63bed3/%D0%9A%E2%84%96/256.png" 2942 }, 2943 "jid": "d-425ef763-2162-4dcf-8e0e-5ce0615518d8", 2944 "notifications_enabled": true 2945 }, 2946 { 2947 "can_call": true, 2948 "can_send_message": true, 2949 "chat_type": "direct", 2950 "counters_enabled": true, 2951 "created": "2019-09-18T00:00:12.378013Z", 2952 "display_name": "Контакт №8", 2953 "gentime": 1568764812385766400, 2954 "icons": { 2955 "stub": "http://127.0.0.1:8000/u/578e3c/%D0%9A%E2%84%96/256.png" 2956 }, 2957 "jid": "d-2bde58fa-3b2b-4c10-8041-b0a65e6d74b4", 2958 "notifications_enabled": true 2959 }, 2960 { 2961 "can_call": true, 2962 "can_send_message": true, 2963 "chat_type": "direct", 2964 "counters_enabled": true, 2965 "created": "2019-09-18T00:00:11.451771Z", 2966 "display_name": "Контакт №7", 2967 "gentime": 1568764811455242240, 2968 "icons": { 2969 "stub": "http://127.0.0.1:8000/u/f08c50/%D0%9A%E2%84%96/256.png" 2970 }, 2971 "jid": "d-f73f2847-4fcb-4f7e-bc11-8d2aaf21cf00", 2972 "notifications_enabled": true 2973 }, 2974 { 2975 "can_call": true, 2976 "can_send_message": true, 2977 "chat_type": "direct", 2978 "counters_enabled": true, 2979 "created": "2019-09-18T00:00:10.605227Z", 2980 "display_name": "Контакт №6", 2981 "gentime": 1568764810616535296, 2982 "icons": { 2983 "stub": "http://127.0.0.1:8000/u/f0769a/%D0%9A%E2%84%96/256.png" 2984 }, 2985 "jid": "d-af8d0ae3-ff07-4c49-94d0-7d531f972b0e", 2986 "notifications_enabled": true 2987 }, 2988 { 2989 "can_call": true, 2990 "can_send_message": true, 2991 "chat_type": "direct", 2992 "counters_enabled": true, 2993 "created": "2019-09-18T00:00:09.803211Z", 2994 "display_name": "Контакт №5", 2995 "gentime": 1568764809805365248, 2996 "icons": { 2997 "stub": "http://127.0.0.1:8000/u/e36659/%D0%9A%E2%84%96/256.png" 2998 }, 2999 "jid": "d-53e898d1-3d7b-4cc4-9ff6-ca034b5709cb", 3000 "notifications_enabled": true 3001 }, 3002 { 3003 "can_call": true, 3004 "can_send_message": true, 3005 "chat_type": "direct", 3006 "counters_enabled": true, 3007 "created": "2019-09-18T00:00:09.082753Z", 3008 "display_name": "Контакт №4", 3009 "gentime": 1568764809084504320, 3010 "icons": { 3011 "stub": "http://127.0.0.1:8000/u/8e88eb/%D0%9A%E2%84%96/256.png" 3012 }, 3013 "jid": "d-c094f142-1b54-4fae-8128-9b41504b56a9", 3014 "notifications_enabled": true 3015 }, 3016 { 3017 "can_call": true, 3018 "can_send_message": true, 3019 "chat_type": "direct", 3020 "counters_enabled": true, 3021 "created": "2019-09-18T00:00:08.302823Z", 3022 "display_name": "Контакт №3", 3023 "gentime": 1568764808307773184, 3024 "icons": { 3025 "stub": "http://127.0.0.1:8000/u/579dda/%D0%9A%E2%84%96/256.png" 3026 }, 3027 "jid": "d-ee3d7c07-fe0f-4cbd-bf3a-b8e72f0ff1c6", 3028 "notifications_enabled": true 3029 }, 3030 { 3031 "can_send_message": true, 3032 "chat_type": "direct", 3033 "counters_enabled": true, 3034 "created": "2019-09-18T00:00:07.568804Z", 3035 "display_name": "tada.teamBot", 3036 "gentime": 1568764899109919304, 3037 "icons": { 3038 "lg": { 3039 "height": 512, 3040 "url": "http://127.0.0.1:8000/static/tada-bots/systembot512.png", 3041 "width": 512 3042 }, 3043 "sm": { 3044 "height": 256, 3045 "url": "http://127.0.0.1:8000/static/tada-bots/systembot256.png", 3046 "width": 256 3047 } 3048 }, 3049 "jid": "d-23eae5d4-4371-4a43-8815-a6a655cb623e", 3050 "last_message": { 3051 "chat": "d-23eae5d4-4371-4a43-8815-a6a655cb623e", 3052 "chat_type": "direct", 3053 "content": { 3054 "text": "Новый участник команды: @Контакт_№32", 3055 "type": "plain" 3056 }, 3057 "created": "2019-09-18T00:01:39.103766Z", 3058 "from": "d-23eae5d4-4371-4a43-8815-a6a655cb623e", 3059 "gentime": 1568764899109919304, 3060 "is_last": true, 3061 "links": [ 3062 { 3063 "_notify_ids": [ 3064 34 3065 ], 3066 "_status": 1, 3067 "pattern": "@Контакт_№32", 3068 "text": "@Контакт №32", 3069 "url": "otv://d-a792832a-d9f6-4bbc-b545-f2800e329c8c" 3070 } 3071 ], 3072 "message_id": "6610b580-1d97-46da-902c-36fe03db9392", 3073 "prev": "27980080-6d7c-4389-b2df-958bac09c801", 3074 "to": "d-bd500a50-3a38-44d1-a43c-fb1a48e1a79e" 3075 }, 3076 "notifications_enabled": true, 3077 "num_unread": 31 3078 }, 3079 { 3080 "can_send_message": true, 3081 "chat_type": "direct", 3082 "counters_enabled": true, 3083 "created": "2019-09-18T00:00:07.517104Z", 3084 "display_name": "Мои заметки", 3085 "gentime": 1568764807520538368, 3086 "icons": { 3087 "lg": { 3088 "height": 512, 3089 "url": "http://127.0.0.1:8000/static/tada-bots/notebot512.png", 3090 "width": 512 3091 }, 3092 "sm": { 3093 "height": 256, 3094 "url": "http://127.0.0.1:8000/static/tada-bots/notebot256.png", 3095 "width": 256 3096 } 3097 }, 3098 "jid": "d-6d02dd61-8c07-4d11-a1f5-4584569d7b6d", 3099 "notifications_enabled": true 3100 }, 3101 { 3102 "can_call": true, 3103 "can_send_message": true, 3104 "chat_type": "direct", 3105 "counters_enabled": true, 3106 "created": "2019-09-18T00:00:07.435409Z", 3107 "display_name": "Контакт №1", 3108 "gentime": 1568764807438561792, 3109 "icons": { 3110 "stub": "http://127.0.0.1:8000/u/578e3c/%D0%9A%E2%84%96/256.png" 3111 }, 3112 "jid": "d-181b9859-ea3f-4e26-85c9-9e7ee7aaaa9a", 3113 "notifications_enabled": true 3114 } 3115 ], 3116 "group_sections": [], 3117 "groups": [ 3118 { 3119 "can_call": true, 3120 "can_send_message": true, 3121 "chat_type": "group", 3122 "counters_enabled": true, 3123 "created": "2019-09-18T00:00:06.105362Z", 3124 "default_for_all": true, 3125 "description": "Сюда автоматически попадают все участники команды", 3126 "display_name": "Общий чат", 3127 "gentime": 1568764808134709248, 3128 "icons": { 3129 "stub": "http://127.0.0.1:8000/u/f0769a/%D0%9E%D1%87/256.png" 3130 }, 3131 "jid": "g-82d6c0d4-8921-4519-abb3-02f17373112f", 3132 "notifications_enabled": true, 3133 "num_members": 32, 3134 "public": true, 3135 "status": "member" 3136 } 3137 ], 3138 "task_chats": [ 3139 { 3140 "assignee": "d-bd500a50-3a38-44d1-a43c-fb1a48e1a79e", 3141 "can_call": true, 3142 "can_send_message": true, 3143 "chat_type": "task", 3144 "counters_enabled": true, 3145 "created": "2019-09-18T00:23:46.506612Z", 3146 "display_name": "1. Загрузить фото профиля", 3147 "gentime": 1568766227276560299, 3148 "icons": { 3149 "lg": { 3150 "height": 512, 3151 "url": "http://127.0.0.1:8000/static/tada-bots/systembot512.png", 3152 "width": 512 3153 }, 3154 "sm": { 3155 "height": 256, 3156 "url": "http://127.0.0.1:8000/static/tada-bots/systembot256.png", 3157 "width": 256 3158 } 3159 }, 3160 "jid": "t-2185340c-2956-4433-a4be-c42c73a5f226", 3161 "last_message": { 3162 "chat": "t-2185340c-2956-4433-a4be-c42c73a5f226", 3163 "chat_type": "task", 3164 "content": { 3165 "actor": "d-23eae5d4-4371-4a43-8815-a6a655cb623e", 3166 "text": "Created task for @Контакт_№2: Загрузить фото профиля\nВ мобильном приложении настройки вашего профиля находятся слева, в боковом меню. В веб-версии — в правом верхнем углу.", 3167 "title": "Created task for @Контакт_№2: Загрузить фото профиля\nВ мобильном приложении настройки вашего профиля находятся слева, в боковом меню. В веб-версии — в правом верхнем углу.", 3168 "type": "change" 3169 }, 3170 "created": "2019-09-18T00:23:47.276536Z", 3171 "from": "d-23eae5d4-4371-4a43-8815-a6a655cb623e", 3172 "gentime": 1568766227276560299, 3173 "is_first": true, 3174 "is_last": true, 3175 "links": [ 3176 { 3177 "_notify_ids": [ 3178 4 3179 ], 3180 "_status": 1, 3181 "pattern": "@Контакт_№2", 3182 "text": "@Контакт №2", 3183 "url": "otv://d-bd500a50-3a38-44d1-a43c-fb1a48e1a79e" 3184 } 3185 ], 3186 "message_id": "977f228b-2aa5-4b8b-a4f2-0ff36116aacc", 3187 "notice": true, 3188 "to": "t-2185340c-2956-4433-a4be-c42c73a5f226" 3189 }, 3190 "notifications_enabled": true, 3191 "num": 1, 3192 "num_members": 2, 3193 "num_unread": 1, 3194 "num_unread_notices": 1, 3195 "observers": [], 3196 "owner": "d-23eae5d4-4371-4a43-8815-a6a655cb623e", 3197 "tabs": [ 3198 "active", 3199 "in" 3200 ], 3201 "task_status": "new", 3202 "title": "Загрузить фото профиля" 3203 } 3204 ], 3205 "task_sections": [], 3206 "task_tabs": [ 3207 { 3208 "filters": [ 3209 { 3210 "field": "assignee", 3211 "title": "Исполнитель" 3212 }, 3213 { 3214 "field": "owner", 3215 "title": "Постановщик" 3216 }, 3217 { 3218 "field": "section", 3219 "title": "Проект" 3220 }, 3221 { 3222 "field": "tag", 3223 "title": "Тэг" 3224 } 3225 ], 3226 "hide_empty": false, 3227 "key": "active", 3228 "pagination": false, 3229 "show_counter": true, 3230 "sort": [ 3231 { 3232 "key": "activity", 3233 "title": "Активность" 3234 }, 3235 { 3236 "key": "deadline", 3237 "title": "Крайний срок" 3238 }, 3239 { 3240 "key": "new", 3241 "title": "Новые" 3242 }, 3243 { 3244 "key": "old", 3245 "title": "Старые" 3246 } 3247 ], 3248 "title": "Все" 3249 }, 3250 { 3251 "filters": [ 3252 { 3253 "field": "assignee", 3254 "title": "Исполнитель" 3255 }, 3256 { 3257 "field": "owner", 3258 "title": "Постановщик" 3259 }, 3260 { 3261 "field": "section", 3262 "title": "Проект" 3263 }, 3264 { 3265 "field": "tag", 3266 "title": "Тэг" 3267 } 3268 ], 3269 "hide_empty": true, 3270 "key": "expired", 3271 "pagination": false, 3272 "show_counter": true, 3273 "sort": [ 3274 { 3275 "key": "deadline", 3276 "title": "Крайний срок" 3277 }, 3278 { 3279 "key": "new", 3280 "title": "Новые" 3281 }, 3282 { 3283 "key": "old", 3284 "title": "Старые" 3285 } 3286 ], 3287 "title": "Истёк срок" 3288 }, 3289 { 3290 "filters": [ 3291 { 3292 "field": "owner", 3293 "title": "Постановщик" 3294 }, 3295 { 3296 "field": "section", 3297 "title": "Проект" 3298 }, 3299 { 3300 "field": "tag", 3301 "title": "Тэг" 3302 } 3303 ], 3304 "hide_empty": false, 3305 "key": "in", 3306 "pagination": false, 3307 "show_counter": true, 3308 "sort": [ 3309 { 3310 "key": "activity", 3311 "title": "Активность" 3312 }, 3313 { 3314 "key": "deadline", 3315 "title": "Крайний срок" 3316 }, 3317 { 3318 "key": "new", 3319 "title": "Новые" 3320 }, 3321 { 3322 "key": "old", 3323 "title": "Старые" 3324 } 3325 ], 3326 "title": "Входящие" 3327 }, 3328 { 3329 "filters": [ 3330 { 3331 "field": "assignee", 3332 "title": "Исполнитель" 3333 }, 3334 { 3335 "field": "section", 3336 "title": "Проект" 3337 }, 3338 { 3339 "field": "tag", 3340 "title": "Тэг" 3341 } 3342 ], 3343 "hide_empty": false, 3344 "key": "out", 3345 "pagination": false, 3346 "show_counter": true, 3347 "sort": [ 3348 { 3349 "key": "activity", 3350 "title": "Активность" 3351 }, 3352 { 3353 "key": "deadline", 3354 "title": "Крайний срок" 3355 }, 3356 { 3357 "key": "new", 3358 "title": "Новые" 3359 }, 3360 { 3361 "key": "old", 3362 "title": "Старые" 3363 } 3364 ], 3365 "title": "Исходящие" 3366 }, 3367 { 3368 "filters": [ 3369 { 3370 "field": "assignee", 3371 "title": "Исполнитель" 3372 }, 3373 { 3374 "field": "owner", 3375 "title": "Постановщик" 3376 }, 3377 { 3378 "field": "section", 3379 "title": "Проект" 3380 }, 3381 { 3382 "field": "tag", 3383 "title": "Тэг" 3384 } 3385 ], 3386 "hide_empty": true, 3387 "key": "copy", 3388 "pagination": false, 3389 "show_counter": true, 3390 "sort": [ 3391 { 3392 "key": "activity", 3393 "title": "Активность" 3394 }, 3395 { 3396 "key": "deadline", 3397 "title": "Крайний срок" 3398 }, 3399 { 3400 "key": "new", 3401 "title": "Новые" 3402 }, 3403 { 3404 "key": "old", 3405 "title": "Старые" 3406 } 3407 ], 3408 "title": "Наблюдаю" 3409 }, 3410 { 3411 "filters": [ 3412 { 3413 "field": "assignee", 3414 "title": "Исполнитель" 3415 }, 3416 { 3417 "field": "owner", 3418 "title": "Постановщик" 3419 }, 3420 { 3421 "field": "section", 3422 "title": "Проект" 3423 }, 3424 { 3425 "field": "tag", 3426 "title": "Тэг" 3427 } 3428 ], 3429 "hide_empty": true, 3430 "key": "done", 3431 "pagination": true, 3432 "show_counter": false, 3433 "sort": [ 3434 { 3435 "key": "done", 3436 "title": "Дата завершения" 3437 }, 3438 { 3439 "key": "new", 3440 "title": "Новые" 3441 }, 3442 { 3443 "key": "old", 3444 "title": "Старые" 3445 } 3446 ], 3447 "title": "Готово" 3448 } 3449 ] 3450 } 3451 } 3452 ``` 3453 ### "server.section.deleted" 3454 3455 Event structure: [ServerSectionDeleted](#ServerSectionDeleted) 3456 3457 Contact section or task project deleted 3458 3459 ``` 3460 { 3461 "event": "server.section.deleted", 3462 "params": { 3463 "chat_type": "direct", 3464 "gentime": 1568786364815431424, 3465 "sections": [ 3466 { 3467 "uid": "8daeb4a2-4863-4953-bcf1-c58b84dc5272" 3468 } 3469 ] 3470 } 3471 } 3472 ``` 3473 ### "server.section.updated" 3474 3475 Event structure: [ServerSectionUpdated](#ServerSectionUpdated) 3476 3477 Contact section or task project created or changed 3478 3479 ``` 3480 { 3481 "event": "server.section.updated", 3482 "params": { 3483 "chat_type": "group", 3484 "gentime": 1569546093241191168, 3485 "sections": [] 3486 } 3487 } 3488 ``` 3489 ### "server.tag.deleted" 3490 3491 Event structure: [ServerTagDeleted](#ServerTagDeleted) 3492 3493 Tag deleted 3494 3495 ``` 3496 EVENT MISSING EXAMPLE 3497 ``` 3498 ### "server.tag.updated" 3499 3500 Event structure: [ServerTagUpdated](#ServerTagUpdated) 3501 3502 Tag created or changed 3503 3504 ``` 3505 EVENT MISSING EXAMPLE 3506 ``` 3507 ### "server.team.counters" 3508 3509 Event structure: [ServerTeamCounters](#ServerTeamCounters) 3510 3511 Counters form other teams 3512 3513 ``` 3514 { 3515 "event": "server.team.counters", 3516 "params": { 3517 "teams": [ 3518 { 3519 "uid": "b3e92407-41d0-456a-9b1d-3d6b79bfa7d3", 3520 "unread": { 3521 "direct": { 3522 "chats": 1, 3523 "messages": 161 3524 }, 3525 "group": { 3526 "chats": 0, 3527 "messages": 0 3528 }, 3529 "task": { 3530 "chats": 1, 3531 "messages": 1 3532 } 3533 } 3534 }, 3535 { 3536 "uid": "8b05a648-d43a-4d17-9a0e-c2a119453494", 3537 "unread": { 3538 "direct": { 3539 "chats": 0, 3540 "messages": 0 3541 }, 3542 "group": { 3543 "chats": 0, 3544 "messages": 0 3545 }, 3546 "task": { 3547 "chats": 1, 3548 "messages": 1 3549 } 3550 } 3551 }, 3552 { 3553 "uid": "6aefcf3b-e61c-4f35-8b5b-9d762a6a6cf9", 3554 "unread": { 3555 "direct": { 3556 "chats": 1, 3557 "messages": 3 3558 }, 3559 "group": { 3560 "chats": 0, 3561 "messages": 0 3562 }, 3563 "task": { 3564 "chats": 0, 3565 "messages": 0 3566 } 3567 } 3568 }, 3569 { 3570 "uid": "5e854825-d1ac-4b28-a389-f0e8cc3bd675", 3571 "unread": { 3572 "direct": { 3573 "chats": 1, 3574 "messages": 1 3575 }, 3576 "group": { 3577 "chats": 0, 3578 "messages": 0 3579 }, 3580 "task": { 3581 "chats": 0, 3582 "messages": 0 3583 } 3584 } 3585 }, 3586 { 3587 "uid": "180b9b6d-ecb0-47aa-8712-33dbd9b4a642", 3588 "unread": { 3589 "direct": { 3590 "chats": 0, 3591 "messages": 0 3592 }, 3593 "group": { 3594 "chats": 1, 3595 "messages": 58 3596 }, 3597 "task": { 3598 "chats": 0, 3599 "messages": 0 3600 } 3601 } 3602 }, 3603 { 3604 "uid": "99cabb3b-d4fd-464d-b33d-144b67e3c1df", 3605 "unread": { 3606 "direct": { 3607 "chats": 1, 3608 "messages": 127 3609 }, 3610 "group": { 3611 "chats": 0, 3612 "messages": 0 3613 }, 3614 "task": { 3615 "chats": 1, 3616 "messages": 1 3617 } 3618 } 3619 }, 3620 { 3621 "uid": "523e7bdc-e73f-4150-b6b9-656d6178ba51", 3622 "unread": { 3623 "direct": { 3624 "chats": 1, 3625 "messages": 63 3626 }, 3627 "group": { 3628 "chats": 0, 3629 "messages": 0 3630 }, 3631 "task": { 3632 "chats": 1, 3633 "messages": 1 3634 } 3635 } 3636 }, 3637 { 3638 "uid": "c9d8a896-a2b6-40a1-869e-2ecc0ef2436b", 3639 "unread": { 3640 "direct": { 3641 "chats": 1, 3642 "messages": 31 3643 }, 3644 "group": { 3645 "chats": 0, 3646 "messages": 0 3647 }, 3648 "task": { 3649 "chats": 1, 3650 "messages": 1 3651 } 3652 } 3653 } 3654 ] 3655 } 3656 } 3657 ``` 3658 ### "server.team.deleted" 3659 3660 Event structure: [ServerTeamDeleted](#ServerTeamDeleted) 3661 3662 Team archived 3663 3664 ``` 3665 { 3666 "event": "server.team.deleted", 3667 "params": { 3668 "teams": [ 3669 { 3670 "is_archive": true, 3671 "uid": "c9d8a896-a2b6-40a1-869e-2ecc0ef2436b" 3672 } 3673 ] 3674 } 3675 } 3676 ``` 3677 ### "server.team.updated" 3678 3679 Event structure: [ServerTeamUpdated](#ServerTeamUpdated) 3680 3681 Team created or changed 3682 3683 ``` 3684 { 3685 "event": "server.team.updated", 3686 "params": { 3687 "teams": [ 3688 { 3689 "can_manage_sections": true, 3690 "default_task_deadline": "18:00:00", 3691 "icons": { 3692 "stub": "http://127.0.0.1:8000/u/f0769a/00/256.png" 3693 }, 3694 "last_active": false, 3695 "max_message_update_age": 86400, 3696 "me": { 3697 "alt_send": false, 3698 "can_add_to_group": true, 3699 "can_create_task": true, 3700 "can_delete": true, 3701 "changeable_fields": [ 3702 "alt_send", 3703 "contact_email", 3704 "contact_mshort_view", 3705 "contact_phone", 3706 "contact_short_view", 3707 "contact_show_archived", 3708 "debug_show_activity", 3709 "default_lang", 3710 "family_name", 3711 "given_name", 3712 "group_mshort_view", 3713 "group_notifications_enabled", 3714 "group_short_view", 3715 "icons", 3716 "phone", 3717 "role", 3718 "task_mshort_view", 3719 "task_notifications_enabled", 3720 "task_short_view", 3721 "unread_first" 3722 ], 3723 "contact_email": "", 3724 "contact_mshort_view": false, 3725 "contact_phone": "+75550000001", 3726 "contact_short_view": false, 3727 "contact_show_archived": false, 3728 "debug_show_activity": false, 3729 "default_lang": null, 3730 "display_name": "Контакт №2", 3731 "family_name": "№2", 3732 "given_name": "Контакт", 3733 "group_mshort_view": false, 3734 "group_notifications_enabled": true, 3735 "group_short_view": false, 3736 "icons": { 3737 "stub": "http://127.0.0.1:8000/u/63bed3/%D0%9A%E2%84%96/256.png" 3738 }, 3739 "jid": "d-bd500a50-3a38-44d1-a43c-fb1a48e1a79e", 3740 "last_activity": null, 3741 "role": "", 3742 "sections": [], 3743 "status": "member", 3744 "task_mshort_view": false, 3745 "task_notifications_enabled": true, 3746 "task_short_view": false, 3747 "unread_first": false 3748 }, 3749 "name": "T-32 2019-09-18 00:00:05.603182+00:00", 3750 "need_confirmation": true, 3751 "uid": "c9d8a896-a2b6-40a1-869e-2ecc0ef2436b", 3752 "unread": { 3753 "direct": { 3754 "chats": 1, 3755 "messages": 31 3756 }, 3757 "group": { 3758 "chats": 0, 3759 "messages": 0 3760 }, 3761 "task": { 3762 "chats": 1, 3763 "messages": 1 3764 } 3765 } 3766 } 3767 ] 3768 } 3769 } 3770 ``` 3771 ### "server.time" 3772 3773 Event structure: [ServerTime](#ServerTime) 3774 3775 Current server time 3776 3777 ``` 3778 { 3779 "event": "server.time", 3780 "params": { 3781 "time": "2019-09-27T01:01:33.216665Z" 3782 } 3783 } 3784 ``` 3785 ### "server.uisettings" 3786 3787 Event structure: [ServerUiSettings](#ServerUiSettings) 3788 3789 Part of UI settings changed 3790 3791 ``` 3792 { 3793 "last-tab": 91238475 3794 } 3795 ``` 3796 ### "server.upload.updated" 3797 3798 Event structure: [ServerUploadUpdated](#ServerUploadUpdated) 3799 3800 Upload object created or changed 3801 3802 ``` 3803 EVENT MISSING EXAMPLE 3804 ``` 3805 ### "server.warning" 3806 3807 Event structure: [ServerWarning](#ServerWarning) 3808 3809 Something went wrong with client message 3810 3811 ``` 3812 { 3813 "event": "server.warning", 3814 "params": { 3815 "message": "unknown event: client.deeeeeaddddbeeeeeef", 3816 "orig": { 3817 "confirm_id": "c6280a82ed1c", 3818 "event": "client.deeeeeaddddbeeeeeef" 3819 } 3820 } 3821 } 3822 ```