syllable-sdk 1.0.1 → 1.0.2-rc.1

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 (86) hide show
  1. package/README.md +6 -0
  2. package/bin/mcp-server.js +480 -84
  3. package/bin/mcp-server.js.map +18 -7
  4. package/docs/sdks/batches/README.md +4 -4
  5. package/docs/sdks/pronunciations/README.md +207 -0
  6. package/docs/sdks/workflows/README.md +8 -8
  7. package/examples/package-lock.json +1 -1
  8. package/funcs/pronunciationsPronunciationsDownloadCsv.d.ts +13 -0
  9. package/funcs/pronunciationsPronunciationsDownloadCsv.d.ts.map +1 -0
  10. package/funcs/pronunciationsPronunciationsDownloadCsv.js +101 -0
  11. package/funcs/pronunciationsPronunciationsDownloadCsv.js.map +1 -0
  12. package/funcs/pronunciationsPronunciationsGet.d.ts +14 -0
  13. package/funcs/pronunciationsPronunciationsGet.d.ts.map +1 -0
  14. package/funcs/pronunciationsPronunciationsGet.js +101 -0
  15. package/funcs/pronunciationsPronunciationsGet.js.map +1 -0
  16. package/funcs/pronunciationsPronunciationsGetMetadata.d.ts +14 -0
  17. package/funcs/pronunciationsPronunciationsGetMetadata.d.ts.map +1 -0
  18. package/funcs/pronunciationsPronunciationsGetMetadata.js +101 -0
  19. package/funcs/pronunciationsPronunciationsGetMetadata.js.map +1 -0
  20. package/jsr.json +1 -1
  21. package/lib/config.d.ts +3 -3
  22. package/lib/config.js +3 -3
  23. package/lib/config.js.map +1 -1
  24. package/mcp-server/mcp-server.js +1 -1
  25. package/mcp-server/mcp-server.js.map +1 -1
  26. package/mcp-server/server.d.ts.map +1 -1
  27. package/mcp-server/server.js +7 -1
  28. package/mcp-server/server.js.map +1 -1
  29. package/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.d.ts +3 -0
  30. package/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.d.ts.map +1 -0
  31. package/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.js +23 -0
  32. package/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.js.map +1 -0
  33. package/mcp-server/tools/pronunciationsPronunciationsGet.d.ts +3 -0
  34. package/mcp-server/tools/pronunciationsPronunciationsGet.d.ts.map +1 -0
  35. package/mcp-server/tools/pronunciationsPronunciationsGet.js +24 -0
  36. package/mcp-server/tools/pronunciationsPronunciationsGet.js.map +1 -0
  37. package/mcp-server/tools/pronunciationsPronunciationsGetMetadata.d.ts +3 -0
  38. package/mcp-server/tools/pronunciationsPronunciationsGetMetadata.d.ts.map +1 -0
  39. package/mcp-server/tools/pronunciationsPronunciationsGetMetadata.js +24 -0
  40. package/mcp-server/tools/pronunciationsPronunciationsGetMetadata.js.map +1 -0
  41. package/models/components/dictionarymetadata.d.ts +36 -0
  42. package/models/components/dictionarymetadata.d.ts.map +1 -0
  43. package/models/components/dictionarymetadata.js +73 -0
  44. package/models/components/dictionarymetadata.js.map +1 -0
  45. package/models/components/index.d.ts +5 -0
  46. package/models/components/index.d.ts.map +1 -1
  47. package/models/components/index.js +5 -0
  48. package/models/components/index.js.map +1 -1
  49. package/models/components/matchtype.d.ts +31 -0
  50. package/models/components/matchtype.d.ts.map +1 -0
  51. package/models/components/matchtype.js +63 -0
  52. package/models/components/matchtype.js.map +1 -0
  53. package/models/components/pronunciationoverride.d.ts +73 -0
  54. package/models/components/pronunciationoverride.d.ts.map +1 -0
  55. package/models/components/pronunciationoverride.js +120 -0
  56. package/models/components/pronunciationoverride.js.map +1 -0
  57. package/models/components/pronunciationoverridesdictionary.d.ts +68 -0
  58. package/models/components/pronunciationoverridesdictionary.d.ts.map +1 -0
  59. package/models/components/pronunciationoverridesdictionary.js +78 -0
  60. package/models/components/pronunciationoverridesdictionary.js.map +1 -0
  61. package/models/components/voicedisplayinfo.d.ts +34 -0
  62. package/models/components/voicedisplayinfo.d.ts.map +1 -0
  63. package/models/components/voicedisplayinfo.js +80 -0
  64. package/models/components/voicedisplayinfo.js.map +1 -0
  65. package/openapi.json +284 -33
  66. package/package.json +1 -1
  67. package/sdk/pronunciations.d.ts +12 -0
  68. package/sdk/pronunciations.d.ts.map +1 -1
  69. package/sdk/pronunciations.js +21 -0
  70. package/sdk/pronunciations.js.map +1 -1
  71. package/src/funcs/pronunciationsPronunciationsDownloadCsv.ts +139 -0
  72. package/src/funcs/pronunciationsPronunciationsGet.ts +139 -0
  73. package/src/funcs/pronunciationsPronunciationsGetMetadata.ts +139 -0
  74. package/src/lib/config.ts +3 -3
  75. package/src/mcp-server/mcp-server.ts +1 -1
  76. package/src/mcp-server/server.ts +7 -1
  77. package/src/mcp-server/tools/pronunciationsPronunciationsDownloadCsv.ts +26 -0
  78. package/src/mcp-server/tools/pronunciationsPronunciationsGet.ts +28 -0
  79. package/src/mcp-server/tools/pronunciationsPronunciationsGetMetadata.ts +28 -0
  80. package/src/models/components/dictionarymetadata.ts +77 -0
  81. package/src/models/components/index.ts +5 -0
  82. package/src/models/components/matchtype.ts +36 -0
  83. package/src/models/components/pronunciationoverride.ts +166 -0
  84. package/src/models/components/pronunciationoverridesdictionary.ts +124 -0
  85. package/src/models/components/voicedisplayinfo.ts +82 -0
  86. package/src/sdk/pronunciations.ts +39 -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"
