retell-sdk 4.24.0 → 4.26.0
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 +28 -0
- package/core.d.ts +1 -1
- package/core.d.ts.map +1 -1
- package/core.js +5 -5
- package/core.js.map +1 -1
- package/core.mjs +5 -5
- package/core.mjs.map +1 -1
- package/index.d.mts +4 -4
- package/index.d.ts +4 -4
- package/index.d.ts.map +1 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent.d.ts +142 -110
- package/resources/agent.d.ts.map +1 -1
- package/resources/agent.js +19 -7
- package/resources/agent.js.map +1 -1
- package/resources/agent.mjs +19 -7
- package/resources/agent.mjs.map +1 -1
- package/resources/call.d.ts +26 -0
- package/resources/call.d.ts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/llm.d.ts +68 -72
- package/resources/llm.d.ts.map +1 -1
- package/resources/llm.js +13 -7
- package/resources/llm.js.map +1 -1
- package/resources/llm.mjs +13 -7
- package/resources/llm.mjs.map +1 -1
- package/resources/phone-number.d.ts +39 -1
- package/resources/phone-number.d.ts.map +1 -1
- package/src/core.ts +4 -4
- package/src/index.ts +13 -1
- package/src/resources/agent.ts +173 -112
- package/src/resources/call.ts +32 -0
- package/src/resources/index.ts +3 -0
- package/src/resources/llm.ts +137 -98
- package/src/resources/phone-number.ts +47 -1
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/llm.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../resource';
|
|
4
|
+
import { isRequestOptions } from '../core';
|
|
4
5
|
import * as Core from '../core';
|
|
5
6
|
|
|
6
7
|
export class Llm extends APIResource {
|
|
@@ -15,15 +16,37 @@ export class Llm extends APIResource {
|
|
|
15
16
|
/**
|
|
16
17
|
* Retrieve details of a specific Retell LLM Response Engine
|
|
17
18
|
*/
|
|
18
|
-
retrieve(
|
|
19
|
-
|
|
19
|
+
retrieve(
|
|
20
|
+
llmId: string,
|
|
21
|
+
query?: LlmRetrieveParams,
|
|
22
|
+
options?: Core.RequestOptions,
|
|
23
|
+
): Core.APIPromise<LlmResponse>;
|
|
24
|
+
retrieve(llmId: string, options?: Core.RequestOptions): Core.APIPromise<LlmResponse>;
|
|
25
|
+
retrieve(
|
|
26
|
+
llmId: string,
|
|
27
|
+
query: LlmRetrieveParams | Core.RequestOptions = {},
|
|
28
|
+
options?: Core.RequestOptions,
|
|
29
|
+
): Core.APIPromise<LlmResponse> {
|
|
30
|
+
if (isRequestOptions(query)) {
|
|
31
|
+
return this.retrieve(llmId, {}, query);
|
|
32
|
+
}
|
|
33
|
+
return this._client.get(`/get-retell-llm/${llmId}`, { query, ...options });
|
|
20
34
|
}
|
|
21
35
|
|
|
22
36
|
/**
|
|
23
37
|
* Update an existing Retell LLM Response Engine
|
|
24
38
|
*/
|
|
25
|
-
update(
|
|
26
|
-
|
|
39
|
+
update(
|
|
40
|
+
llmId: string,
|
|
41
|
+
params: LlmUpdateParams,
|
|
42
|
+
options?: Core.RequestOptions,
|
|
43
|
+
): Core.APIPromise<LlmResponse> {
|
|
44
|
+
const { query_version, ...body } = params;
|
|
45
|
+
return this._client.patch(`/update-retell-llm/${llmId}`, {
|
|
46
|
+
query: { version: query_version },
|
|
47
|
+
body,
|
|
48
|
+
...options,
|
|
49
|
+
});
|
|
27
50
|
}
|
|
28
51
|
|
|
29
52
|
/**
|
|
@@ -105,7 +128,14 @@ export interface LlmResponse {
|
|
|
105
128
|
/**
|
|
106
129
|
* Select the underlying text LLM. If not set, would default to gpt-4o.
|
|
107
130
|
*/
|
|
108
|
-
model?:
|
|
131
|
+
model?:
|
|
132
|
+
| 'gpt-4o'
|
|
133
|
+
| 'gpt-4o-mini'
|
|
134
|
+
| 'claude-3.7-sonnet'
|
|
135
|
+
| 'claude-3.5-haiku'
|
|
136
|
+
| 'gemini-2.0-flash'
|
|
137
|
+
| 'gemini-2.0-flash-lite'
|
|
138
|
+
| null;
|
|
109
139
|
|
|
110
140
|
/**
|
|
111
141
|
* If set to true, will use high priority pool with more dedicated resource to
|
|
@@ -149,6 +179,11 @@ export interface LlmResponse {
|
|
|
149
179
|
* processing is needed. Default to false.
|
|
150
180
|
*/
|
|
151
181
|
tool_call_strict_mode?: boolean;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Version of the Retell LLM.
|
|
185
|
+
*/
|
|
186
|
+
version?: number | null;
|
|
152
187
|
}
|
|
153
188
|
|
|
154
189
|
export namespace LlmResponse {
|
|
@@ -177,6 +212,10 @@ export namespace LlmResponse {
|
|
|
177
212
|
*/
|
|
178
213
|
name: string;
|
|
179
214
|
|
|
215
|
+
transfer_destination:
|
|
216
|
+
| TransferCallTool.TransferDestinationPredefined
|
|
217
|
+
| TransferCallTool.TransferDestinationInferred;
|
|
218
|
+
|
|
180
219
|
type: 'transfer_call';
|
|
181
220
|
|
|
182
221
|
/**
|
|
@@ -185,12 +224,6 @@ export namespace LlmResponse {
|
|
|
185
224
|
*/
|
|
186
225
|
description?: string;
|
|
187
226
|
|
|
188
|
-
/**
|
|
189
|
-
* The number to transfer to in E.164 format or a dynamic variable like
|
|
190
|
-
* {{transfer_number}}.
|
|
191
|
-
*/
|
|
192
|
-
number?: string | null;
|
|
193
|
-
|
|
194
227
|
/**
|
|
195
228
|
* If set to true, will show transferee (the user, not the AI agent) as caller when
|
|
196
229
|
* transferring, requires the telephony side to support SIP REFER to PSTN. This is
|
|
@@ -199,10 +232,6 @@ export namespace LlmResponse {
|
|
|
199
232
|
*/
|
|
200
233
|
show_transferee_as_caller?: boolean | null;
|
|
201
234
|
|
|
202
|
-
transfer_destination?:
|
|
203
|
-
| TransferCallTool.TransferDestinationPredefined
|
|
204
|
-
| TransferCallTool.TransferDestinationInferred;
|
|
205
|
-
|
|
206
235
|
/**
|
|
207
236
|
* If set, when transfer is successful, will perform a warm handoff. Can leave
|
|
208
237
|
* either a static message or a dynamic one based on prompt. Set to null to disable
|
|
@@ -571,6 +600,10 @@ export namespace LlmResponse {
|
|
|
571
600
|
*/
|
|
572
601
|
name: string;
|
|
573
602
|
|
|
603
|
+
transfer_destination:
|
|
604
|
+
| TransferCallTool.TransferDestinationPredefined
|
|
605
|
+
| TransferCallTool.TransferDestinationInferred;
|
|
606
|
+
|
|
574
607
|
type: 'transfer_call';
|
|
575
608
|
|
|
576
609
|
/**
|
|
@@ -579,12 +612,6 @@ export namespace LlmResponse {
|
|
|
579
612
|
*/
|
|
580
613
|
description?: string;
|
|
581
614
|
|
|
582
|
-
/**
|
|
583
|
-
* The number to transfer to in E.164 format or a dynamic variable like
|
|
584
|
-
* {{transfer_number}}.
|
|
585
|
-
*/
|
|
586
|
-
number?: string | null;
|
|
587
|
-
|
|
588
615
|
/**
|
|
589
616
|
* If set to true, will show transferee (the user, not the AI agent) as caller when
|
|
590
617
|
* transferring, requires the telephony side to support SIP REFER to PSTN. This is
|
|
@@ -593,10 +620,6 @@ export namespace LlmResponse {
|
|
|
593
620
|
*/
|
|
594
621
|
show_transferee_as_caller?: boolean | null;
|
|
595
622
|
|
|
596
|
-
transfer_destination?:
|
|
597
|
-
| TransferCallTool.TransferDestinationPredefined
|
|
598
|
-
| TransferCallTool.TransferDestinationInferred;
|
|
599
|
-
|
|
600
623
|
/**
|
|
601
624
|
* If set, when transfer is successful, will perform a warm handoff. Can leave
|
|
602
625
|
* either a static message or a dynamic one based on prompt. Set to null to disable
|
|
@@ -899,7 +922,14 @@ export interface LlmCreateParams {
|
|
|
899
922
|
/**
|
|
900
923
|
* Select the underlying text LLM. If not set, would default to gpt-4o.
|
|
901
924
|
*/
|
|
902
|
-
model?:
|
|
925
|
+
model?:
|
|
926
|
+
| 'gpt-4o'
|
|
927
|
+
| 'gpt-4o-mini'
|
|
928
|
+
| 'claude-3.7-sonnet'
|
|
929
|
+
| 'claude-3.5-haiku'
|
|
930
|
+
| 'gemini-2.0-flash'
|
|
931
|
+
| 'gemini-2.0-flash-lite'
|
|
932
|
+
| null;
|
|
903
933
|
|
|
904
934
|
/**
|
|
905
935
|
* If set to true, will use high priority pool with more dedicated resource to
|
|
@@ -943,6 +973,11 @@ export interface LlmCreateParams {
|
|
|
943
973
|
* processing is needed. Default to false.
|
|
944
974
|
*/
|
|
945
975
|
tool_call_strict_mode?: boolean;
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* Version of the Retell LLM.
|
|
979
|
+
*/
|
|
980
|
+
version?: number | null;
|
|
946
981
|
}
|
|
947
982
|
|
|
948
983
|
export namespace LlmCreateParams {
|
|
@@ -971,6 +1006,10 @@ export namespace LlmCreateParams {
|
|
|
971
1006
|
*/
|
|
972
1007
|
name: string;
|
|
973
1008
|
|
|
1009
|
+
transfer_destination:
|
|
1010
|
+
| TransferCallTool.TransferDestinationPredefined
|
|
1011
|
+
| TransferCallTool.TransferDestinationInferred;
|
|
1012
|
+
|
|
974
1013
|
type: 'transfer_call';
|
|
975
1014
|
|
|
976
1015
|
/**
|
|
@@ -979,12 +1018,6 @@ export namespace LlmCreateParams {
|
|
|
979
1018
|
*/
|
|
980
1019
|
description?: string;
|
|
981
1020
|
|
|
982
|
-
/**
|
|
983
|
-
* The number to transfer to in E.164 format or a dynamic variable like
|
|
984
|
-
* {{transfer_number}}.
|
|
985
|
-
*/
|
|
986
|
-
number?: string | null;
|
|
987
|
-
|
|
988
1021
|
/**
|
|
989
1022
|
* If set to true, will show transferee (the user, not the AI agent) as caller when
|
|
990
1023
|
* transferring, requires the telephony side to support SIP REFER to PSTN. This is
|
|
@@ -993,10 +1026,6 @@ export namespace LlmCreateParams {
|
|
|
993
1026
|
*/
|
|
994
1027
|
show_transferee_as_caller?: boolean | null;
|
|
995
1028
|
|
|
996
|
-
transfer_destination?:
|
|
997
|
-
| TransferCallTool.TransferDestinationPredefined
|
|
998
|
-
| TransferCallTool.TransferDestinationInferred;
|
|
999
|
-
|
|
1000
1029
|
/**
|
|
1001
1030
|
* If set, when transfer is successful, will perform a warm handoff. Can leave
|
|
1002
1031
|
* either a static message or a dynamic one based on prompt. Set to null to disable
|
|
@@ -1365,6 +1394,10 @@ export namespace LlmCreateParams {
|
|
|
1365
1394
|
*/
|
|
1366
1395
|
name: string;
|
|
1367
1396
|
|
|
1397
|
+
transfer_destination:
|
|
1398
|
+
| TransferCallTool.TransferDestinationPredefined
|
|
1399
|
+
| TransferCallTool.TransferDestinationInferred;
|
|
1400
|
+
|
|
1368
1401
|
type: 'transfer_call';
|
|
1369
1402
|
|
|
1370
1403
|
/**
|
|
@@ -1373,12 +1406,6 @@ export namespace LlmCreateParams {
|
|
|
1373
1406
|
*/
|
|
1374
1407
|
description?: string;
|
|
1375
1408
|
|
|
1376
|
-
/**
|
|
1377
|
-
* The number to transfer to in E.164 format or a dynamic variable like
|
|
1378
|
-
* {{transfer_number}}.
|
|
1379
|
-
*/
|
|
1380
|
-
number?: string | null;
|
|
1381
|
-
|
|
1382
1409
|
/**
|
|
1383
1410
|
* If set to true, will show transferee (the user, not the AI agent) as caller when
|
|
1384
1411
|
* transferring, requires the telephony side to support SIP REFER to PSTN. This is
|
|
@@ -1387,10 +1414,6 @@ export namespace LlmCreateParams {
|
|
|
1387
1414
|
*/
|
|
1388
1415
|
show_transferee_as_caller?: boolean | null;
|
|
1389
1416
|
|
|
1390
|
-
transfer_destination?:
|
|
1391
|
-
| TransferCallTool.TransferDestinationPredefined
|
|
1392
|
-
| TransferCallTool.TransferDestinationInferred;
|
|
1393
|
-
|
|
1394
1417
|
/**
|
|
1395
1418
|
* If set, when transfer is successful, will perform a warm handoff. Can leave
|
|
1396
1419
|
* either a static message or a dynamic one based on prompt. Set to null to disable
|
|
@@ -1641,22 +1664,36 @@ export namespace LlmCreateParams {
|
|
|
1641
1664
|
}
|
|
1642
1665
|
}
|
|
1643
1666
|
|
|
1667
|
+
export interface LlmRetrieveParams {
|
|
1668
|
+
/**
|
|
1669
|
+
* Optional version of the API to use for this request. Default to 0.
|
|
1670
|
+
*/
|
|
1671
|
+
version?: number;
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1644
1674
|
export interface LlmUpdateParams {
|
|
1645
1675
|
/**
|
|
1646
|
-
*
|
|
1647
|
-
|
|
1676
|
+
* Query param: Optional version of the API to use for this request. Default to 0.
|
|
1677
|
+
*/
|
|
1678
|
+
query_version?: number;
|
|
1679
|
+
|
|
1680
|
+
/**
|
|
1681
|
+
* Body param: First utterance said by the agent in the call. If not set, LLM will
|
|
1682
|
+
* dynamically generate a message. If set to "", agent will wait for user to speak
|
|
1683
|
+
* first.
|
|
1648
1684
|
*/
|
|
1649
1685
|
begin_message?: string | null;
|
|
1650
1686
|
|
|
1651
1687
|
/**
|
|
1652
|
-
* Default dynamic variables represented as key-value pairs of strings.
|
|
1653
|
-
* injected into your Retell LLM prompt and tool description when
|
|
1654
|
-
* are not provided in a request. Only applicable for Retell LLM.
|
|
1688
|
+
* Body param: Default dynamic variables represented as key-value pairs of strings.
|
|
1689
|
+
* These are injected into your Retell LLM prompt and tool description when
|
|
1690
|
+
* specific values are not provided in a request. Only applicable for Retell LLM.
|
|
1655
1691
|
*/
|
|
1656
1692
|
default_dynamic_variables?: Record<string, string> | null;
|
|
1657
1693
|
|
|
1658
1694
|
/**
|
|
1659
|
-
* General prompt appended to system prompt no matter what state the
|
|
1695
|
+
* Body param: General prompt appended to system prompt no matter what state the
|
|
1696
|
+
* agent is in.
|
|
1660
1697
|
*
|
|
1661
1698
|
* - System prompt (with state) = general prompt + state prompt.
|
|
1662
1699
|
*
|
|
@@ -1665,9 +1702,10 @@ export interface LlmUpdateParams {
|
|
|
1665
1702
|
general_prompt?: string | null;
|
|
1666
1703
|
|
|
1667
1704
|
/**
|
|
1668
|
-
* A list of tools the model may call (to get external knowledge, call
|
|
1669
|
-
* You can select from some common predefined tools like end call,
|
|
1670
|
-
* etc; or you can create your own custom tool (last option) for the
|
|
1705
|
+
* Body param: A list of tools the model may call (to get external knowledge, call
|
|
1706
|
+
* API, etc). You can select from some common predefined tools like end call,
|
|
1707
|
+
* transfer call, etc; or you can create your own custom tool (last option) for the
|
|
1708
|
+
* LLM to use.
|
|
1671
1709
|
*
|
|
1672
1710
|
* - Tools of LLM (with state) = general tools + state tools + state transitions
|
|
1673
1711
|
*
|
|
@@ -1683,58 +1721,70 @@ export interface LlmUpdateParams {
|
|
|
1683
1721
|
> | null;
|
|
1684
1722
|
|
|
1685
1723
|
/**
|
|
1686
|
-
* A list of knowledge base ids to use for this resource. Set to null
|
|
1687
|
-
* knowledge bases.
|
|
1724
|
+
* Body param: A list of knowledge base ids to use for this resource. Set to null
|
|
1725
|
+
* to remove all knowledge bases.
|
|
1688
1726
|
*/
|
|
1689
1727
|
knowledge_base_ids?: Array<string> | null;
|
|
1690
1728
|
|
|
1691
1729
|
/**
|
|
1692
|
-
* Select the underlying text LLM. If not set, would default to gpt-4o.
|
|
1730
|
+
* Body param: Select the underlying text LLM. If not set, would default to gpt-4o.
|
|
1693
1731
|
*/
|
|
1694
|
-
model?:
|
|
1732
|
+
model?:
|
|
1733
|
+
| 'gpt-4o'
|
|
1734
|
+
| 'gpt-4o-mini'
|
|
1735
|
+
| 'claude-3.7-sonnet'
|
|
1736
|
+
| 'claude-3.5-haiku'
|
|
1737
|
+
| 'gemini-2.0-flash'
|
|
1738
|
+
| 'gemini-2.0-flash-lite'
|
|
1739
|
+
| null;
|
|
1695
1740
|
|
|
1696
1741
|
/**
|
|
1697
|
-
* If set to true, will use high priority pool with more dedicated
|
|
1698
|
-
* ensure lower and more consistent latency, default to false. This
|
|
1699
|
-
* comes with a higher cost.
|
|
1742
|
+
* Body param: If set to true, will use high priority pool with more dedicated
|
|
1743
|
+
* resource to ensure lower and more consistent latency, default to false. This
|
|
1744
|
+
* feature usually comes with a higher cost.
|
|
1700
1745
|
*/
|
|
1701
1746
|
model_high_priority?: boolean;
|
|
1702
1747
|
|
|
1703
1748
|
/**
|
|
1704
|
-
* If set, will control the randomness of the response. Value ranging
|
|
1705
|
-
* Lower value means more deterministic, while higher value means more
|
|
1706
|
-
* unset, default value 0 will apply. Note that for tool calling, a
|
|
1707
|
-
* recommended.
|
|
1749
|
+
* Body param: If set, will control the randomness of the response. Value ranging
|
|
1750
|
+
* from [0,1]. Lower value means more deterministic, while higher value means more
|
|
1751
|
+
* random. If unset, default value 0 will apply. Note that for tool calling, a
|
|
1752
|
+
* lower value is recommended.
|
|
1708
1753
|
*/
|
|
1709
1754
|
model_temperature?: number;
|
|
1710
1755
|
|
|
1711
1756
|
/**
|
|
1712
|
-
* Select the underlying speech to speech model. Can only set this or
|
|
1713
|
-
* both.
|
|
1757
|
+
* Body param: Select the underlying speech to speech model. Can only set this or
|
|
1758
|
+
* model, not both.
|
|
1714
1759
|
*/
|
|
1715
1760
|
s2s_model?: 'gpt-4o-realtime' | 'gpt-4o-mini-realtime' | null;
|
|
1716
1761
|
|
|
1717
1762
|
/**
|
|
1718
|
-
* Name of the starting state. Required if states is not empty.
|
|
1763
|
+
* Body param: Name of the starting state. Required if states is not empty.
|
|
1719
1764
|
*/
|
|
1720
1765
|
starting_state?: string | null;
|
|
1721
1766
|
|
|
1722
1767
|
/**
|
|
1723
|
-
* States of the LLM. This is to help reduce prompt length and tool
|
|
1724
|
-
* the call can be broken into distinct states. With shorter prompts
|
|
1725
|
-
* tools, the LLM can better focus and follow the rules, minimizing
|
|
1726
|
-
* If this field is not set, the agent would only have general
|
|
1727
|
-
* tools (essentially one state).
|
|
1768
|
+
* Body param: States of the LLM. This is to help reduce prompt length and tool
|
|
1769
|
+
* choices when the call can be broken into distinct states. With shorter prompts
|
|
1770
|
+
* and less tools, the LLM can better focus and follow the rules, minimizing
|
|
1771
|
+
* hallucination. If this field is not set, the agent would only have general
|
|
1772
|
+
* prompt and general tools (essentially one state).
|
|
1728
1773
|
*/
|
|
1729
1774
|
states?: Array<LlmUpdateParams.State> | null;
|
|
1730
1775
|
|
|
1731
1776
|
/**
|
|
1732
|
-
* Only applicable when model is gpt-4o or gpt-4o mini. If set to true,
|
|
1733
|
-
* structured output to make sure tool call arguments follow the json
|
|
1734
|
-
* time to save a new tool or change to a tool will be longer as
|
|
1735
|
-
* processing is needed. Default to false.
|
|
1777
|
+
* Body param: Only applicable when model is gpt-4o or gpt-4o mini. If set to true,
|
|
1778
|
+
* will use structured output to make sure tool call arguments follow the json
|
|
1779
|
+
* schema. The time to save a new tool or change to a tool will be longer as
|
|
1780
|
+
* additional processing is needed. Default to false.
|
|
1736
1781
|
*/
|
|
1737
1782
|
tool_call_strict_mode?: boolean;
|
|
1783
|
+
|
|
1784
|
+
/**
|
|
1785
|
+
* Body param: Version of the Retell LLM.
|
|
1786
|
+
*/
|
|
1787
|
+
body_version?: number | null;
|
|
1738
1788
|
}
|
|
1739
1789
|
|
|
1740
1790
|
export namespace LlmUpdateParams {
|
|
@@ -1763,6 +1813,10 @@ export namespace LlmUpdateParams {
|
|
|
1763
1813
|
*/
|
|
1764
1814
|
name: string;
|
|
1765
1815
|
|
|
1816
|
+
transfer_destination:
|
|
1817
|
+
| TransferCallTool.TransferDestinationPredefined
|
|
1818
|
+
| TransferCallTool.TransferDestinationInferred;
|
|
1819
|
+
|
|
1766
1820
|
type: 'transfer_call';
|
|
1767
1821
|
|
|
1768
1822
|
/**
|
|
@@ -1771,12 +1825,6 @@ export namespace LlmUpdateParams {
|
|
|
1771
1825
|
*/
|
|
1772
1826
|
description?: string;
|
|
1773
1827
|
|
|
1774
|
-
/**
|
|
1775
|
-
* The number to transfer to in E.164 format or a dynamic variable like
|
|
1776
|
-
* {{transfer_number}}.
|
|
1777
|
-
*/
|
|
1778
|
-
number?: string | null;
|
|
1779
|
-
|
|
1780
1828
|
/**
|
|
1781
1829
|
* If set to true, will show transferee (the user, not the AI agent) as caller when
|
|
1782
1830
|
* transferring, requires the telephony side to support SIP REFER to PSTN. This is
|
|
@@ -1785,10 +1833,6 @@ export namespace LlmUpdateParams {
|
|
|
1785
1833
|
*/
|
|
1786
1834
|
show_transferee_as_caller?: boolean | null;
|
|
1787
1835
|
|
|
1788
|
-
transfer_destination?:
|
|
1789
|
-
| TransferCallTool.TransferDestinationPredefined
|
|
1790
|
-
| TransferCallTool.TransferDestinationInferred;
|
|
1791
|
-
|
|
1792
1836
|
/**
|
|
1793
1837
|
* If set, when transfer is successful, will perform a warm handoff. Can leave
|
|
1794
1838
|
* either a static message or a dynamic one based on prompt. Set to null to disable
|
|
@@ -2157,6 +2201,10 @@ export namespace LlmUpdateParams {
|
|
|
2157
2201
|
*/
|
|
2158
2202
|
name: string;
|
|
2159
2203
|
|
|
2204
|
+
transfer_destination:
|
|
2205
|
+
| TransferCallTool.TransferDestinationPredefined
|
|
2206
|
+
| TransferCallTool.TransferDestinationInferred;
|
|
2207
|
+
|
|
2160
2208
|
type: 'transfer_call';
|
|
2161
2209
|
|
|
2162
2210
|
/**
|
|
@@ -2165,12 +2213,6 @@ export namespace LlmUpdateParams {
|
|
|
2165
2213
|
*/
|
|
2166
2214
|
description?: string;
|
|
2167
2215
|
|
|
2168
|
-
/**
|
|
2169
|
-
* The number to transfer to in E.164 format or a dynamic variable like
|
|
2170
|
-
* {{transfer_number}}.
|
|
2171
|
-
*/
|
|
2172
|
-
number?: string | null;
|
|
2173
|
-
|
|
2174
2216
|
/**
|
|
2175
2217
|
* If set to true, will show transferee (the user, not the AI agent) as caller when
|
|
2176
2218
|
* transferring, requires the telephony side to support SIP REFER to PSTN. This is
|
|
@@ -2179,10 +2221,6 @@ export namespace LlmUpdateParams {
|
|
|
2179
2221
|
*/
|
|
2180
2222
|
show_transferee_as_caller?: boolean | null;
|
|
2181
2223
|
|
|
2182
|
-
transfer_destination?:
|
|
2183
|
-
| TransferCallTool.TransferDestinationPredefined
|
|
2184
|
-
| TransferCallTool.TransferDestinationInferred;
|
|
2185
|
-
|
|
2186
2224
|
/**
|
|
2187
2225
|
* If set, when transfer is successful, will perform a warm handoff. Can leave
|
|
2188
2226
|
* either a static message or a dynamic one based on prompt. Set to null to disable
|
|
@@ -2438,6 +2476,7 @@ export declare namespace Llm {
|
|
|
2438
2476
|
type LlmResponse as LlmResponse,
|
|
2439
2477
|
type LlmListResponse as LlmListResponse,
|
|
2440
2478
|
type LlmCreateParams as LlmCreateParams,
|
|
2479
|
+
type LlmRetrieveParams as LlmRetrieveParams,
|
|
2441
2480
|
type LlmUpdateParams as LlmUpdateParams,
|
|
2442
2481
|
};
|
|
2443
2482
|
}
|
|
@@ -80,6 +80,11 @@ export interface PhoneNumberResponse {
|
|
|
80
80
|
*/
|
|
81
81
|
inbound_agent_id?: string | null;
|
|
82
82
|
|
|
83
|
+
/**
|
|
84
|
+
* The version of the inbound agent.
|
|
85
|
+
*/
|
|
86
|
+
inbound_agent_version?: number | null;
|
|
87
|
+
|
|
83
88
|
/**
|
|
84
89
|
* If set, will send a webhook for inbound calls, where you can to override agent
|
|
85
90
|
* id, set dynamic variables and other fields specific to that call.
|
|
@@ -98,6 +103,11 @@ export interface PhoneNumberResponse {
|
|
|
98
103
|
*/
|
|
99
104
|
outbound_agent_id?: string | null;
|
|
100
105
|
|
|
106
|
+
/**
|
|
107
|
+
* The version of the outbound agent.
|
|
108
|
+
*/
|
|
109
|
+
outbound_agent_version?: number | null;
|
|
110
|
+
|
|
101
111
|
/**
|
|
102
112
|
* Pretty printed phone number, provided for your reference.
|
|
103
113
|
*/
|
|
@@ -125,6 +135,12 @@ export interface PhoneNumberCreateParams {
|
|
|
125
135
|
*/
|
|
126
136
|
inbound_agent_id?: string | null;
|
|
127
137
|
|
|
138
|
+
/**
|
|
139
|
+
* Version of the inbound agent to bind to the number. If not provided, will
|
|
140
|
+
* default to 0.
|
|
141
|
+
*/
|
|
142
|
+
inbound_agent_version?: number | null;
|
|
143
|
+
|
|
128
144
|
/**
|
|
129
145
|
* If set, will send a webhook for inbound calls, where you can to override agent
|
|
130
146
|
* id, set dynamic variables and other fields specific to that call.
|
|
@@ -147,6 +163,12 @@ export interface PhoneNumberCreateParams {
|
|
|
147
163
|
* initiate outbound call without agent id override.
|
|
148
164
|
*/
|
|
149
165
|
outbound_agent_id?: string | null;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Version of the outbound agent to bind to the number. If not provided, will
|
|
169
|
+
* default to 0.
|
|
170
|
+
*/
|
|
171
|
+
outbound_agent_version?: number | null;
|
|
150
172
|
}
|
|
151
173
|
|
|
152
174
|
export interface PhoneNumberUpdateParams {
|
|
@@ -157,6 +179,12 @@ export interface PhoneNumberUpdateParams {
|
|
|
157
179
|
*/
|
|
158
180
|
inbound_agent_id?: string | null;
|
|
159
181
|
|
|
182
|
+
/**
|
|
183
|
+
* Version of the inbound agent to bind to the number. If not provided, will
|
|
184
|
+
* default to 0.
|
|
185
|
+
*/
|
|
186
|
+
inbound_agent_version?: number | null;
|
|
187
|
+
|
|
160
188
|
/**
|
|
161
189
|
* If set, will send a webhook for inbound calls, where you can to override agent
|
|
162
190
|
* id, set dynamic variables and other fields specific to that call.
|
|
@@ -174,6 +202,12 @@ export interface PhoneNumberUpdateParams {
|
|
|
174
202
|
* able to initiate outbound call without agent id override.
|
|
175
203
|
*/
|
|
176
204
|
outbound_agent_id?: string | null;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Version of the outbound agent to bind to the number. If not provided, will
|
|
208
|
+
* default to 0.
|
|
209
|
+
*/
|
|
210
|
+
outbound_agent_version?: number | null;
|
|
177
211
|
}
|
|
178
212
|
|
|
179
213
|
export interface PhoneNumberImportParams {
|
|
@@ -198,6 +232,12 @@ export interface PhoneNumberImportParams {
|
|
|
198
232
|
*/
|
|
199
233
|
inbound_agent_id?: string | null;
|
|
200
234
|
|
|
235
|
+
/**
|
|
236
|
+
* Version of the inbound agent to bind to the number. If not provided, will
|
|
237
|
+
* default to 0.
|
|
238
|
+
*/
|
|
239
|
+
inbound_agent_version?: number | null;
|
|
240
|
+
|
|
201
241
|
/**
|
|
202
242
|
* If set, will send a webhook for inbound calls, where you can to override agent
|
|
203
243
|
* id, set dynamic variables and other fields specific to that call.
|
|
@@ -214,7 +254,13 @@ export interface PhoneNumberImportParams {
|
|
|
214
254
|
* agent when conducting outbound calls. If null, this number would not be able to
|
|
215
255
|
* initiate outbound call without agent id override.
|
|
216
256
|
*/
|
|
217
|
-
outbound_agent_id?: string
|
|
257
|
+
outbound_agent_id?: string;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Version of the outbound agent to bind to the number. If not provided, will
|
|
261
|
+
* default to 0.
|
|
262
|
+
*/
|
|
263
|
+
outbound_agent_version?: number | null;
|
|
218
264
|
|
|
219
265
|
/**
|
|
220
266
|
* The password used for authentication for the SIP trunk.
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.26.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "4.
|
|
1
|
+
export declare const VERSION = "4.26.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.26.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|