syllable-sdk 1.0.1 → 1.0.2-rc.2

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 (96) hide show
  1. package/README.md +8 -0
  2. package/bin/mcp-server.js +563 -84
  3. package/bin/mcp-server.js.map +20 -7
  4. package/docs/sdks/batches/README.md +4 -4
  5. package/docs/sdks/pronunciations/README.md +277 -1
  6. package/docs/sdks/workflows/README.md +8 -8
  7. package/examples/package-lock.json +1 -1
  8. package/funcs/pronunciationsPronunciationsDeleteCsv.d.ts +13 -0
  9. package/funcs/pronunciationsPronunciationsDeleteCsv.d.ts.map +1 -0
  10. package/funcs/pronunciationsPronunciationsDeleteCsv.js +101 -0
  11. package/funcs/pronunciationsPronunciationsDeleteCsv.js.map +1 -0
  12. package/funcs/pronunciationsPronunciationsDownloadCsv.d.ts +13 -0
  13. package/funcs/pronunciationsPronunciationsDownloadCsv.d.ts.map +1 -0
  14. package/funcs/pronunciationsPronunciationsDownloadCsv.js +101 -0
  15. package/funcs/pronunciationsPronunciationsDownloadCsv.js.map +1 -0
  16. package/funcs/pronunciationsPronunciationsGet.d.ts +14 -0
  17. package/funcs/pronunciationsPronunciationsGet.d.ts.map +1 -0
  18. package/funcs/pronunciationsPronunciationsGet.js +101 -0
  19. package/funcs/pronunciationsPronunciationsGet.js.map +1 -0
  20. package/funcs/pronunciationsPronunciationsGetMetadata.d.ts +14 -0
  21. package/funcs/pronunciationsPronunciationsGetMetadata.d.ts.map +1 -0
  22. package/funcs/pronunciationsPronunciationsGetMetadata.js +101 -0
  23. package/funcs/pronunciationsPronunciationsGetMetadata.js.map +1 -0
  24. package/jsr.json +1 -1
  25. package/lib/config.d.ts +3 -3
  26. package/lib/config.js +3 -3
  27. package/lib/config.js.map +1 -1
  28. package/mcp-server/mcp-server.js +1 -1
  29. package/mcp-server/mcp-server.js.map +1 -1
  30. package/mcp-server/server.d.ts.map +1 -1
  31. package/mcp-server/server.js +9 -1
  32. package/mcp-server/server.js.map +1 -1
  33. package/mcp-server/tools/pronunciationsPronunciationsDeleteCsv.d.ts +3 -0
  34. package/mcp-server/tools/pronunciationsPronunciationsDeleteCsv.d.ts.map +1 -0
  35. package/mcp-server/tools/pronunciationsPronunciationsDeleteCsv.js +23 -0
  36. package/mcp-server/tools/pronunciationsPronunciationsDeleteCsv.js.map +1 -0
  37. package/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.d.ts +3 -0
  38. package/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.d.ts.map +1 -0
  39. package/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.js +23 -0
  40. package/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.js.map +1 -0
  41. package/mcp-server/tools/pronunciationsPronunciationsGet.d.ts +3 -0
  42. package/mcp-server/tools/pronunciationsPronunciationsGet.d.ts.map +1 -0
  43. package/mcp-server/tools/pronunciationsPronunciationsGet.js +24 -0
  44. package/mcp-server/tools/pronunciationsPronunciationsGet.js.map +1 -0
  45. package/mcp-server/tools/pronunciationsPronunciationsGetMetadata.d.ts +3 -0
  46. package/mcp-server/tools/pronunciationsPronunciationsGetMetadata.d.ts.map +1 -0
  47. package/mcp-server/tools/pronunciationsPronunciationsGetMetadata.js +24 -0
  48. package/mcp-server/tools/pronunciationsPronunciationsGetMetadata.js.map +1 -0
  49. package/models/components/dictionarymetadata.d.ts +36 -0
  50. package/models/components/dictionarymetadata.d.ts.map +1 -0
  51. package/models/components/dictionarymetadata.js +73 -0
  52. package/models/components/dictionarymetadata.js.map +1 -0
  53. package/models/components/index.d.ts +5 -0
  54. package/models/components/index.d.ts.map +1 -1
  55. package/models/components/index.js +5 -0
  56. package/models/components/index.js.map +1 -1
  57. package/models/components/matchtype.d.ts +31 -0
  58. package/models/components/matchtype.d.ts.map +1 -0
  59. package/models/components/matchtype.js +63 -0
  60. package/models/components/matchtype.js.map +1 -0
  61. package/models/components/pronunciationoverride.d.ts +73 -0
  62. package/models/components/pronunciationoverride.d.ts.map +1 -0
  63. package/models/components/pronunciationoverride.js +120 -0
  64. package/models/components/pronunciationoverride.js.map +1 -0
  65. package/models/components/pronunciationoverridesdictionary.d.ts +68 -0
  66. package/models/components/pronunciationoverridesdictionary.d.ts.map +1 -0
  67. package/models/components/pronunciationoverridesdictionary.js +78 -0
  68. package/models/components/pronunciationoverridesdictionary.js.map +1 -0
  69. package/models/components/voicedisplayinfo.d.ts +34 -0
  70. package/models/components/voicedisplayinfo.d.ts.map +1 -0
  71. package/models/components/voicedisplayinfo.js +80 -0
  72. package/models/components/voicedisplayinfo.js.map +1 -0
  73. package/openapi.json +301 -33
  74. package/package.json +1 -1
  75. package/sdk/pronunciations.d.ts +16 -0
  76. package/sdk/pronunciations.d.ts.map +1 -1
  77. package/sdk/pronunciations.js +28 -0
  78. package/sdk/pronunciations.js.map +1 -1
  79. package/src/funcs/pronunciationsPronunciationsDeleteCsv.ts +139 -0
  80. package/src/funcs/pronunciationsPronunciationsDownloadCsv.ts +139 -0
  81. package/src/funcs/pronunciationsPronunciationsGet.ts +139 -0
  82. package/src/funcs/pronunciationsPronunciationsGetMetadata.ts +139 -0
  83. package/src/lib/config.ts +3 -3
  84. package/src/mcp-server/mcp-server.ts +1 -1
  85. package/src/mcp-server/server.ts +9 -1
  86. package/src/mcp-server/tools/pronunciationsPronunciationsDeleteCsv.ts +26 -0
  87. package/src/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.ts +26 -0
  88. package/src/mcp-server/tools/pronunciationsPronunciationsGet.ts +28 -0
  89. package/src/mcp-server/tools/pronunciationsPronunciationsGetMetadata.ts +28 -0
  90. package/src/models/components/dictionarymetadata.ts +77 -0
  91. package/src/models/components/index.ts +5 -0
  92. package/src/models/components/matchtype.ts +36 -0
  93. package/src/models/components/pronunciationoverride.ts +166 -0
  94. package/src/models/components/pronunciationoverridesdictionary.ts +124 -0
  95. package/src/models/components/voicedisplayinfo.ts +82 -0
  96. package/src/sdk/pronunciations.ts +52 -0