@@ -13086,7 +13155,7 @@
13086
13155
  "title": "Batch Id",
13087
13156
  "description": "Unique ID for conversation batch",
13088
13157
  "examples": [
13089
- "20251007.9"
13158
+ "20251008.9"
13090
13159
  ]
13091
13160
  },
13092
13161
  "campaign_id": {
@@ -13110,7 +13179,7 @@
13110
13179
  "title": "Expires On",
13111
13180
  "description": "Timestamp of batch expiration",
13112
13181
  "examples": [
13113
- "2025-10-08T00:00:00Z"
13182
+ "2025-10-09T00:00:00Z"
13114
13183
  ]
13115
13184
  },
13116
13185
  "paused": {
@@ -13163,7 +13232,7 @@
13163
13232
  "title": "Created At",
13164
13233
  "description": "Timestamp of batch creation",
13165
13234
  "examples": [
13166
- "2025-10-07T00:00:00Z"
13235
+ "2025-10-08T00:00:00Z"
13167
13236
  ]
13168
13237
  },
13169
13238
  "deleted_at": {
@@ -13179,7 +13248,7 @@
13179
13248
  "title": "Deleted At",
13180
13249
  "description": "Timestamp of batch deletion",
13181
13250
  "examples": [
13182
- "2025-10-07T00:00:00Z"
13251
+ "2025-10-08T00:00:00Z"
13183
13252
  ]
13184
13253
  },
13185
13254
  "deleted_reason": {
@@ -13210,7 +13279,7 @@
13210
13279
  "title": "Last Updated At",
13211
13280
  "description": "Timestamp of last change to batch",
13212
13281
  "examples": [
13213
- "2025-10-07T00:00:00Z"
13282
+ "2025-10-08T00:00:00Z"
13214
13283
  ]
13215
13284
  },
