@webitel/api-services 26.8.86 → 26.8.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/package.json +1 -1
  2. package/src/api/clients/lists/blacklistNumbers.ts +43 -0
  3. package/src/api/clients/media/media.ts +1 -0
  4. package/src/gen/_models/engineCreateListCommunicationBulkItem.ts +12 -0
  5. package/src/gen/_models/engineListCommunicationBulkError.ts +14 -0
  6. package/src/gen/_models/engineListCommunicationBulkResponse.ts +13 -0
  7. package/src/gen/_models/engineListServiceCreateListCommunicationBulkBody.ts +11 -0
  8. package/src/gen/_models/index.ts +13 -2
  9. package/src/gen/_models/threadManagementSearchParams.ts +5 -0
  10. package/src/gen/_models/webitelImApiGatewayV1DeliveryError.ts +14 -0
  11. package/src/gen/_models/webitelImApiGatewayV1DeliveryFailure.ts +16 -0
  12. package/src/gen/_models/webitelImApiGatewayV1GivePreviewResponse.ts +11 -0
  13. package/src/gen/_models/webitelImApiGatewayV1HistoryMessage.ts +6 -0
  14. package/src/gen/_models/{webitelImApiGatewayV1MessageFailureError.ts → webitelImApiGatewayV1RemoveFromPreviewResponse.ts} +2 -3
  15. package/src/gen/_models/webitelImApiGatewayV1ThreadManagementTransferBody.ts +5 -0
  16. package/src/gen/_models/webitelImApiGatewayV1ThreadPreview.ts +18 -0
  17. package/src/gen/_models/webitelImApiGatewayV1ThreadPreviewServiceGivePreviewBody.ts +14 -0
  18. package/src/gen/_models/webitelImApiGatewayV1ThreadPreviewServiceRemoveFromPreviewBody.ts +12 -0
  19. package/src/gen/_models/webitelImApiGatewayV1ThreadPreviewServiceUpgradePreviewToFullMemberBody.ts +14 -0
  20. package/src/gen/_models/webitelImApiGatewayV1ThreadUpdates.ts +0 -3
  21. package/src/gen/_models/webitelImApiGatewayV1UpdatedMessage.ts +6 -0
  22. package/src/gen/_models/webitelImApiGatewayV1UpgradePreviewToFullMemberResponse.ts +11 -0
  23. package/src/gen-wire/_models/engineCreateListCommunicationBulkItem.ts +12 -0
  24. package/src/gen-wire/_models/engineListCommunicationBulkError.ts +14 -0
  25. package/src/gen-wire/_models/engineListCommunicationBulkResponse.ts +13 -0
  26. package/src/gen-wire/_models/engineListServiceCreateListCommunicationBulkBody.ts +11 -0
  27. package/src/gen-wire/_models/index.ts +13 -2
  28. package/src/gen-wire/_models/threadManagementSearchParams.ts +5 -0
  29. package/src/gen-wire/_models/webitelImApiGatewayV1DeliveryError.ts +14 -0
  30. package/src/gen-wire/_models/webitelImApiGatewayV1DeliveryFailure.ts +16 -0
  31. package/src/gen-wire/_models/webitelImApiGatewayV1GivePreviewResponse.ts +11 -0
  32. package/src/gen-wire/_models/webitelImApiGatewayV1HistoryMessage.ts +6 -0
  33. package/src/gen-wire/_models/{webitelImApiGatewayV1MessageFailureError.ts → webitelImApiGatewayV1RemoveFromPreviewResponse.ts} +2 -3
  34. package/src/gen-wire/_models/webitelImApiGatewayV1ThreadManagementTransferBody.ts +5 -0
  35. package/src/gen-wire/_models/webitelImApiGatewayV1ThreadPreview.ts +18 -0
  36. package/src/gen-wire/_models/webitelImApiGatewayV1ThreadPreviewServiceGivePreviewBody.ts +14 -0
  37. package/src/gen-wire/_models/webitelImApiGatewayV1ThreadPreviewServiceRemoveFromPreviewBody.ts +12 -0
  38. package/src/gen-wire/_models/webitelImApiGatewayV1ThreadPreviewServiceUpgradePreviewToFullMemberBody.ts +14 -0
  39. package/src/gen-wire/_models/webitelImApiGatewayV1ThreadUpdates.ts +0 -3
  40. package/src/gen-wire/_models/webitelImApiGatewayV1UpdatedMessage.ts +6 -0
  41. package/src/gen-wire/_models/webitelImApiGatewayV1UpgradePreviewToFullMemberResponse.ts +11 -0
  42. package/src/gen-wire/index.ts +12 -0
  43. package/src/gen-wire/index.zod.ts +1 -0
  44. package/src/gen-wire/list-service/list-service.ts +19 -0
  45. package/src/gen-wire/list-service/list-service.zod.ts +62 -0
  46. package/src/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.ts +402 -0
  47. package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.ts +560 -0
  48. package/src/gen-wire/webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice.ts +89 -0
  49. package/src/gen-wire/webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice.zod.ts +351 -0
  50. package/src/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.ts +406 -130
  51. package/types/.tsbuildinfo +1 -1
  52. package/types/api/clients/lists/blacklistNumbers.d.ts +5 -1
  53. package/types/gen/_models/engineCreateListCommunicationBulkItem.d.ts +11 -0
  54. package/types/gen/_models/engineListCommunicationBulkError.d.ts +13 -0
  55. package/types/gen/_models/engineListCommunicationBulkResponse.d.ts +12 -0
  56. package/types/gen/_models/engineListServiceCreateListCommunicationBulkBody.d.ts +10 -0
  57. package/types/gen/_models/index.d.ts +13 -2
  58. package/types/gen/_models/threadManagementSearchParams.d.ts +5 -0
  59. package/types/gen/_models/webitelImApiGatewayV1DeliveryError.d.ts +13 -0
  60. package/types/gen/_models/webitelImApiGatewayV1DeliveryFailure.d.ts +15 -0
  61. package/types/gen/_models/webitelImApiGatewayV1GivePreviewResponse.d.ts +10 -0
  62. package/types/gen/_models/webitelImApiGatewayV1HistoryMessage.d.ts +6 -0
  63. package/types/gen/_models/{webitelImApiGatewayV1MessageFailureError.d.ts → webitelImApiGatewayV1RemoveFromPreviewResponse.d.ts} +2 -3
  64. package/types/gen/_models/webitelImApiGatewayV1ThreadManagementTransferBody.d.ts +5 -0
  65. package/types/gen/_models/webitelImApiGatewayV1ThreadPreview.d.ts +17 -0
  66. package/types/gen/_models/webitelImApiGatewayV1ThreadPreviewServiceGivePreviewBody.d.ts +13 -0
  67. package/types/gen/_models/webitelImApiGatewayV1ThreadPreviewServiceRemoveFromPreviewBody.d.ts +11 -0
  68. package/types/gen/_models/webitelImApiGatewayV1ThreadPreviewServiceUpgradePreviewToFullMemberBody.d.ts +13 -0
  69. package/types/gen/_models/webitelImApiGatewayV1ThreadUpdates.d.ts +0 -3
  70. package/types/gen/_models/webitelImApiGatewayV1UpdatedMessage.d.ts +6 -0
  71. package/types/gen/_models/webitelImApiGatewayV1UpgradePreviewToFullMemberResponse.d.ts +10 -0
  72. package/types/gen-wire/_models/engineCreateListCommunicationBulkItem.d.ts +11 -0
  73. package/types/gen-wire/_models/engineListCommunicationBulkError.d.ts +13 -0
  74. package/types/gen-wire/_models/engineListCommunicationBulkResponse.d.ts +12 -0
  75. package/types/gen-wire/_models/engineListServiceCreateListCommunicationBulkBody.d.ts +10 -0
  76. package/types/gen-wire/_models/index.d.ts +13 -2
  77. package/types/gen-wire/_models/threadManagementSearchParams.d.ts +5 -0
  78. package/types/gen-wire/_models/webitelImApiGatewayV1DeliveryError.d.ts +13 -0
  79. package/types/gen-wire/_models/webitelImApiGatewayV1DeliveryFailure.d.ts +15 -0
  80. package/types/gen-wire/_models/webitelImApiGatewayV1GivePreviewResponse.d.ts +10 -0
  81. package/types/gen-wire/_models/webitelImApiGatewayV1HistoryMessage.d.ts +6 -0
  82. package/types/gen-wire/_models/{webitelImApiGatewayV1MessageFailureError.d.ts → webitelImApiGatewayV1RemoveFromPreviewResponse.d.ts} +2 -3
  83. package/types/gen-wire/_models/webitelImApiGatewayV1ThreadManagementTransferBody.d.ts +5 -0
  84. package/types/gen-wire/_models/webitelImApiGatewayV1ThreadPreview.d.ts +17 -0
  85. package/types/gen-wire/_models/webitelImApiGatewayV1ThreadPreviewServiceGivePreviewBody.d.ts +13 -0
  86. package/types/gen-wire/_models/webitelImApiGatewayV1ThreadPreviewServiceRemoveFromPreviewBody.d.ts +11 -0
  87. package/types/gen-wire/_models/webitelImApiGatewayV1ThreadPreviewServiceUpgradePreviewToFullMemberBody.d.ts +13 -0
  88. package/types/gen-wire/_models/webitelImApiGatewayV1ThreadUpdates.d.ts +0 -3
  89. package/types/gen-wire/_models/webitelImApiGatewayV1UpdatedMessage.d.ts +6 -0
  90. package/types/gen-wire/_models/webitelImApiGatewayV1UpgradePreviewToFullMemberResponse.d.ts +10 -0
  91. package/types/gen-wire/index.d.ts +5 -3
  92. package/types/gen-wire/index.zod.d.ts +1 -0
  93. package/types/gen-wire/list-service/list-service.d.ts +3 -1
  94. package/types/gen-wire/list-service/list-service.zod.d.ts +39 -0
  95. package/types/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.d.ts +150 -0
  96. package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.d.ts +207 -0
  97. package/types/gen-wire/webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice.d.ts +17 -0
  98. package/types/gen-wire/webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice.zod.d.ts +155 -0
  99. package/types/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.d.ts +150 -51
  100. package/src/gen/_models/webitelImApiGatewayV1MessageFailure.ts +0 -17
  101. package/src/gen-wire/_models/webitelImApiGatewayV1MessageFailure.ts +0 -17
  102. package/types/gen/_models/webitelImApiGatewayV1MessageFailure.d.ts +0 -16
  103. package/types/gen-wire/_models/webitelImApiGatewayV1MessageFailure.d.ts +0 -16