package/openapi.json CHANGED
@@ -5553,7 +5553,76 @@
5553
5553
  ]
5554
5554
  }
5555
5555
  },
5556
+ "/api/v1/pronunciations": {
5557
+ "get": {
5558
+ "tags": [
5559
+ "pronunciations"
5560
+ ],
5561
+ "summary": "Get Pronunciations Dictionary",
5562
+ "operationId": "pronunciations_get",
5563
+ "responses": {
5564
+ "200": {
5565
+ "description": "Successful Response",
5566
+ "content": {
5567
+ "application/json": {
5568
+ "schema": {
5569
+ "$ref": "#/components/schemas/PronunciationOverridesDictionary"
5570
+ }
5571
+ }
5572
+ }
5573
+ }
5574
+ },
5575
+ "security": [
5576
+ {
5577
+ "APIKeyHeader": []
5578
+ }
5579
+ ]
5580
+ }
5581
+ },
5582
+ "/api/v1/pronunciations/metadata": {
5583
+ "get": {
5584
+ "tags": [
5585
+ "pronunciations"
5586
+ ],
5587
+ "summary": "Get Pronunciations Metadata",
5588
+ "operationId": "pronunciations_get_metadata",
5589
+ "responses": {
5590
+ "200": {
5591
+ "description": "Successful Response",
5592
+ "content": {
5593
+ "application/json": {
5594
+ "schema": {
5595
+ "$ref": "#/components/schemas/DictionaryMetadata"
5596
+ }
5597
+ }
5598
+ }
5599
+ }
5600
+ },
5601
+ "security": [
5602
+ {
5603
+ "APIKeyHeader": []
5604
+ }
5605
+ ]
5606
+ }
5607
+ },
5556
5608
  "/api/v1/pronunciations/csv": {
5609
+ "get": {
5610
+ "tags": [
5611
+ "pronunciations"
5612
+ ],
5613
+ "summary": "Download Pronunciations Csv",
5614
+ "operationId": "pronunciations_download_csv",
5615
+ "responses": {
5616
+ "200": {
5617
+ "description": "Successful Response"
5618
+ }
5619
+ },
5620
+ "security": [
5621
+ {
5622
+ "APIKeyHeader": []
5623
+ }
5624
+ ]
5625
+ },
5557
5626
  "post": {
5558
5627
  "tags": [
5559
5628
  "pronunciations"
@@ -5597,6 +5666,23 @@
5597
5666
  "APIKeyHeader": []
5598
5667
  }
5599
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
+ ]
5600
5686
  }
