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
|
@@ -2565,6 +2565,23 @@ export namespace ConversationFlowComponentResponse {
|
|
|
2565
2565
|
*/
|
|
2566
2566
|
execution_message_type?: 'prompt' | 'static_text';
|
|
2567
2567
|
|
|
2568
|
+
/**
|
|
2569
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
2570
|
+
* customer number on the call.
|
|
2571
|
+
*/
|
|
2572
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
2573
|
+
|
|
2574
|
+
/**
|
|
2575
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
2576
|
+
* agent's phone number.
|
|
2577
|
+
*/
|
|
2578
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
2579
|
+
|
|
2580
|
+
/**
|
|
2581
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
2582
|
+
*/
|
|
2583
|
+
speak_after_execution?: boolean;
|
|
2584
|
+
|
|
2568
2585
|
/**
|
|
2569
2586
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
2570
2587
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -2602,6 +2619,33 @@ export namespace ConversationFlowComponentResponse {
|
|
|
2602
2619
|
|
|
2603
2620
|
type: 'template';
|
|
2604
2621
|
}
|
|
2622
|
+
|
|
2623
|
+
export interface DestinationCustomerNumber {
|
|
2624
|
+
type: 'customer_number';
|
|
2625
|
+
}
|
|
2626
|
+
|
|
2627
|
+
export interface DestinationPhoneNumber {
|
|
2628
|
+
/**
|
|
2629
|
+
* Destination phone number in E.164 format.
|
|
2630
|
+
*/
|
|
2631
|
+
phone_number: string;
|
|
2632
|
+
|
|
2633
|
+
type: 'phone_number';
|
|
2634
|
+
|
|
2635
|
+
/**
|
|
2636
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
2637
|
+
* transfer_call ignore_e164_validation).
|
|
2638
|
+
*/
|
|
2639
|
+
ignore_e164_validation?: boolean;
|
|
2640
|
+
}
|
|
2641
|
+
|
|
2642
|
+
export interface SenderCurrentNumber {
|
|
2643
|
+
type: 'current_number';
|
|
2644
|
+
}
|
|
2645
|
+
|
|
2646
|
+
export interface SenderRetellLongCode {
|
|
2647
|
+
type: 'retell_long_code';
|
|
2648
|
+
}
|
|
2605
2649
|
}
|
|
2606
2650
|
|
|
2607
2651
|
export interface CustomTool {
|
|
@@ -6988,6 +7032,18 @@ export namespace ConversationFlowComponentResponse {
|
|
|
6988
7032
|
* Optional name for display purposes
|
|
6989
7033
|
*/
|
|
6990
7034
|
name?: string;
|
|
7035
|
+
|
|
7036
|
+
/**
|
|
7037
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
7038
|
+
* customer number on the call.
|
|
7039
|
+
*/
|
|
7040
|
+
sms_destination?: SMSNode.DestinationCustomerNumber | SMSNode.DestinationPhoneNumber | unknown;
|
|
7041
|
+
|
|
7042
|
+
/**
|
|
7043
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
7044
|
+
* agent's phone number.
|
|
7045
|
+
*/
|
|
7046
|
+
sms_sender?: SMSNode.SenderCurrentNumber | SMSNode.SenderRetellLongCode | unknown;
|
|
6991
7047
|
}
|
|
6992
7048
|
|
|
6993
7049
|
export namespace SMSNode {
|
|
@@ -7533,6 +7589,33 @@ export namespace ConversationFlowComponentResponse {
|
|
|
7533
7589
|
*/
|
|
7534
7590
|
ultrafast?: boolean;
|
|
7535
7591
|
}
|
|
7592
|
+
|
|
7593
|
+
export interface DestinationCustomerNumber {
|
|
7594
|
+
type: 'customer_number';
|
|
7595
|
+
}
|
|
7596
|
+
|
|
7597
|
+
export interface DestinationPhoneNumber {
|
|
7598
|
+
/**
|
|
7599
|
+
* Destination phone number in E.164 format.
|
|
7600
|
+
*/
|
|
7601
|
+
phone_number: string;
|
|
7602
|
+
|
|
7603
|
+
type: 'phone_number';
|
|
7604
|
+
|
|
7605
|
+
/**
|
|
7606
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
7607
|
+
* transfer_call ignore_e164_validation).
|
|
7608
|
+
*/
|
|
7609
|
+
ignore_e164_validation?: boolean;
|
|
7610
|
+
}
|
|
7611
|
+
|
|
7612
|
+
export interface SenderCurrentNumber {
|
|
7613
|
+
type: 'current_number';
|
|
7614
|
+
}
|
|
7615
|
+
|
|
7616
|
+
export interface SenderRetellLongCode {
|
|
7617
|
+
type: 'retell_long_code';
|
|
7618
|
+
}
|
|
7536
7619
|
}
|
|
7537
7620
|
|
|
7538
7621
|
export interface ExtractDynamicVariablesNode {
|
|
@@ -13614,6 +13697,23 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
13614
13697
|
*/
|
|
13615
13698
|
execution_message_type?: 'prompt' | 'static_text';
|
|
13616
13699
|
|
|
13700
|
+
/**
|
|
13701
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
13702
|
+
* customer number on the call.
|
|
13703
|
+
*/
|
|
13704
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
13705
|
+
|
|
13706
|
+
/**
|
|
13707
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
13708
|
+
* agent's phone number.
|
|
13709
|
+
*/
|
|
13710
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
13711
|
+
|
|
13712
|
+
/**
|
|
13713
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
13714
|
+
*/
|
|
13715
|
+
speak_after_execution?: boolean;
|
|
13716
|
+
|
|
13617
13717
|
/**
|
|
13618
13718
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
13619
13719
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -13651,6 +13751,33 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
13651
13751
|
|
|
13652
13752
|
type: 'template';
|
|
13653
13753
|
}
|
|
13754
|
+
|
|
13755
|
+
export interface DestinationCustomerNumber {
|
|
13756
|
+
type: 'customer_number';
|
|
13757
|
+
}
|
|
13758
|
+
|
|
13759
|
+
export interface DestinationPhoneNumber {
|
|
13760
|
+
/**
|
|
13761
|
+
* Destination phone number in E.164 format.
|
|
13762
|
+
*/
|
|
13763
|
+
phone_number: string;
|
|
13764
|
+
|
|
13765
|
+
type: 'phone_number';
|
|
13766
|
+
|
|
13767
|
+
/**
|
|
13768
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
13769
|
+
* transfer_call ignore_e164_validation).
|
|
13770
|
+
*/
|
|
13771
|
+
ignore_e164_validation?: boolean;
|
|
13772
|
+
}
|
|
13773
|
+
|
|
13774
|
+
export interface SenderCurrentNumber {
|
|
13775
|
+
type: 'current_number';
|
|
13776
|
+
}
|
|
13777
|
+
|
|
13778
|
+
export interface SenderRetellLongCode {
|
|
13779
|
+
type: 'retell_long_code';
|
|
13780
|
+
}
|
|
13654
13781
|
}
|
|
13655
13782
|
|
|
13656
13783
|
export interface CustomTool {
|
|
@@ -18037,6 +18164,18 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
18037
18164
|
* Optional name for display purposes
|
|
18038
18165
|
*/
|
|
18039
18166
|
name?: string;
|
|
18167
|
+
|
|
18168
|
+
/**
|
|
18169
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
18170
|
+
* customer number on the call.
|
|
18171
|
+
*/
|
|
18172
|
+
sms_destination?: SMSNode.DestinationCustomerNumber | SMSNode.DestinationPhoneNumber | unknown;
|
|
18173
|
+
|
|
18174
|
+
/**
|
|
18175
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
18176
|
+
* agent's phone number.
|
|
18177
|
+
*/
|
|
18178
|
+
sms_sender?: SMSNode.SenderCurrentNumber | SMSNode.SenderRetellLongCode | unknown;
|
|
18040
18179
|
}
|
|
18041
18180
|
|
|
18042
18181
|
export namespace SMSNode {
|
|
@@ -18582,6 +18721,33 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
18582
18721
|
*/
|
|
18583
18722
|
ultrafast?: boolean;
|
|
18584
18723
|
}
|
|
18724
|
+
|
|
18725
|
+
export interface DestinationCustomerNumber {
|
|
18726
|
+
type: 'customer_number';
|
|
18727
|
+
}
|
|
18728
|
+
|
|
18729
|
+
export interface DestinationPhoneNumber {
|
|
18730
|
+
/**
|
|
18731
|
+
* Destination phone number in E.164 format.
|
|
18732
|
+
*/
|
|
18733
|
+
phone_number: string;
|
|
18734
|
+
|
|
18735
|
+
type: 'phone_number';
|
|
18736
|
+
|
|
18737
|
+
/**
|
|
18738
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
18739
|
+
* transfer_call ignore_e164_validation).
|
|
18740
|
+
*/
|
|
18741
|
+
ignore_e164_validation?: boolean;
|
|
18742
|
+
}
|
|
18743
|
+
|
|
18744
|
+
export interface SenderCurrentNumber {
|
|
18745
|
+
type: 'current_number';
|
|
18746
|
+
}
|
|
18747
|
+
|
|
18748
|
+
export interface SenderRetellLongCode {
|
|
18749
|
+
type: 'retell_long_code';
|
|
18750
|
+
}
|
|
18585
18751
|
}
|
|
18586
18752
|
|
|
18587
18753
|
export interface ExtractDynamicVariablesNode {
|
|
@@ -24683,6 +24849,23 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
24683
24849
|
*/
|
|
24684
24850
|
execution_message_type?: 'prompt' | 'static_text';
|
|
24685
24851
|
|
|
24852
|
+
/**
|
|
24853
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
24854
|
+
* customer number on the call.
|
|
24855
|
+
*/
|
|
24856
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
24857
|
+
|
|
24858
|
+
/**
|
|
24859
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
24860
|
+
* agent's phone number.
|
|
24861
|
+
*/
|
|
24862
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
24863
|
+
|
|
24864
|
+
/**
|
|
24865
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
24866
|
+
*/
|
|
24867
|
+
speak_after_execution?: boolean;
|
|
24868
|
+
|
|
24686
24869
|
/**
|
|
24687
24870
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
24688
24871
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -24720,6 +24903,33 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
24720
24903
|
|
|
24721
24904
|
type: 'template';
|
|
24722
24905
|
}
|
|
24906
|
+
|
|
24907
|
+
export interface DestinationCustomerNumber {
|
|
24908
|
+
type: 'customer_number';
|
|
24909
|
+
}
|
|
24910
|
+
|
|
24911
|
+
export interface DestinationPhoneNumber {
|
|
24912
|
+
/**
|
|
24913
|
+
* Destination phone number in E.164 format.
|
|
24914
|
+
*/
|
|
24915
|
+
phone_number: string;
|
|
24916
|
+
|
|
24917
|
+
type: 'phone_number';
|
|
24918
|
+
|
|
24919
|
+
/**
|
|
24920
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
24921
|
+
* transfer_call ignore_e164_validation).
|
|
24922
|
+
*/
|
|
24923
|
+
ignore_e164_validation?: boolean;
|
|
24924
|
+
}
|
|
24925
|
+
|
|
24926
|
+
export interface SenderCurrentNumber {
|
|
24927
|
+
type: 'current_number';
|
|
24928
|
+
}
|
|
24929
|
+
|
|
24930
|
+
export interface SenderRetellLongCode {
|
|
24931
|
+
type: 'retell_long_code';
|
|
24932
|
+
}
|
|
24723
24933
|
}
|
|
24724
24934
|
|
|
24725
24935
|
export interface CustomTool {
|
|
@@ -29106,6 +29316,18 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
29106
29316
|
* Optional name for display purposes
|
|
29107
29317
|
*/
|
|
29108
29318
|
name?: string;
|
|
29319
|
+
|
|
29320
|
+
/**
|
|
29321
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
29322
|
+
* customer number on the call.
|
|
29323
|
+
*/
|
|
29324
|
+
sms_destination?: SMSNode.DestinationCustomerNumber | SMSNode.DestinationPhoneNumber | unknown;
|
|
29325
|
+
|
|
29326
|
+
/**
|
|
29327
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
29328
|
+
* agent's phone number.
|
|
29329
|
+
*/
|
|
29330
|
+
sms_sender?: SMSNode.SenderCurrentNumber | SMSNode.SenderRetellLongCode | unknown;
|
|
29109
29331
|
}
|
|
29110
29332
|
|
|
29111
29333
|
export namespace SMSNode {
|
|
@@ -29651,6 +29873,33 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
29651
29873
|
*/
|
|
29652
29874
|
ultrafast?: boolean;
|
|
29653
29875
|
}
|
|
29876
|
+
|
|
29877
|
+
export interface DestinationCustomerNumber {
|
|
29878
|
+
type: 'customer_number';
|
|
29879
|
+
}
|
|
29880
|
+
|
|
29881
|
+
export interface DestinationPhoneNumber {
|
|
29882
|
+
/**
|
|
29883
|
+
* Destination phone number in E.164 format.
|
|
29884
|
+
*/
|
|
29885
|
+
phone_number: string;
|
|
29886
|
+
|
|
29887
|
+
type: 'phone_number';
|
|
29888
|
+
|
|
29889
|
+
/**
|
|
29890
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
29891
|
+
* transfer_call ignore_e164_validation).
|
|
29892
|
+
*/
|
|
29893
|
+
ignore_e164_validation?: boolean;
|
|
29894
|
+
}
|
|
29895
|
+
|
|
29896
|
+
export interface SenderCurrentNumber {
|
|
29897
|
+
type: 'current_number';
|
|
29898
|
+
}
|
|
29899
|
+
|
|
29900
|
+
export interface SenderRetellLongCode {
|
|
29901
|
+
type: 'retell_long_code';
|
|
29902
|
+
}
|
|
29654
29903
|
}
|
|
29655
29904
|
|
|
29656
29905
|
export interface ExtractDynamicVariablesNode {
|