@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.
- package/package.json +1 -1
- package/src/api/clients/lists/blacklistNumbers.ts +43 -0
- package/src/api/clients/media/media.ts +1 -0
- package/src/gen/_models/engineCreateListCommunicationBulkItem.ts +12 -0
- package/src/gen/_models/engineListCommunicationBulkError.ts +14 -0
- package/src/gen/_models/engineListCommunicationBulkResponse.ts +13 -0
- package/src/gen/_models/engineListServiceCreateListCommunicationBulkBody.ts +11 -0
- package/src/gen/_models/index.ts +13 -2
- package/src/gen/_models/threadManagementSearchParams.ts +5 -0
- package/src/gen/_models/webitelImApiGatewayV1DeliveryError.ts +14 -0
- package/src/gen/_models/webitelImApiGatewayV1DeliveryFailure.ts +16 -0
- package/src/gen/_models/webitelImApiGatewayV1GivePreviewResponse.ts +11 -0
- package/src/gen/_models/webitelImApiGatewayV1HistoryMessage.ts +6 -0
- package/src/gen/_models/{webitelImApiGatewayV1MessageFailureError.ts → webitelImApiGatewayV1RemoveFromPreviewResponse.ts} +2 -3
- package/src/gen/_models/webitelImApiGatewayV1ThreadManagementTransferBody.ts +5 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadPreview.ts +18 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadPreviewServiceGivePreviewBody.ts +14 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadPreviewServiceRemoveFromPreviewBody.ts +12 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadPreviewServiceUpgradePreviewToFullMemberBody.ts +14 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadUpdates.ts +0 -3
- package/src/gen/_models/webitelImApiGatewayV1UpdatedMessage.ts +6 -0
- package/src/gen/_models/webitelImApiGatewayV1UpgradePreviewToFullMemberResponse.ts +11 -0
- package/src/gen-wire/_models/engineCreateListCommunicationBulkItem.ts +12 -0
- package/src/gen-wire/_models/engineListCommunicationBulkError.ts +14 -0
- package/src/gen-wire/_models/engineListCommunicationBulkResponse.ts +13 -0
- package/src/gen-wire/_models/engineListServiceCreateListCommunicationBulkBody.ts +11 -0
- package/src/gen-wire/_models/index.ts +13 -2
- package/src/gen-wire/_models/threadManagementSearchParams.ts +5 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1DeliveryError.ts +14 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1DeliveryFailure.ts +16 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1GivePreviewResponse.ts +11 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1HistoryMessage.ts +6 -0
- package/src/gen-wire/_models/{webitelImApiGatewayV1MessageFailureError.ts → webitelImApiGatewayV1RemoveFromPreviewResponse.ts} +2 -3
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadManagementTransferBody.ts +5 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadPreview.ts +18 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadPreviewServiceGivePreviewBody.ts +14 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadPreviewServiceRemoveFromPreviewBody.ts +12 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadPreviewServiceUpgradePreviewToFullMemberBody.ts +14 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadUpdates.ts +0 -3
- package/src/gen-wire/_models/webitelImApiGatewayV1UpdatedMessage.ts +6 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1UpgradePreviewToFullMemberResponse.ts +11 -0
- package/src/gen-wire/index.ts +12 -0
- package/src/gen-wire/index.zod.ts +1 -0
- package/src/gen-wire/list-service/list-service.ts +19 -0
- package/src/gen-wire/list-service/list-service.zod.ts +62 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.ts +402 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.ts +560 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice.ts +89 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice.zod.ts +351 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.ts +406 -130
- package/types/.tsbuildinfo +1 -1
- package/types/api/clients/lists/blacklistNumbers.d.ts +5 -1
- package/types/gen/_models/engineCreateListCommunicationBulkItem.d.ts +11 -0
- package/types/gen/_models/engineListCommunicationBulkError.d.ts +13 -0
- package/types/gen/_models/engineListCommunicationBulkResponse.d.ts +12 -0
- package/types/gen/_models/engineListServiceCreateListCommunicationBulkBody.d.ts +10 -0
- package/types/gen/_models/index.d.ts +13 -2
- package/types/gen/_models/threadManagementSearchParams.d.ts +5 -0
- package/types/gen/_models/webitelImApiGatewayV1DeliveryError.d.ts +13 -0
- package/types/gen/_models/webitelImApiGatewayV1DeliveryFailure.d.ts +15 -0
- package/types/gen/_models/webitelImApiGatewayV1GivePreviewResponse.d.ts +10 -0
- package/types/gen/_models/webitelImApiGatewayV1HistoryMessage.d.ts +6 -0
- package/types/gen/_models/{webitelImApiGatewayV1MessageFailureError.d.ts → webitelImApiGatewayV1RemoveFromPreviewResponse.d.ts} +2 -3
- package/types/gen/_models/webitelImApiGatewayV1ThreadManagementTransferBody.d.ts +5 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadPreview.d.ts +17 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadPreviewServiceGivePreviewBody.d.ts +13 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadPreviewServiceRemoveFromPreviewBody.d.ts +11 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadPreviewServiceUpgradePreviewToFullMemberBody.d.ts +13 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadUpdates.d.ts +0 -3
- package/types/gen/_models/webitelImApiGatewayV1UpdatedMessage.d.ts +6 -0
- package/types/gen/_models/webitelImApiGatewayV1UpgradePreviewToFullMemberResponse.d.ts +10 -0
- package/types/gen-wire/_models/engineCreateListCommunicationBulkItem.d.ts +11 -0
- package/types/gen-wire/_models/engineListCommunicationBulkError.d.ts +13 -0
- package/types/gen-wire/_models/engineListCommunicationBulkResponse.d.ts +12 -0
- package/types/gen-wire/_models/engineListServiceCreateListCommunicationBulkBody.d.ts +10 -0
- package/types/gen-wire/_models/index.d.ts +13 -2
- package/types/gen-wire/_models/threadManagementSearchParams.d.ts +5 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1DeliveryError.d.ts +13 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1DeliveryFailure.d.ts +15 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1GivePreviewResponse.d.ts +10 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1HistoryMessage.d.ts +6 -0
- package/types/gen-wire/_models/{webitelImApiGatewayV1MessageFailureError.d.ts → webitelImApiGatewayV1RemoveFromPreviewResponse.d.ts} +2 -3
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadManagementTransferBody.d.ts +5 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadPreview.d.ts +17 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadPreviewServiceGivePreviewBody.d.ts +13 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadPreviewServiceRemoveFromPreviewBody.d.ts +11 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadPreviewServiceUpgradePreviewToFullMemberBody.d.ts +13 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadUpdates.d.ts +0 -3
- package/types/gen-wire/_models/webitelImApiGatewayV1UpdatedMessage.d.ts +6 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1UpgradePreviewToFullMemberResponse.d.ts +10 -0
- package/types/gen-wire/index.d.ts +5 -3
- package/types/gen-wire/index.zod.d.ts +1 -0
- package/types/gen-wire/list-service/list-service.d.ts +3 -1
- package/types/gen-wire/list-service/list-service.zod.d.ts +39 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.d.ts +150 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.d.ts +207 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice.d.ts +17 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice.zod.d.ts +155 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.d.ts +150 -51
- package/src/gen/_models/webitelImApiGatewayV1MessageFailure.ts +0 -17
- package/src/gen-wire/_models/webitelImApiGatewayV1MessageFailure.ts +0 -17
- package/types/gen/_models/webitelImApiGatewayV1MessageFailure.d.ts +0 -16
- package/types/gen-wire/_models/webitelImApiGatewayV1MessageFailure.d.ts +0 -16
|
@@ -61,6 +61,7 @@ export const MessageHistorySearchMessagesQueryParams = zod.object({
|
|
|
61
61
|
});
|
|
62
62
|
|
|
63
63
|
export const messageHistorySearchMessagesResponseItemsItemDeletedByRoleDefault = `ROLE_UNSPECIFIED`;
|
|
64
|
+
export const messageHistorySearchMessagesResponseItemsItemFailuresItemMemberRoleDefault = `ROLE_UNSPECIFIED`;
|
|
64
65
|
export const messageHistorySearchMessagesResponseItemsItemForwardOriginKindDefault = `FORWARD_ORIGIN_KIND_UNSPECIFIED`;
|
|
65
66
|
export const messageHistorySearchMessagesResponseItemsItemInteractiveInputFieldStateDefault = `INPUT_FIELD_STATE_UNSPECIFIED`;
|
|
66
67
|
export const messageHistorySearchMessagesResponseItemsItemInteractivePlacementDefault = `MENU_PLACEMENT_UNSPECIFIED`;
|
|
@@ -262,6 +263,139 @@ export const MessageHistorySearchMessagesResponse = zod
|
|
|
262
263
|
.describe(
|
|
263
264
|
'Message last update timestamp (Unix time, milliseconds).',
|
|
264
265
|
),
|
|
266
|
+
failures: zod
|
|
267
|
+
.array(
|
|
268
|
+
zod
|
|
269
|
+
.object({
|
|
270
|
+
error: zod
|
|
271
|
+
.object({
|
|
272
|
+
code: zod.string().optional(),
|
|
273
|
+
message: zod.string().optional(),
|
|
274
|
+
})
|
|
275
|
+
.optional()
|
|
276
|
+
.describe(
|
|
277
|
+
'DeliveryError is a provider\'s delivery failure, e.g. {code: "403", message: "bot was blocked by the user"}.',
|
|
278
|
+
),
|
|
279
|
+
member: zod
|
|
280
|
+
.object({
|
|
281
|
+
contact: zod
|
|
282
|
+
.object({
|
|
283
|
+
app_id: zod
|
|
284
|
+
.string()
|
|
285
|
+
.optional()
|
|
286
|
+
.describe(
|
|
287
|
+
'Identifier of the specific integration app or bot.',
|
|
288
|
+
),
|
|
289
|
+
created_at: zod
|
|
290
|
+
.string()
|
|
291
|
+
.optional()
|
|
292
|
+
.describe(
|
|
293
|
+
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
294
|
+
),
|
|
295
|
+
is_bot: zod
|
|
296
|
+
.boolean()
|
|
297
|
+
.optional()
|
|
298
|
+
.describe(
|
|
299
|
+
'Represents if usere is real person or automatic script.',
|
|
300
|
+
),
|
|
301
|
+
iss: zod
|
|
302
|
+
.string()
|
|
303
|
+
.optional()
|
|
304
|
+
.describe(
|
|
305
|
+
'Provider-specific unique identifier (Issuer ID).',
|
|
306
|
+
),
|
|
307
|
+
metadata: zod
|
|
308
|
+
.record(zod.string(), zod.string())
|
|
309
|
+
.optional()
|
|
310
|
+
.describe(
|
|
311
|
+
'Additional dynamic attributes provided by the messenger.',
|
|
312
|
+
),
|
|
313
|
+
name: zod
|
|
314
|
+
.string()
|
|
315
|
+
.optional()
|
|
316
|
+
.describe('Display name of the contact.'),
|
|
317
|
+
sub: zod
|
|
318
|
+
.string()
|
|
319
|
+
.optional()
|
|
320
|
+
.describe(
|
|
321
|
+
'Associated internal system subject/identifier.',
|
|
322
|
+
),
|
|
323
|
+
type: zod
|
|
324
|
+
.string()
|
|
325
|
+
.optional()
|
|
326
|
+
.describe(
|
|
327
|
+
"Channel type (e.g., 'webchat', 'telegram').",
|
|
328
|
+
),
|
|
329
|
+
updated_at: zod
|
|
330
|
+
.string()
|
|
331
|
+
.optional()
|
|
332
|
+
.describe(
|
|
333
|
+
'Last record update timestamp (Unix Epoch in milliseconds).',
|
|
334
|
+
),
|
|
335
|
+
username: zod
|
|
336
|
+
.string()
|
|
337
|
+
.optional()
|
|
338
|
+
.describe('Technical username or handle.'),
|
|
339
|
+
vias: zod
|
|
340
|
+
.array(
|
|
341
|
+
zod.object({
|
|
342
|
+
contact_id: zod.string().optional(),
|
|
343
|
+
created_at: zod.string().optional(),
|
|
344
|
+
disable: zod.boolean().optional(),
|
|
345
|
+
disable_reason: zod.string().optional(),
|
|
346
|
+
metadata: zod.looseObject({}).optional(),
|
|
347
|
+
updated_at: zod.string().optional(),
|
|
348
|
+
via: zod.string().optional(),
|
|
349
|
+
}),
|
|
350
|
+
)
|
|
351
|
+
.optional(),
|
|
352
|
+
})
|
|
353
|
+
.optional()
|
|
354
|
+
.describe(
|
|
355
|
+
'Contact represents an external messaging identity.',
|
|
356
|
+
),
|
|
357
|
+
id: zod.string().optional(),
|
|
358
|
+
permissions: zod
|
|
359
|
+
.object({
|
|
360
|
+
can_add_members: zod.boolean().optional(),
|
|
361
|
+
can_change_members_permissions: zod
|
|
362
|
+
.boolean()
|
|
363
|
+
.optional(),
|
|
364
|
+
can_change_thread_info: zod.boolean().optional(),
|
|
365
|
+
can_delete_messages: zod.boolean().optional(),
|
|
366
|
+
can_remove_members: zod.boolean().optional(),
|
|
367
|
+
can_send_messages: zod.boolean().optional(),
|
|
368
|
+
created_at: zod.string().optional(),
|
|
369
|
+
id: zod.string().optional(),
|
|
370
|
+
member_id: zod.string().optional(),
|
|
371
|
+
updated_at: zod.string().optional(),
|
|
372
|
+
})
|
|
373
|
+
.optional(),
|
|
374
|
+
role: zod
|
|
375
|
+
.enum([
|
|
376
|
+
'ROLE_UNSPECIFIED',
|
|
377
|
+
'ROLE_MEMBER',
|
|
378
|
+
'ROLE_ADMIN',
|
|
379
|
+
'ROLE_OWNER',
|
|
380
|
+
'ROLE_SUPERVISOR',
|
|
381
|
+
])
|
|
382
|
+
.default(
|
|
383
|
+
messageHistorySearchMessagesResponseItemsItemFailuresItemMemberRoleDefault,
|
|
384
|
+
),
|
|
385
|
+
})
|
|
386
|
+
.optional()
|
|
387
|
+
.describe(
|
|
388
|
+
'ThreadMember represents a thread participant\nwith optional type-specific settings.',
|
|
389
|
+
),
|
|
390
|
+
})
|
|
391
|
+
.describe(
|
|
392
|
+
'DeliveryFailure is one member a message could not be delivered to.',
|
|
393
|
+
),
|
|
394
|
+
)
|
|
395
|
+
.optional()
|
|
396
|
+
.describe(
|
|
397
|
+
"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.",
|
|
398
|
+
),
|
|
265
399
|
forward_origin: zod
|
|
266
400
|
.object({
|
|
267
401
|
kind: zod
|
|
@@ -1342,6 +1476,7 @@ export const MessageHistorySearchLeftThreadsMessagesHistoryQueryParams =
|
|
|
1342
1476
|
});
|
|
1343
1477
|
|
|
1344
1478
|
export const messageHistorySearchLeftThreadsMessagesHistoryResponseItemsItemDeletedByRoleDefault = `ROLE_UNSPECIFIED`;
|
|
1479
|
+
export const messageHistorySearchLeftThreadsMessagesHistoryResponseItemsItemFailuresItemMemberRoleDefault = `ROLE_UNSPECIFIED`;
|
|
1345
1480
|
export const messageHistorySearchLeftThreadsMessagesHistoryResponseItemsItemForwardOriginKindDefault = `FORWARD_ORIGIN_KIND_UNSPECIFIED`;
|
|
1346
1481
|
export const messageHistorySearchLeftThreadsMessagesHistoryResponseItemsItemInteractiveInputFieldStateDefault = `INPUT_FIELD_STATE_UNSPECIFIED`;
|
|
1347
1482
|
export const messageHistorySearchLeftThreadsMessagesHistoryResponseItemsItemInteractivePlacementDefault = `MENU_PLACEMENT_UNSPECIFIED`;
|
|
@@ -1543,6 +1678,139 @@ export const MessageHistorySearchLeftThreadsMessagesHistoryResponse = zod
|
|
|
1543
1678
|
.describe(
|
|
1544
1679
|
'Message last update timestamp (Unix time, milliseconds).',
|
|
1545
1680
|
),
|
|
1681
|
+
failures: zod
|
|
1682
|
+
.array(
|
|
1683
|
+
zod
|
|
1684
|
+
.object({
|
|
1685
|
+
error: zod
|
|
1686
|
+
.object({
|
|
1687
|
+
code: zod.string().optional(),
|
|
1688
|
+
message: zod.string().optional(),
|
|
1689
|
+
})
|
|
1690
|
+
.optional()
|
|
1691
|
+
.describe(
|
|
1692
|
+
'DeliveryError is a provider\'s delivery failure, e.g. {code: "403", message: "bot was blocked by the user"}.',
|
|
1693
|
+
),
|
|
1694
|
+
member: zod
|
|
1695
|
+
.object({
|
|
1696
|
+
contact: zod
|
|
1697
|
+
.object({
|
|
1698
|
+
app_id: zod
|
|
1699
|
+
.string()
|
|
1700
|
+
.optional()
|
|
1701
|
+
.describe(
|
|
1702
|
+
'Identifier of the specific integration app or bot.',
|
|
1703
|
+
),
|
|
1704
|
+
created_at: zod
|
|
1705
|
+
.string()
|
|
1706
|
+
.optional()
|
|
1707
|
+
.describe(
|
|
1708
|
+
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
1709
|
+
),
|
|
1710
|
+
is_bot: zod
|
|
1711
|
+
.boolean()
|
|
1712
|
+
.optional()
|
|
1713
|
+
.describe(
|
|
1714
|
+
'Represents if usere is real person or automatic script.',
|
|
1715
|
+
),
|
|
1716
|
+
iss: zod
|
|
1717
|
+
.string()
|
|
1718
|
+
.optional()
|
|
1719
|
+
.describe(
|
|
1720
|
+
'Provider-specific unique identifier (Issuer ID).',
|
|
1721
|
+
),
|
|
1722
|
+
metadata: zod
|
|
1723
|
+
.record(zod.string(), zod.string())
|
|
1724
|
+
.optional()
|
|
1725
|
+
.describe(
|
|
1726
|
+
'Additional dynamic attributes provided by the messenger.',
|
|
1727
|
+
),
|
|
1728
|
+
name: zod
|
|
1729
|
+
.string()
|
|
1730
|
+
.optional()
|
|
1731
|
+
.describe('Display name of the contact.'),
|
|
1732
|
+
sub: zod
|
|
1733
|
+
.string()
|
|
1734
|
+
.optional()
|
|
1735
|
+
.describe(
|
|
1736
|
+
'Associated internal system subject/identifier.',
|
|
1737
|
+
),
|
|
1738
|
+
type: zod
|
|
1739
|
+
.string()
|
|
1740
|
+
.optional()
|
|
1741
|
+
.describe(
|
|
1742
|
+
"Channel type (e.g., 'webchat', 'telegram').",
|
|
1743
|
+
),
|
|
1744
|
+
updated_at: zod
|
|
1745
|
+
.string()
|
|
1746
|
+
.optional()
|
|
1747
|
+
.describe(
|
|
1748
|
+
'Last record update timestamp (Unix Epoch in milliseconds).',
|
|
1749
|
+
),
|
|
1750
|
+
username: zod
|
|
1751
|
+
.string()
|
|
1752
|
+
.optional()
|
|
1753
|
+
.describe('Technical username or handle.'),
|
|
1754
|
+
vias: zod
|
|
1755
|
+
.array(
|
|
1756
|
+
zod.object({
|
|
1757
|
+
contact_id: zod.string().optional(),
|
|
1758
|
+
created_at: zod.string().optional(),
|
|
1759
|
+
disable: zod.boolean().optional(),
|
|
1760
|
+
disable_reason: zod.string().optional(),
|
|
1761
|
+
metadata: zod.looseObject({}).optional(),
|
|
1762
|
+
updated_at: zod.string().optional(),
|
|
1763
|
+
via: zod.string().optional(),
|
|
1764
|
+
}),
|
|
1765
|
+
)
|
|
1766
|
+
.optional(),
|
|
1767
|
+
})
|
|
1768
|
+
.optional()
|
|
1769
|
+
.describe(
|
|
1770
|
+
'Contact represents an external messaging identity.',
|
|
1771
|
+
),
|
|
1772
|
+
id: zod.string().optional(),
|
|
1773
|
+
permissions: zod
|
|
1774
|
+
.object({
|
|
1775
|
+
can_add_members: zod.boolean().optional(),
|
|
1776
|
+
can_change_members_permissions: zod
|
|
1777
|
+
.boolean()
|
|
1778
|
+
.optional(),
|
|
1779
|
+
can_change_thread_info: zod.boolean().optional(),
|
|
1780
|
+
can_delete_messages: zod.boolean().optional(),
|
|
1781
|
+
can_remove_members: zod.boolean().optional(),
|
|
1782
|
+
can_send_messages: zod.boolean().optional(),
|
|
1783
|
+
created_at: zod.string().optional(),
|
|
1784
|
+
id: zod.string().optional(),
|
|
1785
|
+
member_id: zod.string().optional(),
|
|
1786
|
+
updated_at: zod.string().optional(),
|
|
1787
|
+
})
|
|
1788
|
+
.optional(),
|
|
1789
|
+
role: zod
|
|
1790
|
+
.enum([
|
|
1791
|
+
'ROLE_UNSPECIFIED',
|
|
1792
|
+
'ROLE_MEMBER',
|
|
1793
|
+
'ROLE_ADMIN',
|
|
1794
|
+
'ROLE_OWNER',
|
|
1795
|
+
'ROLE_SUPERVISOR',
|
|
1796
|
+
])
|
|
1797
|
+
.default(
|
|
1798
|
+
messageHistorySearchLeftThreadsMessagesHistoryResponseItemsItemFailuresItemMemberRoleDefault,
|
|
1799
|
+
),
|
|
1800
|
+
})
|
|
1801
|
+
.optional()
|
|
1802
|
+
.describe(
|
|
1803
|
+
'ThreadMember represents a thread participant\nwith optional type-specific settings.',
|
|
1804
|
+
),
|
|
1805
|
+
})
|
|
1806
|
+
.describe(
|
|
1807
|
+
'DeliveryFailure is one member a message could not be delivered to.',
|
|
1808
|
+
),
|
|
1809
|
+
)
|
|
1810
|
+
.optional()
|
|
1811
|
+
.describe(
|
|
1812
|
+
"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.",
|
|
1813
|
+
),
|
|
1546
1814
|
forward_origin: zod
|
|
1547
1815
|
.object({
|
|
1548
1816
|
kind: zod
|
|
@@ -2451,6 +2719,7 @@ export const MessageHistorySearchThreadMessagesHistoryQueryParams = zod.object({
|
|
|
2451
2719
|
});
|
|
2452
2720
|
|
|
2453
2721
|
export const messageHistorySearchThreadMessagesHistoryResponseItemsItemDeletedByRoleDefault = `ROLE_UNSPECIFIED`;
|
|
2722
|
+
export const messageHistorySearchThreadMessagesHistoryResponseItemsItemFailuresItemMemberRoleDefault = `ROLE_UNSPECIFIED`;
|
|
2454
2723
|
export const messageHistorySearchThreadMessagesHistoryResponseItemsItemForwardOriginKindDefault = `FORWARD_ORIGIN_KIND_UNSPECIFIED`;
|
|
2455
2724
|
export const messageHistorySearchThreadMessagesHistoryResponseItemsItemInteractiveInputFieldStateDefault = `INPUT_FIELD_STATE_UNSPECIFIED`;
|
|
2456
2725
|
export const messageHistorySearchThreadMessagesHistoryResponseItemsItemInteractivePlacementDefault = `MENU_PLACEMENT_UNSPECIFIED`;
|
|
@@ -2652,6 +2921,139 @@ export const MessageHistorySearchThreadMessagesHistoryResponse = zod
|
|
|
2652
2921
|
.describe(
|
|
2653
2922
|
'Message last update timestamp (Unix time, milliseconds).',
|
|
2654
2923
|
),
|
|
2924
|
+
failures: zod
|
|
2925
|
+
.array(
|
|
2926
|
+
zod
|
|
2927
|
+
.object({
|
|
2928
|
+
error: zod
|
|
2929
|
+
.object({
|
|
2930
|
+
code: zod.string().optional(),
|
|
2931
|
+
message: zod.string().optional(),
|
|
2932
|
+
})
|
|
2933
|
+
.optional()
|
|
2934
|
+
.describe(
|
|
2935
|
+
'DeliveryError is a provider\'s delivery failure, e.g. {code: "403", message: "bot was blocked by the user"}.',
|
|
2936
|
+
),
|
|
2937
|
+
member: zod
|
|
2938
|
+
.object({
|
|
2939
|
+
contact: zod
|
|
2940
|
+
.object({
|
|
2941
|
+
app_id: zod
|
|
2942
|
+
.string()
|
|
2943
|
+
.optional()
|
|
2944
|
+
.describe(
|
|
2945
|
+
'Identifier of the specific integration app or bot.',
|
|
2946
|
+
),
|
|
2947
|
+
created_at: zod
|
|
2948
|
+
.string()
|
|
2949
|
+
.optional()
|
|
2950
|
+
.describe(
|
|
2951
|
+
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
2952
|
+
),
|
|
2953
|
+
is_bot: zod
|
|
2954
|
+
.boolean()
|
|
2955
|
+
.optional()
|
|
2956
|
+
.describe(
|
|
2957
|
+
'Represents if usere is real person or automatic script.',
|
|
2958
|
+
),
|
|
2959
|
+
iss: zod
|
|
2960
|
+
.string()
|
|
2961
|
+
.optional()
|
|
2962
|
+
.describe(
|
|
2963
|
+
'Provider-specific unique identifier (Issuer ID).',
|
|
2964
|
+
),
|
|
2965
|
+
metadata: zod
|
|
2966
|
+
.record(zod.string(), zod.string())
|
|
2967
|
+
.optional()
|
|
2968
|
+
.describe(
|
|
2969
|
+
'Additional dynamic attributes provided by the messenger.',
|
|
2970
|
+
),
|
|
2971
|
+
name: zod
|
|
2972
|
+
.string()
|
|
2973
|
+
.optional()
|
|
2974
|
+
.describe('Display name of the contact.'),
|
|
2975
|
+
sub: zod
|
|
2976
|
+
.string()
|
|
2977
|
+
.optional()
|
|
2978
|
+
.describe(
|
|
2979
|
+
'Associated internal system subject/identifier.',
|
|
2980
|
+
),
|
|
2981
|
+
type: zod
|
|
2982
|
+
.string()
|
|
2983
|
+
.optional()
|
|
2984
|
+
.describe(
|
|
2985
|
+
"Channel type (e.g., 'webchat', 'telegram').",
|
|
2986
|
+
),
|
|
2987
|
+
updated_at: zod
|
|
2988
|
+
.string()
|
|
2989
|
+
.optional()
|
|
2990
|
+
.describe(
|
|
2991
|
+
'Last record update timestamp (Unix Epoch in milliseconds).',
|
|
2992
|
+
),
|
|
2993
|
+
username: zod
|
|
2994
|
+
.string()
|
|
2995
|
+
.optional()
|
|
2996
|
+
.describe('Technical username or handle.'),
|
|
2997
|
+
vias: zod
|
|
2998
|
+
.array(
|
|
2999
|
+
zod.object({
|
|
3000
|
+
contact_id: zod.string().optional(),
|
|
3001
|
+
created_at: zod.string().optional(),
|
|
3002
|
+
disable: zod.boolean().optional(),
|
|
3003
|
+
disable_reason: zod.string().optional(),
|
|
3004
|
+
metadata: zod.looseObject({}).optional(),
|
|
3005
|
+
updated_at: zod.string().optional(),
|
|
3006
|
+
via: zod.string().optional(),
|
|
3007
|
+
}),
|
|
3008
|
+
)
|
|
3009
|
+
.optional(),
|
|
3010
|
+
})
|
|
3011
|
+
.optional()
|
|
3012
|
+
.describe(
|
|
3013
|
+
'Contact represents an external messaging identity.',
|
|
3014
|
+
),
|
|
3015
|
+
id: zod.string().optional(),
|
|
3016
|
+
permissions: zod
|
|
3017
|
+
.object({
|
|
3018
|
+
can_add_members: zod.boolean().optional(),
|
|
3019
|
+
can_change_members_permissions: zod
|
|
3020
|
+
.boolean()
|
|
3021
|
+
.optional(),
|
|
3022
|
+
can_change_thread_info: zod.boolean().optional(),
|
|
3023
|
+
can_delete_messages: zod.boolean().optional(),
|
|
3024
|
+
can_remove_members: zod.boolean().optional(),
|
|
3025
|
+
can_send_messages: zod.boolean().optional(),
|
|
3026
|
+
created_at: zod.string().optional(),
|
|
3027
|
+
id: zod.string().optional(),
|
|
3028
|
+
member_id: zod.string().optional(),
|
|
3029
|
+
updated_at: zod.string().optional(),
|
|
3030
|
+
})
|
|
3031
|
+
.optional(),
|
|
3032
|
+
role: zod
|
|
3033
|
+
.enum([
|
|
3034
|
+
'ROLE_UNSPECIFIED',
|
|
3035
|
+
'ROLE_MEMBER',
|
|
3036
|
+
'ROLE_ADMIN',
|
|
3037
|
+
'ROLE_OWNER',
|
|
3038
|
+
'ROLE_SUPERVISOR',
|
|
3039
|
+
])
|
|
3040
|
+
.default(
|
|
3041
|
+
messageHistorySearchThreadMessagesHistoryResponseItemsItemFailuresItemMemberRoleDefault,
|
|
3042
|
+
),
|
|
3043
|
+
})
|
|
3044
|
+
.optional()
|
|
3045
|
+
.describe(
|
|
3046
|
+
'ThreadMember represents a thread participant\nwith optional type-specific settings.',
|
|
3047
|
+
),
|
|
3048
|
+
})
|
|
3049
|
+
.describe(
|
|
3050
|
+
'DeliveryFailure is one member a message could not be delivered to.',
|
|
3051
|
+
),
|
|
3052
|
+
)
|
|
3053
|
+
.optional()
|
|
3054
|
+
.describe(
|
|
3055
|
+
"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.",
|
|
3056
|
+
),
|
|
2655
3057
|
forward_origin: zod
|
|
2656
3058
|
.object({
|
|
2657
3059
|
kind: zod
|