13216
13285
  "last_updated_by": {
@@ -13964,7 +14033,7 @@
13964
14033
  "title": "Batch Id",
13965
14034
  "description": "Unique ID for conversation batch",
13966
14035
  "examples": [
13967
- "20251007.9"
14036
+ "20251008.9"
13968
14037
  ]
13969
14038
  },
13970
14039
  "campaign_id": {
@@ -13988,7 +14057,7 @@
13988
14057
  "title": "Expires On",
13989
14058
  "description": "Timestamp of batch expiration",
13990
14059
  "examples": [
13991
- "2025-10-08T00:00:00Z"
14060
+ "2025-10-09T00:00:00Z"
13992
14061
  ]
13993
14062
  },
13994
14063
  "paused": {
@@ -14041,7 +14110,7 @@
14041
14110
  "title": "Created At",
14042
14111
  "description": "Timestamp of batch creation",
14043
14112
  "examples": [
14044
- "2025-10-07T00:00:00Z"
14113
+ "2025-10-08T00:00:00Z"
14045
14114
  ]
14046
14115
  },
14047
14116
  "deleted_at": {
@@ -14057,7 +14126,7 @@
14057
14126
  "title": "Deleted At",
14058
14127
  "description": "Timestamp of batch deletion",
14059
14128
  "examples": [
14060
- "2025-10-07T00:00:00Z"
14129
+ "2025-10-08T00:00:00Z"
14061
14130
  ]
14062
14131
  },
14063
14132
  "deleted_reason": {
@@ -14088,7 +14157,7 @@
14088
14157
  "title": "Last Updated At",
14089
14158
  "description": "Timestamp of last change to batch",
14090
14159
  "examples": [
14091
- "2025-10-07T00:00:00Z"
14160
+ "2025-10-08T00:00:00Z"
14092
14161
  ]
14093
14162
  },
14094
14163
  "last_updated_by": {
@@ -14131,7 +14200,7 @@
14131
14200
  "title": "Batch Id",
14132
14201
  "description": "Unique ID for conversation batch",
14133
14202
  "examples": [
14134
- "20251007.9"
14203
+ "20251008.9"
14135
14204
  ]
14136
14205
  },
14137
14206
  "campaign_id": {
@@ -14155,7 +14224,7 @@
14155
14224
  "title": "Expires On",
14156
14225
  "description": "Timestamp of batch expiration",
14157
14226
  "examples": [
14158
- "2025-10-08T00:00:00Z"
14227
+ "2025-10-09T00:00:00Z"
14159
14228
  ]
14160
14229
  },
14161
14230
  "paused": {
@@ -14304,7 +14373,7 @@
14304
14373
  "title": "Created At",
14305
14374
  "description": "Timestamp of request creation",
14306
14375
  "examples": [
14307
- "2025-10-06T00:00:00Z"
14376
+ "2025-10-07T00:00:00Z"
14308
14377
  ]
14309
14378
  },
14310
14379
  "sent_at": {
@@ -14320,7 +14389,7 @@
14320
14389
  "title": "Sent At",
14321
14390
  "description": "Timestamp at which request was sent",
14322
14391
  "examples": [
14323
- "2025-10-07T00:00:00Z"
14392
+ "2025-10-08T00:00:00Z"
14324
14393
  ]
14325
14394
  },
14326
14395
  "attempt_count": {
@@ -15779,6 +15848,37 @@
15779
15848
  ],
15780
15849
  "title": "DialogToolCall"
15781
15850
  },