5601
5687
  },
5602
5688
  "/api/v1/roles/": {
@@ -13086,7 +13172,7 @@
13086
13172
  "title": "Batch Id",
13087
13173
  "description": "Unique ID for conversation batch",
13088
13174
  "examples": [
13089
- "20251007.9"
13175
+ "20251008.9"
13090
13176
  ]
13091
13177
  },
13092
13178
  "campaign_id": {
@@ -13110,7 +13196,7 @@
13110
13196
  "title": "Expires On",
13111
13197
  "description": "Timestamp of batch expiration",
13112
13198
  "examples": [
13113
- "2025-10-08T00:00:00Z"
13199
+ "2025-10-09T00:00:00Z"
13114
13200
  ]
13115
13201
  },
13116
13202
  "paused": {
@@ -13163,7 +13249,7 @@
13163
13249
  "title": "Created At",
13164
13250
  "description": "Timestamp of batch creation",
13165
13251
  "examples": [
13166
- "2025-10-07T00:00:00Z"
13252
+ "2025-10-08T00:00:00Z"
13167
13253
  ]
13168
13254
  },
13169
13255
  "deleted_at": {
@@ -13179,7 +13265,7 @@
13179
13265
  "title": "Deleted At",
13180
13266
  "description": "Timestamp of batch deletion",
13181
13267
  "examples": [
13182
- "2025-10-07T00:00:00Z"
13268
+ "2025-10-08T00:00:00Z"
13183
13269
  ]
13184
13270
  },
13185
13271
  "deleted_reason": {
@@ -13210,7 +13296,7 @@
13210
13296
  "title": "Last Updated At",
13211
13297
  "description": "Timestamp of last change to batch",
13212
13298
  "examples": [
13213
- "2025-10-07T00:00:00Z"
13299
+ "2025-10-08T00:00:00Z"
13214
13300
  ]
13215
13301
  },
13216
13302
  "last_updated_by": {
@@ -13964,7 +14050,7 @@
13964
14050
  "title": "Batch Id",
13965
14051
  "description": "Unique ID for conversation batch",
13966
14052
  "examples": [
13967
- "20251007.9"
14053
+ "20251008.9"
13968
14054
  ]
13969
14055
  },
13970
14056
  "campaign_id": {
@@ -13988,7 +14074,7 @@
13988
14074
  "title": "Expires On",
13989
14075
  "description": "Timestamp of batch expiration",
13990
14076
  "examples": [
13991
- "2025-10-08T00:00:00Z"
14077
+ "2025-10-09T00:00:00Z"
13992
14078
  ]
13993
14079
  },
13994
14080
  "paused": {
@@ -14041,7 +14127,7 @@
14041
14127
  "title": "Created At",
14042
14128
  "description": "Timestamp of batch creation",
14043
14129
  "examples": [
14044
- "2025-10-07T00:00:00Z"
14130
+ "2025-10-08T00:00:00Z"
14045
14131
  ]
14046
14132
  },