@@ -18,6 +18,7 @@ export const UpdatesGetUpdatesBody = zod.object({
18
18
  });
19
19
 
20
20
  export const updatesGetUpdatesResponseThreadsItemDialogLastMsgDeletedByRoleDefault = `ROLE_UNSPECIFIED`;
21
+ export const updatesGetUpdatesResponseThreadsItemDialogLastMsgFailuresItemMemberRoleDefault = `ROLE_UNSPECIFIED`;
21
22
  export const updatesGetUpdatesResponseThreadsItemDialogLastMsgForwardOriginKindDefault = `FORWARD_ORIGIN_KIND_UNSPECIFIED`;
22
23
  export const updatesGetUpdatesResponseThreadsItemDialogLastMsgInteractiveInputFieldStateDefault = `INPUT_FIELD_STATE_UNSPECIFIED`;
23
24
  export const updatesGetUpdatesResponseThreadsItemDialogLastMsgInteractivePlacementDefault = `MENU_PLACEMENT_UNSPECIFIED`;
@@ -27,16 +28,17 @@ export const updatesGetUpdatesResponseThreadsItemDialogLastMsgSenderRoleDefault
27
28
  export const updatesGetUpdatesResponseThreadsItemDialogMembersItemRoleDefault = `ROLE_UNSPECIFIED`;
