retell-sdk 6.2.7 → 6.2.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/CHANGELOG.md +9 -0
- package/package.json +1 -1
- package/resources/agent.d.mts +111 -15
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +111 -15
- package/resources/agent.d.ts.map +1 -1
- package/resources/batch-call.d.mts +37 -5
- package/resources/batch-call.d.mts.map +1 -1
- package/resources/batch-call.d.ts +37 -5
- package/resources/batch-call.d.ts.map +1 -1
- package/resources/call.d.mts +113 -17
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +113 -17
- package/resources/call.d.ts.map +1 -1
- package/resources/call.js +2 -2
- package/resources/call.mjs +2 -2
- package/resources/chat-agent.d.mts +111 -15
- package/resources/chat-agent.d.mts.map +1 -1
- package/resources/chat-agent.d.ts +111 -15
- package/resources/chat-agent.d.ts.map +1 -1
- package/resources/conversation-flow-component.d.mts +198 -0
- package/resources/conversation-flow-component.d.mts.map +1 -1
- package/resources/conversation-flow-component.d.ts +198 -0
- package/resources/conversation-flow-component.d.ts.map +1 -1
- package/resources/conversation-flow.d.mts +396 -0
- package/resources/conversation-flow.d.mts.map +1 -1
- package/resources/conversation-flow.d.ts +396 -0
- package/resources/conversation-flow.d.ts.map +1 -1
- package/resources/llm.d.mts +210 -0
- package/resources/llm.d.mts.map +1 -1
- package/resources/llm.d.ts +210 -0
- package/resources/llm.d.ts.map +1 -1
- package/src/resources/agent.ts +135 -15
- package/src/resources/batch-call.ts +48 -5
- package/src/resources/call.ts +146 -17
- package/src/resources/chat-agent.ts +135 -15
- package/src/resources/conversation-flow-component.ts +249 -0
- package/src/resources/conversation-flow.ts +507 -0
- package/src/resources/llm.ts +264 -0
- 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/llm.ts
CHANGED
|
@@ -823,6 +823,23 @@ export namespace LlmResponse {
|
|
|
823
823
|
*/
|
|
824
824
|
execution_message_type?: 'prompt' | 'static_text';
|
|
825
825
|
|
|
826
|
+
/**
|
|
827
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
828
|
+
* customer number on the call.
|
|
829
|
+
*/
|
|
830
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
831
|
+
|
|
832
|
+
/**
|
|
833
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
834
|
+
* agent's phone number.
|
|
835
|
+
*/
|
|
836
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
837
|
+
|
|
838
|
+
/**
|
|
839
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
840
|
+
*/
|
|
841
|
+
speak_after_execution?: boolean;
|
|
842
|
+
|
|
826
843
|
/**
|
|
827
844
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
828
845
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -860,6 +877,33 @@ export namespace LlmResponse {
|
|
|
860
877
|
|
|
861
878
|
type: 'template';
|
|
862
879
|
}
|
|
880
|
+
|
|
881
|
+
export interface DestinationCustomerNumber {
|
|
882
|
+
type: 'customer_number';
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
export interface DestinationPhoneNumber {
|
|
886
|
+
/**
|
|
887
|
+
* Destination phone number in E.164 format.
|
|
888
|
+
*/
|
|
889
|
+
phone_number: string;
|
|
890
|
+
|
|
891
|
+
type: 'phone_number';
|
|
892
|
+
|
|
893
|
+
/**
|
|
894
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
895
|
+
* transfer_call ignore_e164_validation).
|
|
896
|
+
*/
|
|
897
|
+
ignore_e164_validation?: boolean;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
export interface SenderCurrentNumber {
|
|
901
|
+
type: 'current_number';
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
export interface SenderRetellLongCode {
|
|
905
|
+
type: 'retell_long_code';
|
|
906
|
+
}
|
|
863
907
|
}
|
|
864
908
|
|
|
865
909
|
export interface CustomTool {
|
|
@@ -2219,6 +2263,23 @@ export namespace LlmResponse {
|
|
|
2219
2263
|
*/
|
|
2220
2264
|
execution_message_type?: 'prompt' | 'static_text';
|
|
2221
2265
|
|
|
2266
|
+
/**
|
|
2267
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
2268
|
+
* customer number on the call.
|
|
2269
|
+
*/
|
|
2270
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
2271
|
+
|
|
2272
|
+
/**
|
|
2273
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
2274
|
+
* agent's phone number.
|
|
2275
|
+
*/
|
|
2276
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
2277
|
+
|
|
2278
|
+
/**
|
|
2279
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
2280
|
+
*/
|
|
2281
|
+
speak_after_execution?: boolean;
|
|
2282
|
+
|
|
2222
2283
|
/**
|
|
2223
2284
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
2224
2285
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -2256,6 +2317,33 @@ export namespace LlmResponse {
|
|
|
2256
2317
|
|
|
2257
2318
|
type: 'template';
|
|
2258
2319
|
}
|
|
2320
|
+
|
|
2321
|
+
export interface DestinationCustomerNumber {
|
|
2322
|
+
type: 'customer_number';
|
|
2323
|
+
}
|
|
2324
|
+
|
|
2325
|
+
export interface DestinationPhoneNumber {
|
|
2326
|
+
/**
|
|
2327
|
+
* Destination phone number in E.164 format.
|
|
2328
|
+
*/
|
|
2329
|
+
phone_number: string;
|
|
2330
|
+
|
|
2331
|
+
type: 'phone_number';
|
|
2332
|
+
|
|
2333
|
+
/**
|
|
2334
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
2335
|
+
* transfer_call ignore_e164_validation).
|
|
2336
|
+
*/
|
|
2337
|
+
ignore_e164_validation?: boolean;
|
|
2338
|
+
}
|
|
2339
|
+
|
|
2340
|
+
export interface SenderCurrentNumber {
|
|
2341
|
+
type: 'current_number';
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
export interface SenderRetellLongCode {
|
|
2345
|
+
type: 'retell_long_code';
|
|
2346
|
+
}
|
|
2259
2347
|
}
|
|
2260
2348
|
|
|
2261
2349
|
export interface CustomTool {
|
|
@@ -3666,6 +3754,23 @@ export namespace LlmCreateParams {
|
|
|
3666
3754
|
*/
|
|
3667
3755
|
execution_message_type?: 'prompt' | 'static_text';
|
|
3668
3756
|
|
|
3757
|
+
/**
|
|
3758
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
3759
|
+
* customer number on the call.
|
|
3760
|
+
*/
|
|
3761
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
3762
|
+
|
|
3763
|
+
/**
|
|
3764
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
3765
|
+
* agent's phone number.
|
|
3766
|
+
*/
|
|
3767
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
3768
|
+
|
|
3769
|
+
/**
|
|
3770
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
3771
|
+
*/
|
|
3772
|
+
speak_after_execution?: boolean;
|
|
3773
|
+
|
|
3669
3774
|
/**
|
|
3670
3775
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
3671
3776
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -3703,6 +3808,33 @@ export namespace LlmCreateParams {
|
|
|
3703
3808
|
|
|
3704
3809
|
type: 'template';
|
|
3705
3810
|
}
|
|
3811
|
+
|
|
3812
|
+
export interface DestinationCustomerNumber {
|
|
3813
|
+
type: 'customer_number';
|
|
3814
|
+
}
|
|
3815
|
+
|
|
3816
|
+
export interface DestinationPhoneNumber {
|
|
3817
|
+
/**
|
|
3818
|
+
* Destination phone number in E.164 format.
|
|
3819
|
+
*/
|
|
3820
|
+
phone_number: string;
|
|
3821
|
+
|
|
3822
|
+
type: 'phone_number';
|
|
3823
|
+
|
|
3824
|
+
/**
|
|
3825
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
3826
|
+
* transfer_call ignore_e164_validation).
|
|
3827
|
+
*/
|
|
3828
|
+
ignore_e164_validation?: boolean;
|
|
3829
|
+
}
|
|
3830
|
+
|
|
3831
|
+
export interface SenderCurrentNumber {
|
|
3832
|
+
type: 'current_number';
|
|
3833
|
+
}
|
|
3834
|
+
|
|
3835
|
+
export interface SenderRetellLongCode {
|
|
3836
|
+
type: 'retell_long_code';
|
|
3837
|
+
}
|
|
3706
3838
|
}
|
|
3707
3839
|
|
|
3708
3840
|
export interface CustomTool {
|
|
@@ -5062,6 +5194,23 @@ export namespace LlmCreateParams {
|
|
|
5062
5194
|
*/
|
|
5063
5195
|
execution_message_type?: 'prompt' | 'static_text';
|
|
5064
5196
|
|
|
5197
|
+
/**
|
|
5198
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
5199
|
+
* customer number on the call.
|
|
5200
|
+
*/
|
|
5201
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
5202
|
+
|
|
5203
|
+
/**
|
|
5204
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
5205
|
+
* agent's phone number.
|
|
5206
|
+
*/
|
|
5207
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
5208
|
+
|
|
5209
|
+
/**
|
|
5210
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
5211
|
+
*/
|
|
5212
|
+
speak_after_execution?: boolean;
|
|
5213
|
+
|
|
5065
5214
|
/**
|
|
5066
5215
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
5067
5216
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -5099,6 +5248,33 @@ export namespace LlmCreateParams {
|
|
|
5099
5248
|
|
|
5100
5249
|
type: 'template';
|
|
5101
5250
|
}
|
|
5251
|
+
|
|
5252
|
+
export interface DestinationCustomerNumber {
|
|
5253
|
+
type: 'customer_number';
|
|
5254
|
+
}
|
|
5255
|
+
|
|
5256
|
+
export interface DestinationPhoneNumber {
|
|
5257
|
+
/**
|
|
5258
|
+
* Destination phone number in E.164 format.
|
|
5259
|
+
*/
|
|
5260
|
+
phone_number: string;
|
|
5261
|
+
|
|
5262
|
+
type: 'phone_number';
|
|
5263
|
+
|
|
5264
|
+
/**
|
|
5265
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
5266
|
+
* transfer_call ignore_e164_validation).
|
|
5267
|
+
*/
|
|
5268
|
+
ignore_e164_validation?: boolean;
|
|
5269
|
+
}
|
|
5270
|
+
|
|
5271
|
+
export interface SenderCurrentNumber {
|
|
5272
|
+
type: 'current_number';
|
|
5273
|
+
}
|
|
5274
|
+
|
|
5275
|
+
export interface SenderRetellLongCode {
|
|
5276
|
+
type: 'retell_long_code';
|
|
5277
|
+
}
|
|
5102
5278
|
}
|
|
5103
5279
|
|
|
5104
5280
|
export interface CustomTool {
|
|
@@ -6511,6 +6687,23 @@ export namespace LlmUpdateParams {
|
|
|
6511
6687
|
*/
|
|
6512
6688
|
execution_message_type?: 'prompt' | 'static_text';
|
|
6513
6689
|
|
|
6690
|
+
/**
|
|
6691
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
6692
|
+
* customer number on the call.
|
|
6693
|
+
*/
|
|
6694
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
6695
|
+
|
|
6696
|
+
/**
|
|
6697
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
6698
|
+
* agent's phone number.
|
|
6699
|
+
*/
|
|
6700
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
6701
|
+
|
|
6702
|
+
/**
|
|
6703
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
6704
|
+
*/
|
|
6705
|
+
speak_after_execution?: boolean;
|
|
6706
|
+
|
|
6514
6707
|
/**
|
|
6515
6708
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
6516
6709
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -6548,6 +6741,33 @@ export namespace LlmUpdateParams {
|
|
|
6548
6741
|
|
|
6549
6742
|
type: 'template';
|
|
6550
6743
|
}
|
|
6744
|
+
|
|
6745
|
+
export interface DestinationCustomerNumber {
|
|
6746
|
+
type: 'customer_number';
|
|
6747
|
+
}
|
|
6748
|
+
|
|
6749
|
+
export interface DestinationPhoneNumber {
|
|
6750
|
+
/**
|
|
6751
|
+
* Destination phone number in E.164 format.
|
|
6752
|
+
*/
|
|
6753
|
+
phone_number: string;
|
|
6754
|
+
|
|
6755
|
+
type: 'phone_number';
|
|
6756
|
+
|
|
6757
|
+
/**
|
|
6758
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
6759
|
+
* transfer_call ignore_e164_validation).
|
|
6760
|
+
*/
|
|
6761
|
+
ignore_e164_validation?: boolean;
|
|
6762
|
+
}
|
|
6763
|
+
|
|
6764
|
+
export interface SenderCurrentNumber {
|
|
6765
|
+
type: 'current_number';
|
|
6766
|
+
}
|
|
6767
|
+
|
|
6768
|
+
export interface SenderRetellLongCode {
|
|
6769
|
+
type: 'retell_long_code';
|
|
6770
|
+
}
|
|
6551
6771
|
}
|
|
6552
6772
|
|
|
6553
6773
|
export interface CustomTool {
|
|
@@ -7907,6 +8127,23 @@ export namespace LlmUpdateParams {
|
|
|
7907
8127
|
*/
|
|
7908
8128
|
execution_message_type?: 'prompt' | 'static_text';
|
|
7909
8129
|
|
|
8130
|
+
/**
|
|
8131
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
8132
|
+
* customer number on the call.
|
|
8133
|
+
*/
|
|
8134
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
8135
|
+
|
|
8136
|
+
/**
|
|
8137
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
8138
|
+
* agent's phone number.
|
|
8139
|
+
*/
|
|
8140
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
8141
|
+
|
|
8142
|
+
/**
|
|
8143
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
8144
|
+
*/
|
|
8145
|
+
speak_after_execution?: boolean;
|
|
8146
|
+
|
|
7910
8147
|
/**
|
|
7911
8148
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
7912
8149
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -7944,6 +8181,33 @@ export namespace LlmUpdateParams {
|
|
|
7944
8181
|
|
|
7945
8182
|
type: 'template';
|
|
7946
8183
|
}
|
|
8184
|
+
|
|
8185
|
+
export interface DestinationCustomerNumber {
|
|
8186
|
+
type: 'customer_number';
|
|
8187
|
+
}
|
|
8188
|
+
|
|
8189
|
+
export interface DestinationPhoneNumber {
|
|
8190
|
+
/**
|
|
8191
|
+
* Destination phone number in E.164 format.
|
|
8192
|
+
*/
|
|
8193
|
+
phone_number: string;
|
|
8194
|
+
|
|
8195
|
+
type: 'phone_number';
|
|
8196
|
+
|
|
8197
|
+
/**
|
|
8198
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
8199
|
+
* transfer_call ignore_e164_validation).
|
|
8200
|
+
*/
|
|
8201
|
+
ignore_e164_validation?: boolean;
|
|
8202
|
+
}
|
|
8203
|
+
|
|
8204
|
+
export interface SenderCurrentNumber {
|
|
8205
|
+
type: 'current_number';
|
|
8206
|
+
}
|
|
8207
|
+
|
|
8208
|
+
export interface SenderRetellLongCode {
|
|
8209
|
+
type: 'retell_long_code';
|
|
8210
|
+
}
|
|
7947
8211
|
}
|
|
7948
8212
|
|
|
7949
8213
|
export interface CustomTool {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '6.2.
|
|
1
|
+
export const VERSION = '6.2.8'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "6.2.
|
|
1
|
+
export declare const VERSION = "6.2.8";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "6.2.
|
|
1
|
+
export declare const VERSION = "6.2.8";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '6.2.
|
|
1
|
+
export const VERSION = '6.2.8'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|