retell-sdk 4.7.0 → 4.9.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 +26 -0
- package/README.md +21 -8
- package/_shims/node-types.d.ts +1 -1
- package/core.d.ts +9 -6
- package/core.d.ts.map +1 -1
- package/core.js +25 -9
- package/core.js.map +1 -1
- package/core.mjs +22 -7
- package/core.mjs.map +1 -1
- package/error.d.ts.map +1 -1
- package/index.d.mts +19 -34
- package/index.d.ts +19 -34
- package/index.d.ts.map +1 -1
- package/index.js +30 -10
- package/index.js.map +1 -1
- package/index.mjs +17 -10
- package/index.mjs.map +1 -1
- package/package.json +3 -3
- package/resources/agent.d.ts +87 -19
- package/resources/agent.d.ts.map +1 -1
- package/resources/agent.js +0 -2
- package/resources/agent.js.map +1 -1
- package/resources/agent.mjs +0 -2
- package/resources/agent.mjs.map +1 -1
- package/resources/call.d.ts +2 -10
- package/resources/call.d.ts.map +1 -1
- package/resources/call.js +1 -3
- package/resources/call.js.map +1 -1
- package/resources/call.mjs +1 -3
- package/resources/call.mjs.map +1 -1
- package/resources/concurrency.d.ts +1 -2
- package/resources/concurrency.d.ts.map +1 -1
- package/resources/concurrency.js +0 -2
- package/resources/concurrency.js.map +1 -1
- package/resources/concurrency.mjs +0 -2
- package/resources/concurrency.mjs.map +1 -1
- package/resources/index.d.ts +7 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -2
- package/resources/index.mjs.map +1 -1
- package/resources/knowledge-base.d.ts +144 -0
- package/resources/knowledge-base.d.ts.map +1 -0
- package/resources/knowledge-base.js +60 -0
- package/resources/knowledge-base.js.map +1 -0
- package/resources/knowledge-base.mjs +33 -0
- package/resources/knowledge-base.mjs.map +1 -0
- package/resources/llm.d.ts +244 -28
- package/resources/llm.d.ts.map +1 -1
- package/resources/llm.js +0 -2
- package/resources/llm.js.map +1 -1
- package/resources/llm.mjs +0 -2
- package/resources/llm.mjs.map +1 -1
- package/resources/phone-number.d.ts +1 -6
- package/resources/phone-number.d.ts.map +1 -1
- package/resources/phone-number.js +0 -2
- package/resources/phone-number.js.map +1 -1
- package/resources/phone-number.mjs +0 -2
- package/resources/phone-number.mjs.map +1 -1
- package/resources/voice.d.ts +1 -3
- package/resources/voice.d.ts.map +1 -1
- package/resources/voice.js +0 -2
- package/resources/voice.js.map +1 -1
- package/resources/voice.mjs +0 -2
- package/resources/voice.mjs.map +1 -1
- package/shims/node.d.ts +1 -0
- package/shims/node.d.ts.map +1 -1
- package/src/_shims/node-types.d.ts +1 -1
- package/src/core.ts +39 -13
- package/src/error.ts +1 -1
- package/src/index.ts +98 -42
- package/src/resources/agent.ts +109 -21
- package/src/resources/call.ts +12 -11
- package/src/resources/concurrency.ts +2 -3
- package/src/resources/index.ts +35 -17
- package/src/resources/knowledge-base.ts +200 -0
- package/src/resources/llm.ts +313 -30
- package/src/resources/phone-number.ts +8 -7
- package/src/resources/voice.ts +2 -4
- 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
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../resource';
|
|
4
4
|
import * as Core from '../core';
|
|
5
|
-
import * as LlmAPI from './llm';
|
|
6
5
|
|
|
7
6
|
export class Llm extends APIResource {
|
|
8
7
|
/**
|
|
@@ -56,12 +55,6 @@ export interface LlmResponse {
|
|
|
56
55
|
*/
|
|
57
56
|
llm_id: string;
|
|
58
57
|
|
|
59
|
-
/**
|
|
60
|
-
* The LLM Websocket URL constructed from unique id of Retell LLM. Used in agent
|
|
61
|
-
* API to create / update agent.
|
|
62
|
-
*/
|
|
63
|
-
llm_websocket_url: string;
|
|
64
|
-
|
|
65
58
|
/**
|
|
66
59
|
* First utterance said by the agent in the call. If not set, LLM will dynamically
|
|
67
60
|
* generate a message. If set to "", agent will wait for user to speak first.
|
|
@@ -103,9 +96,15 @@ export interface LlmResponse {
|
|
|
103
96
|
inbound_dynamic_variables_webhook_url?: string | null;
|
|
104
97
|
|
|
105
98
|
/**
|
|
106
|
-
*
|
|
99
|
+
* A list of knowledge base ids to use for this resource. Set to null to remove all
|
|
100
|
+
* knowledge bases.
|
|
107
101
|
*/
|
|
108
|
-
|
|
102
|
+
knowledge_base_ids?: Array<string> | null;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Select the underlying text LLM. If not set, would default to gpt-4o.
|
|
106
|
+
*/
|
|
107
|
+
model?: 'gpt-4o' | 'gpt-4o-mini' | 'claude-3.5-sonnet' | 'claude-3-haiku' | null;
|
|
109
108
|
|
|
110
109
|
/**
|
|
111
110
|
* If set, will control the randomness of the response. Value ranging from [0,1].
|
|
@@ -115,6 +114,12 @@ export interface LlmResponse {
|
|
|
115
114
|
*/
|
|
116
115
|
model_temperature?: number;
|
|
117
116
|
|
|
117
|
+
/**
|
|
118
|
+
* Select the underlying speech to speech model. Can only set this or model, not
|
|
119
|
+
* both.
|
|
120
|
+
*/
|
|
121
|
+
s2s_model?: 'gpt-4o-realtime' | null;
|
|
122
|
+
|
|
118
123
|
/**
|
|
119
124
|
* Name of the starting state. Required if states is not empty.
|
|
120
125
|
*/
|
|
@@ -128,6 +133,14 @@ export interface LlmResponse {
|
|
|
128
133
|
* tools (essentially one state).
|
|
129
134
|
*/
|
|
130
135
|
states?: Array<LlmResponse.State> | null;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Only applicable when model is gpt-4o or gpt-4o mini. If set to true, will use
|
|
139
|
+
* structured output to make sure tool call arguments follow the json schema. The
|
|
140
|
+
* time to save a new tool or change to a tool will be longer as additional
|
|
141
|
+
* processing is needed. Default to false.
|
|
142
|
+
*/
|
|
143
|
+
tool_call_strict_mode?: boolean;
|
|
131
144
|
}
|
|
132
145
|
|
|
133
146
|
export namespace LlmResponse {
|
|
@@ -157,8 +170,8 @@ export namespace LlmResponse {
|
|
|
157
170
|
name: string;
|
|
158
171
|
|
|
159
172
|
/**
|
|
160
|
-
* The number to transfer to in E.164 format
|
|
161
|
-
*
|
|
173
|
+
* The number to transfer to in E.164 format or a dynamic variable like
|
|
174
|
+
* {{transfer_number}}.
|
|
162
175
|
*/
|
|
163
176
|
number: string;
|
|
164
177
|
|
|
@@ -169,6 +182,44 @@ export namespace LlmResponse {
|
|
|
169
182
|
* to call the tool.
|
|
170
183
|
*/
|
|
171
184
|
description?: string;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* If set to true, will show transferee (the user, not the AI agent) as caller when
|
|
188
|
+
* transferring, requires the telephony side to support SIP REFER to PSTN. This is
|
|
189
|
+
* only applicable for cold transfer, so if warm transfer option is specified, this
|
|
190
|
+
* field will be ignored. Default to false (default to show AI agent as caller).
|
|
191
|
+
*/
|
|
192
|
+
show_transferee_as_caller?: boolean | null;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* If set, when transfer is successful, will perform a warm handoff. Can leave
|
|
196
|
+
* either a static message or a dynamic one based on prompt. Set to null to disable
|
|
197
|
+
* warm handoff.
|
|
198
|
+
*/
|
|
199
|
+
warm_transfer_option?:
|
|
200
|
+
| TransferCallTool.WarmTransferPrompt
|
|
201
|
+
| TransferCallTool.WarmTransferStaticMessage
|
|
202
|
+
| null;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export namespace TransferCallTool {
|
|
206
|
+
export interface WarmTransferPrompt {
|
|
207
|
+
/**
|
|
208
|
+
* The prompt to be used for warm handoff. Can contain dynamic variables.
|
|
209
|
+
*/
|
|
210
|
+
prompt?: string;
|
|
211
|
+
|
|
212
|
+
type?: 'prompt';
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export interface WarmTransferStaticMessage {
|
|
216
|
+
/**
|
|
217
|
+
* The static message to be used for warm handoff. Can contain dynamic variables.
|
|
218
|
+
*/
|
|
219
|
+
message?: string;
|
|
220
|
+
|
|
221
|
+
type?: 'static_message';
|
|
222
|
+
}
|
|
172
223
|
}
|
|
173
224
|
|
|
174
225
|
export interface CheckAvailabilityCalTool {
|
|
@@ -475,8 +526,8 @@ export namespace LlmResponse {
|
|
|
475
526
|
name: string;
|
|
476
527
|
|
|
477
528
|
/**
|
|
478
|
-
* The number to transfer to in E.164 format
|
|
479
|
-
*
|
|
529
|
+
* The number to transfer to in E.164 format or a dynamic variable like
|
|
530
|
+
* {{transfer_number}}.
|
|
480
531
|
*/
|
|
481
532
|
number: string;
|
|
482
533
|
|
|
@@ -487,6 +538,44 @@ export namespace LlmResponse {
|
|
|
487
538
|
* to call the tool.
|
|
488
539
|
*/
|
|
489
540
|
description?: string;
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* If set to true, will show transferee (the user, not the AI agent) as caller when
|
|
544
|
+
* transferring, requires the telephony side to support SIP REFER to PSTN. This is
|
|
545
|
+
* only applicable for cold transfer, so if warm transfer option is specified, this
|
|
546
|
+
* field will be ignored. Default to false (default to show AI agent as caller).
|
|
547
|
+
*/
|
|
548
|
+
show_transferee_as_caller?: boolean | null;
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* If set, when transfer is successful, will perform a warm handoff. Can leave
|
|
552
|
+
* either a static message or a dynamic one based on prompt. Set to null to disable
|
|
553
|
+
* warm handoff.
|
|
554
|
+
*/
|
|
555
|
+
warm_transfer_option?:
|
|
556
|
+
| TransferCallTool.WarmTransferPrompt
|
|
557
|
+
| TransferCallTool.WarmTransferStaticMessage
|
|
558
|
+
| null;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
export namespace TransferCallTool {
|
|
562
|
+
export interface WarmTransferPrompt {
|
|
563
|
+
/**
|
|
564
|
+
* The prompt to be used for warm handoff. Can contain dynamic variables.
|
|
565
|
+
*/
|
|
566
|
+
prompt?: string;
|
|
567
|
+
|
|
568
|
+
type?: 'prompt';
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
export interface WarmTransferStaticMessage {
|
|
572
|
+
/**
|
|
573
|
+
* The static message to be used for warm handoff. Can contain dynamic variables.
|
|
574
|
+
*/
|
|
575
|
+
message?: string;
|
|
576
|
+
|
|
577
|
+
type?: 'static_message';
|
|
578
|
+
}
|
|
490
579
|
}
|
|
491
580
|
|
|
492
581
|
export interface CheckAvailabilityCalTool {
|
|
@@ -718,9 +807,15 @@ export interface LlmCreateParams {
|
|
|
718
807
|
inbound_dynamic_variables_webhook_url?: string | null;
|
|
719
808
|
|
|
720
809
|
/**
|
|
721
|
-
*
|
|
810
|
+
* A list of knowledge base ids to use for this resource. Set to null to remove all
|
|
811
|
+
* knowledge bases.
|
|
722
812
|
*/
|
|
723
|
-
|
|
813
|
+
knowledge_base_ids?: Array<string> | null;
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* Select the underlying text LLM. If not set, would default to gpt-4o.
|
|
817
|
+
*/
|
|
818
|
+
model?: 'gpt-4o' | 'gpt-4o-mini' | 'claude-3.5-sonnet' | 'claude-3-haiku' | null;
|
|
724
819
|
|
|
725
820
|
/**
|
|
726
821
|
* If set, will control the randomness of the response. Value ranging from [0,1].
|
|
@@ -730,6 +825,12 @@ export interface LlmCreateParams {
|
|
|
730
825
|
*/
|
|
731
826
|
model_temperature?: number;
|
|
732
827
|
|
|
828
|
+
/**
|
|
829
|
+
* Select the underlying speech to speech model. Can only set this or model, not
|
|
830
|
+
* both.
|
|
831
|
+
*/
|
|
832
|
+
s2s_model?: 'gpt-4o-realtime' | null;
|
|
833
|
+
|
|
733
834
|
/**
|
|
734
835
|
* Name of the starting state. Required if states is not empty.
|
|
735
836
|
*/
|
|
@@ -743,6 +844,14 @@ export interface LlmCreateParams {
|
|
|
743
844
|
* tools (essentially one state).
|
|
744
845
|
*/
|
|
745
846
|
states?: Array<LlmCreateParams.State> | null;
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* Only applicable when model is gpt-4o or gpt-4o mini. If set to true, will use
|
|
850
|
+
* structured output to make sure tool call arguments follow the json schema. The
|
|
851
|
+
* time to save a new tool or change to a tool will be longer as additional
|
|
852
|
+
* processing is needed. Default to false.
|
|
853
|
+
*/
|
|
854
|
+
tool_call_strict_mode?: boolean;
|
|
746
855
|
}
|
|
747
856
|
|
|
748
857
|
export namespace LlmCreateParams {
|
|
@@ -772,8 +881,8 @@ export namespace LlmCreateParams {
|
|
|
772
881
|
name: string;
|
|
773
882
|
|
|
774
883
|
/**
|
|
775
|
-
* The number to transfer to in E.164 format
|
|
776
|
-
*
|
|
884
|
+
* The number to transfer to in E.164 format or a dynamic variable like
|
|
885
|
+
* {{transfer_number}}.
|
|
777
886
|
*/
|
|
778
887
|
number: string;
|
|
779
888
|
|
|
@@ -784,6 +893,44 @@ export namespace LlmCreateParams {
|
|
|
784
893
|
* to call the tool.
|
|
785
894
|
*/
|
|
786
895
|
description?: string;
|
|
896
|
+
|
|
897
|
+
/**
|
|
898
|
+
* If set to true, will show transferee (the user, not the AI agent) as caller when
|
|
899
|
+
* transferring, requires the telephony side to support SIP REFER to PSTN. This is
|
|
900
|
+
* only applicable for cold transfer, so if warm transfer option is specified, this
|
|
901
|
+
* field will be ignored. Default to false (default to show AI agent as caller).
|
|
902
|
+
*/
|
|
903
|
+
show_transferee_as_caller?: boolean | null;
|
|
904
|
+
|
|
905
|
+
/**
|
|
906
|
+
* If set, when transfer is successful, will perform a warm handoff. Can leave
|
|
907
|
+
* either a static message or a dynamic one based on prompt. Set to null to disable
|
|
908
|
+
* warm handoff.
|
|
909
|
+
*/
|
|
910
|
+
warm_transfer_option?:
|
|
911
|
+
| TransferCallTool.WarmTransferPrompt
|
|
912
|
+
| TransferCallTool.WarmTransferStaticMessage
|
|
913
|
+
| null;
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
export namespace TransferCallTool {
|
|
917
|
+
export interface WarmTransferPrompt {
|
|
918
|
+
/**
|
|
919
|
+
* The prompt to be used for warm handoff. Can contain dynamic variables.
|
|
920
|
+
*/
|
|
921
|
+
prompt?: string;
|
|
922
|
+
|
|
923
|
+
type?: 'prompt';
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
export interface WarmTransferStaticMessage {
|
|
927
|
+
/**
|
|
928
|
+
* The static message to be used for warm handoff. Can contain dynamic variables.
|
|
929
|
+
*/
|
|
930
|
+
message?: string;
|
|
931
|
+
|
|
932
|
+
type?: 'static_message';
|
|
933
|
+
}
|
|
787
934
|
}
|
|
788
935
|
|
|
789
936
|
export interface CheckAvailabilityCalTool {
|
|
@@ -1090,8 +1237,8 @@ export namespace LlmCreateParams {
|
|
|
1090
1237
|
name: string;
|
|
1091
1238
|
|
|
1092
1239
|
/**
|
|
1093
|
-
* The number to transfer to in E.164 format
|
|
1094
|
-
*
|
|
1240
|
+
* The number to transfer to in E.164 format or a dynamic variable like
|
|
1241
|
+
* {{transfer_number}}.
|
|
1095
1242
|
*/
|
|
1096
1243
|
number: string;
|
|
1097
1244
|
|
|
@@ -1102,6 +1249,44 @@ export namespace LlmCreateParams {
|
|
|
1102
1249
|
* to call the tool.
|
|
1103
1250
|
*/
|
|
1104
1251
|
description?: string;
|
|
1252
|
+
|
|
1253
|
+
/**
|
|
1254
|
+
* If set to true, will show transferee (the user, not the AI agent) as caller when
|
|
1255
|
+
* transferring, requires the telephony side to support SIP REFER to PSTN. This is
|
|
1256
|
+
* only applicable for cold transfer, so if warm transfer option is specified, this
|
|
1257
|
+
* field will be ignored. Default to false (default to show AI agent as caller).
|
|
1258
|
+
*/
|
|
1259
|
+
show_transferee_as_caller?: boolean | null;
|
|
1260
|
+
|
|
1261
|
+
/**
|
|
1262
|
+
* If set, when transfer is successful, will perform a warm handoff. Can leave
|
|
1263
|
+
* either a static message or a dynamic one based on prompt. Set to null to disable
|
|
1264
|
+
* warm handoff.
|
|
1265
|
+
*/
|
|
1266
|
+
warm_transfer_option?:
|
|
1267
|
+
| TransferCallTool.WarmTransferPrompt
|
|
1268
|
+
| TransferCallTool.WarmTransferStaticMessage
|
|
1269
|
+
| null;
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
export namespace TransferCallTool {
|
|
1273
|
+
export interface WarmTransferPrompt {
|
|
1274
|
+
/**
|
|
1275
|
+
* The prompt to be used for warm handoff. Can contain dynamic variables.
|
|
1276
|
+
*/
|
|
1277
|
+
prompt?: string;
|
|
1278
|
+
|
|
1279
|
+
type?: 'prompt';
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
export interface WarmTransferStaticMessage {
|
|
1283
|
+
/**
|
|
1284
|
+
* The static message to be used for warm handoff. Can contain dynamic variables.
|
|
1285
|
+
*/
|
|
1286
|
+
message?: string;
|
|
1287
|
+
|
|
1288
|
+
type?: 'static_message';
|
|
1289
|
+
}
|
|
1105
1290
|
}
|
|
1106
1291
|
|
|
1107
1292
|
export interface CheckAvailabilityCalTool {
|
|
@@ -1331,9 +1516,15 @@ export interface LlmUpdateParams {
|
|
|
1331
1516
|
inbound_dynamic_variables_webhook_url?: string | null;
|
|
1332
1517
|
|
|
1333
1518
|
/**
|
|
1334
|
-
*
|
|
1519
|
+
* A list of knowledge base ids to use for this resource. Set to null to remove all
|
|
1520
|
+
* knowledge bases.
|
|
1521
|
+
*/
|
|
1522
|
+
knowledge_base_ids?: Array<string> | null;
|
|
1523
|
+
|
|
1524
|
+
/**
|
|
1525
|
+
* Select the underlying text LLM. If not set, would default to gpt-4o.
|
|
1335
1526
|
*/
|
|
1336
|
-
model?: 'gpt-4o' | 'gpt-4o-mini' | 'claude-3.5-sonnet' | 'claude-3-haiku';
|
|
1527
|
+
model?: 'gpt-4o' | 'gpt-4o-mini' | 'claude-3.5-sonnet' | 'claude-3-haiku' | null;
|
|
1337
1528
|
|
|
1338
1529
|
/**
|
|
1339
1530
|
* If set, will control the randomness of the response. Value ranging from [0,1].
|
|
@@ -1343,6 +1534,12 @@ export interface LlmUpdateParams {
|
|
|
1343
1534
|
*/
|
|
1344
1535
|
model_temperature?: number;
|
|
1345
1536
|
|
|
1537
|
+
/**
|
|
1538
|
+
* Select the underlying speech to speech model. Can only set this or model, not
|
|
1539
|
+
* both.
|
|
1540
|
+
*/
|
|
1541
|
+
s2s_model?: 'gpt-4o-realtime' | null;
|
|
1542
|
+
|
|
1346
1543
|
/**
|
|
1347
1544
|
* Name of the starting state. Required if states is not empty.
|
|
1348
1545
|
*/
|
|
@@ -1356,6 +1553,14 @@ export interface LlmUpdateParams {
|
|
|
1356
1553
|
* tools (essentially one state).
|
|
1357
1554
|
*/
|
|
1358
1555
|
states?: Array<LlmUpdateParams.State> | null;
|
|
1556
|
+
|
|
1557
|
+
/**
|
|
1558
|
+
* Only applicable when model is gpt-4o or gpt-4o mini. If set to true, will use
|
|
1559
|
+
* structured output to make sure tool call arguments follow the json schema. The
|
|
1560
|
+
* time to save a new tool or change to a tool will be longer as additional
|
|
1561
|
+
* processing is needed. Default to false.
|
|
1562
|
+
*/
|
|
1563
|
+
tool_call_strict_mode?: boolean;
|
|
1359
1564
|
}
|
|
1360
1565
|
|
|
1361
1566
|
export namespace LlmUpdateParams {
|
|
@@ -1385,8 +1590,8 @@ export namespace LlmUpdateParams {
|
|
|
1385
1590
|
name: string;
|
|
1386
1591
|
|
|
1387
1592
|
/**
|
|
1388
|
-
* The number to transfer to in E.164 format
|
|
1389
|
-
*
|
|
1593
|
+
* The number to transfer to in E.164 format or a dynamic variable like
|
|
1594
|
+
* {{transfer_number}}.
|
|
1390
1595
|
*/
|
|
1391
1596
|
number: string;
|
|
1392
1597
|
|
|
@@ -1397,6 +1602,44 @@ export namespace LlmUpdateParams {
|
|
|
1397
1602
|
* to call the tool.
|
|
1398
1603
|
*/
|
|
1399
1604
|
description?: string;
|
|
1605
|
+
|
|
1606
|
+
/**
|
|
1607
|
+
* If set to true, will show transferee (the user, not the AI agent) as caller when
|
|
1608
|
+
* transferring, requires the telephony side to support SIP REFER to PSTN. This is
|
|
1609
|
+
* only applicable for cold transfer, so if warm transfer option is specified, this
|
|
1610
|
+
* field will be ignored. Default to false (default to show AI agent as caller).
|
|
1611
|
+
*/
|
|
1612
|
+
show_transferee_as_caller?: boolean | null;
|
|
1613
|
+
|
|
1614
|
+
/**
|
|
1615
|
+
* If set, when transfer is successful, will perform a warm handoff. Can leave
|
|
1616
|
+
* either a static message or a dynamic one based on prompt. Set to null to disable
|
|
1617
|
+
* warm handoff.
|
|
1618
|
+
*/
|
|
1619
|
+
warm_transfer_option?:
|
|
1620
|
+
| TransferCallTool.WarmTransferPrompt
|
|
1621
|
+
| TransferCallTool.WarmTransferStaticMessage
|
|
1622
|
+
| null;
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
export namespace TransferCallTool {
|
|
1626
|
+
export interface WarmTransferPrompt {
|
|
1627
|
+
/**
|
|
1628
|
+
* The prompt to be used for warm handoff. Can contain dynamic variables.
|
|
1629
|
+
*/
|
|
1630
|
+
prompt?: string;
|
|
1631
|
+
|
|
1632
|
+
type?: 'prompt';
|
|
1633
|
+
}
|
|
1634
|
+
|
|
1635
|
+
export interface WarmTransferStaticMessage {
|
|
1636
|
+
/**
|
|
1637
|
+
* The static message to be used for warm handoff. Can contain dynamic variables.
|
|
1638
|
+
*/
|
|
1639
|
+
message?: string;
|
|
1640
|
+
|
|
1641
|
+
type?: 'static_message';
|
|
1642
|
+
}
|
|
1400
1643
|
}
|
|
1401
1644
|
|
|
1402
1645
|
export interface CheckAvailabilityCalTool {
|
|
@@ -1703,8 +1946,8 @@ export namespace LlmUpdateParams {
|
|
|
1703
1946
|
name: string;
|
|
1704
1947
|
|
|
1705
1948
|
/**
|
|
1706
|
-
* The number to transfer to in E.164 format
|
|
1707
|
-
*
|
|
1949
|
+
* The number to transfer to in E.164 format or a dynamic variable like
|
|
1950
|
+
* {{transfer_number}}.
|
|
1708
1951
|
*/
|
|
1709
1952
|
number: string;
|
|
1710
1953
|
|
|
@@ -1715,6 +1958,44 @@ export namespace LlmUpdateParams {
|
|
|
1715
1958
|
* to call the tool.
|
|
1716
1959
|
*/
|
|
1717
1960
|
description?: string;
|
|
1961
|
+
|
|
1962
|
+
/**
|
|
1963
|
+
* If set to true, will show transferee (the user, not the AI agent) as caller when
|
|
1964
|
+
* transferring, requires the telephony side to support SIP REFER to PSTN. This is
|
|
1965
|
+
* only applicable for cold transfer, so if warm transfer option is specified, this
|
|
1966
|
+
* field will be ignored. Default to false (default to show AI agent as caller).
|
|
1967
|
+
*/
|
|
1968
|
+
show_transferee_as_caller?: boolean | null;
|
|
1969
|
+
|
|
1970
|
+
/**
|
|
1971
|
+
* If set, when transfer is successful, will perform a warm handoff. Can leave
|
|
1972
|
+
* either a static message or a dynamic one based on prompt. Set to null to disable
|
|
1973
|
+
* warm handoff.
|
|
1974
|
+
*/
|
|
1975
|
+
warm_transfer_option?:
|
|
1976
|
+
| TransferCallTool.WarmTransferPrompt
|
|
1977
|
+
| TransferCallTool.WarmTransferStaticMessage
|
|
1978
|
+
| null;
|
|
1979
|
+
}
|
|
1980
|
+
|
|
1981
|
+
export namespace TransferCallTool {
|
|
1982
|
+
export interface WarmTransferPrompt {
|
|
1983
|
+
/**
|
|
1984
|
+
* The prompt to be used for warm handoff. Can contain dynamic variables.
|
|
1985
|
+
*/
|
|
1986
|
+
prompt?: string;
|
|
1987
|
+
|
|
1988
|
+
type?: 'prompt';
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
export interface WarmTransferStaticMessage {
|
|
1992
|
+
/**
|
|
1993
|
+
* The static message to be used for warm handoff. Can contain dynamic variables.
|
|
1994
|
+
*/
|
|
1995
|
+
message?: string;
|
|
1996
|
+
|
|
1997
|
+
type?: 'static_message';
|
|
1998
|
+
}
|
|
1718
1999
|
}
|
|
1719
2000
|
|
|
1720
2001
|
export interface CheckAvailabilityCalTool {
|
|
@@ -1902,9 +2183,11 @@ export namespace LlmUpdateParams {
|
|
|
1902
2183
|
}
|
|
1903
2184
|
}
|
|
1904
2185
|
|
|
1905
|
-
export namespace Llm {
|
|
1906
|
-
export
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
2186
|
+
export declare namespace Llm {
|
|
2187
|
+
export {
|
|
2188
|
+
type LlmResponse as LlmResponse,
|
|
2189
|
+
type LlmListResponse as LlmListResponse,
|
|
2190
|
+
type LlmCreateParams as LlmCreateParams,
|
|
2191
|
+
type LlmUpdateParams as LlmUpdateParams,
|
|
2192
|
+
};
|
|
1910
2193
|
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../resource';
|
|
4
4
|
import * as Core from '../core';
|
|
5
|
-
import * as PhoneNumberAPI from './phone-number';
|
|
6
5
|
|
|
7
6
|
export class PhoneNumber extends APIResource {
|
|
8
7
|
/**
|
|
@@ -194,10 +193,12 @@ export interface PhoneNumberImportParams {
|
|
|
194
193
|
sip_trunk_auth_username?: string;
|
|
195
194
|
}
|
|
196
195
|
|
|
197
|
-
export namespace PhoneNumber {
|
|
198
|
-
export
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
196
|
+
export declare namespace PhoneNumber {
|
|
197
|
+
export {
|
|
198
|
+
type PhoneNumberResponse as PhoneNumberResponse,
|
|
199
|
+
type PhoneNumberListResponse as PhoneNumberListResponse,
|
|
200
|
+
type PhoneNumberCreateParams as PhoneNumberCreateParams,
|
|
201
|
+
type PhoneNumberUpdateParams as PhoneNumberUpdateParams,
|
|
202
|
+
type PhoneNumberImportParams as PhoneNumberImportParams,
|
|
203
|
+
};
|
|
203
204
|
}
|
package/src/resources/voice.ts
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../resource';
|
|
4
4
|
import * as Core from '../core';
|
|
5
|
-
import * as VoiceAPI from './voice';
|
|
6
5
|
|
|
7
6
|
export class Voice extends APIResource {
|
|
8
7
|
/**
|
|
@@ -59,7 +58,6 @@ export interface VoiceResponse {
|
|
|
59
58
|
|
|
60
59
|
export type VoiceListResponse = Array<VoiceResponse>;
|
|
61
60
|
|
|
62
|
-
export namespace Voice {
|
|
63
|
-
export
|
|
64
|
-
export import VoiceListResponse = VoiceAPI.VoiceListResponse;
|
|
61
|
+
export declare namespace Voice {
|
|
62
|
+
export { type VoiceResponse as VoiceResponse, type VoiceListResponse as VoiceListResponse };
|
|
65
63
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.9.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.9.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.9.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|