28
29
  export const updatesGetUpdatesResponseThreadsItemDialogReadStatesItemMemberRoleDefault = `ROLE_UNSPECIFIED`;
29
30
  export const updatesGetUpdatesResponseThreadsItemDialogTypeDefault = `UNKNOWN`;
30
- export const updatesGetUpdatesResponseThreadsItemFailuresItemMemberRoleDefault = `ROLE_UNSPECIFIED`;
31
31
  export const updatesGetUpdatesResponseThreadsItemMemberChangesItemActionDefault = `THREAD_MEMBER_CHANGE_ACTION_UNSPECIFIED`;
32
32
  export const updatesGetUpdatesResponseThreadsItemMemberChangesItemByRoleDefault = `ROLE_UNSPECIFIED`;
33
33
  export const updatesGetUpdatesResponseThreadsItemMemberChangesItemMemberRoleDefault = `ROLE_UNSPECIFIED`;
34
+ export const updatesGetUpdatesResponseThreadsItemMessagesItemFailuresItemMemberRoleDefault = `ROLE_UNSPECIFIED`;
34
35
  export const updatesGetUpdatesResponseThreadsItemMessagesItemForwardOriginKindDefault = `FORWARD_ORIGIN_KIND_UNSPECIFIED`;
35
36
  export const updatesGetUpdatesResponseThreadsItemMessagesItemInteractiveInputFieldStateDefault = `INPUT_FIELD_STATE_UNSPECIFIED`;
