@webitel/api-services 26.8.87 → 26.8.89

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//321/201ontacts/contacts.ts +9 -3
  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
@@ -56,9 +56,16 @@ export const ThreadManagementSearchQueryParams = zod.object({
56
56
  .array(zod.string())
57
57
  .optional()
58
58
  .describe('Filter threads by participant contact IDs.'),
59
+ unread: zod
60
+ .boolean()
61
+ .optional()
62
+ .describe(
63
+ 'Return only threads where the caller has at least one unread message.\nIgnored when false.',
64
+ ),
59
65
  });
60
66
 
61
67
  export const threadManagementSearchResponseItemsItemLastMsgDeletedByRoleDefault = `ROLE_UNSPECIFIED`;
68
+ export const threadManagementSearchResponseItemsItemLastMsgFailuresItemMemberRoleDefault = `ROLE_UNSPECIFIED`;
62
69
  export const threadManagementSearchResponseItemsItemLastMsgForwardOriginKindDefault = `FORWARD_ORIGIN_KIND_UNSPECIFIED`;
63
70
  export const threadManagementSearchResponseItemsItemLastMsgInteractiveInputFieldStateDefault = `INPUT_FIELD_STATE_UNSPECIFIED`;
64
71
  export const threadManagementSearchResponseItemsItemLastMsgInteractivePlacementDefault = `MENU_PLACEMENT_UNSPECIFIED`;
@@ -278,6 +285,141 @@ export const ThreadManagementSearchResponse = zod
278
285
  .describe(
279
286
  'Message last update timestamp (Unix time, milliseconds).',
280
287
  ),
288
+ failures: zod
289
+ .array(
290
+ zod
291
+ .object({
292
+ error: zod
293
+ .object({
294
+ code: zod.string().optional(),
295
+ message: zod.string().optional(),
296
+ })
297
+ .optional()
298
+ .describe(
299
+ 'DeliveryError is a provider\'s delivery failure, e.g. {code: "403", message: "bot was blocked by the user"}.',
300
+ ),
301
+ member: zod
302
+ .object({
303
+ contact: zod
304
+ .object({
305
+ app_id: zod
306
+ .string()
307
+ .optional()
308
+ .describe(
309
+ 'Identifier of the specific integration app or bot.',
310
+ ),
311
+ created_at: zod
312
+ .string()
313
+ .optional()
314
+ .describe(
315
+ 'Record creation timestamp (Unix Epoch in milliseconds).',
316
+ ),
317
+ is_bot: zod
318
+ .boolean()
319
+ .optional()
320
+ .describe(
321
+ 'Represents if usere is real person or automatic script.',
322
+ ),
323
+ iss: zod
324
+ .string()
325
+ .optional()
326
+ .describe(
327
+ 'Provider-specific unique identifier (Issuer ID).',
328
+ ),
329
+ metadata: zod
330
+ .record(zod.string(), zod.string())
331
+ .optional()
332
+ .describe(
333
+ 'Additional dynamic attributes provided by the messenger.',
334
+ ),
335
+ name: zod
336
+ .string()
337
+ .optional()
338
+ .describe('Display name of the contact.'),
339
+ sub: zod
340
+ .string()
341
+ .optional()
342
+ .describe(
343
+ 'Associated internal system subject/identifier.',
344
+ ),
345
+ type: zod
346
+ .string()
347
+ .optional()
348
+ .describe(
349
+ "Channel type (e.g., 'webchat', 'telegram').",
350
+ ),
351
+ updated_at: zod
352
+ .string()
353
+ .optional()
354
+ .describe(
355
+ 'Last record update timestamp (Unix Epoch in milliseconds).',
356
+ ),
357
+ username: zod
358
+ .string()
359
+ .optional()
360
+ .describe('Technical username or handle.'),
361
+ vias: zod
362
+ .array(
363
+ zod.object({
364
+ contact_id: zod.string().optional(),
365
+ created_at: zod.string().optional(),
366
+ disable: zod.boolean().optional(),
367
+ disable_reason: zod.string().optional(),
368
+ metadata: zod.looseObject({}).optional(),
369
+ updated_at: zod.string().optional(),
370
+ via: zod.string().optional(),
371
+ }),
372
+ )
373
+ .optional(),
374
+ })
375
+ .optional()
376
+ .describe(
377
+ 'Contact represents an external messaging identity.',
378
+ ),
379
+ id: zod.string().optional(),
380
+ permissions: zod
381
+ .object({
382
+ can_add_members: zod.boolean().optional(),
383
+ can_change_members_permissions: zod
384
+ .boolean()
385
+ .optional(),
386
+ can_change_thread_info: zod
387
+ .boolean()
388
+ .optional(),
389
+ can_delete_messages: zod.boolean().optional(),
390
+ can_remove_members: zod.boolean().optional(),
391
+ can_send_messages: zod.boolean().optional(),
392
+ created_at: zod.string().optional(),
393
+ id: zod.string().optional(),
394
+ member_id: zod.string().optional(),
395
+ updated_at: zod.string().optional(),
396
+ })
397
+ .optional(),
398
+ role: zod
399
+ .enum([
400
+ 'ROLE_UNSPECIFIED',
401
+ 'ROLE_MEMBER',
402
+ 'ROLE_ADMIN',
403
+ 'ROLE_OWNER',
404
+ 'ROLE_SUPERVISOR',
405
+ ])
406
+ .default(
407
+ threadManagementSearchResponseItemsItemLastMsgFailuresItemMemberRoleDefault,
408
+ ),
409
+ })
410
+ .optional()
411
+ .describe(
412
+ 'ThreadMember represents a thread participant\nwith optional type-specific settings.',
413
+ ),
414
+ })
415
+ .describe(
416
+ 'DeliveryFailure is one member a message could not be delivered to.',
417
+ ),
418
+ )
419
+ .optional()
420
+ .describe(
421
+ "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.",
422
+ ),
281
423
  forward_origin: zod
