syllable-sdk 1.0.2-rc.2 → 1.0.2-rc.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/bin/mcp-server.js +47 -9
  2. package/bin/mcp-server.js.map +10 -9
  3. package/docs/sdks/batches/README.md +4 -4
  4. package/docs/sdks/pronunciations/README.md +4 -4
  5. package/docs/sdks/workflows/README.md +8 -8
  6. package/examples/package-lock.json +1 -1
  7. package/funcs/pronunciationsPronunciationsDownloadCsv.d.ts +2 -1
  8. package/funcs/pronunciationsPronunciationsDownloadCsv.d.ts.map +1 -1
  9. package/funcs/pronunciationsPronunciationsDownloadCsv.js +10 -3
  10. package/funcs/pronunciationsPronunciationsDownloadCsv.js.map +1 -1
  11. package/jsr.json +1 -1
  12. package/lib/config.d.ts +2 -2
  13. package/lib/config.js +2 -2
  14. package/mcp-server/mcp-server.js +1 -1
  15. package/mcp-server/server.js +1 -1
  16. package/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.d.ts.map +1 -1
  17. package/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.js +2 -1
  18. package/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.js.map +1 -1
  19. package/models/operations/index.d.ts +1 -0
  20. package/models/operations/index.d.ts.map +1 -1
  21. package/models/operations/index.js +1 -0
  22. package/models/operations/index.js.map +1 -1
  23. package/models/operations/pronunciationsdownloadcsv.d.ts +35 -0
  24. package/models/operations/pronunciationsdownloadcsv.d.ts.map +1 -0
  25. package/models/operations/pronunciationsdownloadcsv.js +82 -0
  26. package/models/operations/pronunciationsdownloadcsv.js.map +1 -0
  27. package/openapi.json +49 -34
  28. package/package.json +1 -1
  29. package/sdk/pronunciations.d.ts +2 -1
  30. package/sdk/pronunciations.d.ts.map +1 -1
  31. package/sdk/pronunciations.js.map +1 -1
  32. package/src/funcs/pronunciationsPronunciationsDownloadCsv.ts +15 -7
  33. package/src/lib/config.ts +2 -2
  34. package/src/mcp-server/mcp-server.ts +1 -1
  35. package/src/mcp-server/server.ts +1 -1
  36. package/src/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.ts +3 -1
  37. package/src/models/operations/index.ts +1 -0
  38. package/src/models/operations/pronunciationsdownloadcsv.ts +84 -0
  39. package/src/sdk/pronunciations.ts +2 -1
package/openapi.json CHANGED
@@ -5614,7 +5614,22 @@
5614
5614
  "operationId": "pronunciations_download_csv",
5615
5615
  "responses": {
5616
5616
  "200": {
5617
- "description": "Successful Response"
5617
+ "description": "CSV download",
5618
+ "headers": {
5619
+ "Content-Disposition": {
5620
+ "schema": {
5621
+ "type": "string"
5622
+ }
5623
+ }
5624
+ },
5625
+ "content": {
5626
+ "text/csv": {
5627
+ "schema": {
5628
+ "type": "string",
5629
+ "format": "binary"
5630
+ }
5631
+ }
5632
+ }
5618
5633
  }
5619
5634
  },
5620
5635
  "security": [
@@ -13172,7 +13187,7 @@
13172
13187
  "title": "Batch Id",
13173
13188
  "description": "Unique ID for conversation batch",
13174
13189
  "examples": [
13175
- "20251008.9"
13190
+ "20251009.9"
13176
13191
  ]
13177
13192
  },
13178
13193
  "campaign_id": {
@@ -13196,7 +13211,7 @@
13196
13211
  "title": "Expires On",
13197
13212
  "description": "Timestamp of batch expiration",
13198
13213
  "examples": [
13199
- "2025-10-09T00:00:00Z"
13214
+ "2025-10-10T00:00:00Z"
13200
13215
  ]
13201
13216
  },
13202
13217
  "paused": {
@@ -13249,7 +13264,7 @@
13249
13264
  "title": "Created At",
13250
13265
  "description": "Timestamp of batch creation",
13251
13266
  "examples": [
13252
- "2025-10-08T00:00:00Z"
13267
+ "2025-10-09T00:00:00Z"
13253
13268
  ]
13254
13269
  },
