syllable-sdk 1.0.2-rc.7 → 1.0.2-rc.9
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/bin/mcp-server.js +24 -29
- package/bin/mcp-server.js.map +9 -9
- package/docs/sdks/batches/README.md +4 -4
- package/docs/sdks/workflows/README.md +8 -8
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/dictionarymetadata.d.ts +2 -2
- package/models/components/dictionarymetadata.d.ts.map +1 -1
- package/models/components/dictionarymetadata.js +2 -2
- package/models/components/dictionarymetadata.js.map +1 -1
- package/models/components/matchtype.d.ts +3 -0
- package/models/components/matchtype.d.ts.map +1 -1
- package/models/components/matchtype.js +1 -0
- package/models/components/matchtype.js.map +1 -1
- package/models/components/pronunciationoverride.d.ts +8 -29
- package/models/components/pronunciationoverride.d.ts.map +1 -1
- package/models/components/pronunciationoverride.js +9 -32
- package/models/components/pronunciationoverride.js.map +1 -1
- package/models/components/pronunciationscsvuploadresponse.d.ts +6 -6
- package/models/components/pronunciationscsvuploadresponse.d.ts.map +1 -1
- package/models/components/pronunciationscsvuploadresponse.js +6 -6
- package/models/components/pronunciationscsvuploadresponse.js.map +1 -1
- package/openapi.json +60 -111
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/dictionarymetadata.ts +4 -4
- package/src/models/components/matchtype.ts +1 -0
- package/src/models/components/pronunciationoverride.ts +16 -62
- package/src/models/components/pronunciationscsvuploadresponse.ts +12 -12
package/openapi.json
CHANGED
|
@@ -13187,7 +13187,7 @@
|
|
|
13187
13187
|
"title": "Batch Id",
|
|
13188
13188
|
"description": "Unique ID for conversation batch",
|
|
13189
13189
|
"examples": [
|
|
13190
|
-
"
|
|
13190
|
+
"20251011.9"
|
|
13191
13191
|
]
|
|
13192
13192
|
},
|
|
13193
13193
|
"campaign_id": {
|
|
@@ -13211,7 +13211,7 @@
|
|
|
13211
13211
|
"title": "Expires On",
|
|
13212
13212
|
"description": "Timestamp of batch expiration",
|
|
13213
13213
|
"examples": [
|
|
13214
|
-
"2025-10-
|
|
13214
|
+
"2025-10-12T00:00:00Z"
|
|
13215
13215
|
]
|
|
13216
13216
|
},
|
|
13217
13217
|
"paused": {
|
|
@@ -13264,7 +13264,7 @@
|
|
|
13264
13264
|
"title": "Created At",
|
|
13265
13265
|
"description": "Timestamp of batch creation",
|
|
13266
13266
|
"examples": [
|
|
13267
|
-
"2025-10-
|
|
13267
|
+
"2025-10-11T00:00:00Z"
|
|
13268
13268
|
]
|
|
13269
13269
|
},
|
|
13270
13270
|
"deleted_at": {
|
|
@@ -13280,7 +13280,7 @@
|
|
|
13280
13280
|
"title": "Deleted At",
|
|
13281
13281
|
"description": "Timestamp of batch deletion",
|
|
13282
13282
|
"examples": [
|
|
13283
|
-
"2025-10-
|
|
13283
|
+
"2025-10-11T00:00:00Z"
|
|
13284
13284
|
]
|
|
13285
13285
|
},
|
|
13286
13286
|
"deleted_reason": {
|
|
@@ -13311,7 +13311,7 @@
|
|
|
13311
13311
|
"title": "Last Updated At",
|
|
13312
13312
|
"description": "Timestamp of last change to batch",
|
|
13313
13313
|
"examples": [
|
|
13314
|
-
"2025-10-
|
|
13314
|
+
"2025-10-11T00:00:00Z"
|
|
13315
13315
|
]
|
|
13316
13316
|
},
|
|
13317
13317
|
"last_updated_by": {
|
|
@@ -14066,7 +14066,7 @@
|
|
|
14066
14066
|
"title": "Batch Id",
|
|
14067
14067
|
"description": "Unique ID for conversation batch",
|
|
14068
14068
|
"examples": [
|
|
14069
|
-
"
|
|
14069
|
+
"20251011.9"
|
|
14070
14070
|
]
|
|
14071
14071
|
},
|
|
14072
14072
|
"campaign_id": {
|
|
@@ -14090,7 +14090,7 @@
|
|
|
14090
14090
|
"title": "Expires On",
|
|
14091
14091
|
"description": "Timestamp of batch expiration",
|
|
14092
14092
|
"examples": [
|
|
14093
|
-
"2025-10-
|
|
14093
|
+
"2025-10-12T00:00:00Z"
|
|
14094
14094
|
]
|
|
14095
14095
|
},
|
|
14096
14096
|
"paused": {
|
|
@@ -14143,7 +14143,7 @@
|
|
|
14143
14143
|
"title": "Created At",
|
|
14144
14144
|
"description": "Timestamp of batch creation",
|
|
14145
14145
|
"examples": [
|
|
14146
|
-
"2025-10-
|
|
14146
|
+
"2025-10-11T00:00:00Z"
|
|
14147
14147
|
]
|
|
14148
14148
|
},
|
|
14149
14149
|
"deleted_at": {
|
|
@@ -14159,7 +14159,7 @@
|
|
|
14159
14159
|
"title": "Deleted At",
|
|
14160
14160
|
"description": "Timestamp of batch deletion",
|
|
14161
14161
|
"examples": [
|
|
14162
|
-
"2025-10-
|
|
14162
|
+
"2025-10-11T00:00:00Z"
|
|
14163
14163
|
]
|
|
14164
14164
|
},
|
|
14165
14165
|
"deleted_reason": {
|
|
@@ -14190,7 +14190,7 @@
|
|
|
14190
14190
|
"title": "Last Updated At",
|
|
14191
14191
|
"description": "Timestamp of last change to batch",
|
|
14192
14192
|
"examples": [
|
|
14193
|
-
"2025-10-
|
|
14193
|
+
"2025-10-11T00:00:00Z"
|
|
14194
14194
|
]
|
|
14195
14195
|
},
|
|
14196
14196
|
"last_updated_by": {
|
|
@@ -14233,7 +14233,7 @@
|
|
|
14233
14233
|
"title": "Batch Id",
|
|
14234
14234
|
"description": "Unique ID for conversation batch",
|
|
14235
14235
|
"examples": [
|
|
14236
|
-
"
|
|
14236
|
+
"20251011.9"
|
|
14237
14237
|
]
|
|
14238
14238
|
},
|
|
14239
14239
|
"campaign_id": {
|
|
@@ -14257,7 +14257,7 @@
|
|
|
14257
14257
|
"title": "Expires On",
|
|
14258
14258
|
"description": "Timestamp of batch expiration",
|
|
14259
14259
|
"examples": [
|
|
14260
|
-
"2025-10-
|
|
14260
|
+
"2025-10-12T00:00:00Z"
|
|
14261
14261
|
]
|
|
14262
14262
|
},
|
|
14263
14263
|
"paused": {
|
|
@@ -14406,7 +14406,7 @@
|
|
|
14406
14406
|
"title": "Created At",
|
|
14407
14407
|
"description": "Timestamp of request creation",
|
|
14408
14408
|
"examples": [
|
|
14409
|
-
"2025-10-
|
|
14409
|
+
"2025-10-10T00:00:00Z"
|
|
14410
14410
|
]
|
|
14411
14411
|
},
|
|
14412
14412
|
"sent_at": {
|
|
@@ -14422,7 +14422,7 @@
|
|
|
14422
14422
|
"title": "Sent At",
|
|
14423
14423
|
"description": "Timestamp at which request was sent",
|
|
14424
14424
|
"examples": [
|
|
14425
|
-
"2025-10-
|
|
14425
|
+
"2025-10-11T00:00:00Z"
|
|
14426
14426
|
]
|
|
14427
14427
|
},
|
|
14428
14428
|
"attempt_count": {
|
|
@@ -15892,15 +15892,9 @@
|
|
|
15892
15892
|
"title": "Hash"
|
|
15893
15893
|
},
|
|
15894
15894
|
"source": {
|
|
15895
|
-
"
|
|
15896
|
-
|
|
15897
|
-
|
|
15898
|
-
},
|
|
15899
|
-
{
|
|
15900
|
-
"type": "null"
|
|
15901
|
-
}
|
|
15902
|
-
],
|
|
15903
|
-
"title": "Source"
|
|
15895
|
+
"type": "string",
|
|
15896
|
+
"title": "Source",
|
|
15897
|
+
"default": ""
|
|
15904
15898
|
}
|
|
15905
15899
|
},
|
|
15906
15900
|
"additionalProperties": false,
|
|
@@ -16369,7 +16363,7 @@
|
|
|
16369
16363
|
"title": "Created At",
|
|
16370
16364
|
"description": "Timestamp at which insight upload folder was created",
|
|
16371
16365
|
"examples": [
|
|
16372
|
-
"2025-10-
|
|
16366
|
+
"2025-10-10T00:00:00Z"
|
|
16373
16367
|
]
|
|
16374
16368
|
},
|
|
16375
16369
|
"updated_at": {
|
|
@@ -16378,7 +16372,7 @@
|
|
|
16378
16372
|
"title": "Updated At",
|
|
16379
16373
|
"description": "Timestamp at which insight upload folder was last updated",
|
|
16380
16374
|
"examples": [
|
|
16381
|
-
"2025-10-
|
|
16375
|
+
"2025-10-11T00:00:00Z"
|
|
16382
16376
|
]
|
|
16383
16377
|
},
|
|
16384
16378
|
"last_updated_by": {
|
|
@@ -17064,7 +17058,7 @@
|
|
|
17064
17058
|
"title": "Created At",
|
|
17065
17059
|
"description": "Timestamp of at which insight tool configuration was created",
|
|
17066
17060
|
"examples": [
|
|
17067
|
-
"2025-10-
|
|
17061
|
+
"2025-10-10T00:00:00Z"
|
|
17068
17062
|
]
|
|
17069
17063
|
},
|
|
17070
17064
|
"updated_at": {
|
|
@@ -17073,7 +17067,7 @@
|
|
|
17073
17067
|
"title": "Updated At",
|
|
17074
17068
|
"description": "Timestamp at which insight tool configuration was last updated",
|
|
17075
17069
|
"examples": [
|
|
17076
|
-
"2025-10-
|
|
17070
|
+
"2025-10-11T00:00:00Z"
|
|
17077
17071
|
]
|
|
17078
17072
|
},
|
|
17079
17073
|
"last_updated_by": {
|
|
@@ -17454,7 +17448,7 @@
|
|
|
17454
17448
|
"title": "Start Datetime",
|
|
17455
17449
|
"description": "Target session timestamp the workflow (backfill) should start. An empty value indicates start on activation - live sessions only",
|
|
17456
17450
|
"examples": [
|
|
17457
|
-
"2025-10-
|
|
17451
|
+
"2025-10-10T00:00:00Z"
|
|
17458
17452
|
]
|
|
17459
17453
|
},
|
|
17460
17454
|
"end_datetime": {
|
|
@@ -17470,7 +17464,7 @@
|
|
|
17470
17464
|
"title": "End Datetime",
|
|
17471
17465
|
"description": "Target session timestamp the workflow (backfill) should end. An empty value indicates no end, i.e., include live sessions until deactivation",
|
|
17472
17466
|
"examples": [
|
|
17473
|
-
"2025-10-
|
|
17467
|
+
"2025-10-11T00:00:00Z"
|
|
17474
17468
|
]
|
|
17475
17469
|
}
|
|
17476
17470
|
},
|
|
@@ -17545,7 +17539,7 @@
|
|
|
17545
17539
|
"title": "Start Datetime",
|
|
17546
17540
|
"description": "Target session timestamp the workflow (backfill) should start. An empty value indicates start on activation - live sessions only",
|
|
17547
17541
|
"examples": [
|
|
17548
|
-
"2025-10-
|
|
17542
|
+
"2025-10-10T00:00:00Z"
|
|
17549
17543
|
]
|
|
17550
17544
|
},
|
|
17551
17545
|
"end_datetime": {
|
|
@@ -17561,7 +17555,7 @@
|
|
|
17561
17555
|
"title": "End Datetime",
|
|
17562
17556
|
"description": "Target session timestamp the workflow (backfill) should end. An empty value indicates no end, i.e., include live sessions until deactivation",
|
|
17563
17557
|
"examples": [
|
|
17564
|
-
"2025-10-
|
|
17558
|
+
"2025-10-11T00:00:00Z"
|
|
17565
17559
|
]
|
|
17566
17560
|
},
|
|
17567
17561
|
"id": {
|
|
@@ -17614,7 +17608,7 @@
|
|
|
17614
17608
|
"title": "Created At",
|
|
17615
17609
|
"description": "Timestamp at which the insight workflow was created",
|
|
17616
17610
|
"examples": [
|
|
17617
|
-
"2025-10-
|
|
17611
|
+
"2025-10-10T00:00:00Z"
|
|
17618
17612
|
]
|
|
17619
17613
|
},
|
|
17620
17614
|
"updated_at": {
|
|
@@ -17623,7 +17617,7 @@
|
|
|
17623
17617
|
"title": "Updated At",
|
|
17624
17618
|
"description": "Timestamp of most recent update to the insight workflow",
|
|
17625
17619
|
"examples": [
|
|
17626
|
-
"2025-10-
|
|
17620
|
+
"2025-10-11T00:00:00Z"
|
|
17627
17621
|
]
|
|
17628
17622
|
},
|
|
17629
17623
|
"last_updated_by": {
|
|
@@ -17719,7 +17713,7 @@
|
|
|
17719
17713
|
"title": "Created At",
|
|
17720
17714
|
"description": "Timestamp at which insight upload folder was created",
|
|
17721
17715
|
"examples": [
|
|
17722
|
-
"2025-10-
|
|
17716
|
+
"2025-10-10T00:00:00Z"
|
|
17723
17717
|
]
|
|
17724
17718
|
},
|
|
17725
17719
|
"updated_at": {
|
|
@@ -17728,7 +17722,7 @@
|
|
|
17728
17722
|
"title": "Updated At",
|
|
17729
17723
|
"description": "Timestamp at which insight upload folder was last updated",
|
|
17730
17724
|
"examples": [
|
|
17731
|
-
"2025-10-
|
|
17725
|
+
"2025-10-11T00:00:00Z"
|
|
17732
17726
|
]
|
|
17733
17727
|
},
|
|
17734
17728
|
"last_updated_by": {
|
|
@@ -17963,7 +17957,7 @@
|
|
|
17963
17957
|
"title": "Created At",
|
|
17964
17958
|
"description": "Timestamp at which insight tool result was created",
|
|
17965
17959
|
"examples": [
|
|
17966
|
-
"2025-10-
|
|
17960
|
+
"2025-10-10T00:00:00Z"
|
|
17967
17961
|
]
|
|
17968
17962
|
},
|
|
17969
17963
|
"updated_at": {
|
|
@@ -17972,7 +17966,7 @@
|
|
|
17972
17966
|
"title": "Updated At",
|
|
17973
17967
|
"description": "Timestamp at which insight tool result was last updated",
|
|
17974
17968
|
"examples": [
|
|
17975
|
-
"2025-10-
|
|
17969
|
+
"2025-10-11T00:00:00Z"
|
|
17976
17970
|
]
|
|
17977
17971
|
}
|
|
17978
17972
|
},
|
|
@@ -18107,7 +18101,7 @@
|
|
|
18107
18101
|
"title": "Start Time",
|
|
18108
18102
|
"description": "Start time of the uploaded file",
|
|
18109
18103
|
"examples": [
|
|
18110
|
-
"2025-10-
|
|
18104
|
+
"2025-10-10T00:00:00Z"
|
|
18111
18105
|
]
|
|
18112
18106
|
},
|
|
18113
18107
|
"end_time": {
|
|
@@ -18123,7 +18117,7 @@
|
|
|
18123
18117
|
"title": "End Time",
|
|
18124
18118
|
"description": "End time of the uploaded file",
|
|
18125
18119
|
"examples": [
|
|
18126
|
-
"2025-10-
|
|
18120
|
+
"2025-10-11T00:00:00Z"
|
|
18127
18121
|
]
|
|
18128
18122
|
},
|
|
18129
18123
|
"error_message": {
|
|
@@ -18178,7 +18172,7 @@
|
|
|
18178
18172
|
"title": "Created At",
|
|
18179
18173
|
"description": "Timestamp at which insight upload file was created",
|
|
18180
18174
|
"examples": [
|
|
18181
|
-
"2025-10-
|
|
18175
|
+
"2025-10-10T00:00:00Z"
|
|
18182
18176
|
]
|
|
18183
18177
|
}
|
|
18184
18178
|
},
|
|
@@ -20547,7 +20541,8 @@
|
|
|
20547
20541
|
"MatchType": {
|
|
20548
20542
|
"type": "string",
|
|
20549
20543
|
"enum": [
|
|
20550
|
-
"exact"
|
|
20544
|
+
"exact",
|
|
20545
|
+
"substring"
|
|
20551
20546
|
],
|
|
20552
20547
|
"title": "MatchType",
|
|
20553
20548
|
"description": "Matching strategy for override text."
|
|
@@ -21163,7 +21158,7 @@
|
|
|
21163
21158
|
"title": "Created At",
|
|
21164
21159
|
"description": "Timestamp of campaign creation",
|
|
21165
21160
|
"examples": [
|
|
21166
|
-
"2025-10-
|
|
21161
|
+
"2025-10-11T00:00:00Z"
|
|
21167
21162
|
]
|
|
21168
21163
|
},
|
|
21169
21164
|
"updated_at": {
|
|
@@ -21172,7 +21167,7 @@
|
|
|
21172
21167
|
"title": "Updated At",
|
|
21173
21168
|
"description": "Timestamp of campaign update",
|
|
21174
21169
|
"examples": [
|
|
21175
|
-
"2025-10-
|
|
21170
|
+
"2025-10-11T00:00:00Z"
|
|
21176
21171
|
]
|
|
21177
21172
|
},
|
|
21178
21173
|
"last_updated_by": {
|
|
@@ -22252,44 +22247,22 @@
|
|
|
22252
22247
|
"minLength": 1,
|
|
22253
22248
|
"title": "Replacement"
|
|
22254
22249
|
},
|
|
22255
|
-
"
|
|
22256
|
-
"
|
|
22257
|
-
|
|
22258
|
-
|
|
22259
|
-
|
|
22260
|
-
|
|
22261
|
-
"items": {
|
|
22262
|
-
"type": "string"
|
|
22263
|
-
},
|
|
22264
|
-
"type": "array"
|
|
22265
|
-
},
|
|
22266
|
-
{
|
|
22267
|
-
"type": "null"
|
|
22268
|
-
}
|
|
22269
|
-
],
|
|
22270
|
-
"title": "Language"
|
|
22250
|
+
"languages": {
|
|
22251
|
+
"items": {
|
|
22252
|
+
"type": "string"
|
|
22253
|
+
},
|
|
22254
|
+
"type": "array",
|
|
22255
|
+
"title": "Languages"
|
|
22271
22256
|
},
|
|
22272
22257
|
"provider": {
|
|
22273
|
-
"
|
|
22274
|
-
|
|
22275
|
-
|
|
22276
|
-
},
|
|
22277
|
-
{
|
|
22278
|
-
"type": "null"
|
|
22279
|
-
}
|
|
22280
|
-
],
|
|
22281
|
-
"title": "Provider"
|
|
22258
|
+
"type": "string",
|
|
22259
|
+
"title": "Provider",
|
|
22260
|
+
"default": ""
|
|
22282
22261
|
},
|
|
22283
22262
|
"voice": {
|
|
22284
|
-
"
|
|
22285
|
-
|
|
22286
|
-
|
|
22287
|
-
},
|
|
22288
|
-
{
|
|
22289
|
-
"type": "null"
|
|
22290
|
-
}
|
|
22291
|
-
],
|
|
22292
|
-
"title": "Voice"
|
|
22263
|
+
"type": "string",
|
|
22264
|
+
"title": "Voice",
|
|
22265
|
+
"default": ""
|
|
22293
22266
|
},
|
|
22294
22267
|
"match_type": {
|
|
22295
22268
|
"$ref": "#/components/schemas/MatchType",
|
|
@@ -22308,15 +22281,9 @@
|
|
|
22308
22281
|
"default": true
|
|
22309
22282
|
},
|
|
22310
22283
|
"notes": {
|
|
22311
|
-
"
|
|
22312
|
-
|
|
22313
|
-
|
|
22314
|
-
},
|
|
22315
|
-
{
|
|
22316
|
-
"type": "null"
|
|
22317
|
-
}
|
|
22318
|
-
],
|
|
22319
|
-
"title": "Notes"
|
|
22284
|
+
"type": "string",
|
|
22285
|
+
"title": "Notes",
|
|
22286
|
+
"default": ""
|
|
22320
22287
|
}
|
|
22321
22288
|
},
|
|
22322
22289
|
"additionalProperties": false,
|
|
@@ -22370,25 +22337,11 @@
|
|
|
22370
22337
|
"title": "Revision"
|
|
22371
22338
|
},
|
|
22372
22339
|
"hash": {
|
|
22373
|
-
"
|
|
22374
|
-
{
|
|
22375
|
-
"type": "string"
|
|
22376
|
-
},
|
|
22377
|
-
{
|
|
22378
|
-
"type": "null"
|
|
22379
|
-
}
|
|
22380
|
-
],
|
|
22340
|
+
"type": "string",
|
|
22381
22341
|
"title": "Hash"
|
|
22382
22342
|
},
|
|
22383
22343
|
"entries": {
|
|
22384
|
-
"
|
|
22385
|
-
{
|
|
22386
|
-
"type": "integer"
|
|
22387
|
-
},
|
|
22388
|
-
{
|
|
22389
|
-
"type": "null"
|
|
22390
|
-
}
|
|
22391
|
-
],
|
|
22344
|
+
"type": "integer",
|
|
22392
22345
|
"title": "Entries"
|
|
22393
22346
|
},
|
|
22394
22347
|
"uploaded_at": {
|
|
@@ -22397,20 +22350,16 @@
|
|
|
22397
22350
|
"title": "Uploaded At"
|
|
22398
22351
|
},
|
|
22399
22352
|
"uploaded_by": {
|
|
22400
|
-
"
|
|
22401
|
-
{
|
|
22402
|
-
"type": "string"
|
|
22403
|
-
},
|
|
22404
|
-
{
|
|
22405
|
-
"type": "null"
|
|
22406
|
-
}
|
|
22407
|
-
],
|
|
22353
|
+
"type": "string",
|
|
22408
22354
|
"title": "Uploaded By"
|
|
22409
22355
|
}
|
|
22410
22356
|
},
|
|
22411
22357
|
"type": "object",
|
|
22412
22358
|
"required": [
|
|
22413
|
-
"revision"
|
|
22359
|
+
"revision",
|
|
22360
|
+
"hash",
|
|
22361
|
+
"entries",
|
|
22362
|
+
"uploaded_by"
|
|
22414
22363
|
],
|
|
22415
22364
|
"title": "PronunciationsCsvUploadResponse",
|
|
22416
22365
|
"description": "Placeholder response returned after accepting a pronunciations CSV upload."
|
package/package.json
CHANGED
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.
|
|
64
|
+
sdkVersion: "1.0.2-rc.9",
|
|
65
65
|
genVersion: "2.723.11",
|
|
66
|
-
userAgent: "speakeasy-sdk/typescript 1.0.2-rc.
|
|
66
|
+
userAgent: "speakeasy-sdk/typescript 1.0.2-rc.9 2.723.11 0.0.2 syllable-sdk",
|
|
67
67
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -13,7 +13,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
13
13
|
export type DictionaryMetadata = {
|
|
14
14
|
entries: number;
|
|
15
15
|
hash: string;
|
|
16
|
-
source?: string |
|
|
16
|
+
source?: string | undefined;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
/** @internal */
|
|
@@ -24,14 +24,14 @@ export const DictionaryMetadata$inboundSchema: z.ZodType<
|
|
|
24
24
|
> = z.object({
|
|
25
25
|
entries: z.number().int(),
|
|
26
26
|
hash: z.string(),
|
|
27
|
-
source: z.
|
|
27
|
+
source: z.string().default(""),
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
/** @internal */
|
|
31
31
|
export type DictionaryMetadata$Outbound = {
|
|
32
32
|
entries: number;
|
|
33
33
|
hash: string;
|
|
34
|
-
source
|
|
34
|
+
source: string;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
/** @internal */
|
|
@@ -42,7 +42,7 @@ export const DictionaryMetadata$outboundSchema: z.ZodType<
|
|
|
42
42
|
> = z.object({
|
|
43
43
|
entries: z.number().int(),
|
|
44
44
|
hash: z.string(),
|
|
45
|
-
source: z.
|
|
45
|
+
source: z.string().default(""),
|
|
46
46
|
});
|
|
47
47
|
|
|
48
48
|
/**
|
|
@@ -13,70 +13,24 @@ import {
|
|
|
13
13
|
MatchType$outboundSchema,
|
|
14
14
|
} from "./matchtype.js";
|
|
15
15
|
|
|
16
|
-
export type Language = string | Array<string>;
|
|
17
|
-
|
|
18
16
|
/**
|
|
19
17
|
* A single text replacement rule.
|
|
20
18
|
*/
|
|
21
19
|
export type PronunciationOverride = {
|
|
22
20
|
text: string;
|
|
23
21
|
replacement: string;
|
|
24
|
-
|
|
25
|
-
provider?: string |
|
|
26
|
-
voice?: string |
|
|
22
|
+
languages?: Array<string> | undefined;
|
|
23
|
+
provider?: string | undefined;
|
|
24
|
+
voice?: string | undefined;
|
|
27
25
|
/**
|
|
28
26
|
* Matching strategy for override text.
|
|
29
27
|
*/
|
|
30
28
|
matchType?: MatchType | undefined;
|
|
31
29
|
matchOptions?: Array<string> | undefined;
|
|
32
30
|
enabled?: boolean | undefined;
|
|
33
|
-
notes?: string |
|
|
31
|
+
notes?: string | undefined;
|
|
34
32
|
};
|
|
35
33
|
|
|
36
|
-
/** @internal */
|
|
37
|
-
export const Language$inboundSchema: z.ZodType<
|
|
38
|
-
Language,
|
|
39
|
-
z.ZodTypeDef,
|
|
40
|
-
unknown
|
|
41
|
-
> = z.union([z.string(), z.array(z.string())]);
|
|
42
|
-
|
|
43
|
-
/** @internal */
|
|
44
|
-
export type Language$Outbound = string | Array<string>;
|
|
45
|
-
|
|
46
|
-
/** @internal */
|
|
47
|
-
export const Language$outboundSchema: z.ZodType<
|
|
48
|
-
Language$Outbound,
|
|
49
|
-
z.ZodTypeDef,
|
|
50
|
-
Language
|
|
51
|
-
> = z.union([z.string(), z.array(z.string())]);
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* @internal
|
|
55
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
-
*/
|
|
57
|
-
export namespace Language$ {
|
|
58
|
-
/** @deprecated use `Language$inboundSchema` instead. */
|
|
59
|
-
export const inboundSchema = Language$inboundSchema;
|
|
60
|
-
/** @deprecated use `Language$outboundSchema` instead. */
|
|
61
|
-
export const outboundSchema = Language$outboundSchema;
|
|
62
|
-
/** @deprecated use `Language$Outbound` instead. */
|
|
63
|
-
export type Outbound = Language$Outbound;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export function languageToJSON(language: Language): string {
|
|
67
|
-
return JSON.stringify(Language$outboundSchema.parse(language));
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export function languageFromJSON(
|
|
71
|
-
jsonString: string,
|
|
72
|
-
): SafeParseResult<Language, SDKValidationError> {
|
|
73
|
-
return safeParse(
|
|
74
|
-
jsonString,
|
|
75
|
-
(x) => Language$inboundSchema.parse(JSON.parse(x)),
|
|
76
|
-
`Failed to parse 'Language' from JSON`,
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
34
|
/** @internal */
|
|
81
35
|
export const PronunciationOverride$inboundSchema: z.ZodType<
|
|
82
36
|
PronunciationOverride,
|
|
@@ -85,13 +39,13 @@ export const PronunciationOverride$inboundSchema: z.ZodType<
|
|
|
85
39
|
> = z.object({
|
|
86
40
|
text: z.string(),
|
|
87
41
|
replacement: z.string(),
|
|
88
|
-
|
|
89
|
-
provider: z.
|
|
90
|
-
voice: z.
|
|
42
|
+
languages: z.array(z.string()).optional(),
|
|
43
|
+
provider: z.string().default(""),
|
|
44
|
+
voice: z.string().default(""),
|
|
91
45
|
match_type: MatchType$inboundSchema.optional(),
|
|
92
46
|
match_options: z.array(z.string()).optional(),
|
|
93
47
|
enabled: z.boolean().default(true),
|
|
94
|
-
notes: z.
|
|
48
|
+
notes: z.string().default(""),
|
|
95
49
|
}).transform((v) => {
|
|
96
50
|
return remap$(v, {
|
|
97
51
|
"match_type": "matchType",
|
|
@@ -103,13 +57,13 @@ export const PronunciationOverride$inboundSchema: z.ZodType<
|
|
|
103
57
|
export type PronunciationOverride$Outbound = {
|
|
104
58
|
text: string;
|
|
105
59
|
replacement: string;
|
|
106
|
-
|
|
107
|
-
provider
|
|
108
|
-
voice
|
|
60
|
+
languages?: Array<string> | undefined;
|
|
61
|
+
provider: string;
|
|
62
|
+
voice: string;
|
|
109
63
|
match_type?: string | undefined;
|
|
110
64
|
match_options?: Array<string> | undefined;
|
|
111
65
|
enabled: boolean;
|
|
112
|
-
notes
|
|
66
|
+
notes: string;
|
|
113
67
|
};
|
|
114
68
|
|
|
115
69
|
/** @internal */
|
|
@@ -120,13 +74,13 @@ export const PronunciationOverride$outboundSchema: z.ZodType<
|
|
|
120
74
|
> = z.object({
|
|
121
75
|
text: z.string(),
|
|
122
76
|
replacement: z.string(),
|
|
123
|
-
|
|
124
|
-
provider: z.
|
|
125
|
-
voice: z.
|
|
77
|
+
languages: z.array(z.string()).optional(),
|
|
78
|
+
provider: z.string().default(""),
|
|
79
|
+
voice: z.string().default(""),
|
|
126
80
|
matchType: MatchType$outboundSchema.optional(),
|
|
127
81
|
matchOptions: z.array(z.string()).optional(),
|
|
128
82
|
enabled: z.boolean().default(true),
|
|
129
|
-
notes: z.
|
|
83
|
+
notes: z.string().default(""),
|
|
130
84
|
}).transform((v) => {
|
|
131
85
|
return remap$(v, {
|
|
132
86
|
matchType: "match_type",
|