36
37
  export const updatesGetUpdatesResponseThreadsItemMessagesItemInteractivePlacementDefault = `MENU_PLACEMENT_UNSPECIFIED`;
37
38
  export const updatesGetUpdatesResponseThreadsItemMessagesItemReplyToSenderRoleDefault = `ROLE_UNSPECIFIED`;
38
39
  export const updatesGetUpdatesResponseThreadsItemMessagesItemSenderRoleDefault = `ROLE_UNSPECIFIED`;
39
40
  export const updatesGetUpdatesResponseThreadsItemReadStatesItemMemberRoleDefault = `ROLE_UNSPECIFIED`;
41
+ export const updatesGetUpdatesResponseThreadsItemTopMessageFailuresItemMemberRoleDefault = `ROLE_UNSPECIFIED`;
40
42
  export const updatesGetUpdatesResponseThreadsItemTopMessageForwardOriginKindDefault = `FORWARD_ORIGIN_KIND_UNSPECIFIED`;
41
43
  export const updatesGetUpdatesResponseThreadsItemTopMessageInteractiveInputFieldStateDefault = `INPUT_FIELD_STATE_UNSPECIFIED`;
42
44
  export const updatesGetUpdatesResponseThreadsItemTopMessageInteractivePlacementDefault = `MENU_PLACEMENT_UNSPECIFIED`;