13255
13270
  "deleted_at": {
@@ -13265,7 +13280,7 @@
13265
13280
  "title": "Deleted At",
13266
13281
  "description": "Timestamp of batch deletion",
13267
13282
  "examples": [
13268
- "2025-10-08T00:00:00Z"
13283
+ "2025-10-09T00:00:00Z"
13269
13284
  ]
13270
13285
  },
13271
13286
  "deleted_reason": {
@@ -13296,7 +13311,7 @@
13296
13311
  "title": "Last Updated At",
13297
13312
  "description": "Timestamp of last change to batch",
13298
13313
  "examples": [
13299
- "2025-10-08T00:00:00Z"
13314
+ "2025-10-09T00:00:00Z"
13300
13315
  ]
13301
13316
  },
13302
13317
  "last_updated_by": {
@@ -14050,7 +14065,7 @@
14050
14065
  "title": "Batch Id",
14051
14066
  "description": "Unique ID for conversation batch",
14052
14067
  "examples": [
14053
- "20251008.9"
14068
+ "20251009.9"
14054
14069
  ]
14055
14070
  },
14056
14071
  "campaign_id": {
@@ -14074,7 +14089,7 @@
14074
14089
  "title": "Expires On",
14075
14090
  "description": "Timestamp of batch expiration",
14076
14091
  "examples": [
14077
- "2025-10-09T00:00:00Z"
14092
+ "2025-10-10T00:00:00Z"
14078
14093
  ]
14079
14094
  },
14080
14095
  "paused": {
@@ -14127,7 +14142,7 @@
14127
14142
  "title": "Created At",
14128
14143
  "description": "Timestamp of batch creation",
14129
14144
  "examples": [
14130
- "2025-10-08T00:00:00Z"
14145
+ "2025-10-09T00:00:00Z"
14131
14146
  ]
14132
14147
  },
14133
14148
  "deleted_at": {
@@ -14143,7 +14158,7 @@
14143
14158
  "title": "Deleted At",
14144
14159
  "description": "Timestamp of batch deletion",
14145
14160
  "examples": [
14146
- "2025-10-08T00:00:00Z"
14161
+ "2025-10-09T00:00:00Z"
14147
14162
  ]
14148
14163
  },
14149
14164
  "deleted_reason": {
@@ -14174,7 +14189,7 @@
14174
14189
  "title": "Last Updated At",
14175
14190
  "description": "Timestamp of last change to batch",
14176
14191
  "examples": [
14177
- "2025-10-08T00:00:00Z"
14192
+ "2025-10-09T00:00:00Z"
14178
14193
  ]
14179
14194
  },
14180
14195
  "last_updated_by": {
@@ -14217,7 +14232,7 @@
14217
14232
  "title": "Batch Id",
14218
14233
  "description": "Unique ID for conversation batch",
14219
14234
  "examples": [
14220
- "20251008.9"
14235
+ "20251009.9"
14221
14236
  ]
14222
14237
  },
14223
14238
  "campaign_id": {
@@ -14241,7 +14256,7 @@
14241
14256
  "title": "Expires On",
14242
14257
  "description": "Timestamp of batch expiration",
14243
14258
  "examples": [
14244
- "2025-10-09T00:00:00Z"
14259
+ "2025-10-10T00:00:00Z"
14245
14260
  ]
14246
14261
  },
14247
14262
  "paused": {
@@ -14390,7 +14405,7 @@
14390
14405
  "title": "Created At",
14391
14406
  "description": "Timestamp of request creation",
14392
14407
  "examples": [
14393
- "2025-10-07T00:00:00Z"
14408
+ "2025-10-08T00:00:00Z"
14394
14409
  ]
14395
14410
  },
14396
14411
  "sent_at": {
@@ -14406,7 +14421,7 @@
14406
14421
  "title": "Sent At",
14407
14422
  "description": "Timestamp at which request was sent",
14408
14423
  "examples": [
14409
- "2025-10-08T00:00:00Z"
14424
+ "2025-10-09T00:00:00Z"
14410
14425
  ]
14411
14426
  },
14412
14427
  "attempt_count": {
@@ -16353,7 +16368,7 @@
16353
16368
  "title": "Created At",
16354
16369
  "description": "Timestamp at which insight upload folder was created",
16355
16370
  "examples": [
16356
- "2025-10-07T00:00:00Z"
16371
+ "2025-10-08T00:00:00Z"
16357
16372
  ]
16358
16373
  },
