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/resources/llm.d.mts
CHANGED
|
@@ -619,6 +619,20 @@ export declare namespace LlmResponse {
|
|
|
619
619
|
* to "prompt".
|
|
620
620
|
*/
|
|
621
621
|
execution_message_type?: 'prompt' | 'static_text';
|
|
622
|
+
/**
|
|
623
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
624
|
+
* customer number on the call.
|
|
625
|
+
*/
|
|
626
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
627
|
+
/**
|
|
628
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
629
|
+
* agent's phone number.
|
|
630
|
+
*/
|
|
631
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
632
|
+
/**
|
|
633
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
634
|
+
*/
|
|
635
|
+
speak_after_execution?: boolean;
|
|
622
636
|
/**
|
|
623
637
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
624
638
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -650,6 +664,27 @@ export declare namespace LlmResponse {
|
|
|
650
664
|
template: 'info_collection';
|
|
651
665
|
type: 'template';
|
|
652
666
|
}
|
|
667
|
+
interface DestinationCustomerNumber {
|
|
668
|
+
type: 'customer_number';
|
|
669
|
+
}
|
|
670
|
+
interface DestinationPhoneNumber {
|
|
671
|
+
/**
|
|
672
|
+
* Destination phone number in E.164 format.
|
|
673
|
+
*/
|
|
674
|
+
phone_number: string;
|
|
675
|
+
type: 'phone_number';
|
|
676
|
+
/**
|
|
677
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
678
|
+
* transfer_call ignore_e164_validation).
|
|
679
|
+
*/
|
|
680
|
+
ignore_e164_validation?: boolean;
|
|
681
|
+
}
|
|
682
|
+
interface SenderCurrentNumber {
|
|
683
|
+
type: 'current_number';
|
|
684
|
+
}
|
|
685
|
+
interface SenderRetellLongCode {
|
|
686
|
+
type: 'retell_long_code';
|
|
687
|
+
}
|
|
653
688
|
}
|
|
654
689
|
interface CustomTool {
|
|
655
690
|
/**
|
|
@@ -1791,6 +1826,20 @@ export declare namespace LlmResponse {
|
|
|
1791
1826
|
* to "prompt".
|
|
1792
1827
|
*/
|
|
1793
1828
|
execution_message_type?: 'prompt' | 'static_text';
|
|
1829
|
+
/**
|
|
1830
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
1831
|
+
* customer number on the call.
|
|
1832
|
+
*/
|
|
1833
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
1834
|
+
/**
|
|
1835
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
1836
|
+
* agent's phone number.
|
|
1837
|
+
*/
|
|
1838
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
1839
|
+
/**
|
|
1840
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
1841
|
+
*/
|
|
1842
|
+
speak_after_execution?: boolean;
|
|
1794
1843
|
/**
|
|
1795
1844
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
1796
1845
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -1822,6 +1871,27 @@ export declare namespace LlmResponse {
|
|
|
1822
1871
|
template: 'info_collection';
|
|
1823
1872
|
type: 'template';
|
|
1824
1873
|
}
|
|
1874
|
+
interface DestinationCustomerNumber {
|
|
1875
|
+
type: 'customer_number';
|
|
1876
|
+
}
|
|
1877
|
+
interface DestinationPhoneNumber {
|
|
1878
|
+
/**
|
|
1879
|
+
* Destination phone number in E.164 format.
|
|
1880
|
+
*/
|
|
1881
|
+
phone_number: string;
|
|
1882
|
+
type: 'phone_number';
|
|
1883
|
+
/**
|
|
1884
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
1885
|
+
* transfer_call ignore_e164_validation).
|
|
1886
|
+
*/
|
|
1887
|
+
ignore_e164_validation?: boolean;
|
|
1888
|
+
}
|
|
1889
|
+
interface SenderCurrentNumber {
|
|
1890
|
+
type: 'current_number';
|
|
1891
|
+
}
|
|
1892
|
+
interface SenderRetellLongCode {
|
|
1893
|
+
type: 'retell_long_code';
|
|
1894
|
+
}
|
|
1825
1895
|
}
|
|
1826
1896
|
interface CustomTool {
|
|
1827
1897
|
/**
|
|
@@ -2968,6 +3038,20 @@ export declare namespace LlmCreateParams {
|
|
|
2968
3038
|
* to "prompt".
|
|
2969
3039
|
*/
|
|
2970
3040
|
execution_message_type?: 'prompt' | 'static_text';
|
|
3041
|
+
/**
|
|
3042
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
3043
|
+
* customer number on the call.
|
|
3044
|
+
*/
|
|
3045
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
3046
|
+
/**
|
|
3047
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
3048
|
+
* agent's phone number.
|
|
3049
|
+
*/
|
|
3050
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
3051
|
+
/**
|
|
3052
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
3053
|
+
*/
|
|
3054
|
+
speak_after_execution?: boolean;
|
|
2971
3055
|
/**
|
|
2972
3056
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
2973
3057
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -2999,6 +3083,27 @@ export declare namespace LlmCreateParams {
|
|
|
2999
3083
|
template: 'info_collection';
|
|
3000
3084
|
type: 'template';
|
|
3001
3085
|
}
|
|
3086
|
+
interface DestinationCustomerNumber {
|
|
3087
|
+
type: 'customer_number';
|
|
3088
|
+
}
|
|
3089
|
+
interface DestinationPhoneNumber {
|
|
3090
|
+
/**
|
|
3091
|
+
* Destination phone number in E.164 format.
|
|
3092
|
+
*/
|
|
3093
|
+
phone_number: string;
|
|
3094
|
+
type: 'phone_number';
|
|
3095
|
+
/**
|
|
3096
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
3097
|
+
* transfer_call ignore_e164_validation).
|
|
3098
|
+
*/
|
|
3099
|
+
ignore_e164_validation?: boolean;
|
|
3100
|
+
}
|
|
3101
|
+
interface SenderCurrentNumber {
|
|
3102
|
+
type: 'current_number';
|
|
3103
|
+
}
|
|
3104
|
+
interface SenderRetellLongCode {
|
|
3105
|
+
type: 'retell_long_code';
|
|
3106
|
+
}
|
|
3002
3107
|
}
|
|
3003
3108
|
interface CustomTool {
|
|
3004
3109
|
/**
|
|
@@ -4140,6 +4245,20 @@ export declare namespace LlmCreateParams {
|
|
|
4140
4245
|
* to "prompt".
|
|
4141
4246
|
*/
|
|
4142
4247
|
execution_message_type?: 'prompt' | 'static_text';
|
|
4248
|
+
/**
|
|
4249
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
4250
|
+
* customer number on the call.
|
|
4251
|
+
*/
|
|
4252
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
4253
|
+
/**
|
|
4254
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
4255
|
+
* agent's phone number.
|
|
4256
|
+
*/
|
|
4257
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
4258
|
+
/**
|
|
4259
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
4260
|
+
*/
|
|
4261
|
+
speak_after_execution?: boolean;
|
|
4143
4262
|
/**
|
|
4144
4263
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
4145
4264
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -4171,6 +4290,27 @@ export declare namespace LlmCreateParams {
|
|
|
4171
4290
|
template: 'info_collection';
|
|
4172
4291
|
type: 'template';
|
|
4173
4292
|
}
|
|
4293
|
+
interface DestinationCustomerNumber {
|
|
4294
|
+
type: 'customer_number';
|
|
4295
|
+
}
|
|
4296
|
+
interface DestinationPhoneNumber {
|
|
4297
|
+
/**
|
|
4298
|
+
* Destination phone number in E.164 format.
|
|
4299
|
+
*/
|
|
4300
|
+
phone_number: string;
|
|
4301
|
+
type: 'phone_number';
|
|
4302
|
+
/**
|
|
4303
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
4304
|
+
* transfer_call ignore_e164_validation).
|
|
4305
|
+
*/
|
|
4306
|
+
ignore_e164_validation?: boolean;
|
|
4307
|
+
}
|
|
4308
|
+
interface SenderCurrentNumber {
|
|
4309
|
+
type: 'current_number';
|
|
4310
|
+
}
|
|
4311
|
+
interface SenderRetellLongCode {
|
|
4312
|
+
type: 'retell_long_code';
|
|
4313
|
+
}
|
|
4174
4314
|
}
|
|
4175
4315
|
interface CustomTool {
|
|
4176
4316
|
/**
|
|
@@ -5320,6 +5460,20 @@ export declare namespace LlmUpdateParams {
|
|
|
5320
5460
|
* to "prompt".
|
|
5321
5461
|
*/
|
|
5322
5462
|
execution_message_type?: 'prompt' | 'static_text';
|
|
5463
|
+
/**
|
|
5464
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
5465
|
+
* customer number on the call.
|
|
5466
|
+
*/
|
|
5467
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
5468
|
+
/**
|
|
5469
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
5470
|
+
* agent's phone number.
|
|
5471
|
+
*/
|
|
5472
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
5473
|
+
/**
|
|
5474
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
5475
|
+
*/
|
|
5476
|
+
speak_after_execution?: boolean;
|
|
5323
5477
|
/**
|
|
5324
5478
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
5325
5479
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -5351,6 +5505,27 @@ export declare namespace LlmUpdateParams {
|
|
|
5351
5505
|
template: 'info_collection';
|
|
5352
5506
|
type: 'template';
|
|
5353
5507
|
}
|
|
5508
|
+
interface DestinationCustomerNumber {
|
|
5509
|
+
type: 'customer_number';
|
|
5510
|
+
}
|
|
5511
|
+
interface DestinationPhoneNumber {
|
|
5512
|
+
/**
|
|
5513
|
+
* Destination phone number in E.164 format.
|
|
5514
|
+
*/
|
|
5515
|
+
phone_number: string;
|
|
5516
|
+
type: 'phone_number';
|
|
5517
|
+
/**
|
|
5518
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
5519
|
+
* transfer_call ignore_e164_validation).
|
|
5520
|
+
*/
|
|
5521
|
+
ignore_e164_validation?: boolean;
|
|
5522
|
+
}
|
|
5523
|
+
interface SenderCurrentNumber {
|
|
5524
|
+
type: 'current_number';
|
|
5525
|
+
}
|
|
5526
|
+
interface SenderRetellLongCode {
|
|
5527
|
+
type: 'retell_long_code';
|
|
5528
|
+
}
|
|
5354
5529
|
}
|
|
5355
5530
|
interface CustomTool {
|
|
5356
5531
|
/**
|
|
@@ -6492,6 +6667,20 @@ export declare namespace LlmUpdateParams {
|
|
|
6492
6667
|
* to "prompt".
|
|
6493
6668
|
*/
|
|
6494
6669
|
execution_message_type?: 'prompt' | 'static_text';
|
|
6670
|
+
/**
|
|
6671
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
6672
|
+
* customer number on the call.
|
|
6673
|
+
*/
|
|
6674
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
6675
|
+
/**
|
|
6676
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
6677
|
+
* agent's phone number.
|
|
6678
|
+
*/
|
|
6679
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
6680
|
+
/**
|
|
6681
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
6682
|
+
*/
|
|
6683
|
+
speak_after_execution?: boolean;
|
|
6495
6684
|
/**
|
|
6496
6685
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
6497
6686
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -6523,6 +6712,27 @@ export declare namespace LlmUpdateParams {
|
|
|
6523
6712
|
template: 'info_collection';
|
|
6524
6713
|
type: 'template';
|
|
6525
6714
|
}
|
|
6715
|
+
interface DestinationCustomerNumber {
|
|
6716
|
+
type: 'customer_number';
|
|
6717
|
+
}
|
|
6718
|
+
interface DestinationPhoneNumber {
|
|
6719
|
+
/**
|
|
6720
|
+
* Destination phone number in E.164 format.
|
|
6721
|
+
*/
|
|
6722
|
+
phone_number: string;
|
|
6723
|
+
type: 'phone_number';
|
|
6724
|
+
/**
|
|
6725
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
6726
|
+
* transfer_call ignore_e164_validation).
|
|
6727
|
+
*/
|
|
6728
|
+
ignore_e164_validation?: boolean;
|
|
6729
|
+
}
|
|
6730
|
+
interface SenderCurrentNumber {
|
|
6731
|
+
type: 'current_number';
|
|
6732
|
+
}
|
|
6733
|
+
interface SenderRetellLongCode {
|
|
6734
|
+
type: 'retell_long_code';
|
|
6735
|
+
}
|
|
6526
6736
|
}
|
|
6527
6737
|
interface CustomTool {
|
|
6528
6738
|
/**
|