@webitel/api-services 1.0.14 → 1.0.15

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 (86) hide show
  1. package/package.json +1 -1
  2. package/src/gen/_models/downloadCallScreenrecordingArchive200.ts +13 -0
  3. package/src/gen/_models/downloadCallScreenrecordingArchiveParams.ts +21 -0
  4. package/src/gen/_models/downloadScreenshotArchive200.ts +13 -0
  5. package/src/gen/_models/downloadScreenshotArchiveParams.ts +21 -0
  6. package/src/gen/_models/engineAgent.ts +1 -0
  7. package/src/gen/_models/index.ts +10 -0
  8. package/src/gen/_models/listCallExportsParams.ts +2 -0
  9. package/src/gen/_models/listScreenrecordingExportsParams.ts +2 -0
  10. package/src/gen/_models/searchScreenRecordingsByCallChannel.ts +14 -0
  11. package/src/gen/_models/searchScreenRecordingsByCallParams.ts +24 -0
  12. package/src/gen/_models/searchScreenRecordingsByCallType.ts +15 -0
  13. package/src/gen/_models/webitelImApiGatewayV1HistoryMessage.ts +5 -2
  14. package/src/gen/_models/webitelImApiGatewayV1MessageRevision.ts +3 -2
  15. package/src/gen/_models/webitelImApiGatewayV1ReplyToMessage.ts +7 -1
  16. package/src/gen/_models/webitelMediaExporterDownloadCallScreenrecordingArchiveResponse.ts +14 -0
  17. package/src/gen/_models/webitelMediaExporterDownloadScreenshotArchiveResponse.ts +14 -0
  18. package/src/gen/_models/webitelMediaExporterFilterBetween.ts +14 -0
  19. package/src/gen-wire/_models/downloadCallScreenrecordingArchive200.ts +13 -0
  20. package/src/gen-wire/_models/downloadCallScreenrecordingArchiveParams.ts +21 -0
  21. package/src/gen-wire/_models/downloadScreenshotArchive200.ts +13 -0
  22. package/src/gen-wire/_models/downloadScreenshotArchiveParams.ts +21 -0
  23. package/src/gen-wire/_models/engineAgent.ts +1 -0
  24. package/src/gen-wire/_models/index.ts +10 -0
  25. package/src/gen-wire/_models/listCallExportsParams.ts +2 -0
  26. package/src/gen-wire/_models/listScreenrecordingExportsParams.ts +2 -0
  27. package/src/gen-wire/_models/searchScreenRecordingsByCallChannel.ts +14 -0
  28. package/src/gen-wire/_models/searchScreenRecordingsByCallParams.ts +24 -0
  29. package/src/gen-wire/_models/searchScreenRecordingsByCallType.ts +15 -0
  30. package/src/gen-wire/_models/webitelImApiGatewayV1HistoryMessage.ts +5 -2
  31. package/src/gen-wire/_models/webitelImApiGatewayV1MessageRevision.ts +3 -2
  32. package/src/gen-wire/_models/webitelImApiGatewayV1ReplyToMessage.ts +7 -1
  33. package/src/gen-wire/_models/webitelMediaExporterDownloadCallScreenrecordingArchiveResponse.ts +14 -0
  34. package/src/gen-wire/_models/webitelMediaExporterDownloadScreenshotArchiveResponse.ts +14 -0
  35. package/src/gen-wire/_models/webitelMediaExporterFilterBetween.ts +14 -0
  36. package/src/gen-wire/agent-service/agent-service.zod.ts +6 -0
  37. package/src/gen-wire/file-service/file-service.ts +16 -0
  38. package/src/gen-wire/file-service/file-service.zod.ts +90 -0
  39. package/src/gen-wire/index.ts +20 -0
  40. package/src/gen-wire/pdf-service/pdf-service.ts +50 -0
  41. package/src/gen-wire/pdf-service/pdf-service.zod.ts +98 -0
  42. package/src/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.ts +438 -11
  43. package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.ts +446 -12
  44. package/types/.tsbuildinfo +1 -1
  45. package/types/gen/_models/downloadCallScreenrecordingArchive200.d.ts +12 -0
  46. package/types/gen/_models/downloadCallScreenrecordingArchiveParams.d.ts +20 -0
  47. package/types/gen/_models/downloadScreenshotArchive200.d.ts +12 -0
  48. package/types/gen/_models/downloadScreenshotArchiveParams.d.ts +20 -0
  49. package/types/gen/_models/engineAgent.d.ts +1 -0
  50. package/types/gen/_models/index.d.ts +10 -0
  51. package/types/gen/_models/listCallExportsParams.d.ts +2 -0
  52. package/types/gen/_models/listScreenrecordingExportsParams.d.ts +2 -0
  53. package/types/gen/_models/searchScreenRecordingsByCallChannel.d.ts +11 -0
  54. package/types/gen/_models/searchScreenRecordingsByCallParams.d.ts +23 -0
  55. package/types/gen/_models/searchScreenRecordingsByCallType.d.ts +12 -0
  56. package/types/gen/_models/webitelImApiGatewayV1HistoryMessage.d.ts +5 -2
  57. package/types/gen/_models/webitelImApiGatewayV1MessageRevision.d.ts +3 -2
  58. package/types/gen/_models/webitelImApiGatewayV1ReplyToMessage.d.ts +7 -1
  59. package/types/gen/_models/webitelMediaExporterDownloadCallScreenrecordingArchiveResponse.d.ts +13 -0
  60. package/types/gen/_models/webitelMediaExporterDownloadScreenshotArchiveResponse.d.ts +13 -0
  61. package/types/gen/_models/webitelMediaExporterFilterBetween.d.ts +13 -0
  62. package/types/gen-wire/_models/downloadCallScreenrecordingArchive200.d.ts +12 -0
  63. package/types/gen-wire/_models/downloadCallScreenrecordingArchiveParams.d.ts +20 -0
  64. package/types/gen-wire/_models/downloadScreenshotArchive200.d.ts +12 -0
  65. package/types/gen-wire/_models/downloadScreenshotArchiveParams.d.ts +20 -0
  66. package/types/gen-wire/_models/engineAgent.d.ts +1 -0
  67. package/types/gen-wire/_models/index.d.ts +10 -0
  68. package/types/gen-wire/_models/listCallExportsParams.d.ts +2 -0
  69. package/types/gen-wire/_models/listScreenrecordingExportsParams.d.ts +2 -0
  70. package/types/gen-wire/_models/searchScreenRecordingsByCallChannel.d.ts +11 -0
  71. package/types/gen-wire/_models/searchScreenRecordingsByCallParams.d.ts +23 -0
  72. package/types/gen-wire/_models/searchScreenRecordingsByCallType.d.ts +12 -0
  73. package/types/gen-wire/_models/webitelImApiGatewayV1HistoryMessage.d.ts +5 -2
  74. package/types/gen-wire/_models/webitelImApiGatewayV1MessageRevision.d.ts +3 -2
  75. package/types/gen-wire/_models/webitelImApiGatewayV1ReplyToMessage.d.ts +7 -1
  76. package/types/gen-wire/_models/webitelMediaExporterDownloadCallScreenrecordingArchiveResponse.d.ts +13 -0
  77. package/types/gen-wire/_models/webitelMediaExporterDownloadScreenshotArchiveResponse.d.ts +13 -0
  78. package/types/gen-wire/_models/webitelMediaExporterFilterBetween.d.ts +13 -0
  79. package/types/gen-wire/agent-service/agent-service.zod.d.ts +6 -0
  80. package/types/gen-wire/file-service/file-service.d.ts +3 -1
  81. package/types/gen-wire/file-service/file-service.zod.d.ts +69 -0
  82. package/types/gen-wire/index.d.ts +4 -4
  83. package/types/gen-wire/pdf-service/pdf-service.d.ts +5 -1
  84. package/types/gen-wire/pdf-service/pdf-service.zod.d.ts +52 -0
  85. package/types/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.d.ts +185 -7
  86. package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.d.ts +188 -8
