syllable-sdk 1.0.13-rc.1 → 1.0.13-rc.3
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 +5 -36
- package/bin/mcp-server.js.map +10 -11
- 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/custommessagecreaterequest.d.ts +0 -6
- package/models/components/custommessagecreaterequest.d.ts.map +1 -1
- package/models/components/custommessagecreaterequest.js +0 -3
- package/models/components/custommessagecreaterequest.js.map +1 -1
- package/models/components/custommessageresponse.d.ts +0 -6
- package/models/components/custommessageresponse.d.ts.map +1 -1
- package/models/components/custommessageresponse.js +0 -3
- package/models/components/custommessageresponse.js.map +1 -1
- package/models/components/custommessageupdaterequest.d.ts +0 -6
- package/models/components/custommessageupdaterequest.d.ts.map +1 -1
- package/models/components/custommessageupdaterequest.js +0 -3
- package/models/components/custommessageupdaterequest.js.map +1 -1
- package/models/components/index.d.ts +0 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -1
- package/models/components/index.js.map +1 -1
- package/openapi.json +33 -85
- 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/custommessagecreaterequest.ts +0 -13
- package/src/models/components/custommessageresponse.ts +0 -13
- package/src/models/components/custommessageupdaterequest.ts +0 -13
- package/src/models/components/index.ts +0 -1
- package/models/components/custommessageconfig.d.ts +0 -23
- package/models/components/custommessageconfig.d.ts.map +0 -1
- package/models/components/custommessageconfig.js +0 -67
- package/models/components/custommessageconfig.js.map +0 -1
- package/src/models/components/custommessageconfig.ts +0 -68
package/openapi.json
CHANGED
|
@@ -13781,7 +13781,7 @@
|
|
|
13781
13781
|
"title": "Batch Id",
|
|
13782
13782
|
"description": "Unique ID for conversation batch",
|
|
13783
13783
|
"examples": [
|
|
13784
|
-
"
|
|
13784
|
+
"20251120.9"
|
|
13785
13785
|
]
|
|
13786
13786
|
},
|
|
13787
13787
|
"campaign_id": {
|
|
@@ -13805,7 +13805,7 @@
|
|
|
13805
13805
|
"title": "Expires On",
|
|
13806
13806
|
"description": "Timestamp of batch expiration",
|
|
13807
13807
|
"examples": [
|
|
13808
|
-
"2025-11-
|
|
13808
|
+
"2025-11-21T00:00:00Z"
|
|
13809
13809
|
]
|
|
13810
13810
|
},
|
|
13811
13811
|
"paused": {
|
|
@@ -13858,7 +13858,7 @@
|
|
|
13858
13858
|
"title": "Created At",
|
|
13859
13859
|
"description": "Timestamp of batch creation",
|
|
13860
13860
|
"examples": [
|
|
13861
|
-
"2025-11-
|
|
13861
|
+
"2025-11-20T00:00:00Z"
|
|
13862
13862
|
]
|
|
13863
13863
|
},
|
|
13864
13864
|
"deleted_at": {
|
|
@@ -13874,7 +13874,7 @@
|
|
|
13874
13874
|
"title": "Deleted At",
|
|
13875
13875
|
"description": "Timestamp of batch deletion",
|
|
13876
13876
|
"examples": [
|
|
13877
|
-
"2025-11-
|
|
13877
|
+
"2025-11-20T00:00:00Z"
|
|
13878
13878
|
]
|
|
13879
13879
|
},
|
|
13880
13880
|
"deleted_reason": {
|
|
@@ -13905,7 +13905,7 @@
|
|
|
13905
13905
|
"title": "Last Updated At",
|
|
13906
13906
|
"description": "Timestamp of last change to batch",
|
|
13907
13907
|
"examples": [
|
|
13908
|
-
"2025-11-
|
|
13908
|
+
"2025-11-20T00:00:00Z"
|
|
13909
13909
|
]
|
|
13910
13910
|
},
|
|
13911
13911
|
"last_updated_by": {
|
|
@@ -14661,7 +14661,7 @@
|
|
|
14661
14661
|
"title": "Batch Id",
|
|
14662
14662
|
"description": "Unique ID for conversation batch",
|
|
14663
14663
|
"examples": [
|
|
14664
|
-
"
|
|
14664
|
+
"20251120.9"
|
|
14665
14665
|
]
|
|
14666
14666
|
},
|
|
14667
14667
|
"campaign_id": {
|
|
@@ -14685,7 +14685,7 @@
|
|
|
14685
14685
|
"title": "Expires On",
|
|
14686
14686
|
"description": "Timestamp of batch expiration",
|
|
14687
14687
|
"examples": [
|
|
14688
|
-
"2025-11-
|
|
14688
|
+
"2025-11-21T00:00:00Z"
|
|
14689
14689
|
]
|
|
14690
14690
|
},
|
|
14691
14691
|
"paused": {
|
|
@@ -14738,7 +14738,7 @@
|
|
|
14738
14738
|
"title": "Created At",
|
|
14739
14739
|
"description": "Timestamp of batch creation",
|
|
14740
14740
|
"examples": [
|
|
14741
|
-
"2025-11-
|
|
14741
|
+
"2025-11-20T00:00:00Z"
|
|
14742
14742
|
]
|
|
14743
14743
|
},
|
|
14744
14744
|
"deleted_at": {
|
|
@@ -14754,7 +14754,7 @@
|
|
|
14754
14754
|
"title": "Deleted At",
|
|
14755
14755
|
"description": "Timestamp of batch deletion",
|
|
14756
14756
|
"examples": [
|
|
14757
|
-
"2025-11-
|
|
14757
|
+
"2025-11-20T00:00:00Z"
|
|
14758
14758
|
]
|
|
14759
14759
|
},
|
|
14760
14760
|
"deleted_reason": {
|
|
@@ -14785,7 +14785,7 @@
|
|
|
14785
14785
|
"title": "Last Updated At",
|
|
14786
14786
|
"description": "Timestamp of last change to batch",
|
|
14787
14787
|
"examples": [
|
|
14788
|
-
"2025-11-
|
|
14788
|
+
"2025-11-20T00:00:00Z"
|
|
14789
14789
|
]
|
|
14790
14790
|
},
|
|
14791
14791
|
"last_updated_by": {
|
|
@@ -14828,7 +14828,7 @@
|
|
|
14828
14828
|
"title": "Batch Id",
|
|
14829
14829
|
"description": "Unique ID for conversation batch",
|
|
14830
14830
|
"examples": [
|
|
14831
|
-
"
|
|
14831
|
+
"20251120.9"
|
|
14832
14832
|
]
|
|
14833
14833
|
},
|
|
14834
14834
|
"campaign_id": {
|
|
@@ -14852,7 +14852,7 @@
|
|
|
14852
14852
|
"title": "Expires On",
|
|
14853
14853
|
"description": "Timestamp of batch expiration",
|
|
14854
14854
|
"examples": [
|
|
14855
|
-
"2025-11-
|
|
14855
|
+
"2025-11-21T00:00:00Z"
|
|
14856
14856
|
]
|
|
14857
14857
|
},
|
|
14858
14858
|
"paused": {
|
|
@@ -15001,7 +15001,7 @@
|
|
|
15001
15001
|
"title": "Created At",
|
|
15002
15002
|
"description": "Timestamp of request creation",
|
|
15003
15003
|
"examples": [
|
|
15004
|
-
"2025-11-
|
|
15004
|
+
"2025-11-19T00:00:00Z"
|
|
15005
15005
|
]
|
|
15006
15006
|
},
|
|
15007
15007
|
"sent_at": {
|
|
@@ -15017,7 +15017,7 @@
|
|
|
15017
15017
|
"title": "Sent At",
|
|
15018
15018
|
"description": "Timestamp at which request was sent",
|
|
15019
15019
|
"examples": [
|
|
15020
|
-
"2025-11-
|
|
15020
|
+
"2025-11-20T00:00:00Z"
|
|
15021
15021
|
]
|
|
15022
15022
|
},
|
|
15023
15023
|
"attempt_count": {
|
|
@@ -15338,22 +15338,6 @@
|
|
|
15338
15338
|
],
|
|
15339
15339
|
"title": "CreateTakeoutResponse"
|
|
15340
15340
|
},
|
|
15341
|
-
"CustomMessageConfig": {
|
|
15342
|
-
"properties": {
|
|
15343
|
-
"user_initiated_non_voice_session_behavior": {
|
|
15344
|
-
"type": "string",
|
|
15345
|
-
"title": "User Initiated Non Voice Session Behavior",
|
|
15346
|
-
"description": "The behavior of an agent assigned this message at the beginning of a user-initiated non-voice session (e.g., SMS, email, etc.). 'respond_only' will skip the message and respond to the user's message. 'greet_and_respond' will deliver the message and respond to the user's message. 'greet_only' will deliver the message and not respond to the user's message. Defaults to 'greet_only'.",
|
|
15347
|
-
"default": "greet_only",
|
|
15348
|
-
"examples": [
|
|
15349
|
-
"greet_only"
|
|
15350
|
-
]
|
|
15351
|
-
}
|
|
15352
|
-
},
|
|
15353
|
-
"type": "object",
|
|
15354
|
-
"title": "CustomMessageConfig",
|
|
15355
|
-
"description": "Additional configuration options for the message."
|
|
15356
|
-
},
|
|
15357
15341
|
"CustomMessageCreateRequest": {
|
|
15358
15342
|
"properties": {
|
|
15359
15343
|
"name": {
|
|
@@ -15419,18 +15403,6 @@
|
|
|
15419
15403
|
]
|
|
15420
15404
|
]
|
|
15421
15405
|
},
|
|
15422
|
-
"config": {
|
|
15423
|
-
"$ref": "#/components/schemas/CustomMessageConfig",
|
|
15424
|
-
"description": "Additional configuration options for the message",
|
|
15425
|
-
"default": {
|
|
15426
|
-
"user_initiated_non_voice_session_behavior": "greet_only"
|
|
15427
|
-
},
|
|
15428
|
-
"examples": [
|
|
15429
|
-
{
|
|
15430
|
-
"user_initiated_non_voice_session_behavior": "greet_only"
|
|
15431
|
-
}
|
|
15432
|
-
]
|
|
15433
|
-
},
|
|
15434
15406
|
"type": {
|
|
15435
15407
|
"type": "string",
|
|
15436
15408
|
"title": "Type",
|
|
@@ -15526,18 +15498,6 @@
|
|
|
15526
15498
|
]
|
|
15527
15499
|
]
|
|
15528
15500
|
},
|
|
15529
|
-
"config": {
|
|
15530
|
-
"$ref": "#/components/schemas/CustomMessageConfig",
|
|
15531
|
-
"description": "Additional configuration options for the message",
|
|
15532
|
-
"default": {
|
|
15533
|
-
"user_initiated_non_voice_session_behavior": "greet_only"
|
|
15534
|
-
},
|
|
15535
|
-
"examples": [
|
|
15536
|
-
{
|
|
15537
|
-
"user_initiated_non_voice_session_behavior": "greet_only"
|
|
15538
|
-
}
|
|
15539
|
-
]
|
|
15540
|
-
},
|
|
15541
15501
|
"id": {
|
|
15542
15502
|
"type": "integer",
|
|
15543
15503
|
"title": "Id",
|
|
@@ -15772,18 +15732,6 @@
|
|
|
15772
15732
|
]
|
|
15773
15733
|
]
|
|
15774
15734
|
},
|
|
15775
|
-
"config": {
|
|
15776
|
-
"$ref": "#/components/schemas/CustomMessageConfig",
|
|
15777
|
-
"description": "Additional configuration options for the message",
|
|
15778
|
-
"default": {
|
|
15779
|
-
"user_initiated_non_voice_session_behavior": "greet_only"
|
|
15780
|
-
},
|
|
15781
|
-
"examples": [
|
|
15782
|
-
{
|
|
15783
|
-
"user_initiated_non_voice_session_behavior": "greet_only"
|
|
15784
|
-
}
|
|
15785
|
-
]
|
|
15786
|
-
},
|
|
15787
15735
|
"id": {
|
|
15788
15736
|
"type": "integer",
|
|
15789
15737
|
"title": "Id",
|
|
@@ -17325,7 +17273,7 @@
|
|
|
17325
17273
|
"title": "Created At",
|
|
17326
17274
|
"description": "Timestamp at which insight upload folder was created",
|
|
17327
17275
|
"examples": [
|
|
17328
|
-
"2025-11-
|
|
17276
|
+
"2025-11-19T00:00:00Z"
|
|
17329
17277
|
]
|
|
17330
17278
|
},
|
|
17331
17279
|
"updated_at": {
|
|
@@ -17334,7 +17282,7 @@
|
|
|
17334
17282
|
"title": "Updated At",
|
|
17335
17283
|
"description": "Timestamp at which insight upload folder was last updated",
|
|
17336
17284
|
"examples": [
|
|
17337
|
-
"2025-11-
|
|
17285
|
+
"2025-11-20T00:00:00Z"
|
|
17338
17286
|
]
|
|
17339
17287
|
},
|
|
17340
17288
|
"last_updated_by": {
|
|
@@ -18020,7 +17968,7 @@
|
|
|
18020
17968
|
"title": "Created At",
|
|
18021
17969
|
"description": "Timestamp of at which insight tool configuration was created",
|
|
18022
17970
|
"examples": [
|
|
18023
|
-
"2025-11-
|
|
17971
|
+
"2025-11-19T00:00:00Z"
|
|
18024
17972
|
]
|
|
18025
17973
|
},
|
|
18026
17974
|
"updated_at": {
|
|
@@ -18029,7 +17977,7 @@
|
|
|
18029
17977
|
"title": "Updated At",
|
|
18030
17978
|
"description": "Timestamp at which insight tool configuration was last updated",
|
|
18031
17979
|
"examples": [
|
|
18032
|
-
"2025-11-
|
|
17980
|
+
"2025-11-20T00:00:00Z"
|
|
18033
17981
|
]
|
|
18034
17982
|
},
|
|
18035
17983
|
"last_updated_by": {
|
|
@@ -18410,7 +18358,7 @@
|
|
|
18410
18358
|
"title": "Start Datetime",
|
|
18411
18359
|
"description": "Target session timestamp the workflow (backfill) should start. An empty value indicates start on activation - live sessions only",
|
|
18412
18360
|
"examples": [
|
|
18413
|
-
"2025-11-
|
|
18361
|
+
"2025-11-19T00:00:00Z"
|
|
18414
18362
|
]
|
|
18415
18363
|
},
|
|
18416
18364
|
"end_datetime": {
|
|
@@ -18426,7 +18374,7 @@
|
|
|
18426
18374
|
"title": "End Datetime",
|
|
18427
18375
|
"description": "Target session timestamp the workflow (backfill) should end. An empty value indicates no end, i.e., include live sessions until deactivation",
|
|
18428
18376
|
"examples": [
|
|
18429
|
-
"2025-11-
|
|
18377
|
+
"2025-11-20T00:00:00Z"
|
|
18430
18378
|
]
|
|
18431
18379
|
}
|
|
18432
18380
|
},
|
|
@@ -18501,7 +18449,7 @@
|
|
|
18501
18449
|
"title": "Start Datetime",
|
|
18502
18450
|
"description": "Target session timestamp the workflow (backfill) should start. An empty value indicates start on activation - live sessions only",
|
|
18503
18451
|
"examples": [
|
|
18504
|
-
"2025-11-
|
|
18452
|
+
"2025-11-19T00:00:00Z"
|
|
18505
18453
|
]
|
|
18506
18454
|
},
|
|
18507
18455
|
"end_datetime": {
|
|
@@ -18517,7 +18465,7 @@
|
|
|
18517
18465
|
"title": "End Datetime",
|
|
18518
18466
|
"description": "Target session timestamp the workflow (backfill) should end. An empty value indicates no end, i.e., include live sessions until deactivation",
|
|
18519
18467
|
"examples": [
|
|
18520
|
-
"2025-11-
|
|
18468
|
+
"2025-11-20T00:00:00Z"
|
|
18521
18469
|
]
|
|
18522
18470
|
},
|
|
18523
18471
|
"id": {
|
|
@@ -18570,7 +18518,7 @@
|
|
|
18570
18518
|
"title": "Created At",
|
|
18571
18519
|
"description": "Timestamp at which the insight workflow was created",
|
|
18572
18520
|
"examples": [
|
|
18573
|
-
"2025-11-
|
|
18521
|
+
"2025-11-19T00:00:00Z"
|
|
18574
18522
|
]
|
|
18575
18523
|
},
|
|
18576
18524
|
"updated_at": {
|
|
@@ -18579,7 +18527,7 @@
|
|
|
18579
18527
|
"title": "Updated At",
|
|
18580
18528
|
"description": "Timestamp of most recent update to the insight workflow",
|
|
18581
18529
|
"examples": [
|
|
18582
|
-
"2025-11-
|
|
18530
|
+
"2025-11-20T00:00:00Z"
|
|
18583
18531
|
]
|
|
18584
18532
|
},
|
|
18585
18533
|
"last_updated_by": {
|
|
@@ -18675,7 +18623,7 @@
|
|
|
18675
18623
|
"title": "Created At",
|
|
18676
18624
|
"description": "Timestamp at which insight upload folder was created",
|
|
18677
18625
|
"examples": [
|
|
18678
|
-
"2025-11-
|
|
18626
|
+
"2025-11-19T00:00:00Z"
|
|
18679
18627
|
]
|
|
18680
18628
|
},
|
|
18681
18629
|
"updated_at": {
|
|
@@ -18684,7 +18632,7 @@
|
|
|
18684
18632
|
"title": "Updated At",
|
|
18685
18633
|
"description": "Timestamp at which insight upload folder was last updated",
|
|
18686
18634
|
"examples": [
|
|
18687
|
-
"2025-11-
|
|
18635
|
+
"2025-11-20T00:00:00Z"
|
|
18688
18636
|
]
|
|
18689
18637
|
},
|
|
18690
18638
|
"last_updated_by": {
|
|
@@ -18919,7 +18867,7 @@
|
|
|
18919
18867
|
"title": "Created At",
|
|
18920
18868
|
"description": "Timestamp at which insight tool result was created",
|
|
18921
18869
|
"examples": [
|
|
18922
|
-
"2025-11-
|
|
18870
|
+
"2025-11-19T00:00:00Z"
|
|
18923
18871
|
]
|
|
18924
18872
|
},
|
|
18925
18873
|
"updated_at": {
|
|
@@ -18928,7 +18876,7 @@
|
|
|
18928
18876
|
"title": "Updated At",
|
|
18929
18877
|
"description": "Timestamp at which insight tool result was last updated",
|
|
18930
18878
|
"examples": [
|
|
18931
|
-
"2025-11-
|
|
18879
|
+
"2025-11-20T00:00:00Z"
|
|
18932
18880
|
]
|
|
18933
18881
|
},
|
|
18934
18882
|
"upload_file_metadata": {
|
|
@@ -19073,7 +19021,7 @@
|
|
|
19073
19021
|
"title": "Start Time",
|
|
19074
19022
|
"description": "Start time of the uploaded file",
|
|
19075
19023
|
"examples": [
|
|
19076
|
-
"2025-11-
|
|
19024
|
+
"2025-11-19T00:00:00Z"
|
|
19077
19025
|
]
|
|
19078
19026
|
},
|
|
19079
19027
|
"end_time": {
|
|
@@ -19089,7 +19037,7 @@
|
|
|
19089
19037
|
"title": "End Time",
|
|
19090
19038
|
"description": "End time of the uploaded file",
|
|
19091
19039
|
"examples": [
|
|
19092
|
-
"2025-11-
|
|
19040
|
+
"2025-11-20T00:00:00Z"
|
|
19093
19041
|
]
|
|
19094
19042
|
},
|
|
19095
19043
|
"error_message": {
|
|
@@ -19144,7 +19092,7 @@
|
|
|
19144
19092
|
"title": "Created At",
|
|
19145
19093
|
"description": "Timestamp at which insight upload file was created",
|
|
19146
19094
|
"examples": [
|
|
19147
|
-
"2025-11-
|
|
19095
|
+
"2025-11-19T00:00:00Z"
|
|
19148
19096
|
]
|
|
19149
19097
|
}
|
|
19150
19098
|
},
|
|
@@ -22317,7 +22265,7 @@
|
|
|
22317
22265
|
"title": "Created At",
|
|
22318
22266
|
"description": "Timestamp of campaign creation",
|
|
22319
22267
|
"examples": [
|
|
22320
|
-
"2025-11-
|
|
22268
|
+
"2025-11-20T00:00:00Z"
|
|
22321
22269
|
]
|
|
22322
22270
|
},
|
|
22323
22271
|
"updated_at": {
|
|
@@ -22326,7 +22274,7 @@
|
|
|
22326
22274
|
"title": "Updated At",
|
|
22327
22275
|
"description": "Timestamp of campaign update",
|
|
22328
22276
|
"examples": [
|
|
22329
|
-
"2025-11-
|
|
22277
|
+
"2025-11-20T00:00:00Z"
|
|
22330
22278
|
]
|
|
22331
22279
|
},
|
|
22332
22280
|
"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.13-rc.
|
|
64
|
+
sdkVersion: "1.0.13-rc.3",
|
|
65
65
|
genVersion: "2.755.9",
|
|
66
|
-
userAgent: "speakeasy-sdk/typescript 1.0.13-rc.
|
|
66
|
+
userAgent: "speakeasy-sdk/typescript 1.0.13-rc.3 2.755.9 0.0.2 syllable-sdk",
|
|
67
67
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -6,12 +6,6 @@ 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
|
-
import {
|
|
10
|
-
CustomMessageConfig,
|
|
11
|
-
CustomMessageConfig$inboundSchema,
|
|
12
|
-
CustomMessageConfig$Outbound,
|
|
13
|
-
CustomMessageConfig$outboundSchema,
|
|
14
|
-
} from "./custommessageconfig.js";
|
|
15
9
|
import {
|
|
16
10
|
CustomMessageRule,
|
|
17
11
|
CustomMessageRule$inboundSchema,
|
|
@@ -39,10 +33,6 @@ export type CustomMessageCreateRequest = {
|
|
|
39
33
|
* Rules for time-specific message variants
|
|
40
34
|
*/
|
|
41
35
|
rules?: Array<CustomMessageRule> | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* Additional configuration options for the message.
|
|
44
|
-
*/
|
|
45
|
-
config?: CustomMessageConfig | undefined;
|
|
46
36
|
/**
|
|
47
37
|
* Type of the custom message (must be "greeting" for now)
|
|
48
38
|
*/
|
|
@@ -59,7 +49,6 @@ export const CustomMessageCreateRequest$inboundSchema: z.ZodType<
|
|
|
59
49
|
text: z.string(),
|
|
60
50
|
label: z.nullable(z.string()).optional(),
|
|
61
51
|
rules: z.array(CustomMessageRule$inboundSchema).optional(),
|
|
62
|
-
config: CustomMessageConfig$inboundSchema.optional(),
|
|
63
52
|
type: z.string().default("greeting"),
|
|
64
53
|
});
|
|
65
54
|
/** @internal */
|
|
@@ -68,7 +57,6 @@ export type CustomMessageCreateRequest$Outbound = {
|
|
|
68
57
|
text: string;
|
|
69
58
|
label?: string | null | undefined;
|
|
70
59
|
rules?: Array<CustomMessageRule$Outbound> | undefined;
|
|
71
|
-
config?: CustomMessageConfig$Outbound | undefined;
|
|
72
60
|
type: string;
|
|
73
61
|
};
|
|
74
62
|
|
|
@@ -82,7 +70,6 @@ export const CustomMessageCreateRequest$outboundSchema: z.ZodType<
|
|
|
82
70
|
text: z.string(),
|
|
83
71
|
label: z.nullable(z.string()).optional(),
|
|
84
72
|
rules: z.array(CustomMessageRule$outboundSchema).optional(),
|
|
85
|
-
config: CustomMessageConfig$outboundSchema.optional(),
|
|
86
73
|
type: z.string().default("greeting"),
|
|
87
74
|
});
|
|
88
75
|
|
|
@@ -7,12 +7,6 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import {
|
|
11
|
-
CustomMessageConfig,
|
|
12
|
-
CustomMessageConfig$inboundSchema,
|
|
13
|
-
CustomMessageConfig$Outbound,
|
|
14
|
-
CustomMessageConfig$outboundSchema,
|
|
15
|
-
} from "./custommessageconfig.js";
|
|
16
10
|
import {
|
|
17
11
|
CustomMessageRule,
|
|
18
12
|
CustomMessageRule$inboundSchema,
|
|
@@ -47,10 +41,6 @@ export type CustomMessageResponse = {
|
|
|
47
41
|
* Rules for time-specific message variants
|
|
48
42
|
*/
|
|
49
43
|
rules?: Array<CustomMessageRule> | undefined;
|
|
50
|
-
/**
|
|
51
|
-
* Additional configuration options for the message.
|
|
52
|
-
*/
|
|
53
|
-
config?: CustomMessageConfig | undefined;
|
|
54
44
|
/**
|
|
55
45
|
* The ID of the custom message
|
|
56
46
|
*/
|
|
@@ -83,7 +73,6 @@ export const CustomMessageResponse$inboundSchema: z.ZodType<
|
|
|
83
73
|
text: z.string(),
|
|
84
74
|
label: z.nullable(z.string()).optional(),
|
|
85
75
|
rules: z.array(CustomMessageRule$inboundSchema).optional(),
|
|
86
|
-
config: CustomMessageConfig$inboundSchema.optional(),
|
|
87
76
|
id: z.number().int(),
|
|
88
77
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
89
78
|
agent_count: z.nullable(z.number().int()).optional(),
|
|
@@ -102,7 +91,6 @@ export type CustomMessageResponse$Outbound = {
|
|
|
102
91
|
text: string;
|
|
103
92
|
label?: string | null | undefined;
|
|
104
93
|
rules?: Array<CustomMessageRule$Outbound> | undefined;
|
|
105
|
-
config?: CustomMessageConfig$Outbound | undefined;
|
|
106
94
|
id: number;
|
|
107
95
|
updated_at: string;
|
|
108
96
|
agent_count?: number | null | undefined;
|
|
@@ -120,7 +108,6 @@ export const CustomMessageResponse$outboundSchema: z.ZodType<
|
|
|
120
108
|
text: z.string(),
|
|
121
109
|
label: z.nullable(z.string()).optional(),
|
|
122
110
|
rules: z.array(CustomMessageRule$outboundSchema).optional(),
|
|
123
|
-
config: CustomMessageConfig$outboundSchema.optional(),
|
|
124
111
|
id: z.number().int(),
|
|
125
112
|
updatedAt: z.date().transform(v => v.toISOString()),
|
|
126
113
|
agentCount: z.nullable(z.number().int()).optional(),
|
|
@@ -6,12 +6,6 @@ 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
|
-
import {
|
|
10
|
-
CustomMessageConfig,
|
|
11
|
-
CustomMessageConfig$inboundSchema,
|
|
12
|
-
CustomMessageConfig$Outbound,
|
|
13
|
-
CustomMessageConfig$outboundSchema,
|
|
14
|
-
} from "./custommessageconfig.js";
|
|
15
9
|
import {
|
|
16
10
|
CustomMessageRule,
|
|
17
11
|
CustomMessageRule$inboundSchema,
|
|
@@ -39,10 +33,6 @@ export type CustomMessageUpdateRequest = {
|
|
|
39
33
|
* Rules for time-specific message variants
|
|
40
34
|
*/
|
|
41
35
|
rules?: Array<CustomMessageRule> | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* Additional configuration options for the message.
|
|
44
|
-
*/
|
|
45
|
-
config?: CustomMessageConfig | undefined;
|
|
46
36
|
/**
|
|
47
37
|
* The ID of the custom message
|
|
48
38
|
*/
|
|
@@ -63,7 +53,6 @@ export const CustomMessageUpdateRequest$inboundSchema: z.ZodType<
|
|
|
63
53
|
text: z.string(),
|
|
64
54
|
label: z.nullable(z.string()).optional(),
|
|
65
55
|
rules: z.array(CustomMessageRule$inboundSchema).optional(),
|
|
66
|
-
config: CustomMessageConfig$inboundSchema.optional(),
|
|
67
56
|
id: z.number().int(),
|
|
68
57
|
type: z.string().default("greeting"),
|
|
69
58
|
});
|
|
@@ -73,7 +62,6 @@ export type CustomMessageUpdateRequest$Outbound = {
|
|
|
73
62
|
text: string;
|
|
74
63
|
label?: string | null | undefined;
|
|
75
64
|
rules?: Array<CustomMessageRule$Outbound> | undefined;
|
|
76
|
-
config?: CustomMessageConfig$Outbound | undefined;
|
|
77
65
|
id: number;
|
|
78
66
|
type: string;
|
|
79
67
|
};
|
|
@@ -88,7 +76,6 @@ export const CustomMessageUpdateRequest$outboundSchema: z.ZodType<
|
|
|
88
76
|
text: z.string(),
|
|
89
77
|
label: z.nullable(z.string()).optional(),
|
|
90
78
|
rules: z.array(CustomMessageRule$outboundSchema).optional(),
|
|
91
|
-
config: CustomMessageConfig$outboundSchema.optional(),
|
|
92
79
|
id: z.number().int(),
|
|
93
80
|
type: z.string().default("greeting"),
|
|
94
81
|
});
|
|
@@ -46,7 +46,6 @@ export * from "./communicationrequestresult.js";
|
|
|
46
46
|
export * from "./conversation.js";
|
|
47
47
|
export * from "./conversationproperties.js";
|
|
48
48
|
export * from "./createtakeoutresponse.js";
|
|
49
|
-
export * from "./custommessageconfig.js";
|
|
50
49
|
export * from "./custommessagecreaterequest.js";
|
|
51
50
|
export * from "./custommessageproperties.js";
|
|
52
51
|
export * from "./custommessageresponse.js";
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
/**
|
|
5
|
-
* Additional configuration options for the message.
|
|
6
|
-
*/
|
|
7
|
-
export type CustomMessageConfig = {
|
|
8
|
-
/**
|
|
9
|
-
* The behavior of an agent assigned this message at the beginning of a user-initiated non-voice session (e.g., SMS, email, etc.). 'respond_only' will skip the message and respond to the user's message. 'greet_and_respond' will deliver the message and respond to the user's message. 'greet_only' will deliver the message and not respond to the user's message. Defaults to 'greet_only'.
|
|
10
|
-
*/
|
|
11
|
-
userInitiatedNonVoiceSessionBehavior?: string | undefined;
|
|
12
|
-
};
|
|
13
|
-
/** @internal */
|
|
14
|
-
export declare const CustomMessageConfig$inboundSchema: z.ZodType<CustomMessageConfig, z.ZodTypeDef, unknown>;
|
|
15
|
-
/** @internal */
|
|
16
|
-
export type CustomMessageConfig$Outbound = {
|
|
17
|
-
user_initiated_non_voice_session_behavior: string;
|
|
18
|
-
};
|
|
19
|
-
/** @internal */
|
|
20
|
-
export declare const CustomMessageConfig$outboundSchema: z.ZodType<CustomMessageConfig$Outbound, z.ZodTypeDef, CustomMessageConfig>;
|
|
21
|
-
export declare function customMessageConfigToJSON(customMessageConfig: CustomMessageConfig): string;
|
|
22
|
-
export declare function customMessageConfigFromJSON(jsonString: string): SafeParseResult<CustomMessageConfig, SDKValidationError>;
|
|
23
|
-
//# sourceMappingURL=custommessageconfig.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custommessageconfig.d.ts","sourceRoot":"","sources":["../../src/models/components/custommessageconfig.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,oCAAoC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,OAAO,CAQP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,yCAAyC,EAAE,MAAM,CAAC;CACnD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAQnB,CAAC;AAEH,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR;AACD,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.CustomMessageConfig$outboundSchema = exports.CustomMessageConfig$inboundSchema = void 0;
|
|
40
|
-
exports.customMessageConfigToJSON = customMessageConfigToJSON;
|
|
41
|
-
exports.customMessageConfigFromJSON = customMessageConfigFromJSON;
|
|
42
|
-
const z = __importStar(require("zod/v3"));
|
|
43
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
-
/** @internal */
|
|
46
|
-
exports.CustomMessageConfig$inboundSchema = z.object({
|
|
47
|
-
user_initiated_non_voice_session_behavior: z.string().default("greet_only"),
|
|
48
|
-
}).transform((v) => {
|
|
49
|
-
return (0, primitives_js_1.remap)(v, {
|
|
50
|
-
"user_initiated_non_voice_session_behavior": "userInitiatedNonVoiceSessionBehavior",
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
/** @internal */
|
|
54
|
-
exports.CustomMessageConfig$outboundSchema = z.object({
|
|
55
|
-
userInitiatedNonVoiceSessionBehavior: z.string().default("greet_only"),
|
|
56
|
-
}).transform((v) => {
|
|
57
|
-
return (0, primitives_js_1.remap)(v, {
|
|
58
|
-
userInitiatedNonVoiceSessionBehavior: "user_initiated_non_voice_session_behavior",
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
function customMessageConfigToJSON(customMessageConfig) {
|
|
62
|
-
return JSON.stringify(exports.CustomMessageConfig$outboundSchema.parse(customMessageConfig));
|
|
63
|
-
}
|
|
64
|
-
function customMessageConfigFromJSON(jsonString) {
|
|
65
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CustomMessageConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CustomMessageConfig' from JSON`);
|
|
66
|
-
}
|
|
67
|
-
//# sourceMappingURL=custommessageconfig.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custommessageconfig.js","sourceRoot":"","sources":["../../src/models/components/custommessageconfig.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDH,8DAMC;AACD,kEAQC;AA/DD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAcjD,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,yCAAyC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC;CAC5E,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,2CAA2C,EACzC,sCAAsC;KACzC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAMH,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,oCAAoC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC;CACvE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,oCAAoC,EAClC,2CAA2C;KAC9C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,0CAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC;AACD,SAAgB,2BAA2B,CACzC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC"}
|