14047
14133
  "deleted_at": {
@@ -14057,7 +14143,7 @@
14057
14143
  "title": "Deleted At",
14058
14144
  "description": "Timestamp of batch deletion",
14059
14145
  "examples": [
14060
- "2025-10-07T00:00:00Z"
14146
+ "2025-10-08T00:00:00Z"
14061
14147
  ]
14062
14148
  },
14063
14149
  "deleted_reason": {
@@ -14088,7 +14174,7 @@
14088
14174
  "title": "Last Updated At",
14089
14175
  "description": "Timestamp of last change to batch",
14090
14176
  "examples": [
14091
- "2025-10-07T00:00:00Z"
14177
+ "2025-10-08T00:00:00Z"
14092
14178
  ]
14093
14179
  },
14094
14180
  "last_updated_by": {
@@ -14131,7 +14217,7 @@
14131
14217
  "title": "Batch Id",
14132
14218
  "description": "Unique ID for conversation batch",
14133
14219
  "examples": [
14134
- "20251007.9"
14220
+ "20251008.9"
14135
14221
  ]
14136
14222
  },
14137
14223
  "campaign_id": {
@@ -14155,7 +14241,7 @@
14155
14241
  "title": "Expires On",
14156
14242
  "description": "Timestamp of batch expiration",
14157
14243
  "examples": [
14158
- "2025-10-08T00:00:00Z"
14244
+ "2025-10-09T00:00:00Z"
14159
14245
  ]
14160
14246
  },
14161
14247
  "paused": {
@@ -14304,7 +14390,7 @@
14304
14390
  "title": "Created At",
14305
14391
  "description": "Timestamp of request creation",
14306
14392
  "examples": [
14307
- "2025-10-06T00:00:00Z"
14393
+ "2025-10-07T00:00:00Z"
14308
14394
  ]
14309
14395
  },
14310
14396
  "sent_at": {
@@ -14320,7 +14406,7 @@
14320
14406
  "title": "Sent At",
14321
14407
  "description": "Timestamp at which request was sent",
14322
14408
  "examples": [
14323
- "2025-10-07T00:00:00Z"
14409
+ "2025-10-08T00:00:00Z"
14324
14410
  ]
14325
14411
  },
14326
14412
  "attempt_count": {
@@ -15779,6 +15865,37 @@
15779
15865
  ],
15780
15866
  "title": "DialogToolCall"
15781
15867
  },
