@unified-api/typescript-sdk 2.56.0 → 2.58.0
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/README.md +24 -0
- package/docs/sdks/comment/README.md +512 -0
- package/docs/sdks/connection/README.md +4 -4
- package/docs/sdks/recording/README.md +500 -0
- package/docs/sdks/uc/README.md +1054 -42
- package/docs/sdks/unified/README.md +10 -10
- package/docs/sdks/webhook/README.md +6 -6
- package/funcs/commentCreateUcComment.d.ts +14 -0
- package/funcs/commentCreateUcComment.d.ts.map +1 -0
- package/funcs/commentCreateUcComment.js +109 -0
- package/funcs/commentCreateUcComment.js.map +1 -0
- package/funcs/commentGetUcComment.d.ts +14 -0
- package/funcs/commentGetUcComment.d.ts.map +1 -0
- package/funcs/commentGetUcComment.js +112 -0
- package/funcs/commentGetUcComment.js.map +1 -0
- package/funcs/commentListUcComments.d.ts +14 -0
- package/funcs/commentListUcComments.d.ts.map +1 -0
- package/funcs/commentListUcComments.js +117 -0
- package/funcs/commentListUcComments.js.map +1 -0
- package/funcs/commentPatchUcComment.d.ts +14 -0
- package/funcs/commentPatchUcComment.d.ts.map +1 -0
- package/funcs/commentPatchUcComment.js +113 -0
- package/funcs/commentPatchUcComment.js.map +1 -0
- package/funcs/commentRemoveUcComment.d.ts +13 -0
- package/funcs/commentRemoveUcComment.d.ts.map +1 -0
- package/funcs/commentRemoveUcComment.js +110 -0
- package/funcs/commentRemoveUcComment.js.map +1 -0
- package/funcs/commentUpdateUcComment.d.ts +14 -0
- package/funcs/commentUpdateUcComment.d.ts.map +1 -0
- package/funcs/commentUpdateUcComment.js +113 -0
- package/funcs/commentUpdateUcComment.js.map +1 -0
- package/funcs/passthroughCreatePassthroughJson.js +4 -0
- package/funcs/passthroughCreatePassthroughJson.js.map +1 -1
- package/funcs/passthroughCreatePassthroughRaw.js +4 -0
- package/funcs/passthroughCreatePassthroughRaw.js.map +1 -1
- package/funcs/passthroughListPassthroughs.js +4 -0
- package/funcs/passthroughListPassthroughs.js.map +1 -1
- package/funcs/passthroughPatchPassthroughJson.js +4 -0
- package/funcs/passthroughPatchPassthroughJson.js.map +1 -1
- package/funcs/passthroughPatchPassthroughRaw.js +4 -0
- package/funcs/passthroughPatchPassthroughRaw.js.map +1 -1
- package/funcs/passthroughRemovePassthrough.js +4 -0
- package/funcs/passthroughRemovePassthrough.js.map +1 -1
- package/funcs/passthroughUpdatePassthroughJson.js +4 -0
- package/funcs/passthroughUpdatePassthroughJson.js.map +1 -1
- package/funcs/passthroughUpdatePassthroughRaw.js +4 -0
- package/funcs/passthroughUpdatePassthroughRaw.js.map +1 -1
- package/funcs/recordingCreateUcRecording.d.ts +14 -0
- package/funcs/recordingCreateUcRecording.d.ts.map +1 -0
- package/funcs/recordingCreateUcRecording.js +109 -0
- package/funcs/recordingCreateUcRecording.js.map +1 -0
- package/funcs/recordingGetUcRecording.d.ts +14 -0
- package/funcs/recordingGetUcRecording.d.ts.map +1 -0
- package/funcs/recordingGetUcRecording.js +112 -0
- package/funcs/recordingGetUcRecording.js.map +1 -0
- package/funcs/recordingListUcRecordings.d.ts +14 -0
- package/funcs/recordingListUcRecordings.d.ts.map +1 -0
- package/funcs/recordingListUcRecordings.js +119 -0
- package/funcs/recordingListUcRecordings.js.map +1 -0
- package/funcs/recordingPatchUcRecording.d.ts +14 -0
- package/funcs/recordingPatchUcRecording.d.ts.map +1 -0
- package/funcs/recordingPatchUcRecording.js +113 -0
- package/funcs/recordingPatchUcRecording.js.map +1 -0
- package/funcs/recordingRemoveUcRecording.d.ts +13 -0
- package/funcs/recordingRemoveUcRecording.d.ts.map +1 -0
- package/funcs/recordingRemoveUcRecording.js +110 -0
- package/funcs/recordingRemoveUcRecording.js.map +1 -0
- package/funcs/recordingUpdateUcRecording.d.ts +14 -0
- package/funcs/recordingUpdateUcRecording.d.ts.map +1 -0
- package/funcs/recordingUpdateUcRecording.js +113 -0
- package/funcs/recordingUpdateUcRecording.js.map +1 -0
- package/funcs/ucCreateUcComment.d.ts +14 -0
- package/funcs/ucCreateUcComment.d.ts.map +1 -0
- package/funcs/ucCreateUcComment.js +109 -0
- package/funcs/ucCreateUcComment.js.map +1 -0
- package/funcs/ucCreateUcRecording.d.ts +14 -0
- package/funcs/ucCreateUcRecording.d.ts.map +1 -0
- package/funcs/ucCreateUcRecording.js +109 -0
- package/funcs/ucCreateUcRecording.js.map +1 -0
- package/funcs/ucGetUcComment.d.ts +14 -0
- package/funcs/ucGetUcComment.d.ts.map +1 -0
- package/funcs/ucGetUcComment.js +112 -0
- package/funcs/ucGetUcComment.js.map +1 -0
- package/funcs/ucGetUcRecording.d.ts +14 -0
- package/funcs/ucGetUcRecording.d.ts.map +1 -0
- package/funcs/ucGetUcRecording.js +112 -0
- package/funcs/ucGetUcRecording.js.map +1 -0
- package/funcs/ucListUcComments.d.ts +14 -0
- package/funcs/ucListUcComments.d.ts.map +1 -0
- package/funcs/ucListUcComments.js +117 -0
- package/funcs/ucListUcComments.js.map +1 -0
- package/funcs/ucListUcRecordings.d.ts +14 -0
- package/funcs/ucListUcRecordings.d.ts.map +1 -0
- package/funcs/ucListUcRecordings.js +119 -0
- package/funcs/ucListUcRecordings.js.map +1 -0
- package/funcs/ucPatchUcComment.d.ts +14 -0
- package/funcs/ucPatchUcComment.d.ts.map +1 -0
- package/funcs/ucPatchUcComment.js +113 -0
- package/funcs/ucPatchUcComment.js.map +1 -0
- package/funcs/ucPatchUcRecording.d.ts +14 -0
- package/funcs/ucPatchUcRecording.d.ts.map +1 -0
- package/funcs/ucPatchUcRecording.js +113 -0
- package/funcs/ucPatchUcRecording.js.map +1 -0
- package/funcs/ucRemoveUcComment.d.ts +13 -0
- package/funcs/ucRemoveUcComment.d.ts.map +1 -0
- package/funcs/ucRemoveUcComment.js +110 -0
- package/funcs/ucRemoveUcComment.js.map +1 -0
- package/funcs/ucRemoveUcRecording.d.ts +13 -0
- package/funcs/ucRemoveUcRecording.d.ts.map +1 -0
- package/funcs/ucRemoveUcRecording.js +110 -0
- package/funcs/ucRemoveUcRecording.js.map +1 -0
- package/funcs/ucUpdateUcComment.d.ts +14 -0
- package/funcs/ucUpdateUcComment.d.ts.map +1 -0
- package/funcs/ucUpdateUcComment.js +113 -0
- package/funcs/ucUpdateUcComment.js.map +1 -0
- package/funcs/ucUpdateUcRecording.d.ts +14 -0
- package/funcs/ucUpdateUcRecording.d.ts.map +1 -0
- package/funcs/ucUpdateUcRecording.js +113 -0
- package/funcs/ucUpdateUcRecording.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/package.json +1 -1
- package/sdk/comment.d.ts +24 -0
- package/sdk/comment.d.ts.map +1 -1
- package/sdk/comment.js +42 -0
- package/sdk/comment.js.map +1 -1
- package/sdk/models/operations/createpassthroughjson.d.ts +6 -0
- package/sdk/models/operations/createpassthroughjson.d.ts.map +1 -1
- package/sdk/models/operations/createpassthroughjson.js +2 -0
- package/sdk/models/operations/createpassthroughjson.js.map +1 -1
- package/sdk/models/operations/createpassthroughraw.d.ts +6 -0
- package/sdk/models/operations/createpassthroughraw.d.ts.map +1 -1
- package/sdk/models/operations/createpassthroughraw.js +2 -0
- package/sdk/models/operations/createpassthroughraw.js.map +1 -1
- package/sdk/models/operations/createuccomment.d.ts +40 -0
- package/sdk/models/operations/createuccomment.d.ts.map +1 -0
- package/sdk/models/operations/createuccomment.js +75 -0
- package/sdk/models/operations/createuccomment.js.map +1 -0
- package/sdk/models/operations/createucrecording.d.ts +40 -0
- package/sdk/models/operations/createucrecording.d.ts.map +1 -0
- package/sdk/models/operations/createucrecording.js +75 -0
- package/sdk/models/operations/createucrecording.js.map +1 -0
- package/sdk/models/operations/getuccomment.d.ts +42 -0
- package/sdk/models/operations/getuccomment.d.ts.map +1 -0
- package/sdk/models/operations/getuccomment.js +72 -0
- package/sdk/models/operations/getuccomment.js.map +1 -0
- package/sdk/models/operations/getucrecording.d.ts +42 -0
- package/sdk/models/operations/getucrecording.d.ts.map +1 -0
- package/sdk/models/operations/getucrecording.js +72 -0
- package/sdk/models/operations/getucrecording.js.map +1 -0
- package/sdk/models/operations/index.d.ts +12 -0
- package/sdk/models/operations/index.d.ts.map +1 -1
- package/sdk/models/operations/index.js +12 -0
- package/sdk/models/operations/index.js.map +1 -1
- package/sdk/models/operations/listpassthroughs.d.ts +6 -0
- package/sdk/models/operations/listpassthroughs.d.ts.map +1 -1
- package/sdk/models/operations/listpassthroughs.js +2 -0
- package/sdk/models/operations/listpassthroughs.js.map +1 -1
- package/sdk/models/operations/listuccomments.d.ts +59 -0
- package/sdk/models/operations/listuccomments.d.ts.map +1 -0
- package/sdk/models/operations/listuccomments.js +93 -0
- package/sdk/models/operations/listuccomments.js.map +1 -0
- package/sdk/models/operations/listucrecordings.d.ts +63 -0
- package/sdk/models/operations/listucrecordings.d.ts.map +1 -0
- package/sdk/models/operations/listucrecordings.js +101 -0
- package/sdk/models/operations/listucrecordings.js.map +1 -0
- package/sdk/models/operations/patchpassthroughjson.d.ts +6 -0
- package/sdk/models/operations/patchpassthroughjson.d.ts.map +1 -1
- package/sdk/models/operations/patchpassthroughjson.js +2 -0
- package/sdk/models/operations/patchpassthroughjson.js.map +1 -1
- package/sdk/models/operations/patchpassthroughraw.d.ts +6 -0
- package/sdk/models/operations/patchpassthroughraw.d.ts.map +1 -1
- package/sdk/models/operations/patchpassthroughraw.js +2 -0
- package/sdk/models/operations/patchpassthroughraw.js.map +1 -1
- package/sdk/models/operations/patchuccomment.d.ts +45 -0
- package/sdk/models/operations/patchuccomment.d.ts.map +1 -0
- package/sdk/models/operations/patchuccomment.js +77 -0
- package/sdk/models/operations/patchuccomment.js.map +1 -0
- package/sdk/models/operations/patchucrecording.d.ts +45 -0
- package/sdk/models/operations/patchucrecording.d.ts.map +1 -0
- package/sdk/models/operations/patchucrecording.js +77 -0
- package/sdk/models/operations/patchucrecording.js.map +1 -0
- package/sdk/models/operations/removepassthrough.d.ts +6 -0
- package/sdk/models/operations/removepassthrough.d.ts.map +1 -1
- package/sdk/models/operations/removepassthrough.js +2 -0
- package/sdk/models/operations/removepassthrough.js.map +1 -1
- package/sdk/models/operations/removeuccomment.d.ts +66 -0
- package/sdk/models/operations/removeuccomment.d.ts.map +1 -0
- package/sdk/models/operations/removeuccomment.js +105 -0
- package/sdk/models/operations/removeuccomment.js.map +1 -0
- package/sdk/models/operations/removeucrecording.d.ts +66 -0
- package/sdk/models/operations/removeucrecording.d.ts.map +1 -0
- package/sdk/models/operations/removeucrecording.js +105 -0
- package/sdk/models/operations/removeucrecording.js.map +1 -0
- package/sdk/models/operations/updatepassthroughjson.d.ts +6 -0
- package/sdk/models/operations/updatepassthroughjson.d.ts.map +1 -1
- package/sdk/models/operations/updatepassthroughjson.js +2 -0
- package/sdk/models/operations/updatepassthroughjson.js.map +1 -1
- package/sdk/models/operations/updatepassthroughraw.d.ts +6 -0
- package/sdk/models/operations/updatepassthroughraw.d.ts.map +1 -1
- package/sdk/models/operations/updatepassthroughraw.js +2 -0
- package/sdk/models/operations/updatepassthroughraw.js.map +1 -1
- package/sdk/models/operations/updateuccomment.d.ts +45 -0
- package/sdk/models/operations/updateuccomment.d.ts.map +1 -0
- package/sdk/models/operations/updateuccomment.js +77 -0
- package/sdk/models/operations/updateuccomment.js.map +1 -0
- package/sdk/models/operations/updateucrecording.d.ts +45 -0
- package/sdk/models/operations/updateucrecording.d.ts.map +1 -0
- package/sdk/models/operations/updateucrecording.js +77 -0
- package/sdk/models/operations/updateucrecording.js.map +1 -0
- package/sdk/models/shared/accountingattachment.d.ts +6 -6
- package/sdk/models/shared/accountingattachment.d.ts.map +1 -1
- package/sdk/models/shared/accountingattachment.js +6 -6
- package/sdk/models/shared/accountingattachment.js.map +1 -1
- package/sdk/models/shared/index.d.ts +4 -0
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +4 -0
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/integrationsupport.d.ts +30 -0
- package/sdk/models/shared/integrationsupport.d.ts.map +1 -1
- package/sdk/models/shared/integrationsupport.js +31 -6
- package/sdk/models/shared/integrationsupport.js.map +1 -1
- package/sdk/models/shared/propertyconnectionpermissions.d.ts +9 -0
- package/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
- package/sdk/models/shared/propertyconnectionpermissions.js +3 -0
- package/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
- package/sdk/models/shared/uccall.d.ts +0 -3
- package/sdk/models/shared/uccall.d.ts.map +1 -1
- package/sdk/models/shared/uccall.js.map +1 -1
- package/sdk/models/shared/uccomment.d.ts +43 -0
- package/sdk/models/shared/uccomment.d.ts.map +1 -0
- package/sdk/models/shared/uccomment.js +82 -0
- package/sdk/models/shared/uccomment.js.map +1 -0
- package/sdk/models/shared/uccontact.d.ts +0 -3
- package/sdk/models/shared/uccontact.d.ts.map +1 -1
- package/sdk/models/shared/uccontact.js.map +1 -1
- package/sdk/models/shared/ucrecording.d.ts +60 -0
- package/sdk/models/shared/ucrecording.d.ts.map +1 -0
- package/sdk/models/shared/ucrecording.js +120 -0
- package/sdk/models/shared/ucrecording.js.map +1 -0
- package/sdk/models/shared/ucrecordingmedia.d.ts +40 -0
- package/sdk/models/shared/ucrecordingmedia.d.ts.map +1 -0
- package/sdk/models/shared/ucrecordingmedia.js +87 -0
- package/sdk/models/shared/ucrecordingmedia.js.map +1 -0
- package/sdk/models/shared/ucrecordingtranscript.d.ts +37 -0
- package/sdk/models/shared/ucrecordingtranscript.d.ts.map +1 -0
- package/sdk/models/shared/ucrecordingtranscript.js +84 -0
- package/sdk/models/shared/ucrecordingtranscript.js.map +1 -0
- package/sdk/models/shared/webhook.d.ts +6 -0
- package/sdk/models/shared/webhook.d.ts.map +1 -1
- package/sdk/models/shared/webhook.js +2 -0
- package/sdk/models/shared/webhook.js.map +1 -1
- package/sdk/recording.d.ts +24 -0
- package/sdk/recording.d.ts.map +1 -1
- package/sdk/recording.js +42 -0
- package/sdk/recording.js.map +1 -1
- package/sdk/uc.d.ts +48 -0
- package/sdk/uc.d.ts.map +1 -1
- package/sdk/uc.js +84 -0
- package/sdk/uc.js.map +1 -1
- package/src/funcs/commentCreateUcComment.ts +163 -0
- package/src/funcs/commentGetUcComment.ts +166 -0
- package/src/funcs/commentListUcComments.ts +171 -0
- package/src/funcs/commentPatchUcComment.ts +167 -0
- package/src/funcs/commentRemoveUcComment.ts +169 -0
- package/src/funcs/commentUpdateUcComment.ts +167 -0
- package/src/funcs/passthroughCreatePassthroughJson.ts +6 -1
- package/src/funcs/passthroughCreatePassthroughRaw.ts +6 -1
- package/src/funcs/passthroughListPassthroughs.ts +6 -1
- package/src/funcs/passthroughPatchPassthroughJson.ts +6 -1
- package/src/funcs/passthroughPatchPassthroughRaw.ts +6 -1
- package/src/funcs/passthroughRemovePassthrough.ts +6 -1
- package/src/funcs/passthroughUpdatePassthroughJson.ts +6 -1
- package/src/funcs/passthroughUpdatePassthroughRaw.ts +6 -1
- package/src/funcs/recordingCreateUcRecording.ts +163 -0
- package/src/funcs/recordingGetUcRecording.ts +166 -0
- package/src/funcs/recordingListUcRecordings.ts +173 -0
- package/src/funcs/recordingPatchUcRecording.ts +167 -0
- package/src/funcs/recordingRemoveUcRecording.ts +169 -0
- package/src/funcs/recordingUpdateUcRecording.ts +167 -0
- package/src/funcs/ucCreateUcComment.ts +163 -0
- package/src/funcs/ucCreateUcRecording.ts +163 -0
- package/src/funcs/ucGetUcComment.ts +166 -0
- package/src/funcs/ucGetUcRecording.ts +166 -0
- package/src/funcs/ucListUcComments.ts +171 -0
- package/src/funcs/ucListUcRecordings.ts +173 -0
- package/src/funcs/ucPatchUcComment.ts +167 -0
- package/src/funcs/ucPatchUcRecording.ts +167 -0
- package/src/funcs/ucRemoveUcComment.ts +169 -0
- package/src/funcs/ucRemoveUcRecording.ts +169 -0
- package/src/funcs/ucUpdateUcComment.ts +167 -0
- package/src/funcs/ucUpdateUcRecording.ts +167 -0
- package/src/lib/config.ts +2 -2
- package/src/sdk/comment.ts +90 -0
- package/src/sdk/models/operations/createpassthroughjson.ts +4 -0
- package/src/sdk/models/operations/createpassthroughraw.ts +4 -0
- package/src/sdk/models/operations/createuccomment.ts +92 -0
- package/src/sdk/models/operations/createucrecording.ts +92 -0
- package/src/sdk/models/operations/getuccomment.ts +92 -0
- package/src/sdk/models/operations/getucrecording.ts +92 -0
- package/src/sdk/models/operations/index.ts +12 -0
- package/src/sdk/models/operations/listpassthroughs.ts +4 -0
- package/src/sdk/models/operations/listuccomments.ts +130 -0
- package/src/sdk/models/operations/listucrecordings.ts +142 -0
- package/src/sdk/models/operations/patchpassthroughjson.ts +4 -0
- package/src/sdk/models/operations/patchpassthroughraw.ts +4 -0
- package/src/sdk/models/operations/patchuccomment.ts +99 -0
- package/src/sdk/models/operations/patchucrecording.ts +99 -0
- package/src/sdk/models/operations/removepassthrough.ts +4 -0
- package/src/sdk/models/operations/removeuccomment.ts +151 -0
- package/src/sdk/models/operations/removeucrecording.ts +151 -0
- package/src/sdk/models/operations/updatepassthroughjson.ts +4 -0
- package/src/sdk/models/operations/updatepassthroughraw.ts +4 -0
- package/src/sdk/models/operations/updateuccomment.ts +99 -0
- package/src/sdk/models/operations/updateucrecording.ts +99 -0
- package/src/sdk/models/shared/accountingattachment.ts +12 -12
- package/src/sdk/models/shared/index.ts +4 -0
- package/src/sdk/models/shared/integrationsupport.ts +32 -0
- package/src/sdk/models/shared/propertyconnectionpermissions.ts +3 -0
- package/src/sdk/models/shared/uccall.ts +0 -3
- package/src/sdk/models/shared/uccomment.ts +95 -0
- package/src/sdk/models/shared/uccontact.ts +0 -3
- package/src/sdk/models/shared/ucrecording.ts +154 -0
- package/src/sdk/models/shared/ucrecordingmedia.ts +109 -0
- package/src/sdk/models/shared/ucrecordingtranscript.ts +99 -0
- package/src/sdk/models/shared/webhook.ts +2 -0
- package/src/sdk/recording.ts +90 -0
- package/src/sdk/uc.ts +180 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ucCreateUcRecording = ucCreateUcRecording;
|
|
30
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
31
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
32
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
33
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
34
|
+
const security_js_1 = require("../lib/security.js");
|
|
35
|
+
const url_js_1 = require("../lib/url.js");
|
|
36
|
+
const operations = __importStar(require("../sdk/models/operations/index.js"));
|
|
37
|
+
const shared = __importStar(require("../sdk/models/shared/index.js"));
|
|
38
|
+
const async_js_1 = require("../sdk/types/async.js");
|
|
39
|
+
/**
|
|
40
|
+
* Create a recording
|
|
41
|
+
*/
|
|
42
|
+
function ucCreateUcRecording(client, request, options) {
|
|
43
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
44
|
+
}
|
|
45
|
+
async function $do(client, request, options) {
|
|
46
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.CreateUcRecordingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47
|
+
if (!parsed.ok) {
|
|
48
|
+
return [parsed, { status: "invalid" }];
|
|
49
|
+
}
|
|
50
|
+
const payload = parsed.value;
|
|
51
|
+
const body = (0, encodings_js_1.encodeJSON)("body", payload.UcRecording, { explode: true });
|
|
52
|
+
const pathParams = {
|
|
53
|
+
connection_id: (0, encodings_js_1.encodeSimple)("connection_id", payload.connection_id, {
|
|
54
|
+
explode: false,
|
|
55
|
+
charEncoding: "percent",
|
|
56
|
+
}),
|
|
57
|
+
};
|
|
58
|
+
const path = (0, url_js_1.pathToFunc)("/uc/{connection_id}/recording")(pathParams);
|
|
59
|
+
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
60
|
+
"fields": payload.fields,
|
|
61
|
+
});
|
|
62
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
63
|
+
"Content-Type": "application/json",
|
|
64
|
+
Accept: "application/json",
|
|
65
|
+
}));
|
|
66
|
+
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
67
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
68
|
+
const context = {
|
|
69
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
70
|
+
operationID: "createUcRecording",
|
|
71
|
+
oAuth2Scopes: [],
|
|
72
|
+
resolvedSecurity: requestSecurity,
|
|
73
|
+
securitySource: client._options.security,
|
|
74
|
+
retryConfig: options?.retries
|
|
75
|
+
|| client._options.retryConfig
|
|
76
|
+
|| { strategy: "none" },
|
|
77
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
78
|
+
};
|
|
79
|
+
const requestRes = client._createRequest(context, {
|
|
80
|
+
security: requestSecurity,
|
|
81
|
+
method: "POST",
|
|
82
|
+
baseURL: options?.serverURL,
|
|
83
|
+
path: path,
|
|
84
|
+
headers: headers,
|
|
85
|
+
query: query,
|
|
86
|
+
body: body,
|
|
87
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
88
|
+
}, options);
|
|
89
|
+
if (!requestRes.ok) {
|
|
90
|
+
return [requestRes, { status: "invalid" }];
|
|
91
|
+
}
|
|
92
|
+
const req = requestRes.value;
|
|
93
|
+
const doResult = await client._do(req, {
|
|
94
|
+
context,
|
|
95
|
+
errorCodes: ["4XX", "5XX"],
|
|
96
|
+
retryConfig: context.retryConfig,
|
|
97
|
+
retryCodes: context.retryCodes,
|
|
98
|
+
});
|
|
99
|
+
if (!doResult.ok) {
|
|
100
|
+
return [doResult, { status: "request-error", request: req }];
|
|
101
|
+
}
|
|
102
|
+
const response = doResult.value;
|
|
103
|
+
const [result] = await M.match(M.json(200, shared.UcRecording$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response);
|
|
104
|
+
if (!result.ok) {
|
|
105
|
+
return [result, { status: "complete", request: req, response }];
|
|
106
|
+
}
|
|
107
|
+
return [result, { status: "complete", request: req, response }];
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=ucCreateUcRecording.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ucCreateUcRecording.js","sourceRoot":"","sources":["../src/funcs/ucCreateUcRecording.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AA2BH,kDAqBC;AA7CD,sDAAgF;AAChF,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAU3C,8EAAgE;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P,UAAU,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;QAC1B,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,UAAU,EAAE,OAAO,CAAC,UAAU;KAC/B,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAU5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,yBAAyB,CAAC,EAC7C,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,CAAC,CAAC;IACZ,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UnifiedToCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../sdk/models/errors/httpclienterrors.js";
|
|
4
|
+
import { SDKError } from "../sdk/models/errors/sdkerror.js";
|
|
5
|
+
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
|
6
|
+
import * as operations from "../sdk/models/operations/index.js";
|
|
7
|
+
import * as shared from "../sdk/models/shared/index.js";
|
|
8
|
+
import { APIPromise } from "../sdk/types/async.js";
|
|
9
|
+
import { Result } from "../sdk/types/fp.js";
|
|
10
|
+
/**
|
|
11
|
+
* Retrieve a comment
|
|
12
|
+
*/
|
|
13
|
+
export declare function ucGetUcComment(client: UnifiedToCore, request: operations.GetUcCommentRequest, options?: RequestOptions): APIPromise<Result<shared.UcComment, SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
14
|
+
//# sourceMappingURL=ucGetUcComment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ucGetUcComment.d.ts","sourceRoot":"","sources":["../src/funcs/ucGetUcComment.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,KAAK,UAAU,MAAM,mCAAmC,CAAC;AAChE,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAW,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C;;GAEG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,SAAS,EACd,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAMA"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ucGetUcComment = ucGetUcComment;
|
|
30
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
31
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
32
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
33
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
34
|
+
const security_js_1 = require("../lib/security.js");
|
|
35
|
+
const url_js_1 = require("../lib/url.js");
|
|
36
|
+
const operations = __importStar(require("../sdk/models/operations/index.js"));
|
|
37
|
+
const shared = __importStar(require("../sdk/models/shared/index.js"));
|
|
38
|
+
const async_js_1 = require("../sdk/types/async.js");
|
|
39
|
+
/**
|
|
40
|
+
* Retrieve a comment
|
|
41
|
+
*/
|
|
42
|
+
function ucGetUcComment(client, request, options) {
|
|
43
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
44
|
+
}
|
|
45
|
+
async function $do(client, request, options) {
|
|
46
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.GetUcCommentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47
|
+
if (!parsed.ok) {
|
|
48
|
+
return [parsed, { status: "invalid" }];
|
|
49
|
+
}
|
|
50
|
+
const payload = parsed.value;
|
|
51
|
+
const body = null;
|
|
52
|
+
const pathParams = {
|
|
53
|
+
connection_id: (0, encodings_js_1.encodeSimple)("connection_id", payload.connection_id, {
|
|
54
|
+
explode: false,
|
|
55
|
+
charEncoding: "percent",
|
|
56
|
+
}),
|
|
57
|
+
id: (0, encodings_js_1.encodeSimple)("id", payload.id, {
|
|
58
|
+
explode: false,
|
|
59
|
+
charEncoding: "percent",
|
|
60
|
+
}),
|
|
61
|
+
};
|
|
62
|
+
const path = (0, url_js_1.pathToFunc)("/uc/{connection_id}/comment/{id}")(pathParams);
|
|
63
|
+
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
64
|
+
"fields": payload.fields,
|
|
65
|
+
});
|
|
66
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
67
|
+
Accept: "application/json",
|
|
68
|
+
}));
|
|
69
|
+
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
70
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
71
|
+
const context = {
|
|
72
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
73
|
+
operationID: "getUcComment",
|
|
74
|
+
oAuth2Scopes: [],
|
|
75
|
+
resolvedSecurity: requestSecurity,
|
|
76
|
+
securitySource: client._options.security,
|
|
77
|
+
retryConfig: options?.retries
|
|
78
|
+
|| client._options.retryConfig
|
|
79
|
+
|| { strategy: "none" },
|
|
80
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
81
|
+
};
|
|
82
|
+
const requestRes = client._createRequest(context, {
|
|
83
|
+
security: requestSecurity,
|
|
84
|
+
method: "GET",
|
|
85
|
+
baseURL: options?.serverURL,
|
|
86
|
+
path: path,
|
|
87
|
+
headers: headers,
|
|
88
|
+
query: query,
|
|
89
|
+
body: body,
|
|
90
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
91
|
+
}, options);
|
|
92
|
+
if (!requestRes.ok) {
|
|
93
|
+
return [requestRes, { status: "invalid" }];
|
|
94
|
+
}
|
|
95
|
+
const req = requestRes.value;
|
|
96
|
+
const doResult = await client._do(req, {
|
|
97
|
+
context,
|
|
98
|
+
errorCodes: ["4XX", "5XX"],
|
|
99
|
+
retryConfig: context.retryConfig,
|
|
100
|
+
retryCodes: context.retryCodes,
|
|
101
|
+
});
|
|
102
|
+
if (!doResult.ok) {
|
|
103
|
+
return [doResult, { status: "request-error", request: req }];
|
|
104
|
+
}
|
|
105
|
+
const response = doResult.value;
|
|
106
|
+
const [result] = await M.match(M.json(200, shared.UcComment$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response);
|
|
107
|
+
if (!result.ok) {
|
|
108
|
+
return [result, { status: "complete", request: req, response }];
|
|
109
|
+
}
|
|
110
|
+
return [result, { status: "complete", request: req, response }];
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=ucGetUcComment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ucGetUcComment.js","sourceRoot":"","sources":["../src/funcs/ucGetUcComment.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;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AC;IAC7C,CAAC;IACD,MAAM,GAAG,GAAG,UAAU,CAAC,KAAK,CAAC;IAE7B,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE;QACrC,OAAO;QACP,UAAU,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;QAC1B,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,UAAU,EAAE,OAAO,CAAC,UAAU;KAC/B,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAU5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,uBAAuB,CAAC,EAC3C,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,CAAC,CAAC;IACZ,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UnifiedToCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../sdk/models/errors/httpclienterrors.js";
|
|
4
|
+
import { SDKError } from "../sdk/models/errors/sdkerror.js";
|
|
5
|
+
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
|
6
|
+
import * as operations from "../sdk/models/operations/index.js";
|
|
7
|
+
import * as shared from "../sdk/models/shared/index.js";
|
|
8
|
+
import { APIPromise } from "../sdk/types/async.js";
|
|
9
|
+
import { Result } from "../sdk/types/fp.js";
|
|
10
|
+
/**
|
|
11
|
+
* Retrieve a recording
|
|
12
|
+
*/
|
|
13
|
+
export declare function ucGetUcRecording(client: UnifiedToCore, request: operations.GetUcRecordingRequest, options?: RequestOptions): APIPromise<Result<shared.UcRecording, SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
14
|
+
//# sourceMappingURL=ucGetUcRecording.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ucGetUcRecording.d.ts","sourceRoot":"","sources":["../src/funcs/ucGetUcRecording.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,KAAK,UAAU,MAAM,mCAAmC,CAAC;AAChE,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAW,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,WAAW,EAChB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAMA"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ucGetUcRecording = ucGetUcRecording;
|
|
30
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
31
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
32
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
33
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
34
|
+
const security_js_1 = require("../lib/security.js");
|
|
35
|
+
const url_js_1 = require("../lib/url.js");
|
|
36
|
+
const operations = __importStar(require("../sdk/models/operations/index.js"));
|
|
37
|
+
const shared = __importStar(require("../sdk/models/shared/index.js"));
|
|
38
|
+
const async_js_1 = require("../sdk/types/async.js");
|
|
39
|
+
/**
|
|
40
|
+
* Retrieve a recording
|
|
41
|
+
*/
|
|
42
|
+
function ucGetUcRecording(client, request, options) {
|
|
43
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
44
|
+
}
|
|
45
|
+
async function $do(client, request, options) {
|
|
46
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.GetUcRecordingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47
|
+
if (!parsed.ok) {
|
|
48
|
+
return [parsed, { status: "invalid" }];
|
|
49
|
+
}
|
|
50
|
+
const payload = parsed.value;
|
|
51
|
+
const body = null;
|
|
52
|
+
const pathParams = {
|
|
53
|
+
connection_id: (0, encodings_js_1.encodeSimple)("connection_id", payload.connection_id, {
|
|
54
|
+
explode: false,
|
|
55
|
+
charEncoding: "percent",
|
|
56
|
+
}),
|
|
57
|
+
id: (0, encodings_js_1.encodeSimple)("id", payload.id, {
|
|
58
|
+
explode: false,
|
|
59
|
+
charEncoding: "percent",
|
|
60
|
+
}),
|
|
61
|
+
};
|
|
62
|
+
const path = (0, url_js_1.pathToFunc)("/uc/{connection_id}/recording/{id}")(pathParams);
|
|
63
|
+
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
64
|
+
"fields": payload.fields,
|
|
65
|
+
});
|
|
66
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
67
|
+
Accept: "application/json",
|
|
68
|
+
}));
|
|
69
|
+
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
70
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
71
|
+
const context = {
|
|
72
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
73
|
+
operationID: "getUcRecording",
|
|
74
|
+
oAuth2Scopes: [],
|
|
75
|
+
resolvedSecurity: requestSecurity,
|
|
76
|
+
securitySource: client._options.security,
|
|
77
|
+
retryConfig: options?.retries
|
|
78
|
+
|| client._options.retryConfig
|
|
79
|
+
|| { strategy: "none" },
|
|
80
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
81
|
+
};
|
|
82
|
+
const requestRes = client._createRequest(context, {
|
|
83
|
+
security: requestSecurity,
|
|
84
|
+
method: "GET",
|
|
85
|
+
baseURL: options?.serverURL,
|
|
86
|
+
path: path,
|
|
87
|
+
headers: headers,
|
|
88
|
+
query: query,
|
|
89
|
+
body: body,
|
|
90
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
91
|
+
}, options);
|
|
92
|
+
if (!requestRes.ok) {
|
|
93
|
+
return [requestRes, { status: "invalid" }];
|
|
94
|
+
}
|
|
95
|
+
const req = requestRes.value;
|
|
96
|
+
const doResult = await client._do(req, {
|
|
97
|
+
context,
|
|
98
|
+
errorCodes: ["4XX", "5XX"],
|
|
99
|
+
retryConfig: context.retryConfig,
|
|
100
|
+
retryCodes: context.retryCodes,
|
|
101
|
+
});
|
|
102
|
+
if (!doResult.ok) {
|
|
103
|
+
return [doResult, { status: "request-error", request: req }];
|
|
104
|
+
}
|
|
105
|
+
const response = doResult.value;
|
|
106
|
+
const [result] = await M.match(M.json(200, shared.UcRecording$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response);
|
|
107
|
+
if (!result.ok) {
|
|
108
|
+
return [result, { status: "complete", request: req, response }];
|
|
109
|
+
}
|
|
110
|
+
return [result, { status: "complete", request: req, response }];
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=ucGetUcRecording.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ucGetUcRecording.js","sourceRoot":"","sources":["../src/funcs/ucGetUcRecording.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AA2BH,4CAqBC;AA7CD,sDAAoE;AACpE,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAU3C,8EAAgE;AAChE,sEAAwD;AACxD,oDAA4D;AAG5D;;GAEG;AACH,SAAgB,gBAAgB,CAC9B,MAAqB,EACrB,OAAyC,EACzC,OAAwB;IAaxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAqB,EACrB,OAAyC,EACzC,OAAwB;IAgBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,oCAAoC,CAAC,KAAK,CAAC,KAAK,CAAC,EACvE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAI,CAAC;IAElB,MAAM,UAAU,GAAG;QACjB,aAAa,EAAE,IAAA,2BAAY,EAAC,eAAe,EAAE,OAAO,CAAC,aAAa,EAAE;YAClE,OAAO,EAAE,KAAK;YACd,YAAY,EAAE,SAAS;SACxB,CAAC;QACF,EAAE,EAAE,IAAA,2BAAY,EAAC,IAAI,EAAE,OAAO,CAAC,EAAE,EAAE;YACjC,OAAO,EAAE,KAAK;YACd,YAAY,EAAE,SAAS;SACxB,CA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|
1
|
+
import { UnifiedToCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../sdk/models/errors/httpclienterrors.js";
|
|
4
|
+
import { SDKError } from "../sdk/models/errors/sdkerror.js";
|
|
5
|
+
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
|
6
|
+
import * as operations from "../sdk/models/operations/index.js";
|
|
7
|
+
import * as shared from "../sdk/models/shared/index.js";
|
|
8
|
+
import { APIPromise } from "../sdk/types/async.js";
|
|
9
|
+
import { Result } from "../sdk/types/fp.js";
|
|
10
|
+
/**
|
|
11
|
+
* List all comments
|
|
12
|
+
*/
|
|
13
|
+
export declare function ucListUcComments(client: UnifiedToCore, request: operations.ListUcCommentsRequest, options?: RequestOptions): APIPromise<Result<Array<shared.UcComment>, SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
14
|
+
//# sourceMappingURL=ucListUcComments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ucListUcComments.d.ts","sourceRoot":"","sources":["../src/funcs/ucListUcComments.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,KAAK,UAAU,MAAM,mCAAmC,CAAC;AAChE,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAW,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,EACrB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAMA"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ucListUcComments = ucListUcComments;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
32
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
33
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
34
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
35
|
+
const security_js_1 = require("../lib/security.js");
|
|
36
|
+
const url_js_1 = require("../lib/url.js");
|
|
37
|
+
const operations = __importStar(require("../sdk/models/operations/index.js"));
|
|
38
|
+
const shared = __importStar(require("../sdk/models/shared/index.js"));
|
|
39
|
+
const async_js_1 = require("../sdk/types/async.js");
|
|
40
|
+
/**
|
|
41
|
+
* List all comments
|
|
42
|
+
*/
|
|
43
|
+
function ucListUcComments(client, request, options) {
|
|
44
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
45
|
+
}
|
|
46
|
+
async function $do(client, request, options) {
|
|
47
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.ListUcCommentsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
48
|
+
if (!parsed.ok) {
|
|
49
|
+
return [parsed, { status: "invalid" }];
|
|
50
|
+
}
|
|
51
|
+
const payload = parsed.value;
|
|
52
|
+
const body = null;
|
|
53
|
+
const pathParams = {
|
|
54
|
+
connection_id: (0, encodings_js_1.encodeSimple)("connection_id", payload.connection_id, {
|
|
55
|
+
explode: false,
|
|
56
|
+
charEncoding: "percent",
|
|
57
|
+
}),
|
|
58
|
+
};
|
|
59
|
+
const path = (0, url_js_1.pathToFunc)("/uc/{connection_id}/comment")(pathParams);
|
|
60
|
+
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
61
|
+
"call_id": payload.call_id,
|
|
62
|
+
"fields": payload.fields,
|
|
63
|
+
"limit": payload.limit,
|
|
64
|
+
"offset": payload.offset,
|
|
65
|
+
"order": payload.order,
|
|
66
|
+
"query": payload.query,
|
|
67
|
+
"sort": payload.sort,
|
|
68
|
+
"updated_gte": payload.updated_gte,
|
|
69
|
+
"user_id": payload.user_id,
|
|
70
|
+
});
|
|
71
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
72
|
+
Accept: "application/json",
|
|
73
|
+
}));
|
|
74
|
+
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
75
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
76
|
+
const context = {
|
|
77
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
78
|
+
operationID: "listUcComments",
|
|
79
|
+
oAuth2Scopes: [],
|
|
80
|
+
resolvedSecurity: requestSecurity,
|
|
81
|
+
securitySource: client._options.security,
|
|
82
|
+
retryConfig: options?.retries
|
|
83
|
+
|| client._options.retryConfig
|
|
84
|
+
|| { strategy: "none" },
|
|
85
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
86
|
+
};
|
|
87
|
+
const requestRes = client._createRequest(context, {
|
|
88
|
+
security: requestSecurity,
|
|
89
|
+
method: "GET",
|
|
90
|
+
baseURL: options?.serverURL,
|
|
91
|
+
path: path,
|
|
92
|
+
headers: headers,
|
|
93
|
+
query: query,
|
|
94
|
+
body: body,
|
|
95
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
96
|
+
}, options);
|
|
97
|
+
if (!requestRes.ok) {
|
|
98
|
+
return [requestRes, { status: "invalid" }];
|
|
99
|
+
}
|
|
100
|
+
const req = requestRes.value;
|
|
101
|
+
const doResult = await client._do(req, {
|
|
102
|
+
context,
|
|
103
|
+
errorCodes: ["4XX", "5XX"],
|
|
104
|
+
retryConfig: context.retryConfig,
|
|
105
|
+
retryCodes: context.retryCodes,
|
|
106
|
+
});
|
|
107
|
+
if (!doResult.ok) {
|
|
108
|
+
return [doResult, { status: "request-error", request: req }];
|
|
109
|
+
}
|
|
110
|
+
const response = doResult.value;
|
|
111
|
+
const [result] = await M.match(M.json(200, z.array(shared.UcComment$inboundSchema)), M.fail("4XX"), M.fail("5XX"))(response);
|
|
112
|
+
if (!result.ok) {
|
|
113
|
+
return [result, { status: "complete", request: req, response }];
|
|
114
|
+
}
|
|
115
|
+
return [result, { status: "complete", request: req, response }];
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=ucListUcComments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ucListUcComments.js","sourceRoot":"","sources":["../src/funcs/ucListUcComments.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AA4BH,4CAqBC;AA/CD,uCAAyB;AAEzB,sDAAoE;AACpE,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAU3C,8EAAgE;AAChE,sEAAwD;AACxD,oDAA4D;AAG5D;;GAEG;AACH,SAAgB,gBAAgB,CAC9B,MAAqB,EACrB,OAAyC,EACzC,OAAwB;IAaxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAqB,EACrB,OAAyC,EACzC,OAAwB;IAgBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,oCAAoC,CAAC,KAAK,CAAC,KAAK,CAAC,EACvE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,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G,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,EACpD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,CAAC,CAAC;IACZ,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UnifiedToCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../sdk/models/errors/httpclienterrors.js";
|
|
4
|
+
import { SDKError } from "../sdk/models/errors/sdkerror.js";
|
|
5
|
+
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
|
6
|
+
import * as operations from "../sdk/models/operations/index.js";
|
|
7
|
+
import * as shared from "../sdk/models/shared/index.js";
|
|
8
|
+
import { APIPromise } from "../sdk/types/async.js";
|
|
9
|
+
import { Result } from "../sdk/types/fp.js";
|
|
10
|
+
/**
|
|
11
|
+
* List all recordings
|
|
12
|
+
*/
|
|
13
|
+
export declare function ucListUcRecordings(client: UnifiedToCore, request: operations.ListUcRecordingsRequest, options?: RequestOptions): APIPromise<Result<Array<shared.UcRecording>, SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
14
|
+
//# sourceMappingURL=ucListUcRecordings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ucListUcRecordings.d.ts","sourceRoot":"","sources":["../src/funcs/ucListUcRecordings.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,KAAK,UAAU,MAAM,mCAAmC,CAAC;AAChE,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAW,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,EACvB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAMA"}
|