syllable-sdk 1.0.7-rc.6 → 1.0.7-rc.8
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 +31 -17
- package/bin/mcp-server.js.map +10 -9
- package/docs/sdks/batches/README.md +4 -4
- package/docs/sdks/directory/README.md +32 -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 +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/directoryextension.d.ts +9 -23
- package/models/components/directoryextension.d.ts.map +1 -1
- package/models/components/directoryextension.js +6 -26
- package/models/components/directoryextension.js.map +1 -1
- package/models/components/directoryextensionnumber.d.ts +41 -0
- package/models/components/directoryextensionnumber.d.ts.map +1 -0
- package/models/components/directoryextensionnumber.js +71 -0
- package/models/components/directoryextensionnumber.js.map +1 -0
- package/models/components/directorymember.d.ts +2 -2
- package/models/components/directorymember.d.ts.map +1 -1
- package/models/components/directorymember.js +2 -2
- package/models/components/directorymember.js.map +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/openapi.json +91 -40
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/directoryextension.ts +18 -47
- package/src/models/components/directoryextensionnumber.ts +76 -0
- package/src/models/components/directorymember.ts +6 -4
- package/src/models/components/index.ts +1 -0
package/openapi.json
CHANGED
|
@@ -13785,7 +13785,7 @@
|
|
|
13785
13785
|
"title": "Batch Id",
|
|
13786
13786
|
"description": "Unique ID for conversation batch",
|
|
13787
13787
|
"examples": [
|
|
13788
|
-
"
|
|
13788
|
+
"20251029.9"
|
|
13789
13789
|
]
|
|
13790
13790
|
},
|
|
13791
13791
|
"campaign_id": {
|
|
@@ -13809,7 +13809,7 @@
|
|
|
13809
13809
|
"title": "Expires On",
|
|
13810
13810
|
"description": "Timestamp of batch expiration",
|
|
13811
13811
|
"examples": [
|
|
13812
|
-
"2025-10-
|
|
13812
|
+
"2025-10-30T00:00:00Z"
|
|
13813
13813
|
]
|
|
13814
13814
|
},
|
|
13815
13815
|
"paused": {
|
|
@@ -13862,7 +13862,7 @@
|
|
|
13862
13862
|
"title": "Created At",
|
|
13863
13863
|
"description": "Timestamp of batch creation",
|
|
13864
13864
|
"examples": [
|
|
13865
|
-
"2025-10-
|
|
13865
|
+
"2025-10-29T00:00:00Z"
|
|
13866
13866
|
]
|
|
13867
13867
|
},
|
|
13868
13868
|
"deleted_at": {
|
|
@@ -13878,7 +13878,7 @@
|
|
|
13878
13878
|
"title": "Deleted At",
|
|
13879
13879
|
"description": "Timestamp of batch deletion",
|
|
13880
13880
|
"examples": [
|
|
13881
|
-
"2025-10-
|
|
13881
|
+
"2025-10-29T00:00:00Z"
|
|
13882
13882
|
]
|
|
13883
13883
|
},
|
|
13884
13884
|
"deleted_reason": {
|
|
@@ -13909,7 +13909,7 @@
|
|
|
13909
13909
|
"title": "Last Updated At",
|
|
13910
13910
|
"description": "Timestamp of last change to batch",
|
|
13911
13911
|
"examples": [
|
|
13912
|
-
"2025-10-
|
|
13912
|
+
"2025-10-29T00:00:00Z"
|
|
13913
13913
|
]
|
|
13914
13914
|
},
|
|
13915
13915
|
"last_updated_by": {
|
|
@@ -14665,7 +14665,7 @@
|
|
|
14665
14665
|
"title": "Batch Id",
|
|
14666
14666
|
"description": "Unique ID for conversation batch",
|
|
14667
14667
|
"examples": [
|
|
14668
|
-
"
|
|
14668
|
+
"20251029.9"
|
|
14669
14669
|
]
|
|
14670
14670
|
},
|
|
14671
14671
|
"campaign_id": {
|
|
@@ -14689,7 +14689,7 @@
|
|
|
14689
14689
|
"title": "Expires On",
|
|
14690
14690
|
"description": "Timestamp of batch expiration",
|
|
14691
14691
|
"examples": [
|
|
14692
|
-
"2025-10-
|
|
14692
|
+
"2025-10-30T00:00:00Z"
|
|
14693
14693
|
]
|
|
14694
14694
|
},
|
|
14695
14695
|
"paused": {
|
|
@@ -14742,7 +14742,7 @@
|
|
|
14742
14742
|
"title": "Created At",
|
|
14743
14743
|
"description": "Timestamp of batch creation",
|
|
14744
14744
|
"examples": [
|
|
14745
|
-
"2025-10-
|
|
14745
|
+
"2025-10-29T00:00:00Z"
|
|
14746
14746
|
]
|
|
14747
14747
|
},
|
|
14748
14748
|
"deleted_at": {
|
|
@@ -14758,7 +14758,7 @@
|
|
|
14758
14758
|
"title": "Deleted At",
|
|
14759
14759
|
"description": "Timestamp of batch deletion",
|
|
14760
14760
|
"examples": [
|
|
14761
|
-
"2025-10-
|
|
14761
|
+
"2025-10-29T00:00:00Z"
|
|
14762
14762
|
]
|
|
14763
14763
|
},
|
|
14764
14764
|
"deleted_reason": {
|
|
@@ -14789,7 +14789,7 @@
|
|
|
14789
14789
|
"title": "Last Updated At",
|
|
14790
14790
|
"description": "Timestamp of last change to batch",
|
|
14791
14791
|
"examples": [
|
|
14792
|
-
"2025-10-
|
|
14792
|
+
"2025-10-29T00:00:00Z"
|
|
14793
14793
|
]
|
|
14794
14794
|
},
|
|
14795
14795
|
"last_updated_by": {
|
|
@@ -14832,7 +14832,7 @@
|
|
|
14832
14832
|
"title": "Batch Id",
|
|
14833
14833
|
"description": "Unique ID for conversation batch",
|
|
14834
14834
|
"examples": [
|
|
14835
|
-
"
|
|
14835
|
+
"20251029.9"
|
|
14836
14836
|
]
|
|
14837
14837
|
},
|
|
14838
14838
|
"campaign_id": {
|
|
@@ -14856,7 +14856,7 @@
|
|
|
14856
14856
|
"title": "Expires On",
|
|
14857
14857
|
"description": "Timestamp of batch expiration",
|
|
14858
14858
|
"examples": [
|
|
14859
|
-
"2025-10-
|
|
14859
|
+
"2025-10-30T00:00:00Z"
|
|
14860
14860
|
]
|
|
14861
14861
|
},
|
|
14862
14862
|
"paused": {
|
|
@@ -15005,7 +15005,7 @@
|
|
|
15005
15005
|
"title": "Created At",
|
|
15006
15006
|
"description": "Timestamp of request creation",
|
|
15007
15007
|
"examples": [
|
|
15008
|
-
"2025-10-
|
|
15008
|
+
"2025-10-28T00:00:00Z"
|
|
15009
15009
|
]
|
|
15010
15010
|
},
|
|
15011
15011
|
"sent_at": {
|
|
@@ -15021,7 +15021,7 @@
|
|
|
15021
15021
|
"title": "Sent At",
|
|
15022
15022
|
"description": "Timestamp at which request was sent",
|
|
15023
15023
|
"examples": [
|
|
15024
|
-
"2025-10-
|
|
15024
|
+
"2025-10-29T00:00:00Z"
|
|
15025
15025
|
]
|
|
15026
15026
|
},
|
|
15027
15027
|
"attempt_count": {
|
|
@@ -16510,13 +16510,16 @@
|
|
|
16510
16510
|
"name": {
|
|
16511
16511
|
"type": "string",
|
|
16512
16512
|
"title": "Name",
|
|
16513
|
-
"description": ""
|
|
16513
|
+
"description": "Directory extension name",
|
|
16514
|
+
"examples": [
|
|
16515
|
+
"work"
|
|
16516
|
+
]
|
|
16514
16517
|
},
|
|
16515
16518
|
"numbers": {
|
|
16516
16519
|
"anyOf": [
|
|
16517
16520
|
{
|
|
16518
16521
|
"items": {
|
|
16519
|
-
"
|
|
16522
|
+
"$ref": "#/components/schemas/DirectoryExtensionNumber"
|
|
16520
16523
|
},
|
|
16521
16524
|
"type": "array"
|
|
16522
16525
|
},
|
|
@@ -16525,7 +16528,7 @@
|
|
|
16525
16528
|
}
|
|
16526
16529
|
],
|
|
16527
16530
|
"title": "Numbers",
|
|
16528
|
-
"description": ""
|
|
16531
|
+
"description": "Directory extension numbers."
|
|
16529
16532
|
}
|
|
16530
16533
|
},
|
|
16531
16534
|
"type": "object",
|
|
@@ -16534,6 +16537,48 @@
|
|
|
16534
16537
|
],
|
|
16535
16538
|
"title": "DirectoryExtension"
|
|
16536
16539
|
},
|
|
16540
|
+
"DirectoryExtensionNumber": {
|
|
16541
|
+
"properties": {
|
|
16542
|
+
"number": {
|
|
16543
|
+
"type": "string",
|
|
16544
|
+
"title": "Number",
|
|
16545
|
+
"description": "Phone number",
|
|
16546
|
+
"examples": [
|
|
16547
|
+
"+1234567890"
|
|
16548
|
+
]
|
|
16549
|
+
},
|
|
16550
|
+
"rules": {
|
|
16551
|
+
"anyOf": [
|
|
16552
|
+
{
|
|
16553
|
+
"items": {
|
|
16554
|
+
"additionalProperties": {
|
|
16555
|
+
"type": "string"
|
|
16556
|
+
},
|
|
16557
|
+
"type": "object"
|
|
16558
|
+
},
|
|
16559
|
+
"type": "array"
|
|
16560
|
+
},
|
|
16561
|
+
{
|
|
16562
|
+
"type": "null"
|
|
16563
|
+
}
|
|
16564
|
+
],
|
|
16565
|
+
"title": "Rules",
|
|
16566
|
+
"description": "Directory extension number rules. To include a language rule, use key \"language\" with a language code value.",
|
|
16567
|
+
"examples": [
|
|
16568
|
+
[
|
|
16569
|
+
{
|
|
16570
|
+
"language": "en"
|
|
16571
|
+
}
|
|
16572
|
+
]
|
|
16573
|
+
]
|
|
16574
|
+
}
|
|
16575
|
+
},
|
|
16576
|
+
"type": "object",
|
|
16577
|
+
"required": [
|
|
16578
|
+
"number"
|
|
16579
|
+
],
|
|
16580
|
+
"title": "DirectoryExtensionNumber"
|
|
16581
|
+
},
|
|
16537
16582
|
"DirectoryMember": {
|
|
16538
16583
|
"properties": {
|
|
16539
16584
|
"name": {
|
|
@@ -16618,8 +16663,15 @@
|
|
|
16618
16663
|
]
|
|
16619
16664
|
},
|
|
16620
16665
|
"updated_at": {
|
|
16621
|
-
"
|
|
16622
|
-
|
|
16666
|
+
"anyOf": [
|
|
16667
|
+
{
|
|
16668
|
+
"type": "string",
|
|
16669
|
+
"format": "date-time"
|
|
16670
|
+
},
|
|
16671
|
+
{
|
|
16672
|
+
"type": "null"
|
|
16673
|
+
}
|
|
16674
|
+
],
|
|
16623
16675
|
"title": "Updated At",
|
|
16624
16676
|
"description": "Timestamp of most recent update",
|
|
16625
16677
|
"examples": [
|
|
@@ -16645,8 +16697,7 @@
|
|
|
16645
16697
|
"type": "object",
|
|
16646
16698
|
"required": [
|
|
16647
16699
|
"name",
|
|
16648
|
-
"type"
|
|
16649
|
-
"updated_at"
|
|
16700
|
+
"type"
|
|
16650
16701
|
],
|
|
16651
16702
|
"title": "DirectoryMember",
|
|
16652
16703
|
"description": "Model for a directory member (i.e. a contact)."
|
|
@@ -16968,7 +17019,7 @@
|
|
|
16968
17019
|
"title": "Created At",
|
|
16969
17020
|
"description": "Timestamp at which insight upload folder was created",
|
|
16970
17021
|
"examples": [
|
|
16971
|
-
"2025-10-
|
|
17022
|
+
"2025-10-28T00:00:00Z"
|
|
16972
17023
|
]
|
|
16973
17024
|
},
|
|
16974
17025
|
"updated_at": {
|
|
@@ -16977,7 +17028,7 @@
|
|
|
16977
17028
|
"title": "Updated At",
|
|
16978
17029
|
"description": "Timestamp at which insight upload folder was last updated",
|
|
16979
17030
|
"examples": [
|
|
16980
|
-
"2025-10-
|
|
17031
|
+
"2025-10-29T00:00:00Z"
|
|
16981
17032
|
]
|
|
16982
17033
|
},
|
|
16983
17034
|
"last_updated_by": {
|
|
@@ -17663,7 +17714,7 @@
|
|
|
17663
17714
|
"title": "Created At",
|
|
17664
17715
|
"description": "Timestamp of at which insight tool configuration was created",
|
|
17665
17716
|
"examples": [
|
|
17666
|
-
"2025-10-
|
|
17717
|
+
"2025-10-28T00:00:00Z"
|
|
17667
17718
|
]
|
|
17668
17719
|
},
|
|
17669
17720
|
"updated_at": {
|
|
@@ -17672,7 +17723,7 @@
|
|
|
17672
17723
|
"title": "Updated At",
|
|
17673
17724
|
"description": "Timestamp at which insight tool configuration was last updated",
|
|
17674
17725
|
"examples": [
|
|
17675
|
-
"2025-10-
|
|
17726
|
+
"2025-10-29T00:00:00Z"
|
|
17676
17727
|
]
|
|
17677
17728
|
},
|
|
17678
17729
|
"last_updated_by": {
|
|
@@ -18053,7 +18104,7 @@
|
|
|
18053
18104
|
"title": "Start Datetime",
|
|
18054
18105
|
"description": "Target session timestamp the workflow (backfill) should start. An empty value indicates start on activation - live sessions only",
|
|
18055
18106
|
"examples": [
|
|
18056
|
-
"2025-10-
|
|
18107
|
+
"2025-10-28T00:00:00Z"
|
|
18057
18108
|
]
|
|
18058
18109
|
},
|
|
18059
18110
|
"end_datetime": {
|
|
@@ -18069,7 +18120,7 @@
|
|
|
18069
18120
|
"title": "End Datetime",
|
|
18070
18121
|
"description": "Target session timestamp the workflow (backfill) should end. An empty value indicates no end, i.e., include live sessions until deactivation",
|
|
18071
18122
|
"examples": [
|
|
18072
|
-
"2025-10-
|
|
18123
|
+
"2025-10-29T00:00:00Z"
|
|
18073
18124
|
]
|
|
18074
18125
|
}
|
|
18075
18126
|
},
|
|
@@ -18144,7 +18195,7 @@
|
|
|
18144
18195
|
"title": "Start Datetime",
|
|
18145
18196
|
"description": "Target session timestamp the workflow (backfill) should start. An empty value indicates start on activation - live sessions only",
|
|
18146
18197
|
"examples": [
|
|
18147
|
-
"2025-10-
|
|
18198
|
+
"2025-10-28T00:00:00Z"
|
|
18148
18199
|
]
|
|
18149
18200
|
},
|
|
18150
18201
|
"end_datetime": {
|
|
@@ -18160,7 +18211,7 @@
|
|
|
18160
18211
|
"title": "End Datetime",
|
|
18161
18212
|
"description": "Target session timestamp the workflow (backfill) should end. An empty value indicates no end, i.e., include live sessions until deactivation",
|
|
18162
18213
|
"examples": [
|
|
18163
|
-
"2025-10-
|
|
18214
|
+
"2025-10-29T00:00:00Z"
|
|
18164
18215
|
]
|
|
18165
18216
|
},
|
|
18166
18217
|
"id": {
|
|
@@ -18213,7 +18264,7 @@
|
|
|
18213
18264
|
"title": "Created At",
|
|
18214
18265
|
"description": "Timestamp at which the insight workflow was created",
|
|
18215
18266
|
"examples": [
|
|
18216
|
-
"2025-10-
|
|
18267
|
+
"2025-10-28T00:00:00Z"
|
|
18217
18268
|
]
|
|
18218
18269
|
},
|
|
18219
18270
|
"updated_at": {
|
|
@@ -18222,7 +18273,7 @@
|
|
|
18222
18273
|
"title": "Updated At",
|
|
18223
18274
|
"description": "Timestamp of most recent update to the insight workflow",
|
|
18224
18275
|
"examples": [
|
|
18225
|
-
"2025-10-
|
|
18276
|
+
"2025-10-29T00:00:00Z"
|
|
18226
18277
|
]
|
|
18227
18278
|
},
|
|
18228
18279
|
"last_updated_by": {
|
|
@@ -18318,7 +18369,7 @@
|
|
|
18318
18369
|
"title": "Created At",
|
|
18319
18370
|
"description": "Timestamp at which insight upload folder was created",
|
|
18320
18371
|
"examples": [
|
|
18321
|
-
"2025-10-
|
|
18372
|
+
"2025-10-28T00:00:00Z"
|
|
18322
18373
|
]
|
|
18323
18374
|
},
|
|
18324
18375
|
"updated_at": {
|
|
@@ -18327,7 +18378,7 @@
|
|
|
18327
18378
|
"title": "Updated At",
|
|
18328
18379
|
"description": "Timestamp at which insight upload folder was last updated",
|
|
18329
18380
|
"examples": [
|
|
18330
|
-
"2025-10-
|
|
18381
|
+
"2025-10-29T00:00:00Z"
|
|
18331
18382
|
]
|
|
18332
18383
|
},
|
|
18333
18384
|
"last_updated_by": {
|
|
@@ -18562,7 +18613,7 @@
|
|
|
18562
18613
|
"title": "Created At",
|
|
18563
18614
|
"description": "Timestamp at which insight tool result was created",
|
|
18564
18615
|
"examples": [
|
|
18565
|
-
"2025-10-
|
|
18616
|
+
"2025-10-28T00:00:00Z"
|
|
18566
18617
|
]
|
|
18567
18618
|
},
|
|
18568
18619
|
"updated_at": {
|
|
@@ -18571,7 +18622,7 @@
|
|
|
18571
18622
|
"title": "Updated At",
|
|
18572
18623
|
"description": "Timestamp at which insight tool result was last updated",
|
|
18573
18624
|
"examples": [
|
|
18574
|
-
"2025-10-
|
|
18625
|
+
"2025-10-29T00:00:00Z"
|
|
18575
18626
|
]
|
|
18576
18627
|
},
|
|
18577
18628
|
"upload_file_metadata": {
|
|
@@ -18716,7 +18767,7 @@
|
|
|
18716
18767
|
"title": "Start Time",
|
|
18717
18768
|
"description": "Start time of the uploaded file",
|
|
18718
18769
|
"examples": [
|
|
18719
|
-
"2025-10-
|
|
18770
|
+
"2025-10-28T00:00:00Z"
|
|
18720
18771
|
]
|
|
18721
18772
|
},
|
|
18722
18773
|
"end_time": {
|
|
@@ -18732,7 +18783,7 @@
|
|
|
18732
18783
|
"title": "End Time",
|
|
18733
18784
|
"description": "End time of the uploaded file",
|
|
18734
18785
|
"examples": [
|
|
18735
|
-
"2025-10-
|
|
18786
|
+
"2025-10-29T00:00:00Z"
|
|
18736
18787
|
]
|
|
18737
18788
|
},
|
|
18738
18789
|
"error_message": {
|
|
@@ -18787,7 +18838,7 @@
|
|
|
18787
18838
|
"title": "Created At",
|
|
18788
18839
|
"description": "Timestamp at which insight upload file was created",
|
|
18789
18840
|
"examples": [
|
|
18790
|
-
"2025-10-
|
|
18841
|
+
"2025-10-28T00:00:00Z"
|
|
18791
18842
|
]
|
|
18792
18843
|
}
|
|
18793
18844
|
},
|
|
@@ -21960,7 +22011,7 @@
|
|
|
21960
22011
|
"title": "Created At",
|
|
21961
22012
|
"description": "Timestamp of campaign creation",
|
|
21962
22013
|
"examples": [
|
|
21963
|
-
"2025-10-
|
|
22014
|
+
"2025-10-29T00:00:00Z"
|
|
21964
22015
|
]
|
|
21965
22016
|
},
|
|
21966
22017
|
"updated_at": {
|
|
@@ -21969,7 +22020,7 @@
|
|
|
21969
22020
|
"title": "Updated At",
|
|
21970
22021
|
"description": "Timestamp of campaign update",
|
|
21971
22022
|
"examples": [
|
|
21972
|
-
"2025-10-
|
|
22023
|
+
"2025-10-29T00:00:00Z"
|
|
21973
22024
|
]
|
|
21974
22025
|
},
|
|
21975
22026
|
"last_updated_by": {
|
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.7-rc.
|
|
65
|
-
genVersion: "2.731.
|
|
66
|
-
userAgent: "speakeasy-sdk/typescript 1.0.7-rc.
|
|
64
|
+
sdkVersion: "1.0.7-rc.8",
|
|
65
|
+
genVersion: "2.731.6",
|
|
66
|
+
userAgent: "speakeasy-sdk/typescript 1.0.7-rc.8 2.731.6 0.0.2 syllable-sdk",
|
|
67
67
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -6,55 +6,24 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
import {
|
|
10
|
+
DirectoryExtensionNumber,
|
|
11
|
+
DirectoryExtensionNumber$inboundSchema,
|
|
12
|
+
DirectoryExtensionNumber$Outbound,
|
|
13
|
+
DirectoryExtensionNumber$outboundSchema,
|
|
14
|
+
} from "./directoryextensionnumber.js";
|
|
11
15
|
|
|
12
16
|
export type DirectoryExtension = {
|
|
17
|
+
/**
|
|
18
|
+
* Directory extension name
|
|
19
|
+
*/
|
|
13
20
|
name: string;
|
|
14
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Directory extension numbers.
|
|
23
|
+
*/
|
|
24
|
+
numbers?: Array<DirectoryExtensionNumber> | null | undefined;
|
|
15
25
|
};
|
|
16
26
|
|
|
17
|
-
/** @internal */
|
|
18
|
-
export const Numbers$inboundSchema: z.ZodType<Numbers, z.ZodTypeDef, unknown> =
|
|
19
|
-
z.object({});
|
|
20
|
-
|
|
21
|
-
/** @internal */
|
|
22
|
-
export type Numbers$Outbound = {};
|
|
23
|
-
|
|
24
|
-
/** @internal */
|
|
25
|
-
export const Numbers$outboundSchema: z.ZodType<
|
|
26
|
-
Numbers$Outbound,
|
|
27
|
-
z.ZodTypeDef,
|
|
28
|
-
Numbers
|
|
29
|
-
> = z.object({});
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* @internal
|
|
33
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
34
|
-
*/
|
|
35
|
-
export namespace Numbers$ {
|
|
36
|
-
/** @deprecated use `Numbers$inboundSchema` instead. */
|
|
37
|
-
export const inboundSchema = Numbers$inboundSchema;
|
|
38
|
-
/** @deprecated use `Numbers$outboundSchema` instead. */
|
|
39
|
-
export const outboundSchema = Numbers$outboundSchema;
|
|
40
|
-
/** @deprecated use `Numbers$Outbound` instead. */
|
|
41
|
-
export type Outbound = Numbers$Outbound;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export function numbersToJSON(numbers: Numbers): string {
|
|
45
|
-
return JSON.stringify(Numbers$outboundSchema.parse(numbers));
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export function numbersFromJSON(
|
|
49
|
-
jsonString: string,
|
|
50
|
-
): SafeParseResult<Numbers, SDKValidationError> {
|
|
51
|
-
return safeParse(
|
|
52
|
-
jsonString,
|
|
53
|
-
(x) => Numbers$inboundSchema.parse(JSON.parse(x)),
|
|
54
|
-
`Failed to parse 'Numbers' from JSON`,
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
27
|
/** @internal */
|
|
59
28
|
export const DirectoryExtension$inboundSchema: z.ZodType<
|
|
60
29
|
DirectoryExtension,
|
|
@@ -62,13 +31,14 @@ export const DirectoryExtension$inboundSchema: z.ZodType<
|
|
|
62
31
|
unknown
|
|
63
32
|
> = z.object({
|
|
64
33
|
name: z.string(),
|
|
65
|
-
numbers: z.nullable(z.array(
|
|
34
|
+
numbers: z.nullable(z.array(DirectoryExtensionNumber$inboundSchema))
|
|
35
|
+
.optional(),
|
|
66
36
|
});
|
|
67
37
|
|
|
68
38
|
/** @internal */
|
|
69
39
|
export type DirectoryExtension$Outbound = {
|
|
70
40
|
name: string;
|
|
71
|
-
numbers?: Array<
|
|
41
|
+
numbers?: Array<DirectoryExtensionNumber$Outbound> | null | undefined;
|
|
72
42
|
};
|
|
73
43
|
|
|
74
44
|
/** @internal */
|
|
@@ -78,7 +48,8 @@ export const DirectoryExtension$outboundSchema: z.ZodType<
|
|
|
78
48
|
DirectoryExtension
|
|
79
49
|
> = z.object({
|
|
80
50
|
name: z.string(),
|
|
81
|
-
numbers: z.nullable(z.array(
|
|
51
|
+
numbers: z.nullable(z.array(DirectoryExtensionNumber$outboundSchema))
|
|
52
|
+
.optional(),
|
|
82
53
|
});
|
|
83
54
|
|
|
84
55
|
/**
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type DirectoryExtensionNumber = {
|
|
11
|
+
/**
|
|
12
|
+
* Phone number
|
|
13
|
+
*/
|
|
14
|
+
number: string;
|
|
15
|
+
/**
|
|
16
|
+
* Directory extension number rules. To include a language rule, use key "language" with a language code value.
|
|
17
|
+
*/
|
|
18
|
+
rules?: Array<{ [k: string]: string }> | null | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const DirectoryExtensionNumber$inboundSchema: z.ZodType<
|
|
23
|
+
DirectoryExtensionNumber,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
number: z.string(),
|
|
28
|
+
rules: z.nullable(z.array(z.record(z.string()))).optional(),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type DirectoryExtensionNumber$Outbound = {
|
|
33
|
+
number: string;
|
|
34
|
+
rules?: Array<{ [k: string]: string }> | null | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const DirectoryExtensionNumber$outboundSchema: z.ZodType<
|
|
39
|
+
DirectoryExtensionNumber$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
DirectoryExtensionNumber
|
|
42
|
+
> = z.object({
|
|
43
|
+
number: z.string(),
|
|
44
|
+
rules: z.nullable(z.array(z.record(z.string()))).optional(),
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @internal
|
|
49
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
+
*/
|
|
51
|
+
export namespace DirectoryExtensionNumber$ {
|
|
52
|
+
/** @deprecated use `DirectoryExtensionNumber$inboundSchema` instead. */
|
|
53
|
+
export const inboundSchema = DirectoryExtensionNumber$inboundSchema;
|
|
54
|
+
/** @deprecated use `DirectoryExtensionNumber$outboundSchema` instead. */
|
|
55
|
+
export const outboundSchema = DirectoryExtensionNumber$outboundSchema;
|
|
56
|
+
/** @deprecated use `DirectoryExtensionNumber$Outbound` instead. */
|
|
57
|
+
export type Outbound = DirectoryExtensionNumber$Outbound;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function directoryExtensionNumberToJSON(
|
|
61
|
+
directoryExtensionNumber: DirectoryExtensionNumber,
|
|
62
|
+
): string {
|
|
63
|
+
return JSON.stringify(
|
|
64
|
+
DirectoryExtensionNumber$outboundSchema.parse(directoryExtensionNumber),
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function directoryExtensionNumberFromJSON(
|
|
69
|
+
jsonString: string,
|
|
70
|
+
): SafeParseResult<DirectoryExtensionNumber, SDKValidationError> {
|
|
71
|
+
return safeParse(
|
|
72
|
+
jsonString,
|
|
73
|
+
(x) => DirectoryExtensionNumber$inboundSchema.parse(JSON.parse(x)),
|
|
74
|
+
`Failed to parse 'DirectoryExtensionNumber' from JSON`,
|
|
75
|
+
);
|
|
76
|
+
}
|
|
@@ -43,7 +43,7 @@ export type DirectoryMember = {
|
|
|
43
43
|
/**
|
|
44
44
|
* Timestamp of most recent update
|
|
45
45
|
*/
|
|
46
|
-
updatedAt
|
|
46
|
+
updatedAt?: Date | null | undefined;
|
|
47
47
|
/**
|
|
48
48
|
* Email of the user who last updated the directory member
|
|
49
49
|
*/
|
|
@@ -105,7 +105,9 @@ export const DirectoryMember$inboundSchema: z.ZodType<
|
|
|
105
105
|
extensions: z.nullable(z.array(DirectoryExtension$inboundSchema)).optional(),
|
|
106
106
|
contact_tags: z.nullable(z.lazy(() => ContactTags$inboundSchema)).optional(),
|
|
107
107
|
id: z.nullable(z.number().int()).optional(),
|
|
108
|
-
updated_at: z.
|
|
108
|
+
updated_at: z.nullable(
|
|
109
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
110
|
+
).optional(),
|
|
109
111
|
last_updated_by: z.nullable(z.string()).optional(),
|
|
110
112
|
}).transform((v) => {
|
|
111
113
|
return remap$(v, {
|
|
@@ -122,7 +124,7 @@ export type DirectoryMember$Outbound = {
|
|
|
122
124
|
extensions?: Array<DirectoryExtension$Outbound> | null | undefined;
|
|
123
125
|
contact_tags?: ContactTags$Outbound | null | undefined;
|
|
124
126
|
id?: number | null | undefined;
|
|
125
|
-
updated_at
|
|
127
|
+
updated_at?: string | null | undefined;
|
|
126
128
|
last_updated_by?: string | null | undefined;
|
|
127
129
|
};
|
|
128
130
|
|
|
@@ -137,7 +139,7 @@ export const DirectoryMember$outboundSchema: z.ZodType<
|
|
|
137
139
|
extensions: z.nullable(z.array(DirectoryExtension$outboundSchema)).optional(),
|
|
138
140
|
contactTags: z.nullable(z.lazy(() => ContactTags$outboundSchema)).optional(),
|
|
139
141
|
id: z.nullable(z.number().int()).optional(),
|
|
140
|
-
updatedAt: z.date().transform(v => v.toISOString()),
|
|
142
|
+
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
141
143
|
lastUpdatedBy: z.nullable(z.string()).optional(),
|
|
142
144
|
}).transform((v) => {
|
|
143
145
|
return remap$(v, {
|
|
@@ -67,6 +67,7 @@ export * from "./dialogrole.js";
|
|
|
67
67
|
export * from "./dialogtoolcall.js";
|
|
68
68
|
export * from "./dictionarymetadata.js";
|
|
69
69
|
export * from "./directoryextension.js";
|
|
70
|
+
export * from "./directoryextensionnumber.js";
|
|
70
71
|
export * from "./directorymember.js";
|
|
71
72
|
export * from "./directorymembercreate.js";
|
|
72
73
|
export * from "./directorymemberproperties.js";
|