15868
+ "DictionaryMetadata": {
15869
+ "properties": {
15870
+ "entries": {
15871
+ "type": "integer",
15872
+ "title": "Entries"
15873
+ },
15874
+ "hash": {
15875
+ "type": "string",
15876
+ "title": "Hash"
15877
+ },
15878
+ "source": {
15879
+ "anyOf": [
15880
+ {
15881
+ "type": "string"
15882
+ },
15883
+ {
15884
+ "type": "null"
15885
+ }
15886
+ ],
15887
+ "title": "Source"
15888
+ }
15889
+ },
15890
+ "additionalProperties": false,
15891
+ "type": "object",
15892
+ "required": [
15893
+ "entries",
15894
+ "hash"
15895
+ ],
15896
+ "title": "DictionaryMetadata",
15897
+ "description": "Audit metadata associated with a dictionary."
15898
+ },
15782
15899
  "DirectoryExtension": {
15783
15900
  "properties": {
15784
15901
  "name": {
@@ -16236,7 +16353,7 @@
16236
16353
  "title": "Created At",
16237
16354
  "description": "Timestamp at which insight upload folder was created",
16238
16355
  "examples": [
16239
- "2025-10-06T00:00:00Z"
16356
+ "2025-10-07T00:00:00Z"
16240
16357
  ]
16241
16358
  },
16242
16359
  "updated_at": {
@@ -16245,7 +16362,7 @@
16245
16362
  "title": "Updated At",
16246
16363
  "description": "Timestamp at which insight upload folder was last updated",
16247
16364
  "examples": [
16248
- "2025-10-07T00:00:00Z"
16365
+ "2025-10-08T00:00:00Z"
16249
16366
  ]
16250
16367
  },
16251
16368
  "last_updated_by": {
@@ -16960,7 +17077,7 @@
16960
17077
  "title": "Created At",
16961
17078
  "description": "Timestamp of at which insight tool configuration was created",
16962
17079
  "examples": [
16963
- "2025-10-06T00:00:00Z"
17080
+ "2025-10-07T00:00:00Z"
16964
17081
  ]
16965
17082
  },
16966
17083
  "updated_at": {
@@ -16969,7 +17086,7 @@
16969
17086
  "title": "Updated At",
16970
17087
  "description": "Timestamp at which insight tool configuration was last updated",
16971
17088
  "examples": [
16972
- "2025-10-07T00:00:00Z"
17089
+ "2025-10-08T00:00:00Z"
16973
17090
  ]
16974
17091
  },
16975
17092
  "last_updated_by": {
@@ -17350,7 +17467,7 @@
17350
17467
  "title": "Start Datetime",
17351
17468
  "description": "Target session timestamp the workflow (backfill) should start. An empty value indicates start on activation - live sessions only",
17352
17469
  "examples": [
17353
- "2025-10-06T00:00:00Z"
17470
+ "2025-10-07T00:00:00Z"
17354
17471
  ]
17355
17472
  },
17356
17473
  "end_datetime": {
@@ -17366,7 +17483,7 @@
17366
17483
  "title": "End Datetime",
17367
17484
  "description": "Target session timestamp the workflow (backfill) should end. An empty value indicates no end, i.e., include live sessions until deactivation",
17368
17485
  "examples": [
17369
- "2025-10-07T00:00:00Z"
17486
+ "2025-10-08T00:00:00Z"
17370
17487
  ]
17371
17488
  }
17372
17489
  },
@@ -17441,7 +17558,7 @@
17441
17558
  "title": "Start Datetime",
17442
17559
  "description": "Target session timestamp the workflow (backfill) should start. An empty value indicates start on activation - live sessions only",
17443
17560
  "examples": [
17444
- "2025-10-06T00:00:00Z"
17561
+ "2025-10-07T00:00:00Z"
17445
17562
  ]
17446
17563
  },
17447
17564
  "end_datetime": {
@@ -17457,7 +17574,7 @@
17457
17574
  "title": "End Datetime",
17458
17575
  "description": "Target session timestamp the workflow (backfill) should end. An empty value indicates no end, i.e., include live sessions until deactivation",
17459
17576
  "examples": [
17460
- "2025-10-07T00:00:00Z"
17577
+ "2025-10-08T00:00:00Z"
17461
17578
  ]
17462
17579
  },
17463
17580
  "id": {
@@ -17510,7 +17627,7 @@
17510
17627
  "title": "Created At",
17511
17628
  "description": "Timestamp at which the insight workflow was created",
17512
17629
  "examples": [
17513
- "2025-10-06T00:00:00Z"
17630
+ "2025-10-07T00:00:00Z"
17514
17631
  ]
17515
17632
  },
17516
17633
  "updated_at": {
@@ -17519,7 +17636,7 @@
17519
17636
  "title": "Updated At",
17520
17637
  "description": "Timestamp of most recent update to the insight workflow",
17521
17638
  "examples": [
17522
- "2025-10-07T00:00:00Z"
17639
+ "2025-10-08T00:00:00Z"
17523
17640
  ]
17524
17641
  },
17525
17642
  "last_updated_by": {
@@ -17615,7 +17732,7 @@
17615
17732
  "title": "Created At",
17616
17733
  "description": "Timestamp at which insight upload folder was created",
17617
17734
  "examples": [
17618
- "2025-10-06T00:00:00Z"
17735
+ "2025-10-07T00:00:00Z"
17619
17736
  ]
17620
17737
  },
17621
17738
  "updated_at": {
@@ -17624,7 +17741,7 @@
17624
17741
  "title": "Updated At",
17625
17742
  "description": "Timestamp at which insight upload folder was last updated",
17626
17743
  "examples": [
17627
- "2025-10-07T00:00:00Z"
17744
+ "2025-10-08T00:00:00Z"
17628
17745
  ]
17629
17746
  },
17630
17747
  "last_updated_by": {
@@ -17859,7 +17976,7 @@
17859
17976
  "title": "Created At",
17860
17977
  "description": "Timestamp at which insight tool result was created",
17861
17978
  "examples": [
17862
- "2025-10-06T00:00:00Z"
17979
+ "2025-10-07T00:00:00Z"
17863
17980
  ]
17864
17981
  },
