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
|
@@ -481,10 +481,7 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
481
481
|
/**
|
|
482
482
|
* Specifies what language(s) the agent will operate in. Accepts either a single
|
|
483
483
|
* locale (e.g. `en-US`) or an array of locales for multilingual agents (e.g.
|
|
484
|
-
* `["en-US","es-ES"]`).
|
|
485
|
-
* as a scalar, and is stored and returned as the ten locales it used to mean. It
|
|
486
|
-
* must not appear inside the array form. Send an explicit locale array instead. If
|
|
487
|
-
* unset, defaults to `en-US`.
|
|
484
|
+
* `["en-US","es-ES"]`). If unset, defaults to `en-US`.
|
|
488
485
|
*/
|
|
489
486
|
language?:
|
|
490
487
|
| 'en-US'
|
|
@@ -550,7 +547,6 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
550
547
|
| 'ur-IN'
|
|
551
548
|
| 'yue-CN'
|
|
552
549
|
| 'uk-UA'
|
|
553
|
-
| 'multi'
|
|
554
550
|
| Array<
|
|
555
551
|
| 'en-US'
|
|
556
552
|
| 'en-IN'
|
|
@@ -1822,6 +1818,26 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
1822
1818
|
*/
|
|
1823
1819
|
execution_message_type?: 'prompt' | 'static_text';
|
|
1824
1820
|
|
|
1821
|
+
/**
|
|
1822
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
1823
|
+
* customer number on the call.
|
|
1824
|
+
*/
|
|
1825
|
+
sms_destination?:
|
|
1826
|
+
| SendSMSTool.DestinationCustomerNumber
|
|
1827
|
+
| SendSMSTool.DestinationPhoneNumber
|
|
1828
|
+
| unknown;
|
|
1829
|
+
|
|
1830
|
+
/**
|
|
1831
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
1832
|
+
* agent's phone number.
|
|
1833
|
+
*/
|
|
1834
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
1835
|
+
|
|
1836
|
+
/**
|
|
1837
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
1838
|
+
*/
|
|
1839
|
+
speak_after_execution?: boolean;
|
|
1840
|
+
|
|
1825
1841
|
/**
|
|
1826
1842
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
1827
1843
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -1898,6 +1914,33 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
1898
1914
|
right?: string;
|
|
1899
1915
|
}
|
|
1900
1916
|
}
|
|
1917
|
+
|
|
1918
|
+
export interface DestinationCustomerNumber {
|
|
1919
|
+
type: 'customer_number';
|
|
1920
|
+
}
|
|
1921
|
+
|
|
1922
|
+
export interface DestinationPhoneNumber {
|
|
1923
|
+
/**
|
|
1924
|
+
* Destination phone number in E.164 format.
|
|
1925
|
+
*/
|
|
1926
|
+
phone_number: string;
|
|
1927
|
+
|
|
1928
|
+
type: 'phone_number';
|
|
1929
|
+
|
|
1930
|
+
/**
|
|
1931
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
1932
|
+
* transfer_call ignore_e164_validation).
|
|
1933
|
+
*/
|
|
1934
|
+
ignore_e164_validation?: boolean;
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1937
|
+
export interface SenderCurrentNumber {
|
|
1938
|
+
type: 'current_number';
|
|
1939
|
+
}
|
|
1940
|
+
|
|
1941
|
+
export interface SenderRetellLongCode {
|
|
1942
|
+
type: 'retell_long_code';
|
|
1943
|
+
}
|
|
1901
1944
|
}
|
|
1902
1945
|
|
|
1903
1946
|
export interface AppTool {
|
package/src/resources/call.ts
CHANGED
|
@@ -177,8 +177,8 @@ export class Call extends APIResource {
|
|
|
177
177
|
/**
|
|
178
178
|
* Take over an in-progress call from the AI agent. The agent stops responding and
|
|
179
179
|
* the specified live-listen participant is allowed to speak directly to the
|
|
180
|
-
* caller. The call must be in ONGOING status.
|
|
181
|
-
*
|
|
180
|
+
* caller. The call must be in ONGOING status. Calls cannot be taken over while a
|
|
181
|
+
* PCI session is active.
|
|
182
182
|
*
|
|
183
183
|
* @example
|
|
184
184
|
* ```ts
|
|
@@ -7405,10 +7405,7 @@ export namespace CallCreatePhoneCallParams {
|
|
|
7405
7405
|
/**
|
|
7406
7406
|
* Specifies what language(s) the agent will operate in. Accepts either a single
|
|
7407
7407
|
* locale (e.g. `en-US`) or an array of locales for multilingual agents (e.g.
|
|
7408
|
-
* `["en-US","es-ES"]`).
|
|
7409
|
-
* as a scalar, and is stored and returned as the ten locales it used to mean. It
|
|
7410
|
-
* must not appear inside the array form. Send an explicit locale array instead. If
|
|
7411
|
-
* unset, defaults to `en-US`.
|
|
7408
|
+
* `["en-US","es-ES"]`). If unset, defaults to `en-US`.
|
|
7412
7409
|
*/
|
|
7413
7410
|
language?:
|
|
7414
7411
|
| 'en-US'
|
|
@@ -7474,7 +7471,6 @@ export namespace CallCreatePhoneCallParams {
|
|
|
7474
7471
|
| 'ur-IN'
|
|
7475
7472
|
| 'yue-CN'
|
|
7476
7473
|
| 'uk-UA'
|
|
7477
|
-
| 'multi'
|
|
7478
7474
|
| Array<
|
|
7479
7475
|
| 'en-US'
|
|
7480
7476
|
| 'en-IN'
|
|
@@ -8746,6 +8742,26 @@ export namespace CallCreatePhoneCallParams {
|
|
|
8746
8742
|
*/
|
|
8747
8743
|
execution_message_type?: 'prompt' | 'static_text';
|
|
8748
8744
|
|
|
8745
|
+
/**
|
|
8746
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
8747
|
+
* customer number on the call.
|
|
8748
|
+
*/
|
|
8749
|
+
sms_destination?:
|
|
8750
|
+
| SendSMSTool.DestinationCustomerNumber
|
|
8751
|
+
| SendSMSTool.DestinationPhoneNumber
|
|
8752
|
+
| unknown;
|
|
8753
|
+
|
|
8754
|
+
/**
|
|
8755
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
8756
|
+
* agent's phone number.
|
|
8757
|
+
*/
|
|
8758
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
8759
|
+
|
|
8760
|
+
/**
|
|
8761
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
8762
|
+
*/
|
|
8763
|
+
speak_after_execution?: boolean;
|
|
8764
|
+
|
|
8749
8765
|
/**
|
|
8750
8766
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
8751
8767
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -8822,6 +8838,33 @@ export namespace CallCreatePhoneCallParams {
|
|
|
8822
8838
|
right?: string;
|
|
8823
8839
|
}
|
|
8824
8840
|
}
|
|
8841
|
+
|
|
8842
|
+
export interface DestinationCustomerNumber {
|
|
8843
|
+
type: 'customer_number';
|
|
8844
|
+
}
|
|
8845
|
+
|
|
8846
|
+
export interface DestinationPhoneNumber {
|
|
8847
|
+
/**
|
|
8848
|
+
* Destination phone number in E.164 format.
|
|
8849
|
+
*/
|
|
8850
|
+
phone_number: string;
|
|
8851
|
+
|
|
8852
|
+
type: 'phone_number';
|
|
8853
|
+
|
|
8854
|
+
/**
|
|
8855
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
8856
|
+
* transfer_call ignore_e164_validation).
|
|
8857
|
+
*/
|
|
8858
|
+
ignore_e164_validation?: boolean;
|
|
8859
|
+
}
|
|
8860
|
+
|
|
8861
|
+
export interface SenderCurrentNumber {
|
|
8862
|
+
type: 'current_number';
|
|
8863
|
+
}
|
|
8864
|
+
|
|
8865
|
+
export interface SenderRetellLongCode {
|
|
8866
|
+
type: 'retell_long_code';
|
|
8867
|
+
}
|
|
8825
8868
|
}
|
|
8826
8869
|
|
|
8827
8870
|
export interface AppTool {
|
|
@@ -9961,10 +10004,7 @@ export namespace CallCreateWebCallParams {
|
|
|
9961
10004
|
/**
|
|
9962
10005
|
* Specifies what language(s) the agent will operate in. Accepts either a single
|
|
9963
10006
|
* locale (e.g. `en-US`) or an array of locales for multilingual agents (e.g.
|
|
9964
|
-
* `["en-US","es-ES"]`).
|
|
9965
|
-
* as a scalar, and is stored and returned as the ten locales it used to mean. It
|
|
9966
|
-
* must not appear inside the array form. Send an explicit locale array instead. If
|
|
9967
|
-
* unset, defaults to `en-US`.
|
|
10007
|
+
* `["en-US","es-ES"]`). If unset, defaults to `en-US`.
|
|
9968
10008
|
*/
|
|
9969
10009
|
language?:
|
|
9970
10010
|
| 'en-US'
|
|
@@ -10030,7 +10070,6 @@ export namespace CallCreateWebCallParams {
|
|
|
10030
10070
|
| 'ur-IN'
|
|
10031
10071
|
| 'yue-CN'
|
|
10032
10072
|
| 'uk-UA'
|
|
10033
|
-
| 'multi'
|
|
10034
10073
|
| Array<
|
|
10035
10074
|
| 'en-US'
|
|
10036
10075
|
| 'en-IN'
|
|
@@ -11302,6 +11341,26 @@ export namespace CallCreateWebCallParams {
|
|
|
11302
11341
|
*/
|
|
11303
11342
|
execution_message_type?: 'prompt' | 'static_text';
|
|
11304
11343
|
|
|
11344
|
+
/**
|
|
11345
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
11346
|
+
* customer number on the call.
|
|
11347
|
+
*/
|
|
11348
|
+
sms_destination?:
|
|
11349
|
+
| SendSMSTool.DestinationCustomerNumber
|
|
11350
|
+
| SendSMSTool.DestinationPhoneNumber
|
|
11351
|
+
| unknown;
|
|
11352
|
+
|
|
11353
|
+
/**
|
|
11354
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
11355
|
+
* agent's phone number.
|
|
11356
|
+
*/
|
|
11357
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
11358
|
+
|
|
11359
|
+
/**
|
|
11360
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
11361
|
+
*/
|
|
11362
|
+
speak_after_execution?: boolean;
|
|
11363
|
+
|
|
11305
11364
|
/**
|
|
11306
11365
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
11307
11366
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -11378,6 +11437,33 @@ export namespace CallCreateWebCallParams {
|
|
|
11378
11437
|
right?: string;
|
|
11379
11438
|
}
|
|
11380
11439
|
}
|
|
11440
|
+
|
|
11441
|
+
export interface DestinationCustomerNumber {
|
|
11442
|
+
type: 'customer_number';
|
|
11443
|
+
}
|
|
11444
|
+
|
|
11445
|
+
export interface DestinationPhoneNumber {
|
|
11446
|
+
/**
|
|
11447
|
+
* Destination phone number in E.164 format.
|
|
11448
|
+
*/
|
|
11449
|
+
phone_number: string;
|
|
11450
|
+
|
|
11451
|
+
type: 'phone_number';
|
|
11452
|
+
|
|
11453
|
+
/**
|
|
11454
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
11455
|
+
* transfer_call ignore_e164_validation).
|
|
11456
|
+
*/
|
|
11457
|
+
ignore_e164_validation?: boolean;
|
|
11458
|
+
}
|
|
11459
|
+
|
|
11460
|
+
export interface SenderCurrentNumber {
|
|
11461
|
+
type: 'current_number';
|
|
11462
|
+
}
|
|
11463
|
+
|
|
11464
|
+
export interface SenderRetellLongCode {
|
|
11465
|
+
type: 'retell_long_code';
|
|
11466
|
+
}
|
|
11381
11467
|
}
|
|
11382
11468
|
|
|
11383
11469
|
export interface AppTool {
|
|
@@ -12517,10 +12603,7 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
12517
12603
|
/**
|
|
12518
12604
|
* Specifies what language(s) the agent will operate in. Accepts either a single
|
|
12519
12605
|
* locale (e.g. `en-US`) or an array of locales for multilingual agents (e.g.
|
|
12520
|
-
* `["en-US","es-ES"]`).
|
|
12521
|
-
* as a scalar, and is stored and returned as the ten locales it used to mean. It
|
|
12522
|
-
* must not appear inside the array form. Send an explicit locale array instead. If
|
|
12523
|
-
* unset, defaults to `en-US`.
|
|
12606
|
+
* `["en-US","es-ES"]`). If unset, defaults to `en-US`.
|
|
12524
12607
|
*/
|
|
12525
12608
|
language?:
|
|
12526
12609
|
| 'en-US'
|
|
@@ -12586,7 +12669,6 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
12586
12669
|
| 'ur-IN'
|
|
12587
12670
|
| 'yue-CN'
|
|
12588
12671
|
| 'uk-UA'
|
|
12589
|
-
| 'multi'
|
|
12590
12672
|
| Array<
|
|
12591
12673
|
| 'en-US'
|
|
12592
12674
|
| 'en-IN'
|
|
@@ -13858,6 +13940,26 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
13858
13940
|
*/
|
|
13859
13941
|
execution_message_type?: 'prompt' | 'static_text';
|
|
13860
13942
|
|
|
13943
|
+
/**
|
|
13944
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
13945
|
+
* customer number on the call.
|
|
13946
|
+
*/
|
|
13947
|
+
sms_destination?:
|
|
13948
|
+
| SendSMSTool.DestinationCustomerNumber
|
|
13949
|
+
| SendSMSTool.DestinationPhoneNumber
|
|
13950
|
+
| unknown;
|
|
13951
|
+
|
|
13952
|
+
/**
|
|
13953
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
13954
|
+
* agent's phone number.
|
|
13955
|
+
*/
|
|
13956
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
13957
|
+
|
|
13958
|
+
/**
|
|
13959
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
13960
|
+
*/
|
|
13961
|
+
speak_after_execution?: boolean;
|
|
13962
|
+
|
|
13861
13963
|
/**
|
|
13862
13964
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
13863
13965
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -13934,6 +14036,33 @@ export namespace CallRegisterPhoneCallParams {
|
|
|
13934
14036
|
right?: string;
|
|
13935
14037
|
}
|
|
13936
14038
|
}
|
|
14039
|
+
|
|
14040
|
+
export interface DestinationCustomerNumber {
|
|
14041
|
+
type: 'customer_number';
|
|
14042
|
+
}
|
|
14043
|
+
|
|
14044
|
+
export interface DestinationPhoneNumber {
|
|
14045
|
+
/**
|
|
14046
|
+
* Destination phone number in E.164 format.
|
|
14047
|
+
*/
|
|
14048
|
+
phone_number: string;
|
|
14049
|
+
|
|
14050
|
+
type: 'phone_number';
|
|
14051
|
+
|
|
14052
|
+
/**
|
|
14053
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
14054
|
+
* transfer_call ignore_e164_validation).
|
|
14055
|
+
*/
|
|
14056
|
+
ignore_e164_validation?: boolean;
|
|
14057
|
+
}
|
|
14058
|
+
|
|
14059
|
+
export interface SenderCurrentNumber {
|
|
14060
|
+
type: 'current_number';
|
|
14061
|
+
}
|
|
14062
|
+
|
|
14063
|
+
export interface SenderRetellLongCode {
|
|
14064
|
+
type: 'retell_long_code';
|
|
14065
|
+
}
|
|
13937
14066
|
}
|
|
13938
14067
|
|
|
13939
14068
|
export interface AppTool {
|
|
@@ -261,10 +261,7 @@ export interface ChatAgentResponse {
|
|
|
261
261
|
/**
|
|
262
262
|
* Specifies what language(s) the agent will operate in. Accepts either a single
|
|
263
263
|
* locale (e.g. `en-US`) or an array of locales for multilingual agents (e.g.
|
|
264
|
-
* `["en-US","es-ES"]`).
|
|
265
|
-
* as a scalar, and is stored and returned as the ten locales it used to mean. It
|
|
266
|
-
* must not appear inside the array form. Send an explicit locale array instead. If
|
|
267
|
-
* unset, defaults to `en-US`.
|
|
264
|
+
* `["en-US","es-ES"]`). If unset, defaults to `en-US`.
|
|
268
265
|
*/
|
|
269
266
|
language?:
|
|
270
267
|
| 'en-US'
|
|
@@ -330,7 +327,6 @@ export interface ChatAgentResponse {
|
|
|
330
327
|
| 'ur-IN'
|
|
331
328
|
| 'yue-CN'
|
|
332
329
|
| 'uk-UA'
|
|
333
|
-
| 'multi'
|
|
334
330
|
| Array<
|
|
335
331
|
| 'en-US'
|
|
336
332
|
| 'en-IN'
|
|
@@ -1411,6 +1407,23 @@ export namespace ChatAgentResponse {
|
|
|
1411
1407
|
*/
|
|
1412
1408
|
execution_message_type?: 'prompt' | 'static_text';
|
|
1413
1409
|
|
|
1410
|
+
/**
|
|
1411
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
1412
|
+
* customer number on the call.
|
|
1413
|
+
*/
|
|
1414
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
1415
|
+
|
|
1416
|
+
/**
|
|
1417
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
1418
|
+
* agent's phone number.
|
|
1419
|
+
*/
|
|
1420
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
1421
|
+
|
|
1422
|
+
/**
|
|
1423
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
1424
|
+
*/
|
|
1425
|
+
speak_after_execution?: boolean;
|
|
1426
|
+
|
|
1414
1427
|
/**
|
|
1415
1428
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
1416
1429
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -1487,6 +1500,33 @@ export namespace ChatAgentResponse {
|
|
|
1487
1500
|
right?: string;
|
|
1488
1501
|
}
|
|
1489
1502
|
}
|
|
1503
|
+
|
|
1504
|
+
export interface DestinationCustomerNumber {
|
|
1505
|
+
type: 'customer_number';
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
export interface DestinationPhoneNumber {
|
|
1509
|
+
/**
|
|
1510
|
+
* Destination phone number in E.164 format.
|
|
1511
|
+
*/
|
|
1512
|
+
phone_number: string;
|
|
1513
|
+
|
|
1514
|
+
type: 'phone_number';
|
|
1515
|
+
|
|
1516
|
+
/**
|
|
1517
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
1518
|
+
* transfer_call ignore_e164_validation).
|
|
1519
|
+
*/
|
|
1520
|
+
ignore_e164_validation?: boolean;
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
export interface SenderCurrentNumber {
|
|
1524
|
+
type: 'current_number';
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
export interface SenderRetellLongCode {
|
|
1528
|
+
type: 'retell_long_code';
|
|
1529
|
+
}
|
|
1490
1530
|
}
|
|
1491
1531
|
|
|
1492
1532
|
export interface AppTool {
|
|
@@ -1998,10 +2038,7 @@ export interface ChatAgentCreateParams {
|
|
|
1998
2038
|
/**
|
|
1999
2039
|
* Specifies what language(s) the agent will operate in. Accepts either a single
|
|
2000
2040
|
* locale (e.g. `en-US`) or an array of locales for multilingual agents (e.g.
|
|
2001
|
-
* `["en-US","es-ES"]`).
|
|
2002
|
-
* as a scalar, and is stored and returned as the ten locales it used to mean. It
|
|
2003
|
-
* must not appear inside the array form. Send an explicit locale array instead. If
|
|
2004
|
-
* unset, defaults to `en-US`.
|
|
2041
|
+
* `["en-US","es-ES"]`). If unset, defaults to `en-US`.
|
|
2005
2042
|
*/
|
|
2006
2043
|
language?:
|
|
2007
2044
|
| 'en-US'
|
|
@@ -2067,7 +2104,6 @@ export interface ChatAgentCreateParams {
|
|
|
2067
2104
|
| 'ur-IN'
|
|
2068
2105
|
| 'yue-CN'
|
|
2069
2106
|
| 'uk-UA'
|
|
2070
|
-
| 'multi'
|
|
2071
2107
|
| Array<
|
|
2072
2108
|
| 'en-US'
|
|
2073
2109
|
| 'en-IN'
|
|
@@ -3143,6 +3179,23 @@ export namespace ChatAgentCreateParams {
|
|
|
3143
3179
|
*/
|
|
3144
3180
|
execution_message_type?: 'prompt' | 'static_text';
|
|
3145
3181
|
|
|
3182
|
+
/**
|
|
3183
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
3184
|
+
* customer number on the call.
|
|
3185
|
+
*/
|
|
3186
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
3187
|
+
|
|
3188
|
+
/**
|
|
3189
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
3190
|
+
* agent's phone number.
|
|
3191
|
+
*/
|
|
3192
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
3193
|
+
|
|
3194
|
+
/**
|
|
3195
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
3196
|
+
*/
|
|
3197
|
+
speak_after_execution?: boolean;
|
|
3198
|
+
|
|
3146
3199
|
/**
|
|
3147
3200
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
3148
3201
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -3219,6 +3272,33 @@ export namespace ChatAgentCreateParams {
|
|
|
3219
3272
|
right?: string;
|
|
3220
3273
|
}
|
|
3221
3274
|
}
|
|
3275
|
+
|
|
3276
|
+
export interface DestinationCustomerNumber {
|
|
3277
|
+
type: 'customer_number';
|
|
3278
|
+
}
|
|
3279
|
+
|
|
3280
|
+
export interface DestinationPhoneNumber {
|
|
3281
|
+
/**
|
|
3282
|
+
* Destination phone number in E.164 format.
|
|
3283
|
+
*/
|
|
3284
|
+
phone_number: string;
|
|
3285
|
+
|
|
3286
|
+
type: 'phone_number';
|
|
3287
|
+
|
|
3288
|
+
/**
|
|
3289
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
3290
|
+
* transfer_call ignore_e164_validation).
|
|
3291
|
+
*/
|
|
3292
|
+
ignore_e164_validation?: boolean;
|
|
3293
|
+
}
|
|
3294
|
+
|
|
3295
|
+
export interface SenderCurrentNumber {
|
|
3296
|
+
type: 'current_number';
|
|
3297
|
+
}
|
|
3298
|
+
|
|
3299
|
+
export interface SenderRetellLongCode {
|
|
3300
|
+
type: 'retell_long_code';
|
|
3301
|
+
}
|
|
3222
3302
|
}
|
|
3223
3303
|
|
|
3224
3304
|
export interface AppTool {
|
|
@@ -3679,10 +3759,7 @@ export interface ChatAgentUpdateParams {
|
|
|
3679
3759
|
/**
|
|
3680
3760
|
* Body param: Specifies what language(s) the agent will operate in. Accepts either
|
|
3681
3761
|
* a single locale (e.g. `en-US`) or an array of locales for multilingual agents
|
|
3682
|
-
* (e.g. `["en-US","es-ES"]`).
|
|
3683
|
-
* accepted as a scalar, and is stored and returned as the ten locales it used to
|
|
3684
|
-
* mean. It must not appear inside the array form. Send an explicit locale array
|
|
3685
|
-
* instead. If unset, defaults to `en-US`.
|
|
3762
|
+
* (e.g. `["en-US","es-ES"]`). If unset, defaults to `en-US`.
|
|
3686
3763
|
*/
|
|
3687
3764
|
language?:
|
|
3688
3765
|
| 'en-US'
|
|
@@ -3748,7 +3825,6 @@ export interface ChatAgentUpdateParams {
|
|
|
3748
3825
|
| 'ur-IN'
|
|
3749
3826
|
| 'yue-CN'
|
|
3750
3827
|
| 'uk-UA'
|
|
3751
|
-
| 'multi'
|
|
3752
3828
|
| Array<
|
|
3753
3829
|
| 'en-US'
|
|
3754
3830
|
| 'en-IN'
|
|
@@ -4791,6 +4867,23 @@ export namespace ChatAgentUpdateParams {
|
|
|
4791
4867
|
*/
|
|
4792
4868
|
execution_message_type?: 'prompt' | 'static_text';
|
|
4793
4869
|
|
|
4870
|
+
/**
|
|
4871
|
+
* SMS destination number configuration. If omitted, the message is sent to the
|
|
4872
|
+
* customer number on the call.
|
|
4873
|
+
*/
|
|
4874
|
+
sms_destination?: SendSMSTool.DestinationCustomerNumber | SendSMSTool.DestinationPhoneNumber | unknown;
|
|
4875
|
+
|
|
4876
|
+
/**
|
|
4877
|
+
* SMS sender number configuration. If omitted, the message is sent from the
|
|
4878
|
+
* agent's phone number.
|
|
4879
|
+
*/
|
|
4880
|
+
sms_sender?: SendSMSTool.SenderCurrentNumber | SendSMSTool.SenderRetellLongCode | unknown;
|
|
4881
|
+
|
|
4882
|
+
/**
|
|
4883
|
+
* Whether the agent should speak after the SMS tool finishes execution.
|
|
4884
|
+
*/
|
|
4885
|
+
speak_after_execution?: boolean;
|
|
4886
|
+
|
|
4794
4887
|
/**
|
|
4795
4888
|
* If true, the agent will speak a short line before sending the SMS. If omitted,
|
|
4796
4889
|
* defaults to true (same as end_call / transfer_call tools).
|
|
@@ -4867,6 +4960,33 @@ export namespace ChatAgentUpdateParams {
|
|
|
4867
4960
|
right?: string;
|
|
4868
4961
|
}
|
|
4869
4962
|
}
|
|
4963
|
+
|
|
4964
|
+
export interface DestinationCustomerNumber {
|
|
4965
|
+
type: 'customer_number';
|
|
4966
|
+
}
|
|
4967
|
+
|
|
4968
|
+
export interface DestinationPhoneNumber {
|
|
4969
|
+
/**
|
|
4970
|
+
* Destination phone number in E.164 format.
|
|
4971
|
+
*/
|
|
4972
|
+
phone_number: string;
|
|
4973
|
+
|
|
4974
|
+
type: 'phone_number';
|
|
4975
|
+
|
|
4976
|
+
/**
|
|
4977
|
+
* If true, skip E.164 validation for this phone number (same semantics as
|
|
4978
|
+
* transfer_call ignore_e164_validation).
|
|
4979
|
+
*/
|
|
4980
|
+
ignore_e164_validation?: boolean;
|
|
4981
|
+
}
|
|
4982
|
+
|
|
4983
|
+
export interface SenderCurrentNumber {
|
|
4984
|
+
type: 'current_number';
|
|
4985
|
+
}
|
|
4986
|
+
|
|
4987
|
+
export interface SenderRetellLongCode {
|
|
4988
|
+
type: 'retell_long_code';
|
|
4989
|
+
}
|
|
4870
4990
|
}
|
|
4871
4991
|
|
|
4872
4992
|
export interface AppTool {
|