@@ -54,6 +54,7 @@ export const MessageHistorySearchMessagesQueryParams = zod.object({
54
54
  size: zod.int().optional().describe('Maximum number of matches to return.'),
55
55
  });
56
56
 
57
+ export const messageHistorySearchMessagesResponseItemsItemDeletedByRoleDefault = `ROLE_UNSPECIFIED`;
57
58
  export const messageHistorySearchMessagesResponseItemsItemDeliveryStatusDefault = `MESSAGE_DELIVERY_STATUS_UNSPECIFIED`;
58
59
  export const messageHistorySearchMessagesResponseItemsItemForwardOriginKindDefault = `FORWARD_ORIGIN_KIND_UNSPECIFIED`;
59
60
  export const messageHistorySearchMessagesResponseItemsItemInteractiveInputFieldStateDefault = `INPUT_FIELD_STATE_UNSPECIFIED`;
@@ -96,10 +97,111 @@ export const MessageHistorySearchMessagesResponse = zod
96
97
  'Unix time in milliseconds when the message was deleted.',
97
98
  ),
98
99
  deleted_by: zod
99
- .string()
100
+ .object({
101
+ contact: zod
102
+ .object({
103
+ app_id: zod
104
+ .string()
105
+ .optional()
106
+ .describe(
107
+ 'Identifier of the specific integration app or bot.',
108
+ ),
109
+ created_at: zod
110
+ .string()
111
+ .optional()
112
+ .describe(
113
+ 'Record creation timestamp (Unix Epoch in milliseconds).',
114
+ ),
115
+ is_bot: zod
116
+ .boolean()
117
+ .optional()
118
+ .describe(
119
+ 'Represents if usere is real person or automatic script.',
120
+ ),
121
+ iss: zod
122
+ .string()
123
+ .optional()
124
+ .describe(
125
+ 'Provider-specific unique identifier (Issuer ID).',
126
+ ),
127
+ metadata: zod
128
+ .record(zod.string(), zod.string())
129
+ .optional()
130
+ .describe(
131
+ 'Additional dynamic attributes provided by the messenger.',
132
+ ),
133
+ name: zod
134
+ .string()
135
+ .optional()
136
+ .describe('Display name of the contact.'),
137
+ sub: zod
138
+ .string()
139
+ .optional()
140
+ .describe(
141
+ 'Associated internal system subject/identifier.',
142
+ ),
143
+ type: zod
144
+ .string()
145
+ .optional()
146
+ .describe("Channel type (e.g., 'webchat', 'telegram')."),
147
+ updated_at: zod
148
+ .string()
149
+ .optional()
150
+ .describe(
151
+ 'Last record update timestamp (Unix Epoch in milliseconds).',
152
+ ),
153
+ username: zod
154
+ .string()
155
+ .optional()
156
+ .describe('Technical username or handle.'),
157
+ vias: zod
158
+ .array(
159
+ zod.object({
160
+ contact_id: zod.string().optional(),
161
+ created_at: zod.string().optional(),
162
+ disable: zod.boolean().optional(),
163
+ disable_reason: zod.string().optional(),
164
+ metadata: zod.looseObject({}).optional(),
165
+ updated_at: zod.string().optional(),
166
+ via: zod.string().optional(),
167
+ }),
168
+ )
169
+ .optional(),
170
+ })
171
+ .optional()
172
+ .describe(
173
+ 'Contact represents an external messaging identity.',
174
+ ),
175
+ id: zod.string().optional(),
176
+ permissions: zod
177
+ .object({
178
+ can_add_members: zod.boolean().optional(),
179
+ can_change_members_permissions: zod.boolean().optional(),
180
+ can_change_thread_info: zod.boolean().optional(),
181
+ can_delete_messages: zod.boolean().optional(),
182
+ can_remove_members: zod.boolean().optional(),
183
+ can_send_messages: zod.boolean().optional(),
184
+ created_at: zod.string().optional(),
185
+ id: zod.string().optional(),
186
+ member_id: zod.string().optional(),
187
+ updated_at: zod.string().optional(),
188
+ })
189
+ .optional(),
190
+ role: zod
191
+ .enum([
192
+ 'ROLE_UNSPECIFIED',
193
+ 'ROLE_MEMBER',
194
+ 'ROLE_ADMIN',
195
+ 'ROLE_OWNER',
196
+ 'ROLE_SUPERVISOR',
197
+ ])
198
+ .default(
199
+ messageHistorySearchMessagesResponseItemsItemDeletedByRoleDefault,
200
+ ),
201
+ })
100
202
  .optional()
