@unified-api/typescript-sdk 2.83.26 → 2.83.27
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/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/encodings.d.ts.map +1 -1
- package/dist/commonjs/lib/encodings.js +20 -5
- package/dist/commonjs/lib/encodings.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/createucrecording.d.ts +2 -1
- package/dist/commonjs/sdk/models/operations/createucrecording.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/createucrecording.js +2 -1
- package/dist/commonjs/sdk/models/operations/createucrecording.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getuccall.d.ts +2 -1
- package/dist/commonjs/sdk/models/operations/getuccall.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getuccall.js +2 -1
- package/dist/commonjs/sdk/models/operations/getuccall.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getucrecording.d.ts +2 -1
- package/dist/commonjs/sdk/models/operations/getucrecording.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getucrecording.js +2 -1
- package/dist/commonjs/sdk/models/operations/getucrecording.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/listuccalls.d.ts +2 -1
- package/dist/commonjs/sdk/models/operations/listuccalls.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/listuccalls.js +2 -1
- package/dist/commonjs/sdk/models/operations/listuccalls.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/listucrecordings.d.ts +2 -1
- package/dist/commonjs/sdk/models/operations/listucrecordings.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/listucrecordings.js +2 -1
- package/dist/commonjs/sdk/models/operations/listucrecordings.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/patchucrecording.d.ts +2 -1
- package/dist/commonjs/sdk/models/operations/patchucrecording.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/patchucrecording.js +2 -1
- package/dist/commonjs/sdk/models/operations/patchucrecording.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/updateucrecording.d.ts +2 -1
- package/dist/commonjs/sdk/models/operations/updateucrecording.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/updateucrecording.js +2 -1
- package/dist/commonjs/sdk/models/operations/updateucrecording.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/uccall.d.ts +9 -0
- package/dist/commonjs/sdk/models/shared/uccall.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/uccall.js +9 -1
- package/dist/commonjs/sdk/models/shared/uccall.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/ucrecording.d.ts +12 -0
- package/dist/commonjs/sdk/models/shared/ucrecording.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/ucrecording.js +12 -1
- package/dist/commonjs/sdk/models/shared/ucrecording.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/encodings.d.ts.map +1 -1
- package/dist/esm/lib/encodings.js +20 -5
- package/dist/esm/lib/encodings.js.map +1 -1
- package/dist/esm/sdk/models/operations/createucrecording.d.ts +2 -1
- package/dist/esm/sdk/models/operations/createucrecording.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/createucrecording.js +2 -1
- package/dist/esm/sdk/models/operations/createucrecording.js.map +1 -1
- package/dist/esm/sdk/models/operations/getuccall.d.ts +2 -1
- package/dist/esm/sdk/models/operations/getuccall.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getuccall.js +2 -1
- package/dist/esm/sdk/models/operations/getuccall.js.map +1 -1
- package/dist/esm/sdk/models/operations/getucrecording.d.ts +2 -1
- package/dist/esm/sdk/models/operations/getucrecording.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getucrecording.js +2 -1
- package/dist/esm/sdk/models/operations/getucrecording.js.map +1 -1
- package/dist/esm/sdk/models/operations/listuccalls.d.ts +2 -1
- package/dist/esm/sdk/models/operations/listuccalls.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/listuccalls.js +2 -1
- package/dist/esm/sdk/models/operations/listuccalls.js.map +1 -1
- package/dist/esm/sdk/models/operations/listucrecordings.d.ts +2 -1
- package/dist/esm/sdk/models/operations/listucrecordings.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/listucrecordings.js +2 -1
- package/dist/esm/sdk/models/operations/listucrecordings.js.map +1 -1
- package/dist/esm/sdk/models/operations/patchucrecording.d.ts +2 -1
- package/dist/esm/sdk/models/operations/patchucrecording.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/patchucrecording.js +2 -1
- package/dist/esm/sdk/models/operations/patchucrecording.js.map +1 -1
- package/dist/esm/sdk/models/operations/updateucrecording.d.ts +2 -1
- package/dist/esm/sdk/models/operations/updateucrecording.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/updateucrecording.js +2 -1
- package/dist/esm/sdk/models/operations/updateucrecording.js.map +1 -1
- package/dist/esm/sdk/models/shared/uccall.d.ts +9 -0
- package/dist/esm/sdk/models/shared/uccall.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/uccall.js +8 -0
- package/dist/esm/sdk/models/shared/uccall.js.map +1 -1
- package/dist/esm/sdk/models/shared/ucrecording.d.ts +12 -0
- package/dist/esm/sdk/models/shared/ucrecording.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/ucrecording.js +11 -0
- package/dist/esm/sdk/models/shared/ucrecording.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +23 -4
- package/src/sdk/models/operations/createucrecording.ts +2 -1
- package/src/sdk/models/operations/getuccall.ts +2 -1
- package/src/sdk/models/operations/getucrecording.ts +2 -1
- package/src/sdk/models/operations/listuccalls.ts +2 -1
- package/src/sdk/models/operations/listucrecordings.ts +2 -1
- package/src/sdk/models/operations/patchucrecording.ts +2 -1
- package/src/sdk/models/operations/updateucrecording.ts +2 -1
- package/src/sdk/models/shared/uccall.ts +17 -0
- package/src/sdk/models/shared/ucrecording.ts +25 -0
|
@@ -4,8 +4,15 @@
|
|
|
4
4
|
import * as z from "zod/v3";
|
|
5
5
|
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
6
6
|
import { safeParse } from "../../../lib/schemas.js";
|
|
7
|
+
import * as openEnums from "../../types/enums.js";
|
|
7
8
|
import { PropertyUcCallTelephone$inboundSchema, } from "./propertyuccalltelephone.js";
|
|
8
9
|
import { UcContact$inboundSchema } from "./uccontact.js";
|
|
10
|
+
export const UcCallType = {
|
|
11
|
+
Inbound: "INBOUND",
|
|
12
|
+
Outbound: "OUTBOUND",
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const UcCallType$inboundSchema = openEnums.inboundSchema(UcCallType);
|
|
9
16
|
/** @internal */
|
|
10
17
|
export const UcCall$inboundSchema = z
|
|
11
18
|
.object({
|
|
@@ -20,6 +27,7 @@ export const UcCall$inboundSchema = z
|
|
|
20
27
|
start_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
21
28
|
.optional(),
|
|
22
29
|
telephone: PropertyUcCallTelephone$inboundSchema.optional(),
|
|
30
|
+
type: UcCallType$inboundSchema.optional(),
|
|
23
31
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)).optional(),
|
|
24
32
|
user_id: z.string().optional(),
|
|
25
33
|
user_name: z.string().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uccall.js","sourceRoot":"","sources":["../../../../../src/sdk/models/shared/uccall.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"uccall.js","sourceRoot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S,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oBAAoB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChD,oCAAoC,CACrC,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
2
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
5
|
import { UcRecordingMedia, UcRecordingMedia$Outbound } from "./ucrecordingmedia.js";
|
|
6
|
+
export declare const UcRecordingType: {
|
|
7
|
+
readonly Inbound: "INBOUND";
|
|
8
|
+
readonly Outbound: "OUTBOUND";
|
|
9
|
+
};
|
|
10
|
+
export type UcRecordingType = OpenEnum<typeof UcRecordingType>;
|
|
5
11
|
export type UcRecording = {
|
|
6
12
|
callId?: string | undefined;
|
|
7
13
|
contactId?: string | undefined;
|
|
@@ -16,6 +22,7 @@ export type UcRecording = {
|
|
|
16
22
|
[k: string]: any;
|
|
17
23
|
} | undefined;
|
|
18
24
|
startAt?: Date | undefined;
|
|
25
|
+
type?: UcRecordingType | undefined;
|
|
19
26
|
updatedAt?: Date | undefined;
|
|
20
27
|
userId?: string | undefined;
|
|
21
28
|
userName?: string | undefined;
|
|
@@ -23,6 +30,10 @@ export type UcRecording = {
|
|
|
23
30
|
webUrl?: string | undefined;
|
|
24
31
|
};
|
|
25
32
|
/** @internal */
|
|
33
|
+
export declare const UcRecordingType$inboundSchema: z.ZodType<UcRecordingType, z.ZodTypeDef, unknown>;
|
|
34
|
+
/** @internal */
|
|
35
|
+
export declare const UcRecordingType$outboundSchema: z.ZodType<string, z.ZodTypeDef, UcRecordingType>;
|
|
36
|
+
/** @internal */
|
|
26
37
|
export declare const UcRecording$inboundSchema: z.ZodType<UcRecording, z.ZodTypeDef, unknown>;
|
|
27
38
|
/** @internal */
|
|
28
39
|
export type UcRecording$Outbound = {
|
|
@@ -39,6 +50,7 @@ export type UcRecording$Outbound = {
|
|
|
39
50
|
[k: string]: any;
|
|
40
51
|
} | undefined;
|
|
41
52
|
start_at?: string | undefined;
|
|
53
|
+
type?: string | undefined;
|
|
42
54
|
updated_at?: string | undefined;
|
|
43
55
|
user_id?: string | undefined;
|
|
44
56
|
user_name?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ucrecording.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/models/shared/ucrecording.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"ucrecording.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/models/shared/ucrecording.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAI5B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAE/B,eAAO,MAAM,eAAe;;;CAGlB,CAAC;AACX,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,OAAO,eAAe,CAAC,CAAC;AAE/D,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,SAAS,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC7B,KAAK,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IACzB,SAAS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,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,KAAK,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC,GAAG,SAAS,CAAC;IACrD,GAAG,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IACvC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAChD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,WAAW,CAmCX,CAAC;AAEH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAElE;AACD,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAMlD"}
|
|
@@ -4,7 +4,16 @@
|
|
|
4
4
|
import * as z from "zod/v3";
|
|
5
5
|
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
6
6
|
import { safeParse } from "../../../lib/schemas.js";
|
|
7
|
+
import * as openEnums from "../../types/enums.js";
|
|
7
8
|
import { UcRecordingMedia$inboundSchema, UcRecordingMedia$outboundSchema, } from "./ucrecordingmedia.js";
|
|
9
|
+
export const UcRecordingType = {
|
|
10
|
+
Inbound: "INBOUND",
|
|
11
|
+
Outbound: "OUTBOUND",
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export const UcRecordingType$inboundSchema = openEnums.inboundSchema(UcRecordingType);
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const UcRecordingType$outboundSchema = openEnums.outboundSchema(UcRecordingType);
|
|
8
17
|
/** @internal */
|
|
9
18
|
export const UcRecording$inboundSchema = z.object({
|
|
10
19
|
call_id: z.string().optional(),
|
|
@@ -22,6 +31,7 @@ export const UcRecording$inboundSchema = z.object({
|
|
|
22
31
|
raw: z.record(z.any()).optional(),
|
|
23
32
|
start_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
24
33
|
.optional(),
|
|
34
|
+
type: UcRecordingType$inboundSchema.optional(),
|
|
25
35
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
26
36
|
.optional(),
|
|
27
37
|
user_id: z.string().optional(),
|
|
@@ -58,6 +68,7 @@ export const UcRecording$outboundSchema = z.object({
|
|
|
58
68
|
media: z.array(UcRecordingMedia$outboundSchema).optional(),
|
|
59
69
|
raw: z.record(z.any()).optional(),
|
|
60
70
|
startAt: z.date().transform(v => v.toISOString()).optional(),
|
|
71
|
+
type: UcRecordingType$outboundSchema.optional(),
|
|
61
72
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
62
73
|
userId: z.string().optional(),
|
|
63
74
|
userName: z.string().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ucrecording.js","sourceRoot":"","sources":["../../../../../src/sdk/models/shared/ucrecording.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAy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EH,MAAM,UAAU,iBAAiB,CAAC,WAAwB;IACxD,OAAO,IAAI,CAAC,SAAS,CAAC,0BAA0B,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;AACvE,CAAC;AACD,MAAM,UAAU,mBAAmB,CACjC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yBAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrD,yCAAyC,CAC1C,CAAC;AACJ,CAAC"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -73,8 +73,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
73
73
|
export const SDK_METADATA = {
|
|
74
74
|
language: "typescript",
|
|
75
75
|
openapiDocVersion: "1.0",
|
|
76
|
-
sdkVersion: "2.83.
|
|
77
|
-
genVersion: "2.869.
|
|
76
|
+
sdkVersion: "2.83.27",
|
|
77
|
+
genVersion: "2.869.25",
|
|
78
78
|
userAgent:
|
|
79
|
-
"speakeasy-sdk/typescript 2.83.
|
|
79
|
+
"speakeasy-sdk/typescript 2.83.27 2.869.25 1.0 @unified-api/typescript-sdk",
|
|
80
80
|
} as const;
|
package/src/lib/encodings.ts
CHANGED
|
@@ -479,6 +479,23 @@ export const encodeSpaceDelimitedQuery = queryEncoder(encodeSpaceDelimited);
|
|
|
479
479
|
export const encodePipeDelimitedQuery = queryEncoder(encodePipeDelimited);
|
|
480
480
|
export const encodeDeepObjectQuery = queryEncoder(encodeDeepObject);
|
|
481
481
|
|
|
482
|
+
function isBlobLike(val: unknown): val is Blob {
|
|
483
|
+
if (val instanceof Blob) {
|
|
484
|
+
return true;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
if (typeof val !== "object" || val == null || !(Symbol.toStringTag in val)) {
|
|
488
|
+
return false;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
const tag = val[Symbol.toStringTag];
|
|
492
|
+
if (tag !== "Blob" && tag !== "File") {
|
|
493
|
+
return false;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
return "stream" in val && typeof val.stream === "function";
|
|
497
|
+
}
|
|
498
|
+
|
|
482
499
|
export function appendForm(
|
|
483
500
|
fd: FormData,
|
|
484
501
|
key: string,
|
|
@@ -487,10 +504,12 @@ export function appendForm(
|
|
|
487
504
|
): void {
|
|
488
505
|
if (value == null) {
|
|
489
506
|
return;
|
|
490
|
-
} else if (value
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
507
|
+
} else if (isBlobLike(value)) {
|
|
508
|
+
if (fileName) {
|
|
509
|
+
fd.append(key, value as Blob, fileName);
|
|
510
|
+
} else {
|
|
511
|
+
fd.append(key, value as Blob);
|
|
512
|
+
}
|
|
494
513
|
} else {
|
|
495
514
|
fd.append(key, String(value));
|
|
496
515
|
}
|
|
@@ -21,9 +21,10 @@ export const CreateUcRecordingQueryParamFields = {
|
|
|
21
21
|
ContactPhone: "contact_phone",
|
|
22
22
|
UserId: "user_id",
|
|
23
23
|
Media: "media",
|
|
24
|
-
Raw: "raw",
|
|
25
24
|
UserName: "user_name",
|
|
26
25
|
UserPhone: "user_phone",
|
|
26
|
+
Type: "type",
|
|
27
|
+
Raw: "raw",
|
|
27
28
|
} as const;
|
|
28
29
|
export type CreateUcRecordingQueryParamFields = ClosedEnum<
|
|
29
30
|
typeof CreateUcRecordingQueryParamFields
|
|
@@ -17,9 +17,10 @@ export const GetUcCallQueryParamFields = {
|
|
|
17
17
|
UserId: "user_id",
|
|
18
18
|
Contacts: "contacts",
|
|
19
19
|
IsPrivate: "is_private",
|
|
20
|
-
Raw: "raw",
|
|
21
20
|
UserName: "user_name",
|
|
22
21
|
UserPhone: "user_phone",
|
|
22
|
+
Type: "type",
|
|
23
|
+
Raw: "raw",
|
|
23
24
|
} as const;
|
|
24
25
|
export type GetUcCallQueryParamFields = ClosedEnum<
|
|
25
26
|
typeof GetUcCallQueryParamFields
|
|
@@ -20,9 +20,10 @@ export const GetUcRecordingQueryParamFields = {
|
|
|
20
20
|
ContactPhone: "contact_phone",
|
|
21
21
|
UserId: "user_id",
|
|
22
22
|
Media: "media",
|
|
23
|
-
Raw: "raw",
|
|
24
23
|
UserName: "user_name",
|
|
25
24
|
UserPhone: "user_phone",
|
|
25
|
+
Type: "type",
|
|
26
|
+
Raw: "raw",
|
|
26
27
|
} as const;
|
|
27
28
|
export type GetUcRecordingQueryParamFields = ClosedEnum<
|
|
28
29
|
typeof GetUcRecordingQueryParamFields
|
|
@@ -17,9 +17,10 @@ export const ListUcCallsQueryParamFields = {
|
|
|
17
17
|
UserId: "user_id",
|
|
18
18
|
Contacts: "contacts",
|
|
19
19
|
IsPrivate: "is_private",
|
|
20
|
-
Raw: "raw",
|
|
21
20
|
UserName: "user_name",
|
|
22
21
|
UserPhone: "user_phone",
|
|
22
|
+
Type: "type",
|
|
23
|
+
Raw: "raw",
|
|
23
24
|
} as const;
|
|
24
25
|
export type ListUcCallsQueryParamFields = ClosedEnum<
|
|
25
26
|
typeof ListUcCallsQueryParamFields
|
|
@@ -20,9 +20,10 @@ export const ListUcRecordingsQueryParamFields = {
|
|
|
20
20
|
ContactPhone: "contact_phone",
|
|
21
21
|
UserId: "user_id",
|
|
22
22
|
Media: "media",
|
|
23
|
-
Raw: "raw",
|
|
24
23
|
UserName: "user_name",
|
|
25
24
|
UserPhone: "user_phone",
|
|
25
|
+
Type: "type",
|
|
26
|
+
Raw: "raw",
|
|
26
27
|
} as const;
|
|
27
28
|
export type ListUcRecordingsQueryParamFields = ClosedEnum<
|
|
28
29
|
typeof ListUcRecordingsQueryParamFields
|
|
@@ -21,9 +21,10 @@ export const PatchUcRecordingQueryParamFields = {
|
|
|
21
21
|
ContactPhone: "contact_phone",
|
|
22
22
|
UserId: "user_id",
|
|
23
23
|
Media: "media",
|
|
24
|
-
Raw: "raw",
|
|
25
24
|
UserName: "user_name",
|
|
26
25
|
UserPhone: "user_phone",
|
|
26
|
+
Type: "type",
|
|
27
|
+
Raw: "raw",
|
|
27
28
|
} as const;
|
|
28
29
|
export type PatchUcRecordingQueryParamFields = ClosedEnum<
|
|
29
30
|
typeof PatchUcRecordingQueryParamFields
|
|
@@ -21,9 +21,10 @@ export const UpdateUcRecordingQueryParamFields = {
|
|
|
21
21
|
ContactPhone: "contact_phone",
|
|
22
22
|
UserId: "user_id",
|
|
23
23
|
Media: "media",
|
|
24
|
-
Raw: "raw",
|
|
25
24
|
UserName: "user_name",
|
|
26
25
|
UserPhone: "user_phone",
|
|
26
|
+
Type: "type",
|
|
27
|
+
Raw: "raw",
|
|
27
28
|
} as const;
|
|
28
29
|
export type UpdateUcRecordingQueryParamFields = ClosedEnum<
|
|
29
30
|
typeof UpdateUcRecordingQueryParamFields
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../../types/enums.js";
|
|
9
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
10
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
12
|
import {
|
|
@@ -13,6 +15,12 @@ import {
|
|
|
13
15
|
} from "./propertyuccalltelephone.js";
|
|
14
16
|
import { UcContact, UcContact$inboundSchema } from "./uccontact.js";
|
|
15
17
|
|
|
18
|
+
export const UcCallType = {
|
|
19
|
+
Inbound: "INBOUND",
|
|
20
|
+
Outbound: "OUTBOUND",
|
|
21
|
+
} as const;
|
|
22
|
+
export type UcCallType = OpenEnum<typeof UcCallType>;
|
|
23
|
+
|
|
16
24
|
export type UcCall = {
|
|
17
25
|
contactId?: string | undefined;
|
|
18
26
|
contacts?: Array<UcContact> | undefined;
|
|
@@ -26,12 +34,20 @@ export type UcCall = {
|
|
|
26
34
|
* The telephone number called
|
|
27
35
|
*/
|
|
28
36
|
telephone?: PropertyUcCallTelephone | undefined;
|
|
37
|
+
type?: UcCallType | undefined;
|
|
29
38
|
updatedAt?: Date | undefined;
|
|
30
39
|
userId?: string | undefined;
|
|
31
40
|
userName?: string | undefined;
|
|
32
41
|
userPhone?: string | undefined;
|
|
33
42
|
};
|
|
34
43
|
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const UcCallType$inboundSchema: z.ZodType<
|
|
46
|
+
UcCallType,
|
|
47
|
+
z.ZodTypeDef,
|
|
48
|
+
unknown
|
|
49
|
+
> = openEnums.inboundSchema(UcCallType);
|
|
50
|
+
|
|
35
51
|
/** @internal */
|
|
36
52
|
export const UcCall$inboundSchema: z.ZodType<UcCall, z.ZodTypeDef, unknown> = z
|
|
37
53
|
.object({
|
|
@@ -48,6 +64,7 @@ export const UcCall$inboundSchema: z.ZodType<UcCall, z.ZodTypeDef, unknown> = z
|
|
|
48
64
|
start_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
49
65
|
.optional(),
|
|
50
66
|
telephone: PropertyUcCallTelephone$inboundSchema.optional(),
|
|
67
|
+
type: UcCallType$inboundSchema.optional(),
|
|
51
68
|
updated_at: z.string().datetime({ offset: true }).transform(v =>
|
|
52
69
|
new Date(v)
|
|
53
70
|
).optional(),
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../../types/enums.js";
|
|
9
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
10
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
12
|
import {
|
|
@@ -14,6 +16,12 @@ import {
|
|
|
14
16
|
UcRecordingMedia$outboundSchema,
|
|
15
17
|
} from "./ucrecordingmedia.js";
|
|
16
18
|
|
|
19
|
+
export const UcRecordingType = {
|
|
20
|
+
Inbound: "INBOUND",
|
|
21
|
+
Outbound: "OUTBOUND",
|
|
22
|
+
} as const;
|
|
23
|
+
export type UcRecordingType = OpenEnum<typeof UcRecordingType>;
|
|
24
|
+
|
|
17
25
|
export type UcRecording = {
|
|
18
26
|
callId?: string | undefined;
|
|
19
27
|
contactId?: string | undefined;
|
|
@@ -26,6 +34,7 @@ export type UcRecording = {
|
|
|
26
34
|
media?: Array<UcRecordingMedia> | undefined;
|
|
27
35
|
raw?: { [k: string]: any } | undefined;
|
|
28
36
|
startAt?: Date | undefined;
|
|
37
|
+
type?: UcRecordingType | undefined;
|
|
29
38
|
updatedAt?: Date | undefined;
|
|
30
39
|
userId?: string | undefined;
|
|
31
40
|
userName?: string | undefined;
|
|
@@ -33,6 +42,19 @@ export type UcRecording = {
|
|
|
33
42
|
webUrl?: string | undefined;
|
|
34
43
|
};
|
|
35
44
|
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const UcRecordingType$inboundSchema: z.ZodType<
|
|
47
|
+
UcRecordingType,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
unknown
|
|
50
|
+
> = openEnums.inboundSchema(UcRecordingType);
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const UcRecordingType$outboundSchema: z.ZodType<
|
|
53
|
+
string,
|
|
54
|
+
z.ZodTypeDef,
|
|
55
|
+
UcRecordingType
|
|
56
|
+
> = openEnums.outboundSchema(UcRecordingType);
|
|
57
|
+
|
|
36
58
|
/** @internal */
|
|
37
59
|
export const UcRecording$inboundSchema: z.ZodType<
|
|
38
60
|
UcRecording,
|
|
@@ -54,6 +76,7 @@ export const UcRecording$inboundSchema: z.ZodType<
|
|
|
54
76
|
raw: z.record(z.any()).optional(),
|
|
55
77
|
start_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
56
78
|
.optional(),
|
|
79
|
+
type: UcRecordingType$inboundSchema.optional(),
|
|
57
80
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
58
81
|
.optional(),
|
|
59
82
|
user_id: z.string().optional(),
|
|
@@ -90,6 +113,7 @@ export type UcRecording$Outbound = {
|
|
|
90
113
|
media?: Array<UcRecordingMedia$Outbound> | undefined;
|
|
91
114
|
raw?: { [k: string]: any } | undefined;
|
|
92
115
|
start_at?: string | undefined;
|
|
116
|
+
type?: string | undefined;
|
|
93
117
|
updated_at?: string | undefined;
|
|
94
118
|
user_id?: string | undefined;
|
|
95
119
|
user_name?: string | undefined;
|
|
@@ -114,6 +138,7 @@ export const UcRecording$outboundSchema: z.ZodType<
|
|
|
114
138
|
media: z.array(UcRecordingMedia$outboundSchema).optional(),
|
|
115
139
|
raw: z.record(z.any()).optional(),
|
|
116
140
|
startAt: z.date().transform(v => v.toISOString()).optional(),
|
|
141
|
+
type: UcRecordingType$outboundSchema.optional(),
|
|
117
142
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
118
143
|
userId: z.string().optional(),
|
|
119
144
|
userName: z.string().optional(),
|