15851
+ "DictionaryMetadata": {
15852
+ "properties": {
15853
+ "entries": {
15854
+ "type": "integer",
15855
+ "title": "Entries"
15856
+ },
15857
+ "hash": {
15858
+ "type": "string",
15859
+ "title": "Hash"
15860
+ },
15861
+ "source": {
15862
+ "anyOf": [
15863
+ {
15864
+ "type": "string"
15865
+ },
15866
+ {
15867
+ "type": "null"
15868
+ }
15869
+ ],
15870
+ "title": "Source"
15871
+ }
15872
+ },
15873
+ "additionalProperties": false,
15874
+ "type": "object",
15875
+ "required": [
15876
+ "entries",
15877
+ "hash"
15878
+ ],
15879
+ "title": "DictionaryMetadata",
15880
+ "description": "Audit metadata associated with a dictionary."
15881
+ },
15782
15882
  "DirectoryExtension": {
15783
15883
  "properties": {
15784
15884
  "name": {
@@ -16236,7 +16336,7 @@
16236
16336
  "title": "Created At",
16237
16337
  "description": "Timestamp at which insight upload folder was created",
16238
16338
  "examples": [
16239
- "2025-10-06T00:00:00Z"
16339
+ "2025-10-07T00:00:00Z"
16240
16340
  ]
16241
16341
  },
16242
16342
  "updated_at": {
@@ -16245,7 +16345,7 @@
16245
16345
  "title": "Updated At",
16246
16346
  "description": "Timestamp at which insight upload folder was last updated",
16247
16347
  "examples": [
16248
- "2025-10-07T00:00:00Z"
16348
+ "2025-10-08T00:00:00Z"
16249
16349
  ]
16250
16350
  },
16251
16351
  "last_updated_by": {
@@ -16960,7 +17060,7 @@
16960
17060
  "title": "Created At",
16961
17061
  "description": "Timestamp of at which insight tool configuration was created",
16962
17062
  "examples": [
16963
- "2025-10-06T00:00:00Z"
17063
+ "2025-10-07T00:00:00Z"
16964
17064
  ]
16965
17065
  },
16966
17066
  "updated_at": {
@@ -16969,7 +17069,7 @@
16969
17069
  "title": "Updated At",
16970
17070
  "description": "Timestamp at which insight tool configuration was last updated",
16971
17071
  "examples": [
16972
- "2025-10-07T00:00:00Z"
17072
+ "2025-10-08T00:00:00Z"
16973
17073
  ]
16974
17074
  },
16975
17075
  "last_updated_by": {
@@ -17350,7 +17450,7 @@
17350
17450
  "title": "Start Datetime",
17351
17451
  "description": "Target session timestamp the workflow (backfill) should start. An empty value indicates start on activation - live sessions only",
17352
17452
  "examples": [
17353
- "2025-10-06T00:00:00Z"
17453
+ "2025-10-07T00:00:00Z"
17354
17454
  ]
17355
17455
  },
17356
17456
  "end_datetime": {
@@ -17366,7 +17466,7 @@
17366
17466
  "title": "End Datetime",
17367
17467
  "description": "Target session timestamp the workflow (backfill) should end. An empty value indicates no end, i.e., include live sessions until deactivation",
17368
17468
  "examples": [
17369
- "2025-10-07T00:00:00Z"
17469
+ "2025-10-08T00:00:00Z"
17370
17470
  ]
17371
17471
  }
17372
17472
  },
@@ -17441,7 +17541,7 @@
17441
17541
  "title": "Start Datetime",
17442
17542
  "description": "Target session timestamp the workflow (backfill) should start. An empty value indicates start on activation - live sessions only",
17443
17543
  "examples": [
17444
- "2025-10-06T00:00:00Z"
17544
+ "2025-10-07T00:00:00Z"
17445
17545
  ]
17446
17546
  },
17447
17547
  "end_datetime": {
@@ -17457,7 +17557,7 @@
17457
17557
  "title": "End Datetime",
17458
17558
  "description": "Target session timestamp the workflow (backfill) should end. An empty value indicates no end, i.e., include live sessions until deactivation",
17459
17559
  "examples": [
17460
- "2025-10-07T00:00:00Z"
17560
+ "2025-10-08T00:00:00Z"
17461
17561
  ]
17462
17562
  },
