@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.
- package/package.json +1 -1
- package/src/gen/_models/downloadCallScreenrecordingArchive200.ts +13 -0
- package/src/gen/_models/downloadCallScreenrecordingArchiveParams.ts +21 -0
- package/src/gen/_models/downloadScreenshotArchive200.ts +13 -0
- package/src/gen/_models/downloadScreenshotArchiveParams.ts +21 -0
- package/src/gen/_models/engineAgent.ts +1 -0
- package/src/gen/_models/index.ts +10 -0
- package/src/gen/_models/listCallExportsParams.ts +2 -0
- package/src/gen/_models/listScreenrecordingExportsParams.ts +2 -0
- package/src/gen/_models/searchScreenRecordingsByCallChannel.ts +14 -0
- package/src/gen/_models/searchScreenRecordingsByCallParams.ts +24 -0
- package/src/gen/_models/searchScreenRecordingsByCallType.ts +15 -0
- package/src/gen/_models/webitelImApiGatewayV1HistoryMessage.ts +5 -2
- package/src/gen/_models/webitelImApiGatewayV1MessageRevision.ts +3 -2
- package/src/gen/_models/webitelImApiGatewayV1ReplyToMessage.ts +7 -1
- package/src/gen/_models/webitelMediaExporterDownloadCallScreenrecordingArchiveResponse.ts +14 -0
- package/src/gen/_models/webitelMediaExporterDownloadScreenshotArchiveResponse.ts +14 -0
- package/src/gen/_models/webitelMediaExporterFilterBetween.ts +14 -0
- package/src/gen-wire/_models/downloadCallScreenrecordingArchive200.ts +13 -0
- package/src/gen-wire/_models/downloadCallScreenrecordingArchiveParams.ts +21 -0
- package/src/gen-wire/_models/downloadScreenshotArchive200.ts +13 -0
- package/src/gen-wire/_models/downloadScreenshotArchiveParams.ts +21 -0
- package/src/gen-wire/_models/engineAgent.ts +1 -0
- package/src/gen-wire/_models/index.ts +10 -0
- package/src/gen-wire/_models/listCallExportsParams.ts +2 -0
- package/src/gen-wire/_models/listScreenrecordingExportsParams.ts +2 -0
- package/src/gen-wire/_models/searchScreenRecordingsByCallChannel.ts +14 -0
- package/src/gen-wire/_models/searchScreenRecordingsByCallParams.ts +24 -0
- package/src/gen-wire/_models/searchScreenRecordingsByCallType.ts +15 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1HistoryMessage.ts +5 -2
- package/src/gen-wire/_models/webitelImApiGatewayV1MessageRevision.ts +3 -2
- package/src/gen-wire/_models/webitelImApiGatewayV1ReplyToMessage.ts +7 -1
- package/src/gen-wire/_models/webitelMediaExporterDownloadCallScreenrecordingArchiveResponse.ts +14 -0
- package/src/gen-wire/_models/webitelMediaExporterDownloadScreenshotArchiveResponse.ts +14 -0
- package/src/gen-wire/_models/webitelMediaExporterFilterBetween.ts +14 -0
- package/src/gen-wire/agent-service/agent-service.zod.ts +6 -0
- package/src/gen-wire/file-service/file-service.ts +16 -0
- package/src/gen-wire/file-service/file-service.zod.ts +90 -0
- package/src/gen-wire/index.ts +20 -0
- package/src/gen-wire/pdf-service/pdf-service.ts +50 -0
- package/src/gen-wire/pdf-service/pdf-service.zod.ts +98 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.ts +438 -11
- package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.ts +446 -12
- package/types/.tsbuildinfo +1 -1
- package/types/gen/_models/downloadCallScreenrecordingArchive200.d.ts +12 -0
- package/types/gen/_models/downloadCallScreenrecordingArchiveParams.d.ts +20 -0
- package/types/gen/_models/downloadScreenshotArchive200.d.ts +12 -0
- package/types/gen/_models/downloadScreenshotArchiveParams.d.ts +20 -0
- package/types/gen/_models/engineAgent.d.ts +1 -0
- package/types/gen/_models/index.d.ts +10 -0
- package/types/gen/_models/listCallExportsParams.d.ts +2 -0
- package/types/gen/_models/listScreenrecordingExportsParams.d.ts +2 -0
- package/types/gen/_models/searchScreenRecordingsByCallChannel.d.ts +11 -0
- package/types/gen/_models/searchScreenRecordingsByCallParams.d.ts +23 -0
- package/types/gen/_models/searchScreenRecordingsByCallType.d.ts +12 -0
- package/types/gen/_models/webitelImApiGatewayV1HistoryMessage.d.ts +5 -2
- package/types/gen/_models/webitelImApiGatewayV1MessageRevision.d.ts +3 -2
- package/types/gen/_models/webitelImApiGatewayV1ReplyToMessage.d.ts +7 -1
- package/types/gen/_models/webitelMediaExporterDownloadCallScreenrecordingArchiveResponse.d.ts +13 -0
- package/types/gen/_models/webitelMediaExporterDownloadScreenshotArchiveResponse.d.ts +13 -0
- package/types/gen/_models/webitelMediaExporterFilterBetween.d.ts +13 -0
- package/types/gen-wire/_models/downloadCallScreenrecordingArchive200.d.ts +12 -0
- package/types/gen-wire/_models/downloadCallScreenrecordingArchiveParams.d.ts +20 -0
- package/types/gen-wire/_models/downloadScreenshotArchive200.d.ts +12 -0
- package/types/gen-wire/_models/downloadScreenshotArchiveParams.d.ts +20 -0
- package/types/gen-wire/_models/engineAgent.d.ts +1 -0
- package/types/gen-wire/_models/index.d.ts +10 -0
- package/types/gen-wire/_models/listCallExportsParams.d.ts +2 -0
- package/types/gen-wire/_models/listScreenrecordingExportsParams.d.ts +2 -0
- package/types/gen-wire/_models/searchScreenRecordingsByCallChannel.d.ts +11 -0
- package/types/gen-wire/_models/searchScreenRecordingsByCallParams.d.ts +23 -0
- package/types/gen-wire/_models/searchScreenRecordingsByCallType.d.ts +12 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1HistoryMessage.d.ts +5 -2
- package/types/gen-wire/_models/webitelImApiGatewayV1MessageRevision.d.ts +3 -2
- package/types/gen-wire/_models/webitelImApiGatewayV1ReplyToMessage.d.ts +7 -1
- package/types/gen-wire/_models/webitelMediaExporterDownloadCallScreenrecordingArchiveResponse.d.ts +13 -0
- package/types/gen-wire/_models/webitelMediaExporterDownloadScreenshotArchiveResponse.d.ts +13 -0
- package/types/gen-wire/_models/webitelMediaExporterFilterBetween.d.ts +13 -0
- package/types/gen-wire/agent-service/agent-service.zod.d.ts +6 -0
- package/types/gen-wire/file-service/file-service.d.ts +3 -1
- package/types/gen-wire/file-service/file-service.zod.d.ts +69 -0
- package/types/gen-wire/index.d.ts +4 -4
- package/types/gen-wire/pdf-service/pdf-service.d.ts +5 -1
- package/types/gen-wire/pdf-service/pdf-service.zod.d.ts +52 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.d.ts +185 -7
- package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.d.ts +188 -8
|
@@ -58,6 +58,7 @@ export const ThreadManagementSearchQueryParams = zod.object({
|
|
|
58
58
|
.describe('Filter threads by participant contact IDs.'),
|
|
59
59
|
});
|
|
60
60
|
|
|
61
|
+
export const threadManagementSearchResponseItemsItemLastMsgDeletedByRoleDefault = `ROLE_UNSPECIFIED`;
|
|
61
62
|
export const threadManagementSearchResponseItemsItemLastMsgDeliveryStatusDefault = `MESSAGE_DELIVERY_STATUS_UNSPECIFIED`;
|
|
62
63
|
export const threadManagementSearchResponseItemsItemLastMsgForwardOriginKindDefault = `FORWARD_ORIGIN_KIND_UNSPECIFIED`;
|
|
63
64
|
export const threadManagementSearchResponseItemsItemLastMsgInteractiveInputFieldStateDefault = `INPUT_FIELD_STATE_UNSPECIFIED`;
|
|
@@ -113,10 +114,115 @@ export const ThreadManagementSearchResponse = zod
|
|
|
113
114
|
'Unix time in milliseconds when the message was deleted.',
|
|
114
115
|
),
|
|
115
116
|
deleted_by: zod
|
|
116
|
-
.
|
|
117
|
+
.object({
|
|
118
|
+
contact: zod
|
|
119
|
+
.object({
|
|
120
|
+
app_id: zod
|
|
121
|
+
.string()
|
|
122
|
+
.optional()
|
|
123
|
+
.describe(
|
|
124
|
+
'Identifier of the specific integration app or bot.',
|
|
125
|
+
),
|
|
126
|
+
created_at: zod
|
|
127
|
+
.string()
|
|
128
|
+
.optional()
|
|
129
|
+
.describe(
|
|
130
|
+
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
131
|
+
),
|
|
132
|
+
is_bot: zod
|
|
133
|
+
.boolean()
|
|
134
|
+
.optional()
|
|
135
|
+
.describe(
|
|
136
|
+
'Represents if usere is real person or automatic script.',
|
|
137
|
+
),
|
|
138
|
+
iss: zod
|
|
139
|
+
.string()
|
|
140
|
+
.optional()
|
|
141
|
+
.describe(
|
|
142
|
+
'Provider-specific unique identifier (Issuer ID).',
|
|
143
|
+
),
|
|
144
|
+
metadata: zod
|
|
145
|
+
.record(zod.string(), zod.string())
|
|
146
|
+
.optional()
|
|
147
|
+
.describe(
|
|
148
|
+
'Additional dynamic attributes provided by the messenger.',
|
|
149
|
+
),
|
|
150
|
+
name: zod
|
|
151
|
+
.string()
|
|
152
|
+
.optional()
|
|
153
|
+
.describe('Display name of the contact.'),
|
|
154
|
+
sub: zod
|
|
155
|
+
.string()
|
|
156
|
+
.optional()
|
|
157
|
+
.describe(
|
|
158
|
+
'Associated internal system subject/identifier.',
|
|
159
|
+
),
|
|
160
|
+
type: zod
|
|
161
|
+
.string()
|
|
162
|
+
.optional()
|
|
163
|
+
.describe(
|
|
164
|
+
"Channel type (e.g., 'webchat', 'telegram').",
|
|
165
|
+
),
|
|
166
|
+
updated_at: zod
|
|
167
|
+
.string()
|
|
168
|
+
.optional()
|
|
169
|
+
.describe(
|
|
170
|
+
'Last record update timestamp (Unix Epoch in milliseconds).',
|
|
171
|
+
),
|
|
172
|
+
username: zod
|
|
173
|
+
.string()
|
|
174
|
+
.optional()
|
|
175
|
+
.describe('Technical username or handle.'),
|
|
176
|
+
vias: zod
|
|
177
|
+
.array(
|
|
178
|
+
zod.object({
|
|
179
|
+
contact_id: zod.string().optional(),
|
|
180
|
+
created_at: zod.string().optional(),
|
|
181
|
+
disable: zod.boolean().optional(),
|
|
182
|
+
disable_reason: zod.string().optional(),
|
|
183
|
+
metadata: zod.looseObject({}).optional(),
|
|
184
|
+
updated_at: zod.string().optional(),
|
|
185
|
+
via: zod.string().optional(),
|
|
186
|
+
}),
|
|
187
|
+
)
|
|
188
|
+
.optional(),
|
|
189
|
+
})
|
|
190
|
+
.optional()
|
|
191
|
+
.describe(
|
|
192
|
+
'Contact represents an external messaging identity.',
|
|
193
|
+
),
|
|
194
|
+
id: zod.string().optional(),
|
|
195
|
+
permissions: zod
|
|
196
|
+
.object({
|
|
197
|
+
can_add_members: zod.boolean().optional(),
|
|
198
|
+
can_change_members_permissions: zod
|
|
199
|
+
.boolean()
|
|
200
|
+
.optional(),
|
|
201
|
+
can_change_thread_info: zod.boolean().optional(),
|
|
202
|
+
can_delete_messages: zod.boolean().optional(),
|
|
203
|
+
can_remove_members: zod.boolean().optional(),
|
|
204
|
+
can_send_messages: zod.boolean().optional(),
|
|
205
|
+
created_at: zod.string().optional(),
|
|
206
|
+
id: zod.string().optional(),
|
|
207
|
+
member_id: zod.string().optional(),
|
|
208
|
+
updated_at: zod.string().optional(),
|
|
209
|
+
})
|
|
210
|
+
.optional(),
|
|
211
|
+
role: zod
|
|
212
|
+
.enum([
|
|
213
|
+
'ROLE_UNSPECIFIED',
|
|
214
|
+
'ROLE_MEMBER',
|
|
215
|
+
'ROLE_ADMIN',
|
|
216
|
+
'ROLE_OWNER',
|
|
217
|
+
'ROLE_SUPERVISOR',
|
|
218
|
+
])
|
|
219
|
+
.default(
|
|
220
|
+
threadManagementSearchResponseItemsItemLastMsgDeletedByRoleDefault,
|
|
221
|
+
),
|
|
222
|
+
})
|
|
117
223
|
.optional()
|
|
118
224
|
.describe(
|
|
119
|
-
'
|
|
225
|
+
'Member who deleted the message, enriched exactly like sender; unset while\nthe message is live.',
|
|
120
226
|
),
|
|
121
227
|
delivery_status: zod
|
|
122
228
|
.enum([
|
|
@@ -743,12 +849,14 @@ export const ThreadManagementSearchResponse = zod
|
|
|
743
849
|
),
|
|
744
850
|
reply_to: zod
|
|
745
851
|
.object({
|
|
852
|
+
attachment_address: zod.string().optional(),
|
|
746
853
|
attachment_kind: zod.string().optional(),
|
|
747
854
|
attachment_mime: zod.string().optional(),
|
|
748
855
|
attachment_name: zod.string().optional(),
|
|
749
856
|
body: zod.string().optional(),
|
|
750
857
|
created_at: zod.string().optional(),
|
|
751
858
|
id: zod.string().optional(),
|
|
859
|
+
is_deleted: zod.boolean().optional(),
|
|
752
860
|
sender: zod
|
|
753
861
|
.object({
|
|
754
862
|
contact: zod
|
|
@@ -861,7 +969,12 @@ export const ThreadManagementSearchResponse = zod
|
|
|
861
969
|
'ThreadMember represents a thread participant\nwith optional type-specific settings.',
|
|
862
970
|
),
|
|
863
971
|
sender_id: zod.string().optional(),
|
|
864
|
-
type: zod
|
|
972
|
+
type: zod
|
|
973
|
+
.string()
|
|
974
|
+
.optional()
|
|
975
|
+
.describe(
|
|
976
|
+
'Kind of the quoted message: text, document, image, system, interactive,\nlocation or contact.',
|
|
977
|
+
),
|
|
865
978
|
})
|
|
866
979
|
.optional(),
|
|
867
980
|
revision_count: zod
|
|
@@ -1377,6 +1490,7 @@ export const ThreadManagementCreateBody = zod
|
|
|
1377
1490
|
'ThreadManagementCreateRequest defines parameters for creating a specific thread type.',
|
|
1378
1491
|
);
|
|
1379
1492
|
|
|
1493
|
+
export const threadManagementCreateResponseThreadLastMsgDeletedByRoleDefault = `ROLE_UNSPECIFIED`;
|
|
1380
1494
|
export const threadManagementCreateResponseThreadLastMsgDeliveryStatusDefault = `MESSAGE_DELIVERY_STATUS_UNSPECIFIED`;
|
|
1381
1495
|
export const threadManagementCreateResponseThreadLastMsgForwardOriginKindDefault = `FORWARD_ORIGIN_KIND_UNSPECIFIED`;
|
|
1382
1496
|
export const threadManagementCreateResponseThreadLastMsgInteractiveInputFieldStateDefault = `INPUT_FIELD_STATE_UNSPECIFIED`;
|
|
@@ -1430,10 +1544,111 @@ export const ThreadManagementCreateResponse = zod
|
|
|
1430
1544
|
'Unix time in milliseconds when the message was deleted.',
|
|
1431
1545
|
),
|
|
1432
1546
|
deleted_by: zod
|
|
1433
|
-
.
|
|
1547
|
+
.object({
|
|
1548
|
+
contact: zod
|
|
1549
|
+
.object({
|
|
1550
|
+
app_id: zod
|
|
1551
|
+
.string()
|
|
1552
|
+
.optional()
|
|
1553
|
+
.describe(
|
|
1554
|
+
'Identifier of the specific integration app or bot.',
|
|
1555
|
+
),
|
|
1556
|
+
created_at: zod
|
|
1557
|
+
.string()
|
|
1558
|
+
.optional()
|
|
1559
|
+
.describe(
|
|
1560
|
+
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
1561
|
+
),
|
|
1562
|
+
is_bot: zod
|
|
1563
|
+
.boolean()
|
|
1564
|
+
.optional()
|
|
1565
|
+
.describe(
|
|
1566
|
+
'Represents if usere is real person or automatic script.',
|
|
1567
|
+
),
|
|
1568
|
+
iss: zod
|
|
1569
|
+
.string()
|
|
1570
|
+
.optional()
|
|
1571
|
+
.describe(
|
|
1572
|
+
'Provider-specific unique identifier (Issuer ID).',
|
|
1573
|
+
),
|
|
1574
|
+
metadata: zod
|
|
1575
|
+
.record(zod.string(), zod.string())
|
|
1576
|
+
.optional()
|
|
1577
|
+
.describe(
|
|
1578
|
+
'Additional dynamic attributes provided by the messenger.',
|
|
1579
|
+
),
|
|
1580
|
+
name: zod
|
|
1581
|
+
.string()
|
|
1582
|
+
.optional()
|
|
1583
|
+
.describe('Display name of the contact.'),
|
|
1584
|
+
sub: zod
|
|
1585
|
+
.string()
|
|
1586
|
+
.optional()
|
|
1587
|
+
.describe(
|
|
1588
|
+
'Associated internal system subject/identifier.',
|
|
1589
|
+
),
|
|
1590
|
+
type: zod
|
|
1591
|
+
.string()
|
|
1592
|
+
.optional()
|
|
1593
|
+
.describe("Channel type (e.g., 'webchat', 'telegram')."),
|
|
1594
|
+
updated_at: zod
|
|
1595
|
+
.string()
|
|
1596
|
+
.optional()
|
|
1597
|
+
.describe(
|
|
1598
|
+
'Last record update timestamp (Unix Epoch in milliseconds).',
|
|
1599
|
+
),
|
|
1600
|
+
username: zod
|
|
1601
|
+
.string()
|
|
1602
|
+
.optional()
|
|
1603
|
+
.describe('Technical username or handle.'),
|
|
1604
|
+
vias: zod
|
|
1605
|
+
.array(
|
|
1606
|
+
zod.object({
|
|
1607
|
+
contact_id: zod.string().optional(),
|
|
1608
|
+
created_at: zod.string().optional(),
|
|
1609
|
+
disable: zod.boolean().optional(),
|
|
1610
|
+
disable_reason: zod.string().optional(),
|
|
1611
|
+
metadata: zod.looseObject({}).optional(),
|
|
1612
|
+
updated_at: zod.string().optional(),
|
|
1613
|
+
via: zod.string().optional(),
|
|
1614
|
+
}),
|
|
1615
|
+
)
|
|
1616
|
+
.optional(),
|
|
1617
|
+
})
|
|
1618
|
+
.optional()
|
|
1619
|
+
.describe(
|
|
1620
|
+
'Contact represents an external messaging identity.',
|
|
1621
|
+
),
|
|
1622
|
+
id: zod.string().optional(),
|
|
1623
|
+
permissions: zod
|
|
1624
|
+
.object({
|
|
1625
|
+
can_add_members: zod.boolean().optional(),
|
|
1626
|
+
can_change_members_permissions: zod.boolean().optional(),
|
|
1627
|
+
can_change_thread_info: zod.boolean().optional(),
|
|
1628
|
+
can_delete_messages: zod.boolean().optional(),
|
|
1629
|
+
can_remove_members: zod.boolean().optional(),
|
|
1630
|
+
can_send_messages: zod.boolean().optional(),
|
|
1631
|
+
created_at: zod.string().optional(),
|
|
1632
|
+
id: zod.string().optional(),
|
|
1633
|
+
member_id: zod.string().optional(),
|
|
1634
|
+
updated_at: zod.string().optional(),
|
|
1635
|
+
})
|
|
1636
|
+
.optional(),
|
|
1637
|
+
role: zod
|
|
1638
|
+
.enum([
|
|
1639
|
+
'ROLE_UNSPECIFIED',
|
|
1640
|
+
'ROLE_MEMBER',
|
|
1641
|
+
'ROLE_ADMIN',
|
|
1642
|
+
'ROLE_OWNER',
|
|
1643
|
+
'ROLE_SUPERVISOR',
|
|
1644
|
+
])
|
|
1645
|
+
.default(
|
|
1646
|
+
threadManagementCreateResponseThreadLastMsgDeletedByRoleDefault,
|
|
1647
|
+
),
|
|
1648
|
+
})
|
|
1434
1649
|
.optional()
|
|
1435
1650
|
.describe(
|
|
1436
|
-
'
|
|
1651
|
+
'Member who deleted the message, enriched exactly like sender; unset while\nthe message is live.',
|
|
1437
1652
|
),
|
|
1438
1653
|
delivery_status: zod
|
|
1439
1654
|
.enum([
|
|
@@ -2052,12 +2267,14 @@ export const ThreadManagementCreateResponse = zod
|
|
|
2052
2267
|
),
|
|
2053
2268
|
reply_to: zod
|
|
2054
2269
|
.object({
|
|
2270
|
+
attachment_address: zod.string().optional(),
|
|
2055
2271
|
attachment_kind: zod.string().optional(),
|
|
2056
2272
|
attachment_mime: zod.string().optional(),
|
|
2057
2273
|
attachment_name: zod.string().optional(),
|
|
2058
2274
|
body: zod.string().optional(),
|
|
2059
2275
|
created_at: zod.string().optional(),
|
|
2060
2276
|
id: zod.string().optional(),
|
|
2277
|
+
is_deleted: zod.boolean().optional(),
|
|
2061
2278
|
sender: zod
|
|
2062
2279
|
.object({
|
|
2063
2280
|
contact: zod
|
|
@@ -2170,7 +2387,12 @@ export const ThreadManagementCreateResponse = zod
|
|
|
2170
2387
|
'ThreadMember represents a thread participant\nwith optional type-specific settings.',
|
|
2171
2388
|
),
|
|
2172
2389
|
sender_id: zod.string().optional(),
|
|
2173
|
-
type: zod
|
|
2390
|
+
type: zod
|
|
2391
|
+
.string()
|
|
2392
|
+
.optional()
|
|
2393
|
+
.describe(
|
|
2394
|
+
'Kind of the quoted message: text, document, image, system, interactive,\nlocation or contact.',
|
|
2395
|
+
),
|
|
2174
2396
|
})
|
|
2175
2397
|
.optional(),
|
|
2176
2398
|
revision_count: zod
|
|
@@ -2673,6 +2895,7 @@ export const ThreadManagementSearchLeftQueryParams = zod.object({
|
|
|
2673
2895
|
page: zod.int().optional().describe('Page number (1-based).'),
|
|
2674
2896
|
});
|
|
2675
2897
|
|
|
2898
|
+
export const threadManagementSearchLeftResponseItemsItemLastMsgDeletedByRoleDefault = `ROLE_UNSPECIFIED`;
|
|
2676
2899
|
export const threadManagementSearchLeftResponseItemsItemLastMsgDeliveryStatusDefault = `MESSAGE_DELIVERY_STATUS_UNSPECIFIED`;
|
|
2677
2900
|
export const threadManagementSearchLeftResponseItemsItemLastMsgForwardOriginKindDefault = `FORWARD_ORIGIN_KIND_UNSPECIFIED`;
|
|
2678
2901
|
export const threadManagementSearchLeftResponseItemsItemLastMsgInteractiveInputFieldStateDefault = `INPUT_FIELD_STATE_UNSPECIFIED`;
|
|
@@ -2727,10 +2950,113 @@ export const ThreadManagementSearchLeftResponse = zod.object({
|
|
|
2727
2950
|
'Unix time in milliseconds when the message was deleted.',
|
|
2728
2951
|
),
|
|
2729
2952
|
deleted_by: zod
|
|
2730
|
-
.
|
|
2953
|
+
.object({
|
|
2954
|
+
contact: zod
|
|
2955
|
+
.object({
|
|
2956
|
+
app_id: zod
|
|
2957
|
+
.string()
|
|
2958
|
+
.optional()
|
|
2959
|
+
.describe(
|
|
2960
|
+
'Identifier of the specific integration app or bot.',
|
|
2961
|
+
),
|
|
2962
|
+
created_at: zod
|
|
2963
|
+
.string()
|
|
2964
|
+
.optional()
|
|
2965
|
+
.describe(
|
|
2966
|
+
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
2967
|
+
),
|
|
2968
|
+
is_bot: zod
|
|
2969
|
+
.boolean()
|
|
2970
|
+
.optional()
|
|
2971
|
+
.describe(
|
|
2972
|
+
'Represents if usere is real person or automatic script.',
|
|
2973
|
+
),
|
|
2974
|
+
iss: zod
|
|
2975
|
+
.string()
|
|
2976
|
+
.optional()
|
|
2977
|
+
.describe(
|
|
2978
|
+
'Provider-specific unique identifier (Issuer ID).',
|
|
2979
|
+
),
|
|
2980
|
+
metadata: zod
|
|
2981
|
+
.record(zod.string(), zod.string())
|
|
2982
|
+
.optional()
|
|
2983
|
+
.describe(
|
|
2984
|
+
'Additional dynamic attributes provided by the messenger.',
|
|
2985
|
+
),
|
|
2986
|
+
name: zod
|
|
2987
|
+
.string()
|
|
2988
|
+
.optional()
|
|
2989
|
+
.describe('Display name of the contact.'),
|
|
2990
|
+
sub: zod
|
|
2991
|
+
.string()
|
|
2992
|
+
.optional()
|
|
2993
|
+
.describe(
|
|
2994
|
+
'Associated internal system subject/identifier.',
|
|
2995
|
+
),
|
|
2996
|
+
type: zod
|
|
2997
|
+
.string()
|
|
2998
|
+
.optional()
|
|
2999
|
+
.describe(
|
|
3000
|
+
"Channel type (e.g., 'webchat', 'telegram').",
|
|
3001
|
+
),
|
|
3002
|
+
updated_at: zod
|
|
3003
|
+
.string()
|
|
3004
|
+
.optional()
|
|
3005
|
+
.describe(
|
|
3006
|
+
'Last record update timestamp (Unix Epoch in milliseconds).',
|
|
3007
|
+
),
|
|
3008
|
+
username: zod
|
|
3009
|
+
.string()
|
|
3010
|
+
.optional()
|
|
3011
|
+
.describe('Technical username or handle.'),
|
|
3012
|
+
vias: zod
|
|
3013
|
+
.array(
|
|
3014
|
+
zod.object({
|
|
3015
|
+
contact_id: zod.string().optional(),
|
|
3016
|
+
created_at: zod.string().optional(),
|
|
3017
|
+
disable: zod.boolean().optional(),
|
|
3018
|
+
disable_reason: zod.string().optional(),
|
|
3019
|
+
metadata: zod.looseObject({}).optional(),
|
|
3020
|
+
updated_at: zod.string().optional(),
|
|
3021
|
+
via: zod.string().optional(),
|
|
3022
|
+
}),
|
|
3023
|
+
)
|
|
3024
|
+
.optional(),
|
|
3025
|
+
})
|
|
3026
|
+
.optional()
|
|
3027
|
+
.describe(
|
|
3028
|
+
'Contact represents an external messaging identity.',
|
|
3029
|
+
),
|
|
3030
|
+
id: zod.string().optional(),
|
|
3031
|
+
permissions: zod
|
|
3032
|
+
.object({
|
|
3033
|
+
can_add_members: zod.boolean().optional(),
|
|
3034
|
+
can_change_members_permissions: zod.boolean().optional(),
|
|
3035
|
+
can_change_thread_info: zod.boolean().optional(),
|
|
3036
|
+
can_delete_messages: zod.boolean().optional(),
|
|
3037
|
+
can_remove_members: zod.boolean().optional(),
|
|
3038
|
+
can_send_messages: zod.boolean().optional(),
|
|
3039
|
+
created_at: zod.string().optional(),
|
|
3040
|
+
id: zod.string().optional(),
|
|
3041
|
+
member_id: zod.string().optional(),
|
|
3042
|
+
updated_at: zod.string().optional(),
|
|
3043
|
+
})
|
|
3044
|
+
.optional(),
|
|
3045
|
+
role: zod
|
|
3046
|
+
.enum([
|
|
3047
|
+
'ROLE_UNSPECIFIED',
|
|
3048
|
+
'ROLE_MEMBER',
|
|
3049
|
+
'ROLE_ADMIN',
|
|
3050
|
+
'ROLE_OWNER',
|
|
3051
|
+
'ROLE_SUPERVISOR',
|
|
3052
|
+
])
|
|
3053
|
+
.default(
|
|
3054
|
+
threadManagementSearchLeftResponseItemsItemLastMsgDeletedByRoleDefault,
|
|
3055
|
+
),
|
|
3056
|
+
})
|
|
2731
3057
|
.optional()
|
|
2732
3058
|
.describe(
|
|
2733
|
-
'
|
|
3059
|
+
'Member who deleted the message, enriched exactly like sender; unset while\nthe message is live.',
|
|
2734
3060
|
),
|
|
2735
3061
|
delivery_status: zod
|
|
2736
3062
|
.enum([
|
|
@@ -3352,12 +3678,14 @@ export const ThreadManagementSearchLeftResponse = zod.object({
|
|
|
3352
3678
|
),
|
|
3353
3679
|
reply_to: zod
|
|
3354
3680
|
.object({
|
|
3681
|
+
attachment_address: zod.string().optional(),
|
|
3355
3682
|
attachment_kind: zod.string().optional(),
|
|
3356
3683
|
attachment_mime: zod.string().optional(),
|
|
3357
3684
|
attachment_name: zod.string().optional(),
|
|
3358
3685
|
body: zod.string().optional(),
|
|
3359
3686
|
created_at: zod.string().optional(),
|
|
3360
3687
|
id: zod.string().optional(),
|
|
3688
|
+
is_deleted: zod.boolean().optional(),
|
|
3361
3689
|
sender: zod
|
|
3362
3690
|
.object({
|
|
3363
3691
|
contact: zod
|
|
@@ -3470,7 +3798,12 @@ export const ThreadManagementSearchLeftResponse = zod.object({
|
|
|
3470
3798
|
'ThreadMember represents a thread participant\nwith optional type-specific settings.',
|
|
3471
3799
|
),
|
|
3472
3800
|
sender_id: zod.string().optional(),
|
|
3473
|
-
type: zod
|
|
3801
|
+
type: zod
|
|
3802
|
+
.string()
|
|
3803
|
+
.optional()
|
|
3804
|
+
.describe(
|
|
3805
|
+
'Kind of the quoted message: text, document, image, system, interactive,\nlocation or contact.',
|
|
3806
|
+
),
|
|
3474
3807
|
})
|
|
3475
3808
|
.optional(),
|
|
3476
3809
|
revision_count: zod
|
|
@@ -3979,6 +4312,7 @@ export const ThreadManagementGetQueryParams = zod.object({
|
|
|
3979
4312
|
.describe('List of fields to include in the response.'),
|
|
3980
4313
|
});
|
|
3981
4314
|
|
|
4315
|
+
export const threadManagementGetResponseLastMsgDeletedByRoleDefault = `ROLE_UNSPECIFIED`;
|
|
3982
4316
|
export const threadManagementGetResponseLastMsgDeliveryStatusDefault = `MESSAGE_DELIVERY_STATUS_UNSPECIFIED`;
|
|
3983
4317
|
export const threadManagementGetResponseLastMsgForwardOriginKindDefault = `FORWARD_ORIGIN_KIND_UNSPECIFIED`;
|
|
3984
4318
|
export const threadManagementGetResponseLastMsgInteractiveInputFieldStateDefault = `INPUT_FIELD_STATE_UNSPECIFIED`;
|
|
@@ -4026,10 +4360,103 @@ export const ThreadManagementGetResponse = zod
|
|
|
4026
4360
|
.optional()
|
|
4027
4361
|
.describe('Unix time in milliseconds when the message was deleted.'),
|
|
4028
4362
|
deleted_by: zod
|
|
4029
|
-
.
|
|
4363
|
+
.object({
|
|
4364
|
+
contact: zod
|
|
4365
|
+
.object({
|
|
4366
|
+
app_id: zod
|
|
4367
|
+
.string()
|
|
4368
|
+
.optional()
|
|
4369
|
+
.describe(
|
|
4370
|
+
'Identifier of the specific integration app or bot.',
|
|
4371
|
+
),
|
|
4372
|
+
created_at: zod
|
|
4373
|
+
.string()
|
|
4374
|
+
.optional()
|
|
4375
|
+
.describe(
|
|
4376
|
+
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
4377
|
+
),
|
|
4378
|
+
is_bot: zod
|
|
4379
|
+
.boolean()
|
|
4380
|
+
.optional()
|
|
4381
|
+
.describe(
|
|
4382
|
+
'Represents if usere is real person or automatic script.',
|
|
4383
|
+
),
|
|
4384
|
+
iss: zod
|
|
4385
|
+
.string()
|
|
4386
|
+
.optional()
|
|
4387
|
+
.describe('Provider-specific unique identifier (Issuer ID).'),
|
|
4388
|
+
metadata: zod
|
|
4389
|
+
.record(zod.string(), zod.string())
|
|
4390
|
+
.optional()
|
|
4391
|
+
.describe(
|
|
4392
|
+
'Additional dynamic attributes provided by the messenger.',
|
|
4393
|
+
),
|
|
4394
|
+
name: zod
|
|
4395
|
+
.string()
|
|
4396
|
+
.optional()
|
|
4397
|
+
.describe('Display name of the contact.'),
|
|
4398
|
+
sub: zod
|
|
4399
|
+
.string()
|
|
4400
|
+
.optional()
|
|
4401
|
+
.describe('Associated internal system subject/identifier.'),
|
|
4402
|
+
type: zod
|
|
4403
|
+
.string()
|
|
4404
|
+
.optional()
|
|
4405
|
+
.describe("Channel type (e.g., 'webchat', 'telegram')."),
|
|
4406
|
+
updated_at: zod
|
|
4407
|
+
.string()
|
|
4408
|
+
.optional()
|
|
4409
|
+
.describe(
|
|
4410
|
+
'Last record update timestamp (Unix Epoch in milliseconds).',
|
|
4411
|
+
),
|
|
4412
|
+
username: zod
|
|
4413
|
+
.string()
|
|
4414
|
+
.optional()
|
|
4415
|
+
.describe('Technical username or handle.'),
|
|
4416
|
+
vias: zod
|
|
4417
|
+
.array(
|
|
4418
|
+
zod.object({
|
|
4419
|
+
contact_id: zod.string().optional(),
|
|
4420
|
+
created_at: zod.string().optional(),
|
|
4421
|
+
disable: zod.boolean().optional(),
|
|
4422
|
+
disable_reason: zod.string().optional(),
|
|
4423
|
+
metadata: zod.looseObject({}).optional(),
|
|
4424
|
+
updated_at: zod.string().optional(),
|
|
4425
|
+
via: zod.string().optional(),
|
|
4426
|
+
}),
|
|
4427
|
+
)
|
|
4428
|
+
.optional(),
|
|
4429
|
+
})
|
|
4430
|
+
.optional()
|
|
4431
|
+
.describe('Contact represents an external messaging identity.'),
|
|
4432
|
+
id: zod.string().optional(),
|
|
4433
|
+
permissions: zod
|
|
4434
|
+
.object({
|
|
4435
|
+
can_add_members: zod.boolean().optional(),
|
|
4436
|
+
can_change_members_permissions: zod.boolean().optional(),
|
|
4437
|
+
can_change_thread_info: zod.boolean().optional(),
|
|
4438
|
+
can_delete_messages: zod.boolean().optional(),
|
|
4439
|
+
can_remove_members: zod.boolean().optional(),
|
|
4440
|
+
can_send_messages: zod.boolean().optional(),
|
|
4441
|
+
created_at: zod.string().optional(),
|
|
4442
|
+
id: zod.string().optional(),
|
|
4443
|
+
member_id: zod.string().optional(),
|
|
4444
|
+
updated_at: zod.string().optional(),
|
|
4445
|
+
})
|
|
4446
|
+
.optional(),
|
|
4447
|
+
role: zod
|
|
4448
|
+
.enum([
|
|
4449
|
+
'ROLE_UNSPECIFIED',
|
|
4450
|
+
'ROLE_MEMBER',
|
|
4451
|
+
'ROLE_ADMIN',
|
|
4452
|
+
'ROLE_OWNER',
|
|
4453
|
+
'ROLE_SUPERVISOR',
|
|
4454
|
+
])
|
|
4455
|
+
.default(threadManagementGetResponseLastMsgDeletedByRoleDefault),
|
|
4456
|
+
})
|
|
4030
4457
|
.optional()
|
|
4031
4458
|
.describe(
|
|
4032
|
-
'
|
|
4459
|
+
'Member who deleted the message, enriched exactly like sender; unset while\nthe message is live.',
|
|
4033
4460
|
),
|
|
4034
4461
|
delivery_status: zod
|
|
4035
4462
|
.enum([
|
|
@@ -4615,12 +5042,14 @@ export const ThreadManagementGetResponse = zod
|
|
|
4615
5042
|
),
|
|
4616
5043
|
reply_to: zod
|
|
4617
5044
|
.object({
|
|
5045
|
+
attachment_address: zod.string().optional(),
|
|
4618
5046
|
attachment_kind: zod.string().optional(),
|
|
4619
5047
|
attachment_mime: zod.string().optional(),
|
|
4620
5048
|
attachment_name: zod.string().optional(),
|
|
4621
5049
|
body: zod.string().optional(),
|
|
4622
5050
|
created_at: zod.string().optional(),
|
|
4623
5051
|
id: zod.string().optional(),
|
|
5052
|
+
is_deleted: zod.boolean().optional(),
|
|
4624
5053
|
sender: zod
|
|
4625
5054
|
.object({
|
|
4626
5055
|
contact: zod
|
|
@@ -4729,7 +5158,12 @@ export const ThreadManagementGetResponse = zod
|
|
|
4729
5158
|
'ThreadMember represents a thread participant\nwith optional type-specific settings.',
|
|
4730
5159
|
),
|
|
4731
5160
|
sender_id: zod.string().optional(),
|
|
4732
|
-
type: zod
|
|
5161
|
+
type: zod
|
|
5162
|
+
.string()
|
|
5163
|
+
.optional()
|
|
5164
|
+
.describe(
|
|
5165
|
+
'Kind of the quoted message: text, document, image, system, interactive,\nlocation or contact.',
|
|
5166
|
+
),
|
|
4733
5167
|
})
|
|
4734
5168
|
.optional(),
|
|
4735
5169
|
revision_count: zod
|