syllable-sdk 1.0.13-rc.2 → 1.0.13-rc.3
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/bin/mcp-server.js +5 -36
- package/bin/mcp-server.js.map +10 -11
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/custommessagecreaterequest.d.ts +0 -6
- package/models/components/custommessagecreaterequest.d.ts.map +1 -1
- package/models/components/custommessagecreaterequest.js +0 -3
- package/models/components/custommessagecreaterequest.js.map +1 -1
- package/models/components/custommessageresponse.d.ts +0 -6
- package/models/components/custommessageresponse.d.ts.map +1 -1
- package/models/components/custommessageresponse.js +0 -3
- package/models/components/custommessageresponse.js.map +1 -1
- package/models/components/custommessageupdaterequest.d.ts +0 -6
- package/models/components/custommessageupdaterequest.d.ts.map +1 -1
- package/models/components/custommessageupdaterequest.js +0 -3
- package/models/components/custommessageupdaterequest.js.map +1 -1
- package/models/components/index.d.ts +0 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -1
- package/models/components/index.js.map +1 -1
- package/openapi.json +0 -52
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/custommessagecreaterequest.ts +0 -13
- package/src/models/components/custommessageresponse.ts +0 -13
- package/src/models/components/custommessageupdaterequest.ts +0 -13
- package/src/models/components/index.ts +0 -1
- package/models/components/custommessageconfig.d.ts +0 -23
- package/models/components/custommessageconfig.d.ts.map +0 -1
- package/models/components/custommessageconfig.js +0 -67
- package/models/components/custommessageconfig.js.map +0 -1
- package/src/models/components/custommessageconfig.ts +0 -68
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
/**
|
|
5
|
-
* Additional configuration options for the message.
|
|
6
|
-
*/
|
|
7
|
-
export type CustomMessageConfig = {
|
|
8
|
-
/**
|
|
9
|
-
* The behavior of an agent assigned this message at the beginning of a user-initiated non-voice session (e.g., SMS, email, etc.). 'respond_only' will skip the message and respond to the user's message. 'greet_and_respond' will deliver the message and respond to the user's message. 'greet_only' will deliver the message and not respond to the user's message. Defaults to 'greet_only'.
|
|
10
|
-
*/
|
|
11
|
-
userInitiatedNonVoiceSessionBehavior?: string | undefined;
|
|
12
|
-
};
|
|
13
|
-
/** @internal */
|
|
14
|
-
export declare const CustomMessageConfig$inboundSchema: z.ZodType<CustomMessageConfig, z.ZodTypeDef, unknown>;
|
|
15
|
-
/** @internal */
|
|
16
|
-
export type CustomMessageConfig$Outbound = {
|
|
17
|
-
user_initiated_non_voice_session_behavior: string;
|
|
18
|
-
};
|
|
19
|
-
/** @internal */
|
|
20
|
-
export declare const CustomMessageConfig$outboundSchema: z.ZodType<CustomMessageConfig$Outbound, z.ZodTypeDef, CustomMessageConfig>;
|
|
21
|
-
export declare function customMessageConfigToJSON(customMessageConfig: CustomMessageConfig): string;
|
|
22
|
-
export declare function customMessageConfigFromJSON(jsonString: string): SafeParseResult<CustomMessageConfig, SDKValidationError>;
|
|
23
|
-
//# sourceMappingURL=custommessageconfig.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custommessageconfig.d.ts","sourceRoot":"","sources":["../../src/models/components/custommessageconfig.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,oCAAoC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,OAAO,CAQP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,yCAAyC,EAAE,MAAM,CAAC;CACnD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAQnB,CAAC;AAEH,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR;AACD,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
|
|
@@ -1,67 +0,0 @@
|
|
|
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 () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.CustomMessageConfig$outboundSchema = exports.CustomMessageConfig$inboundSchema = void 0;
|
|
40
|
-
exports.customMessageConfigToJSON = customMessageConfigToJSON;
|
|
41
|
-
exports.customMessageConfigFromJSON = customMessageConfigFromJSON;
|
|
42
|
-
const z = __importStar(require("zod/v3"));
|
|
43
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
-
/** @internal */
|
|
46
|
-
exports.CustomMessageConfig$inboundSchema = z.object({
|
|
47
|
-
user_initiated_non_voice_session_behavior: z.string().default("greet_only"),
|
|
48
|
-
}).transform((v) => {
|
|
49
|
-
return (0, primitives_js_1.remap)(v, {
|
|
50
|
-
"user_initiated_non_voice_session_behavior": "userInitiatedNonVoiceSessionBehavior",
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
/** @internal */
|
|
54
|
-
exports.CustomMessageConfig$outboundSchema = z.object({
|
|
55
|
-
userInitiatedNonVoiceSessionBehavior: z.string().default("greet_only"),
|
|
56
|
-
}).transform((v) => {
|
|
57
|
-
return (0, primitives_js_1.remap)(v, {
|
|
58
|
-
userInitiatedNonVoiceSessionBehavior: "user_initiated_non_voice_session_behavior",
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
function customMessageConfigToJSON(customMessageConfig) {
|
|
62
|
-
return JSON.stringify(exports.CustomMessageConfig$outboundSchema.parse(customMessageConfig));
|
|
63
|
-
}
|
|
64
|
-
function customMessageConfigFromJSON(jsonString) {
|
|
65
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CustomMessageConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CustomMessageConfig' from JSON`);
|
|
66
|
-
}
|
|
67
|
-
//# sourceMappingURL=custommessageconfig.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custommessageconfig.js","sourceRoot":"","sources":["../../src/models/components/custommessageconfig.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDH,8DAMC;AACD,kEAQC;AA/DD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAcjD,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,yCAAyC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC;CAC5E,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,2CAA2C,EACzC,sCAAsC;KACzC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAMH,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,oCAAoC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC;CACvE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,oCAAoC,EAClC,2CAA2C;KAC9C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,0CAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC;AACD,SAAgB,2BAA2B,CACzC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Additional configuration options for the message.
|
|
13
|
-
*/
|
|
14
|
-
export type CustomMessageConfig = {
|
|
15
|
-
/**
|
|
16
|
-
* The behavior of an agent assigned this message at the beginning of a user-initiated non-voice session (e.g., SMS, email, etc.). 'respond_only' will skip the message and respond to the user's message. 'greet_and_respond' will deliver the message and respond to the user's message. 'greet_only' will deliver the message and not respond to the user's message. Defaults to 'greet_only'.
|
|
17
|
-
*/
|
|
18
|
-
userInitiatedNonVoiceSessionBehavior?: string | undefined;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
/** @internal */
|
|
22
|
-
export const CustomMessageConfig$inboundSchema: z.ZodType<
|
|
23
|
-
CustomMessageConfig,
|
|
24
|
-
z.ZodTypeDef,
|
|
25
|
-
unknown
|
|
26
|
-
> = z.object({
|
|
27
|
-
user_initiated_non_voice_session_behavior: z.string().default("greet_only"),
|
|
28
|
-
}).transform((v) => {
|
|
29
|
-
return remap$(v, {
|
|
30
|
-
"user_initiated_non_voice_session_behavior":
|
|
31
|
-
"userInitiatedNonVoiceSessionBehavior",
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
/** @internal */
|
|
35
|
-
export type CustomMessageConfig$Outbound = {
|
|
36
|
-
user_initiated_non_voice_session_behavior: string;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
/** @internal */
|
|
40
|
-
export const CustomMessageConfig$outboundSchema: z.ZodType<
|
|
41
|
-
CustomMessageConfig$Outbound,
|
|
42
|
-
z.ZodTypeDef,
|
|
43
|
-
CustomMessageConfig
|
|
44
|
-
> = z.object({
|
|
45
|
-
userInitiatedNonVoiceSessionBehavior: z.string().default("greet_only"),
|
|
46
|
-
}).transform((v) => {
|
|
47
|
-
return remap$(v, {
|
|
48
|
-
userInitiatedNonVoiceSessionBehavior:
|
|
49
|
-
"user_initiated_non_voice_session_behavior",
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
export function customMessageConfigToJSON(
|
|
54
|
-
customMessageConfig: CustomMessageConfig,
|
|
55
|
-
): string {
|
|
56
|
-
return JSON.stringify(
|
|
57
|
-
CustomMessageConfig$outboundSchema.parse(customMessageConfig),
|
|
58
|
-
);
|
|
59
|
-
}
|
|
60
|
-
export function customMessageConfigFromJSON(
|
|
61
|
-
jsonString: string,
|
|
62
|
-
): SafeParseResult<CustomMessageConfig, SDKValidationError> {
|
|
63
|
-
return safeParse(
|
|
64
|
-
jsonString,
|
|
65
|
-
(x) => CustomMessageConfig$inboundSchema.parse(JSON.parse(x)),
|
|
66
|
-
`Failed to parse 'CustomMessageConfig' from JSON`,
|
|
67
|
-
);
|
|
68
|
-
}
|