syllable-sdk 1.0.13-rc.1 → 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 +33 -85
- 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,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
|
-
}
|