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
|
@@ -1795,6 +1795,20 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
1795
1795
|
* to "prompt".
|
|
1796
1796
|
*/
|
|
1797
1797
|
execution_message_type?: 'prompt' | 'static_text';
|
|
1798
|
+
/**
|
|
1799
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
1800
|
+
* customer number on the call.
|
|
1801
|
+
*/
|
|
1802
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
1803
|
+
/**
|
|
1804
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
1805
|
+
* agent's phone number.
|
|
1806
|
+
*/
|
|
1807
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
1808
|
+
/**
|
|
1809
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
1810
|
+
*/
|
|
1811
|
+
speak_after_execution?: boolean;
|
|
1798
1812
|
/**
|
|
1799
1813
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
1800
1814
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -1826,6 +1840,27 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
1826
1840
|
template: 'info_collection';
|
|
1827
1841
|
type: 'template';
|
|
1828
1842
|
}
|
|
1843
|
+
interface DestinationCustomerNumber {
|
|
1844
|
+
type: 'customer_number';
|
|
1845
|
+
}
|
|
1846
|
+
interface DestinationPhoneNumber {
|
|
1847
|
+
/**
|
|
1848
|
+
* Destination phone number in E.164 format.
|
|
1849
|
+
*/
|
|
1850
|
+
phone_number: string;
|
|
1851
|
+
type: 'phone_number';
|
|
1852
|
+
/**
|
|
1853
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
1854
|
+
* transfer_call ignore_e164_validation).
|
|
1855
|
+
*/
|
|
1856
|
+
ignore_e164_validation?: boolean;
|
|
1857
|
+
}
|
|
1858
|
+
interface SenderCurrentNumber {
|
|
1859
|
+
type: 'current_number';
|
|
1860
|
+
}
|
|
1861
|
+
interface SenderRetellLongCode {
|
|
1862
|
+
type: 'retell_long_code';
|
|
1863
|
+
}
|
|
1829
1864
|
}
|
|
1830
1865
|
interface CustomTool {
|
|
1831
1866
|
/**
|
|
@@ -4897,6 +4932,16 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
4897
4932
|
* Optional name for display purposes
|
|
4898
4933
|
*/
|
|
4899
4934
|
name?: string;
|
|
4935
|
+
/**
|
|
4936
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
4937
|
+
* customer number on the call.
|
|
4938
|
+
*/
|
|
4939
|
+
sms_destination?: SMSNode.DestinationCustomerNumber | SMSNode.DestinationPhoneNumber | unknown;
|
|
4940
|
+
/**
|
|
4941
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
4942
|
+
* agent's phone number.
|
|
4943
|
+
*/
|
|
4944
|
+
sms_sender?: SMSNode.SenderCurrentNumber | SMSNode.SenderRetellLongCode | unknown;
|
|
4900
4945
|
}
|
|
4901
4946
|
namespace SMSNode {
|
|
4902
4947
|
/**
|
|
@@ -5249,6 +5294,27 @@ export declare namespace ConversationFlowComponentResponse {
|
|
|
5249
5294
|
*/
|
|
5250
5295
|
ultrafast?: boolean;
|
|
5251
5296
|
}
|
|
5297
|
+
interface DestinationCustomerNumber {
|
|
5298
|
+
type: 'customer_number';
|
|
5299
|
+
}
|
|
5300
|
+
interface DestinationPhoneNumber {
|
|
5301
|
+
/**
|
|
5302
|
+
* Destination phone number in E.164 format.
|
|
5303
|
+
*/
|
|
5304
|
+
phone_number: string;
|
|
5305
|
+
type: 'phone_number';
|
|
5306
|
+
/**
|
|
5307
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
5308
|
+
* transfer_call ignore_e164_validation).
|
|
5309
|
+
*/
|
|
5310
|
+
ignore_e164_validation?: boolean;
|
|
5311
|
+
}
|
|
5312
|
+
interface SenderCurrentNumber {
|
|
5313
|
+
type: 'current_number';
|
|
5314
|
+
}
|
|
5315
|
+
interface SenderRetellLongCode {
|
|
5316
|
+
type: 'retell_long_code';
|
|
5317
|
+
}
|
|
5252
5318
|
}
|
|
5253
5319
|
interface ExtractDynamicVariablesNode {
|
|
5254
5320
|
/**
|
|
@@ -9472,6 +9538,20 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
9472
9538
|
* to "prompt".
|
|
9473
9539
|
*/
|
|
9474
9540
|
execution_message_type?: 'prompt' | 'static_text';
|
|
9541
|
+
/**
|
|
9542
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
9543
|
+
* customer number on the call.
|
|
9544
|
+
*/
|
|
9545
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
9546
|
+
/**
|
|
9547
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
9548
|
+
* agent's phone number.
|
|
9549
|
+
*/
|
|
9550
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
9551
|
+
/**
|
|
9552
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
9553
|
+
*/
|
|
9554
|
+
speak_after_execution?: boolean;
|
|
9475
9555
|
/**
|
|
9476
9556
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
9477
9557
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -9503,6 +9583,27 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
9503
9583
|
template: 'info_collection';
|
|
9504
9584
|
type: 'template';
|
|
9505
9585
|
}
|
|
9586
|
+
interface DestinationCustomerNumber {
|
|
9587
|
+
type: 'customer_number';
|
|
9588
|
+
}
|
|
9589
|
+
interface DestinationPhoneNumber {
|
|
9590
|
+
/**
|
|
9591
|
+
* Destination phone number in E.164 format.
|
|
9592
|
+
*/
|
|
9593
|
+
phone_number: string;
|
|
9594
|
+
type: 'phone_number';
|
|
9595
|
+
/**
|
|
9596
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
9597
|
+
* transfer_call ignore_e164_validation).
|
|
9598
|
+
*/
|
|
9599
|
+
ignore_e164_validation?: boolean;
|
|
9600
|
+
}
|
|
9601
|
+
interface SenderCurrentNumber {
|
|
9602
|
+
type: 'current_number';
|
|
9603
|
+
}
|
|
9604
|
+
interface SenderRetellLongCode {
|
|
9605
|
+
type: 'retell_long_code';
|
|
9606
|
+
}
|
|
9506
9607
|
}
|
|
9507
9608
|
interface CustomTool {
|
|
9508
9609
|
/**
|
|
@@ -12574,6 +12675,16 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
12574
12675
|
* Optional name for display purposes
|
|
12575
12676
|
*/
|
|
12576
12677
|
name?: string;
|
|
12678
|
+
/**
|
|
12679
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
12680
|
+
* customer number on the call.
|
|
12681
|
+
*/
|
|
12682
|
+
sms_destination?: SMSNode.DestinationCustomerNumber | SMSNode.DestinationPhoneNumber | unknown;
|
|
12683
|
+
/**
|
|
12684
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
12685
|
+
* agent's phone number.
|
|
12686
|
+
*/
|
|
12687
|
+
sms_sender?: SMSNode.SenderCurrentNumber | SMSNode.SenderRetellLongCode | unknown;
|
|
12577
12688
|
}
|
|
12578
12689
|
namespace SMSNode {
|
|
12579
12690
|
/**
|
|
@@ -12926,6 +13037,27 @@ export declare namespace ConversationFlowComponentCreateParams {
|
|
|
12926
13037
|
*/
|
|
12927
13038
|
ultrafast?: boolean;
|
|
12928
13039
|
}
|
|
13040
|
+
interface DestinationCustomerNumber {
|
|
13041
|
+
type: 'customer_number';
|
|
13042
|
+
}
|
|
13043
|
+
interface DestinationPhoneNumber {
|
|
13044
|
+
/**
|
|
13045
|
+
* Destination phone number in E.164 format.
|
|
13046
|
+
*/
|
|
13047
|
+
phone_number: string;
|
|
13048
|
+
type: 'phone_number';
|
|
13049
|
+
/**
|
|
13050
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
13051
|
+
* transfer_call ignore_e164_validation).
|
|
13052
|
+
*/
|
|
13053
|
+
ignore_e164_validation?: boolean;
|
|
13054
|
+
}
|
|
13055
|
+
interface SenderCurrentNumber {
|
|
13056
|
+
type: 'current_number';
|
|
13057
|
+
}
|
|
13058
|
+
interface SenderRetellLongCode {
|
|
13059
|
+
type: 'retell_long_code';
|
|
13060
|
+
}
|
|
12929
13061
|
}
|
|
12930
13062
|
interface ExtractDynamicVariablesNode {
|
|
12931
13063
|
/**
|
|
@@ -17169,6 +17301,20 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
17169
17301
|
* to "prompt".
|
|
17170
17302
|
*/
|
|
17171
17303
|
execution_message_type?: 'prompt' | 'static_text';
|
|
17304
|
+
/**
|
|
17305
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
17306
|
+
* customer number on the call.
|
|
17307
|
+
*/
|
|
17308
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
17309
|
+
/**
|
|
17310
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
17311
|
+
* agent's phone number.
|
|
17312
|
+
*/
|
|
17313
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
17314
|
+
/**
|
|
17315
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
17316
|
+
*/
|
|
17317
|
+
speak_after_execution?: boolean;
|
|
17172
17318
|
/**
|
|
17173
17319
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
17174
17320
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -17200,6 +17346,27 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
17200
17346
|
template: 'info_collection';
|
|
17201
17347
|
type: 'template';
|
|
17202
17348
|
}
|
|
17349
|
+
interface DestinationCustomerNumber {
|
|
17350
|
+
type: 'customer_number';
|
|
17351
|
+
}
|
|
17352
|
+
interface DestinationPhoneNumber {
|
|
17353
|
+
/**
|
|
17354
|
+
* Destination phone number in E.164 format.
|
|
17355
|
+
*/
|
|
17356
|
+
phone_number: string;
|
|
17357
|
+
type: 'phone_number';
|
|
17358
|
+
/**
|
|
17359
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
17360
|
+
* transfer_call ignore_e164_validation).
|
|
17361
|
+
*/
|
|
17362
|
+
ignore_e164_validation?: boolean;
|
|
17363
|
+
}
|
|
17364
|
+
interface SenderCurrentNumber {
|
|
17365
|
+
type: 'current_number';
|
|
17366
|
+
}
|
|
17367
|
+
interface SenderRetellLongCode {
|
|
17368
|
+
type: 'retell_long_code';
|
|
17369
|
+
}
|
|
17203
17370
|
}
|
|
17204
17371
|
interface CustomTool {
|
|
17205
17372
|
/**
|
|
@@ -20271,6 +20438,16 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
20271
20438
|
* Optional name for display purposes
|
|
20272
20439
|
*/
|
|
20273
20440
|
name?: string;
|
|
20441
|
+
/**
|
|
20442
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
20443
|
+
* customer number on the call.
|
|
20444
|
+
*/
|
|
20445
|
+
sms_destination?: SMSNode.DestinationCustomerNumber | SMSNode.DestinationPhoneNumber | unknown;
|
|
20446
|
+
/**
|
|
20447
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
20448
|
+
* agent's phone number.
|
|
20449
|
+
*/
|
|
20450
|
+
sms_sender?: SMSNode.SenderCurrentNumber | SMSNode.SenderRetellLongCode | unknown;
|
|
20274
20451
|
}
|
|
20275
20452
|
namespace SMSNode {
|
|
20276
20453
|
/**
|
|
@@ -20623,6 +20800,27 @@ export declare namespace ConversationFlowComponentUpdateParams {
|
|
|
20623
20800
|
*/
|
|
20624
20801
|
ultrafast?: boolean;
|
|
20625
20802
|
}
|
|
20803
|
+
interface DestinationCustomerNumber {
|
|
20804
|
+
type: 'customer_number';
|
|
20805
|
+
}
|
|
20806
|
+
interface DestinationPhoneNumber {
|
|
20807
|
+
/**
|
|
20808
|
+
* Destination phone number in E.164 format.
|
|
20809
|
+
*/
|
|
20810
|
+
phone_number: string;
|
|
20811
|
+
type: 'phone_number';
|
|
20812
|
+
/**
|
|
20813
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
20814
|
+
* transfer_call ignore_e164_validation).
|
|
20815
|
+
*/
|
|
20816
|
+
ignore_e164_validation?: boolean;
|
|
20817
|
+
}
|
|
20818
|
+
interface SenderCurrentNumber {
|
|
20819
|
+
type: 'current_number';
|
|
20820
|
+
}
|
|
20821
|
+
interface SenderRetellLongCode {
|
|
20822
|
+
type: 'retell_long_code';
|
|
20823
|
+
}
|
|
20626
20824
|
}
|
|
20627
20825
|
interface ExtractDynamicVariablesNode {
|
|
20628
20826
|
/**
|