16359
16374
  "updated_at": {
@@ -16362,7 +16377,7 @@
16362
16377
  "title": "Updated At",
16363
16378
  "description": "Timestamp at which insight upload folder was last updated",
16364
16379
  "examples": [
16365
- "2025-10-08T00:00:00Z"
16380
+ "2025-10-09T00:00:00Z"
16366
16381
  ]
16367
16382
  },
16368
16383
  "last_updated_by": {
@@ -17077,7 +17092,7 @@
17077
17092
  "title": "Created At",
17078
17093
  "description": "Timestamp of at which insight tool configuration was created",
17079
17094
  "examples": [
17080
- "2025-10-07T00:00:00Z"
17095
+ "2025-10-08T00:00:00Z"
17081
17096
  ]
17082
17097
  },
17083
17098
  "updated_at": {
@@ -17086,7 +17101,7 @@
17086
17101
  "title": "Updated At",
17087
17102
  "description": "Timestamp at which insight tool configuration was last updated",
17088
17103
  "examples": [
17089
- "2025-10-08T00:00:00Z"
17104
+ "2025-10-09T00:00:00Z"
17090
17105
  ]
17091
17106
  },
17092
17107
  "last_updated_by": {
@@ -17467,7 +17482,7 @@
17467
17482
  "title": "Start Datetime",
17468
17483
  "description": "Target session timestamp the workflow (backfill) should start. An empty value indicates start on activation - live sessions only",
17469
17484
  "examples": [
17470
- "2025-10-07T00:00:00Z"
17485
+ "2025-10-08T00:00:00Z"
17471
17486
  ]
17472
17487
  },
17473
17488
  "end_datetime": {
@@ -17483,7 +17498,7 @@
17483
17498
  "title": "End Datetime",
17484
17499
  "description": "Target session timestamp the workflow (backfill) should end. An empty value indicates no end, i.e., include live sessions until deactivation",
17485
17500
  "examples": [
17486
- "2025-10-08T00:00:00Z"
17501
+ "2025-10-09T00:00:00Z"
17487
17502
  ]
17488
17503
  }
17489
17504
  },
@@ -17558,7 +17573,7 @@
17558
17573
  "title": "Start Datetime",
17559
17574
  "description": "Target session timestamp the workflow (backfill) should start. An empty value indicates start on activation - live sessions only",
17560
17575
  "examples": [
17561
- "2025-10-07T00:00:00Z"
17576
+ "2025-10-08T00:00:00Z"
17562
17577
  ]
17563
17578
  },
17564
17579
  "end_datetime": {
@@ -17574,7 +17589,7 @@
17574
17589
  "title": "End Datetime",
17575
17590
  "description": "Target session timestamp the workflow (backfill) should end. An empty value indicates no end, i.e., include live sessions until deactivation",
17576
17591
  "examples": [
17577
- "2025-10-08T00:00:00Z"
17592
+ "2025-10-09T00:00:00Z"
17578
17593
  ]
17579
17594
  },
17580
17595
  "id": {
@@ -17627,7 +17642,7 @@
17627
17642
  "title": "Created At",
17628
17643
  "description": "Timestamp at which the insight workflow was created",
17629
17644
  "examples": [
17630
- "2025-10-07T00:00:00Z"
17645
+ "2025-10-08T00:00:00Z"
17631
17646
  ]
17632
17647
  },
17633
17648
  "updated_at": {
@@ -17636,7 +17651,7 @@
17636
17651
  "title": "Updated At",
17637
17652
  "description": "Timestamp of most recent update to the insight workflow",
17638
17653
  "examples": [
17639
- "2025-10-08T00:00:00Z"
17654
+ "2025-10-09T00:00:00Z"
17640
17655
  ]
17641
17656
  },
17642
17657
  "last_updated_by": {
@@ -17732,7 +17747,7 @@
17732
17747
  "title": "Created At",
17733
17748
  "description": "Timestamp at which insight upload folder was created",
17734
17749
  "examples": [
17735
- "2025-10-07T00:00:00Z"
17750
+ "2025-10-08T00:00:00Z"
17736
17751
  ]
17737
17752
  },