17463
17563
  "id": {
@@ -17510,7 +17610,7 @@
17510
17610
  "title": "Created At",
17511
17611
  "description": "Timestamp at which the insight workflow was created",
17512
17612
  "examples": [
17513
- "2025-10-06T00:00:00Z"
17613
+ "2025-10-07T00:00:00Z"
17514
17614
  ]
17515
17615
  },
17516
17616
  "updated_at": {
@@ -17519,7 +17619,7 @@
17519
17619
  "title": "Updated At",
17520
17620
  "description": "Timestamp of most recent update to the insight workflow",
17521
17621
  "examples": [
17522
- "2025-10-07T00:00:00Z"
17622
+ "2025-10-08T00:00:00Z"
17523
17623
  ]
17524
17624
  },
17525
17625
  "last_updated_by": {
@@ -17615,7 +17715,7 @@
17615
17715
  "title": "Created At",
17616
17716
  "description": "Timestamp at which insight upload folder was created",
17617
17717
  "examples": [
17618
- "2025-10-06T00:00:00Z"
17718
+ "2025-10-07T00:00:00Z"
17619
17719
  ]
17620
17720
  },
17621
17721
  "updated_at": {
@@ -17624,7 +17724,7 @@
17624
17724
  "title": "Updated At",
17625
17725
  "description": "Timestamp at which insight upload folder was last updated",
17626
17726
  "examples": [
17627
- "2025-10-07T00:00:00Z"
17727
+ "2025-10-08T00:00:00Z"
17628
17728
  ]
17629
17729
  },
17630
17730
  "last_updated_by": {
@@ -17859,7 +17959,7 @@
17859
17959
  "title": "Created At",
17860
17960
  "description": "Timestamp at which insight tool result was created",
17861
17961
  "examples": [
17862
- "2025-10-06T00:00:00Z"
17962
+ "2025-10-07T00:00:00Z"
17863
17963
  ]
17864
17964
  },
17865
17965
  "updated_at": {
@@ -17868,7 +17968,7 @@
17868
17968
  "title": "Updated At",
17869
17969
  "description": "Timestamp at which insight tool result was last updated",
17870
17970
  "examples": [
17871
- "2025-10-07T00:00:00Z"
17971
+ "2025-10-08T00:00:00Z"
17872
17972
  ]
17873
17973
  }
17874
17974
  },
@@ -18003,7 +18103,7 @@
18003
18103
  "title": "Start Time",
18004
18104
  "description": "Start time of the uploaded file",
18005
18105
  "examples": [
18006
- "2025-10-06T00:00:00Z"
18106
+ "2025-10-07T00:00:00Z"
18007
18107
  ]
18008
18108
  },
18009
18109
  "end_time": {
@@ -18019,7 +18119,7 @@
18019
18119
  "title": "End Time",
18020
18120
  "description": "End time of the uploaded file",
18021
18121
  "examples": [
18022
- "2025-10-07T00:00:00Z"
18122
+ "2025-10-08T00:00:00Z"
18023
18123
  ]
18024
18124
  },
18025
18125
  "error_message": {
@@ -18074,7 +18174,7 @@
18074
18174
  "title": "Created At",
18075
18175
  "description": "Timestamp at which insight upload file was created",
18076
18176
  "examples": [
18077
- "2025-10-06T00:00:00Z"
18177
+ "2025-10-07T00:00:00Z"
18078
18178
  ]
18079
18179
  }
18080
18180
  },
@@ -20440,6 +20540,14 @@
20440
20540
  "title": "LoginType",
20441
20541
  "description": "The type of login to use for the user."
20442
20542
  },
