@webitel/api-services 0.0.92 → 0.0.93
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/_docs/html/assets/navigation.js +1 -1
- package/src/gen/_docs/html/assets/search.js +1 -1
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.api.gen.getPdfService.html +1 -1
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.msw.api.gen.getCreateCallExportMockHandler.html +1 -0
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.msw.api.gen.getCreateCallExportResponseMock.html +1 -0
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.msw.api.gen.getCreateScreenrecordingExportMockHandler.html +1 -0
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.msw.api.gen.getCreateScreenrecordingExportResponseMock.html +1 -0
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.msw.api.gen.getDeleteExportMockHandler.html +1 -0
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.msw.api.gen.getDeleteExportResponseMock.html +1 -0
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.msw.api.gen.getListCallExportsMockHandler.html +1 -0
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.msw.api.gen.getListCallExportsResponseMock.html +1 -0
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.msw.api.gen.getListScreenrecordingExportsMockHandler.html +1 -0
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.msw.api.gen.getListScreenrecordingExportsResponseMock.html +1 -0
- package/src/gen/_docs/html/interfaces/_models_webitelMediaExporterDeleteExportResponse.WebitelMediaExporterDeleteExportResponse.html +4 -0
- package/src/gen/_docs/html/interfaces/{_models_webitelMediaExporterPdfHistoryRecord.WebitelMediaExporterPdfHistoryRecord.html → _models_webitelMediaExporterExportRecord.WebitelMediaExporterExportRecord.html} +10 -10
- package/src/gen/_docs/html/interfaces/{_models_webitelMediaExporterPdfExportMetadata.WebitelMediaExporterPdfExportMetadata.html → _models_webitelMediaExporterExportTask.WebitelMediaExporterExportTask.html} +7 -7
- package/src/gen/_docs/html/interfaces/_models_webitelMediaExporterListExportsResponse.WebitelMediaExporterListExportsResponse.html +8 -0
- package/src/gen/_docs/html/interfaces/{_models_webitelMediaExporterPdfServiceGenerateCallPdfExportBody.WebitelMediaExporterPdfServiceGenerateCallPdfExportBody.html → _models_webitelMediaExporterPdfServiceCreateCallExportBody.WebitelMediaExporterPdfServiceCreateCallExportBody.html} +5 -8
- package/src/gen/_docs/html/interfaces/_models_webitelMediaExporterPdfServiceCreateScreenrecordingExportBody.WebitelMediaExporterPdfServiceCreateScreenrecordingExportBody.html +8 -0
- package/src/gen/_docs/html/modules/_models.html +1 -1
- package/src/gen/_docs/html/modules/_models_listCallExportsParams.html +1 -0
- package/src/gen/_docs/html/modules/_models_listScreenrecordingExportsParams.html +1 -0
- package/src/gen/_docs/html/modules/_models_webitelMediaExporterDeleteExportResponse.html +1 -0
- package/src/gen/_docs/html/modules/_models_webitelMediaExporterExportRecord.html +1 -0
- package/src/gen/_docs/html/modules/_models_webitelMediaExporterExportStatus.html +1 -0
- package/src/gen/_docs/html/modules/{_models_webitelMediaExporterPdfChannel.html → _models_webitelMediaExporterExportTask.html} +1 -1
- package/src/gen/_docs/html/modules/_models_webitelMediaExporterListExportsResponse.html +1 -0
- package/src/gen/_docs/html/modules/_models_webitelMediaExporterPdfServiceCreateCallExportBody.html +1 -0
- package/src/gen/_docs/html/modules/_models_webitelMediaExporterPdfServiceCreateScreenrecordingExportBody.html +1 -0
- package/src/gen/_docs/html/modules/index.html +1 -1
- package/src/gen/_docs/html/modules/pdf-service_pdf-service.api.gen.html +1 -1
- package/src/gen/_docs/html/modules/pdf-service_pdf-service.msw.api.gen.html +1 -1
- package/src/gen/_docs/html/modules/pdf-service_pdf-service.zod.gen.html +8 -7
- package/src/gen/_docs/html/modules.html +1 -1
- package/src/gen/_docs/html/types/{_models_getScreenrecordingPdfExportHistoryParams.GetScreenrecordingPdfExportHistoryParams.html → _models_listCallExportsParams.ListCallExportsParams.html} +4 -4
- package/src/gen/_docs/html/types/_models_listScreenrecordingExportsParams.ListScreenrecordingExportsParams.html +9 -0
- package/src/gen/_docs/html/types/_models_webitelMediaExporterExportStatus.WebitelMediaExporterExportStatus.html +8 -0
- package/src/gen/_docs/html/types/pdf-service_pdf-service.api.gen.CreateCallExportResult.html +1 -0
- package/src/gen/_docs/html/types/pdf-service_pdf-service.api.gen.CreateScreenrecordingExportResult.html +1 -0
- package/src/gen/_docs/html/types/pdf-service_pdf-service.api.gen.DeleteExportResult.html +1 -0
- package/src/gen/_docs/html/types/pdf-service_pdf-service.api.gen.ListCallExportsResult.html +1 -0
- package/src/gen/_docs/html/types/pdf-service_pdf-service.api.gen.ListScreenrecordingExportsResult.html +1 -0
- package/src/gen/_docs/html/variables/_models_webitelMediaExporterExportStatus.WebitelMediaExporterExportStatus.html +1 -0
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.createCallExportBody.html +1 -0
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.createCallExportParams.html +1 -0
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.createCallExportResponse.html +1 -0
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.createCallExportResponseStatusDefault.html +1 -0
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.createScreenrecordingExportBody.html +1 -0
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.createScreenrecordingExportParams.html +1 -0
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.createScreenrecordingExportResponse.html +1 -0
- package/src/gen/_docs/html/variables/{pdf-service_pdf-service.zod.gen.getScreenrecordingPdfExportHistoryResponseDataItemStatusDefault.html → pdf-service_pdf-service.zod.gen.createScreenrecordingExportResponseStatusDefault.html} +1 -1
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.deleteExportParams.html +1 -0
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.deleteExportResponse.html +1 -0
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.listCallExportsParams.html +1 -0
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.listCallExportsQueryParams.html +1 -0
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.listCallExportsResponse.html +1 -0
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.listCallExportsResponseItemsItemStatusDefault.html +1 -0
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.listScreenrecordingExportsParams.html +1 -0
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.listScreenrecordingExportsQueryParams.html +1 -0
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.listScreenrecordingExportsResponse.html +1 -0
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.listScreenrecordingExportsResponseItemsItemStatusDefault.html +1 -0
- package/src/gen/_models/index.ts +9 -13
- package/src/gen/_models/{getCallPdfHistoryParams.ts → listCallExportsParams.ts} +7 -1
- package/src/gen/_models/{getScreenrecordingPdfExportHistoryParams.ts → listScreenrecordingExportsParams.ts} +3 -3
- package/src/gen/_models/webitelMediaExporterDeleteExportResponse.ts +14 -0
- package/src/gen/_models/webitelMediaExporterExportRecord.ts +31 -0
- package/src/gen/_models/webitelMediaExporterExportStatus.ts +26 -0
- package/src/gen/_models/webitelMediaExporterExportTask.ts +23 -0
- package/src/gen/_models/webitelMediaExporterListExportsResponse.ts +19 -0
- package/src/gen/_models/webitelMediaExporterPdfServiceCreateCallExportBody.ts +18 -0
- package/src/gen/_models/webitelMediaExporterPdfServiceCreateScreenrecordingExportBody.ts +18 -0
- package/src/gen/index.ts +3 -3
- package/src/gen/pdf-service/pdf-service.api.gen.ts +47 -59
- package/src/gen/pdf-service/pdf-service.msw.api.gen.ts +29 -45
- package/src/gen/pdf-service/pdf-service.zod.gen.ts +85 -104
- package/types/gen/_models/{getScreenrecordingPdfExportHistoryParams.d.ts → listCallExportsParams.d.ts} +3 -3
- package/types/gen/_models/{getCallPdfHistoryParams.d.ts → listScreenrecordingExportsParams.d.ts} +7 -1
- package/types/gen/_models/webitelMediaExporterDeleteExportResponse.d.ts +13 -0
- package/types/gen/_models/webitelMediaExporterExportRecord.d.ts +30 -0
- package/types/gen/_models/webitelMediaExporterExportStatus.d.ts +22 -0
- package/types/gen/_models/webitelMediaExporterExportTask.d.ts +22 -0
- package/types/gen/_models/webitelMediaExporterListExportsResponse.d.ts +18 -0
- package/types/gen/_models/webitelMediaExporterPdfServiceCreateCallExportBody.d.ts +17 -0
- package/types/gen/_models/webitelMediaExporterPdfServiceCreateScreenrecordingExportBody.d.ts +17 -0
- package/types/gen/pdf-service/pdf-service.api.gen.d.ts +11 -13
- package/types/gen/pdf-service/pdf-service.msw.api.gen.d.ts +11 -13
- package/types/gen/pdf-service/pdf-service.zod.gen.d.ts +67 -75
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.msw.api.gen.getDeletePdfExportRecordMockHandler.html +0 -1
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.msw.api.gen.getDeletePdfExportRecordResponseMock.html +0 -1
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.msw.api.gen.getDownloadPdfExportMockHandler.html +0 -1
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.msw.api.gen.getDownloadPdfExportResponseMock.html +0 -1
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.msw.api.gen.getGenerateCallPdfExportMockHandler.html +0 -1
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.msw.api.gen.getGenerateCallPdfExportResponseMock.html +0 -1
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.msw.api.gen.getGenerateScreenrecordingPdfExportMockHandler.html +0 -1
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.msw.api.gen.getGenerateScreenrecordingPdfExportResponseMock.html +0 -1
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.msw.api.gen.getGetCallPdfHistoryMockHandler.html +0 -1
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.msw.api.gen.getGetCallPdfHistoryResponseMock.html +0 -1
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.msw.api.gen.getGetScreenrecordingPdfExportHistoryMockHandler.html +0 -1
- package/src/gen/_docs/html/functions/pdf-service_pdf-service.msw.api.gen.getGetScreenrecordingPdfExportHistoryResponseMock.html +0 -1
- package/src/gen/_docs/html/interfaces/_models_webitelMediaExporterDeletePdfExportRecordResponse.WebitelMediaExporterDeletePdfExportRecordResponse.html +0 -6
- package/src/gen/_docs/html/interfaces/_models_webitelMediaExporterPdfExportChunk.WebitelMediaExporterPdfExportChunk.html +0 -4
- package/src/gen/_docs/html/interfaces/_models_webitelMediaExporterPdfHistoryResponse.WebitelMediaExporterPdfHistoryResponse.html +0 -8
- package/src/gen/_docs/html/interfaces/_models_webitelMediaExporterPdfServiceGenerateScreenrecordingPdfExportBody.WebitelMediaExporterPdfServiceGenerateScreenrecordingPdfExportBody.html +0 -10
- package/src/gen/_docs/html/modules/_models_downloadPdfExport200.html +0 -1
- package/src/gen/_docs/html/modules/_models_downloadPdfExportParams.html +0 -1
- package/src/gen/_docs/html/modules/_models_getCallPdfHistoryParams.html +0 -1
- package/src/gen/_docs/html/modules/_models_getScreenrecordingPdfExportHistoryParams.html +0 -1
- package/src/gen/_docs/html/modules/_models_webitelMediaExporterDeletePdfExportRecordResponse.html +0 -1
- package/src/gen/_docs/html/modules/_models_webitelMediaExporterPdfExportChunk.html +0 -1
- package/src/gen/_docs/html/modules/_models_webitelMediaExporterPdfExportMetadata.html +0 -1
- package/src/gen/_docs/html/modules/_models_webitelMediaExporterPdfExportStatus.html +0 -1
- package/src/gen/_docs/html/modules/_models_webitelMediaExporterPdfHistoryRecord.html +0 -1
- package/src/gen/_docs/html/modules/_models_webitelMediaExporterPdfHistoryResponse.html +0 -1
- package/src/gen/_docs/html/modules/_models_webitelMediaExporterPdfServiceGenerateCallPdfExportBody.html +0 -1
- package/src/gen/_docs/html/modules/_models_webitelMediaExporterPdfServiceGenerateScreenrecordingPdfExportBody.html +0 -1
- package/src/gen/_docs/html/types/_models_downloadPdfExport200.DownloadPdfExport200.html +0 -3
- package/src/gen/_docs/html/types/_models_downloadPdfExportParams.DownloadPdfExportParams.html +0 -7
- package/src/gen/_docs/html/types/_models_getCallPdfHistoryParams.GetCallPdfHistoryParams.html +0 -7
- package/src/gen/_docs/html/types/_models_webitelMediaExporterPdfChannel.WebitelMediaExporterPdfChannel.html +0 -5
- package/src/gen/_docs/html/types/_models_webitelMediaExporterPdfExportStatus.WebitelMediaExporterPdfExportStatus.html +0 -9
- package/src/gen/_docs/html/types/pdf-service_pdf-service.api.gen.DeletePdfExportRecordResult.html +0 -1
- package/src/gen/_docs/html/types/pdf-service_pdf-service.api.gen.DownloadPdfExportResult.html +0 -1
- package/src/gen/_docs/html/types/pdf-service_pdf-service.api.gen.GenerateCallPdfExportResult.html +0 -1
- package/src/gen/_docs/html/types/pdf-service_pdf-service.api.gen.GenerateScreenrecordingPdfExportResult.html +0 -1
- package/src/gen/_docs/html/types/pdf-service_pdf-service.api.gen.GetCallPdfHistoryResult.html +0 -1
- package/src/gen/_docs/html/types/pdf-service_pdf-service.api.gen.GetScreenrecordingPdfExportHistoryResult.html +0 -1
- package/src/gen/_docs/html/variables/_models_webitelMediaExporterPdfChannel.WebitelMediaExporterPdfChannel.html +0 -1
- package/src/gen/_docs/html/variables/_models_webitelMediaExporterPdfExportStatus.WebitelMediaExporterPdfExportStatus.html +0 -1
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.deletePdfExportRecordParams.html +0 -1
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.deletePdfExportRecordResponse.html +0 -1
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.downloadPdfExportParams.html +0 -1
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.downloadPdfExportQueryParams.html +0 -1
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.downloadPdfExportResponse.html +0 -1
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.generateCallPdfExportBody.html +0 -1
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.generateCallPdfExportParams.html +0 -1
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.generateCallPdfExportResponse.html +0 -1
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.generateScreenrecordingPdfExportBody.html +0 -1
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.generateScreenrecordingPdfExportBodyChannelDefault.html +0 -1
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.generateScreenrecordingPdfExportParams.html +0 -1
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.generateScreenrecordingPdfExportResponse.html +0 -1
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.getCallPdfHistoryParams.html +0 -1
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.getCallPdfHistoryQueryParams.html +0 -1
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.getCallPdfHistoryResponse.html +0 -1
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.getCallPdfHistoryResponseDataItemStatusDefault.html +0 -1
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.getScreenrecordingPdfExportHistoryParams.html +0 -1
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.getScreenrecordingPdfExportHistoryQueryParams.html +0 -1
- package/src/gen/_docs/html/variables/pdf-service_pdf-service.zod.gen.getScreenrecordingPdfExportHistoryResponse.html +0 -1
- package/src/gen/_models/downloadPdfExport200.ts +0 -13
- package/src/gen/_models/downloadPdfExportParams.ts +0 -13
- package/src/gen/_models/webitelMediaExporterDeletePdfExportRecordResponse.ts +0 -10
- package/src/gen/_models/webitelMediaExporterPdfChannel.ts +0 -15
- package/src/gen/_models/webitelMediaExporterPdfExportChunk.ts +0 -14
- package/src/gen/_models/webitelMediaExporterPdfExportMetadata.ts +0 -22
- package/src/gen/_models/webitelMediaExporterPdfExportStatus.ts +0 -27
- package/src/gen/_models/webitelMediaExporterPdfHistoryRecord.ts +0 -31
- package/src/gen/_models/webitelMediaExporterPdfHistoryResponse.ts +0 -19
- package/src/gen/_models/webitelMediaExporterPdfServiceGenerateCallPdfExportBody.ts +0 -15
- package/src/gen/_models/webitelMediaExporterPdfServiceGenerateScreenrecordingPdfExportBody.ts +0 -21
- package/types/gen/_models/downloadPdfExport200.d.ts +0 -12
- package/types/gen/_models/downloadPdfExportParams.d.ts +0 -12
- package/types/gen/_models/webitelMediaExporterDeletePdfExportRecordResponse.d.ts +0 -9
- package/types/gen/_models/webitelMediaExporterPdfChannel.d.ts +0 -11
- package/types/gen/_models/webitelMediaExporterPdfExportChunk.d.ts +0 -13
- package/types/gen/_models/webitelMediaExporterPdfExportMetadata.d.ts +0 -21
- package/types/gen/_models/webitelMediaExporterPdfExportStatus.d.ts +0 -23
- package/types/gen/_models/webitelMediaExporterPdfHistoryRecord.d.ts +0 -30
- package/types/gen/_models/webitelMediaExporterPdfHistoryResponse.d.ts +0 -18
- package/types/gen/_models/webitelMediaExporterPdfServiceGenerateCallPdfExportBody.d.ts +0 -14
- package/types/gen/_models/webitelMediaExporterPdfServiceGenerateScreenrecordingPdfExportBody.d.ts +0 -20
|
@@ -12,15 +12,13 @@ import type {
|
|
|
12
12
|
} from 'axios';
|
|
13
13
|
|
|
14
14
|
import type {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
WebitelMediaExporterPdfServiceGenerateCallPdfExportBody,
|
|
23
|
-
WebitelMediaExporterPdfServiceGenerateScreenrecordingPdfExportBody
|
|
15
|
+
ListCallExportsParams,
|
|
16
|
+
ListScreenrecordingExportsParams,
|
|
17
|
+
WebitelMediaExporterDeleteExportResponse,
|
|
18
|
+
WebitelMediaExporterExportTask,
|
|
19
|
+
WebitelMediaExporterListExportsResponse,
|
|
20
|
+
WebitelMediaExporterPdfServiceCreateCallExportBody,
|
|
21
|
+
WebitelMediaExporterPdfServiceCreateScreenrecordingExportBody
|
|
24
22
|
} from '.././_models';
|
|
25
23
|
|
|
26
24
|
|
|
@@ -36,85 +34,75 @@ import type {
|
|
|
36
34
|
|
|
37
35
|
// --- header end
|
|
38
36
|
/**
|
|
39
|
-
* @summary
|
|
37
|
+
* @summary Lists the history of PDF exports for a specific agent.
|
|
40
38
|
*/
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
): Promise<TData> => {
|
|
45
|
-
return axios.post(
|
|
46
|
-
`/export/pdf/call/${callId}`,
|
|
47
|
-
webitelMediaExporterPdfServiceGenerateCallPdfExportBody,options
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* @summary Get history of PDF exports for a specific Call.
|
|
52
|
-
*/
|
|
53
|
-
const getCallPdfHistory = <TData = AxiosResponse<WebitelMediaExporterPdfHistoryResponse>>(
|
|
54
|
-
callId: string,
|
|
55
|
-
params?: GetCallPdfHistoryParams, options?: AxiosRequestConfig
|
|
39
|
+
const listScreenrecordingExports = <TData = AxiosResponse<WebitelMediaExporterListExportsResponse>>(
|
|
40
|
+
agentId: string,
|
|
41
|
+
params?: ListScreenrecordingExportsParams, options?: AxiosRequestConfig
|
|
56
42
|
): Promise<TData> => {
|
|
57
43
|
return axios.get(
|
|
58
|
-
`/
|
|
44
|
+
`/agents/${agentId}/exports/pdf/screenrecordings`,{
|
|
59
45
|
...options,
|
|
60
46
|
params: {...params, ...options?.params},}
|
|
61
47
|
);
|
|
62
48
|
}
|
|
63
|
-
const deletePdfExportRecord = <TData = AxiosResponse<WebitelMediaExporterDeletePdfExportRecordResponse>>(
|
|
64
|
-
id: string, options?: AxiosRequestConfig
|
|
65
|
-
): Promise<TData> => {
|
|
66
|
-
return axios.delete(
|
|
67
|
-
`/export/pdf/history/${id}`,options
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
49
|
/**
|
|
71
|
-
* @summary
|
|
72
|
-
|
|
50
|
+
* @summary Creates a new task to generate a PDF export for an agent's screen recordings.
|
|
51
|
+
This operation is asynchronous and returns a task metadata.
|
|
73
52
|
*/
|
|
74
|
-
const
|
|
53
|
+
const createScreenrecordingExport = <TData = AxiosResponse<WebitelMediaExporterExportTask>>(
|
|
75
54
|
agentId: string,
|
|
76
|
-
|
|
55
|
+
webitelMediaExporterPdfServiceCreateScreenrecordingExportBody: WebitelMediaExporterPdfServiceCreateScreenrecordingExportBody, options?: AxiosRequestConfig
|
|
77
56
|
): Promise<TData> => {
|
|
78
57
|
return axios.post(
|
|
79
|
-
`/
|
|
80
|
-
|
|
58
|
+
`/agents/${agentId}/exports/pdf/screenrecordings`,
|
|
59
|
+
webitelMediaExporterPdfServiceCreateScreenrecordingExportBody,options
|
|
81
60
|
);
|
|
82
61
|
}
|
|
83
62
|
/**
|
|
84
|
-
* @summary
|
|
63
|
+
* @summary Lists the history of PDF exports for a specific call ID.
|
|
85
64
|
*/
|
|
86
|
-
const
|
|
87
|
-
|
|
88
|
-
params?:
|
|
65
|
+
const listCallExports = <TData = AxiosResponse<WebitelMediaExporterListExportsResponse>>(
|
|
66
|
+
callId: string,
|
|
67
|
+
params?: ListCallExportsParams, options?: AxiosRequestConfig
|
|
89
68
|
): Promise<TData> => {
|
|
90
69
|
return axios.get(
|
|
91
|
-
`/
|
|
70
|
+
`/calls/${callId}/exports/pdf`,{
|
|
92
71
|
...options,
|
|
93
72
|
params: {...params, ...options?.params},}
|
|
94
73
|
);
|
|
95
74
|
}
|
|
96
75
|
/**
|
|
97
|
-
* @summary
|
|
76
|
+
* @summary Creates a new task to generate a PDF export for a specific call.
|
|
77
|
+
Useful for documenting call transcripts or associated media.
|
|
98
78
|
*/
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
|
|
79
|
+
const createCallExport = <TData = AxiosResponse<WebitelMediaExporterExportTask>>(
|
|
80
|
+
callId: string,
|
|
81
|
+
webitelMediaExporterPdfServiceCreateCallExportBody: WebitelMediaExporterPdfServiceCreateCallExportBody, options?: AxiosRequestConfig
|
|
102
82
|
): Promise<TData> => {
|
|
103
|
-
return axios.
|
|
104
|
-
`/
|
|
105
|
-
|
|
106
|
-
|
|
83
|
+
return axios.post(
|
|
84
|
+
`/calls/${callId}/exports/pdf`,
|
|
85
|
+
webitelMediaExporterPdfServiceCreateCallExportBody,options
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* @summary Deletes a specific export record from the history.
|
|
90
|
+
*/
|
|
91
|
+
const deleteExport = <TData = AxiosResponse<WebitelMediaExporterDeleteExportResponse>>(
|
|
92
|
+
id: string, options?: AxiosRequestConfig
|
|
93
|
+
): Promise<TData> => {
|
|
94
|
+
return axios.delete(
|
|
95
|
+
`/exports/pdf/history/${id}`,options
|
|
107
96
|
);
|
|
108
97
|
}
|
|
109
98
|
|
|
110
99
|
// --- footer start
|
|
111
|
-
return {
|
|
112
|
-
export type
|
|
113
|
-
export type
|
|
114
|
-
export type
|
|
115
|
-
export type
|
|
116
|
-
export type
|
|
117
|
-
export type DownloadPdfExportResult = AxiosResponse<DownloadPdfExport200>
|
|
100
|
+
return {listScreenrecordingExports,createScreenrecordingExport,listCallExports,createCallExport,deleteExport}};
|
|
101
|
+
export type ListScreenrecordingExportsResult = AxiosResponse<WebitelMediaExporterListExportsResponse>
|
|
102
|
+
export type CreateScreenrecordingExportResult = AxiosResponse<WebitelMediaExporterExportTask>
|
|
103
|
+
export type ListCallExportsResult = AxiosResponse<WebitelMediaExporterListExportsResponse>
|
|
104
|
+
export type CreateCallExportResult = AxiosResponse<WebitelMediaExporterExportTask>
|
|
105
|
+
export type DeleteExportResult = AxiosResponse<WebitelMediaExporterDeleteExportResponse>
|
|
118
106
|
|
|
119
107
|
// --- footer end
|
|
120
108
|
|
|
@@ -18,104 +18,88 @@ import type {
|
|
|
18
18
|
} from 'msw';
|
|
19
19
|
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
WebitelMediaExporterExportStatus
|
|
22
22
|
} from '.././_models';
|
|
23
23
|
import type {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
WebitelMediaExporterPdfHistoryResponse
|
|
24
|
+
WebitelMediaExporterDeleteExportResponse,
|
|
25
|
+
WebitelMediaExporterExportTask,
|
|
26
|
+
WebitelMediaExporterListExportsResponse
|
|
28
27
|
} from '.././_models';
|
|
29
28
|
|
|
30
29
|
|
|
31
|
-
export const
|
|
30
|
+
export const getListScreenrecordingExportsResponseMock = (overrideResponse: Partial< WebitelMediaExporterListExportsResponse > = {}): WebitelMediaExporterListExportsResponse => ({items: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({createdAt: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), createdBy: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), fileId: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), id: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), mimeType: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), name: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), status: faker.helpers.arrayElement([faker.helpers.arrayElement(Object.values(WebitelMediaExporterExportStatus)), undefined]), updatedAt: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), updatedBy: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined])})), undefined]), next: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), page: faker.helpers.arrayElement([faker.number.int({min: undefined, max: undefined}), undefined]), ...overrideResponse})
|
|
32
31
|
|
|
33
|
-
export const
|
|
32
|
+
export const getCreateScreenrecordingExportResponseMock = (overrideResponse: Partial< WebitelMediaExporterExportTask > = {}): WebitelMediaExporterExportTask => ({fileName: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), mimeType: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), size: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), status: faker.helpers.arrayElement([faker.helpers.arrayElement(Object.values(WebitelMediaExporterExportStatus)), undefined]), taskId: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), ...overrideResponse})
|
|
34
33
|
|
|
35
|
-
export const
|
|
34
|
+
export const getListCallExportsResponseMock = (overrideResponse: Partial< WebitelMediaExporterListExportsResponse > = {}): WebitelMediaExporterListExportsResponse => ({items: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({createdAt: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), createdBy: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), fileId: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), id: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), mimeType: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), name: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), status: faker.helpers.arrayElement([faker.helpers.arrayElement(Object.values(WebitelMediaExporterExportStatus)), undefined]), updatedAt: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), updatedBy: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined])})), undefined]), next: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), page: faker.helpers.arrayElement([faker.number.int({min: undefined, max: undefined}), undefined]), ...overrideResponse})
|
|
36
35
|
|
|
37
|
-
export const
|
|
36
|
+
export const getCreateCallExportResponseMock = (overrideResponse: Partial< WebitelMediaExporterExportTask > = {}): WebitelMediaExporterExportTask => ({fileName: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), mimeType: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), size: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), status: faker.helpers.arrayElement([faker.helpers.arrayElement(Object.values(WebitelMediaExporterExportStatus)), undefined]), taskId: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), ...overrideResponse})
|
|
38
37
|
|
|
39
|
-
export const
|
|
38
|
+
export const getDeleteExportResponseMock = (overrideResponse: Partial< WebitelMediaExporterDeleteExportResponse > = {}): WebitelMediaExporterDeleteExportResponse => ({id: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), ...overrideResponse})
|
|
40
39
|
|
|
41
|
-
export const getDownloadPdfExportResponseMock = (overrideResponse: Partial< DownloadPdfExport200 > = {}): DownloadPdfExport200 => ({error: faker.helpers.arrayElement([{code: faker.helpers.arrayElement([faker.number.int({min: undefined, max: undefined}), undefined]), details: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({'@type': faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined])})), undefined]), message: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined])}, undefined]), result: faker.helpers.arrayElement([{data: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined])}, undefined]), ...overrideResponse})
|
|
42
40
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
return http.post('*/export/pdf/call/:callId', async (info) => {await delay(1000);
|
|
46
|
-
|
|
47
|
-
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
48
|
-
? (typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse)
|
|
49
|
-
: getGenerateCallPdfExportResponseMock()),
|
|
50
|
-
{ status: 200,
|
|
51
|
-
headers: { 'Content-Type': 'application/json' }
|
|
52
|
-
})
|
|
53
|
-
}, options)
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export const getGetCallPdfHistoryMockHandler = (overrideResponse?: WebitelMediaExporterPdfHistoryResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<WebitelMediaExporterPdfHistoryResponse> | WebitelMediaExporterPdfHistoryResponse), options?: RequestHandlerOptions) => {
|
|
57
|
-
return http.get('*/export/pdf/call/:callId/history', async (info) => {await delay(1000);
|
|
41
|
+
export const getListScreenrecordingExportsMockHandler = (overrideResponse?: WebitelMediaExporterListExportsResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<WebitelMediaExporterListExportsResponse> | WebitelMediaExporterListExportsResponse), options?: RequestHandlerOptions) => {
|
|
42
|
+
return http.get('*/agents/:agentId/exports/pdf/screenrecordings', async (info) => {await delay(1000);
|
|
58
43
|
|
|
59
44
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
60
45
|
? (typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse)
|
|
61
|
-
:
|
|
46
|
+
: getListScreenrecordingExportsResponseMock()),
|
|
62
47
|
{ status: 200,
|
|
63
48
|
headers: { 'Content-Type': 'application/json' }
|
|
64
49
|
})
|
|
65
50
|
}, options)
|
|
66
51
|
}
|
|
67
52
|
|
|
68
|
-
export const
|
|
69
|
-
return http.
|
|
53
|
+
export const getCreateScreenrecordingExportMockHandler = (overrideResponse?: WebitelMediaExporterExportTask | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<WebitelMediaExporterExportTask> | WebitelMediaExporterExportTask), options?: RequestHandlerOptions) => {
|
|
54
|
+
return http.post('*/agents/:agentId/exports/pdf/screenrecordings', async (info) => {await delay(1000);
|
|
70
55
|
|
|
71
56
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
72
57
|
? (typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse)
|
|
73
|
-
:
|
|
58
|
+
: getCreateScreenrecordingExportResponseMock()),
|
|
74
59
|
{ status: 200,
|
|
75
60
|
headers: { 'Content-Type': 'application/json' }
|
|
76
61
|
})
|
|
77
62
|
}, options)
|
|
78
63
|
}
|
|
79
64
|
|
|
80
|
-
export const
|
|
81
|
-
return http.
|
|
65
|
+
export const getListCallExportsMockHandler = (overrideResponse?: WebitelMediaExporterListExportsResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<WebitelMediaExporterListExportsResponse> | WebitelMediaExporterListExportsResponse), options?: RequestHandlerOptions) => {
|
|
66
|
+
return http.get('*/calls/:callId/exports/pdf', async (info) => {await delay(1000);
|
|
82
67
|
|
|
83
68
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
84
69
|
? (typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse)
|
|
85
|
-
:
|
|
70
|
+
: getListCallExportsResponseMock()),
|
|
86
71
|
{ status: 200,
|
|
87
72
|
headers: { 'Content-Type': 'application/json' }
|
|
88
73
|
})
|
|
89
74
|
}, options)
|
|
90
75
|
}
|
|
91
76
|
|
|
92
|
-
export const
|
|
93
|
-
return http.
|
|
77
|
+
export const getCreateCallExportMockHandler = (overrideResponse?: WebitelMediaExporterExportTask | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<WebitelMediaExporterExportTask> | WebitelMediaExporterExportTask), options?: RequestHandlerOptions) => {
|
|
78
|
+
return http.post('*/calls/:callId/exports/pdf', async (info) => {await delay(1000);
|
|
94
79
|
|
|
95
80
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
96
81
|
? (typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse)
|
|
97
|
-
:
|
|
82
|
+
: getCreateCallExportResponseMock()),
|
|
98
83
|
{ status: 200,
|
|
99
84
|
headers: { 'Content-Type': 'application/json' }
|
|
100
85
|
})
|
|
101
86
|
}, options)
|
|
102
87
|
}
|
|
103
88
|
|
|
104
|
-
export const
|
|
105
|
-
return http.
|
|
89
|
+
export const getDeleteExportMockHandler = (overrideResponse?: WebitelMediaExporterDeleteExportResponse | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<WebitelMediaExporterDeleteExportResponse> | WebitelMediaExporterDeleteExportResponse), options?: RequestHandlerOptions) => {
|
|
90
|
+
return http.delete('*/exports/pdf/history/:id', async (info) => {await delay(1000);
|
|
106
91
|
|
|
107
92
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
108
93
|
? (typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse)
|
|
109
|
-
:
|
|
94
|
+
: getDeleteExportResponseMock()),
|
|
110
95
|
{ status: 200,
|
|
111
96
|
headers: { 'Content-Type': 'application/json' }
|
|
112
97
|
})
|
|
113
98
|
}, options)
|
|
114
99
|
}
|
|
115
100
|
export const getPdfServiceMock = () => [
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
getDownloadPdfExportMockHandler()]
|
|
101
|
+
getListScreenrecordingExportsMockHandler(),
|
|
102
|
+
getCreateScreenrecordingExportMockHandler(),
|
|
103
|
+
getListCallExportsMockHandler(),
|
|
104
|
+
getCreateCallExportMockHandler(),
|
|
105
|
+
getDeleteExportMockHandler()]
|
|
@@ -8,140 +8,121 @@ import * as zod from 'zod/v4';
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* @summary
|
|
11
|
+
* @summary Lists the history of PDF exports for a specific agent.
|
|
12
12
|
*/
|
|
13
|
-
export const
|
|
14
|
-
"
|
|
15
|
-
})
|
|
16
|
-
|
|
17
|
-
export const generateCallPdfExportBody = zod.object({
|
|
18
|
-
"fileIds": zod.array(zod.string()).optional().describe('Optional list of specific file IDs to include.'),
|
|
19
|
-
"from": zod.string().optional().describe('Start timestamp (Unix millis).'),
|
|
20
|
-
"to": zod.string().optional().describe('End timestamp (Unix millis).')
|
|
21
|
-
})
|
|
22
|
-
|
|
23
|
-
export const generateCallPdfExportResponse = zod.object({
|
|
24
|
-
"fileName": zod.string().optional().describe('File name of the export.'),
|
|
25
|
-
"mimeType": zod.string().optional().describe('MIME type, e.g., \"application/pdf\".'),
|
|
26
|
-
"size": zod.string().optional().describe('File size in bytes (0 if not ready).'),
|
|
27
|
-
"status": zod.string().optional().describe('Task status: pending | processing | done | failed.'),
|
|
28
|
-
"taskId": zod.string().optional().describe('Unique identifier of the task.')
|
|
29
|
-
}).describe('Metadata about a PDF export task.')
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* @summary Get history of PDF exports for a specific Call.
|
|
33
|
-
*/
|
|
34
|
-
export const getCallPdfHistoryParams = zod.object({
|
|
35
|
-
"call_id": zod.string()
|
|
13
|
+
export const listScreenrecordingExportsParams = zod.object({
|
|
14
|
+
"agent_id": zod.string()
|
|
36
15
|
})
|
|
37
16
|
|
|
38
|
-
export const
|
|
39
|
-
"page": zod.number().optional(),
|
|
40
|
-
"size": zod.number().optional()
|
|
17
|
+
export const listScreenrecordingExportsQueryParams = zod.object({
|
|
18
|
+
"page": zod.number().optional().describe('Page number (1-based).'),
|
|
19
|
+
"size": zod.number().optional().describe('Number of items per page.')
|
|
41
20
|
})
|
|
42
21
|
|
|
43
|
-
export const
|
|
22
|
+
export const listScreenrecordingExportsResponseItemsItemStatusDefault = "EXPORT_STATUS_UNSPECIFIED";
|
|
44
23
|
|
|
45
|
-
export const
|
|
46
|
-
"
|
|
24
|
+
export const listScreenrecordingExportsResponse = zod.object({
|
|
25
|
+
"items": zod.array(zod.object({
|
|
47
26
|
"createdAt": zod.string().optional().describe('Creation timestamp (Unix millis).'),
|
|
48
|
-
"createdBy": zod.string().optional().describe('User ID who
|
|
49
|
-
"fileId": zod.string().optional().describe('
|
|
50
|
-
"id": zod.string().optional().describe('
|
|
51
|
-
"mimeType": zod.string().optional().describe('MIME type of the
|
|
52
|
-
"name": zod.string().optional().describe('
|
|
53
|
-
"status": zod.enum(['
|
|
54
|
-
"updatedAt": zod.string().optional().describe('
|
|
55
|
-
"updatedBy": zod.string().optional().describe('User ID who last
|
|
56
|
-
}).describe('Represents a
|
|
57
|
-
"next": zod.boolean().optional().describe('
|
|
27
|
+
"createdBy": zod.string().optional().describe('User ID who initiated the export.'),
|
|
28
|
+
"fileId": zod.string().optional().describe('Reference to the file in the storage system.'),
|
|
29
|
+
"id": zod.string().optional().describe('Internal database record ID.'),
|
|
30
|
+
"mimeType": zod.string().optional().describe('MIME type of the generated file.'),
|
|
31
|
+
"name": zod.string().optional().describe('Display name of the export.'),
|
|
32
|
+
"status": zod.enum(['EXPORT_STATUS_UNSPECIFIED', 'PENDING', 'PROCESSING', 'DONE', 'FAILED']).default(listScreenrecordingExportsResponseItemsItemStatusDefault).describe('Status of the PDF generation process.\n\n - PENDING: Task is queued and waiting for a worker.\n - PROCESSING: PDF is currently being rendered.\n - DONE: Export finished successfully.\n - FAILED: Export failed during generation.'),
|
|
33
|
+
"updatedAt": zod.string().optional().describe('Last update timestamp (Unix millis).'),
|
|
34
|
+
"updatedBy": zod.string().optional().describe('User ID who last modified the record.')
|
|
35
|
+
}).describe('Represents a persisted record of a PDF export.')).optional().describe('List of export records.'),
|
|
36
|
+
"next": zod.boolean().optional().describe('Indicates if there are more records available.'),
|
|
58
37
|
"page": zod.number().optional().describe('Current page number.')
|
|
59
|
-
}).describe('Response containing a page of export history.')
|
|
60
|
-
|
|
61
|
-
export const deletePdfExportRecordParams = zod.object({
|
|
62
|
-
"id": zod.string()
|
|
63
|
-
})
|
|
64
|
-
|
|
65
|
-
export const deletePdfExportRecordResponse = zod.object({
|
|
66
|
-
"id": zod.string().optional()
|
|
67
|
-
})
|
|
38
|
+
}).describe('Response containing a page of export history records.')
|
|
68
39
|
|
|
69
40
|
/**
|
|
70
|
-
* @summary
|
|
71
|
-
|
|
41
|
+
* @summary Creates a new task to generate a PDF export for an agent's screen recordings.
|
|
42
|
+
This operation is asynchronous and returns a task metadata.
|
|
72
43
|
*/
|
|
73
|
-
export const
|
|
74
|
-
"agent_id": zod.string().describe('
|
|
44
|
+
export const createScreenrecordingExportParams = zod.object({
|
|
45
|
+
"agent_id": zod.string().describe('Unique identifier of the agent.')
|
|
75
46
|
})
|
|
76
47
|
|
|
77
|
-
export const
|
|
48
|
+
export const createScreenrecordingExportBody = zod.object({
|
|
49
|
+
"fileIds": zod.array(zod.string()).optional().describe('Optional: specific file IDs to include in the PDF.'),
|
|
50
|
+
"from": zod.string().optional().describe('Start timestamp of the range (Unix millis).'),
|
|
51
|
+
"to": zod.string().optional().describe('End timestamp of the range (Unix millis).')
|
|
52
|
+
}).describe('Request for generating a screen recording PDF.')
|
|
78
53
|
|
|
79
|
-
export const
|
|
80
|
-
"channel": zod.enum(['CALL', 'SCREENRECORDING']).default(generateScreenrecordingPdfExportBodyChannelDefault),
|
|
81
|
-
"fileIds": zod.array(zod.string()).optional().describe('Optional list of specific file IDs to include.'),
|
|
82
|
-
"from": zod.string().optional().describe('Start timestamp (Unix millis).'),
|
|
83
|
-
"to": zod.string().optional().describe('End timestamp (Unix millis).')
|
|
84
|
-
}).describe('Request for generating a PDF export.')
|
|
54
|
+
export const createScreenrecordingExportResponseStatusDefault = "EXPORT_STATUS_UNSPECIFIED";
|
|
85
55
|
|
|
86
|
-
export const
|
|
87
|
-
"fileName": zod.string().optional().describe('
|
|
88
|
-
"mimeType": zod.string().optional().describe('MIME type
|
|
89
|
-
"size": zod.string().optional().describe('File size in bytes (0 if not
|
|
90
|
-
"status": zod.
|
|
91
|
-
"taskId": zod.string().optional().describe('Unique
|
|
92
|
-
}).describe('Metadata about
|
|
56
|
+
export const createScreenrecordingExportResponse = zod.object({
|
|
57
|
+
"fileName": zod.string().optional().describe('Target name of the PDF file.'),
|
|
58
|
+
"mimeType": zod.string().optional().describe('MIME type (usually application/pdf).'),
|
|
59
|
+
"size": zod.string().optional().describe('File size in bytes (0 if not yet generated).'),
|
|
60
|
+
"status": zod.enum(['EXPORT_STATUS_UNSPECIFIED', 'PENDING', 'PROCESSING', 'DONE', 'FAILED']).default(createScreenrecordingExportResponseStatusDefault).describe('Status of the PDF generation process.\n\n - PENDING: Task is queued and waiting for a worker.\n - PROCESSING: PDF is currently being rendered.\n - DONE: Export finished successfully.\n - FAILED: Export failed during generation.'),
|
|
61
|
+
"taskId": zod.string().optional().describe('Unique ID to track the background task.')
|
|
62
|
+
}).describe('Metadata about an export task immediately after creation.')
|
|
93
63
|
|
|
94
64
|
/**
|
|
95
|
-
* @summary
|
|
65
|
+
* @summary Lists the history of PDF exports for a specific call ID.
|
|
96
66
|
*/
|
|
97
|
-
export const
|
|
98
|
-
"
|
|
67
|
+
export const listCallExportsParams = zod.object({
|
|
68
|
+
"call_id": zod.string()
|
|
99
69
|
})
|
|
100
70
|
|
|
101
|
-
export const
|
|
102
|
-
"page": zod.number().optional().describe('Page number (
|
|
103
|
-
"size": zod.number().optional().describe('
|
|
71
|
+
export const listCallExportsQueryParams = zod.object({
|
|
72
|
+
"page": zod.number().optional().describe('Page number (1-based).'),
|
|
73
|
+
"size": zod.number().optional().describe('Number of items per page.')
|
|
104
74
|
})
|
|
105
75
|
|
|
106
|
-
export const
|
|
76
|
+
export const listCallExportsResponseItemsItemStatusDefault = "EXPORT_STATUS_UNSPECIFIED";
|
|
107
77
|
|
|
108
|
-
export const
|
|
109
|
-
"
|
|
78
|
+
export const listCallExportsResponse = zod.object({
|
|
79
|
+
"items": zod.array(zod.object({
|
|
110
80
|
"createdAt": zod.string().optional().describe('Creation timestamp (Unix millis).'),
|
|
111
|
-
"createdBy": zod.string().optional().describe('User ID who
|
|
112
|
-
"fileId": zod.string().optional().describe('
|
|
113
|
-
"id": zod.string().optional().describe('
|
|
114
|
-
"mimeType": zod.string().optional().describe('MIME type of the
|
|
115
|
-
"name": zod.string().optional().describe('
|
|
116
|
-
"status": zod.enum(['
|
|
117
|
-
"updatedAt": zod.string().optional().describe('
|
|
118
|
-
"updatedBy": zod.string().optional().describe('User ID who last
|
|
119
|
-
}).describe('Represents a
|
|
120
|
-
"next": zod.boolean().optional().describe('
|
|
81
|
+
"createdBy": zod.string().optional().describe('User ID who initiated the export.'),
|
|
82
|
+
"fileId": zod.string().optional().describe('Reference to the file in the storage system.'),
|
|
83
|
+
"id": zod.string().optional().describe('Internal database record ID.'),
|
|
84
|
+
"mimeType": zod.string().optional().describe('MIME type of the generated file.'),
|
|
85
|
+
"name": zod.string().optional().describe('Display name of the export.'),
|
|
86
|
+
"status": zod.enum(['EXPORT_STATUS_UNSPECIFIED', 'PENDING', 'PROCESSING', 'DONE', 'FAILED']).default(listCallExportsResponseItemsItemStatusDefault).describe('Status of the PDF generation process.\n\n - PENDING: Task is queued and waiting for a worker.\n - PROCESSING: PDF is currently being rendered.\n - DONE: Export finished successfully.\n - FAILED: Export failed during generation.'),
|
|
87
|
+
"updatedAt": zod.string().optional().describe('Last update timestamp (Unix millis).'),
|
|
88
|
+
"updatedBy": zod.string().optional().describe('User ID who last modified the record.')
|
|
89
|
+
}).describe('Represents a persisted record of a PDF export.')).optional().describe('List of export records.'),
|
|
90
|
+
"next": zod.boolean().optional().describe('Indicates if there are more records available.'),
|
|
121
91
|
"page": zod.number().optional().describe('Current page number.')
|
|
122
|
-
}).describe('Response containing a page of export history.')
|
|
92
|
+
}).describe('Response containing a page of export history records.')
|
|
123
93
|
|
|
124
94
|
/**
|
|
125
|
-
* @summary
|
|
95
|
+
* @summary Creates a new task to generate a PDF export for a specific call.
|
|
96
|
+
Useful for documenting call transcripts or associated media.
|
|
126
97
|
*/
|
|
127
|
-
export const
|
|
128
|
-
"
|
|
98
|
+
export const createCallExportParams = zod.object({
|
|
99
|
+
"call_id": zod.string().describe('Unique identifier of the call.')
|
|
129
100
|
})
|
|
130
101
|
|
|
131
|
-
export const
|
|
132
|
-
"
|
|
133
|
-
|
|
102
|
+
export const createCallExportBody = zod.object({
|
|
103
|
+
"fileIds": zod.array(zod.string()).optional().describe('Optional: specific file IDs to include in the PDF.'),
|
|
104
|
+
"from": zod.string().optional().describe('Start timestamp of the range (Unix millis).'),
|
|
105
|
+
"to": zod.string().optional().describe('End timestamp of the range (Unix millis).')
|
|
106
|
+
}).describe('Request for generating a call media PDF.')
|
|
134
107
|
|
|
135
|
-
export const
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
|
|
141
|
-
"
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
108
|
+
export const createCallExportResponseStatusDefault = "EXPORT_STATUS_UNSPECIFIED";
|
|
109
|
+
|
|
110
|
+
export const createCallExportResponse = zod.object({
|
|
111
|
+
"fileName": zod.string().optional().describe('Target name of the PDF file.'),
|
|
112
|
+
"mimeType": zod.string().optional().describe('MIME type (usually application/pdf).'),
|
|
113
|
+
"size": zod.string().optional().describe('File size in bytes (0 if not yet generated).'),
|
|
114
|
+
"status": zod.enum(['EXPORT_STATUS_UNSPECIFIED', 'PENDING', 'PROCESSING', 'DONE', 'FAILED']).default(createCallExportResponseStatusDefault).describe('Status of the PDF generation process.\n\n - PENDING: Task is queued and waiting for a worker.\n - PROCESSING: PDF is currently being rendered.\n - DONE: Export finished successfully.\n - FAILED: Export failed during generation.'),
|
|
115
|
+
"taskId": zod.string().optional().describe('Unique ID to track the background task.')
|
|
116
|
+
}).describe('Metadata about an export task immediately after creation.')
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* @summary Deletes a specific export record from the history.
|
|
120
|
+
*/
|
|
121
|
+
export const deleteExportParams = zod.object({
|
|
122
|
+
"id": zod.string().describe('ID of the record to remove.')
|
|
146
123
|
})
|
|
147
124
|
|
|
125
|
+
export const deleteExportResponse = zod.object({
|
|
126
|
+
"id": zod.string().optional().describe('ID of the deleted record.')
|
|
127
|
+
}).describe('Response confirming the deletion of a record.')
|
|
128
|
+
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
* Webitel API
|
|
5
5
|
* OpenAPI spec version: 24.04.0
|
|
6
6
|
*/
|
|
7
|
-
export type
|
|
7
|
+
export type ListCallExportsParams = {
|
|
8
8
|
/**
|
|
9
|
-
* Page number (
|
|
9
|
+
* Page number (1-based).
|
|
10
10
|
*/
|
|
11
11
|
page?: number;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Number of items per page.
|
|
14
14
|
*/
|
|
15
15
|
size?: number;
|
|
16
16
|
};
|
package/types/gen/_models/{getCallPdfHistoryParams.d.ts → listScreenrecordingExportsParams.d.ts}
RENAMED
|
@@ -4,7 +4,13 @@
|
|
|
4
4
|
* Webitel API
|
|
5
5
|
* OpenAPI spec version: 24.04.0
|
|
6
6
|
*/
|
|
7
|
-
export type
|
|
7
|
+
export type ListScreenrecordingExportsParams = {
|
|
8
|
+
/**
|
|
9
|
+
* Page number (1-based).
|
|
10
|
+
*/
|
|
8
11
|
page?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Number of items per page.
|
|
14
|
+
*/
|
|
9
15
|
size?: number;
|
|
10
16
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.17.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Response confirming the deletion of a record.
|
|
9
|
+
*/
|
|
10
|
+
export interface WebitelMediaExporterDeleteExportResponse {
|
|
11
|
+
/** ID of the deleted record. */
|
|
12
|
+
id?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.17.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
import type { WebitelMediaExporterExportStatus } from './webitelMediaExporterExportStatus';
|
|
8
|
+
/**
|
|
9
|
+
* Represents a persisted record of a PDF export.
|
|
10
|
+
*/
|
|
11
|
+
export interface WebitelMediaExporterExportRecord {
|
|
12
|
+
/** Creation timestamp (Unix millis). */
|
|
13
|
+
createdAt?: string;
|
|
14
|
+
/** User ID who initiated the export. */
|
|
15
|
+
createdBy?: string;
|
|
16
|
+
/** Reference to the file in the storage system. */
|
|
17
|
+
fileId?: string;
|
|
18
|
+
/** Internal database record ID. */
|
|
19
|
+
id?: string;
|
|
20
|
+
/** MIME type of the generated file. */
|
|
21
|
+
mimeType?: string;
|
|
22
|
+
/** Display name of the export. */
|
|
23
|
+
name?: string;
|
|
24
|
+
/** Final status of the export process. */
|
|
25
|
+
status?: WebitelMediaExporterExportStatus;
|
|
26
|
+
/** Last update timestamp (Unix millis). */
|
|
27
|
+
updatedAt?: string;
|
|
28
|
+
/** User ID who last modified the record. */
|
|
29
|
+
updatedBy?: string;
|
|
30
|
+
}
|