17738
17753
  "updated_at": {
@@ -17741,7 +17756,7 @@
17741
17756
  "title": "Updated At",
17742
17757
  "description": "Timestamp at which insight upload folder was last updated",
17743
17758
  "examples": [
17744
- "2025-10-08T00:00:00Z"
17759
+ "2025-10-09T00:00:00Z"
17745
17760
  ]
17746
17761
  },
17747
17762
  "last_updated_by": {
@@ -17976,7 +17991,7 @@
17976
17991
  "title": "Created At",
17977
17992
  "description": "Timestamp at which insight tool result was created",
17978
17993
  "examples": [
17979
- "2025-10-07T00:00:00Z"
17994
+ "2025-10-08T00:00:00Z"
17980
17995
  ]
17981
17996
  },
17982
17997
  "updated_at": {
@@ -17985,7 +18000,7 @@
17985
18000
  "title": "Updated At",
17986
18001
  "description": "Timestamp at which insight tool result was last updated",
17987
18002
  "examples": [
17988
- "2025-10-08T00:00:00Z"
18003
+ "2025-10-09T00:00:00Z"
17989
18004
  ]
17990
18005
  }
17991
18006
  },
@@ -18120,7 +18135,7 @@
18120
18135
  "title": "Start Time",
18121
18136
  "description": "Start time of the uploaded file",
18122
18137
  "examples": [
18123
- "2025-10-07T00:00:00Z"
18138
+ "2025-10-08T00:00:00Z"
18124
18139
  ]
18125
18140
  },
18126
18141
  "end_time": {
@@ -18136,7 +18151,7 @@
18136
18151
  "title": "End Time",
18137
18152
  "description": "End time of the uploaded file",
18138
18153
  "examples": [
18139
- "2025-10-08T00:00:00Z"
18154
+ "2025-10-09T00:00:00Z"
18140
18155
  ]
18141
18156
  },
18142
18157
  "error_message": {
@@ -18191,7 +18206,7 @@
18191
18206
  "title": "Created At",
18192
18207
  "description": "Timestamp at which insight upload file was created",
18193
18208
  "examples": [
18194
- "2025-10-07T00:00:00Z"
18209
+ "2025-10-08T00:00:00Z"
18195
18210
  ]
18196
18211
  }
18197
18212
  },
@@ -21147,7 +21162,7 @@
21147
21162
  "title": "Created At",
21148
21163
  "description": "Timestamp of campaign creation",
21149
21164
  "examples": [
21150
- "2025-10-08T00:00:00Z"
21165
+ "2025-10-09T00:00:00Z"
21151
21166
  ]
21152
21167
  },
21153
21168
  "updated_at": {
@@ -21156,7 +21171,7 @@
21156
21171
  "title": "Updated At",
21157
21172
  "description": "Timestamp of campaign update",
21158
21173
  "examples": [
21159
- "2025-10-08T00:00:00Z"
21174
+ "2025-10-09T00:00:00Z"
21160
21175
  ]
21161
21176
  },
21162
21177
  "last_updated_by": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "syllable-sdk",
3
- "version": "1.0.2-rc.2",
3
+ "version": "1.0.2-rc.4",
4
4
  "author": "Syllable",