17865
17982
  "updated_at": {
@@ -17868,7 +17985,7 @@
17868
17985
  "title": "Updated At",
17869
17986
  "description": "Timestamp at which insight tool result was last updated",
17870
17987
  "examples": [
17871
- "2025-10-07T00:00:00Z"
17988
+ "2025-10-08T00:00:00Z"
17872
17989
  ]
17873
17990
  }
17874
17991
  },
@@ -18003,7 +18120,7 @@
18003
18120
  "title": "Start Time",
18004
18121
  "description": "Start time of the uploaded file",
18005
18122
  "examples": [
18006
- "2025-10-06T00:00:00Z"
18123
+ "2025-10-07T00:00:00Z"
18007
18124
  ]
18008
18125
  },
18009
18126
  "end_time": {
@@ -18019,7 +18136,7 @@
18019
18136
  "title": "End Time",
18020
18137
  "description": "End time of the uploaded file",
18021
18138
  "examples": [
18022
- "2025-10-07T00:00:00Z"
18139
+ "2025-10-08T00:00:00Z"
18023
18140
  ]
18024
18141
  },
18025
18142
  "error_message": {
@@ -18074,7 +18191,7 @@
18074
18191
  "title": "Created At",
18075
18192
  "description": "Timestamp at which insight upload file was created",
18076
18193
  "examples": [
18077
- "2025-10-06T00:00:00Z"
18194
+ "2025-10-07T00:00:00Z"
18078
18195
  ]
18079
18196
  }
18080
18197
  },
@@ -20440,6 +20557,14 @@
20440
20557
  "title": "LoginType",
20441
20558
  "description": "The type of login to use for the user."
20442
20559
  },
