syllable-sdk 1.0.2-rc.1 → 1.0.2-rc.10
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/README.md +2 -0
- package/bin/mcp-server.js +259 -138
- package/bin/mcp-server.js.map +25 -22
- package/docs/sdks/batches/README.md +4 -4
- package/docs/sdks/campaigns/README.md +24 -0
- package/docs/sdks/incidents/README.md +0 -8
- package/docs/sdks/prompts/README.md +4 -2
- package/docs/sdks/pronunciations/README.md +74 -5
- package/docs/sdks/workflows/README.md +8 -8
- package/examples/package-lock.json +1 -1
- package/funcs/pronunciationsPronunciationsDeleteCsv.d.ts +13 -0
- package/funcs/pronunciationsPronunciationsDeleteCsv.d.ts.map +1 -0
- package/funcs/pronunciationsPronunciationsDeleteCsv.js +101 -0
- package/funcs/pronunciationsPronunciationsDeleteCsv.js.map +1 -0
- 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/mcp-server.js.map +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/pronunciationsPronunciationsDeleteCsv.d.ts +3 -0
- package/mcp-server/tools/pronunciationsPronunciationsDeleteCsv.d.ts.map +1 -0
- package/mcp-server/tools/pronunciationsPronunciationsDeleteCsv.js +23 -0
- package/mcp-server/tools/pronunciationsPronunciationsDeleteCsv.js.map +1 -0
- 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/dictionarymetadata.d.ts +2 -2
- package/models/components/dictionarymetadata.d.ts.map +1 -1
- package/models/components/dictionarymetadata.js +2 -2
- package/models/components/dictionarymetadata.js.map +1 -1
- package/models/components/incidentcreaterequest.d.ts +3 -1
- package/models/components/incidentcreaterequest.d.ts.map +1 -1
- package/models/components/incidentcreaterequest.js.map +1 -1
- package/models/components/incidentresponse.d.ts +3 -1
- package/models/components/incidentresponse.d.ts.map +1 -1
- package/models/components/incidentresponse.js.map +1 -1
- package/models/components/incidentupdaterequest.d.ts +3 -11
- package/models/components/incidentupdaterequest.d.ts.map +1 -1
- package/models/components/incidentupdaterequest.js +0 -8
- package/models/components/incidentupdaterequest.js.map +1 -1
- package/models/components/matchtype.d.ts +3 -0
- package/models/components/matchtype.d.ts.map +1 -1
- package/models/components/matchtype.js +1 -0
- package/models/components/matchtype.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/components/promptcreaterequest.d.ts +5 -0
- package/models/components/promptcreaterequest.d.ts.map +1 -1
- package/models/components/promptcreaterequest.js +4 -0
- package/models/components/promptcreaterequest.js.map +1 -1
- package/models/components/promptresponse.d.ts +5 -5
- package/models/components/promptresponse.d.ts.map +1 -1
- package/models/components/promptresponse.js +2 -2
- package/models/components/promptresponse.js.map +1 -1
- package/models/components/promptupdaterequest.d.ts +5 -5
- package/models/components/promptupdaterequest.d.ts.map +1 -1
- package/models/components/promptupdaterequest.js +2 -2
- package/models/components/promptupdaterequest.js.map +1 -1
- package/models/components/pronunciationoverride.d.ts +8 -29
- package/models/components/pronunciationoverride.d.ts.map +1 -1
- package/models/components/pronunciationoverride.js +9 -32
- package/models/components/pronunciationoverride.js.map +1 -1
- package/models/components/pronunciationscsvuploadresponse.d.ts +6 -6
- package/models/components/pronunciationscsvuploadresponse.d.ts.map +1 -1
- package/models/components/pronunciationscsvuploadresponse.js +6 -6
- package/models/components/pronunciationscsvuploadresponse.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 +190 -164
- package/package.json +1 -1
- package/sdk/pronunciations.d.ts +6 -1
- package/sdk/pronunciations.d.ts.map +1 -1
- package/sdk/pronunciations.js +7 -0
- package/sdk/pronunciations.js.map +1 -1
- package/src/funcs/pronunciationsPronunciationsDeleteCsv.ts +139 -0
- 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 +3 -1
- package/src/mcp-server/tools/pronunciationsPronunciationsDeleteCsv.ts +26 -0
- package/src/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.ts +3 -1
- package/src/models/components/campaignproperties.ts +1 -0
- package/src/models/components/dictionarymetadata.ts +4 -4
- package/src/models/components/incidentcreaterequest.ts +3 -1
- package/src/models/components/incidentresponse.ts +3 -1
- package/src/models/components/incidentupdaterequest.ts +3 -23
- package/src/models/components/matchtype.ts +1 -0
- package/src/models/components/outboundcampaign.ts +9 -0
- package/src/models/components/outboundcampaigninput.ts +9 -0
- package/src/models/components/promptcreaterequest.ts +9 -0
- package/src/models/components/promptresponse.ts +7 -7
- package/src/models/components/promptupdaterequest.ts +7 -7
- package/src/models/components/pronunciationoverride.ts +16 -62
- package/src/models/components/pronunciationscsvuploadresponse.ts +12 -12
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/pronunciationsdownloadcsv.ts +84 -0
- package/src/sdk/pronunciations.ts +15 -1
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,10 +13,14 @@ 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
|
*/
|
|
19
20
|
pronunciationsUploadCsv(request: components.BodyPronunciationsUploadCsv, options?: RequestOptions): Promise<components.PronunciationsCsvUploadResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Delete Pronunciations Dictionary
|
|
23
|
+
*/
|
|
24
|
+
pronunciationsDeleteCsv(options?: RequestOptions): Promise<void>;
|
|
20
25
|
}
|
|
21
26
|
//# sourceMappingURL=pronunciations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pronunciations.d.ts","sourceRoot":"","sources":["../src/sdk/pronunciations.ts"],"names":[],"mappings":"
|
|
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"}
|
package/sdk/pronunciations.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Pronunciations = void 0;
|
|
7
|
+
const pronunciationsPronunciationsDeleteCsv_js_1 = require("../funcs/pronunciationsPronunciationsDeleteCsv.js");
|
|
7
8
|
const pronunciationsPronunciationsDownloadCsv_js_1 = require("../funcs/pronunciationsPronunciationsDownloadCsv.js");
|
|
8
9
|
const pronunciationsPronunciationsGet_js_1 = require("../funcs/pronunciationsPronunciationsGet.js");
|
|
9
10
|
const pronunciationsPronunciationsGetMetadata_js_1 = require("../funcs/pronunciationsPronunciationsGetMetadata.js");
|
|
@@ -35,6 +36,12 @@ class Pronunciations extends sdks_js_1.ClientSDK {
|
|
|
35
36
|
async pronunciationsUploadCsv(request, options) {
|
|
36
37
|
return (0, fp_js_1.unwrapAsync)((0, pronunciationsPronunciationsUploadCsv_js_1.pronunciationsPronunciationsUploadCsv)(this, request, options));
|
|
37
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* Delete Pronunciations Dictionary
|
|
41
|
+
*/
|
|
42
|
+
async pronunciationsDeleteCsv(options) {
|
|
43
|
+
return (0, fp_js_1.unwrapAsync)((0, pronunciationsPronunciationsDeleteCsv_js_1.pronunciationsPronunciationsDeleteCsv)(this, options));
|
|
44
|
+
}
|
|
38
45
|
}
|
|
39
46
|
exports.Pronunciations = Pronunciations;
|
|
40
47
|
//# sourceMappingURL=pronunciations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pronunciations.js","sourceRoot":"","sources":["../src/sdk/pronunciations.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,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"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { SyllableSDKCore } from "../core.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
|
+
import { pathToFunc } from "../lib/url.js";
|
|
12
|
+
import {
|
|
13
|
+
ConnectionError,
|
|
14
|
+
InvalidRequestError,
|
|
15
|
+
RequestAbortedError,
|
|
16
|
+
RequestTimeoutError,
|
|
17
|
+
UnexpectedClientError,
|
|
18
|
+
} from "../models/errors/httpclienterrors.js";
|
|
19
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
20
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
21
|
+
import { SyllableSDKError } from "../models/errors/syllablesdkerror.js";
|
|
22
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
23
|
+
import { Result } from "../types/fp.js";
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Delete Pronunciations Dictionary
|
|
27
|
+
*/
|
|
28
|
+
export function pronunciationsPronunciationsDeleteCsv(
|
|
29
|
+
client: SyllableSDKCore,
|
|
30
|
+
options?: RequestOptions,
|
|
31
|
+
): APIPromise<
|
|
32
|
+
Result<
|
|
33
|
+
void,
|
|
34
|
+
| SyllableSDKError
|
|
35
|
+
| ResponseValidationError
|
|
36
|
+
| ConnectionError
|
|
37
|
+
| RequestAbortedError
|
|
38
|
+
| RequestTimeoutError
|
|
39
|
+
| InvalidRequestError
|
|
40
|
+
| UnexpectedClientError
|
|
41
|
+
| SDKValidationError
|
|
42
|
+
>
|
|
43
|
+
> {
|
|
44
|
+
return new APIPromise($do(
|
|
45
|
+
client,
|
|
46
|
+
options,
|
|
47
|
+
));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
async function $do(
|
|
51
|
+
client: SyllableSDKCore,
|
|
52
|
+
options?: RequestOptions,
|
|
53
|
+
): Promise<
|
|
54
|
+
[
|
|
55
|
+
Result<
|
|
56
|
+
void,
|
|
57
|
+
| SyllableSDKError
|
|
58
|
+
| ResponseValidationError
|
|
59
|
+
| ConnectionError
|
|
60
|
+
| RequestAbortedError
|
|
61
|
+
| RequestTimeoutError
|
|
62
|
+
| InvalidRequestError
|
|
63
|
+
| UnexpectedClientError
|
|
64
|
+
| SDKValidationError
|
|
65
|
+
>,
|
|
66
|
+
APICall,
|
|
67
|
+
]
|
|
68
|
+
> {
|
|
69
|
+
const path = pathToFunc("/api/v1/pronunciations/csv")();
|
|
70
|
+
|
|
71
|
+
const headers = new Headers(compactMap({
|
|
72
|
+
Accept: "*/*",
|
|
73
|
+
}));
|
|
74
|
+
|
|
75
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
76
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
77
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
78
|
+
|
|
79
|
+
const context = {
|
|
80
|
+
options: client._options,
|
|
81
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
82
|
+
operationID: "pronunciations_delete_csv",
|
|
83
|
+
oAuth2Scopes: null,
|
|
84
|
+
|
|
85
|
+
resolvedSecurity: requestSecurity,
|
|
86
|
+
|
|
87
|
+
securitySource: client._options.apiKeyHeader,
|
|
88
|
+
retryConfig: options?.retries
|
|
89
|
+
|| client._options.retryConfig
|
|
90
|
+
|| { strategy: "none" },
|
|
91
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
const requestRes = client._createRequest(context, {
|
|
95
|
+
security: requestSecurity,
|
|
96
|
+
method: "DELETE",
|
|
97
|
+
baseURL: options?.serverURL,
|
|
98
|
+
path: path,
|
|
99
|
+
headers: headers,
|
|
100
|
+
userAgent: client._options.userAgent,
|
|
101
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
102
|
+
}, options);
|
|
103
|
+
if (!requestRes.ok) {
|
|
104
|
+
return [requestRes, { status: "invalid" }];
|
|
105
|
+
}
|
|
106
|
+
const req = requestRes.value;
|
|
107
|
+
|
|
108
|
+
const doResult = await client._do(req, {
|
|
109
|
+
context,
|
|
110
|
+
errorCodes: ["4XX", "5XX"],
|
|
111
|
+
retryConfig: context.retryConfig,
|
|
112
|
+
retryCodes: context.retryCodes,
|
|
113
|
+
});
|
|
114
|
+
if (!doResult.ok) {
|
|
115
|
+
return [doResult, { status: "request-error", request: req }];
|
|
116
|
+
}
|
|
117
|
+
const response = doResult.value;
|
|
118
|
+
|
|
119
|
+
const [result] = await M.match<
|
|
120
|
+
void,
|
|
121
|
+
| SyllableSDKError
|
|
122
|
+
| ResponseValidationError
|
|
123
|
+
| ConnectionError
|
|
124
|
+
| RequestAbortedError
|
|
125
|
+
| RequestTimeoutError
|
|
126
|
+
| InvalidRequestError
|
|
127
|
+
| UnexpectedClientError
|
|
128
|
+
| SDKValidationError
|
|
129
|
+
>(
|
|
130
|
+
M.nil(204, z.void()),
|
|
131
|
+
M.fail("4XX"),
|
|
132
|
+
M.fail("5XX"),
|
|
133
|
+
)(response, req);
|
|
134
|
+
if (!result.ok) {
|
|
135
|
+
return [result, { status: "complete", request: req, response }];
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
return [result, { status: "complete", request: req, response }];
|
|
139
|
+
}
|
|
@@ -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.10",
|
|
65
|
+
genVersion: "2.723.11",
|
|
66
|
+
userAgent: "speakeasy-sdk/typescript 1.0.2-rc.10 2.723.11 0.0.2 syllable-sdk",
|
|
67
67
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -115,6 +115,7 @@ import { tool$promptsList } from "./tools/promptsList.js";
|
|
|
115
115
|
import { tool$promptsPromptGetSupportedLlms } from "./tools/promptsPromptGetSupportedLlms.js";
|
|
116
116
|
import { tool$promptsPromptsHistory } from "./tools/promptsPromptsHistory.js";
|
|
117
117
|
import { tool$promptsUpdate } from "./tools/promptsUpdate.js";
|
|
118
|
+
import { tool$pronunciationsPronunciationsDeleteCsv } from "./tools/pronunciationsPronunciationsDeleteCsv.js";
|
|
118
119
|
import { tool$pronunciationsPronunciationsDownloadCsv } from "./tools/pronunciationsPronunciationsDownloadCsv.js";
|
|
119
120
|
import { tool$pronunciationsPronunciationsGet } from "./tools/pronunciationsPronunciationsGet.js";
|
|
120
121
|
import { tool$pronunciationsPronunciationsGetMetadata } from "./tools/pronunciationsPronunciationsGetMetadata.js";
|
|
@@ -168,7 +169,7 @@ export function createMCPServer(deps: {
|
|
|
168
169
|
}) {
|
|
169
170
|
const server = new McpServer({
|
|
170
171
|
name: "SyllableSDK",
|
|
171
|
-
version: "1.0.2-rc.
|
|
172
|
+
version: "1.0.2-rc.10",
|
|
172
173
|
});
|
|
173
174
|
|
|
174
175
|
const client = new SyllableSDKCore({
|
|
@@ -239,6 +240,7 @@ export function createMCPServer(deps: {
|
|
|
239
240
|
tool(tool$pronunciationsPronunciationsGetMetadata);
|
|
240
241
|
tool(tool$pronunciationsPronunciationsDownloadCsv);
|
|
241
242
|
tool(tool$pronunciationsPronunciationsUploadCsv);
|
|
243
|
+
tool(tool$pronunciationsPronunciationsDeleteCsv);
|
|
242
244
|
tool(tool$rolesList);
|
|
243
245
|
tool(tool$rolesCreate);
|
|
244
246
|
tool(tool$rolesUpdate);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { pronunciationsPronunciationsDeleteCsv } from "../../funcs/pronunciationsPronunciationsDeleteCsv.js";
|
|
6
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
7
|
+
|
|
8
|
+
export const tool$pronunciationsPronunciationsDeleteCsv: ToolDefinition = {
|
|
9
|
+
name: "pronunciations-pronunciations-delete-csv",
|
|
10
|
+
description: `Delete Pronunciations Dictionary`,
|
|
11
|
+
tool: async (client, ctx) => {
|
|
12
|
+
const [result, apiCall] = await pronunciationsPronunciationsDeleteCsv(
|
|
13
|
+
client,
|
|
14
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
15
|
+
).$inspect();
|
|
16
|
+
|
|
17
|
+
if (!result.ok) {
|
|
18
|
+
return {
|
|
19
|
+
content: [{ type: "text", text: result.error.message }],
|
|
20
|
+
isError: true,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return formatResult(void 0, apiCall);
|
|
25
|
+
},
|
|
26
|
+
};
|
|
@@ -13,7 +13,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
13
13
|
export type DictionaryMetadata = {
|
|
14
14
|
entries: number;
|
|
15
15
|
hash: string;
|
|
16
|
-
source?: string |
|
|
16
|
+
source?: string | undefined;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
/** @internal */
|
|
@@ -24,14 +24,14 @@ export const DictionaryMetadata$inboundSchema: z.ZodType<
|
|
|
24
24
|
> = z.object({
|
|
25
25
|
entries: z.number().int(),
|
|
26
26
|
hash: z.string(),
|
|
27
|
-
source: z.
|
|
27
|
+
source: z.string().default(""),
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
/** @internal */
|
|
31
31
|
export type DictionaryMetadata$Outbound = {
|
|
32
32
|
entries: number;
|
|
33
33
|
hash: string;
|
|
34
|
-
source
|
|
34
|
+
source: string;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
/** @internal */
|
|
@@ -42,7 +42,7 @@ export const DictionaryMetadata$outboundSchema: z.ZodType<
|
|
|
42
42
|
> = z.object({
|
|
43
43
|
entries: z.number().int(),
|
|
44
44
|
hash: z.string(),
|
|
45
|
-
source: z.
|
|
45
|
+
source: z.string().default(""),
|
|
46
46
|
});
|
|
47
47
|
|
|
48
48
|
/**
|
|
@@ -45,7 +45,9 @@ export type IncidentCreateRequest = {
|
|
|
45
45
|
*/
|
|
46
46
|
subOrganizationId?: number | null | undefined;
|
|
47
47
|
/**
|
|
48
|
-
* The name of the sub-organization
|
|
48
|
+
* The name of the sub-organization (DEPRECATED)
|
|
49
|
+
*
|
|
50
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
49
51
|
*/
|
|
50
52
|
subOrganization?: string | null | undefined;
|
|
51
53
|
};
|
|
@@ -45,7 +45,9 @@ export type IncidentResponse = {
|
|
|
45
45
|
*/
|
|
46
46
|
subOrganizationId?: number | null | undefined;
|
|
47
47
|
/**
|
|
48
|
-
* The name of the sub-organization
|
|
48
|
+
* The name of the sub-organization (DEPRECATED)
|
|
49
|
+
*
|
|
50
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
49
51
|
*/
|
|
50
52
|
subOrganization?: string | null | undefined;
|
|
51
53
|
/**
|
|
@@ -45,21 +45,15 @@ export type IncidentUpdateRequest = {
|
|
|
45
45
|
*/
|
|
46
46
|
subOrganizationId?: number | null | undefined;
|
|
47
47
|
/**
|
|
48
|
-
* The name of the sub-organization
|
|
48
|
+
* The name of the sub-organization (DEPRECATED)
|
|
49
|
+
*
|
|
50
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
49
51
|
*/
|
|
50
52
|
subOrganization?: string | null | undefined;
|
|
51
53
|
/**
|
|
52
54
|
* The ID of the incident to update
|
|
53
55
|
*/
|
|
54
56
|
id: number;
|
|
55
|
-
/**
|
|
56
|
-
* Creation time of the incident
|
|
57
|
-
*/
|
|
58
|
-
createdAt?: Date | null | undefined;
|
|
59
|
-
/**
|
|
60
|
-
* Last update time of the incident
|
|
61
|
-
*/
|
|
62
|
-
updatedAt?: Date | null | undefined;
|
|
63
57
|
};
|
|
64
58
|
|
|
65
59
|
/** @internal */
|
|
@@ -82,12 +76,6 @@ export const IncidentUpdateRequest$inboundSchema: z.ZodType<
|
|
|
82
76
|
sub_organization_id: z.nullable(z.number().int()).optional(),
|
|
83
77
|
sub_organization: z.nullable(z.string()).optional(),
|
|
84
78
|
id: z.number().int(),
|
|
85
|
-
created_at: z.nullable(
|
|
86
|
-
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
87
|
-
).optional(),
|
|
88
|
-
updated_at: z.nullable(
|
|
89
|
-
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
90
|
-
).optional(),
|
|
91
79
|
}).transform((v) => {
|
|
92
80
|
return remap$(v, {
|
|
93
81
|
"start_datetime": "startDatetime",
|
|
@@ -97,8 +85,6 @@ export const IncidentUpdateRequest$inboundSchema: z.ZodType<
|
|
|
97
85
|
"organization_id": "organizationId",
|
|
98
86
|
"sub_organization_id": "subOrganizationId",
|
|
99
87
|
"sub_organization": "subOrganization",
|
|
100
|
-
"created_at": "createdAt",
|
|
101
|
-
"updated_at": "updatedAt",
|
|
102
88
|
});
|
|
103
89
|
});
|
|
104
90
|
|
|
@@ -114,8 +100,6 @@ export type IncidentUpdateRequest$Outbound = {
|
|
|
114
100
|
sub_organization_id?: number | null | undefined;
|
|
115
101
|
sub_organization?: string | null | undefined;
|
|
116
102
|
id: number;
|
|
117
|
-
created_at?: string | null | undefined;
|
|
118
|
-
updated_at?: string | null | undefined;
|
|
119
103
|
};
|
|
120
104
|
|
|
121
105
|
/** @internal */
|
|
@@ -134,8 +118,6 @@ export const IncidentUpdateRequest$outboundSchema: z.ZodType<
|
|
|
134
118
|
subOrganizationId: z.nullable(z.number().int()).optional(),
|
|
135
119
|
subOrganization: z.nullable(z.string()).optional(),
|
|
136
120
|
id: z.number().int(),
|
|
137
|
-
createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
138
|
-
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
139
121
|
}).transform((v) => {
|
|
140
122
|
return remap$(v, {
|
|
141
123
|
startDatetime: "start_datetime",
|
|
@@ -145,8 +127,6 @@ export const IncidentUpdateRequest$outboundSchema: z.ZodType<
|
|
|
145
127
|
organizationId: "organization_id",
|
|
146
128
|
subOrganizationId: "sub_organization_id",
|
|
147
129
|
subOrganization: "sub_organization",
|
|
148
|
-
createdAt: "created_at",
|
|
149
|
-
updatedAt: "updated_at",
|
|
150
130
|
});
|
|
151
131
|
});
|
|
152
132
|
|
|
@@ -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
|
|
|
@@ -46,6 +46,10 @@ export type PromptCreateRequest = {
|
|
|
46
46
|
* Whether session end functionality is enabled for this prompt
|
|
47
47
|
*/
|
|
48
48
|
sessionEndEnabled?: boolean | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* The comments for the most recent edit to the prompt
|
|
51
|
+
*/
|
|
52
|
+
editComments?: string | null | undefined;
|
|
49
53
|
/**
|
|
50
54
|
* Whether to include the default tools (`hangup`) in the list of tools for the prompt. If you disable this during creation, you might want to disable it during updates as well, otherwise the default tools will be added when updating the prompt.
|
|
51
55
|
*/
|
|
@@ -65,11 +69,13 @@ export const PromptCreateRequest$inboundSchema: z.ZodType<
|
|
|
65
69
|
tools: z.array(z.string()).optional(),
|
|
66
70
|
llm_config: PromptLlmConfig$inboundSchema,
|
|
67
71
|
session_end_enabled: z.boolean().default(false),
|
|
72
|
+
edit_comments: z.nullable(z.string()).optional(),
|
|
68
73
|
include_default_tools: z.boolean().default(true),
|
|
69
74
|
}).transform((v) => {
|
|
70
75
|
return remap$(v, {
|
|
71
76
|
"llm_config": "llmConfig",
|
|
72
77
|
"session_end_enabled": "sessionEndEnabled",
|
|
78
|
+
"edit_comments": "editComments",
|
|
73
79
|
"include_default_tools": "includeDefaultTools",
|
|
74
80
|
});
|
|
75
81
|
});
|
|
@@ -83,6 +89,7 @@ export type PromptCreateRequest$Outbound = {
|
|
|
83
89
|
tools?: Array<string> | undefined;
|
|
84
90
|
llm_config: PromptLlmConfig$Outbound;
|
|
85
91
|
session_end_enabled: boolean;
|
|
92
|
+
edit_comments?: string | null | undefined;
|
|
86
93
|
include_default_tools: boolean;
|
|
87
94
|
};
|
|
88
95
|
|
|
@@ -99,11 +106,13 @@ export const PromptCreateRequest$outboundSchema: z.ZodType<
|
|
|
99
106
|
tools: z.array(z.string()).optional(),
|
|
100
107
|
llmConfig: PromptLlmConfig$outboundSchema,
|
|
101
108
|
sessionEndEnabled: z.boolean().default(false),
|
|
109
|
+
editComments: z.nullable(z.string()).optional(),
|
|
102
110
|
includeDefaultTools: z.boolean().default(true),
|
|
103
111
|
}).transform((v) => {
|
|
104
112
|
return remap$(v, {
|
|
105
113
|
llmConfig: "llm_config",
|
|
106
114
|
sessionEndEnabled: "session_end_enabled",
|
|
115
|
+
editComments: "edit_comments",
|
|
107
116
|
includeDefaultTools: "include_default_tools",
|
|
108
117
|
});
|
|
109
118
|
});
|