282
424
  .object({
283
425
  kind: zod
@@ -1566,6 +1708,7 @@ export const ThreadManagementCreateBody = zod
1566
1708
  );
1567
1709
 
1568
1710
  export const threadManagementCreateResponseThreadLastMsgDeletedByRoleDefault = `ROLE_UNSPECIFIED`;
1711
+ export const threadManagementCreateResponseThreadLastMsgFailuresItemMemberRoleDefault = `ROLE_UNSPECIFIED`;
1569
1712
  export const threadManagementCreateResponseThreadLastMsgForwardOriginKindDefault = `FORWARD_ORIGIN_KIND_UNSPECIFIED`;
1570
1713
  export const threadManagementCreateResponseThreadLastMsgInteractiveInputFieldStateDefault = `INPUT_FIELD_STATE_UNSPECIFIED`;
1571
1714
  export const threadManagementCreateResponseThreadLastMsgInteractivePlacementDefault = `MENU_PLACEMENT_UNSPECIFIED`;
@@ -1779,6 +1922,139 @@ export const ThreadManagementCreateResponse = zod
1779
1922
  .describe(
1780
1923
  'Message last update timestamp (Unix time, milliseconds).',
1781
1924
  ),
1925
+ failures: zod
1926
+ .array(
1927
+ zod
1928
+ .object({
1929
+ error: zod
1930
+ .object({
1931
+ code: zod.string().optional(),
1932
+ message: zod.string().optional(),
1933
+ })
1934
+ .optional()
1935
+ .describe(
1936
+ 'DeliveryError is a provider\'s delivery failure, e.g. {code: "403", message: "bot was blocked by the user"}.',
1937
+ ),
1938
+ member: zod
1939
+ .object({
1940
+ contact: zod
1941
+ .object({
1942
+ app_id: zod
1943
+ .string()
1944
+ .optional()
1945
+ .describe(
1946
+ 'Identifier of the specific integration app or bot.',
1947
+ ),
1948
+ created_at: zod
1949
+ .string()
1950
+ .optional()
1951
+ .describe(
1952
+ 'Record creation timestamp (Unix Epoch in milliseconds).',
1953
+ ),
1954
+ is_bot: zod
1955
+ .boolean()
1956
+ .optional()
1957
+ .describe(
1958
+ 'Represents if usere is real person or automatic script.',
1959
+ ),
1960
+ iss: zod
1961
+ .string()
1962
+ .optional()
1963
+ .describe(
1964
+ 'Provider-specific unique identifier (Issuer ID).',
1965
+ ),
1966
+ metadata: zod
1967
+ .record(zod.string(), zod.string())
1968
+ .optional()
1969
+ .describe(
1970
+ 'Additional dynamic attributes provided by the messenger.',
1971
+ ),
1972
+ name: zod
1973
+ .string()
1974
+ .optional()
1975
+ .describe('Display name of the contact.'),
1976
+ sub: zod
1977
+ .string()
1978
+ .optional()
1979
+ .describe(
1980
+ 'Associated internal system subject/identifier.',
1981
+ ),
1982
+ type: zod
1983
+ .string()
1984
+ .optional()
1985
+ .describe(
1986
+ "Channel type (e.g., 'webchat', 'telegram').",
1987
+ ),
1988
+ updated_at: zod
1989
+ .string()
1990
+ .optional()
1991
+ .describe(
1992
+ 'Last record update timestamp (Unix Epoch in milliseconds).',
1993
+ ),
1994
+ username: zod
1995
+ .string()
1996
+ .optional()
1997
+ .describe('Technical username or handle.'),
1998
+ vias: zod
1999
+ .array(
2000
+ zod.object({
2001
+ contact_id: zod.string().optional(),
2002
+ created_at: zod.string().optional(),
2003
+ disable: zod.boolean().optional(),
2004
+ disable_reason: zod.string().optional(),
2005
+ metadata: zod.looseObject({}).optional(),
2006
+ updated_at: zod.string().optional(),
2007
+ via: zod.string().optional(),
2008
+ }),
2009
+ )
2010
+ .optional(),
2011
+ })
2012
+ .optional()
2013
+ .describe(
2014
+ 'Contact represents an external messaging identity.',
2015
+ ),
2016
+ id: zod.string().optional(),
2017
+ permissions: zod
2018
+ .object({
2019
+ can_add_members: zod.boolean().optional(),
2020
+ can_change_members_permissions: zod
2021
+ .boolean()
2022
+ .optional(),
2023
+ can_change_thread_info: zod.boolean().optional(),
2024
+ can_delete_messages: zod.boolean().optional(),
2025
+ can_remove_members: zod.boolean().optional(),
2026
+ can_send_messages: zod.boolean().optional(),
2027
+ created_at: zod.string().optional(),
2028
+ id: zod.string().optional(),
2029
+ member_id: zod.string().optional(),
2030
+ updated_at: zod.string().optional(),
2031
+ })
2032
+ .optional(),
2033
+ role: zod
2034
+ .enum([
2035
+ 'ROLE_UNSPECIFIED',
2036
+ 'ROLE_MEMBER',
2037
+ 'ROLE_ADMIN',
2038
+ 'ROLE_OWNER',
2039
+ 'ROLE_SUPERVISOR',
2040
+ ])
2041
+ .default(
2042
+ threadManagementCreateResponseThreadLastMsgFailuresItemMemberRoleDefault,
2043
+ ),
2044
+ })
2045
+ .optional()
2046
+ .describe(
2047
+ 'ThreadMember represents a thread participant\nwith optional type-specific settings.',
2048
+ ),
2049
+ })
2050
+ .describe(
2051
+ 'DeliveryFailure is one member a message could not be delivered to.',
2052
+ ),
2053
+ )
2054
+ .optional()
2055
+ .describe(
2056
+ "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.",
2057
+ ),
1782
2058
  forward_origin: zod
1783
2059
  .object({
1784
2060
  kind: zod
@@ -3042,6 +3318,7 @@ export const ThreadManagementSearchLeftQueryParams = zod.object({
3042
3318
  });
3043
3319
 
3044
3320
  export const threadManagementSearchLeftResponseItemsItemLastMsgDeletedByRoleDefault = `ROLE_UNSPECIFIED`;
3321
+ export const threadManagementSearchLeftResponseItemsItemLastMsgFailuresItemMemberRoleDefault = `ROLE_UNSPECIFIED`;
3045
3322
  export const threadManagementSearchLeftResponseItemsItemLastMsgForwardOriginKindDefault = `FORWARD_ORIGIN_KIND_UNSPECIFIED`;
3046
3323
  export const threadManagementSearchLeftResponseItemsItemLastMsgInteractiveInputFieldStateDefault = `INPUT_FIELD_STATE_UNSPECIFIED`;
3047
3324
  export const threadManagementSearchLeftResponseItemsItemLastMsgInteractivePlacementDefault = `MENU_PLACEMENT_UNSPECIFIED`;
@@ -3258,6 +3535,139 @@ export const ThreadManagementSearchLeftResponse = zod.object({
3258
3535
  .describe(
3259
3536
  'Message last update timestamp (Unix time, milliseconds).',
3260
3537
  ),
3538
+ failures: zod
3539
+ .array(
3540
+ zod
3541
+ .object({
3542
+ error: zod
3543
+ .object({
3544
+ code: zod.string().optional(),
3545
+ message: zod.string().optional(),
3546
+ })
3547
+ .optional()
3548
+ .describe(
3549
+ 'DeliveryError is a provider\'s delivery failure, e.g. {code: "403", message: "bot was blocked by the user"}.',
3550
+ ),
3551
+ member: zod
3552
+ .object({
3553
+ contact: zod
3554
+ .object({
3555
+ app_id: zod
3556
+ .string()
3557
+ .optional()
3558
+ .describe(
3559
+ 'Identifier of the specific integration app or bot.',
3560
+ ),
3561
+ created_at: zod
3562
+ .string()
3563
+ .optional()
3564
+ .describe(
3565
+ 'Record creation timestamp (Unix Epoch in milliseconds).',
3566
+ ),
3567
+ is_bot: zod
3568
+ .boolean()
3569
+ .optional()
3570
+ .describe(
3571
+ 'Represents if usere is real person or automatic script.',
3572
+ ),
3573
+ iss: zod
3574
+ .string()
3575
+ .optional()
3576
+ .describe(
3577
+ 'Provider-specific unique identifier (Issuer ID).',
3578
+ ),
3579
+ metadata: zod
3580
+ .record(zod.string(), zod.string())
3581
+ .optional()
3582
+ .describe(
3583
+ 'Additional dynamic attributes provided by the messenger.',
3584
+ ),
3585
+ name: zod
3586
+ .string()
3587
+ .optional()
3588
+ .describe('Display name of the contact.'),
3589
+ sub: zod
3590
+ .string()
3591
+ .optional()
3592
+ .describe(
3593
+ 'Associated internal system subject/identifier.',
3594
+ ),
3595
+ type: zod
3596
+ .string()
3597
+ .optional()
3598
+ .describe(
3599
+ "Channel type (e.g., 'webchat', 'telegram').",
3600
+ ),
3601
+ updated_at: zod
3602
+ .string()
3603
+ .optional()
3604
+ .describe(
3605
+ 'Last record update timestamp (Unix Epoch in milliseconds).',
3606
+ ),
3607
+ username: zod
3608
+ .string()
3609
+ .optional()
3610
+ .describe('Technical username or handle.'),
3611
+ vias: zod
3612
+ .array(
3613
+ zod.object({
3614
+ contact_id: zod.string().optional(),
3615
+ created_at: zod.string().optional(),
3616
+ disable: zod.boolean().optional(),
3617
+ disable_reason: zod.string().optional(),
3618
+ metadata: zod.looseObject({}).optional(),
3619
+ updated_at: zod.string().optional(),
3620
+ via: zod.string().optional(),
3621
+ }),
3622
+ )
3623
+ .optional(),
3624
+ })
3625
+ .optional()
3626
+ .describe(
3627
+ 'Contact represents an external messaging identity.',
3628
+ ),
3629
+ id: zod.string().optional(),
3630
+ permissions: zod
3631
+ .object({
3632
+ can_add_members: zod.boolean().optional(),
3633
+ can_change_members_permissions: zod
3634
+ .boolean()
3635
+ .optional(),
3636
+ can_change_thread_info: zod.boolean().optional(),
3637
+ can_delete_messages: zod.boolean().optional(),
3638
+ can_remove_members: zod.boolean().optional(),
3639
+ can_send_messages: zod.boolean().optional(),
3640
+ created_at: zod.string().optional(),
3641
+ id: zod.string().optional(),
3642
+ member_id: zod.string().optional(),
3643
+ updated_at: zod.string().optional(),
3644
+ })
3645
+ .optional(),
3646
+ role: zod
3647
+ .enum([
3648
+ 'ROLE_UNSPECIFIED',
3649
+ 'ROLE_MEMBER',
3650
+ 'ROLE_ADMIN',
3651
+ 'ROLE_OWNER',
3652
+ 'ROLE_SUPERVISOR',
3653
+ ])
3654
+ .default(
3655
+ threadManagementSearchLeftResponseItemsItemLastMsgFailuresItemMemberRoleDefault,
3656
+ ),
3657
+ })
3658
+ .optional()
3659
+ .describe(
3660
+ 'ThreadMember represents a thread participant\nwith optional type-specific settings.',
3661
+ ),
3662
+ })
3663
+ .describe(
3664
+ 'DeliveryFailure is one member a message could not be delivered to.',
3665
+ ),
3666
+ )
3667
+ .optional()
3668
+ .describe(
3669
+ "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.",
3670
+ ),
3261
3671
  forward_origin: zod
3262
3672
  .object({
3263
3673
  kind: zod
@@ -4530,6 +4940,7 @@ export const ThreadManagementGetQueryParams = zod.object({
4530
4940
  });
4531
4941
 
4532
4942
  export const threadManagementGetResponseLastMsgDeletedByRoleDefault = `ROLE_UNSPECIFIED`;
4943
+ export const threadManagementGetResponseLastMsgFailuresItemMemberRoleDefault = `ROLE_UNSPECIFIED`;
4533
4944
  export const threadManagementGetResponseLastMsgForwardOriginKindDefault = `FORWARD_ORIGIN_KIND_UNSPECIFIED`;
4534
4945
  export const threadManagementGetResponseLastMsgInteractiveInputFieldStateDefault = `INPUT_FIELD_STATE_UNSPECIFIED`;
4535
4946
  export const threadManagementGetResponseLastMsgInteractivePlacementDefault = `MENU_PLACEMENT_UNSPECIFIED`;
@@ -4714,6 +5125,139 @@ export const ThreadManagementGetResponse = zod
4714
5125
  .string()
4715
5126
  .optional()
4716
5127
  .describe('Message last update timestamp (Unix time, milliseconds).'),
5128
+ failures: zod
5129
+ .array(
5130
+ zod
5131
+ .object({
5132
+ error: zod
5133
+ .object({
5134
+ code: zod.string().optional(),
5135
+ message: zod.string().optional(),
5136
+ })
5137
+ .optional()
5138
+ .describe(
5139
+ 'DeliveryError is a provider\'s delivery failure, e.g. {code: "403", message: "bot was blocked by the user"}.',
5140
+ ),
5141
+ member: zod
5142
+ .object({
5143
+ contact: zod
5144
+ .object({
5145
+ app_id: zod
5146
+ .string()
5147
+ .optional()
5148
+ .describe(
5149
+ 'Identifier of the specific integration app or bot.',
5150
+ ),
5151
+ created_at: zod
5152
+ .string()
5153
+ .optional()
5154
+ .describe(
5155
+ 'Record creation timestamp (Unix Epoch in milliseconds).',
5156
+ ),
5157
+ is_bot: zod
5158
+ .boolean()
5159
+ .optional()
5160
+ .describe(
5161
+ 'Represents if usere is real person or automatic script.',
5162
+ ),
5163
+ iss: zod
5164
+ .string()
5165
+ .optional()
5166
+ .describe(
5167
+ 'Provider-specific unique identifier (Issuer ID).',
5168
+ ),
5169
+ metadata: zod
5170
+ .record(zod.string(), zod.string())
5171
+ .optional()
5172
+ .describe(
5173
+ 'Additional dynamic attributes provided by the messenger.',
5174
+ ),
5175
+ name: zod
5176
+ .string()
5177
+ .optional()
5178
+ .describe('Display name of the contact.'),
5179
+ sub: zod
5180
+ .string()
5181
+ .optional()
5182
+ .describe(
5183
+ 'Associated internal system subject/identifier.',
5184
+ ),
5185
+ type: zod
5186
+ .string()
5187
+ .optional()
5188
+ .describe(
5189
+ "Channel type (e.g., 'webchat', 'telegram').",
5190
+ ),
5191
+ updated_at: zod
5192
+ .string()
5193
+ .optional()
5194
+ .describe(
5195
+ 'Last record update timestamp (Unix Epoch in milliseconds).',
5196
+ ),
5197
+ username: zod
5198
+ .string()
5199
+ .optional()
5200
+ .describe('Technical username or handle.'),
5201
+ vias: zod
5202
+ .array(
5203
+ zod.object({
5204
+ contact_id: zod.string().optional(),
5205
+ created_at: zod.string().optional(),
5206
+ disable: zod.boolean().optional(),
5207
+ disable_reason: zod.string().optional(),
5208
+ metadata: zod.looseObject({}).optional(),
5209
+ updated_at: zod.string().optional(),
5210
+ via: zod.string().optional(),
5211
+ }),
5212
+ )
5213
+ .optional(),
5214
+ })
5215
+ .optional()
5216
+ .describe(
5217
+ 'Contact represents an external messaging identity.',
5218
+ ),
5219
+ id: zod.string().optional(),
5220
+ permissions: zod
5221
+ .object({
5222
+ can_add_members: zod.boolean().optional(),
5223
+ can_change_members_permissions: zod
5224
+ .boolean()
5225
+ .optional(),
5226
+ can_change_thread_info: zod.boolean().optional(),
5227
+ can_delete_messages: zod.boolean().optional(),
5228
+ can_remove_members: zod.boolean().optional(),
5229
+ can_send_messages: zod.boolean().optional(),
5230
+ created_at: zod.string().optional(),
5231
+ id: zod.string().optional(),
5232
+ member_id: zod.string().optional(),
5233
+ updated_at: zod.string().optional(),
5234
+ })
5235
+ .optional(),
5236
+ role: zod
5237
+ .enum([
5238
+ 'ROLE_UNSPECIFIED',
5239
+ 'ROLE_MEMBER',
5240
+ 'ROLE_ADMIN',
5241
+ 'ROLE_OWNER',
5242
+ 'ROLE_SUPERVISOR',
5243
+ ])
5244
+ .default(
5245
+ threadManagementGetResponseLastMsgFailuresItemMemberRoleDefault,
5246
+ ),
5247
+ })
5248
+ .optional()
5249
+ .describe(
5250
+ 'ThreadMember represents a thread participant\nwith optional type-specific settings.',
5251
+ ),
5252
+ })
5253
+ .describe(
5254
+ 'DeliveryFailure is one member a message could not be delivered to.',
5255
+ ),
5256
+ )
5257
+ .optional()
5258
+ .describe(
5259
+ "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.",
5260
+ ),
4717
5261
  forward_origin: zod
4718
5262
  .object({
4719
5263
  kind: zod
@@ -6085,6 +6629,22 @@ export const ThreadManagementTransferBody = zod.object({
6085
6629
  via: zod.string().optional(),
6086
6630
  })
6087
6631
  .optional(),
6632
+ initiator: zod
6633
+ .object({
6634
+ chat_name: zod
6635
+ .string()
6636
+ .optional()
6637
+ .describe(
6638
+ 'chat_name is the name external clients see instead of the real one.',
6639
+ ),
6640
+ iss: zod.string().optional(),
6641
+ sub: zod.string().optional(),
6642
+ via: zod.string().optional(),
6643
+ })
6644
+ .optional()
6645
+ .describe(
6646
+ 'Member the thread is transferred from. Honored only for trusted service\ncallers (schema/engine); user calls always transfer from the caller.',
6647
+ ),
6088
6648
  role: zod
6089
6649
  .enum([
6090
6650
  'ROLE_UNSPECIFIED',