20560
+ "MatchType": {
20561
+ "type": "string",
20562
+ "enum": [
20563
+ "exact"
20564
+ ],
20565
+ "title": "MatchType",
20566
+ "description": "Matching strategy for override text."
20567
+ },
20443
20568
  "OrderByDirection": {
20444
20569
  "type": "string",
20445
20570
  "enum": [
@@ -21022,7 +21147,7 @@
21022
21147
  "title": "Created At",
21023
21148
  "description": "Timestamp of campaign creation",
21024
21149
  "examples": [
21025
- "2025-10-07T00:00:00Z"
21150
+ "2025-10-08T00:00:00Z"
21026
21151
  ]
21027
21152
  },
21028
21153
  "updated_at": {
@@ -21031,7 +21156,7 @@
21031
21156
  "title": "Updated At",
21032
21157
  "description": "Timestamp of campaign update",
21033
21158
  "examples": [
21034
- "2025-10-07T00:00:00Z"
21159
+ "2025-10-08T00:00:00Z"
21035
21160
  ]
21036
21161
  },
21037
21162
  "last_updated_by": {
@@ -22055,6 +22180,129 @@
22055
22180
  "title": "PromptUpdateRequest",
22056
22181
  "description": "Request model to update an existing prompt."
22057
22182
  },
22183
+ "PronunciationOverride": {
22184
+ "properties": {
22185
+ "text": {
22186
+ "type": "string",
22187
+ "minLength": 1,
22188
+ "title": "Text"
22189
+ },
22190
+ "replacement": {
22191
+ "type": "string",
22192
+ "minLength": 1,
22193
+ "title": "Replacement"
22194
+ },
22195
+ "language": {
22196
+ "anyOf": [
22197
+ {
22198
+ "type": "string"
22199
+ },
22200
+ {
22201
+ "items": {
22202
+ "type": "string"
22203
+ },
22204
+ "type": "array"
22205
+ },
22206
+ {
22207
+ "type": "null"
22208
+ }
22209
+ ],
22210
+ "title": "Language"
22211
+ },
22212
+ "provider": {
22213
+ "anyOf": [
22214
+ {
22215
+ "type": "string"
22216
+ },
22217
+ {
22218
+ "type": "null"
22219
+ }
22220
+ ],
22221
+ "title": "Provider"
22222
+ },
22223
+ "voice": {
22224
+ "anyOf": [
22225
+ {
22226
+ "type": "string"
22227
+ },
22228
+ {
22229
+ "type": "null"
22230
+ }
22231
+ ],
22232
+ "title": "Voice"
22233
+ },
22234
+ "match_type": {
22235
+ "$ref": "#/components/schemas/MatchType",
22236
+ "default": "exact"
22237
+ },
22238
+ "match_options": {
22239
+ "items": {
22240
+ "type": "string"
22241
+ },
22242
+ "type": "array",
22243
+ "title": "Match Options"
22244
+ },
22245
+ "enabled": {
22246
+ "type": "boolean",
22247
+ "title": "Enabled",
22248
+ "default": true
22249
+ },
22250
+ "notes": {
22251
+ "anyOf": [
22252
+ {
22253
+ "type": "string"
22254
+ },
22255
+ {
22256
+ "type": "null"
22257
+ }
22258
+ ],
22259
+ "title": "Notes"
22260
+ }
22261
+ },
22262
+ "additionalProperties": false,
22263
+ "type": "object",
22264
+ "required": [
22265
+ "text",
22266
+ "replacement"
22267
+ ],
22268
+ "title": "PronunciationOverride",
22269
+ "description": "A single text replacement rule."
22270
+ },
22271
+ "PronunciationOverridesDictionary": {
22272
+ "properties": {
22273
+ "type": {
22274
+ "type": "string",
22275
+ "pattern": "^pronunciations_v\\d+$",
22276
+ "title": "Type",
22277
+ "default": "pronunciations_v1"
22278
+ },
22279
+ "pronunciations": {
22280
+ "items": {
22281
+ "$ref": "#/components/schemas/PronunciationOverride"
22282
+ },
22283
+ "type": "array",
22284
+ "title": "Pronunciations"
22285
+ },
22286
+ "voices": {
22287
+ "additionalProperties": {
22288
+ "$ref": "#/components/schemas/VoiceDisplayInfo"
22289
+ },
22290
+ "type": "object",
22291
+ "title": "Voices"
22292
+ },
22293
+ "metadata": {
22294
+ "$ref": "#/components/schemas/DictionaryMetadata"
22295
+ }
22296
+ },
22297
+ "additionalProperties": false,
22298
+ "type": "object",
22299
+ "required": [
22300
+ "pronunciations",
22301
+ "metadata"
22302
+ ],
22303
+ "title": "PronunciationOverridesDictionary",
22304
+ "description": "Container for all TTS pronunciation overrides belonging to the sub-organisation.\n\nStored in the `config_values` table via ConfigDao. The Syllable API persists uploaded CSV\npronunciation rules, and Bubblegum's PronunciationOverridesPlugin reads them to apply text\nreplacements before TTS processing.\n\nExample:\n dao = ConfigDao(db_session)\n await dao.register_model('tts.pronunciations', PronunciationOverridesDictionary)\n\n pod = PronunciationOverridesDictionary(\n pronunciations=[...],\n metadata=DictionaryMetadata(entries=10, hash='sha256:...'),\n )\n result = await dao.upsert('pronunciations_v1', pod)\n\n record = await dao.get('pronunciations_v1', PronunciationOverridesDictionary)\n if record:\n pronunciations = record.value.pronunciations"
22305
+ },
22058
22306
  "PronunciationsCsvUploadResponse": {
22059
22307
  "properties": {
22060
22308
  "revision": {
@@ -25518,6 +25766,26 @@
25518
25766
  ],
25519
25767
  "title": "ValidationError"
25520
25768
  },
25769
+ "VoiceDisplayInfo": {
25770
+ "properties": {
25771
+ "display_name": {
25772
+ "type": "string",
25773
+ "title": "Display Name"
25774
+ },
25775
+ "provider": {
25776
+ "type": "string",
25777
+ "title": "Provider"
25778
+ }
25779
+ },
25780
+ "additionalProperties": false,
25781
+ "type": "object",
25782
+ "required": [
25783
+ "display_name",
25784
+ "provider"
25785
+ ],
25786
+ "title": "VoiceDisplayInfo",
25787
+ "description": "Display metadata for a canonical voice identifier."
25788
+ },
25521
25789
  "VoiceSampleCreateRequest": {
25522
25790
  "properties": {
25523
25791
  "language_code": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "syllable-sdk",
3
- "version": "1.0.1",
3
+ "version": "1.0.2-rc.2",
4
4
  "author": "Syllable",
5
5
  "bin": {
6
6
  "mcp": "bin/mcp-server.js"
@@ -1,9 +1,25 @@
1
1
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
2
  import * as components from "../models/components/index.js";
3
3
  export declare class Pronunciations extends ClientSDK {
4
+ /**
5
+ * Get Pronunciations Dictionary
6
+ */
7
+ pronunciationsGet(options?: RequestOptions): Promise<components.PronunciationOverridesDictionary>;
8
+ /**
9
+ * Get Pronunciations Metadata
10
+ */
11
+ pronunciationsGetMetadata(options?: RequestOptions): Promise<components.DictionaryMetadata>;
12
+ /**
13
+ * Download Pronunciations Csv
14
+ */
15
+ pronunciationsDownloadCsv(options?: RequestOptions): Promise<void>;
4
16
  /**
5
17
  * Upload Pronunciations Csv
6
18
  */
7
19
  pronunciationsUploadCsv(request: components.BodyPronunciationsUploadCsv, options?: RequestOptions): Promise<components.PronunciationsCsvUploadResponse>;
20
+ /**
21
+ * Delete Pronunciations Dictionary
22
+ */
23
+ pronunciationsDeleteCsv(options?: RequestOptions): Promise<void>;
8
24
  }
9
25
  //# sourceMappingURL=pronunciations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pronunciations.d.ts","sourceRoot":"","sources":["../src/sdk/pronunciations.ts"],"names":[],"mappings":"AAKA,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,uBAAuB,CAC3B,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,+BAA+B,CAAC;CAOvD"}
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"}
@@ -4,16 +4,44 @@
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");
8
+ const pronunciationsPronunciationsDownloadCsv_js_1 = require("../funcs/pronunciationsPronunciationsDownloadCsv.js");
9
+ const pronunciationsPronunciationsGet_js_1 = require("../funcs/pronunciationsPronunciationsGet.js");
10
+ const pronunciationsPronunciationsGetMetadata_js_1 = require("../funcs/pronunciationsPronunciationsGetMetadata.js");
7
11
  const pronunciationsPronunciationsUploadCsv_js_1 = require("../funcs/pronunciationsPronunciationsUploadCsv.js");
8
12
  const sdks_js_1 = require("../lib/sdks.js");
9
13
  const fp_js_1 = require("../types/fp.js");
10
14
  class Pronunciations extends sdks_js_1.ClientSDK {
15
+ /**
16
+ * Get Pronunciations Dictionary
17
+ */
18
+ async pronunciationsGet(options) {
19
+ return (0, fp_js_1.unwrapAsync)((0, pronunciationsPronunciationsGet_js_1.pronunciationsPronunciationsGet)(this, options));
20
+ }
21
+ /**
22
+ * Get Pronunciations Metadata
23
+ */
24
+ async pronunciationsGetMetadata(options) {
25
+ return (0, fp_js_1.unwrapAsync)((0, pronunciationsPronunciationsGetMetadata_js_1.pronunciationsPronunciationsGetMetadata)(this, options));
26
+ }
27
+ /**
28
+ * Download Pronunciations Csv
29
+ */
30
+ async pronunciationsDownloadCsv(options) {
31
+ return (0, fp_js_1.unwrapAsync)((0, pronunciationsPronunciationsDownloadCsv_js_1.pronunciationsPronunciationsDownloadCsv)(this, options));
32
+ }
11
33
  /**
12
34
  * Upload Pronunciations Csv
13
35
  */
14
36
  async pronunciationsUploadCsv(request, options) {
15
37
  return (0, fp_js_1.unwrapAsync)((0, pronunciationsPronunciationsUploadCsv_js_1.pronunciationsPronunciationsUploadCsv)(this, request, options));
16
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
+ }
17
45
  }
18
46
  exports.Pronunciations = Pronunciations;
19
47
  //# sourceMappingURL=pronunciations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pronunciations.js","sourceRoot":"","sources":["../src/sdk/pronunciations.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gHAA0G;AAC1G,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,cAAe,SAAQ,mBAAS;IAC3C;;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;AAdD,wCAcC"}
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"}