retell-sdk 5.18.0 → 5.20.0
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/CHANGELOG.md +32 -0
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent.d.mts +128 -15
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +128 -15
- package/resources/agent.d.ts.map +1 -1
- package/resources/agent.js +0 -17
- package/resources/agent.js.map +1 -1
- package/resources/agent.mjs +0 -17
- package/resources/agent.mjs.map +1 -1
- package/resources/batch-call.d.mts +43 -4
- package/resources/batch-call.d.mts.map +1 -1
- package/resources/batch-call.d.ts +43 -4
- package/resources/batch-call.d.ts.map +1 -1
- package/resources/call.d.mts +129 -12
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +129 -12
- package/resources/call.d.ts.map +1 -1
- package/resources/chat-agent.d.mts +14 -18
- package/resources/chat-agent.d.mts.map +1 -1
- package/resources/chat-agent.d.ts +14 -18
- package/resources/chat-agent.d.ts.map +1 -1
- package/resources/chat-agent.js +0 -17
- package/resources/chat-agent.js.map +1 -1
- package/resources/chat-agent.mjs +0 -17
- package/resources/chat-agent.mjs.map +1 -1
- package/resources/chat.d.mts +2 -2
- package/resources/chat.d.mts.map +1 -1
- package/resources/chat.d.ts +2 -2
- package/resources/chat.d.ts.map +1 -1
- package/resources/conversation-flow-component.d.mts +186 -48
- package/resources/conversation-flow-component.d.mts.map +1 -1
- package/resources/conversation-flow-component.d.ts +186 -48
- package/resources/conversation-flow-component.d.ts.map +1 -1
- package/resources/conversation-flow.d.mts +375 -99
- package/resources/conversation-flow.d.mts.map +1 -1
- package/resources/conversation-flow.d.ts +375 -99
- package/resources/conversation-flow.d.ts.map +1 -1
- package/resources/llm.d.mts +9 -9
- package/resources/llm.d.mts.map +1 -1
- package/resources/llm.d.ts +9 -9
- package/resources/llm.d.ts.map +1 -1
- package/resources/phone-number.d.mts +108 -12
- package/resources/phone-number.d.mts.map +1 -1
- package/resources/phone-number.d.ts +108 -12
- package/resources/phone-number.d.ts.map +1 -1
- package/resources/tests.d.mts +3 -3
- package/resources/tests.d.mts.map +1 -1
- package/resources/tests.d.ts +3 -3
- package/resources/tests.d.ts.map +1 -1
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/log.ts +2 -0
- package/src/resources/agent.ts +145 -21
- package/src/resources/batch-call.ts +46 -4
- package/src/resources/call.ts +138 -12
- package/src/resources/chat-agent.ts +13 -24
- package/src/resources/chat.ts +2 -2
- package/src/resources/conversation-flow-component.ts +168 -48
- package/src/resources/conversation-flow.ts +336 -99
- package/src/resources/llm.ts +6 -9
- package/src/resources/phone-number.ts +108 -12
- package/src/resources/tests.ts +0 -3
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/call.ts
CHANGED
|
@@ -2561,7 +2561,7 @@ export interface CallCreatePhoneCallParams {
|
|
|
2561
2561
|
* This does not bind the agent version to this number, this is for one time
|
|
2562
2562
|
* override.
|
|
2563
2563
|
*/
|
|
2564
|
-
override_agent_version?: number;
|
|
2564
|
+
override_agent_version?: number | string;
|
|
2565
2565
|
|
|
2566
2566
|
/**
|
|
2567
2567
|
* Add optional dynamic variables in key value pairs of string that injects into
|
|
@@ -2613,6 +2613,13 @@ export namespace CallCreatePhoneCallParams {
|
|
|
2613
2613
|
*/
|
|
2614
2614
|
agent_name?: string | null;
|
|
2615
2615
|
|
|
2616
|
+
/**
|
|
2617
|
+
* If set to true, DTMF input will interrupt the agent even when
|
|
2618
|
+
* interruption_sensitivity is 0. Can be overridden per conversation or subagent
|
|
2619
|
+
* node. Default to false.
|
|
2620
|
+
*/
|
|
2621
|
+
allow_dtmf_interruption?: boolean;
|
|
2622
|
+
|
|
2616
2623
|
/**
|
|
2617
2624
|
* If set to true, DTMF input will be accepted and processed. If false, any DTMF
|
|
2618
2625
|
* input will be ignored. Default to true.
|
|
@@ -2707,6 +2714,13 @@ export namespace CallCreatePhoneCallParams {
|
|
|
2707
2714
|
*/
|
|
2708
2715
|
boosted_keywords?: Array<string> | null;
|
|
2709
2716
|
|
|
2717
|
+
/**
|
|
2718
|
+
* If this option is set, the agent prompt will include call screen handling
|
|
2719
|
+
* instructions for identity and call purpose questions. Set this to null to
|
|
2720
|
+
* disable call screen prompt instructions.
|
|
2721
|
+
*/
|
|
2722
|
+
call_screening_option?: Agent.CallScreeningOption | null;
|
|
2723
|
+
|
|
2710
2724
|
/**
|
|
2711
2725
|
* Custom STT configuration. Only used when stt_mode is set to custom.
|
|
2712
2726
|
*/
|
|
@@ -2998,7 +3012,6 @@ export namespace CallCreatePhoneCallParams {
|
|
|
2998
3012
|
| 'claude-4.5-sonnet'
|
|
2999
3013
|
| 'claude-4.6-sonnet'
|
|
3000
3014
|
| 'claude-4.5-haiku'
|
|
3001
|
-
| 'gemini-2.5-flash'
|
|
3002
3015
|
| 'gemini-2.5-flash-lite'
|
|
3003
3016
|
| 'gemini-3.0-flash'
|
|
3004
3017
|
| 'gemini-3.1-flash-lite'
|
|
@@ -3195,6 +3208,25 @@ export namespace CallCreatePhoneCallParams {
|
|
|
3195
3208
|
}
|
|
3196
3209
|
|
|
3197
3210
|
export namespace Agent {
|
|
3211
|
+
/**
|
|
3212
|
+
* If this option is set, the agent prompt will include call screen handling
|
|
3213
|
+
* instructions for identity and call purpose questions. Set this to null to
|
|
3214
|
+
* disable call screen prompt instructions.
|
|
3215
|
+
*/
|
|
3216
|
+
export interface CallScreeningOption {
|
|
3217
|
+
/**
|
|
3218
|
+
* Identity the agent should provide when a call screen asks who is calling.
|
|
3219
|
+
* Dynamic variables are supported.
|
|
3220
|
+
*/
|
|
3221
|
+
agent_identity: string;
|
|
3222
|
+
|
|
3223
|
+
/**
|
|
3224
|
+
* Purpose the agent should provide when a call screen asks why it is calling.
|
|
3225
|
+
* Dynamic variables are supported.
|
|
3226
|
+
*/
|
|
3227
|
+
call_purpose: string;
|
|
3228
|
+
}
|
|
3229
|
+
|
|
3198
3230
|
/**
|
|
3199
3231
|
* Custom STT configuration. Only used when stt_mode is set to custom.
|
|
3200
3232
|
*/
|
|
@@ -3299,6 +3331,12 @@ export namespace CallCreatePhoneCallParams {
|
|
|
3299
3331
|
*/
|
|
3300
3332
|
export interface IvrOption {
|
|
3301
3333
|
action: IvrOption.Action;
|
|
3334
|
+
|
|
3335
|
+
/**
|
|
3336
|
+
* Optionally describe what should be treated as an IVR. Leave as null to use the
|
|
3337
|
+
* default definition.
|
|
3338
|
+
*/
|
|
3339
|
+
detection_prompt?: string | null;
|
|
3302
3340
|
}
|
|
3303
3341
|
|
|
3304
3342
|
export namespace IvrOption {
|
|
@@ -3596,6 +3634,12 @@ export namespace CallCreatePhoneCallParams {
|
|
|
3596
3634
|
| VoicemailOption.VoicemailActionStaticText
|
|
3597
3635
|
| VoicemailOption.VoicemailActionHangup
|
|
3598
3636
|
| VoicemailOption.VoicemailActionBridgeTransfer;
|
|
3637
|
+
|
|
3638
|
+
/**
|
|
3639
|
+
* Optionally describe what should be treated as voicemail. Leave as null to use
|
|
3640
|
+
* the default definition.
|
|
3641
|
+
*/
|
|
3642
|
+
detection_prompt?: string | null;
|
|
3599
3643
|
}
|
|
3600
3644
|
|
|
3601
3645
|
export namespace VoicemailOption {
|
|
@@ -3715,7 +3759,6 @@ export namespace CallCreatePhoneCallParams {
|
|
|
3715
3759
|
| 'claude-4.5-sonnet'
|
|
3716
3760
|
| 'claude-4.6-sonnet'
|
|
3717
3761
|
| 'claude-4.5-haiku'
|
|
3718
|
-
| 'gemini-2.5-flash'
|
|
3719
3762
|
| 'gemini-2.5-flash-lite'
|
|
3720
3763
|
| 'gemini-3.0-flash'
|
|
3721
3764
|
| 'gemini-3.1-flash-lite';
|
|
@@ -3783,7 +3826,6 @@ export namespace CallCreatePhoneCallParams {
|
|
|
3783
3826
|
| 'claude-4.5-sonnet'
|
|
3784
3827
|
| 'claude-4.6-sonnet'
|
|
3785
3828
|
| 'claude-4.5-haiku'
|
|
3786
|
-
| 'gemini-2.5-flash'
|
|
3787
3829
|
| 'gemini-2.5-flash-lite'
|
|
3788
3830
|
| 'gemini-3.0-flash'
|
|
3789
3831
|
| 'gemini-3.1-flash-lite'
|
|
@@ -3859,7 +3901,7 @@ export interface CallCreateWebCallParams {
|
|
|
3859
3901
|
/**
|
|
3860
3902
|
* The version of the agent to use for the call.
|
|
3861
3903
|
*/
|
|
3862
|
-
agent_version?: number;
|
|
3904
|
+
agent_version?: number | string;
|
|
3863
3905
|
|
|
3864
3906
|
/**
|
|
3865
3907
|
* Start the call at this conversation flow node (stage). Must be a valid node id
|
|
@@ -3932,6 +3974,13 @@ export namespace CallCreateWebCallParams {
|
|
|
3932
3974
|
*/
|
|
3933
3975
|
agent_name?: string | null;
|
|
3934
3976
|
|
|
3977
|
+
/**
|
|
3978
|
+
* If set to true, DTMF input will interrupt the agent even when
|
|
3979
|
+
* interruption_sensitivity is 0. Can be overridden per conversation or subagent
|
|
3980
|
+
* node. Default to false.
|
|
3981
|
+
*/
|
|
3982
|
+
allow_dtmf_interruption?: boolean;
|
|
3983
|
+
|
|
3935
3984
|
/**
|
|
3936
3985
|
* If set to true, DTMF input will be accepted and processed. If false, any DTMF
|
|
3937
3986
|
* input will be ignored. Default to true.
|
|
@@ -4026,6 +4075,13 @@ export namespace CallCreateWebCallParams {
|
|
|
4026
4075
|
*/
|
|
4027
4076
|
boosted_keywords?: Array<string> | null;
|
|
4028
4077
|
|
|
4078
|
+
/**
|
|
4079
|
+
* If this option is set, the agent prompt will include call screen handling
|
|
4080
|
+
* instructions for identity and call purpose questions. Set this to null to
|
|
4081
|
+
* disable call screen prompt instructions.
|
|
4082
|
+
*/
|
|
4083
|
+
call_screening_option?: Agent.CallScreeningOption | null;
|
|
4084
|
+
|
|
4029
4085
|
/**
|
|
4030
4086
|
* Custom STT configuration. Only used when stt_mode is set to custom.
|
|
4031
4087
|
*/
|
|
@@ -4317,7 +4373,6 @@ export namespace CallCreateWebCallParams {
|
|
|
4317
4373
|
| 'claude-4.5-sonnet'
|
|
4318
4374
|
| 'claude-4.6-sonnet'
|
|
4319
4375
|
| 'claude-4.5-haiku'
|
|
4320
|
-
| 'gemini-2.5-flash'
|
|
4321
4376
|
| 'gemini-2.5-flash-lite'
|
|
4322
4377
|
| 'gemini-3.0-flash'
|
|
4323
4378
|
| 'gemini-3.1-flash-lite'
|
|
@@ -4514,6 +4569,25 @@ export namespace CallCreateWebCallParams {
|
|
|
4514
4569
|
}
|
|
4515
4570
|
|
|
4516
4571
|
export namespace Agent {
|
|
4572
|
+
/**
|
|
4573
|
+
* If this option is set, the agent prompt will include call screen handling
|
|
4574
|
+
* instructions for identity and call purpose questions. Set this to null to
|
|
4575
|
+
* disable call screen prompt instructions.
|
|
4576
|
+
*/
|
|
4577
|
+
export interface CallScreeningOption {
|
|
4578
|
+
/**
|
|
4579
|
+
* Identity the agent should provide when a call screen asks who is calling.
|
|
4580
|
+
* Dynamic variables are supported.
|
|
4581
|
+
*/
|
|
4582
|
+
agent_identity: string;
|
|
4583
|
+
|
|
4584
|
+
/**
|
|
4585
|
+
* Purpose the agent should provide when a call screen asks why it is calling.
|
|
4586
|
+
* Dynamic variables are supported.
|
|
4587
|
+
*/
|
|
4588
|
+
call_purpose: string;
|
|
4589
|
+
}
|
|
4590
|
+
|
|
4517
4591
|
/**
|
|
4518
4592
|
* Custom STT configuration. Only used when stt_mode is set to custom.
|
|
4519
4593
|
*/
|
|
@@ -4618,6 +4692,12 @@ export namespace CallCreateWebCallParams {
|
|
|
4618
4692
|
*/
|
|
4619
4693
|
export interface IvrOption {
|
|
4620
4694
|
action: IvrOption.Action;
|
|
4695
|
+
|
|
4696
|
+
/**
|
|
4697
|
+
* Optionally describe what should be treated as an IVR. Leave as null to use the
|
|
4698
|
+
* default definition.
|
|
4699
|
+
*/
|
|
4700
|
+
detection_prompt?: string | null;
|
|
4621
4701
|
}
|
|
4622
4702
|
|
|
4623
4703
|
export namespace IvrOption {
|
|
@@ -4915,6 +4995,12 @@ export namespace CallCreateWebCallParams {
|
|
|
4915
4995
|
| VoicemailOption.VoicemailActionStaticText
|
|
4916
4996
|
| VoicemailOption.VoicemailActionHangup
|
|
4917
4997
|
| VoicemailOption.VoicemailActionBridgeTransfer;
|
|
4998
|
+
|
|
4999
|
+
/**
|
|
5000
|
+
* Optionally describe what should be treated as voicemail. Leave as null to use
|
|
5001
|
+
* the default definition.
|
|
5002
|
+
*/
|
|
5003
|
+
detection_prompt?: string | null;
|
|
4918
5004
|
}
|
|
4919
5005
|
|
|
4920
5006
|
export namespace VoicemailOption {
|
|
@@ -5034,7 +5120,6 @@ export namespace CallCreateWebCallParams {
|
|
|
5034
5120
|
| 'claude-4.5-sonnet'
|
|
5035
5121
|
| 'claude-4.6-sonnet'
|
|
5036
5122
|
| 'claude-4.5-haiku'
|
|
5037
|
-
| 'gemini-2.5-flash'
|
|
5038
5123
|
| 'gemini-2.5-flash-lite'
|
|
5039
5124
|
| 'gemini-3.0-flash'
|
|
5040
5125
|
| 'gemini-3.1-flash-lite';
|
|
@@ -5102,7 +5187,6 @@ export namespace CallCreateWebCallParams {
|
|
|
5102
5187
|
| 'claude-4.5-sonnet'
|
|
5103
5188
|
| 'claude-4.6-sonnet'
|
|
5104
5189
|
| 'claude-4.5-haiku'
|
|
5105
|
-
| 'gemini-2.5-flash'
|
|
5106
5190
|
| 'gemini-2.5-flash-lite'
|
|
5107
5191
|
| 'gemini-3.0-flash'
|
|
5108
5192
|
| 'gemini-3.1-flash-lite'
|
|
@@ -5177,7 +5261,7 @@ export interface CallRegisterPhoneCallParams {
|
|
|
5177
5261
|
/**
|
|
5178
5262
|
* The version of the agent to use for the call.
|
|
5179
5263
|
*/
|
|
5180
|
-
agent_version?: number;
|
|
5264
|
+
agent_version?: number | string;
|
|
5181
5265
|
|
|
5182
5266
|
/**
|
|
5183
5267
|
* Direction of the phone call. Stored for tracking purpose.
|
|
@@ -5251,6 +5335,13 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
5251
5335
|
*/
|
|
5252
5336
|
agent_name?: string | null;
|
|
5253
5337
|
|
|
5338
|
+
/**
|
|
5339
|
+
* If set to true, DTMF input will interrupt the agent even when
|
|
5340
|
+
* interruption_sensitivity is 0. Can be overridden per conversation or subagent
|
|
5341
|
+
* node. Default to false.
|
|
5342
|
+
*/
|
|
5343
|
+
allow_dtmf_interruption?: boolean;
|
|
5344
|
+
|
|
5254
5345
|
/**
|
|
5255
5346
|
* If set to true, DTMF input will be accepted and processed. If false, any DTMF
|
|
5256
5347
|
* input will be ignored. Default to true.
|
|
@@ -5345,6 +5436,13 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
5345
5436
|
*/
|
|
5346
5437
|
boosted_keywords?: Array<string> | null;
|
|
5347
5438
|
|
|
5439
|
+
/**
|
|
5440
|
+
* If this option is set, the agent prompt will include call screen handling
|
|
5441
|
+
* instructions for identity and call purpose questions. Set this to null to
|
|
5442
|
+
* disable call screen prompt instructions.
|
|
5443
|
+
*/
|
|
5444
|
+
call_screening_option?: Agent.CallScreeningOption | null;
|
|
5445
|
+
|
|
5348
5446
|
/**
|
|
5349
5447
|
* Custom STT configuration. Only used when stt_mode is set to custom.
|
|
5350
5448
|
*/
|
|
@@ -5636,7 +5734,6 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
5636
5734
|
| 'claude-4.5-sonnet'
|
|
5637
5735
|
| 'claude-4.6-sonnet'
|
|
5638
5736
|
| 'claude-4.5-haiku'
|
|
5639
|
-
| 'gemini-2.5-flash'
|
|
5640
5737
|
| 'gemini-2.5-flash-lite'
|
|
5641
5738
|
| 'gemini-3.0-flash'
|
|
5642
5739
|
| 'gemini-3.1-flash-lite'
|
|
@@ -5833,6 +5930,25 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
5833
5930
|
}
|
|
5834
5931
|
|
|
5835
5932
|
export namespace Agent {
|
|
5933
|
+
/**
|
|
5934
|
+
* If this option is set, the agent prompt will include call screen handling
|
|
5935
|
+
* instructions for identity and call purpose questions. Set this to null to
|
|
5936
|
+
* disable call screen prompt instructions.
|
|
5937
|
+
*/
|
|
5938
|
+
export interface CallScreeningOption {
|
|
5939
|
+
/**
|
|
5940
|
+
* Identity the agent should provide when a call screen asks who is calling.
|
|
5941
|
+
* Dynamic variables are supported.
|
|
5942
|
+
*/
|
|
5943
|
+
agent_identity: string;
|
|
5944
|
+
|
|
5945
|
+
/**
|
|
5946
|
+
* Purpose the agent should provide when a call screen asks why it is calling.
|
|
5947
|
+
* Dynamic variables are supported.
|
|
5948
|
+
*/
|
|
5949
|
+
call_purpose: string;
|
|
5950
|
+
}
|
|
5951
|
+
|
|
5836
5952
|
/**
|
|
5837
5953
|
* Custom STT configuration. Only used when stt_mode is set to custom.
|
|
5838
5954
|
*/
|
|
@@ -5937,6 +6053,12 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
5937
6053
|
*/
|
|
5938
6054
|
export interface IvrOption {
|
|
5939
6055
|
action: IvrOption.Action;
|
|
6056
|
+
|
|
6057
|
+
/**
|
|
6058
|
+
* Optionally describe what should be treated as an IVR. Leave as null to use the
|
|
6059
|
+
* default definition.
|
|
6060
|
+
*/
|
|
6061
|
+
detection_prompt?: string | null;
|
|
5940
6062
|
}
|
|
5941
6063
|
|
|
5942
6064
|
export namespace IvrOption {
|
|
@@ -6234,6 +6356,12 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
6234
6356
|
| VoicemailOption.VoicemailActionStaticText
|
|
6235
6357
|
| VoicemailOption.VoicemailActionHangup
|
|
6236
6358
|
| VoicemailOption.VoicemailActionBridgeTransfer;
|
|
6359
|
+
|
|
6360
|
+
/**
|
|
6361
|
+
* Optionally describe what should be treated as voicemail. Leave as null to use
|
|
6362
|
+
* the default definition.
|
|
6363
|
+
*/
|
|
6364
|
+
detection_prompt?: string | null;
|
|
6237
6365
|
}
|
|
6238
6366
|
|
|
6239
6367
|
export namespace VoicemailOption {
|
|
@@ -6353,7 +6481,6 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
6353
6481
|
| 'claude-4.5-sonnet'
|
|
6354
6482
|
| 'claude-4.6-sonnet'
|
|
6355
6483
|
| 'claude-4.5-haiku'
|
|
6356
|
-
| 'gemini-2.5-flash'
|
|
6357
6484
|
| 'gemini-2.5-flash-lite'
|
|
6358
6485
|
| 'gemini-3.0-flash'
|
|
6359
6486
|
| 'gemini-3.1-flash-lite';
|
|
@@ -6421,7 +6548,6 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
6421
6548
|
| 'claude-4.5-sonnet'
|
|
6422
6549
|
| 'claude-4.6-sonnet'
|
|
6423
6550
|
| 'claude-4.5-haiku'
|
|
6424
|
-
| 'gemini-2.5-flash'
|
|
6425
6551
|
| 'gemini-2.5-flash-lite'
|
|
6426
6552
|
| 'gemini-3.0-flash'
|
|
6427
6553
|
| 'gemini-3.1-flash-lite'
|
|
@@ -107,24 +107,6 @@ export class ChatAgent extends APIResource {
|
|
|
107
107
|
getVersions(agentID: string, options?: RequestOptions): APIPromise<ChatAgentGetVersionsResponse> {
|
|
108
108
|
return this._client.get(path`/get-chat-agent-versions/${agentID}`, options);
|
|
109
109
|
}
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Publish the latest version of the chat agent and create a new draft chat agent
|
|
113
|
-
* with newer version.
|
|
114
|
-
*
|
|
115
|
-
* @example
|
|
116
|
-
* ```ts
|
|
117
|
-
* await client.chatAgent.publish(
|
|
118
|
-
* '16b980523634a6dc504898cda492e939',
|
|
119
|
-
* );
|
|
120
|
-
* ```
|
|
121
|
-
*/
|
|
122
|
-
publish(agentID: string, options?: RequestOptions): APIPromise<void> {
|
|
123
|
-
return this._client.post(path`/publish-chat-agent/${agentID}`, {
|
|
124
|
-
...options,
|
|
125
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
110
|
}
|
|
129
111
|
|
|
130
112
|
export interface ChatAgentResponse {
|
|
@@ -172,11 +154,21 @@ export interface ChatAgentResponse {
|
|
|
172
154
|
*/
|
|
173
155
|
analysis_user_sentiment_prompt?: string | null;
|
|
174
156
|
|
|
157
|
+
/**
|
|
158
|
+
* Tags assigned to this chat agent version. Preferred tag is listed first.
|
|
159
|
+
*/
|
|
160
|
+
assigned_tags?: Array<string>;
|
|
161
|
+
|
|
175
162
|
/**
|
|
176
163
|
* Message to display when the chat is automatically closed.
|
|
177
164
|
*/
|
|
178
165
|
auto_close_message?: string | null;
|
|
179
166
|
|
|
167
|
+
/**
|
|
168
|
+
* Version that this draft was based on. Null for initial versions.
|
|
169
|
+
*/
|
|
170
|
+
base_version?: number | null;
|
|
171
|
+
|
|
180
172
|
/**
|
|
181
173
|
* Number of days to retain call/chat data before automatic deletion. Must be
|
|
182
174
|
* between 1 and 730 days. If not set, data is retained forever (no automatic
|
|
@@ -405,7 +397,6 @@ export interface ChatAgentResponse {
|
|
|
405
397
|
| 'claude-4.5-sonnet'
|
|
406
398
|
| 'claude-4.6-sonnet'
|
|
407
399
|
| 'claude-4.5-haiku'
|
|
408
|
-
| 'gemini-2.5-flash'
|
|
409
400
|
| 'gemini-2.5-flash-lite'
|
|
410
401
|
| 'gemini-3.0-flash'
|
|
411
402
|
| 'gemini-3.1-flash-lite'
|
|
@@ -433,7 +424,7 @@ export interface ChatAgentResponse {
|
|
|
433
424
|
* Which webhook events this agent should receive. If not set, defaults to
|
|
434
425
|
* chat_started, chat_ended, chat_analyzed.
|
|
435
426
|
*/
|
|
436
|
-
webhook_events?: Array<'chat_started' | 'chat_ended' | 'chat_analyzed'> | null;
|
|
427
|
+
webhook_events?: Array<'chat_started' | 'chat_ended' | 'chat_analyzed' | 'transcript_updated'> | null;
|
|
437
428
|
|
|
438
429
|
/**
|
|
439
430
|
* The timeout for the webhook in milliseconds. If not set, default value of 10000
|
|
@@ -1012,7 +1003,6 @@ export interface ChatAgentCreateParams {
|
|
|
1012
1003
|
| 'claude-4.5-sonnet'
|
|
1013
1004
|
| 'claude-4.6-sonnet'
|
|
1014
1005
|
| 'claude-4.5-haiku'
|
|
1015
|
-
| 'gemini-2.5-flash'
|
|
1016
1006
|
| 'gemini-2.5-flash-lite'
|
|
1017
1007
|
| 'gemini-3.0-flash'
|
|
1018
1008
|
| 'gemini-3.1-flash-lite'
|
|
@@ -1035,7 +1025,7 @@ export interface ChatAgentCreateParams {
|
|
|
1035
1025
|
* Which webhook events this agent should receive. If not set, defaults to
|
|
1036
1026
|
* chat_started, chat_ended, chat_analyzed.
|
|
1037
1027
|
*/
|
|
1038
|
-
webhook_events?: Array<'chat_started' | 'chat_ended' | 'chat_analyzed'> | null;
|
|
1028
|
+
webhook_events?: Array<'chat_started' | 'chat_ended' | 'chat_analyzed' | 'transcript_updated'> | null;
|
|
1039
1029
|
|
|
1040
1030
|
/**
|
|
1041
1031
|
* The timeout for the webhook in milliseconds. If not set, default value of 10000
|
|
@@ -1616,7 +1606,6 @@ export interface ChatAgentUpdateParams {
|
|
|
1616
1606
|
| 'claude-4.5-sonnet'
|
|
1617
1607
|
| 'claude-4.6-sonnet'
|
|
1618
1608
|
| 'claude-4.5-haiku'
|
|
1619
|
-
| 'gemini-2.5-flash'
|
|
1620
1609
|
| 'gemini-2.5-flash-lite'
|
|
1621
1610
|
| 'gemini-3.0-flash'
|
|
1622
1611
|
| 'gemini-3.1-flash-lite'
|
|
@@ -1649,7 +1638,7 @@ export interface ChatAgentUpdateParams {
|
|
|
1649
1638
|
* Body param: Which webhook events this agent should receive. If not set, defaults
|
|
1650
1639
|
* to chat_started, chat_ended, chat_analyzed.
|
|
1651
1640
|
*/
|
|
1652
|
-
webhook_events?: Array<'chat_started' | 'chat_ended' | 'chat_analyzed'> | null;
|
|
1641
|
+
webhook_events?: Array<'chat_started' | 'chat_ended' | 'chat_analyzed' | 'transcript_updated'> | null;
|
|
1653
1642
|
|
|
1654
1643
|
/**
|
|
1655
1644
|
* Body param: The timeout for the webhook in milliseconds. If not set, default
|
package/src/resources/chat.ts
CHANGED
|
@@ -646,7 +646,7 @@ export interface ChatCreateParams {
|
|
|
646
646
|
* The version of the chat agent to use for the chat. If not provided, will default
|
|
647
647
|
* to latest version.
|
|
648
648
|
*/
|
|
649
|
-
agent_version?: number;
|
|
649
|
+
agent_version?: number | string;
|
|
650
650
|
|
|
651
651
|
/**
|
|
652
652
|
* An arbitrary object for storage purpose only. You can put anything here like
|
|
@@ -757,7 +757,7 @@ export interface ChatCreateSMSChatParams {
|
|
|
757
757
|
* This does not bind the agent version to this number, this is for one time
|
|
758
758
|
* override.
|
|
759
759
|
*/
|
|
760
|
-
override_agent_version?: number;
|
|
760
|
+
override_agent_version?: number | string;
|
|
761
761
|
|
|
762
762
|
/**
|
|
763
763
|
* Add optional dynamic variables in key value pairs of string that injects into
|