syllable-sdk 1.0.2-rc.3 → 1.0.2-rc.5
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 +62 -15
- package/bin/mcp-server.js.map +13 -12
- package/docs/sdks/campaigns/README.md +24 -0
- package/docs/sdks/pronunciations/README.md +4 -4
- package/examples/package-lock.json +1 -1
- package/funcs/pronunciationsPronunciationsDownloadCsv.d.ts +2 -1
- package/funcs/pronunciationsPronunciationsDownloadCsv.d.ts.map +1 -1
- package/funcs/pronunciationsPronunciationsDownloadCsv.js +10 -3
- package/funcs/pronunciationsPronunciationsDownloadCsv.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.d.ts.map +1 -1
- package/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.js +2 -1
- package/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.js.map +1 -1
- package/models/components/campaignproperties.d.ts +3 -0
- package/models/components/campaignproperties.d.ts.map +1 -1
- package/models/components/campaignproperties.js +1 -0
- package/models/components/campaignproperties.js.map +1 -1
- package/models/components/outboundcampaign.d.ts +9 -0
- package/models/components/outboundcampaign.d.ts.map +1 -1
- package/models/components/outboundcampaign.js +4 -0
- package/models/components/outboundcampaign.js.map +1 -1
- package/models/components/outboundcampaigninput.d.ts +9 -0
- package/models/components/outboundcampaigninput.d.ts.map +1 -1
- package/models/components/outboundcampaigninput.js +4 -0
- package/models/components/outboundcampaigninput.js.map +1 -1
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/pronunciationsdownloadcsv.d.ts +35 -0
- package/models/operations/pronunciationsdownloadcsv.d.ts.map +1 -0
- package/models/operations/pronunciationsdownloadcsv.js +82 -0
- package/models/operations/pronunciationsdownloadcsv.js.map +1 -0
- package/openapi.json +76 -2
- package/package.json +1 -1
- package/sdk/pronunciations.d.ts +2 -1
- package/sdk/pronunciations.d.ts.map +1 -1
- package/sdk/pronunciations.js.map +1 -1
- package/src/funcs/pronunciationsPronunciationsDownloadCsv.ts +15 -7
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.ts +3 -1
- package/src/models/components/campaignproperties.ts +1 -0
- package/src/models/components/outboundcampaign.ts +9 -0
- package/src/models/components/outboundcampaigninput.ts +9 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/pronunciationsdownloadcsv.ts +84 -0
- package/src/sdk/pronunciations.ts +2 -1
|
@@ -0,0 +1,82 @@
|
|
|
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.PronunciationsDownloadCsvResponse$ = exports.PronunciationsDownloadCsvResponse$outboundSchema = exports.PronunciationsDownloadCsvResponse$inboundSchema = void 0;
|
|
40
|
+
exports.pronunciationsDownloadCsvResponseToJSON = pronunciationsDownloadCsvResponseToJSON;
|
|
41
|
+
exports.pronunciationsDownloadCsvResponseFromJSON = pronunciationsDownloadCsvResponseFromJSON;
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
+
/** @internal */
|
|
46
|
+
exports.PronunciationsDownloadCsvResponse$inboundSchema = z.object({
|
|
47
|
+
Headers: z.record(z.array(z.string())),
|
|
48
|
+
Result: z.instanceof((ReadableStream)),
|
|
49
|
+
}).transform((v) => {
|
|
50
|
+
return (0, primitives_js_1.remap)(v, {
|
|
51
|
+
"Headers": "headers",
|
|
52
|
+
"Result": "result",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
/** @internal */
|
|
56
|
+
exports.PronunciationsDownloadCsvResponse$outboundSchema = z.object({
|
|
57
|
+
headers: z.record(z.array(z.string())),
|
|
58
|
+
result: z.instanceof((ReadableStream)),
|
|
59
|
+
}).transform((v) => {
|
|
60
|
+
return (0, primitives_js_1.remap)(v, {
|
|
61
|
+
headers: "Headers",
|
|
62
|
+
result: "Result",
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
/**
|
|
66
|
+
* @internal
|
|
67
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
68
|
+
*/
|
|
69
|
+
var PronunciationsDownloadCsvResponse$;
|
|
70
|
+
(function (PronunciationsDownloadCsvResponse$) {
|
|
71
|
+
/** @deprecated use `PronunciationsDownloadCsvResponse$inboundSchema` instead. */
|
|
72
|
+
PronunciationsDownloadCsvResponse$.inboundSchema = exports.PronunciationsDownloadCsvResponse$inboundSchema;
|
|
73
|
+
/** @deprecated use `PronunciationsDownloadCsvResponse$outboundSchema` instead. */
|
|
74
|
+
PronunciationsDownloadCsvResponse$.outboundSchema = exports.PronunciationsDownloadCsvResponse$outboundSchema;
|
|
75
|
+
})(PronunciationsDownloadCsvResponse$ || (exports.PronunciationsDownloadCsvResponse$ = PronunciationsDownloadCsvResponse$ = {}));
|
|
76
|
+
function pronunciationsDownloadCsvResponseToJSON(pronunciationsDownloadCsvResponse) {
|
|
77
|
+
return JSON.stringify(exports.PronunciationsDownloadCsvResponse$outboundSchema.parse(pronunciationsDownloadCsvResponse));
|
|
78
|
+
}
|
|
79
|
+
function pronunciationsDownloadCsvResponseFromJSON(jsonString) {
|
|
80
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PronunciationsDownloadCsvResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PronunciationsDownloadCsvResponse' from JSON`);
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=pronunciationsdownloadcsv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pronunciationsdownloadcsv.js","sourceRoot":"","sources":["../../src/models/operations/pronunciationsdownloadcsv.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+DH,0FAQC;AAED,8FAQC;AA/ED,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AASjD,gBAAgB;AACH,QAAA,+CAA+C,GAIxD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACtC,MAAM,EAAE,CAAC,CAAC,UAAU,CAAC,CAAA,cAA0B,CAAA,CAAC;CACjD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,QAAQ;KACnB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,gDAAgD,GAIzD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACtC,MAAM,EAAE,CAAC,CAAC,UAAU,CAAC,CAAA,cAA0B,CAAA,CAAC;CACjD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,OAAO,EAAE,SAAS;QAClB,MAAM,EAAE,QAAQ;KACjB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,kCAAkC,CAQlD;AARD,WAAiB,kCAAkC;IACjD,iFAAiF;IACpE,gDAAa,GAAG,uDAA+C,CAAC;IAC7E,kFAAkF;IACrE,iDAAc,GACzB,wDAAgD,CAAC;AAGrD,CAAC,EARgB,kCAAkC,kDAAlC,kCAAkC,QAQlD;AAED,SAAgB,uCAAuC,CACrD,iCAAoE;IAEpE,OAAO,IAAI,CAAC,SAAS,CACnB,wDAAgD,CAAC,KAAK,CACpD,iCAAiC,CAClC,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,yCAAyC,CACvD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uDAA+C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3E,+DAA+D,CAChE,CAAC;AACJ,CAAC"}
|
package/openapi.json
CHANGED
|
@@ -5614,7 +5614,22 @@
|
|
|
5614
5614
|
"operationId": "pronunciations_download_csv",
|
|
5615
5615
|
"responses": {
|
|
5616
5616
|
"200": {
|
|
5617
|
-
"description": "
|
|
5617
|
+
"description": "CSV download",
|
|
5618
|
+
"headers": {
|
|
5619
|
+
"Content-Disposition": {
|
|
5620
|
+
"schema": {
|
|
5621
|
+
"type": "string"
|
|
5622
|
+
}
|
|
5623
|
+
}
|
|
5624
|
+
},
|
|
5625
|
+
"content": {
|
|
5626
|
+
"text/csv": {
|
|
5627
|
+
"schema": {
|
|
5628
|
+
"type": "string",
|
|
5629
|
+
"format": "binary"
|
|
5630
|
+
}
|
|
5631
|
+
}
|
|
5632
|
+
}
|
|
5618
5633
|
}
|
|
5619
5634
|
},
|
|
5620
5635
|
"security": [
|
|
@@ -13635,7 +13650,8 @@
|
|
|
13635
13650
|
"caller_id",
|
|
13636
13651
|
"updated_at",
|
|
13637
13652
|
"label",
|
|
13638
|
-
"labels"
|
|
13653
|
+
"labels",
|
|
13654
|
+
"voicemail_detection"
|
|
13639
13655
|
],
|
|
13640
13656
|
"title": "CampaignProperties"
|
|
13641
13657
|
},
|
|
@@ -21118,6 +21134,35 @@
|
|
|
21118
21134
|
"[\"mon\", \"tue\", \"wed\", \"thu\", \"fri\"]"
|
|
21119
21135
|
]
|
|
21120
21136
|
},
|
|
21137
|
+
"voicemail_detection": {
|
|
21138
|
+
"anyOf": [
|
|
21139
|
+
{
|
|
21140
|
+
"additionalProperties": {
|
|
21141
|
+
"type": "number"
|
|
21142
|
+
},
|
|
21143
|
+
"type": "object"
|
|
21144
|
+
},
|
|
21145
|
+
{
|
|
21146
|
+
"type": "null"
|
|
21147
|
+
}
|
|
21148
|
+
],
|
|
21149
|
+
"title": "Voicemail Detection",
|
|
21150
|
+
"description": "Config for voicemail detection for voice campaigns",
|
|
21151
|
+
"default": {
|
|
21152
|
+
"voicemail_detection_overall_timeout": 30.0,
|
|
21153
|
+
"voicemail_detection_speech_threshold": 2.4,
|
|
21154
|
+
"voicemail_detection_pre_speech_timeout": 5.0,
|
|
21155
|
+
"voicemail_detection_post_speech_timeout": 1.2
|
|
21156
|
+
},
|
|
21157
|
+
"examples": [
|
|
21158
|
+
{
|
|
21159
|
+
"voicemail_detection_overall_timeout": 30.0,
|
|
21160
|
+
"voicemail_detection_post_speech_timeout": 1.2,
|
|
21161
|
+
"voicemail_detection_pre_speech_timeout": 5.0,
|
|
21162
|
+
"voicemail_detection_speech_threshold": 2.4
|
|
21163
|
+
}
|
|
21164
|
+
]
|
|
21165
|
+
},
|
|
21121
21166
|
"id": {
|
|
21122
21167
|
"type": "integer",
|
|
21123
21168
|
"title": "Id",
|
|
@@ -21393,6 +21438,35 @@
|
|
|
21393
21438
|
"examples": [
|
|
21394
21439
|
"[\"mon\", \"tue\", \"wed\", \"thu\", \"fri\"]"
|
|
21395
21440
|
]
|
|
21441
|
+
},
|
|
21442
|
+
"voicemail_detection": {
|
|
21443
|
+
"anyOf": [
|
|
21444
|
+
{
|
|
21445
|
+
"additionalProperties": {
|
|
21446
|
+
"type": "number"
|
|
21447
|
+
},
|
|
21448
|
+
"type": "object"
|
|
21449
|
+
},
|
|
21450
|
+
{
|
|
21451
|
+
"type": "null"
|
|
21452
|
+
}
|
|
21453
|
+
],
|
|
21454
|
+
"title": "Voicemail Detection",
|
|
21455
|
+
"description": "Config for voicemail detection for voice campaigns",
|
|
21456
|
+
"default": {
|
|
21457
|
+
"voicemail_detection_overall_timeout": 30.0,
|
|
21458
|
+
"voicemail_detection_speech_threshold": 2.4,
|
|
21459
|
+
"voicemail_detection_pre_speech_timeout": 5.0,
|
|
21460
|
+
"voicemail_detection_post_speech_timeout": 1.2
|
|
21461
|
+
},
|
|
21462
|
+
"examples": [
|
|
21463
|
+
{
|
|
21464
|
+
"voicemail_detection_overall_timeout": 30.0,
|
|
21465
|
+
"voicemail_detection_post_speech_timeout": 1.2,
|
|
21466
|
+
"voicemail_detection_pre_speech_timeout": 5.0,
|
|
21467
|
+
"voicemail_detection_speech_threshold": 2.4
|
|
21468
|
+
}
|
|
21469
|
+
]
|
|
21396
21470
|
}
|
|
21397
21471
|
},
|
|
21398
21472
|
"type": "object",
|
package/package.json
CHANGED
package/sdk/pronunciations.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
2
|
import * as components from "../models/components/index.js";
|
|
3
|
+
import * as operations from "../models/operations/index.js";
|
|
3
4
|
export declare class Pronunciations extends ClientSDK {
|
|
4
5
|
/**
|
|
5
6
|
* Get Pronunciations Dictionary
|
|
@@ -12,7 +13,7 @@ export declare class Pronunciations extends ClientSDK {
|
|
|
12
13
|
/**
|
|
13
14
|
* Download Pronunciations Csv
|
|
14
15
|
*/
|
|
15
|
-
pronunciationsDownloadCsv(options?: RequestOptions): Promise<
|
|
16
|
+
pronunciationsDownloadCsv(options?: RequestOptions): Promise<operations.PronunciationsDownloadCsvResponse>;
|
|
16
17
|
/**
|
|
17
18
|
* Upload Pronunciations Csv
|
|
18
19
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pronunciations.d.ts","sourceRoot":"","sources":["../src/sdk/pronunciations.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,cAAe,SAAQ,SAAS;IAC3C;;OAEG;IACG,iBAAiB,CACrB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gCAAgC,CAAC;IAOvD;;OAEG;IACG,yBAAyB,CAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAOzC;;OAEG;IACG,yBAAyB,CAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"pronunciations.d.ts","sourceRoot":"","sources":["../src/sdk/pronunciations.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,cAAe,SAAQ,SAAS;IAC3C;;OAEG;IACG,iBAAiB,CACrB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gCAAgC,CAAC;IAOvD;;OAEG;IACG,yBAAyB,CAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAOzC;;OAEG;IACG,yBAAyB,CAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iCAAiC,CAAC;IAOxD;;OAEG;IACG,uBAAuB,CAC3B,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,+BAA+B,CAAC;IAQtD;;OAEG;IACG,uBAAuB,CAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;CAMjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pronunciations.js","sourceRoot":"","sources":["../src/sdk/pronunciations.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gHAA0G;AAC1G,oHAA8G;AAC9G,oGAA8F;AAC9F,oHAA8G;AAC9G,gHAA0G;AAC1G,4CAA2D;
|
|
1
|
+
{"version":3,"file":"pronunciations.js","sourceRoot":"","sources":["../src/sdk/pronunciations.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gHAA0G;AAC1G,oHAA8G;AAC9G,oGAA8F;AAC9F,oHAA8G;AAC9G,gHAA0G;AAC1G,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,cAAe,SAAQ,mBAAS;IAC3C;;OAEG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oEAA+B,EAChD,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,yBAAyB,CAC7B,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oFAAuC,EACxD,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,yBAAyB,CAC7B,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oFAAuC,EACxD,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,uBAAuB,CAC3B,OAA+C,EAC/C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gFAAqC,EACtD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,uBAAuB,CAC3B,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gFAAqC,EACtD,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AA9DD,wCA8DC"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
6
5
|
import { SyllableSDKCore } from "../core.js";
|
|
7
6
|
import * as M from "../lib/matchers.js";
|
|
8
7
|
import { compactMap } from "../lib/primitives.js";
|
|
@@ -19,6 +18,7 @@ import {
|
|
|
19
18
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
20
19
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
21
20
|
import { SyllableSDKError } from "../models/errors/syllablesdkerror.js";
|
|
21
|
+
import * as operations from "../models/operations/index.js";
|
|
22
22
|
import { APICall, APIPromise } from "../types/async.js";
|
|
23
23
|
import { Result } from "../types/fp.js";
|
|
24
24
|
|
|
@@ -30,7 +30,7 @@ export function pronunciationsPronunciationsDownloadCsv(
|
|
|
30
30
|
options?: RequestOptions,
|
|
31
31
|
): APIPromise<
|
|
32
32
|
Result<
|
|
33
|
-
|
|
33
|
+
operations.PronunciationsDownloadCsvResponse,
|
|
34
34
|
| SyllableSDKError
|
|
35
35
|
| ResponseValidationError
|
|
36
36
|
| ConnectionError
|
|
@@ -53,7 +53,7 @@ async function $do(
|
|
|
53
53
|
): Promise<
|
|
54
54
|
[
|
|
55
55
|
Result<
|
|
56
|
-
|
|
56
|
+
operations.PronunciationsDownloadCsvResponse,
|
|
57
57
|
| SyllableSDKError
|
|
58
58
|
| ResponseValidationError
|
|
59
59
|
| ConnectionError
|
|
@@ -69,7 +69,7 @@ async function $do(
|
|
|
69
69
|
const path = pathToFunc("/api/v1/pronunciations/csv")();
|
|
70
70
|
|
|
71
71
|
const headers = new Headers(compactMap({
|
|
72
|
-
Accept: "
|
|
72
|
+
Accept: "text/csv",
|
|
73
73
|
}));
|
|
74
74
|
|
|
75
75
|
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
@@ -116,8 +116,12 @@ async function $do(
|
|
|
116
116
|
}
|
|
117
117
|
const response = doResult.value;
|
|
118
118
|
|
|
119
|
+
const responseFields = {
|
|
120
|
+
HttpMeta: { Response: response, Request: req },
|
|
121
|
+
};
|
|
122
|
+
|
|
119
123
|
const [result] = await M.match<
|
|
120
|
-
|
|
124
|
+
operations.PronunciationsDownloadCsvResponse,
|
|
121
125
|
| SyllableSDKError
|
|
122
126
|
| ResponseValidationError
|
|
123
127
|
| ConnectionError
|
|
@@ -127,10 +131,14 @@ async function $do(
|
|
|
127
131
|
| UnexpectedClientError
|
|
128
132
|
| SDKValidationError
|
|
129
133
|
>(
|
|
130
|
-
M.
|
|
134
|
+
M.stream(200, operations.PronunciationsDownloadCsvResponse$inboundSchema, {
|
|
135
|
+
ctype: "text/csv",
|
|
136
|
+
hdrs: true,
|
|
137
|
+
key: "Result",
|
|
138
|
+
}),
|
|
131
139
|
M.fail("4XX"),
|
|
132
140
|
M.fail("5XX"),
|
|
133
|
-
)(response, req);
|
|
141
|
+
)(response, req, { extraFields: responseFields });
|
|
134
142
|
if (!result.ok) {
|
|
135
143
|
return [result, { status: "complete", request: req, response }];
|
|
136
144
|
}
|
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.2-rc.
|
|
65
|
-
genVersion: "2.723.
|
|
66
|
-
userAgent: "speakeasy-sdk/typescript 1.0.2-rc.
|
|
64
|
+
sdkVersion: "1.0.2-rc.5",
|
|
65
|
+
genVersion: "2.723.11",
|
|
66
|
+
userAgent: "speakeasy-sdk/typescript 1.0.2-rc.5 2.723.11 0.0.2 syllable-sdk",
|
|
67
67
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -76,6 +76,10 @@ export type OutboundCampaign = {
|
|
|
76
76
|
* Days of the week when campaign is active
|
|
77
77
|
*/
|
|
78
78
|
activeDays: Array<DaysOfWeek>;
|
|
79
|
+
/**
|
|
80
|
+
* Config for voicemail detection for voice campaigns
|
|
81
|
+
*/
|
|
82
|
+
voicemailDetection?: { [k: string]: number } | null | undefined;
|
|
79
83
|
/**
|
|
80
84
|
* Unique ID for campaign
|
|
81
85
|
*/
|
|
@@ -119,6 +123,7 @@ export const OutboundCampaign$inboundSchema: z.ZodType<
|
|
|
119
123
|
retry_count: z.number().int().default(0),
|
|
120
124
|
retry_interval: z.nullable(z.string()).optional(),
|
|
121
125
|
active_days: z.array(DaysOfWeek$inboundSchema),
|
|
126
|
+
voicemail_detection: z.nullable(z.record(z.number())).optional(),
|
|
122
127
|
id: z.number().int(),
|
|
123
128
|
agent_id: z.nullable(z.number().int()).optional(),
|
|
124
129
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
@@ -138,6 +143,7 @@ export const OutboundCampaign$inboundSchema: z.ZodType<
|
|
|
138
143
|
"retry_count": "retryCount",
|
|
139
144
|
"retry_interval": "retryInterval",
|
|
140
145
|
"active_days": "activeDays",
|
|
146
|
+
"voicemail_detection": "voicemailDetection",
|
|
141
147
|
"agent_id": "agentId",
|
|
142
148
|
"created_at": "createdAt",
|
|
143
149
|
"updated_at": "updatedAt",
|
|
@@ -162,6 +168,7 @@ export type OutboundCampaign$Outbound = {
|
|
|
162
168
|
retry_count: number;
|
|
163
169
|
retry_interval?: string | null | undefined;
|
|
164
170
|
active_days: Array<string>;
|
|
171
|
+
voicemail_detection?: { [k: string]: number } | null | undefined;
|
|
165
172
|
id: number;
|
|
166
173
|
agent_id?: number | null | undefined;
|
|
167
174
|
created_at?: string | undefined;
|
|
@@ -190,6 +197,7 @@ export const OutboundCampaign$outboundSchema: z.ZodType<
|
|
|
190
197
|
retryCount: z.number().int().default(0),
|
|
191
198
|
retryInterval: z.nullable(z.string()).optional(),
|
|
192
199
|
activeDays: z.array(DaysOfWeek$outboundSchema),
|
|
200
|
+
voicemailDetection: z.nullable(z.record(z.number())).optional(),
|
|
193
201
|
id: z.number().int(),
|
|
194
202
|
agentId: z.nullable(z.number().int()).optional(),
|
|
195
203
|
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
@@ -207,6 +215,7 @@ export const OutboundCampaign$outboundSchema: z.ZodType<
|
|
|
207
215
|
retryCount: "retry_count",
|
|
208
216
|
retryInterval: "retry_interval",
|
|
209
217
|
activeDays: "active_days",
|
|
218
|
+
voicemailDetection: "voicemail_detection",
|
|
210
219
|
agentId: "agent_id",
|
|
211
220
|
createdAt: "created_at",
|
|
212
221
|
updatedAt: "updated_at",
|
|
@@ -76,6 +76,10 @@ export type OutboundCampaignInput = {
|
|
|
76
76
|
* Days of the week when campaign is active
|
|
77
77
|
*/
|
|
78
78
|
activeDays: Array<DaysOfWeek>;
|
|
79
|
+
/**
|
|
80
|
+
* Config for voicemail detection for voice campaigns
|
|
81
|
+
*/
|
|
82
|
+
voicemailDetection?: { [k: string]: number } | null | undefined;
|
|
79
83
|
};
|
|
80
84
|
|
|
81
85
|
/** @internal */
|
|
@@ -99,6 +103,7 @@ export const OutboundCampaignInput$inboundSchema: z.ZodType<
|
|
|
99
103
|
retry_count: z.number().int().default(0),
|
|
100
104
|
retry_interval: z.nullable(z.string()).optional(),
|
|
101
105
|
active_days: z.array(DaysOfWeek$inboundSchema),
|
|
106
|
+
voicemail_detection: z.nullable(z.record(z.number())).optional(),
|
|
102
107
|
}).transform((v) => {
|
|
103
108
|
return remap$(v, {
|
|
104
109
|
"campaign_name": "campaignName",
|
|
@@ -111,6 +116,7 @@ export const OutboundCampaignInput$inboundSchema: z.ZodType<
|
|
|
111
116
|
"retry_count": "retryCount",
|
|
112
117
|
"retry_interval": "retryInterval",
|
|
113
118
|
"active_days": "activeDays",
|
|
119
|
+
"voicemail_detection": "voicemailDetection",
|
|
114
120
|
});
|
|
115
121
|
});
|
|
116
122
|
|
|
@@ -131,6 +137,7 @@ export type OutboundCampaignInput$Outbound = {
|
|
|
131
137
|
retry_count: number;
|
|
132
138
|
retry_interval?: string | null | undefined;
|
|
133
139
|
active_days: Array<string>;
|
|
140
|
+
voicemail_detection?: { [k: string]: number } | null | undefined;
|
|
134
141
|
};
|
|
135
142
|
|
|
136
143
|
/** @internal */
|
|
@@ -154,6 +161,7 @@ export const OutboundCampaignInput$outboundSchema: z.ZodType<
|
|
|
154
161
|
retryCount: z.number().int().default(0),
|
|
155
162
|
retryInterval: z.nullable(z.string()).optional(),
|
|
156
163
|
activeDays: z.array(DaysOfWeek$outboundSchema),
|
|
164
|
+
voicemailDetection: z.nullable(z.record(z.number())).optional(),
|
|
157
165
|
}).transform((v) => {
|
|
158
166
|
return remap$(v, {
|
|
159
167
|
campaignName: "campaign_name",
|
|
@@ -166,6 +174,7 @@ export const OutboundCampaignInput$outboundSchema: z.ZodType<
|
|
|
166
174
|
retryCount: "retry_count",
|
|
167
175
|
retryInterval: "retry_interval",
|
|
168
176
|
activeDays: "active_days",
|
|
177
|
+
voicemailDetection: "voicemail_detection",
|
|
169
178
|
});
|
|
170
179
|
});
|
|
171
180
|
|
|
@@ -70,6 +70,7 @@ export * from "./promptsdelete.js";
|
|
|
70
70
|
export * from "./promptsgetbyid.js";
|
|
71
71
|
export * from "./promptshistory.js";
|
|
72
72
|
export * from "./promptslist.js";
|
|
73
|
+
export * from "./pronunciationsdownloadcsv.js";
|
|
73
74
|
export * from "./rolesdelete.js";
|
|
74
75
|
export * from "./rolesgetbyid.js";
|
|
75
76
|
export * from "./roleslist.js";
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
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
|
+
export type PronunciationsDownloadCsvResponse = {
|
|
12
|
+
headers: { [k: string]: Array<string> };
|
|
13
|
+
result: ReadableStream<Uint8Array>;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const PronunciationsDownloadCsvResponse$inboundSchema: z.ZodType<
|
|
18
|
+
PronunciationsDownloadCsvResponse,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
Headers: z.record(z.array(z.string())),
|
|
23
|
+
Result: z.instanceof(ReadableStream<Uint8Array>),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
"Headers": "headers",
|
|
27
|
+
"Result": "result",
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type PronunciationsDownloadCsvResponse$Outbound = {
|
|
33
|
+
Headers: { [k: string]: Array<string> };
|
|
34
|
+
Result: ReadableStream<Uint8Array>;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const PronunciationsDownloadCsvResponse$outboundSchema: z.ZodType<
|
|
39
|
+
PronunciationsDownloadCsvResponse$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
PronunciationsDownloadCsvResponse
|
|
42
|
+
> = z.object({
|
|
43
|
+
headers: z.record(z.array(z.string())),
|
|
44
|
+
result: z.instanceof(ReadableStream<Uint8Array>),
|
|
45
|
+
}).transform((v) => {
|
|
46
|
+
return remap$(v, {
|
|
47
|
+
headers: "Headers",
|
|
48
|
+
result: "Result",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
+
*/
|
|
56
|
+
export namespace PronunciationsDownloadCsvResponse$ {
|
|
57
|
+
/** @deprecated use `PronunciationsDownloadCsvResponse$inboundSchema` instead. */
|
|
58
|
+
export const inboundSchema = PronunciationsDownloadCsvResponse$inboundSchema;
|
|
59
|
+
/** @deprecated use `PronunciationsDownloadCsvResponse$outboundSchema` instead. */
|
|
60
|
+
export const outboundSchema =
|
|
61
|
+
PronunciationsDownloadCsvResponse$outboundSchema;
|
|
62
|
+
/** @deprecated use `PronunciationsDownloadCsvResponse$Outbound` instead. */
|
|
63
|
+
export type Outbound = PronunciationsDownloadCsvResponse$Outbound;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function pronunciationsDownloadCsvResponseToJSON(
|
|
67
|
+
pronunciationsDownloadCsvResponse: PronunciationsDownloadCsvResponse,
|
|
68
|
+
): string {
|
|
69
|
+
return JSON.stringify(
|
|
70
|
+
PronunciationsDownloadCsvResponse$outboundSchema.parse(
|
|
71
|
+
pronunciationsDownloadCsvResponse,
|
|
72
|
+
),
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function pronunciationsDownloadCsvResponseFromJSON(
|
|
77
|
+
jsonString: string,
|
|
78
|
+
): SafeParseResult<PronunciationsDownloadCsvResponse, SDKValidationError> {
|
|
79
|
+
return safeParse(
|
|
80
|
+
jsonString,
|
|
81
|
+
(x) => PronunciationsDownloadCsvResponse$inboundSchema.parse(JSON.parse(x)),
|
|
82
|
+
`Failed to parse 'PronunciationsDownloadCsvResponse' from JSON`,
|
|
83
|
+
);
|
|
84
|
+
}
|
|
@@ -9,6 +9,7 @@ import { pronunciationsPronunciationsGetMetadata } from "../funcs/pronunciations
|
|
|
9
9
|
import { pronunciationsPronunciationsUploadCsv } from "../funcs/pronunciationsPronunciationsUploadCsv.js";
|
|
10
10
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
11
11
|
import * as components from "../models/components/index.js";
|
|
12
|
+
import * as operations from "../models/operations/index.js";
|
|
12
13
|
import { unwrapAsync } from "../types/fp.js";
|
|
13
14
|
|
|
14
15
|
export class Pronunciations extends ClientSDK {
|
|
@@ -41,7 +42,7 @@ export class Pronunciations extends ClientSDK {
|
|
|
41
42
|
*/
|
|
42
43
|
async pronunciationsDownloadCsv(
|
|
43
44
|
options?: RequestOptions,
|
|
44
|
-
): Promise<
|
|
45
|
+
): Promise<operations.PronunciationsDownloadCsvResponse> {
|
|
45
46
|
return unwrapAsync(pronunciationsPronunciationsDownloadCsv(
|
|
46
47
|
this,
|
|
47
48
|
options,
|