20543
+ "MatchType": {
20544
+ "type": "string",
20545
+ "enum": [
20546
+ "exact"
20547
+ ],
20548
+ "title": "MatchType",
20549
+ "description": "Matching strategy for override text."
20550
+ },
20443
20551
  "OrderByDirection": {
20444
20552
  "type": "string",
20445
20553
  "enum": [
@@ -21022,7 +21130,7 @@
21022
21130
  "title": "Created At",
21023
21131
  "description": "Timestamp of campaign creation",
21024
21132
  "examples": [
21025
- "2025-10-07T00:00:00Z"
21133
+ "2025-10-08T00:00:00Z"
21026
21134
  ]
21027
21135
  },
21028
21136
  "updated_at": {
@@ -21031,7 +21139,7 @@
21031
21139
  "title": "Updated At",
21032
21140
  "description": "Timestamp of campaign update",
21033
21141
  "examples": [
21034
- "2025-10-07T00:00:00Z"
21142
+ "2025-10-08T00:00:00Z"
21035
21143
  ]
21036
21144
  },
21037
21145
  "last_updated_by": {
@@ -22055,6 +22163,129 @@
22055
22163
  "title": "PromptUpdateRequest",
22056
22164
  "description": "Request model to update an existing prompt."
22057
22165
  },
22166
+ "PronunciationOverride": {
22167
+ "properties": {
22168
+ "text": {
22169
+ "type": "string",
22170
+ "minLength": 1,
22171
+ "title": "Text"
22172
+ },
22173
+ "replacement": {
22174
+ "type": "string",
22175
+ "minLength": 1,
22176
+ "title": "Replacement"
22177
+ },
22178
+ "language": {
22179
+ "anyOf": [
22180
+ {
22181
+ "type": "string"
22182
+ },
22183
+ {
22184
+ "items": {
22185
+ "type": "string"
22186
+ },
22187
+ "type": "array"
22188
+ },
22189
+ {
22190
+ "type": "null"
22191
+ }
22192
+ ],
22193
+ "title": "Language"
22194
+ },
22195
+ "provider": {
22196
+ "anyOf": [
22197
+ {
22198
+ "type": "string"
22199
+ },
22200
+ {
22201
+ "type": "null"
22202
+ }
22203
+ ],
22204
+ "title": "Provider"
22205
+ },
22206
+ "voice": {
22207
+ "anyOf": [
22208
+ {
22209
+ "type": "string"
22210
+ },
22211
+ {
22212
+ "type": "null"
22213
+ }
22214
+ ],
22215
+ "title": "Voice"
22216
+ },
22217
+ "match_type": {
22218
+ "$ref": "#/components/schemas/MatchType",
22219
+ "default": "exact"
22220
+ },
22221
+ "match_options": {
22222
+ "items": {
22223
+ "type": "string"
22224
+ },
22225
+ "type": "array",
22226
+ "title": "Match Options"
22227
+ },
22228
+ "enabled": {
22229
+ "type": "boolean",
22230
+ "title": "Enabled",
22231
+ "default": true
22232
+ },
22233
+ "notes": {
22234
+ "anyOf": [
22235
+ {
22236
+ "type": "string"
22237
+ },
22238
+ {
22239
+ "type": "null"
22240
+ }
22241
+ ],
22242
+ "title": "Notes"
22243
+ }
22244
+ },
22245
+ "additionalProperties": false,
22246
+ "type": "object",
22247
+ "required": [
22248
+ "text",
22249
+ "replacement"
22250
+ ],
22251
+ "title": "PronunciationOverride",
22252
+ "description": "A single text replacement rule."
22253
+ },
22254
+ "PronunciationOverridesDictionary": {
22255
+ "properties": {
22256
+ "type": {
22257
+ "type": "string",
22258
+ "pattern": "^pronunciations_v\\d+$",
22259
+ "title": "Type",
22260
+ "default": "pronunciations_v1"
22261
+ },
22262
+ "pronunciations": {
22263
+ "items": {
22264
+ "$ref": "#/components/schemas/PronunciationOverride"
22265
+ },
22266
+ "type": "array",
22267
+ "title": "Pronunciations"
22268
+ },
22269
+ "voices": {
22270
+ "additionalProperties": {
22271
+ "$ref": "#/components/schemas/VoiceDisplayInfo"
22272
+ },
22273
+ "type": "object",
22274
+ "title": "Voices"
22275
+ },
22276
+ "metadata": {
22277
+ "$ref": "#/components/schemas/DictionaryMetadata"
22278
+ }
22279
+ },
22280
+ "additionalProperties": false,
22281
+ "type": "object",
22282
+ "required": [
22283
+ "pronunciations",
22284
+ "metadata"
22285
+ ],
22286
+ "title": "PronunciationOverridesDictionary",
22287
+ "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"
22288
+ },
22058
22289
  "PronunciationsCsvUploadResponse": {
22059
22290
  "properties": {
22060
22291
  "revision": {
@@ -25518,6 +25749,26 @@
25518
25749
  ],
25519
25750
  "title": "ValidationError"
25520
25751
  },
25752
+ "VoiceDisplayInfo": {
25753
+ "properties": {
25754
+ "display_name": {
25755
+ "type": "string",
25756
+ "title": "Display Name"
25757
+ },
25758
+ "provider": {
25759
+ "type": "string",
25760
+ "title": "Provider"
25761
+ }
25762
+ },
25763
+ "additionalProperties": false,
25764
+ "type": "object",
25765
+ "required": [
25766
+ "display_name",
25767
+ "provider"
25768
+ ],
25769
+ "title": "VoiceDisplayInfo",
25770
+ "description": "Display metadata for a canonical voice identifier."
25771
+ },
25521
25772
  "VoiceSampleCreateRequest": {
25522
25773
  "properties": {
25523
25774
  "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.1",
4
4
  "author": "Syllable",
5
5
  "bin": {
6
6
  "mcp": "bin/mcp-server.js"
@@ -1,6 +1,18 @@
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
  */
@@ -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":"AAQA,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;CAOvD"}
@@ -4,10 +4,31 @@
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Pronunciations = void 0;
7
+ const pronunciationsPronunciationsDownloadCsv_js_1 = require("../funcs/pronunciationsPronunciationsDownloadCsv.js");
8
+ const pronunciationsPronunciationsGet_js_1 = require("../funcs/pronunciationsPronunciationsGet.js");
9
+ const pronunciationsPronunciationsGetMetadata_js_1 = require("../funcs/pronunciationsPronunciationsGetMetadata.js");
7
10
  const pronunciationsPronunciationsUploadCsv_js_1 = require("../funcs/pronunciationsPronunciationsUploadCsv.js");
8
11
  const sdks_js_1 = require("../lib/sdks.js");
9
12
  const fp_js_1 = require("../types/fp.js");
10
13
  class Pronunciations extends sdks_js_1.ClientSDK {
14
+ /**
15
+ * Get Pronunciations Dictionary
16
+ */
17
+ async pronunciationsGet(options) {
18
+ return (0, fp_js_1.unwrapAsync)((0, pronunciationsPronunciationsGet_js_1.pronunciationsPronunciationsGet)(this, options));
19
+ }
20
+ /**
21
+ * Get Pronunciations Metadata
22
+ */
23
+ async pronunciationsGetMetadata(options) {
24
+ return (0, fp_js_1.unwrapAsync)((0, pronunciationsPronunciationsGetMetadata_js_1.pronunciationsPronunciationsGetMetadata)(this, options));
25
+ }
26
+ /**
27
+ * Download Pronunciations Csv
28
+ */
29
+ async pronunciationsDownloadCsv(options) {
30
+ return (0, fp_js_1.unwrapAsync)((0, pronunciationsPronunciationsDownloadCsv_js_1.pronunciationsPronunciationsDownloadCsv)(this, options));
31
+ }
11
32
  /**
12
33
  * Upload Pronunciations Csv
13
34
  */
@@ -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,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;AAlDD,wCAkDC"}