5
5
  "bin": {
6
6
  "mcp": "bin/mcp-server.js"
@@ -1,5 +1,6 @@
1
1
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
2
  import * as components from "../models/components/index.js";
3
+ import * as operations from "../models/operations/index.js";
3
4
  export declare class Pronunciations extends ClientSDK {
4
5
  /**
5
6
  * Get Pronunciations Dictionary
@@ -12,7 +13,7 @@ export declare class Pronunciations extends ClientSDK {
12
13
  /**
13
14
  * Download Pronunciations Csv
14
15
  */
15
- pronunciationsDownloadCsv(options?: RequestOptions): Promise<void>;
16
+ pronunciationsDownloadCsv(options?: RequestOptions): Promise<operations.PronunciationsDownloadCsvResponse>;
16
17
  /**
17
18
  * Upload Pronunciations Csv
18
19
  */
@@ -1 +1 @@
1
- {"version":3,"file":"pronunciations.d.ts","sourceRoot":"","sources":["../src/sdk/pronunciations.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,cAAe,SAAQ,SAAS;IAC3C;;OAEG;IACG,iBAAiB,CACrB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gCAAgC,CAAC;IAOvD;;OAEG;IACG,yBAAyB,CAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAOzC;;OAEG;IACG,yBAAyB,CAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,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"}
1
+ {"version":3,"file":"pronunciations.d.ts","sourceRoot":"","sources":["../src/sdk/pronunciations.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,cAAe,SAAQ,SAAS;IAC3C;;OAEG;IACG,iBAAiB,CACrB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gCAAgC,CAAC;IAOvD;;OAEG;IACG,yBAAyB,CAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAOzC;;OAEG;IACG,yBAAyB,CAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iCAAiC,CAAC;IAOxD;;OAEG;IACG,uBAAuB,CAC3B,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,+BAA+B,CAAC;IAQtD;;OAEG;IACG,uBAAuB,CAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;CAMjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"pronunciations.js","sourceRoot":"","sources":["../src/sdk/pronunciations.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gHAA0G;AAC1G,oHAA8G;AAC9G,oGAA8F;AAC9F,oHAA8G;AAC9G,gHAA0G;AAC1G,4CAA2D;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"}
1
+ {"version":3,"file":"pronunciations.js","sourceRoot":"","sources":["../src/sdk/pronunciations.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gHAA0G;AAC1G,oHAA8G;AAC9G,oGAA8F;AAC9F,oHAA8G;AAC9G,gHAA0G;AAC1G,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,cAAe,SAAQ,mBAAS;IAC3C;;OAEG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oEAA+B,EAChD,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,yBAAyB,CAC7B,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oFAAuC,EACxD,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,yBAAyB,CAC7B,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oFAAuC,EACxD,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,uBAAuB,CAC3B,OAA+C,EAC/C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gFAAqC,EACtD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,uBAAuB,CAC3B,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gFAAqC,EACtD,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AA9DD,wCA8DC"}
@@ -2,7 +2,6 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
6
5
  import { SyllableSDKCore } from "../core.js";
7
6
  import * as M from "../lib/matchers.js";
8
7
  import { compactMap } from "../lib/primitives.js";
@@ -19,6 +18,7 @@ import {
19
18
  import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
20
19
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
21
20
  import { SyllableSDKError } from "../models/errors/syllablesdkerror.js";
21
+ import * as operations from "../models/operations/index.js";
22
22
  import { APICall, APIPromise } from "../types/async.js";
23
23
  import { Result } from "../types/fp.js";
24
24
 
@@ -30,7 +30,7 @@ export function pronunciationsPronunciationsDownloadCsv(
30
30
  options?: RequestOptions,
31
31
  ): APIPromise<
32
32
  Result<
33
- void,
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
- void,
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
- void,
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.nil(200, z.void()),
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.2",
64
+ sdkVersion: "1.0.2-rc.4",
65
65
  genVersion: "2.723.8",
66
- userAgent: "speakeasy-sdk/typescript 1.0.2-rc.2 2.723.8 0.0.2 syllable-sdk",
66
+ userAgent: "speakeasy-sdk/typescript 1.0.2-rc.4 2.723.8 0.0.2 syllable-sdk",
67
67
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "1.0.2-rc.2",
22
+ currentVersion: "1.0.2-rc.4",
23
23
  },
24
24
  });
25
25
 
@@ -169,7 +169,7 @@ export function createMCPServer(deps: {
169
169
  }) {
170
170
  const server = new McpServer({
171
171
  name: "SyllableSDK",
172
- version: "1.0.2-rc.2",
172
+ version: "1.0.2-rc.4",
173
173
  });
174
174
 
175
175
  const client = new SyllableSDKCore({
@@ -21,6 +21,8 @@ export const tool$pronunciationsPronunciationsDownloadCsv: ToolDefinition = {
21
21
  };
22
22
  }
23
23
 
24
- return formatResult(void 0, apiCall);
24
+ const value = result.value.result;
25
+
26
+ return formatResult(value, apiCall);
25
27
  },
26
28
  };
@@ -70,6 +70,7 @@ export * from "./promptsdelete.js";
70
70
  export * from "./promptsgetbyid.js";
71
71
  export * from "./promptshistory.js";
72
72
  export * from "./promptslist.js";
73
+ export * from "./pronunciationsdownloadcsv.js";
73
74
  export * from "./rolesdelete.js";
74
75
  export * from "./rolesgetbyid.js";
75
76
  export * from "./roleslist.js";
@@ -0,0 +1,84 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type PronunciationsDownloadCsvResponse = {
12
+ headers: { [k: string]: Array<string> };
13
+ result: ReadableStream<Uint8Array>;
14
+ };
15
+
16
+ /** @internal */
17
+ export const PronunciationsDownloadCsvResponse$inboundSchema: z.ZodType<
18
+ PronunciationsDownloadCsvResponse,
19
+ z.ZodTypeDef,
20
+ unknown
21
+ > = z.object({
22
+ Headers: z.record(z.array(z.string())),
23
+ Result: z.instanceof(ReadableStream<Uint8Array>),
24
+ }).transform((v) => {
25
+ return remap$(v, {
26
+ "Headers": "headers",
27
+ "Result": "result",
28
+ });
29
+ });
30
+
31
+ /** @internal */
32
+ export type PronunciationsDownloadCsvResponse$Outbound = {
33
+ Headers: { [k: string]: Array<string> };
34
+ Result: ReadableStream<Uint8Array>;
35
+ };
36
+
37
+ /** @internal */
38
+ export const PronunciationsDownloadCsvResponse$outboundSchema: z.ZodType<
39
+ PronunciationsDownloadCsvResponse$Outbound,
40
+ z.ZodTypeDef,
41
+ PronunciationsDownloadCsvResponse
42
+ > = z.object({
43
+ headers: z.record(z.array(z.string())),
44
+ result: z.instanceof(ReadableStream<Uint8Array>),
45
+ }).transform((v) => {
46
+ return remap$(v, {
47
+ headers: "Headers",
48
+ result: "Result",
49
+ });
50
+ });
51
+
52
+ /**
53
+ * @internal
54
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
55
+ */
56
+ export namespace PronunciationsDownloadCsvResponse$ {
57
+ /** @deprecated use `PronunciationsDownloadCsvResponse$inboundSchema` instead. */
58
+ export const inboundSchema = PronunciationsDownloadCsvResponse$inboundSchema;
59
+ /** @deprecated use `PronunciationsDownloadCsvResponse$outboundSchema` instead. */
60
+ export const outboundSchema =
61
+ PronunciationsDownloadCsvResponse$outboundSchema;
62
+ /** @deprecated use `PronunciationsDownloadCsvResponse$Outbound` instead. */
63
+ export type Outbound = PronunciationsDownloadCsvResponse$Outbound;
64
+ }
65
+
66
+ export function pronunciationsDownloadCsvResponseToJSON(
67
+ pronunciationsDownloadCsvResponse: PronunciationsDownloadCsvResponse,
68
+ ): string {
69
+ return JSON.stringify(
70
+ PronunciationsDownloadCsvResponse$outboundSchema.parse(
71
+ pronunciationsDownloadCsvResponse,
72
+ ),
73
+ );
74
+ }
75
+
76
+ export function pronunciationsDownloadCsvResponseFromJSON(
77
+ jsonString: string,
78
+ ): SafeParseResult<PronunciationsDownloadCsvResponse, SDKValidationError> {
79
+ return safeParse(
80
+ jsonString,
81
+ (x) => PronunciationsDownloadCsvResponse$inboundSchema.parse(JSON.parse(x)),
82
+ `Failed to parse 'PronunciationsDownloadCsvResponse' from JSON`,
83
+ );
84
+ }
@@ -9,6 +9,7 @@ import { pronunciationsPronunciationsGetMetadata } from "../funcs/pronunciations
9
9
  import { pronunciationsPronunciationsUploadCsv } from "../funcs/pronunciationsPronunciationsUploadCsv.js";
10
10
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
11
11
  import * as components from "../models/components/index.js";
12
+ import * as operations from "../models/operations/index.js";
12
13
  import { unwrapAsync } from "../types/fp.js";
13
14
 
14
15
  export class Pronunciations extends ClientSDK {
@@ -41,7 +42,7 @@ export class Pronunciations extends ClientSDK {
41
42
  */
42
43
  async pronunciationsDownloadCsv(
43
44
  options?: RequestOptions,
44
- ): Promise<void> {
45
+ ): Promise<operations.PronunciationsDownloadCsvResponse> {
45
46
  return unwrapAsync(pronunciationsPronunciationsDownloadCsv(
46
47
  this,
47
48
  options,