syllable-sdk 1.0.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 +8 -0
- package/bin/mcp-server.js +628 -111
- package/bin/mcp-server.js.map +32 -18
- 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 +277 -1
- 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 +14 -0
- package/funcs/pronunciationsPronunciationsDownloadCsv.d.ts.map +1 -0
- package/funcs/pronunciationsPronunciationsDownloadCsv.js +108 -0
- package/funcs/pronunciationsPronunciationsDownloadCsv.js.map +1 -0
- package/funcs/pronunciationsPronunciationsGet.d.ts +14 -0
- package/funcs/pronunciationsPronunciationsGet.d.ts.map +1 -0
- package/funcs/pronunciationsPronunciationsGet.js +101 -0
- package/funcs/pronunciationsPronunciationsGet.js.map +1 -0
- package/funcs/pronunciationsPronunciationsGetMetadata.d.ts +14 -0
- package/funcs/pronunciationsPronunciationsGetMetadata.d.ts.map +1 -0
- package/funcs/pronunciationsPronunciationsGetMetadata.js +101 -0
- package/funcs/pronunciationsPronunciationsGetMetadata.js.map +1 -0
- 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 +9 -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 +3 -0
- package/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.d.ts.map +1 -0
- package/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.js +24 -0
- package/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.js.map +1 -0
- package/mcp-server/tools/pronunciationsPronunciationsGet.d.ts +3 -0
- package/mcp-server/tools/pronunciationsPronunciationsGet.d.ts.map +1 -0
- package/mcp-server/tools/pronunciationsPronunciationsGet.js +24 -0
- package/mcp-server/tools/pronunciationsPronunciationsGet.js.map +1 -0
- package/mcp-server/tools/pronunciationsPronunciationsGetMetadata.d.ts +3 -0
- package/mcp-server/tools/pronunciationsPronunciationsGetMetadata.d.ts.map +1 -0
- package/mcp-server/tools/pronunciationsPronunciationsGetMetadata.js +24 -0
- package/mcp-server/tools/pronunciationsPronunciationsGetMetadata.js.map +1 -0
- 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 +36 -0
- package/models/components/dictionarymetadata.d.ts.map +1 -0
- package/models/components/dictionarymetadata.js +73 -0
- package/models/components/dictionarymetadata.js.map +1 -0
- 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/index.d.ts +5 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -0
- package/models/components/index.js.map +1 -1
- package/models/components/matchtype.d.ts +34 -0
- package/models/components/matchtype.d.ts.map +1 -0
- package/models/components/matchtype.js +64 -0
- package/models/components/matchtype.js.map +1 -0
- 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 +52 -0
- package/models/components/pronunciationoverride.d.ts.map +1 -0
- package/models/components/pronunciationoverride.js +97 -0
- package/models/components/pronunciationoverride.js.map +1 -0
- package/models/components/pronunciationoverridesdictionary.d.ts +68 -0
- package/models/components/pronunciationoverridesdictionary.d.ts.map +1 -0
- package/models/components/pronunciationoverridesdictionary.js +78 -0
- package/models/components/pronunciationoverridesdictionary.js.map +1 -0
- 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/components/voicedisplayinfo.d.ts +34 -0
- package/models/components/voicedisplayinfo.d.ts.map +1 -0
- package/models/components/voicedisplayinfo.js +80 -0
- package/models/components/voicedisplayinfo.js.map +1 -0
- 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 +387 -110
- package/package.json +1 -1
- package/sdk/pronunciations.d.ts +17 -0
- package/sdk/pronunciations.d.ts.map +1 -1
- package/sdk/pronunciations.js +28 -0
- package/sdk/pronunciations.js.map +1 -1
- package/src/funcs/pronunciationsPronunciationsDeleteCsv.ts +139 -0
- package/src/funcs/pronunciationsPronunciationsDownloadCsv.ts +147 -0
- package/src/funcs/pronunciationsPronunciationsGet.ts +139 -0
- package/src/funcs/pronunciationsPronunciationsGetMetadata.ts +139 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +9 -1
- package/src/mcp-server/tools/pronunciationsPronunciationsDeleteCsv.ts +26 -0
- package/src/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.ts +28 -0
- package/src/mcp-server/tools/pronunciationsPronunciationsGet.ts +28 -0
- package/src/mcp-server/tools/pronunciationsPronunciationsGetMetadata.ts +28 -0
- package/src/models/components/campaignproperties.ts +1 -0
- package/src/models/components/dictionarymetadata.ts +77 -0
- 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/index.ts +5 -0
- package/src/models/components/matchtype.ts +37 -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 +120 -0
- package/src/models/components/pronunciationoverridesdictionary.ts +124 -0
- package/src/models/components/pronunciationscsvuploadresponse.ts +12 -12
- package/src/models/components/voicedisplayinfo.ts +82 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/pronunciationsdownloadcsv.ts +84 -0
- package/src/sdk/pronunciations.ts +53 -0
|
@@ -123,9 +123,9 @@ const syllableSDK = new SyllableSDK({
|
|
|
123
123
|
|
|
124
124
|
async function run() {
|
|
125
125
|
const result = await syllableSDK.outbound.batches.create({
|
|
126
|
-
batchId: "
|
|
126
|
+
batchId: "20251013.9",
|
|
127
127
|
campaignId: 1,
|
|
128
|
-
expiresOn: new Date("2025-10-
|
|
128
|
+
expiresOn: new Date("2025-10-14T00:00:00Z"),
|
|
129
129
|
paused: true,
|
|
130
130
|
});
|
|
131
131
|
|
|
@@ -151,9 +151,9 @@ const syllableSDK = new SyllableSDKCore({
|
|
|
151
151
|
|
|
152
152
|
async function run() {
|
|
153
153
|
const res = await outboundBatchesCreate(syllableSDK, {
|
|
154
|
-
batchId: "
|
|
154
|
+
batchId: "20251013.9",
|
|
155
155
|
campaignId: 1,
|
|
156
|
-
expiresOn: new Date("2025-10-
|
|
156
|
+
expiresOn: new Date("2025-10-14T00:00:00Z"),
|
|
157
157
|
paused: true,
|
|
158
158
|
});
|
|
159
159
|
if (res.ok) {
|
|
@@ -145,6 +145,12 @@ async function run() {
|
|
|
145
145
|
"thu",
|
|
146
146
|
"fri",
|
|
147
147
|
],
|
|
148
|
+
voicemailDetection: {
|
|
149
|
+
"voicemail_detection_overall_timeout": 30,
|
|
150
|
+
"voicemail_detection_post_speech_timeout": 1.2,
|
|
151
|
+
"voicemail_detection_pre_speech_timeout": 5,
|
|
152
|
+
"voicemail_detection_speech_threshold": 2.4,
|
|
153
|
+
},
|
|
148
154
|
});
|
|
149
155
|
|
|
150
156
|
console.log(result);
|
|
@@ -195,6 +201,12 @@ async function run() {
|
|
|
195
201
|
"thu",
|
|
196
202
|
"fri",
|
|
197
203
|
],
|
|
204
|
+
voicemailDetection: {
|
|
205
|
+
"voicemail_detection_overall_timeout": 30,
|
|
206
|
+
"voicemail_detection_post_speech_timeout": 1.2,
|
|
207
|
+
"voicemail_detection_pre_speech_timeout": 5,
|
|
208
|
+
"voicemail_detection_speech_threshold": 2.4,
|
|
209
|
+
},
|
|
198
210
|
});
|
|
199
211
|
if (res.ok) {
|
|
200
212
|
const { value: result } = res;
|
|
@@ -345,6 +357,12 @@ async function run() {
|
|
|
345
357
|
"thu",
|
|
346
358
|
"fri",
|
|
347
359
|
],
|
|
360
|
+
voicemailDetection: {
|
|
361
|
+
"voicemail_detection_overall_timeout": 30,
|
|
362
|
+
"voicemail_detection_post_speech_timeout": 1.2,
|
|
363
|
+
"voicemail_detection_pre_speech_timeout": 5,
|
|
364
|
+
"voicemail_detection_speech_threshold": 2.4,
|
|
365
|
+
},
|
|
348
366
|
},
|
|
349
367
|
});
|
|
350
368
|
|
|
@@ -398,6 +416,12 @@ async function run() {
|
|
|
398
416
|
"thu",
|
|
399
417
|
"fri",
|
|
400
418
|
],
|
|
419
|
+
voicemailDetection: {
|
|
420
|
+
"voicemail_detection_overall_timeout": 30,
|
|
421
|
+
"voicemail_detection_post_speech_timeout": 1.2,
|
|
422
|
+
"voicemail_detection_pre_speech_timeout": 5,
|
|
423
|
+
"voicemail_detection_speech_threshold": 2.4,
|
|
424
|
+
},
|
|
401
425
|
},
|
|
402
426
|
});
|
|
403
427
|
if (res.ok) {
|
|
@@ -128,7 +128,6 @@ async function run() {
|
|
|
128
128
|
markdown: "**Incident Details**",
|
|
129
129
|
organizationId: 123,
|
|
130
130
|
subOrganizationId: 456,
|
|
131
|
-
subOrganization: "SubOrg A",
|
|
132
131
|
});
|
|
133
132
|
|
|
134
133
|
console.log(result);
|
|
@@ -161,7 +160,6 @@ async function run() {
|
|
|
161
160
|
markdown: "**Incident Details**",
|
|
162
161
|
organizationId: 123,
|
|
163
162
|
subOrganizationId: 456,
|
|
164
|
-
subOrganization: "SubOrg A",
|
|
165
163
|
});
|
|
166
164
|
if (res.ok) {
|
|
167
165
|
const { value: result } = res;
|
|
@@ -218,10 +216,7 @@ async function run() {
|
|
|
218
216
|
markdown: "**Incident Details**",
|
|
219
217
|
organizationId: 123,
|
|
220
218
|
subOrganizationId: 456,
|
|
221
|
-
subOrganization: "SubOrg A",
|
|
222
219
|
id: 1,
|
|
223
|
-
createdAt: new Date("2023-10-01T08:00:00Z"),
|
|
224
|
-
updatedAt: new Date("2023-10-01T08:00:00Z"),
|
|
225
220
|
});
|
|
226
221
|
|
|
227
222
|
console.log(result);
|
|
@@ -254,10 +249,7 @@ async function run() {
|
|
|
254
249
|
markdown: "**Incident Details**",
|
|
255
250
|
organizationId: 123,
|
|
256
251
|
subOrganizationId: 456,
|
|
257
|
-
subOrganization: "SubOrg A",
|
|
258
252
|
id: 1,
|
|
259
|
-
createdAt: new Date("2023-10-01T08:00:00Z"),
|
|
260
|
-
updatedAt: new Date("2023-10-01T08:00:00Z"),
|
|
261
253
|
});
|
|
262
254
|
if (res.ok) {
|
|
263
255
|
const { value: result } = res;
|
|
@@ -132,6 +132,7 @@ async function run() {
|
|
|
132
132
|
temperature: 1,
|
|
133
133
|
seed: 123,
|
|
134
134
|
},
|
|
135
|
+
editComments: "Updated prompt text to include requirement to not answer questions that aren't about weather.",
|
|
135
136
|
});
|
|
136
137
|
|
|
137
138
|
console.log(result);
|
|
@@ -167,6 +168,7 @@ async function run() {
|
|
|
167
168
|
temperature: 1,
|
|
168
169
|
seed: 123,
|
|
169
170
|
},
|
|
171
|
+
editComments: "Updated prompt text to include requirement to not answer questions that aren't about weather.",
|
|
170
172
|
});
|
|
171
173
|
if (res.ok) {
|
|
172
174
|
const { value: result } = res;
|
|
@@ -226,8 +228,8 @@ async function run() {
|
|
|
226
228
|
temperature: 1,
|
|
227
229
|
seed: 123,
|
|
228
230
|
},
|
|
229
|
-
id: 1,
|
|
230
231
|
editComments: "Updated prompt text to include requirement to not answer questions that aren't about weather.",
|
|
232
|
+
id: 1,
|
|
231
233
|
});
|
|
232
234
|
|
|
233
235
|
console.log(result);
|
|
@@ -263,8 +265,8 @@ async function run() {
|
|
|
263
265
|
temperature: 1,
|
|
264
266
|
seed: 123,
|
|
265
267
|
},
|
|
266
|
-
id: 1,
|
|
267
268
|
editComments: "Updated prompt text to include requirement to not answer questions that aren't about weather.",
|
|
269
|
+
id: 1,
|
|
268
270
|
});
|
|
269
271
|
if (res.ok) {
|
|
270
272
|
const { value: result } = res;
|
|
@@ -5,7 +5,215 @@
|
|
|
5
5
|
|
|
6
6
|
### Available Operations
|
|
7
7
|
|
|
8
|
+
* [pronunciationsGet](#pronunciationsget) - Get Pronunciations Dictionary
|
|
9
|
+
* [pronunciationsGetMetadata](#pronunciationsgetmetadata) - Get Pronunciations Metadata
|
|
10
|
+
* [pronunciationsDownloadCsv](#pronunciationsdownloadcsv) - Download Pronunciations Csv
|
|
8
11
|
* [pronunciationsUploadCsv](#pronunciationsuploadcsv) - Upload Pronunciations Csv
|
|
12
|
+
* [pronunciationsDeleteCsv](#pronunciationsdeletecsv) - Delete Pronunciations Dictionary
|
|
13
|
+
|
|
14
|
+
## pronunciationsGet
|
|
15
|
+
|
|
16
|
+
Get Pronunciations Dictionary
|
|
17
|
+
|
|
18
|
+
### Example Usage
|
|
19
|
+
|
|
20
|
+
<!-- UsageSnippet language="typescript" operationID="pronunciations_get" method="get" path="/api/v1/pronunciations" -->
|
|
21
|
+
```typescript
|
|
22
|
+
import { SyllableSDK } from "syllable-sdk";
|
|
23
|
+
|
|
24
|
+
const syllableSDK = new SyllableSDK({
|
|
25
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
async function run() {
|
|
29
|
+
const result = await syllableSDK.pronunciations.pronunciationsGet();
|
|
30
|
+
|
|
31
|
+
console.log(result);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
run();
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Standalone function
|
|
38
|
+
|
|
39
|
+
The standalone function version of this method:
|
|
40
|
+
|
|
41
|
+
```typescript
|
|
42
|
+
import { SyllableSDKCore } from "syllable-sdk/core.js";
|
|
43
|
+
import { pronunciationsPronunciationsGet } from "syllable-sdk/funcs/pronunciationsPronunciationsGet.js";
|
|
44
|
+
|
|
45
|
+
// Use `SyllableSDKCore` for best tree-shaking performance.
|
|
46
|
+
// You can create one instance of it to use across an application.
|
|
47
|
+
const syllableSDK = new SyllableSDKCore({
|
|
48
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
async function run() {
|
|
52
|
+
const res = await pronunciationsPronunciationsGet(syllableSDK);
|
|
53
|
+
if (res.ok) {
|
|
54
|
+
const { value: result } = res;
|
|
55
|
+
console.log(result);
|
|
56
|
+
} else {
|
|
57
|
+
console.log("pronunciationsPronunciationsGet failed:", res.error);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
run();
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Parameters
|
|
65
|
+
|
|
66
|
+
| Parameter | Type | Required | Description |
|
|
67
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
68
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
69
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
70
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
71
|
+
|
|
72
|
+
### Response
|
|
73
|
+
|
|
74
|
+
**Promise\<[components.PronunciationOverridesDictionary](../../models/components/pronunciationoverridesdictionary.md)\>**
|
|
75
|
+
|
|
76
|
+
### Errors
|
|
77
|
+
|
|
78
|
+
| Error Type | Status Code | Content Type |
|
|
79
|
+
| --------------- | --------------- | --------------- |
|
|
80
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
81
|
+
|
|
82
|
+
## pronunciationsGetMetadata
|
|
83
|
+
|
|
84
|
+
Get Pronunciations Metadata
|
|
85
|
+
|
|
86
|
+
### Example Usage
|
|
87
|
+
|
|
88
|
+
<!-- UsageSnippet language="typescript" operationID="pronunciations_get_metadata" method="get" path="/api/v1/pronunciations/metadata" -->
|
|
89
|
+
```typescript
|
|
90
|
+
import { SyllableSDK } from "syllable-sdk";
|
|
91
|
+
|
|
92
|
+
const syllableSDK = new SyllableSDK({
|
|
93
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
async function run() {
|
|
97
|
+
const result = await syllableSDK.pronunciations.pronunciationsGetMetadata();
|
|
98
|
+
|
|
99
|
+
console.log(result);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
run();
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Standalone function
|
|
106
|
+
|
|
107
|
+
The standalone function version of this method:
|
|
108
|
+
|
|
109
|
+
```typescript
|
|
110
|
+
import { SyllableSDKCore } from "syllable-sdk/core.js";
|
|
111
|
+
import { pronunciationsPronunciationsGetMetadata } from "syllable-sdk/funcs/pronunciationsPronunciationsGetMetadata.js";
|
|
112
|
+
|
|
113
|
+
// Use `SyllableSDKCore` for best tree-shaking performance.
|
|
114
|
+
// You can create one instance of it to use across an application.
|
|
115
|
+
const syllableSDK = new SyllableSDKCore({
|
|
116
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
async function run() {
|
|
120
|
+
const res = await pronunciationsPronunciationsGetMetadata(syllableSDK);
|
|
121
|
+
if (res.ok) {
|
|
122
|
+
const { value: result } = res;
|
|
123
|
+
console.log(result);
|
|
124
|
+
} else {
|
|
125
|
+
console.log("pronunciationsPronunciationsGetMetadata failed:", res.error);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
run();
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### Parameters
|
|
133
|
+
|
|
134
|
+
| Parameter | Type | Required | Description |
|
|
135
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
136
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
137
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
138
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
139
|
+
|
|
140
|
+
### Response
|
|
141
|
+
|
|
142
|
+
**Promise\<[components.DictionaryMetadata](../../models/components/dictionarymetadata.md)\>**
|
|
143
|
+
|
|
144
|
+
### Errors
|
|
145
|
+
|
|
146
|
+
| Error Type | Status Code | Content Type |
|
|
147
|
+
| --------------- | --------------- | --------------- |
|
|
148
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
149
|
+
|
|
150
|
+
## pronunciationsDownloadCsv
|
|
151
|
+
|
|
152
|
+
Download Pronunciations Csv
|
|
153
|
+
|
|
154
|
+
### Example Usage
|
|
155
|
+
|
|
156
|
+
<!-- UsageSnippet language="typescript" operationID="pronunciations_download_csv" method="get" path="/api/v1/pronunciations/csv" -->
|
|
157
|
+
```typescript
|
|
158
|
+
import { SyllableSDK } from "syllable-sdk";
|
|
159
|
+
|
|
160
|
+
const syllableSDK = new SyllableSDK({
|
|
161
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
async function run() {
|
|
165
|
+
const result = await syllableSDK.pronunciations.pronunciationsDownloadCsv();
|
|
166
|
+
|
|
167
|
+
console.log(result);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
run();
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### Standalone function
|
|
174
|
+
|
|
175
|
+
The standalone function version of this method:
|
|
176
|
+
|
|
177
|
+
```typescript
|
|
178
|
+
import { SyllableSDKCore } from "syllable-sdk/core.js";
|
|
179
|
+
import { pronunciationsPronunciationsDownloadCsv } from "syllable-sdk/funcs/pronunciationsPronunciationsDownloadCsv.js";
|
|
180
|
+
|
|
181
|
+
// Use `SyllableSDKCore` for best tree-shaking performance.
|
|
182
|
+
// You can create one instance of it to use across an application.
|
|
183
|
+
const syllableSDK = new SyllableSDKCore({
|
|
184
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
async function run() {
|
|
188
|
+
const res = await pronunciationsPronunciationsDownloadCsv(syllableSDK);
|
|
189
|
+
if (res.ok) {
|
|
190
|
+
const { value: result } = res;
|
|
191
|
+
console.log(result);
|
|
192
|
+
} else {
|
|
193
|
+
console.log("pronunciationsPronunciationsDownloadCsv failed:", res.error);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
run();
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
### Parameters
|
|
201
|
+
|
|
202
|
+
| Parameter | Type | Required | Description |
|
|
203
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
204
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
205
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
206
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
207
|
+
|
|
208
|
+
### Response
|
|
209
|
+
|
|
210
|
+
**Promise\<[operations.PronunciationsDownloadCsvResponse](../../models/operations/pronunciationsdownloadcsvresponse.md)\>**
|
|
211
|
+
|
|
212
|
+
### Errors
|
|
213
|
+
|
|
214
|
+
| Error Type | Status Code | Content Type |
|
|
215
|
+
| --------------- | --------------- | --------------- |
|
|
216
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
9
217
|
|
|
10
218
|
## pronunciationsUploadCsv
|
|
11
219
|
|
|
@@ -81,4 +289,72 @@ run();
|
|
|
81
289
|
| Error Type | Status Code | Content Type |
|
|
82
290
|
| -------------------------- | -------------------------- | -------------------------- |
|
|
83
291
|
| errors.HTTPValidationError | 422 | application/json |
|
|
84
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
292
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
293
|
+
|
|
294
|
+
## pronunciationsDeleteCsv
|
|
295
|
+
|
|
296
|
+
Delete Pronunciations Dictionary
|
|
297
|
+
|
|
298
|
+
### Example Usage
|
|
299
|
+
|
|
300
|
+
<!-- UsageSnippet language="typescript" operationID="pronunciations_delete_csv" method="delete" path="/api/v1/pronunciations/csv" -->
|
|
301
|
+
```typescript
|
|
302
|
+
import { SyllableSDK } from "syllable-sdk";
|
|
303
|
+
|
|
304
|
+
const syllableSDK = new SyllableSDK({
|
|
305
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
306
|
+
});
|
|
307
|
+
|
|
308
|
+
async function run() {
|
|
309
|
+
await syllableSDK.pronunciations.pronunciationsDeleteCsv();
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
run();
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
### Standalone function
|
|
318
|
+
|
|
319
|
+
The standalone function version of this method:
|
|
320
|
+
|
|
321
|
+
```typescript
|
|
322
|
+
import { SyllableSDKCore } from "syllable-sdk/core.js";
|
|
323
|
+
import { pronunciationsPronunciationsDeleteCsv } from "syllable-sdk/funcs/pronunciationsPronunciationsDeleteCsv.js";
|
|
324
|
+
|
|
325
|
+
// Use `SyllableSDKCore` for best tree-shaking performance.
|
|
326
|
+
// You can create one instance of it to use across an application.
|
|
327
|
+
const syllableSDK = new SyllableSDKCore({
|
|
328
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
329
|
+
});
|
|
330
|
+
|
|
331
|
+
async function run() {
|
|
332
|
+
const res = await pronunciationsPronunciationsDeleteCsv(syllableSDK);
|
|
333
|
+
if (res.ok) {
|
|
334
|
+
const { value: result } = res;
|
|
335
|
+
|
|
336
|
+
} else {
|
|
337
|
+
console.log("pronunciationsPronunciationsDeleteCsv failed:", res.error);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
run();
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
### Parameters
|
|
345
|
+
|
|
346
|
+
| Parameter | Type | Required | Description |
|
|
347
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
348
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
349
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
350
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
351
|
+
|
|
352
|
+
### Response
|
|
353
|
+
|
|
354
|
+
**Promise\<void\>**
|
|
355
|
+
|
|
356
|
+
### Errors
|
|
357
|
+
|
|
358
|
+
| Error Type | Status Code | Content Type |
|
|
359
|
+
| --------------- | --------------- | --------------- |
|
|
360
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -148,8 +148,8 @@ async function run() {
|
|
|
148
148
|
"sheet_name": "Q1 Sales Data",
|
|
149
149
|
},
|
|
150
150
|
},
|
|
151
|
-
startDatetime: new Date("2025-10-
|
|
152
|
-
endDatetime: new Date("2025-10-
|
|
151
|
+
startDatetime: new Date("2025-10-12T00:00:00Z"),
|
|
152
|
+
endDatetime: new Date("2025-10-13T00:00:00Z"),
|
|
153
153
|
});
|
|
154
154
|
|
|
155
155
|
console.log(result);
|
|
@@ -200,8 +200,8 @@ async function run() {
|
|
|
200
200
|
"sheet_name": "Q1 Sales Data",
|
|
201
201
|
},
|
|
202
202
|
},
|
|
203
|
-
startDatetime: new Date("2025-10-
|
|
204
|
-
endDatetime: new Date("2025-10-
|
|
203
|
+
startDatetime: new Date("2025-10-12T00:00:00Z"),
|
|
204
|
+
endDatetime: new Date("2025-10-13T00:00:00Z"),
|
|
205
205
|
});
|
|
206
206
|
if (res.ok) {
|
|
207
207
|
const { value: result } = res;
|
|
@@ -352,8 +352,8 @@ async function run() {
|
|
|
352
352
|
"sheet_name": "Q1 Sales Data",
|
|
353
353
|
},
|
|
354
354
|
},
|
|
355
|
-
startDatetime: new Date("2025-10-
|
|
356
|
-
endDatetime: new Date("2025-10-
|
|
355
|
+
startDatetime: new Date("2025-10-12T00:00:00Z"),
|
|
356
|
+
endDatetime: new Date("2025-10-13T00:00:00Z"),
|
|
357
357
|
},
|
|
358
358
|
});
|
|
359
359
|
|
|
@@ -407,8 +407,8 @@ async function run() {
|
|
|
407
407
|
"sheet_name": "Q1 Sales Data",
|
|
408
408
|
},
|
|
409
409
|
},
|
|
410
|
-
startDatetime: new Date("2025-10-
|
|
411
|
-
endDatetime: new Date("2025-10-
|
|
410
|
+
startDatetime: new Date("2025-10-12T00:00:00Z"),
|
|
411
|
+
endDatetime: new Date("2025-10-13T00:00:00Z"),
|
|
412
412
|
},
|
|
413
413
|
});
|
|
414
414
|
if (res.ok) {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SyllableSDKCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
5
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
6
|
+
import { SyllableSDKError } from "../models/errors/syllablesdkerror.js";
|
|
7
|
+
import { APIPromise } from "../types/async.js";
|
|
8
|
+
import { Result } from "../types/fp.js";
|
|
9
|
+
/**
|
|
10
|
+
* Delete Pronunciations Dictionary
|
|
11
|
+
*/
|
|
12
|
+
export declare function pronunciationsPronunciationsDeleteCsv(client: SyllableSDKCore, options?: RequestOptions): APIPromise<Result<void, SyllableSDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
13
|
+
//# sourceMappingURL=pronunciationsPronunciationsDeleteCsv.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pronunciationsPronunciationsDeleteCsv.d.ts","sourceRoot":"","sources":["../src/funcs/pronunciationsPronunciationsDeleteCsv.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAG7C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,qCAAqC,CACnD,MAAM,EAAE,eAAe,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,IAAI,EACF,gBAAgB,GAChB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAKA"}
|
|
@@ -0,0 +1,101 @@
|
|
|
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.pronunciationsPronunciationsDeleteCsv = pronunciationsPronunciationsDeleteCsv;
|
|
40
|
+
const z = __importStar(require("zod"));
|
|
41
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
42
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
43
|
+
const security_js_1 = require("../lib/security.js");
|
|
44
|
+
const url_js_1 = require("../lib/url.js");
|
|
45
|
+
const async_js_1 = require("../types/async.js");
|
|
46
|
+
/**
|
|
47
|
+
* Delete Pronunciations Dictionary
|
|
48
|
+
*/
|
|
49
|
+
function pronunciationsPronunciationsDeleteCsv(client, options) {
|
|
50
|
+
return new async_js_1.APIPromise($do(client, options));
|
|
51
|
+
}
|
|
52
|
+
async function $do(client, options) {
|
|
53
|
+
const path = (0, url_js_1.pathToFunc)("/api/v1/pronunciations/csv")();
|
|
54
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
55
|
+
Accept: "*/*",
|
|
56
|
+
}));
|
|
57
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKeyHeader);
|
|
58
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
59
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
60
|
+
const context = {
|
|
61
|
+
options: client._options,
|
|
62
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
63
|
+
operationID: "pronunciations_delete_csv",
|
|
64
|
+
oAuth2Scopes: null,
|
|
65
|
+
resolvedSecurity: requestSecurity,
|
|
66
|
+
securitySource: client._options.apiKeyHeader,
|
|
67
|
+
retryConfig: options?.retries
|
|
68
|
+
|| client._options.retryConfig
|
|
69
|
+
|| { strategy: "none" },
|
|
70
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
71
|
+
};
|
|
72
|
+
const requestRes = client._createRequest(context, {
|
|
73
|
+
security: requestSecurity,
|
|
74
|
+
method: "DELETE",
|
|
75
|
+
baseURL: options?.serverURL,
|
|
76
|
+
path: path,
|
|
77
|
+
headers: headers,
|
|
78
|
+
userAgent: client._options.userAgent,
|
|
79
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
80
|
+
}, options);
|
|
81
|
+
if (!requestRes.ok) {
|
|
82
|
+
return [requestRes, { status: "invalid" }];
|
|
83
|
+
}
|
|
84
|
+
const req = requestRes.value;
|
|
85
|
+
const doResult = await client._do(req, {
|
|
86
|
+
context,
|
|
87
|
+
errorCodes: ["4XX", "5XX"],
|
|
88
|
+
retryConfig: context.retryConfig,
|
|
89
|
+
retryCodes: context.retryCodes,
|
|
90
|
+
});
|
|
91
|
+
if (!doResult.ok) {
|
|
92
|
+
return [doResult, { status: "request-error", request: req }];
|
|
93
|
+
}
|
|
94
|
+
const response = doResult.value;
|
|
95
|
+
const [result] = await M.match(M.nil(204, z.void()), M.fail("4XX"), M.fail("5XX"))(response, req);
|
|
96
|
+
if (!result.ok) {
|
|
97
|
+
return [result, { status: "complete", request: req, response }];
|
|
98
|
+
}
|
|
99
|
+
return [result, { status: "complete", request: req, response }];
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=pronunciationsPronunciationsDeleteCsv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pronunciationsPronunciationsDeleteCsv.js","sourceRoot":"","sources":["../src/funcs/pronunciationsPronunciationsDeleteCsv.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SyllableSDKCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
5
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
6
|
+
import { SyllableSDKError } from "../models/errors/syllablesdkerror.js";
|
|
7
|
+
import * as operations from "../models/operations/index.js";
|
|
8
|
+
import { APIPromise } from "../types/async.js";
|
|
9
|
+
import { Result } from "../types/fp.js";
|
|
10
|
+
/**
|
|
11
|
+
* Download Pronunciations Csv
|
|
12
|
+
*/
|
|
13
|
+
export declare function pronunciationsPronunciationsDownloadCsv(client: SyllableSDKCore, options?: RequestOptions): APIPromise<Result<operations.PronunciationsDownloadCsvResponse, SyllableSDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
14
|
+
//# sourceMappingURL=pronunciationsPronunciationsDownloadCsv.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pronunciationsPronunciationsDownloadCsv.d.ts","sourceRoot":"","sources":["../src/funcs/pronunciationsPronunciationsDownloadCsv.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAG7C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,uCAAuC,CACrD,MAAM,EAAE,eAAe,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,iCAAiC,EAC1C,gBAAgB,GAChB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAKA"}
|