syllable-sdk 1.0.3-rc.2 → 1.0.3-rc.4
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 +8 -14
- package/bin/mcp-server.js.map +8 -8
- package/docs/sdks/campaigns/README.md +8 -12
- 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/insightsoutput.d.ts +2 -23
- package/models/components/insightsoutput.d.ts.map +1 -1
- package/models/components/insightsoutput.js +3 -26
- package/models/components/insightsoutput.js.map +1 -1
- package/models/components/outboundcampaign.d.ts +1 -1
- package/models/components/outboundcampaigninput.d.ts +1 -1
- package/openapi.json +10 -22
- 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/insightsoutput.ts +4 -58
- package/src/models/components/outboundcampaign.ts +1 -1
- package/src/models/components/outboundcampaigninput.ts +1 -1
|
@@ -147,9 +147,8 @@ async function run() {
|
|
|
147
147
|
],
|
|
148
148
|
voicemailDetection: {
|
|
149
149
|
"voicemail_detection_overall_timeout": 30,
|
|
150
|
-
"voicemail_detection_post_speech_timeout": 1.
|
|
151
|
-
"voicemail_detection_pre_speech_timeout": 5,
|
|
152
|
-
"voicemail_detection_speech_threshold": 2.4,
|
|
150
|
+
"voicemail_detection_post_speech_timeout": 1.75,
|
|
151
|
+
"voicemail_detection_pre_speech_timeout": 3.5,
|
|
153
152
|
},
|
|
154
153
|
});
|
|
155
154
|
|
|
@@ -203,9 +202,8 @@ async function run() {
|
|
|
203
202
|
],
|
|
204
203
|
voicemailDetection: {
|
|
205
204
|
"voicemail_detection_overall_timeout": 30,
|
|
206
|
-
"voicemail_detection_post_speech_timeout": 1.
|
|
207
|
-
"voicemail_detection_pre_speech_timeout": 5,
|
|
208
|
-
"voicemail_detection_speech_threshold": 2.4,
|
|
205
|
+
"voicemail_detection_post_speech_timeout": 1.75,
|
|
206
|
+
"voicemail_detection_pre_speech_timeout": 3.5,
|
|
209
207
|
},
|
|
210
208
|
});
|
|
211
209
|
if (res.ok) {
|
|
@@ -359,9 +357,8 @@ async function run() {
|
|
|
359
357
|
],
|
|
360
358
|
voicemailDetection: {
|
|
361
359
|
"voicemail_detection_overall_timeout": 30,
|
|
362
|
-
"voicemail_detection_post_speech_timeout": 1.
|
|
363
|
-
"voicemail_detection_pre_speech_timeout": 5,
|
|
364
|
-
"voicemail_detection_speech_threshold": 2.4,
|
|
360
|
+
"voicemail_detection_post_speech_timeout": 1.75,
|
|
361
|
+
"voicemail_detection_pre_speech_timeout": 3.5,
|
|
365
362
|
},
|
|
366
363
|
},
|
|
367
364
|
});
|
|
@@ -418,9 +415,8 @@ async function run() {
|
|
|
418
415
|
],
|
|
419
416
|
voicemailDetection: {
|
|
420
417
|
"voicemail_detection_overall_timeout": 30,
|
|
421
|
-
"voicemail_detection_post_speech_timeout": 1.
|
|
422
|
-
"voicemail_detection_pre_speech_timeout": 5,
|
|
423
|
-
"voicemail_detection_speech_threshold": 2.4,
|
|
418
|
+
"voicemail_detection_post_speech_timeout": 1.75,
|
|
419
|
+
"voicemail_detection_pre_speech_timeout": 3.5,
|
|
424
420
|
},
|
|
425
421
|
},
|
|
426
422
|
});
|
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "0.0.2";
|
|
34
|
-
readonly sdkVersion: "1.0.3-rc.
|
|
34
|
+
readonly sdkVersion: "1.0.3-rc.4";
|
|
35
35
|
readonly genVersion: "2.723.11";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.0.3-rc.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.0.3-rc.4 2.723.11 0.0.2 syllable-sdk";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -31,8 +31,8 @@ function serverURLFromOptions(options) {
|
|
|
31
31
|
exports.SDK_METADATA = {
|
|
32
32
|
language: "typescript",
|
|
33
33
|
openapiDocVersion: "0.0.2",
|
|
34
|
-
sdkVersion: "1.0.3-rc.
|
|
34
|
+
sdkVersion: "1.0.3-rc.4",
|
|
35
35
|
genVersion: "2.723.11",
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 1.0.3-rc.
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 1.0.3-rc.4 2.723.11 0.0.2 syllable-sdk",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
package/mcp-server/mcp-server.js
CHANGED
|
@@ -22,7 +22,7 @@ const routes = (0, core_1.buildRouteMap)({
|
|
|
22
22
|
exports.app = (0, core_1.buildApplication)(routes, {
|
|
23
23
|
name: "mcp",
|
|
24
24
|
versionInfo: {
|
|
25
|
-
currentVersion: "1.0.3-rc.
|
|
25
|
+
currentVersion: "1.0.3-rc.4",
|
|
26
26
|
},
|
|
27
27
|
});
|
|
28
28
|
(0, core_1.run)(exports.app, node_process_1.default.argv.slice(2), (0, cli_js_1.buildContext)(node_process_1.default));
|
package/mcp-server/server.js
CHANGED
|
@@ -157,7 +157,7 @@ const usersUsersSendEmail_js_1 = require("./tools/usersUsersSendEmail.js");
|
|
|
157
157
|
function createMCPServer(deps) {
|
|
158
158
|
const server = new mcp_js_1.McpServer({
|
|
159
159
|
name: "SyllableSDK",
|
|
160
|
-
version: "1.0.3-rc.
|
|
160
|
+
version: "1.0.3-rc.4",
|
|
161
161
|
});
|
|
162
162
|
const client = new core_js_1.SyllableSDKCore({
|
|
163
163
|
apiKeyHeader: deps.apiKeyHeader,
|
|
@@ -2,7 +2,6 @@ import * as z from "zod";
|
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
4
|
export type JsonValue = string | number | number;
|
|
5
|
-
export type UploadFileMetadata = {};
|
|
6
5
|
/**
|
|
7
6
|
* Response model for an insight tool.
|
|
8
7
|
*/
|
|
@@ -56,7 +55,7 @@ export type InsightsOutput = {
|
|
|
56
55
|
/**
|
|
57
56
|
* Metadata associated with the uploaded file
|
|
58
57
|
*/
|
|
59
|
-
uploadFileMetadata?:
|
|
58
|
+
uploadFileMetadata?: any | undefined;
|
|
60
59
|
};
|
|
61
60
|
/** @internal */
|
|
62
61
|
export declare const JsonValue$inboundSchema: z.ZodType<JsonValue, z.ZodTypeDef, unknown>;
|
|
@@ -79,26 +78,6 @@ export declare namespace JsonValue$ {
|
|
|
79
78
|
export declare function jsonValueToJSON(jsonValue: JsonValue): string;
|
|
80
79
|
export declare function jsonValueFromJSON(jsonString: string): SafeParseResult<JsonValue, SDKValidationError>;
|
|
81
80
|
/** @internal */
|
|
82
|
-
export declare const UploadFileMetadata$inboundSchema: z.ZodType<UploadFileMetadata, z.ZodTypeDef, unknown>;
|
|
83
|
-
/** @internal */
|
|
84
|
-
export type UploadFileMetadata$Outbound = {};
|
|
85
|
-
/** @internal */
|
|
86
|
-
export declare const UploadFileMetadata$outboundSchema: z.ZodType<UploadFileMetadata$Outbound, z.ZodTypeDef, UploadFileMetadata>;
|
|
87
|
-
/**
|
|
88
|
-
* @internal
|
|
89
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
90
|
-
*/
|
|
91
|
-
export declare namespace UploadFileMetadata$ {
|
|
92
|
-
/** @deprecated use `UploadFileMetadata$inboundSchema` instead. */
|
|
93
|
-
const inboundSchema: z.ZodType<UploadFileMetadata, z.ZodTypeDef, unknown>;
|
|
94
|
-
/** @deprecated use `UploadFileMetadata$outboundSchema` instead. */
|
|
95
|
-
const outboundSchema: z.ZodType<UploadFileMetadata$Outbound, z.ZodTypeDef, UploadFileMetadata>;
|
|
96
|
-
/** @deprecated use `UploadFileMetadata$Outbound` instead. */
|
|
97
|
-
type Outbound = UploadFileMetadata$Outbound;
|
|
98
|
-
}
|
|
99
|
-
export declare function uploadFileMetadataToJSON(uploadFileMetadata: UploadFileMetadata): string;
|
|
100
|
-
export declare function uploadFileMetadataFromJSON(jsonString: string): SafeParseResult<UploadFileMetadata, SDKValidationError>;
|
|
101
|
-
/** @internal */
|
|
102
81
|
export declare const InsightsOutput$inboundSchema: z.ZodType<InsightsOutput, z.ZodTypeDef, unknown>;
|
|
103
82
|
/** @internal */
|
|
104
83
|
export type InsightsOutput$Outbound = {
|
|
@@ -115,7 +94,7 @@ export type InsightsOutput$Outbound = {
|
|
|
115
94
|
};
|
|
116
95
|
created_at?: string | undefined;
|
|
117
96
|
updated_at?: string | undefined;
|
|
118
|
-
upload_file_metadata?:
|
|
97
|
+
upload_file_metadata?: any | undefined;
|
|
119
98
|
};
|
|
120
99
|
/** @internal */
|
|
121
100
|
export declare const InsightsOutput$outboundSchema: z.ZodType<InsightsOutput$Outbound, z.ZodTypeDef, InsightsOutput>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insightsoutput.d.ts","sourceRoot":"","sources":["../../src/models/components/insightsoutput.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,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAEjD
|
|
1
|
+
{"version":3,"file":"insightsoutput.d.ts","sourceRoot":"","sources":["../../src/models/components/insightsoutput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MA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xC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,cAAc,CA4Bd,CAAC;AAEH;;;GAGG;AACH,yBAAiB,eAAe,CAAC;IAC/B,8DAA8D;IACvD,MAAM,aAAa,kDAA+B,CAAC;IAC1D,+DAA+D;IACxD,MAAM,cAAc,kEAAgC,CAAC;IAC5D,yDAAyD;IACzD,KAAY,QAAQ,GAAG,uBAAuB,CAAC;CAChD;AAED,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,CAE3E;AAED,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD"}
|
|
@@ -36,11 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.InsightsOutput$ = exports.InsightsOutput$outboundSchema = exports.InsightsOutput$inboundSchema = exports.
|
|
39
|
+
exports.InsightsOutput$ = exports.InsightsOutput$outboundSchema = exports.InsightsOutput$inboundSchema = exports.JsonValue$ = exports.JsonValue$outboundSchema = exports.JsonValue$inboundSchema = void 0;
|
|
40
40
|
exports.jsonValueToJSON = jsonValueToJSON;
|
|
41
41
|
exports.jsonValueFromJSON = jsonValueFromJSON;
|
|
42
|
-
exports.uploadFileMetadataToJSON = uploadFileMetadataToJSON;
|
|
43
|
-
exports.uploadFileMetadataFromJSON = uploadFileMetadataFromJSON;
|
|
44
42
|
exports.insightsOutputToJSON = insightsOutputToJSON;
|
|
45
43
|
exports.insightsOutputFromJSON = insightsOutputFromJSON;
|
|
46
44
|
const z = __importStar(require("zod"));
|
|
@@ -68,27 +66,6 @@ function jsonValueFromJSON(jsonString) {
|
|
|
68
66
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.JsonValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'JsonValue' from JSON`);
|
|
69
67
|
}
|
|
70
68
|
/** @internal */
|
|
71
|
-
exports.UploadFileMetadata$inboundSchema = z.object({});
|
|
72
|
-
/** @internal */
|
|
73
|
-
exports.UploadFileMetadata$outboundSchema = z.object({});
|
|
74
|
-
/**
|
|
75
|
-
* @internal
|
|
76
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
77
|
-
*/
|
|
78
|
-
var UploadFileMetadata$;
|
|
79
|
-
(function (UploadFileMetadata$) {
|
|
80
|
-
/** @deprecated use `UploadFileMetadata$inboundSchema` instead. */
|
|
81
|
-
UploadFileMetadata$.inboundSchema = exports.UploadFileMetadata$inboundSchema;
|
|
82
|
-
/** @deprecated use `UploadFileMetadata$outboundSchema` instead. */
|
|
83
|
-
UploadFileMetadata$.outboundSchema = exports.UploadFileMetadata$outboundSchema;
|
|
84
|
-
})(UploadFileMetadata$ || (exports.UploadFileMetadata$ = UploadFileMetadata$ = {}));
|
|
85
|
-
function uploadFileMetadataToJSON(uploadFileMetadata) {
|
|
86
|
-
return JSON.stringify(exports.UploadFileMetadata$outboundSchema.parse(uploadFileMetadata));
|
|
87
|
-
}
|
|
88
|
-
function uploadFileMetadataFromJSON(jsonString) {
|
|
89
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UploadFileMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UploadFileMetadata' from JSON`);
|
|
90
|
-
}
|
|
91
|
-
/** @internal */
|
|
92
69
|
exports.InsightsOutput$inboundSchema = z.object({
|
|
93
70
|
id: z.number().int(),
|
|
94
71
|
session_id: z.nullable(z.number().int()).optional(),
|
|
@@ -103,7 +80,7 @@ exports.InsightsOutput$inboundSchema = z.object({
|
|
|
103
80
|
.optional(),
|
|
104
81
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
105
82
|
.optional(),
|
|
106
|
-
upload_file_metadata: z.
|
|
83
|
+
upload_file_metadata: z.any().optional(),
|
|
107
84
|
}).transform((v) => {
|
|
108
85
|
return (0, primitives_js_1.remap)(v, {
|
|
109
86
|
"session_id": "sessionId",
|
|
@@ -132,7 +109,7 @@ exports.InsightsOutput$outboundSchema = z.object({
|
|
|
132
109
|
jsonValue: z.record(z.union([z.string(), z.number().int(), z.number()])),
|
|
133
110
|
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
134
111
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
135
|
-
uploadFileMetadata: z.
|
|
112
|
+
uploadFileMetadata: z.any().optional(),
|
|
136
113
|
}).transform((v) => {
|
|
137
114
|
return (0, primitives_js_1.remap)(v, {
|
|
138
115
|
sessionId: "session_id",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insightsoutput.js","sourceRoot":"","sources":["../../src/models/components/insightsoutput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"insightsoutput.js","sourceRoot":"","sources":["../../src/models/components/insightsoutput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8FH,0CAEC;AAED,8CAQC;AAqGD,oDAEC;AAED,wDAQC;AAzND,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AA4DjD,gBAAgB;AACH,QAAA,uBAAuB,GAIhC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAKxD,gBAAgB;AACH,QAAA,wBAAwB,GAIjC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,MAA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AAE,gBAAgB;QAC9B,aAAa,EAAE,iBAAiB;QAChC,kBAAkB,EAAE,sBAAsB;QAC1C,UAAU,EAAE,aAAa;QACzB,WAAW,EAAE,cAAc;QAC3B,YAAY,EAAE,eAAe;QAC7B,SAAS,EAAE,YAAY;QACvB,SAAS,EAAE,YAAY;QACvB,SAAS,EAAE,YAAY;QACvB,kBAAkB,EAAE,sBAAsB;KAC3C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,eAAe,CAO/B;AAPD,WAAiB,eAAe;IAC9B,8DAA8D;IACjD,6BAAa,GAAG,oCAA4B,CAAC;IAC1D,+DAA+D;IAClD,8BAAc,GAAG,qCAA6B,CAAC;AAG9D,CAAC,EAPgB,eAAe,+BAAf,eAAe,QAO/B;AAED,SAAgB,oBAAoB,CAAC,cAA8B;IACjE,OAAO,IAAI,CAAC,SAAS,CAAC,qCAA6B,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;AAC7E,CAAC;AAED,SAAgB,sBAAsB,CACpC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AACJ,CAAC"}
|
|
@@ -68,7 +68,7 @@ export type OutboundCampaign = {
|
|
|
68
68
|
*/
|
|
69
69
|
activeDays: Array<DaysOfWeek>;
|
|
70
70
|
/**
|
|
71
|
-
* Config for voicemail detection for voice campaigns
|
|
71
|
+
* Config for voicemail detection for voice campaigns. Set to None to disable.
|
|
72
72
|
*/
|
|
73
73
|
voicemailDetection?: {
|
|
74
74
|
[k: string]: number;
|
|
@@ -68,7 +68,7 @@ export type OutboundCampaignInput = {
|
|
|
68
68
|
*/
|
|
69
69
|
activeDays: Array<DaysOfWeek>;
|
|
70
70
|
/**
|
|
71
|
-
* Config for voicemail detection for voice campaigns
|
|
71
|
+
* Config for voicemail detection for voice campaigns. Set to None to disable.
|
|
72
72
|
*/
|
|
73
73
|
voicemailDetection?: {
|
|
74
74
|
[k: string]: number;
|
package/openapi.json
CHANGED
|
@@ -17970,14 +17970,6 @@
|
|
|
17970
17970
|
]
|
|
17971
17971
|
},
|
|
17972
17972
|
"upload_file_metadata": {
|
|
17973
|
-
"anyOf": [
|
|
17974
|
-
{
|
|
17975
|
-
"type": "object"
|
|
17976
|
-
},
|
|
17977
|
-
{
|
|
17978
|
-
"type": "null"
|
|
17979
|
-
}
|
|
17980
|
-
],
|
|
17981
17973
|
"title": "Upload File Metadata",
|
|
17982
17974
|
"description": "Metadata associated with the uploaded file",
|
|
17983
17975
|
"examples": [
|
|
@@ -21131,19 +21123,17 @@
|
|
|
21131
21123
|
}
|
|
21132
21124
|
],
|
|
21133
21125
|
"title": "Voicemail Detection",
|
|
21134
|
-
"description": "Config for voicemail detection for voice campaigns",
|
|
21126
|
+
"description": "Config for voicemail detection for voice campaigns. Set to None to disable.",
|
|
21135
21127
|
"default": {
|
|
21136
21128
|
"voicemail_detection_overall_timeout": 30.0,
|
|
21137
|
-
"
|
|
21138
|
-
"
|
|
21139
|
-
"voicemail_detection_post_speech_timeout": 1.2
|
|
21129
|
+
"voicemail_detection_pre_speech_timeout": 3.5,
|
|
21130
|
+
"voicemail_detection_post_speech_timeout": 1.75
|
|
21140
21131
|
},
|
|
21141
21132
|
"examples": [
|
|
21142
21133
|
{
|
|
21143
21134
|
"voicemail_detection_overall_timeout": 30.0,
|
|
21144
|
-
"voicemail_detection_post_speech_timeout": 1.
|
|
21145
|
-
"voicemail_detection_pre_speech_timeout": 5
|
|
21146
|
-
"voicemail_detection_speech_threshold": 2.4
|
|
21135
|
+
"voicemail_detection_post_speech_timeout": 1.75,
|
|
21136
|
+
"voicemail_detection_pre_speech_timeout": 3.5
|
|
21147
21137
|
}
|
|
21148
21138
|
]
|
|
21149
21139
|
},
|
|
@@ -21436,19 +21426,17 @@
|
|
|
21436
21426
|
}
|
|
21437
21427
|
],
|
|
21438
21428
|
"title": "Voicemail Detection",
|
|
21439
|
-
"description": "Config for voicemail detection for voice campaigns",
|
|
21429
|
+
"description": "Config for voicemail detection for voice campaigns. Set to None to disable.",
|
|
21440
21430
|
"default": {
|
|
21441
21431
|
"voicemail_detection_overall_timeout": 30.0,
|
|
21442
|
-
"
|
|
21443
|
-
"
|
|
21444
|
-
"voicemail_detection_post_speech_timeout": 1.2
|
|
21432
|
+
"voicemail_detection_pre_speech_timeout": 3.5,
|
|
21433
|
+
"voicemail_detection_post_speech_timeout": 1.75
|
|
21445
21434
|
},
|
|
21446
21435
|
"examples": [
|
|
21447
21436
|
{
|
|
21448
21437
|
"voicemail_detection_overall_timeout": 30.0,
|
|
21449
|
-
"voicemail_detection_post_speech_timeout": 1.
|
|
21450
|
-
"voicemail_detection_pre_speech_timeout": 5
|
|
21451
|
-
"voicemail_detection_speech_threshold": 2.4
|
|
21438
|
+
"voicemail_detection_post_speech_timeout": 1.75,
|
|
21439
|
+
"voicemail_detection_pre_speech_timeout": 3.5
|
|
21452
21440
|
}
|
|
21453
21441
|
]
|
|
21454
21442
|
}
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -61,7 +61,7 @@ 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: "1.0.3-rc.
|
|
64
|
+
sdkVersion: "1.0.3-rc.4",
|
|
65
65
|
genVersion: "2.723.11",
|
|
66
|
-
userAgent: "speakeasy-sdk/typescript 1.0.3-rc.
|
|
66
|
+
userAgent: "speakeasy-sdk/typescript 1.0.3-rc.4 2.723.11 0.0.2 syllable-sdk",
|
|
67
67
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -10,8 +10,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
10
10
|
|
|
11
11
|
export type JsonValue = string | number | number;
|
|
12
12
|
|
|
13
|
-
export type UploadFileMetadata = {};
|
|
14
|
-
|
|
15
13
|
/**
|
|
16
14
|
* Response model for an insight tool.
|
|
17
15
|
*/
|
|
@@ -63,7 +61,7 @@ export type InsightsOutput = {
|
|
|
63
61
|
/**
|
|
64
62
|
* Metadata associated with the uploaded file
|
|
65
63
|
*/
|
|
66
|
-
uploadFileMetadata?:
|
|
64
|
+
uploadFileMetadata?: any | undefined;
|
|
67
65
|
};
|
|
68
66
|
|
|
69
67
|
/** @internal */
|
|
@@ -110,54 +108,6 @@ export function jsonValueFromJSON(
|
|
|
110
108
|
);
|
|
111
109
|
}
|
|
112
110
|
|
|
113
|
-
/** @internal */
|
|
114
|
-
export const UploadFileMetadata$inboundSchema: z.ZodType<
|
|
115
|
-
UploadFileMetadata,
|
|
116
|
-
z.ZodTypeDef,
|
|
117
|
-
unknown
|
|
118
|
-
> = z.object({});
|
|
119
|
-
|
|
120
|
-
/** @internal */
|
|
121
|
-
export type UploadFileMetadata$Outbound = {};
|
|
122
|
-
|
|
123
|
-
/** @internal */
|
|
124
|
-
export const UploadFileMetadata$outboundSchema: z.ZodType<
|
|
125
|
-
UploadFileMetadata$Outbound,
|
|
126
|
-
z.ZodTypeDef,
|
|
127
|
-
UploadFileMetadata
|
|
128
|
-
> = z.object({});
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* @internal
|
|
132
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
133
|
-
*/
|
|
134
|
-
export namespace UploadFileMetadata$ {
|
|
135
|
-
/** @deprecated use `UploadFileMetadata$inboundSchema` instead. */
|
|
136
|
-
export const inboundSchema = UploadFileMetadata$inboundSchema;
|
|
137
|
-
/** @deprecated use `UploadFileMetadata$outboundSchema` instead. */
|
|
138
|
-
export const outboundSchema = UploadFileMetadata$outboundSchema;
|
|
139
|
-
/** @deprecated use `UploadFileMetadata$Outbound` instead. */
|
|
140
|
-
export type Outbound = UploadFileMetadata$Outbound;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export function uploadFileMetadataToJSON(
|
|
144
|
-
uploadFileMetadata: UploadFileMetadata,
|
|
145
|
-
): string {
|
|
146
|
-
return JSON.stringify(
|
|
147
|
-
UploadFileMetadata$outboundSchema.parse(uploadFileMetadata),
|
|
148
|
-
);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
export function uploadFileMetadataFromJSON(
|
|
152
|
-
jsonString: string,
|
|
153
|
-
): SafeParseResult<UploadFileMetadata, SDKValidationError> {
|
|
154
|
-
return safeParse(
|
|
155
|
-
jsonString,
|
|
156
|
-
(x) => UploadFileMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
157
|
-
`Failed to parse 'UploadFileMetadata' from JSON`,
|
|
158
|
-
);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
111
|
/** @internal */
|
|
162
112
|
export const InsightsOutput$inboundSchema: z.ZodType<
|
|
163
113
|
InsightsOutput,
|
|
@@ -177,9 +127,7 @@ export const InsightsOutput$inboundSchema: z.ZodType<
|
|
|
177
127
|
.optional(),
|
|
178
128
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
179
129
|
.optional(),
|
|
180
|
-
upload_file_metadata: z.
|
|
181
|
-
z.lazy(() => UploadFileMetadata$inboundSchema),
|
|
182
|
-
).optional(),
|
|
130
|
+
upload_file_metadata: z.any().optional(),
|
|
183
131
|
}).transform((v) => {
|
|
184
132
|
return remap$(v, {
|
|
185
133
|
"session_id": "sessionId",
|
|
@@ -209,7 +157,7 @@ export type InsightsOutput$Outbound = {
|
|
|
209
157
|
json_value: { [k: string]: string | number | number };
|
|
210
158
|
created_at?: string | undefined;
|
|
211
159
|
updated_at?: string | undefined;
|
|
212
|
-
upload_file_metadata?:
|
|
160
|
+
upload_file_metadata?: any | undefined;
|
|
213
161
|
};
|
|
214
162
|
|
|
215
163
|
/** @internal */
|
|
@@ -229,9 +177,7 @@ export const InsightsOutput$outboundSchema: z.ZodType<
|
|
|
229
177
|
jsonValue: z.record(z.union([z.string(), z.number().int(), z.number()])),
|
|
230
178
|
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
231
179
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
232
|
-
uploadFileMetadata: z.
|
|
233
|
-
z.lazy(() => UploadFileMetadata$outboundSchema),
|
|
234
|
-
).optional(),
|
|
180
|
+
uploadFileMetadata: z.any().optional(),
|
|
235
181
|
}).transform((v) => {
|
|
236
182
|
return remap$(v, {
|
|
237
183
|
sessionId: "session_id",
|
|
@@ -77,7 +77,7 @@ export type OutboundCampaign = {
|
|
|
77
77
|
*/
|
|
78
78
|
activeDays: Array<DaysOfWeek>;
|
|
79
79
|
/**
|
|
80
|
-
* Config for voicemail detection for voice campaigns
|
|
80
|
+
* Config for voicemail detection for voice campaigns. Set to None to disable.
|
|
81
81
|
*/
|
|
82
82
|
voicemailDetection?: { [k: string]: number } | null | undefined;
|
|
83
83
|
/**
|
|
@@ -77,7 +77,7 @@ export type OutboundCampaignInput = {
|
|
|
77
77
|
*/
|
|
78
78
|
activeDays: Array<DaysOfWeek>;
|
|
79
79
|
/**
|
|
80
|
-
* Config for voicemail detection for voice campaigns
|
|
80
|
+
* Config for voicemail detection for voice campaigns. Set to None to disable.
|
|
81
81
|
*/
|
|
82
82
|
voicemailDetection?: { [k: string]: number } | null | undefined;
|
|
83
83
|
};
|