@@ -263,6 +265,141 @@ export const UpdatesGetUpdatesResponse = zod.object({
263
265
  .describe(
264
266
  'Message last update timestamp (Unix time, milliseconds).',
265
267
  ),
268
+ failures: zod
269
+ .array(
270
+ zod
271
+ .object({
272
+ error: zod
273
+ .object({
274
+ code: zod.string().optional(),
275
+ message: zod.string().optional(),
276
+ })
277
+ .optional()
278
+ .describe(
279
+ 'DeliveryError is a provider\'s delivery failure, e.g. {code: "403", message: "bot was blocked by the user"}.',
280
+ ),
281
+ member: zod
282
+ .object({
283
+ contact: zod
284
+ .object({
285
+ app_id: zod
286
+ .string()
287
+ .optional()
288
+ .describe(
289
+ 'Identifier of the specific integration app or bot.',
290
+ ),
291
+ created_at: zod
292
+ .string()
293
+ .optional()
294
+ .describe(
295
+ 'Record creation timestamp (Unix Epoch in milliseconds).',
296
+ ),
297
+ is_bot: zod
298
+ .boolean()
299
+ .optional()
300
+ .describe(
301
+ 'Represents if usere is real person or automatic script.',
302
+ ),
303
+ iss: zod
304
+ .string()
305
+ .optional()
306
+ .describe(
307
+ 'Provider-specific unique identifier (Issuer ID).',
308
+ ),
309
+ metadata: zod
310
+ .record(zod.string(), zod.string())
311
+ .optional()
312
+ .describe(
313
+ 'Additional dynamic attributes provided by the messenger.',
314
+ ),
315
+ name: zod
316
+ .string()
317
+ .optional()
318
+ .describe('Display name of the contact.'),
319
+ sub: zod
320
+ .string()
321
+ .optional()
322
+ .describe(
323
+ 'Associated internal system subject/identifier.',
324
+ ),
325
+ type: zod
326
+ .string()
327
+ .optional()
328
+ .describe(
329
+ "Channel type (e.g., 'webchat', 'telegram').",
330
+ ),
331
+ updated_at: zod
332
+ .string()
333
+ .optional()
334
+ .describe(
335
+ 'Last record update timestamp (Unix Epoch in milliseconds).',
336
+ ),
337
+ username: zod
338
+ .string()
339
+ .optional()
340
+ .describe('Technical username or handle.'),
341
+ vias: zod
342
+ .array(
343
+ zod.object({
344
+ contact_id: zod.string().optional(),
345
+ created_at: zod.string().optional(),
346
+ disable: zod.boolean().optional(),
347
+ disable_reason: zod.string().optional(),
348
+ metadata: zod.looseObject({}).optional(),
349
+ updated_at: zod.string().optional(),
350
+ via: zod.string().optional(),
351
+ }),
352
+ )
353
+ .optional(),
354
+ })
355
+ .optional()
356
+ .describe(
357
+ 'Contact represents an external messaging identity.',
358
+ ),
359
+ id: zod.string().optional(),
360
+ permissions: zod
361
+ .object({
362
+ can_add_members: zod.boolean().optional(),
363
+ can_change_members_permissions: zod
364
+ .boolean()
365
+ .optional(),
366
+ can_change_thread_info: zod
367
+ .boolean()
368
+ .optional(),
369
+ can_delete_messages: zod.boolean().optional(),
370
+ can_remove_members: zod.boolean().optional(),
371
+ can_send_messages: zod.boolean().optional(),
372
+ created_at: zod.string().optional(),
373
+ id: zod.string().optional(),
374
+ member_id: zod.string().optional(),
375
+ updated_at: zod.string().optional(),
376
+ })
377
+ .optional(),
378
+ role: zod
379
+ .enum([
380
+ 'ROLE_UNSPECIFIED',
381
+ 'ROLE_MEMBER',
382
+ 'ROLE_ADMIN',
383
+ 'ROLE_OWNER',
384
+ 'ROLE_SUPERVISOR',
385
+ ])
386
+ .default(
387
+ updatesGetUpdatesResponseThreadsItemDialogLastMsgFailuresItemMemberRoleDefault,
388
+ ),
389
+ })
390
+ .optional()
391
+ .describe(
392
+ 'ThreadMember represents a thread participant\nwith optional type-specific settings.',
393
+ ),
394
+ })
395
+ .describe(
396
+ 'DeliveryFailure is one member a message could not be delivered to.',
397
+ ),
398
+ )
399
+ .optional()
400
+ .describe(
401
+ "Members the message could not be delivered to, with the provider's reason.\nEmpty when it reached everyone; an entry is dropped once a later delivery succeeds.",
402
+ ),
266
403
  forward_origin: zod
267
404
  .object({
268
405
  kind: zod
@@ -1503,135 +1640,6 @@ export const UpdatesGetUpdatesResponse = zod.object({
1503
1640
  .describe(
1504
1641
  'The thread itself, set when it is new to the caller (created or joined since cursor).\nSame model as the thread list, except last_msg and updates_cursor are never set here.',
1505
1642
  ),
1506
- failures: zod
1507
- .array(
1508
- zod
1509
- .object({
1510
- error: zod
1511
- .object({
1512
- code: zod.string().optional(),
1513
- message: zod.string().optional(),
1514
- })
1515
- .optional(),
1516
- member: zod
1517
- .object({
1518
- contact: zod
1519
- .object({
1520
- app_id: zod
1521
- .string()
1522
- .optional()
1523
- .describe(
1524
- 'Identifier of the specific integration app or bot.',
1525
- ),
1526
- created_at: zod
1527
- .string()
1528
- .optional()
1529
- .describe(
1530
- 'Record creation timestamp (Unix Epoch in milliseconds).',
1531
- ),
1532
- is_bot: zod
1533
- .boolean()
1534
- .optional()
1535
- .describe(
1536
- 'Represents if usere is real person or automatic script.',
1537
- ),
1538
- iss: zod
1539
- .string()
1540
- .optional()
1541
- .describe(
1542
- 'Provider-specific unique identifier (Issuer ID).',
1543
- ),
1544
- metadata: zod
1545
- .record(zod.string(), zod.string())
1546
- .optional()
1547
- .describe(
1548
- 'Additional dynamic attributes provided by the messenger.',
1549
- ),
1550
- name: zod
1551
- .string()
1552
- .optional()
1553
- .describe('Display name of the contact.'),
1554
- sub: zod
1555
- .string()
1556
- .optional()
1557
- .describe(
1558
- 'Associated internal system subject/identifier.',
1559
- ),
1560
- type: zod
1561
- .string()
1562
- .optional()
1563
- .describe(
1564
- "Channel type (e.g., 'webchat', 'telegram').",
1565
- ),
1566
- updated_at: zod
1567
- .string()
1568
- .optional()
1569
- .describe(
1570
- 'Last record update timestamp (Unix Epoch in milliseconds).',
1571
- ),
1572
- username: zod
1573
- .string()
1574
- .optional()
1575
- .describe('Technical username or handle.'),
1576
- vias: zod
1577
- .array(
1578
- zod.object({
1579
- contact_id: zod.string().optional(),
1580
- created_at: zod.string().optional(),
1581
- disable: zod.boolean().optional(),
1582
- disable_reason: zod.string().optional(),
1583
- metadata: zod.looseObject({}).optional(),
1584
- updated_at: zod.string().optional(),
1585
- via: zod.string().optional(),
1586
- }),
1587
- )
1588
- .optional(),
1589
- })
1590
- .optional()
1591
- .describe(
1592
- 'Contact represents an external messaging identity.',
1593
- ),
1594
- id: zod.string().optional(),
1595
- permissions: zod
1596
- .object({
1597
- can_add_members: zod.boolean().optional(),
1598
- can_change_members_permissions: zod
1599
- .boolean()
1600
- .optional(),
1601
- can_change_thread_info: zod.boolean().optional(),
1602
- can_delete_messages: zod.boolean().optional(),
1603
- can_remove_members: zod.boolean().optional(),
1604
- can_send_messages: zod.boolean().optional(),
1605
- created_at: zod.string().optional(),
1606
- id: zod.string().optional(),
1607
- member_id: zod.string().optional(),
1608
- updated_at: zod.string().optional(),
1609
- })
1610
- .optional(),
1611
- role: zod
1612
- .enum([
1613
- 'ROLE_UNSPECIFIED',
1614
- 'ROLE_MEMBER',
1615
- 'ROLE_ADMIN',
1616
- 'ROLE_OWNER',
1617
- 'ROLE_SUPERVISOR',
1618
- ])
1619
- .default(
1620
- updatesGetUpdatesResponseThreadsItemFailuresItemMemberRoleDefault,
1621
- ),
1622
- })
1623
- .optional()
1624
- .describe(
1625
- 'ThreadMember represents a thread participant\nwith optional type-specific settings.',
1626
- ),
1627
- message_id: zod.string().optional(),
1628
- })
1629
- .describe(
1630
- 'MessageFailure is a message that could not be delivered to a member.',
1631
- ),
1632
- )
1633
- .optional()
1634
- .describe('Messages that failed to reach a member since the cursor.'),
1635
1643
  left: zod
1636
1644
  .boolean()
1637
1645
  .optional()
@@ -1932,6 +1940,141 @@ export const UpdatesGetUpdatesResponse = zod.object({
1932
1940
  .string()
1933
1941
  .optional()
1934
1942
  .describe('Set when the message was edited.'),
1943
+ failures: zod
1944
+ .array(
1945
+ zod
1946
+ .object({
1947
+ error: zod
1948
+ .object({
1949
+ code: zod.string().optional(),
1950
+ message: zod.string().optional(),
1951
+ })
1952
+ .optional()
1953
+ .describe(
1954
+ 'DeliveryError is a provider\'s delivery failure, e.g. {code: "403", message: "bot was blocked by the user"}.',
1955
+ ),
1956
+ member: zod
1957
+ .object({
1958
+ contact: zod
1959
+ .object({
1960
+ app_id: zod
1961
+ .string()
1962
+ .optional()
1963
+ .describe(
1964
+ 'Identifier of the specific integration app or bot.',
1965
+ ),
1966
+ created_at: zod
1967
+ .string()
1968
+ .optional()
1969
+ .describe(
1970
+ 'Record creation timestamp (Unix Epoch in milliseconds).',
1971
+ ),
1972
+ is_bot: zod
1973
+ .boolean()
1974
+ .optional()
1975
+ .describe(
1976
+ 'Represents if usere is real person or automatic script.',
1977
+ ),
1978
+ iss: zod
1979
+ .string()
1980
+ .optional()
1981
+ .describe(
1982
+ 'Provider-specific unique identifier (Issuer ID).',
1983
+ ),
1984
+ metadata: zod
1985
+ .record(zod.string(), zod.string())
1986
+ .optional()
1987
+ .describe(
1988
+ 'Additional dynamic attributes provided by the messenger.',
1989
+ ),
1990
+ name: zod
1991
+ .string()
1992
+ .optional()
1993
+ .describe('Display name of the contact.'),
1994
+ sub: zod
1995
+ .string()
1996
+ .optional()
1997
+ .describe(
1998
+ 'Associated internal system subject/identifier.',
1999
+ ),
2000
+ type: zod
2001
+ .string()
2002
+ .optional()
2003
+ .describe(
2004
+ "Channel type (e.g., 'webchat', 'telegram').",
2005
+ ),
2006
+ updated_at: zod
2007
+ .string()
2008
+ .optional()
2009
+ .describe(
2010
+ 'Last record update timestamp (Unix Epoch in milliseconds).',
2011
+ ),
2012
+ username: zod
2013
+ .string()
2014
+ .optional()
2015
+ .describe('Technical username or handle.'),
2016
+ vias: zod
2017
+ .array(
2018
+ zod.object({
2019
+ contact_id: zod.string().optional(),
2020
+ created_at: zod.string().optional(),
2021
+ disable: zod.boolean().optional(),
2022
+ disable_reason: zod.string().optional(),
2023
+ metadata: zod.looseObject({}).optional(),
2024
+ updated_at: zod.string().optional(),
2025
+ via: zod.string().optional(),
2026
+ }),
2027
+ )
2028
+ .optional(),
2029
+ })
2030
+ .optional()
2031
+ .describe(
2032
+ 'Contact represents an external messaging identity.',
2033
+ ),
2034
+ id: zod.string().optional(),
2035
+ permissions: zod
2036
+ .object({
2037
+ can_add_members: zod.boolean().optional(),
2038
+ can_change_members_permissions: zod
2039
+ .boolean()
2040
+ .optional(),
2041
+ can_change_thread_info: zod
2042
+ .boolean()
2043
+ .optional(),
2044
+ can_delete_messages: zod.boolean().optional(),
2045
+ can_remove_members: zod.boolean().optional(),
2046
+ can_send_messages: zod.boolean().optional(),
2047
+ created_at: zod.string().optional(),
2048
+ id: zod.string().optional(),
2049
+ member_id: zod.string().optional(),
2050
+ updated_at: zod.string().optional(),
2051
+ })
2052
+ .optional(),
2053
+ role: zod
2054
+ .enum([
2055
+ 'ROLE_UNSPECIFIED',
2056
+ 'ROLE_MEMBER',
2057
+ 'ROLE_ADMIN',
2058
+ 'ROLE_OWNER',
2059
+ 'ROLE_SUPERVISOR',
2060
+ ])
2061
+ .default(
2062
+ updatesGetUpdatesResponseThreadsItemMessagesItemFailuresItemMemberRoleDefault,
2063
+ ),
2064
+ })
2065
+ .optional()
2066
+ .describe(
2067
+ 'ThreadMember represents a thread participant\nwith optional type-specific settings.',
2068
+ ),
2069
+ })
2070
+ .describe(
2071
+ 'DeliveryFailure is one member a message could not be delivered to.',
2072
+ ),
2073
+ )
2074
+ .optional()
2075
+ .describe(
2076
+ "Members the message could not be delivered to, with the provider's reason.\nEmpty when it reached everyone.",
2077
+ ),
1935
2078
  forward_origin: zod
1936
2079
  .object({
1937
2080
  kind: zod
@@ -2804,6 +2947,139 @@ export const UpdatesGetUpdatesResponse = zod.object({
2804
2947
  .string()
2805
2948
  .optional()
2806
2949
  .describe('Set when the message was edited.'),
2950
+ failures: zod
2951
+ .array(
2952
+ zod
2953
+ .object({
2954
+ error: zod
2955
+ .object({
2956
+ code: zod.string().optional(),
2957
+ message: zod.string().optional(),
2958
+ })
2959
+ .optional()
2960
+ .describe(
2961
+ 'DeliveryError is a provider\'s delivery failure, e.g. {code: "403", message: "bot was blocked by the user"}.',
2962
+ ),
2963
+ member: zod
2964
+ .object({
2965
+ contact: zod
2966
+ .object({
2967
+ app_id: zod
2968
+ .string()
2969
+ .optional()
2970
+ .describe(
2971
+ 'Identifier of the specific integration app or bot.',
2972
+ ),
2973
+ created_at: zod
2974
+ .string()
2975
+ .optional()
2976
+ .describe(
2977
+ 'Record creation timestamp (Unix Epoch in milliseconds).',
2978
+ ),
2979
+ is_bot: zod
2980
+ .boolean()
2981
+ .optional()
2982
+ .describe(
2983
+ 'Represents if usere is real person or automatic script.',
2984
+ ),
2985
+ iss: zod
2986
+ .string()
2987
+ .optional()
2988
+ .describe(
2989
+ 'Provider-specific unique identifier (Issuer ID).',
2990
+ ),
2991
+ metadata: zod
2992
+ .record(zod.string(), zod.string())
2993
+ .optional()
2994
+ .describe(
2995
+ 'Additional dynamic attributes provided by the messenger.',
2996
+ ),
2997
+ name: zod
2998
+ .string()
2999
+ .optional()
3000
+ .describe('Display name of the contact.'),
3001
+ sub: zod
3002
+ .string()
3003
+ .optional()
3004
+ .describe(
3005
+ 'Associated internal system subject/identifier.',
3006
+ ),
3007
+ type: zod
3008
+ .string()
3009
+ .optional()
3010
+ .describe(
3011
+ "Channel type (e.g., 'webchat', 'telegram').",
3012
+ ),
3013
+ updated_at: zod
3014
+ .string()
3015
+ .optional()
3016
+ .describe(
3017
+ 'Last record update timestamp (Unix Epoch in milliseconds).',
3018
+ ),
3019
+ username: zod
3020
+ .string()
3021
+ .optional()
3022
+ .describe('Technical username or handle.'),
3023
+ vias: zod
3024
+ .array(
3025
+ zod.object({
3026
+ contact_id: zod.string().optional(),
3027
+ created_at: zod.string().optional(),
3028
+ disable: zod.boolean().optional(),
3029
+ disable_reason: zod.string().optional(),
3030
+ metadata: zod.looseObject({}).optional(),
3031
+ updated_at: zod.string().optional(),
3032
+ via: zod.string().optional(),
3033
+ }),
3034
+ )
3035
+ .optional(),
3036
+ })
3037
+ .optional()
3038
+ .describe(
3039
+ 'Contact represents an external messaging identity.',
3040
+ ),
3041
+ id: zod.string().optional(),
3042
+ permissions: zod
3043
+ .object({
3044
+ can_add_members: zod.boolean().optional(),
3045
+ can_change_members_permissions: zod
3046
+ .boolean()
3047
+ .optional(),
3048
+ can_change_thread_info: zod.boolean().optional(),
3049
+ can_delete_messages: zod.boolean().optional(),
3050
+ can_remove_members: zod.boolean().optional(),
3051
+ can_send_messages: zod.boolean().optional(),
3052
+ created_at: zod.string().optional(),
3053
+ id: zod.string().optional(),
3054
+ member_id: zod.string().optional(),
3055
+ updated_at: zod.string().optional(),
3056
+ })
3057
+ .optional(),
3058
+ role: zod
3059
+ .enum([
3060
+ 'ROLE_UNSPECIFIED',
3061
+ 'ROLE_MEMBER',
3062
+ 'ROLE_ADMIN',
3063
+ 'ROLE_OWNER',
3064
+ 'ROLE_SUPERVISOR',
3065
+ ])
3066
+ .default(
3067
+ updatesGetUpdatesResponseThreadsItemTopMessageFailuresItemMemberRoleDefault,
3068
+ ),
3069
+ })
3070
+ .optional()
3071
+ .describe(
3072
+ 'ThreadMember represents a thread participant\nwith optional type-specific settings.',
3073
+ ),
3074
+ })
3075
+ .describe(
3076
+ 'DeliveryFailure is one member a message could not be delivered to.',
3077
+ ),
3078
+ )
3079
+ .optional()
3080
+ .describe(
3081
+ "Members the message could not be delivered to, with the provider's reason.\nEmpty when it reached everyone.",
3082
+ ),
2807
3083
  forward_origin: zod
2808
3084
  .object({
2809
3085
  kind: zod