syllable-sdk 0.1.0-alpha.17 → 0.1.0-alpha.19
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/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/custommessagecreaterequest.d.ts +5 -0
- package/models/components/custommessagecreaterequest.d.ts.map +1 -1
- package/models/components/custommessagecreaterequest.js +2 -0
- package/models/components/custommessagecreaterequest.js.map +1 -1
- package/models/components/custommessageproperties.d.ts +6 -0
- package/models/components/custommessageproperties.d.ts.map +1 -1
- package/models/components/custommessageproperties.js +2 -0
- package/models/components/custommessageproperties.js.map +1 -1
- package/models/components/custommessageresponse.d.ts +15 -0
- package/models/components/custommessageresponse.d.ts.map +1 -1
- package/models/components/custommessageresponse.js +17 -0
- package/models/components/custommessageresponse.js.map +1 -1
- package/models/components/custommessageupdaterequest.d.ts +5 -0
- package/models/components/custommessageupdaterequest.d.ts.map +1 -1
- package/models/components/custommessageupdaterequest.js +2 -0
- package/models/components/custommessageupdaterequest.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/custommessagecreaterequest.ts +7 -0
- package/src/models/components/custommessageproperties.ts +2 -0
- package/src/models/components/custommessageresponse.ts +32 -0
- package/src/models/components/custommessageupdaterequest.ts +7 -0
package/lib/config.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
27
27
|
export declare const SDK_METADATA: {
|
|
28
28
|
readonly language: "typescript";
|
|
29
29
|
readonly openapiDocVersion: "0.0.2";
|
|
30
|
-
readonly sdkVersion: "0.1.0-alpha.
|
|
30
|
+
readonly sdkVersion: "0.1.0-alpha.19";
|
|
31
31
|
readonly genVersion: "2.477.0";
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.19 2.477.0 0.0.2 syllable-sdk";
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -36,8 +36,8 @@ function serverURLFromOptions(options) {
|
|
|
36
36
|
exports.SDK_METADATA = {
|
|
37
37
|
language: "typescript",
|
|
38
38
|
openapiDocVersion: "0.0.2",
|
|
39
|
-
sdkVersion: "0.1.0-alpha.
|
|
39
|
+
sdkVersion: "0.1.0-alpha.19",
|
|
40
40
|
genVersion: "2.477.0",
|
|
41
|
-
userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.
|
|
41
|
+
userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.19 2.477.0 0.0.2 syllable-sdk",
|
|
42
42
|
};
|
|
43
43
|
//# sourceMappingURL=config.js.map
|
|
@@ -10,6 +10,10 @@ export type CustomMessageCreateRequest = {
|
|
|
10
10
|
* The text of the custom message
|
|
11
11
|
*/
|
|
12
12
|
text: string;
|
|
13
|
+
/**
|
|
14
|
+
* The label of the custom message
|
|
15
|
+
*/
|
|
16
|
+
label?: string | null | undefined;
|
|
13
17
|
type?: string | undefined;
|
|
14
18
|
};
|
|
15
19
|
/** @internal */
|
|
@@ -18,6 +22,7 @@ export declare const CustomMessageCreateRequest$inboundSchema: z.ZodType<CustomM
|
|
|
18
22
|
export type CustomMessageCreateRequest$Outbound = {
|
|
19
23
|
name: string;
|
|
20
24
|
text: string;
|
|
25
|
+
label?: string | null | undefined;
|
|
21
26
|
type: string;
|
|
22
27
|
};
|
|
23
28
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custommessagecreaterequest.d.ts","sourceRoot":"","sources":["../../src/models/components/custommessagecreaterequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,
|
|
1
|
+
{"version":3,"file":"custommessagecreaterequest.d.ts","sourceRoot":"","sources":["../../src/models/components/custommessagecreaterequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,mCAAmC,GAAG;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,0BAA0B,CAM1B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,2BAA2B,CAAC;IAC3C,0EAA0E;IACnE,MAAM,aAAa,8DAA2C,CAAC;IACtE,2EAA2E;IACpE,MAAM,cAAc,0FAA4C,CAAC;IACxE,qEAAqE;IACrE,KAAY,QAAQ,GAAG,mCAAmC,CAAC;CAC5D;AAED,wBAAgB,gCAAgC,CAC9C,0BAA0B,EAAE,0BAA0B,GACrD,MAAM,CAIR;AAED,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
|
|
@@ -35,12 +35,14 @@ const schemas_js_1 = require("../../lib/schemas.js");
|
|
|
35
35
|
exports.CustomMessageCreateRequest$inboundSchema = z.object({
|
|
36
36
|
name: z.string(),
|
|
37
37
|
text: z.string(),
|
|
38
|
+
label: z.nullable(z.string()).optional(),
|
|
38
39
|
type: z.string().default("greeting"),
|
|
39
40
|
});
|
|
40
41
|
/** @internal */
|
|
41
42
|
exports.CustomMessageCreateRequest$outboundSchema = z.object({
|
|
42
43
|
name: z.string(),
|
|
43
44
|
text: z.string(),
|
|
45
|
+
label: z.nullable(z.string()).optional(),
|
|
44
46
|
type: z.string().default("greeting"),
|
|
45
47
|
});
|
|
46
48
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custommessagecreaterequest.js","sourceRoot":"","sources":["../../src/models/components/custommessagecreaterequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"custommessagecreaterequest.js","sourceRoot":"","sources":["../../src/models/components/custommessagecreaterequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAoEH,4EAMC;AAED,gFAQC;AAlFD,uCAAyB;AACzB,qDAAiD;AAoBjD,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CA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|
|
|
4
4
|
readonly Id: "id";
|
|
5
5
|
readonly Name: "name";
|
|
6
6
|
readonly Text: "text";
|
|
7
|
+
readonly Label: "label";
|
|
8
|
+
readonly UpdatedAt: "updated_at";
|
|
7
9
|
};
|
|
8
10
|
export type CustomMessageProperties = ClosedEnum<typeof CustomMessageProperties>;
|
|
9
11
|
/** @internal */
|
|
@@ -20,12 +22,16 @@ export declare namespace CustomMessageProperties$ {
|
|
|
20
22
|
readonly Id: "id";
|
|
21
23
|
readonly Name: "name";
|
|
22
24
|
readonly Text: "text";
|
|
25
|
+
readonly Label: "label";
|
|
26
|
+
readonly UpdatedAt: "updated_at";
|
|
23
27
|
}>;
|
|
24
28
|
/** @deprecated use `CustomMessageProperties$outboundSchema` instead. */
|
|
25
29
|
const outboundSchema: z.ZodNativeEnum<{
|
|
26
30
|
readonly Id: "id";
|
|
27
31
|
readonly Name: "name";
|
|
28
32
|
readonly Text: "text";
|
|
33
|
+
readonly Label: "label";
|
|
34
|
+
readonly UpdatedAt: "updated_at";
|
|
29
35
|
}>;
|
|
30
36
|
}
|
|
31
37
|
//# sourceMappingURL=custommessageproperties.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custommessageproperties.d.ts","sourceRoot":"","sources":["../../src/models/components/custommessageproperties.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"custommessageproperties.d.ts","sourceRoot":"","sources":["../../src/models/components/custommessageproperties.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,uBAAuB;;;;;;CAM1B,CAAC;AACX,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAC9C,OAAO,uBAAuB,CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,aAAa,CACjE,OAAO,uBAAuB,CACS,CAAC;AAE1C,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,aAAa,CAClE,OAAO,uBAAuB,CACS,CAAC;AAE1C;;;GAGG;AACH,yBAAiB,wBAAwB,CAAC;IACxC,uEAAuE;IAChE,MAAM,aAAa;;;;;;MAAwC,CAAC;IACnE,wEAAwE;IACjE,MAAM,cAAc;;;;;;MAAyC,CAAC;CACtE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custommessageproperties.js","sourceRoot":"","sources":["../../src/models/components/custommessageproperties.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,uBAAuB,GAAG;IACrC,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"custommessageproperties.js","sourceRoot":"","sources":["../../src/models/components/custommessageproperties.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,uBAAuB,GAAG;IACrC,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,YAAY;CACf,CAAC;AAKX,gBAAgB;AACH,QAAA,qCAAqC,GAE9C,CAAC,CAAC,UAAU,CAAC,+BAAuB,CAAC,CAAC;AAE1C,gBAAgB;AACH,QAAA,sCAAsC,GAE/C,6CAAqC,CAAC;AAE1C;;;GAGG;AACH,IAAiB,wBAAwB,CAKxC;AALD,WAAiB,wBAAwB;IACvC,uEAAuE;IAC1D,sCAAa,GAAG,6CAAqC,CAAC;IACnE,wEAAwE;IAC3D,uCAAc,GAAG,8CAAsC,CAAC;AACvE,CAAC,EALgB,wBAAwB,wCAAxB,wBAAwB,QAKxC"}
|
|
@@ -10,10 +10,22 @@ export type CustomMessageResponse = {
|
|
|
10
10
|
* The text of the custom message
|
|
11
11
|
*/
|
|
12
12
|
text: string;
|
|
13
|
+
/**
|
|
14
|
+
* The label of the custom message
|
|
15
|
+
*/
|
|
16
|
+
label?: string | null | undefined;
|
|
13
17
|
/**
|
|
14
18
|
* The ID of the custom message
|
|
15
19
|
*/
|
|
16
20
|
id: number;
|
|
21
|
+
/**
|
|
22
|
+
* Timestamp of the most recent update to the custom message
|
|
23
|
+
*/
|
|
24
|
+
updatedAt: Date;
|
|
25
|
+
/**
|
|
26
|
+
* The number of agents using the custom message
|
|
27
|
+
*/
|
|
28
|
+
agentCount?: number | null | undefined;
|
|
17
29
|
type?: string | undefined;
|
|
18
30
|
};
|
|
19
31
|
/** @internal */
|
|
@@ -22,7 +34,10 @@ export declare const CustomMessageResponse$inboundSchema: z.ZodType<CustomMessag
|
|
|
22
34
|
export type CustomMessageResponse$Outbound = {
|
|
23
35
|
name: string;
|
|
24
36
|
text: string;
|
|
37
|
+
label?: string | null | undefined;
|
|
25
38
|
id: number;
|
|
39
|
+
updated_at: string;
|
|
40
|
+
agent_count?: number | null | undefined;
|
|
26
41
|
type: string;
|
|
27
42
|
};
|
|
28
43
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custommessageresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/custommessageresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"custommessageresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/custommessageresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAA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,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR;AAED,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
|
|
@@ -30,20 +30,37 @@ exports.CustomMessageResponse$ = exports.CustomMessageResponse$outboundSchema =
|
|
|
30
30
|
exports.customMessageResponseToJSON = customMessageResponseToJSON;
|
|
31
31
|
exports.customMessageResponseFromJSON = customMessageResponseFromJSON;
|
|
32
32
|
const z = __importStar(require("zod"));
|
|
33
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
33
34
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
34
35
|
/** @internal */
|
|
35
36
|
exports.CustomMessageResponse$inboundSchema = z.object({
|
|
36
37
|
name: z.string(),
|
|
37
38
|
text: z.string(),
|
|
39
|
+
label: z.nullable(z.string()).optional(),
|
|
38
40
|
id: z.number().int(),
|
|
41
|
+
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
42
|
+
agent_count: z.nullable(z.number().int()).optional(),
|
|
39
43
|
type: z.string().default("greeting"),
|
|
44
|
+
}).transform((v) => {
|
|
45
|
+
return (0, primitives_js_1.remap)(v, {
|
|
46
|
+
"updated_at": "updatedAt",
|
|
47
|
+
"agent_count": "agentCount",
|
|
48
|
+
});
|
|
40
49
|
});
|
|
41
50
|
/** @internal */
|
|
42
51
|
exports.CustomMessageResponse$outboundSchema = z.object({
|
|
43
52
|
name: z.string(),
|
|
44
53
|
text: z.string(),
|
|
54
|
+
label: z.nullable(z.string()).optional(),
|
|
45
55
|
id: z.number().int(),
|
|
56
|
+
updatedAt: z.date().transform(v => v.toISOString()),
|
|
57
|
+
agentCount: z.nullable(z.number().int()).optional(),
|
|
46
58
|
type: z.string().default("greeting"),
|
|
59
|
+
}).transform((v) => {
|
|
60
|
+
return (0, primitives_js_1.remap)(v, {
|
|
61
|
+
updatedAt: "updated_at",
|
|
62
|
+
agentCount: "agent_count",
|
|
63
|
+
});
|
|
47
64
|
});
|
|
48
65
|
/**
|
|
49
66
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custommessageresponse.js","sourceRoot":"","sources":["../../src/models/components/custommessageresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"custommessageresponse.js","sourceRoot":"","sources":["../../src/models/components/custommessageresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAoGH,kEAMC;AAED,sEAQC;AAlHD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAgCjD,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACpB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IAC7E,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACpD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC;CACrC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,WAAW;QACzB,aAAa,EAAE,Y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A,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2CAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
|
|
@@ -10,6 +10,10 @@ export type CustomMessageUpdateRequest = {
|
|
|
10
10
|
* The text of the custom message
|
|
11
11
|
*/
|
|
12
12
|
text: string;
|
|
13
|
+
/**
|
|
14
|
+
* The label of the custom message
|
|
15
|
+
*/
|
|
16
|
+
label?: string | null | undefined;
|
|
13
17
|
/**
|
|
14
18
|
* The ID of the custom message
|
|
15
19
|
*/
|
|
@@ -22,6 +26,7 @@ export declare const CustomMessageUpdateRequest$inboundSchema: z.ZodType<CustomM
|
|
|
22
26
|
export type CustomMessageUpdateRequest$Outbound = {
|
|
23
27
|
name: string;
|
|
24
28
|
text: string;
|
|
29
|
+
label?: string | null | undefined;
|
|
25
30
|
id: number;
|
|
26
31
|
type: string;
|
|
27
32
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custommessageupdaterequest.d.ts","sourceRoot":"","sources":["../../src/models/components/custommessageupdaterequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,
|
|
1
|
+
{"version":3,"file":"custommessageupdaterequest.d.ts","sourceRoot":"","sources":["../../src/models/components/custommessageupdaterequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,mCAAmC,GAAG;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,0BAA0B,CAO1B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,2BAA2B,CAAC;IAC3C,0EAA0E;IACnE,MAAM,aAAa,8DAA2C,CAAC;IACtE,2EAA2E;IACpE,MAAM,cAAc,0FAA4C,CAAC;IACxE,qEAAqE;IACrE,KAAY,QAAQ,GAAG,mCAAmC,CAAC;CAC5D;AAED,wBAAgB,gCAAgC,CAC9C,0BAA0B,EAAE,0BAA0B,GACrD,MAAM,CAIR;AAED,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
|
|
@@ -35,6 +35,7 @@ const schemas_js_1 = require("../../lib/schemas.js");
|
|
|
35
35
|
exports.CustomMessageUpdateRequest$inboundSchema = z.object({
|
|
36
36
|
name: z.string(),
|
|
37
37
|
text: z.string(),
|
|
38
|
+
label: z.nullable(z.string()).optional(),
|
|
38
39
|
id: z.number().int(),
|
|
39
40
|
type: z.string().default("greeting"),
|
|
40
41
|
});
|
|
@@ -42,6 +43,7 @@ exports.CustomMessageUpdateRequest$inboundSchema = z.object({
|
|
|
42
43
|
exports.CustomMessageUpdateRequest$outboundSchema = z.object({
|
|
43
44
|
name: z.string(),
|
|
44
45
|
text: z.string(),
|
|
46
|
+
label: z.nullable(z.string()).optional(),
|
|
45
47
|
id: z.number().int(),
|
|
46
48
|
type: z.string().default("greeting"),
|
|
47
49
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custommessageupdaterequest.js","sourceRoot":"","sources":["../../src/models/components/custommessageupdaterequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"custommessageupdaterequest.js","sourceRoot":"","sources":["../../src/models/components/custommessageupdaterequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA2EH,4EAMC;AAED,gFAQC;AAzFD,uCAAyB;AACzB,qDAAiD;AAwBjD,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,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61,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
61
61
|
export const SDK_METADATA = {
|
|
62
62
|
language: "typescript",
|
|
63
63
|
openapiDocVersion: "0.0.2",
|
|
64
|
-
sdkVersion: "0.1.0-alpha.
|
|
64
|
+
sdkVersion: "0.1.0-alpha.19",
|
|
65
65
|
genVersion: "2.477.0",
|
|
66
66
|
userAgent:
|
|
67
|
-
"speakeasy-sdk/typescript 0.1.0-alpha.
|
|
67
|
+
"speakeasy-sdk/typescript 0.1.0-alpha.19 2.477.0 0.0.2 syllable-sdk",
|
|
68
68
|
} as const;
|
|
@@ -16,6 +16,10 @@ export type CustomMessageCreateRequest = {
|
|
|
16
16
|
* The text of the custom message
|
|
17
17
|
*/
|
|
18
18
|
text: string;
|
|
19
|
+
/**
|
|
20
|
+
* The label of the custom message
|
|
21
|
+
*/
|
|
22
|
+
label?: string | null | undefined;
|
|
19
23
|
type?: string | undefined;
|
|
20
24
|
};
|
|
21
25
|
|
|
@@ -27,6 +31,7 @@ export const CustomMessageCreateRequest$inboundSchema: z.ZodType<
|
|
|
27
31
|
> = z.object({
|
|
28
32
|
name: z.string(),
|
|
29
33
|
text: z.string(),
|
|
34
|
+
label: z.nullable(z.string()).optional(),
|
|
30
35
|
type: z.string().default("greeting"),
|
|
31
36
|
});
|
|
32
37
|
|
|
@@ -34,6 +39,7 @@ export const CustomMessageCreateRequest$inboundSchema: z.ZodType<
|
|
|
34
39
|
export type CustomMessageCreateRequest$Outbound = {
|
|
35
40
|
name: string;
|
|
36
41
|
text: string;
|
|
42
|
+
label?: string | null | undefined;
|
|
37
43
|
type: string;
|
|
38
44
|
};
|
|
39
45
|
|
|
@@ -45,6 +51,7 @@ export const CustomMessageCreateRequest$outboundSchema: z.ZodType<
|
|
|
45
51
|
> = z.object({
|
|
46
52
|
name: z.string(),
|
|
47
53
|
text: z.string(),
|
|
54
|
+
label: z.nullable(z.string()).optional(),
|
|
48
55
|
type: z.string().default("greeting"),
|
|
49
56
|
});
|
|
50
57
|
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -16,10 +17,22 @@ export type CustomMessageResponse = {
|
|
|
16
17
|
* The text of the custom message
|
|
17
18
|
*/
|
|
18
19
|
text: string;
|
|
20
|
+
/**
|
|
21
|
+
* The label of the custom message
|
|
22
|
+
*/
|
|
23
|
+
label?: string | null | undefined;
|
|
19
24
|
/**
|
|
20
25
|
* The ID of the custom message
|
|
21
26
|
*/
|
|
22
27
|
id: number;
|
|
28
|
+
/**
|
|
29
|
+
* Timestamp of the most recent update to the custom message
|
|
30
|
+
*/
|
|
31
|
+
updatedAt: Date;
|
|
32
|
+
/**
|
|
33
|
+
* The number of agents using the custom message
|
|
34
|
+
*/
|
|
35
|
+
agentCount?: number | null | undefined;
|
|
23
36
|
type?: string | undefined;
|
|
24
37
|
};
|
|
25
38
|
|
|
@@ -31,15 +44,26 @@ export const CustomMessageResponse$inboundSchema: z.ZodType<
|
|
|
31
44
|
> = z.object({
|
|
32
45
|
name: z.string(),
|
|
33
46
|
text: z.string(),
|
|
47
|
+
label: z.nullable(z.string()).optional(),
|
|
34
48
|
id: z.number().int(),
|
|
49
|
+
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
50
|
+
agent_count: z.nullable(z.number().int()).optional(),
|
|
35
51
|
type: z.string().default("greeting"),
|
|
52
|
+
}).transform((v) => {
|
|
53
|
+
return remap$(v, {
|
|
54
|
+
"updated_at": "updatedAt",
|
|
55
|
+
"agent_count": "agentCount",
|
|
56
|
+
});
|
|
36
57
|
});
|
|
37
58
|
|
|
38
59
|
/** @internal */
|
|
39
60
|
export type CustomMessageResponse$Outbound = {
|
|
40
61
|
name: string;
|
|
41
62
|
text: string;
|
|
63
|
+
label?: string | null | undefined;
|
|
42
64
|
id: number;
|
|
65
|
+
updated_at: string;
|
|
66
|
+
agent_count?: number | null | undefined;
|
|
43
67
|
type: string;
|
|
44
68
|
};
|
|
45
69
|
|
|
@@ -51,8 +75,16 @@ export const CustomMessageResponse$outboundSchema: z.ZodType<
|
|
|
51
75
|
> = z.object({
|
|
52
76
|
name: z.string(),
|
|
53
77
|
text: z.string(),
|
|
78
|
+
label: z.nullable(z.string()).optional(),
|
|
54
79
|
id: z.number().int(),
|
|
80
|
+
updatedAt: z.date().transform(v => v.toISOString()),
|
|
81
|
+
agentCount: z.nullable(z.number().int()).optional(),
|
|
55
82
|
type: z.string().default("greeting"),
|
|
83
|
+
}).transform((v) => {
|
|
84
|
+
return remap$(v, {
|
|
85
|
+
updatedAt: "updated_at",
|
|
86
|
+
agentCount: "agent_count",
|
|
87
|
+
});
|
|
56
88
|
});
|
|
57
89
|
|
|
58
90
|
/**
|
|
@@ -16,6 +16,10 @@ export type CustomMessageUpdateRequest = {
|
|
|
16
16
|
* The text of the custom message
|
|
17
17
|
*/
|
|
18
18
|
text: string;
|
|
19
|
+
/**
|
|
20
|
+
* The label of the custom message
|
|
21
|
+
*/
|
|
22
|
+
label?: string | null | undefined;
|
|
19
23
|
/**
|
|
20
24
|
* The ID of the custom message
|
|
21
25
|
*/
|
|
@@ -31,6 +35,7 @@ export const CustomMessageUpdateRequest$inboundSchema: z.ZodType<
|
|
|
31
35
|
> = z.object({
|
|
32
36
|
name: z.string(),
|
|
33
37
|
text: z.string(),
|
|
38
|
+
label: z.nullable(z.string()).optional(),
|
|
34
39
|
id: z.number().int(),
|
|
35
40
|
type: z.string().default("greeting"),
|
|
36
41
|
});
|
|
@@ -39,6 +44,7 @@ export const CustomMessageUpdateRequest$inboundSchema: z.ZodType<
|
|
|
39
44
|
export type CustomMessageUpdateRequest$Outbound = {
|
|
40
45
|
name: string;
|
|
41
46
|
text: string;
|
|
47
|
+
label?: string | null | undefined;
|
|
42
48
|
id: number;
|
|
43
49
|
type: string;
|
|
44
50
|
};
|
|
@@ -51,6 +57,7 @@ export const CustomMessageUpdateRequest$outboundSchema: z.ZodType<
|
|
|
51
57
|
> = z.object({
|
|
52
58
|
name: z.string(),
|
|
53
59
|
text: z.string(),
|
|
60
|
+
label: z.nullable(z.string()).optional(),
|
|
54
61
|
id: z.number().int(),
|
|
55
62
|
type: z.string().default("greeting"),
|
|
56
63
|
});
|