syllable-sdk 1.0.2-rc.1 → 1.0.2-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/bin/mcp-server.js +173 -90
- package/bin/mcp-server.js.map +8 -6
- package/docs/sdks/batches/README.md +4 -4
- package/docs/sdks/pronunciations/README.md +70 -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/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +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/openapi.json +50 -33
- package/package.json +1 -1
- package/sdk/pronunciations.d.ts +4 -0
- 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/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/sdk/pronunciations.ts +13 -0
package/openapi.json
CHANGED
|
@@ -5666,6 +5666,23 @@
|
|
|
5666
5666
|
"APIKeyHeader": []
|
|
5667
5667
|
}
|
|
5668
5668
|
]
|
|
5669
|
+
},
|
|
5670
|
+
"delete": {
|
|
5671
|
+
"tags": [
|
|
5672
|
+
"pronunciations"
|
|
5673
|
+
],
|
|
5674
|
+
"summary": "Delete Pronunciations Dictionary",
|
|
5675
|
+
"operationId": "pronunciations_delete_csv",
|
|
5676
|
+
"responses": {
|
|
5677
|
+
"204": {
|
|
5678
|
+
"description": "Successful Response"
|
|
5679
|
+
}
|
|
5680
|
+
},
|
|
5681
|
+
"security": [
|
|
5682
|
+
{
|
|
5683
|
+
"APIKeyHeader": []
|
|
5684
|
+
}
|
|
5685
|
+
]
|
|
5669
5686
|
}
|
|
5670
5687
|
},
|
|
5671
5688
|
"/api/v1/roles/": {
|
|
@@ -13155,7 +13172,7 @@
|
|
|
13155
13172
|
"title": "Batch Id",
|
|
13156
13173
|
"description": "Unique ID for conversation batch",
|
|
13157
13174
|
"examples": [
|
|
13158
|
-
"
|
|
13175
|
+
"20251009.9"
|
|
13159
13176
|
]
|
|
13160
13177
|
},
|
|
13161
13178
|
"campaign_id": {
|
|
@@ -13179,7 +13196,7 @@
|
|
|
13179
13196
|
"title": "Expires On",
|
|
13180
13197
|
"description": "Timestamp of batch expiration",
|
|
13181
13198
|
"examples": [
|
|
13182
|
-
"2025-10-
|
|
13199
|
+
"2025-10-10T00:00:00Z"
|
|
13183
13200
|
]
|
|
13184
13201
|
},
|
|
13185
13202
|
"paused": {
|
|
@@ -13232,7 +13249,7 @@
|
|
|
13232
13249
|
"title": "Created At",
|
|
13233
13250
|
"description": "Timestamp of batch creation",
|
|
13234
13251
|
"examples": [
|
|
13235
|
-
"2025-10-
|
|
13252
|
+
"2025-10-09T00:00:00Z"
|
|
13236
13253
|
]
|
|
13237
13254
|
},
|
|
13238
13255
|
"deleted_at": {
|
|
@@ -13248,7 +13265,7 @@
|
|
|
13248
13265
|
"title": "Deleted At",
|
|
13249
13266
|
"description": "Timestamp of batch deletion",
|
|
13250
13267
|
"examples": [
|
|
13251
|
-
"2025-10-
|
|
13268
|
+
"2025-10-09T00:00:00Z"
|
|
13252
13269
|
]
|
|
13253
13270
|
},
|
|
13254
13271
|
"deleted_reason": {
|
|
@@ -13279,7 +13296,7 @@
|
|
|
13279
13296
|
"title": "Last Updated At",
|
|
13280
13297
|
"description": "Timestamp of last change to batch",
|
|
13281
13298
|
"examples": [
|
|
13282
|
-
"2025-10-
|
|
13299
|
+
"2025-10-09T00:00:00Z"
|
|
13283
13300
|
]
|
|
13284
13301
|
},
|
|
13285
13302
|
"last_updated_by": {
|
|
@@ -14033,7 +14050,7 @@
|
|
|
14033
14050
|
"title": "Batch Id",
|
|
14034
14051
|
"description": "Unique ID for conversation batch",
|
|
14035
14052
|
"examples": [
|
|
14036
|
-
"
|
|
14053
|
+
"20251009.9"
|
|
14037
14054
|
]
|
|
14038
14055
|
},
|
|
14039
14056
|
"campaign_id": {
|
|
@@ -14057,7 +14074,7 @@
|
|
|
14057
14074
|
"title": "Expires On",
|
|
14058
14075
|
"description": "Timestamp of batch expiration",
|
|
14059
14076
|
"examples": [
|
|
14060
|
-
"2025-10-
|
|
14077
|
+
"2025-10-10T00:00:00Z"
|
|
14061
14078
|
]
|
|
14062
14079
|
},
|
|
14063
14080
|
"paused": {
|
|
@@ -14110,7 +14127,7 @@
|
|
|
14110
14127
|
"title": "Created At",
|
|
14111
14128
|
"description": "Timestamp of batch creation",
|
|
14112
14129
|
"examples": [
|
|
14113
|
-
"2025-10-
|
|
14130
|
+
"2025-10-09T00:00:00Z"
|
|
14114
14131
|
]
|
|
14115
14132
|
},
|
|
14116
14133
|
"deleted_at": {
|
|
@@ -14126,7 +14143,7 @@
|
|
|
14126
14143
|
"title": "Deleted At",
|
|
14127
14144
|
"description": "Timestamp of batch deletion",
|
|
14128
14145
|
"examples": [
|
|
14129
|
-
"2025-10-
|
|
14146
|
+
"2025-10-09T00:00:00Z"
|
|
14130
14147
|
]
|
|
14131
14148
|
},
|
|
14132
14149
|
"deleted_reason": {
|
|
@@ -14157,7 +14174,7 @@
|
|
|
14157
14174
|
"title": "Last Updated At",
|
|
14158
14175
|
"description": "Timestamp of last change to batch",
|
|
14159
14176
|
"examples": [
|
|
14160
|
-
"2025-10-
|
|
14177
|
+
"2025-10-09T00:00:00Z"
|
|
14161
14178
|
]
|
|
14162
14179
|
},
|
|
14163
14180
|
"last_updated_by": {
|
|
@@ -14200,7 +14217,7 @@
|
|
|
14200
14217
|
"title": "Batch Id",
|
|
14201
14218
|
"description": "Unique ID for conversation batch",
|
|
14202
14219
|
"examples": [
|
|
14203
|
-
"
|
|
14220
|
+
"20251009.9"
|
|
14204
14221
|
]
|
|
14205
14222
|
},
|
|
14206
14223
|
"campaign_id": {
|
|
@@ -14224,7 +14241,7 @@
|
|
|
14224
14241
|
"title": "Expires On",
|
|
14225
14242
|
"description": "Timestamp of batch expiration",
|
|
14226
14243
|
"examples": [
|
|
14227
|
-
"2025-10-
|
|
14244
|
+
"2025-10-10T00:00:00Z"
|
|
14228
14245
|
]
|
|
14229
14246
|
},
|
|
14230
14247
|
"paused": {
|
|
@@ -14373,7 +14390,7 @@
|
|
|
14373
14390
|
"title": "Created At",
|
|
14374
14391
|
"description": "Timestamp of request creation",
|
|
14375
14392
|
"examples": [
|
|
14376
|
-
"2025-10-
|
|
14393
|
+
"2025-10-08T00:00:00Z"
|
|
14377
14394
|
]
|
|
14378
14395
|
},
|
|
14379
14396
|
"sent_at": {
|
|
@@ -14389,7 +14406,7 @@
|
|
|
14389
14406
|
"title": "Sent At",
|
|
14390
14407
|
"description": "Timestamp at which request was sent",
|
|
14391
14408
|
"examples": [
|
|
14392
|
-
"2025-10-
|
|
14409
|
+
"2025-10-09T00:00:00Z"
|
|
14393
14410
|
]
|
|
14394
14411
|
},
|
|
14395
14412
|
"attempt_count": {
|
|
@@ -16336,7 +16353,7 @@
|
|
|
16336
16353
|
"title": "Created At",
|
|
16337
16354
|
"description": "Timestamp at which insight upload folder was created",
|
|
16338
16355
|
"examples": [
|
|
16339
|
-
"2025-10-
|
|
16356
|
+
"2025-10-08T00:00:00Z"
|
|
16340
16357
|
]
|
|
16341
16358
|
},
|
|
16342
16359
|
"updated_at": {
|
|
@@ -16345,7 +16362,7 @@
|
|
|
16345
16362
|
"title": "Updated At",
|
|
16346
16363
|
"description": "Timestamp at which insight upload folder was last updated",
|
|
16347
16364
|
"examples": [
|
|
16348
|
-
"2025-10-
|
|
16365
|
+
"2025-10-09T00:00:00Z"
|
|
16349
16366
|
]
|
|
16350
16367
|
},
|
|
16351
16368
|
"last_updated_by": {
|
|
@@ -17060,7 +17077,7 @@
|
|
|
17060
17077
|
"title": "Created At",
|
|
17061
17078
|
"description": "Timestamp of at which insight tool configuration was created",
|
|
17062
17079
|
"examples": [
|
|
17063
|
-
"2025-10-
|
|
17080
|
+
"2025-10-08T00:00:00Z"
|
|
17064
17081
|
]
|
|
17065
17082
|
},
|
|
17066
17083
|
"updated_at": {
|
|
@@ -17069,7 +17086,7 @@
|
|
|
17069
17086
|
"title": "Updated At",
|
|
17070
17087
|
"description": "Timestamp at which insight tool configuration was last updated",
|
|
17071
17088
|
"examples": [
|
|
17072
|
-
"2025-10-
|
|
17089
|
+
"2025-10-09T00:00:00Z"
|
|
17073
17090
|
]
|
|
17074
17091
|
},
|
|
17075
17092
|
"last_updated_by": {
|
|
@@ -17450,7 +17467,7 @@
|
|
|
17450
17467
|
"title": "Start Datetime",
|
|
17451
17468
|
"description": "Target session timestamp the workflow (backfill) should start. An empty value indicates start on activation - live sessions only",
|
|
17452
17469
|
"examples": [
|
|
17453
|
-
"2025-10-
|
|
17470
|
+
"2025-10-08T00:00:00Z"
|
|
17454
17471
|
]
|
|
17455
17472
|
},
|
|
17456
17473
|
"end_datetime": {
|
|
@@ -17466,7 +17483,7 @@
|
|
|
17466
17483
|
"title": "End Datetime",
|
|
17467
17484
|
"description": "Target session timestamp the workflow (backfill) should end. An empty value indicates no end, i.e., include live sessions until deactivation",
|
|
17468
17485
|
"examples": [
|
|
17469
|
-
"2025-10-
|
|
17486
|
+
"2025-10-09T00:00:00Z"
|
|
17470
17487
|
]
|
|
17471
17488
|
}
|
|
17472
17489
|
},
|
|
@@ -17541,7 +17558,7 @@
|
|
|
17541
17558
|
"title": "Start Datetime",
|
|
17542
17559
|
"description": "Target session timestamp the workflow (backfill) should start. An empty value indicates start on activation - live sessions only",
|
|
17543
17560
|
"examples": [
|
|
17544
|
-
"2025-10-
|
|
17561
|
+
"2025-10-08T00:00:00Z"
|
|
17545
17562
|
]
|
|
17546
17563
|
},
|
|
17547
17564
|
"end_datetime": {
|
|
@@ -17557,7 +17574,7 @@
|
|
|
17557
17574
|
"title": "End Datetime",
|
|
17558
17575
|
"description": "Target session timestamp the workflow (backfill) should end. An empty value indicates no end, i.e., include live sessions until deactivation",
|
|
17559
17576
|
"examples": [
|
|
17560
|
-
"2025-10-
|
|
17577
|
+
"2025-10-09T00:00:00Z"
|
|
17561
17578
|
]
|
|
17562
17579
|
},
|
|
17563
17580
|
"id": {
|
|
@@ -17610,7 +17627,7 @@
|
|
|
17610
17627
|
"title": "Created At",
|
|
17611
17628
|
"description": "Timestamp at which the insight workflow was created",
|
|
17612
17629
|
"examples": [
|
|
17613
|
-
"2025-10-
|
|
17630
|
+
"2025-10-08T00:00:00Z"
|
|
17614
17631
|
]
|
|
17615
17632
|
},
|
|
17616
17633
|
"updated_at": {
|
|
@@ -17619,7 +17636,7 @@
|
|
|
17619
17636
|
"title": "Updated At",
|
|
17620
17637
|
"description": "Timestamp of most recent update to the insight workflow",
|
|
17621
17638
|
"examples": [
|
|
17622
|
-
"2025-10-
|
|
17639
|
+
"2025-10-09T00:00:00Z"
|
|
17623
17640
|
]
|
|
17624
17641
|
},
|
|
17625
17642
|
"last_updated_by": {
|
|
@@ -17715,7 +17732,7 @@
|
|
|
17715
17732
|
"title": "Created At",
|
|
17716
17733
|
"description": "Timestamp at which insight upload folder was created",
|
|
17717
17734
|
"examples": [
|
|
17718
|
-
"2025-10-
|
|
17735
|
+
"2025-10-08T00:00:00Z"
|
|
17719
17736
|
]
|
|
17720
17737
|
},
|
|
17721
17738
|
"updated_at": {
|
|
@@ -17724,7 +17741,7 @@
|
|
|
17724
17741
|
"title": "Updated At",
|
|
17725
17742
|
"description": "Timestamp at which insight upload folder was last updated",
|
|
17726
17743
|
"examples": [
|
|
17727
|
-
"2025-10-
|
|
17744
|
+
"2025-10-09T00:00:00Z"
|
|
17728
17745
|
]
|
|
17729
17746
|
},
|
|
17730
17747
|
"last_updated_by": {
|
|
@@ -17959,7 +17976,7 @@
|
|
|
17959
17976
|
"title": "Created At",
|
|
17960
17977
|
"description": "Timestamp at which insight tool result was created",
|
|
17961
17978
|
"examples": [
|
|
17962
|
-
"2025-10-
|
|
17979
|
+
"2025-10-08T00:00:00Z"
|
|
17963
17980
|
]
|
|
17964
17981
|
},
|
|
17965
17982
|
"updated_at": {
|
|
@@ -17968,7 +17985,7 @@
|
|
|
17968
17985
|
"title": "Updated At",
|
|
17969
17986
|
"description": "Timestamp at which insight tool result was last updated",
|
|
17970
17987
|
"examples": [
|
|
17971
|
-
"2025-10-
|
|
17988
|
+
"2025-10-09T00:00:00Z"
|
|
17972
17989
|
]
|
|
17973
17990
|
}
|
|
17974
17991
|
},
|
|
@@ -18103,7 +18120,7 @@
|
|
|
18103
18120
|
"title": "Start Time",
|
|
18104
18121
|
"description": "Start time of the uploaded file",
|
|
18105
18122
|
"examples": [
|
|
18106
|
-
"2025-10-
|
|
18123
|
+
"2025-10-08T00:00:00Z"
|
|
18107
18124
|
]
|
|
18108
18125
|
},
|
|
18109
18126
|
"end_time": {
|
|
@@ -18119,7 +18136,7 @@
|
|
|
18119
18136
|
"title": "End Time",
|
|
18120
18137
|
"description": "End time of the uploaded file",
|
|
18121
18138
|
"examples": [
|
|
18122
|
-
"2025-10-
|
|
18139
|
+
"2025-10-09T00:00:00Z"
|
|
18123
18140
|
]
|
|
18124
18141
|
},
|
|
18125
18142
|
"error_message": {
|
|
@@ -18174,7 +18191,7 @@
|
|
|
18174
18191
|
"title": "Created At",
|
|
18175
18192
|
"description": "Timestamp at which insight upload file was created",
|
|
18176
18193
|
"examples": [
|
|
18177
|
-
"2025-10-
|
|
18194
|
+
"2025-10-08T00:00:00Z"
|
|
18178
18195
|
]
|
|
18179
18196
|
}
|
|
18180
18197
|
},
|
|
@@ -21130,7 +21147,7 @@
|
|
|
21130
21147
|
"title": "Created At",
|
|
21131
21148
|
"description": "Timestamp of campaign creation",
|
|
21132
21149
|
"examples": [
|
|
21133
|
-
"2025-10-
|
|
21150
|
+
"2025-10-09T00:00:00Z"
|
|
21134
21151
|
]
|
|
21135
21152
|
},
|
|
21136
21153
|
"updated_at": {
|
|
@@ -21139,7 +21156,7 @@
|
|
|
21139
21156
|
"title": "Updated At",
|
|
21140
21157
|
"description": "Timestamp of campaign update",
|
|
21141
21158
|
"examples": [
|
|
21142
|
-
"2025-10-
|
|
21159
|
+
"2025-10-09T00:00:00Z"
|
|
21143
21160
|
]
|
|
21144
21161
|
},
|
|
21145
21162
|
"last_updated_by": {
|
package/package.json
CHANGED
package/sdk/pronunciations.d.ts
CHANGED
|
@@ -17,5 +17,9 @@ export declare class Pronunciations extends ClientSDK {
|
|
|
17
17
|
* Upload Pronunciations Csv
|
|
18
18
|
*/
|
|
19
19
|
pronunciationsUploadCsv(request: components.BodyPronunciationsUploadCsv, options?: RequestOptions): Promise<components.PronunciationsCsvUploadResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Delete Pronunciations Dictionary
|
|
22
|
+
*/
|
|
23
|
+
pronunciationsDeleteCsv(options?: RequestOptions): Promise<void>;
|
|
20
24
|
}
|
|
21
25
|
//# 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;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,IAAI,CAAC;IAOhB;;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;AAE3D,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;CACF;
|
|
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;AAE3D,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
|
+
}
|
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.3",
|
|
65
|
+
genVersion: "2.723.8",
|
|
66
|
+
userAgent: "speakeasy-sdk/typescript 1.0.2-rc.3 2.723.8 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.3",
|
|
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
|
+
};
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import { pronunciationsPronunciationsDeleteCsv } from "../funcs/pronunciationsPronunciationsDeleteCsv.js";
|
|
5
6
|
import { pronunciationsPronunciationsDownloadCsv } from "../funcs/pronunciationsPronunciationsDownloadCsv.js";
|
|
6
7
|
import { pronunciationsPronunciationsGet } from "../funcs/pronunciationsPronunciationsGet.js";
|
|
7
8
|
import { pronunciationsPronunciationsGetMetadata } from "../funcs/pronunciationsPronunciationsGetMetadata.js";
|
|
@@ -60,4 +61,16 @@ export class Pronunciations extends ClientSDK {
|
|
|
60
61
|
options,
|
|
61
62
|
));
|
|
62
63
|
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Delete Pronunciations Dictionary
|
|
67
|
+
*/
|
|
68
|
+
async pronunciationsDeleteCsv(
|
|
69
|
+
options?: RequestOptions,
|
|
70
|
+
): Promise<void> {
|
|
71
|
+
return unwrapAsync(pronunciationsPronunciationsDeleteCsv(
|
|
72
|
+
this,
|
|
73
|
+
options,
|
|
74
|
+
));
|
|
75
|
+
}
|
|
63
76
|
}
|