@webitel/api-services 1.0.13 → 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/api/clients/labels/labels.ts +1 -6
- 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
|
@@ -88,6 +88,7 @@ export const SearchAgentResponse = zod.object({
|
|
|
88
88
|
.optional(),
|
|
89
89
|
status: zod.string().optional(),
|
|
90
90
|
status_duration: zod.string().optional(),
|
|
91
|
+
status_type: zod.string().optional(),
|
|
91
92
|
supervisor: zod
|
|
92
93
|
.array(
|
|
93
94
|
zod.object({
|
|
@@ -228,6 +229,7 @@ export const CreateAgentResponse = zod.object({
|
|
|
228
229
|
.optional(),
|
|
229
230
|
status: zod.string().optional(),
|
|
230
231
|
status_duration: zod.string().optional(),
|
|
232
|
+
status_type: zod.string().optional(),
|
|
231
233
|
supervisor: zod
|
|
232
234
|
.array(
|
|
233
235
|
zod.object({
|
|
@@ -711,6 +713,7 @@ export const DeleteAgentResponse = zod.object({
|
|
|
711
713
|
.optional(),
|
|
712
714
|
status: zod.string().optional(),
|
|
713
715
|
status_duration: zod.string().optional(),
|
|
716
|
+
status_type: zod.string().optional(),
|
|
714
717
|
supervisor: zod
|
|
715
718
|
.array(
|
|
716
719
|
zod.object({
|
|
@@ -803,6 +806,7 @@ export const ReadAgentResponse = zod.object({
|
|
|
803
806
|
.optional(),
|
|
804
807
|
status: zod.string().optional(),
|
|
805
808
|
status_duration: zod.string().optional(),
|
|
809
|
+
status_type: zod.string().optional(),
|
|
806
810
|
supervisor: zod
|
|
807
811
|
.array(
|
|
808
812
|
zod.object({
|
|
@@ -942,6 +946,7 @@ export const PatchAgentResponse = zod.object({
|
|
|
942
946
|
.optional(),
|
|
943
947
|
status: zod.string().optional(),
|
|
944
948
|
status_duration: zod.string().optional(),
|
|
949
|
+
status_type: zod.string().optional(),
|
|
945
950
|
supervisor: zod
|
|
946
951
|
.array(
|
|
947
952
|
zod.object({
|
|
@@ -1082,6 +1087,7 @@ export const UpdateAgentResponse = zod.object({
|
|
|
1082
1087
|
.optional(),
|
|
1083
1088
|
status: zod.string().optional(),
|
|
1084
1089
|
status_duration: zod.string().optional(),
|
|
1090
|
+
status_type: zod.string().optional(),
|
|
1085
1091
|
supervisor: zod
|
|
1086
1092
|
.array(
|
|
1087
1093
|
zod.object({
|
|
@@ -12,6 +12,7 @@ import type {
|
|
|
12
12
|
SearchFilesByCallParams,
|
|
13
13
|
SearchFilesParams,
|
|
14
14
|
SearchScreenRecordingsByAgentParams,
|
|
15
|
+
SearchScreenRecordingsByCallParams,
|
|
15
16
|
SearchScreenRecordingsParams,
|
|
16
17
|
StorageDeleteFilesRequest,
|
|
17
18
|
StorageDeleteFilesResponse,
|
|
@@ -79,6 +80,19 @@ export const // --- title start
|
|
|
79
80
|
...options,
|
|
80
81
|
});
|
|
81
82
|
};
|
|
83
|
+
const searchScreenRecordingsByCall = (
|
|
84
|
+
callId: string,
|
|
85
|
+
params?: SearchScreenRecordingsByCallParams,
|
|
86
|
+
options?: AxiosRequestConfig,
|
|
87
|
+
): Promise<AxiosResponse<StorageListFile>> => {
|
|
88
|
+
return axiosInstance.get(`/storage/call/${callId}`, {
|
|
89
|
+
...options,
|
|
90
|
+
params: {
|
|
91
|
+
...params,
|
|
92
|
+
...options?.params,
|
|
93
|
+
},
|
|
94
|
+
});
|
|
95
|
+
};
|
|
82
96
|
const deleteFiles = (
|
|
83
97
|
storageDeleteFilesRequest: StorageDeleteFilesRequest,
|
|
84
98
|
options?: AxiosRequestConfig,
|
|
@@ -150,6 +164,7 @@ export const // --- title start
|
|
|
150
164
|
searchFilesByCall,
|
|
151
165
|
searchScreenRecordingsByAgent,
|
|
152
166
|
deleteScreenRecordingsByAgent,
|
|
167
|
+
searchScreenRecordingsByCall,
|
|
153
168
|
deleteFiles,
|
|
154
169
|
searchFiles,
|
|
155
170
|
deleteQuarantineFiles,
|
|
@@ -165,6 +180,7 @@ export type SearchScreenRecordingsByAgentResult =
|
|
|
165
180
|
AxiosResponse<StorageListFile>;
|
|
166
181
|
export type DeleteScreenRecordingsByAgentResult =
|
|
167
182
|
AxiosResponse<StorageDeleteFilesResponse>;
|
|
183
|
+
export type SearchScreenRecordingsByCallResult = AxiosResponse<StorageListFile>;
|
|
168
184
|
export type DeleteFilesResult = AxiosResponse<StorageDeleteFilesResponse>;
|
|
169
185
|
export type SearchFilesResult = AxiosResponse<StorageListFile>;
|
|
170
186
|
export type DeleteQuarantineFilesResult =
|
|
@@ -209,6 +209,96 @@ export const DeleteScreenRecordingsByAgentBody = zod.looseObject({});
|
|
|
209
209
|
|
|
210
210
|
export const DeleteScreenRecordingsByAgentResponse = zod.looseObject({});
|
|
211
211
|
|
|
212
|
+
export const SearchScreenRecordingsByCallParams = zod.object({
|
|
213
|
+
call_id: zod.string(),
|
|
214
|
+
});
|
|
215
|
+
|
|
216
|
+
export const searchScreenRecordingsByCallQueryTypeDefault = `PDF`;
|
|
217
|
+
export const searchScreenRecordingsByCallQueryChannelDefault = `SCREENRECORDING`;
|
|
218
|
+
|
|
219
|
+
export const SearchScreenRecordingsByCallQueryParams = zod.object({
|
|
220
|
+
page: zod.int().optional(),
|
|
221
|
+
size: zod.int().optional(),
|
|
222
|
+
q: zod.string().optional(),
|
|
223
|
+
sort: zod.string().optional(),
|
|
224
|
+
fields: zod.array(zod.string()).optional(),
|
|
225
|
+
id: zod.array(zod.string()).optional(),
|
|
226
|
+
'uploaded_at.from': zod.string().optional(),
|
|
227
|
+
'uploaded_at.to': zod.string().optional(),
|
|
228
|
+
reference_id: zod.array(zod.string()).optional(),
|
|
229
|
+
'retention_until.from': zod.string().optional(),
|
|
230
|
+
'retention_until.to': zod.string().optional(),
|
|
231
|
+
type: zod
|
|
232
|
+
.enum([
|
|
233
|
+
'PDF',
|
|
234
|
+
'SCREENSHOT',
|
|
235
|
+
'SCREENSHARING',
|
|
236
|
+
])
|
|
237
|
+
.default(searchScreenRecordingsByCallQueryTypeDefault),
|
|
238
|
+
channel: zod
|
|
239
|
+
.enum([
|
|
240
|
+
'SCREENRECORDING',
|
|
241
|
+
'CALL',
|
|
242
|
+
])
|
|
243
|
+
.default(searchScreenRecordingsByCallQueryChannelDefault),
|
|
244
|
+
});
|
|
245
|
+
|
|
246
|
+
export const searchScreenRecordingsByCallResponseItemsItemChannelDefault = `UnknownChannel`;
|
|
247
|
+
|
|
248
|
+
export const SearchScreenRecordingsByCallResponse = zod.object({
|
|
249
|
+
items: zod
|
|
250
|
+
.array(
|
|
251
|
+
zod.object({
|
|
252
|
+
channel: zod
|
|
253
|
+
.enum([
|
|
254
|
+
'UnknownChannel',
|
|
255
|
+
'ChatChannel',
|
|
256
|
+
'MailChannel',
|
|
257
|
+
'CallChannel',
|
|
258
|
+
'LogChannel',
|
|
259
|
+
'MediaChannel',
|
|
260
|
+
'KnowledgebaseChannel',
|
|
261
|
+
'CasesChannel',
|
|
262
|
+
'ScreenRecordingChannel',
|
|
263
|
+
])
|
|
264
|
+
.default(searchScreenRecordingsByCallResponseItemsItemChannelDefault),
|
|
265
|
+
id: zod.string().optional(),
|
|
266
|
+
mime_type: zod.string().optional(),
|
|
267
|
+
name: zod.string().optional(),
|
|
268
|
+
properties: zod
|
|
269
|
+
.object({
|
|
270
|
+
end_time: zod.string().optional(),
|
|
271
|
+
height: zod.string().optional(),
|
|
272
|
+
start_time: zod.string().optional(),
|
|
273
|
+
width: zod.string().optional(),
|
|
274
|
+
})
|
|
275
|
+
.optional(),
|
|
276
|
+
reference_id: zod.string().optional(),
|
|
277
|
+
retention_until: zod.string().optional(),
|
|
278
|
+
sha256sum: zod.string().optional(),
|
|
279
|
+
size: zod.string().optional(),
|
|
280
|
+
thumbnail: zod
|
|
281
|
+
.object({
|
|
282
|
+
mime_type: zod.string().optional(),
|
|
283
|
+
scale: zod.string().optional(),
|
|
284
|
+
size: zod.string().optional(),
|
|
285
|
+
})
|
|
286
|
+
.optional(),
|
|
287
|
+
uploaded_at: zod.string().optional(),
|
|
288
|
+
uploaded_by: zod
|
|
289
|
+
.object({
|
|
290
|
+
id: zod.string().optional(),
|
|
291
|
+
name: zod.string().optional(),
|
|
292
|
+
})
|
|
293
|
+
.optional(),
|
|
294
|
+
uuid: zod.string().optional(),
|
|
295
|
+
view_name: zod.string().optional(),
|
|
296
|
+
}),
|
|
297
|
+
)
|
|
298
|
+
.optional(),
|
|
299
|
+
next: zod.boolean().optional(),
|
|
300
|
+
});
|
|
301
|
+
|
|
212
302
|
export const DeleteFilesBody = zod.object({
|
|
213
303
|
id: zod.array(zod.string()).optional(),
|
|
214
304
|
});
|
package/src/gen-wire/index.ts
CHANGED
|
@@ -1103,6 +1103,9 @@ export {
|
|
|
1103
1103
|
SearchScreenRecordingsByAgentParams,
|
|
1104
1104
|
SearchScreenRecordingsByAgentQueryParams,
|
|
1105
1105
|
SearchScreenRecordingsByAgentResponse,
|
|
1106
|
+
SearchScreenRecordingsByCallParams,
|
|
1107
|
+
SearchScreenRecordingsByCallQueryParams,
|
|
1108
|
+
SearchScreenRecordingsByCallResponse,
|
|
1106
1109
|
SearchScreenRecordingsParams,
|
|
1107
1110
|
SearchScreenRecordingsQueryParams,
|
|
1108
1111
|
SearchScreenRecordingsResponse,
|
|
@@ -1111,6 +1114,9 @@ export {
|
|
|
1111
1114
|
searchScreenRecordingsByAgentQueryChannelDefault,
|
|
1112
1115
|
searchScreenRecordingsByAgentQueryTypeDefault,
|
|
1113
1116
|
searchScreenRecordingsByAgentResponseItemsItemChannelDefault,
|
|
1117
|
+
searchScreenRecordingsByCallQueryChannelDefault,
|
|
1118
|
+
searchScreenRecordingsByCallQueryTypeDefault,
|
|
1119
|
+
searchScreenRecordingsByCallResponseItemsItemChannelDefault,
|
|
1114
1120
|
searchScreenRecordingsQueryChannelDefault,
|
|
1115
1121
|
searchScreenRecordingsQueryTypeDefault,
|
|
1116
1122
|
searchScreenRecordingsResponseItemsItemChannelDefault,
|
|
@@ -1609,9 +1615,15 @@ export {
|
|
|
1609
1615
|
DownloadCallArchiveParams,
|
|
1610
1616
|
DownloadCallArchiveQueryParams,
|
|
1611
1617
|
DownloadCallArchiveResponse,
|
|
1618
|
+
DownloadCallScreenrecordingArchiveParams,
|
|
1619
|
+
DownloadCallScreenrecordingArchiveQueryParams,
|
|
1620
|
+
DownloadCallScreenrecordingArchiveResponse,
|
|
1612
1621
|
DownloadScreenrecordingArchiveParams,
|
|
1613
1622
|
DownloadScreenrecordingArchiveQueryParams,
|
|
1614
1623
|
DownloadScreenrecordingArchiveResponse,
|
|
1624
|
+
DownloadScreenshotArchiveParams,
|
|
1625
|
+
DownloadScreenshotArchiveQueryParams,
|
|
1626
|
+
DownloadScreenshotArchiveResponse,
|
|
1615
1627
|
ListCallExportsParams,
|
|
1616
1628
|
ListCallExportsQueryParams,
|
|
1617
1629
|
ListCallExportsResponse,
|
|
@@ -2581,6 +2593,8 @@ export {
|
|
|
2581
2593
|
MessageHistorySearchThreadMessagesHistoryQueryParams,
|
|
2582
2594
|
MessageHistorySearchThreadMessagesHistoryResponse,
|
|
2583
2595
|
messageHistoryGetMessageRevisionsResponseItemsItemActionDefault,
|
|
2596
|
+
messageHistoryGetMessageRevisionsResponseItemsItemChangedByRoleDefault,
|
|
2597
|
+
messageHistorySearchLeftThreadsMessagesHistoryResponseItemsItemDeletedByRoleDefault,
|
|
2584
2598
|
messageHistorySearchLeftThreadsMessagesHistoryResponseItemsItemDeliveryStatusDefault,
|
|
2585
2599
|
messageHistorySearchLeftThreadsMessagesHistoryResponseItemsItemForwardOriginKindDefault,
|
|
2586
2600
|
messageHistorySearchLeftThreadsMessagesHistoryResponseItemsItemInteractiveInputFieldStateDefault,
|
|
@@ -2589,6 +2603,7 @@ export {
|
|
|
2589
2603
|
messageHistorySearchLeftThreadsMessagesHistoryResponseItemsItemReplyToSenderRoleDefault,
|
|
2590
2604
|
messageHistorySearchLeftThreadsMessagesHistoryResponseItemsItemSenderRoleDefault,
|
|
2591
2605
|
messageHistorySearchLeftThreadsMessagesHistoryResponseItemsItemStatusesItemStatusDefault,
|
|
2606
|
+
messageHistorySearchMessagesResponseItemsItemDeletedByRoleDefault,
|
|
2592
2607
|
messageHistorySearchMessagesResponseItemsItemDeliveryStatusDefault,
|
|
2593
2608
|
messageHistorySearchMessagesResponseItemsItemForwardOriginKindDefault,
|
|
2594
2609
|
messageHistorySearchMessagesResponseItemsItemInteractiveInputFieldStateDefault,
|
|
@@ -2597,6 +2612,7 @@ export {
|
|
|
2597
2612
|
messageHistorySearchMessagesResponseItemsItemReplyToSenderRoleDefault,
|
|
2598
2613
|
messageHistorySearchMessagesResponseItemsItemSenderRoleDefault,
|
|
2599
2614
|
messageHistorySearchMessagesResponseItemsItemStatusesItemStatusDefault,
|
|
2615
|
+
messageHistorySearchThreadMessagesHistoryResponseItemsItemDeletedByRoleDefault,
|
|
2600
2616
|
messageHistorySearchThreadMessagesHistoryResponseItemsItemDeliveryStatusDefault,
|
|
2601
2617
|
messageHistorySearchThreadMessagesHistoryResponseItemsItemForwardOriginKindDefault,
|
|
2602
2618
|
messageHistorySearchThreadMessagesHistoryResponseItemsItemInteractiveInputFieldStateDefault,
|
|
@@ -2638,6 +2654,7 @@ export {
|
|
|
2638
2654
|
ThreadManagementTransferResponse,
|
|
2639
2655
|
threadManagementAddMemberBodyRoleDefault,
|
|
2640
2656
|
threadManagementAddMemberResponseMemberRoleDefault,
|
|
2657
|
+
threadManagementCreateResponseThreadLastMsgDeletedByRoleDefault,
|
|
2641
2658
|
threadManagementCreateResponseThreadLastMsgDeliveryStatusDefault,
|
|
2642
2659
|
threadManagementCreateResponseThreadLastMsgForwardOriginKindDefault,
|
|
2643
2660
|
threadManagementCreateResponseThreadLastMsgInteractiveInputFieldStateDefault,
|
|
@@ -2648,6 +2665,7 @@ export {
|
|
|
2648
2665
|
threadManagementCreateResponseThreadLastMsgStatusesItemStatusDefault,
|
|
2649
2666
|
threadManagementCreateResponseThreadMembersItemRoleDefault,
|
|
2650
2667
|
threadManagementCreateResponseThreadTypeDefault,
|
|
2668
|
+
threadManagementGetResponseLastMsgDeletedByRoleDefault,
|
|
2651
2669
|
threadManagementGetResponseLastMsgDeliveryStatusDefault,
|
|
2652
2670
|
threadManagementGetResponseLastMsgForwardOriginKindDefault,
|
|
2653
2671
|
threadManagementGetResponseLastMsgInteractiveInputFieldStateDefault,
|
|
@@ -2658,6 +2676,7 @@ export {
|
|
|
2658
2676
|
threadManagementGetResponseLastMsgStatusesItemStatusDefault,
|
|
2659
2677
|
threadManagementGetResponseMembersItemRoleDefault,
|
|
2660
2678
|
threadManagementGetResponseTypeDefault,
|
|
2679
|
+
threadManagementSearchLeftResponseItemsItemLastMsgDeletedByRoleDefault,
|
|
2661
2680
|
threadManagementSearchLeftResponseItemsItemLastMsgDeliveryStatusDefault,
|
|
2662
2681
|
threadManagementSearchLeftResponseItemsItemLastMsgForwardOriginKindDefault,
|
|
2663
2682
|
threadManagementSearchLeftResponseItemsItemLastMsgInteractiveInputFieldStateDefault,
|
|
@@ -2668,6 +2687,7 @@ export {
|
|
|
2668
2687
|
threadManagementSearchLeftResponseItemsItemLastMsgStatusesItemStatusDefault,
|
|
2669
2688
|
threadManagementSearchLeftResponseItemsItemMembersItemRoleDefault,
|
|
2670
2689
|
threadManagementSearchLeftResponseItemsItemTypeDefault,
|
|
2690
|
+
threadManagementSearchResponseItemsItemLastMsgDeletedByRoleDefault,
|
|
2671
2691
|
threadManagementSearchResponseItemsItemLastMsgDeliveryStatusDefault,
|
|
2672
2692
|
threadManagementSearchResponseItemsItemLastMsgForwardOriginKindDefault,
|
|
2673
2693
|
threadManagementSearchResponseItemsItemLastMsgInteractiveInputFieldStateDefault,
|
|
@@ -11,8 +11,12 @@ import axios from '../../api/axios/genClient';
|
|
|
11
11
|
import type {
|
|
12
12
|
DownloadCallArchive200,
|
|
13
13
|
DownloadCallArchiveParams,
|
|
14
|
+
DownloadCallScreenrecordingArchive200,
|
|
15
|
+
DownloadCallScreenrecordingArchiveParams,
|
|
14
16
|
DownloadScreenrecordingArchive200,
|
|
15
17
|
DownloadScreenrecordingArchiveParams,
|
|
18
|
+
DownloadScreenshotArchive200,
|
|
19
|
+
DownloadScreenshotArchiveParams,
|
|
16
20
|
ListCallExportsParams,
|
|
17
21
|
ListScreenrecordingExportsParams,
|
|
18
22
|
WebitelMediaExporterDeleteExportResponse,
|
|
@@ -51,6 +55,26 @@ The archive is assembled on the fly without creating a temporary file.
|
|
|
51
55
|
);
|
|
52
56
|
};
|
|
53
57
|
/**
|
|
58
|
+
* @summary Streams original screenshots packed into a ZIP archive.
|
|
59
|
+
The archive is assembled on the fly without creating a temporary file.
|
|
60
|
+
*/
|
|
61
|
+
const downloadScreenshotArchive = (
|
|
62
|
+
agentId: string,
|
|
63
|
+
params?: DownloadScreenshotArchiveParams,
|
|
64
|
+
options?: AxiosRequestConfig,
|
|
65
|
+
): Promise<AxiosResponse<DownloadScreenshotArchive200>> => {
|
|
66
|
+
return axiosInstance.get(
|
|
67
|
+
`/agents/${agentId}/exports/archive/screenshots`,
|
|
68
|
+
{
|
|
69
|
+
...options,
|
|
70
|
+
params: {
|
|
71
|
+
...params,
|
|
72
|
+
...options?.params,
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
);
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
54
78
|
* @summary Lists the history of PDF exports for a specific agent.
|
|
55
79
|
*/
|
|
56
80
|
const listScreenrecordingExports = (
|
|
@@ -103,6 +127,26 @@ so the caller does not need to poll for completion.
|
|
|
103
127
|
});
|
|
104
128
|
};
|
|
105
129
|
/**
|
|
130
|
+
* @summary Streams original screen recording videos associated with a specific call
|
|
131
|
+
as a ZIP archive assembled on the fly.
|
|
132
|
+
*/
|
|
133
|
+
const downloadCallScreenrecordingArchive = (
|
|
134
|
+
callId: string,
|
|
135
|
+
params?: DownloadCallScreenrecordingArchiveParams,
|
|
136
|
+
options?: AxiosRequestConfig,
|
|
137
|
+
): Promise<AxiosResponse<DownloadCallScreenrecordingArchive200>> => {
|
|
138
|
+
return axiosInstance.get(
|
|
139
|
+
`/calls/${callId}/exports/archive/screenrecordings`,
|
|
140
|
+
{
|
|
141
|
+
...options,
|
|
142
|
+
params: {
|
|
143
|
+
...params,
|
|
144
|
+
...options?.params,
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
);
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
106
150
|
* @summary Lists the history of PDF exports for a specific call ID.
|
|
107
151
|
*/
|
|
108
152
|
const listCallExports = (
|
|
@@ -146,9 +190,11 @@ Useful for documenting call transcripts or associated media.
|
|
|
146
190
|
// --- footer start
|
|
147
191
|
return {
|
|
148
192
|
downloadScreenrecordingArchive,
|
|
193
|
+
downloadScreenshotArchive,
|
|
149
194
|
listScreenrecordingExports,
|
|
150
195
|
createScreenrecordingExport,
|
|
151
196
|
downloadCallArchive,
|
|
197
|
+
downloadCallScreenrecordingArchive,
|
|
152
198
|
listCallExports,
|
|
153
199
|
createCallExport,
|
|
154
200
|
deleteExport,
|
|
@@ -156,11 +202,15 @@ Useful for documenting call transcripts or associated media.
|
|
|
156
202
|
};
|
|
157
203
|
export type DownloadScreenrecordingArchiveResult =
|
|
158
204
|
AxiosResponse<DownloadScreenrecordingArchive200>;
|
|
205
|
+
export type DownloadScreenshotArchiveResult =
|
|
206
|
+
AxiosResponse<DownloadScreenshotArchive200>;
|
|
159
207
|
export type ListScreenrecordingExportsResult =
|
|
160
208
|
AxiosResponse<WebitelMediaExporterListExportsResponse>;
|
|
161
209
|
export type CreateScreenrecordingExportResult =
|
|
162
210
|
AxiosResponse<WebitelMediaExporterExportTask>;
|
|
163
211
|
export type DownloadCallArchiveResult = AxiosResponse<DownloadCallArchive200>;
|
|
212
|
+
export type DownloadCallScreenrecordingArchiveResult =
|
|
213
|
+
AxiosResponse<DownloadCallScreenrecordingArchive200>;
|
|
164
214
|
export type ListCallExportsResult =
|
|
165
215
|
AxiosResponse<WebitelMediaExporterListExportsResponse>;
|
|
166
216
|
export type CreateCallExportResult =
|
|
@@ -53,6 +53,53 @@ export const DownloadScreenrecordingArchiveResponse = zod.object({
|
|
|
53
53
|
),
|
|
54
54
|
});
|
|
55
55
|
|
|
56
|
+
/**
|
|
57
|
+
* @summary Streams original screenshots packed into a ZIP archive.
|
|
58
|
+
The archive is assembled on the fly without creating a temporary file.
|
|
59
|
+
*/
|
|
60
|
+
export const DownloadScreenshotArchiveParams = zod.object({
|
|
61
|
+
agent_id: zod.string().describe('Unique identifier of the agent.'),
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
export const DownloadScreenshotArchiveQueryParams = zod.object({
|
|
65
|
+
file_ids: zod
|
|
66
|
+
.array(zod.string())
|
|
67
|
+
.optional()
|
|
68
|
+
.describe('Optional IDs of selected screenshots.'),
|
|
69
|
+
from: zod
|
|
70
|
+
.string()
|
|
71
|
+
.optional()
|
|
72
|
+
.describe('Start of the uploaded_at range (Unix millis).'),
|
|
73
|
+
to: zod
|
|
74
|
+
.string()
|
|
75
|
+
.optional()
|
|
76
|
+
.describe('End of the uploaded_at range (Unix millis).'),
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
export const DownloadScreenshotArchiveResponse = zod.object({
|
|
80
|
+
error: zod
|
|
81
|
+
.object({
|
|
82
|
+
code: zod.int().optional(),
|
|
83
|
+
details: zod
|
|
84
|
+
.array(
|
|
85
|
+
zod.object({
|
|
86
|
+
'@type': zod.string().optional(),
|
|
87
|
+
}),
|
|
88
|
+
)
|
|
89
|
+
.optional(),
|
|
90
|
+
message: zod.string().optional(),
|
|
91
|
+
})
|
|
92
|
+
.optional(),
|
|
93
|
+
result: zod
|
|
94
|
+
.object({
|
|
95
|
+
data: zod.string().optional(),
|
|
96
|
+
})
|
|
97
|
+
.optional()
|
|
98
|
+
.describe(
|
|
99
|
+
'One frame of a streamed screenshot ZIP archive.\nThe archive name is sent through the "filename" gRPC response header.',
|
|
100
|
+
),
|
|
101
|
+
});
|
|
102
|
+
|
|
56
103
|
/**
|
|
57
104
|
* @summary Lists the history of PDF exports for a specific agent.
|
|
58
105
|
*/
|
|
@@ -67,6 +114,8 @@ export const ListScreenrecordingExportsQueryParams = zod.object({
|
|
|
67
114
|
.string()
|
|
68
115
|
.optional()
|
|
69
116
|
.describe('sorting criteria, e.g. "+created_at" or "-name"'),
|
|
117
|
+
'uploaded_at.from': zod.string().optional(),
|
|
118
|
+
'uploaded_at.to': zod.string().optional(),
|
|
70
119
|
});
|
|
71
120
|
|
|
72
121
|
export const listScreenrecordingExportsResponseItemsItemStatusDefault = `EXPORT_STATUS_UNSPECIFIED`;
|
|
@@ -227,6 +276,53 @@ export const DownloadCallArchiveResponse = zod.object({
|
|
|
227
276
|
.optional(),
|
|
228
277
|
});
|
|
229
278
|
|
|
279
|
+
/**
|
|
280
|
+
* @summary Streams original screen recording videos associated with a specific call
|
|
281
|
+
as a ZIP archive assembled on the fly.
|
|
282
|
+
*/
|
|
283
|
+
export const DownloadCallScreenrecordingArchiveParams = zod.object({
|
|
284
|
+
call_id: zod.string().describe('Unique identifier of the call.'),
|
|
285
|
+
});
|
|
286
|
+
|
|
287
|
+
export const DownloadCallScreenrecordingArchiveQueryParams = zod.object({
|
|
288
|
+
file_ids: zod
|
|
289
|
+
.array(zod.string())
|
|
290
|
+
.optional()
|
|
291
|
+
.describe('Optional IDs of selected screen recordings.'),
|
|
292
|
+
from: zod
|
|
293
|
+
.string()
|
|
294
|
+
.optional()
|
|
295
|
+
.describe('Start of the uploaded_at range (Unix millis).'),
|
|
296
|
+
to: zod
|
|
297
|
+
.string()
|
|
298
|
+
.optional()
|
|
299
|
+
.describe('End of the uploaded_at range (Unix millis).'),
|
|
300
|
+
});
|
|
301
|
+
|
|
302
|
+
export const DownloadCallScreenrecordingArchiveResponse = zod.object({
|
|
303
|
+
error: zod
|
|
304
|
+
.object({
|
|
305
|
+
code: zod.int().optional(),
|
|
306
|
+
details: zod
|
|
307
|
+
.array(
|
|
308
|
+
zod.object({
|
|
309
|
+
'@type': zod.string().optional(),
|
|
310
|
+
}),
|
|
311
|
+
)
|
|
312
|
+
.optional(),
|
|
313
|
+
message: zod.string().optional(),
|
|
314
|
+
})
|
|
315
|
+
.optional(),
|
|
316
|
+
result: zod
|
|
317
|
+
.object({
|
|
318
|
+
data: zod.string().optional(),
|
|
319
|
+
})
|
|
320
|
+
.optional()
|
|
321
|
+
.describe(
|
|
322
|
+
'One frame of a streamed screen recording ZIP archive. The archive name is\ncarried via the "filename" gRPC response header set before the first frame.',
|
|
323
|
+
),
|
|
324
|
+
});
|
|
325
|
+
|
|
230
326
|
/**
|
|
231
327
|
* @summary Lists the history of PDF exports for a specific call ID.
|
|
232
328
|
*/
|
|
@@ -241,6 +337,8 @@ export const ListCallExportsQueryParams = zod.object({
|
|
|
241
337
|
.string()
|
|
242
338
|
.optional()
|
|
243
339
|
.describe('sorting criteria, e.g. "+created_at" or "-name"'),
|
|
340
|
+
'uploaded_at.from': zod.string().optional(),
|
|
341
|
+
'uploaded_at.to': zod.string().optional(),
|
|
244
342
|
});
|
|
245
343
|
|
|
246
344
|
export const listCallExportsResponseItemsItemStatusDefault = `EXPORT_STATUS_UNSPECIFIED`;
|