101
203
  .describe(
102
- 'Contact id of the member who deleted the message; empty when it is live.',
204
+ 'Member who deleted the message, enriched exactly like sender; unset while\nthe message is live.',
103
205
  ),
104
206
  delivery_status: zod
105
207
  .enum([
@@ -718,12 +820,14 @@ export const MessageHistorySearchMessagesResponse = zod
718
820
  ),
719
821
  reply_to: zod
720
822
  .object({
823
+ attachment_address: zod.string().optional(),
721
824
  attachment_kind: zod.string().optional(),
722
825
  attachment_mime: zod.string().optional(),
723
826
  attachment_name: zod.string().optional(),
724
827
  body: zod.string().optional(),
725
828
  created_at: zod.string().optional(),
726
829
  id: zod.string().optional(),
830
+ is_deleted: zod.boolean().optional(),
727
831
  sender: zod
728
832
  .object({
729
833
  contact: zod
@@ -836,7 +940,12 @@ export const MessageHistorySearchMessagesResponse = zod
836
940
  'ThreadMember represents a thread participant\nwith optional type-specific settings.',
837
941
  ),
838
942
  sender_id: zod.string().optional(),
839
- type: zod.int().optional(),
943
+ type: zod
944
+ .string()
945
+ .optional()
946
+ .describe(
947
+ 'Kind of the quoted message: text, document, image, system, interactive,\nlocation or contact.',
948
+ ),
840
949
  })
841
950
  .optional(),
842
951
  revision_count: zod
@@ -1072,6 +1181,7 @@ export const MessageHistoryGetMessageRevisionsParams = zod.object({
1072
1181
  });
1073
1182
 
1074
1183
  export const messageHistoryGetMessageRevisionsResponseItemsItemActionDefault = `MESSAGE_REVISION_ACTION_UNSPECIFIED`;
1184
+ export const messageHistoryGetMessageRevisionsResponseItemsItemChangedByRoleDefault = `ROLE_UNSPECIFIED`;
1075
1185
 
1076
1186
  export const MessageHistoryGetMessageRevisionsResponse = zod.object({
1077
1187
  items: zod
@@ -1102,9 +1212,108 @@ export const MessageHistoryGetMessageRevisionsResponse = zod.object({
1102
1212
  .optional()
1103
1213
  .describe('Unix time in milliseconds when the change was made.'),
1104
1214
  changed_by: zod
1105
- .string()
1215
+ .object({
1216
+ contact: zod
1217
+ .object({
1218
+ app_id: zod
1219
+ .string()
1220
+ .optional()
1221
+ .describe(
1222
+ 'Identifier of the specific integration app or bot.',
1223
+ ),
1224
+ created_at: zod
1225
+ .string()
1226
+ .optional()
1227
+ .describe(
1228
+ 'Record creation timestamp (Unix Epoch in milliseconds).',
1229
+ ),
1230
+ is_bot: zod
1231
+ .boolean()
1232
+ .optional()
1233
+ .describe(
1234
+ 'Represents if usere is real person or automatic script.',
1235
+ ),
1236
+ iss: zod
1237
+ .string()
1238
+ .optional()
1239
+ .describe(
1240
+ 'Provider-specific unique identifier (Issuer ID).',
1241
+ ),
1242
+ metadata: zod
1243
+ .record(zod.string(), zod.string())
1244
+ .optional()
1245
+ .describe(
1246
+ 'Additional dynamic attributes provided by the messenger.',
1247
+ ),
1248
+ name: zod
1249
+ .string()
1250
+ .optional()
1251
+ .describe('Display name of the contact.'),
1252
+ sub: zod
1253
+ .string()
1254
+ .optional()
1255
+ .describe('Associated internal system subject/identifier.'),
1256
+ type: zod
1257
+ .string()
1258
+ .optional()
1259
+ .describe("Channel type (e.g., 'webchat', 'telegram')."),
1260
+ updated_at: zod
1261
+ .string()
1262
+ .optional()
1263
+ .describe(
1264
+ 'Last record update timestamp (Unix Epoch in milliseconds).',
1265
+ ),
1266
+ username: zod
1267
+ .string()
1268
+ .optional()
1269
+ .describe('Technical username or handle.'),
1270
+ vias: zod
1271
+ .array(
1272
+ zod.object({
1273
+ contact_id: zod.string().optional(),
1274
+ created_at: zod.string().optional(),
1275
+ disable: zod.boolean().optional(),
1276
+ disable_reason: zod.string().optional(),
1277
+ metadata: zod.looseObject({}).optional(),
1278
+ updated_at: zod.string().optional(),
1279
+ via: zod.string().optional(),
1280
+ }),
1281
+ )
1282
+ .optional(),
1283
+ })
1284
+ .optional()
1285
+ .describe('Contact represents an external messaging identity.'),
1286
+ id: zod.string().optional(),
1287
+ permissions: zod
1288
+ .object({
1289
+ can_add_members: zod.boolean().optional(),
1290
+ can_change_members_permissions: zod.boolean().optional(),
1291
+ can_change_thread_info: zod.boolean().optional(),
1292
+ can_delete_messages: zod.boolean().optional(),
1293
+ can_remove_members: zod.boolean().optional(),
1294
+ can_send_messages: zod.boolean().optional(),
1295
+ created_at: zod.string().optional(),
1296
+ id: zod.string().optional(),
1297
+ member_id: zod.string().optional(),
1298
+ updated_at: zod.string().optional(),
1299
+ })
1300
+ .optional(),
1301
+ role: zod
1302
+ .enum([
1303
+ 'ROLE_UNSPECIFIED',
1304
+ 'ROLE_MEMBER',
1305
+ 'ROLE_ADMIN',
1306
+ 'ROLE_OWNER',
1307
+ 'ROLE_SUPERVISOR',
1308
+ ])
1309
+ .default(
1310
+ messageHistoryGetMessageRevisionsResponseItemsItemChangedByRoleDefault,
1311
+ ),
1312
+ })
1106
1313
  .optional()
1107
- .describe('Contact id of the member who made the change.'),
1314
+ .describe(
1315
+ 'Member who made the change, enriched exactly like a message sender.',
1316
+ ),
1108
1317
  version: zod
1109
1318
  .int()
1110
1319
  .optional()
@@ -1177,6 +1386,7 @@ export const MessageHistorySearchLeftThreadsMessagesHistoryQueryParams =
1177
1386
  .describe('Maximum number of messages to return.'),
1178
1387
  });
1179
1388
 
1389
+ export const messageHistorySearchLeftThreadsMessagesHistoryResponseItemsItemDeletedByRoleDefault = `ROLE_UNSPECIFIED`;
1180
1390
  export const messageHistorySearchLeftThreadsMessagesHistoryResponseItemsItemDeliveryStatusDefault = `MESSAGE_DELIVERY_STATUS_UNSPECIFIED`;
1181
1391
  export const messageHistorySearchLeftThreadsMessagesHistoryResponseItemsItemForwardOriginKindDefault = `FORWARD_ORIGIN_KIND_UNSPECIFIED`;
1182
1392
  export const messageHistorySearchLeftThreadsMessagesHistoryResponseItemsItemInteractiveInputFieldStateDefault = `INPUT_FIELD_STATE_UNSPECIFIED`;
@@ -1219,10 +1429,111 @@ export const MessageHistorySearchLeftThreadsMessagesHistoryResponse = zod
1219
1429
  'Unix time in milliseconds when the message was deleted.',
1220
1430
  ),
1221
1431
  deleted_by: zod
1222
- .string()
1432
+ .object({
1433
+ contact: zod
1434
+ .object({
1435
+ app_id: zod
1436
+ .string()
1437
+ .optional()
1438
+ .describe(
1439
+ 'Identifier of the specific integration app or bot.',
1440
+ ),
1441
+ created_at: zod
1442
+ .string()
1443
+ .optional()
1444
+ .describe(
1445
+ 'Record creation timestamp (Unix Epoch in milliseconds).',
1446
+ ),
1447
+ is_bot: zod
1448
+ .boolean()
1449
+ .optional()
1450
+ .describe(
1451
+ 'Represents if usere is real person or automatic script.',
1452
+ ),
1453
+ iss: zod
1454
+ .string()
1455
+ .optional()
1456
+ .describe(
1457
+ 'Provider-specific unique identifier (Issuer ID).',
1458
+ ),
1459
+ metadata: zod
1460
+ .record(zod.string(), zod.string())
1461
+ .optional()
1462
+ .describe(
1463
+ 'Additional dynamic attributes provided by the messenger.',
1464
+ ),
1465
+ name: zod
1466
+ .string()
1467
+ .optional()
1468
+ .describe('Display name of the contact.'),
1469
+ sub: zod
1470
+ .string()
1471
+ .optional()
1472
+ .describe(
1473
+ 'Associated internal system subject/identifier.',
1474
+ ),
1475
+ type: zod
1476
+ .string()
1477
+ .optional()
1478
+ .describe("Channel type (e.g., 'webchat', 'telegram')."),
1479
+ updated_at: zod
1480
+ .string()
1481
+ .optional()
1482
+ .describe(
1483
+ 'Last record update timestamp (Unix Epoch in milliseconds).',
1484
+ ),
1485
+ username: zod
1486
+ .string()
1487
+ .optional()
1488
+ .describe('Technical username or handle.'),
1489
+ vias: zod
1490
+ .array(
1491
+ zod.object({
1492
+ contact_id: zod.string().optional(),
1493
+ created_at: zod.string().optional(),
1494
+ disable: zod.boolean().optional(),
1495
+ disable_reason: zod.string().optional(),
1496
+ metadata: zod.looseObject({}).optional(),
1497
+ updated_at: zod.string().optional(),
1498
+ via: zod.string().optional(),
1499
+ }),
1500
+ )
1501
+ .optional(),
1502
+ })
1503
+ .optional()
1504
+ .describe(
1505
+ 'Contact represents an external messaging identity.',
1506
+ ),
1507
+ id: zod.string().optional(),
1508
+ permissions: zod
1509
+ .object({
1510
+ can_add_members: zod.boolean().optional(),
1511
+ can_change_members_permissions: zod.boolean().optional(),
1512
+ can_change_thread_info: zod.boolean().optional(),
1513
+ can_delete_messages: zod.boolean().optional(),
1514
+ can_remove_members: zod.boolean().optional(),
1515
+ can_send_messages: zod.boolean().optional(),
1516
+ created_at: zod.string().optional(),
1517
+ id: zod.string().optional(),
1518
+ member_id: zod.string().optional(),
1519
+ updated_at: zod.string().optional(),
1520
+ })
1521
+ .optional(),
1522
+ role: zod
1523
+ .enum([
1524
+ 'ROLE_UNSPECIFIED',
1525
+ 'ROLE_MEMBER',
1526
+ 'ROLE_ADMIN',
1527
+ 'ROLE_OWNER',
1528
+ 'ROLE_SUPERVISOR',
1529
+ ])
1530
+ .default(
1531
+ messageHistorySearchLeftThreadsMessagesHistoryResponseItemsItemDeletedByRoleDefault,
1532
+ ),
1533
+ })
1223
1534
  .optional()
1224
1535
  .describe(
1225
- 'Contact id of the member who deleted the message; empty when it is live.',
1536
+ 'Member who deleted the message, enriched exactly like sender; unset while\nthe message is live.',
1226
1537
  ),
1227
1538
  delivery_status: zod
1228
1539
  .enum([
@@ -1841,12 +2152,14 @@ export const MessageHistorySearchLeftThreadsMessagesHistoryResponse = zod
1841
2152
  ),
1842
2153
  reply_to: zod
1843
2154
  .object({
2155
+ attachment_address: zod.string().optional(),
1844
2156
  attachment_kind: zod.string().optional(),
1845
2157
  attachment_mime: zod.string().optional(),
1846
2158
  attachment_name: zod.string().optional(),
1847
2159
  body: zod.string().optional(),
1848
2160
  created_at: zod.string().optional(),
1849
2161
  id: zod.string().optional(),
2162
+ is_deleted: zod.boolean().optional(),
1850
2163
  sender: zod
1851
2164
  .object({
1852
2165
  contact: zod
@@ -1959,7 +2272,12 @@ export const MessageHistorySearchLeftThreadsMessagesHistoryResponse = zod
1959
2272
  'ThreadMember represents a thread participant\nwith optional type-specific settings.',
1960
2273
  ),
1961
2274
  sender_id: zod.string().optional(),
1962
- type: zod.int().optional(),
2275
+ type: zod
2276
+ .string()
2277
+ .optional()
2278
+ .describe(
2279
+ 'Kind of the quoted message: text, document, image, system, interactive,\nlocation or contact.',
2280
+ ),
1963
2281
  })
1964
2282
  .optional(),
1965
2283
  revision_count: zod
@@ -2228,6 +2546,7 @@ export const MessageHistorySearchThreadMessagesHistoryQueryParams = zod.object({
2228
2546
  size: zod.int().optional().describe('Maximum number of messages to return.'),
2229
2547
  });
2230
2548
 
2549
+ export const messageHistorySearchThreadMessagesHistoryResponseItemsItemDeletedByRoleDefault = `ROLE_UNSPECIFIED`;
2231
2550
  export const messageHistorySearchThreadMessagesHistoryResponseItemsItemDeliveryStatusDefault = `MESSAGE_DELIVERY_STATUS_UNSPECIFIED`;
2232
2551
  export const messageHistorySearchThreadMessagesHistoryResponseItemsItemForwardOriginKindDefault = `FORWARD_ORIGIN_KIND_UNSPECIFIED`;
2233
2552
  export const messageHistorySearchThreadMessagesHistoryResponseItemsItemInteractiveInputFieldStateDefault = `INPUT_FIELD_STATE_UNSPECIFIED`;
@@ -2270,10 +2589,111 @@ export const MessageHistorySearchThreadMessagesHistoryResponse = zod
2270
2589
  'Unix time in milliseconds when the message was deleted.',
2271
2590
  ),
2272
2591
  deleted_by: zod
2273
- .string()
2592
+ .object({
2593
+ contact: zod
2594
+ .object({
2595
+ app_id: zod
2596
+ .string()
2597
+ .optional()
2598
+ .describe(
2599
+ 'Identifier of the specific integration app or bot.',
2600
+ ),
2601
+ created_at: zod
2602
+ .string()
2603
+ .optional()
2604
+ .describe(
2605
+ 'Record creation timestamp (Unix Epoch in milliseconds).',
2606
+ ),
2607
+ is_bot: zod
2608
+ .boolean()
2609
+ .optional()
2610
+ .describe(
2611
+ 'Represents if usere is real person or automatic script.',
2612
+ ),
2613
+ iss: zod
2614
+ .string()
2615
+ .optional()
2616
+ .describe(
2617
+ 'Provider-specific unique identifier (Issuer ID).',
2618
+ ),
2619
+ metadata: zod
2620
+ .record(zod.string(), zod.string())
2621
+ .optional()
2622
+ .describe(
2623
+ 'Additional dynamic attributes provided by the messenger.',
2624
+ ),
2625
+ name: zod
2626
+ .string()
2627
+ .optional()
2628
+ .describe('Display name of the contact.'),
2629
+ sub: zod
2630
+ .string()
2631
+ .optional()
2632
+ .describe(
2633
+ 'Associated internal system subject/identifier.',
2634
+ ),
2635
+ type: zod
2636
+ .string()
2637
+ .optional()
2638
+ .describe("Channel type (e.g., 'webchat', 'telegram')."),
2639
+ updated_at: zod
2640
+ .string()
2641
+ .optional()
2642
+ .describe(
2643
+ 'Last record update timestamp (Unix Epoch in milliseconds).',
2644
+ ),
2645
+ username: zod
2646
+ .string()
2647
+ .optional()
2648
+ .describe('Technical username or handle.'),
2649
+ vias: zod
2650
+ .array(
2651
+ zod.object({
2652
+ contact_id: zod.string().optional(),
2653
+ created_at: zod.string().optional(),
2654
+ disable: zod.boolean().optional(),
2655
+ disable_reason: zod.string().optional(),
2656
+ metadata: zod.looseObject({}).optional(),
2657
+ updated_at: zod.string().optional(),
2658
+ via: zod.string().optional(),
2659
+ }),
2660
+ )
2661
+ .optional(),
2662
+ })
2663
+ .optional()
2664
+ .describe(
2665
+ 'Contact represents an external messaging identity.',
2666
+ ),
2667
+ id: zod.string().optional(),
2668
+ permissions: zod
2669
+ .object({
2670
+ can_add_members: zod.boolean().optional(),
2671
+ can_change_members_permissions: zod.boolean().optional(),
2672
+ can_change_thread_info: zod.boolean().optional(),
2673
+ can_delete_messages: zod.boolean().optional(),
2674
+ can_remove_members: zod.boolean().optional(),
2675
+ can_send_messages: zod.boolean().optional(),
2676
+ created_at: zod.string().optional(),
2677
+ id: zod.string().optional(),
2678
+ member_id: zod.string().optional(),
2679
+ updated_at: zod.string().optional(),
2680
+ })
2681
+ .optional(),
2682
+ role: zod
2683
+ .enum([
2684
+ 'ROLE_UNSPECIFIED',
2685
+ 'ROLE_MEMBER',
2686
+ 'ROLE_ADMIN',
2687
+ 'ROLE_OWNER',
2688
+ 'ROLE_SUPERVISOR',
2689
+ ])
2690
+ .default(
2691
+ messageHistorySearchThreadMessagesHistoryResponseItemsItemDeletedByRoleDefault,
2692
+ ),
2693
+ })
2274
2694
  .optional()
2275
2695
  .describe(
2276
- 'Contact id of the member who deleted the message; empty when it is live.',
2696
+ 'Member who deleted the message, enriched exactly like sender; unset while\nthe message is live.',
2277
2697
  ),
2278
2698
  delivery_status: zod
2279
2699
  .enum([
@@ -2892,12 +3312,14 @@ export const MessageHistorySearchThreadMessagesHistoryResponse = zod
2892
3312
  ),
2893
3313
  reply_to: zod
2894
3314
  .object({
3315
+ attachment_address: zod.string().optional(),
2895
3316
  attachment_kind: zod.string().optional(),
2896
3317
  attachment_mime: zod.string().optional(),
2897
3318
  attachment_name: zod.string().optional(),
2898
3319
  body: zod.string().optional(),
2899
3320
  created_at: zod.string().optional(),
2900
3321
  id: zod.string().optional(),
3322
+ is_deleted: zod.boolean().optional(),
2901
3323
  sender: zod
2902
3324
  .object({
2903
3325
  contact: zod
@@ -3010,7 +3432,12 @@ export const MessageHistorySearchThreadMessagesHistoryResponse = zod
3010
3432
  'ThreadMember represents a thread participant\nwith optional type-specific settings.',
3011
3433
  ),
3012
3434
  sender_id: zod.string().optional(),
3013
- type: zod.int().optional(),
3435
+ type: zod
3436
+ .string()
3437
+ .optional()
3438
+ .describe(
3439
+ 'Kind of the quoted message: text, document, image, system, interactive,\nlocation or contact.',
3440
+ ),
3014
3441
  })
3015
3442
  .optional(),
3016
3443
  revision_count: zod