retell-sdk 5.2.0 → 5.3.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 +14 -0
- package/package.json +1 -1
- package/resources/agent.d.mts +39 -3
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +39 -3
- package/resources/agent.d.ts.map +1 -1
- package/resources/batch-call.d.mts +13 -1
- package/resources/batch-call.d.mts.map +1 -1
- package/resources/batch-call.d.ts +13 -1
- package/resources/batch-call.d.ts.map +1 -1
- package/resources/call.d.mts +58 -6
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +58 -6
- package/resources/call.d.ts.map +1 -1
- package/resources/chat-agent.d.mts +34 -0
- package/resources/chat-agent.d.mts.map +1 -1
- package/resources/chat-agent.d.ts +34 -0
- package/resources/chat-agent.d.ts.map +1 -1
- package/resources/chat.d.mts +8 -0
- package/resources/chat.d.mts.map +1 -1
- package/resources/chat.d.ts +8 -0
- package/resources/chat.d.ts.map +1 -1
- package/resources/conversation-flow-component.d.mts +1927 -16
- package/resources/conversation-flow-component.d.mts.map +1 -1
- package/resources/conversation-flow-component.d.ts +1927 -16
- package/resources/conversation-flow-component.d.ts.map +1 -1
- package/resources/conversation-flow.d.mts +3958 -136
- package/resources/conversation-flow.d.mts.map +1 -1
- package/resources/conversation-flow.d.ts +3958 -136
- package/resources/conversation-flow.d.ts.map +1 -1
- package/resources/phone-number.d.mts +57 -38
- package/resources/phone-number.d.mts.map +1 -1
- package/resources/phone-number.d.ts +57 -38
- package/resources/phone-number.d.ts.map +1 -1
- package/resources/voice.d.mts +6 -6
- package/resources/voice.d.mts.map +1 -1
- package/resources/voice.d.ts +6 -6
- package/resources/voice.d.ts.map +1 -1
- package/src/resources/agent.ts +45 -0
- package/src/resources/batch-call.ts +15 -0
- package/src/resources/call.ts +65 -3
- package/src/resources/chat-agent.ts +40 -0
- package/src/resources/chat.ts +10 -0
- package/src/resources/conversation-flow-component.ts +2808 -0
- package/src/resources/conversation-flow.ts +5801 -185
- package/src/resources/phone-number.ts +57 -38
- package/src/resources/voice.ts +6 -6
- 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
|
@@ -147,15 +147,17 @@ export interface PhoneNumberResponse {
|
|
|
147
147
|
fallback_number?: string | null;
|
|
148
148
|
|
|
149
149
|
/**
|
|
150
|
-
* Unique id of agent to bind to the number. The number will
|
|
151
|
-
* agent when receiving inbound calls. If null, this number
|
|
152
|
-
* inbound call.
|
|
150
|
+
* @deprecated Unique id of agent to bind to the number. The number will
|
|
151
|
+
* automatically use the agent when receiving inbound calls. If null, this number
|
|
152
|
+
* would not accept inbound call. Deprecated. See
|
|
153
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
153
154
|
*/
|
|
154
155
|
inbound_agent_id?: string | null;
|
|
155
156
|
|
|
156
157
|
/**
|
|
157
|
-
* Version of the inbound agent to bind to the number. If not provided,
|
|
158
|
-
* default to latest version.
|
|
158
|
+
* @deprecated Version of the inbound agent to bind to the number. If not provided,
|
|
159
|
+
* will default to latest version. Deprecated. See
|
|
160
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
159
161
|
*/
|
|
160
162
|
inbound_agent_version?: number | null;
|
|
161
163
|
|
|
@@ -193,15 +195,18 @@ export interface PhoneNumberResponse {
|
|
|
193
195
|
nickname?: string | null;
|
|
194
196
|
|
|
195
197
|
/**
|
|
196
|
-
* Unique id of agent to bind to the number. The number will
|
|
197
|
-
* agent when conducting outbound calls. If null, this number
|
|
198
|
-
* initiate outbound call without agent id override.
|
|
198
|
+
* @deprecated Unique id of agent to bind to the number. The number will
|
|
199
|
+
* automatically use the agent when conducting outbound calls. If null, this number
|
|
200
|
+
* would not be able to initiate outbound call without agent id override.
|
|
201
|
+
* Deprecated. See
|
|
202
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
199
203
|
*/
|
|
200
204
|
outbound_agent_id?: string | null;
|
|
201
205
|
|
|
202
206
|
/**
|
|
203
|
-
* Version of the outbound agent to bind to the number. If not
|
|
204
|
-
* default to latest version.
|
|
207
|
+
* @deprecated Version of the outbound agent to bind to the number. If not
|
|
208
|
+
* provided, will default to latest version. Deprecated. See
|
|
209
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
205
210
|
*/
|
|
206
211
|
outbound_agent_version?: number | null;
|
|
207
212
|
|
|
@@ -333,15 +338,17 @@ export interface PhoneNumberCreateParams {
|
|
|
333
338
|
fallback_number?: string | null;
|
|
334
339
|
|
|
335
340
|
/**
|
|
336
|
-
* Unique id of agent to bind to the number. The number will
|
|
337
|
-
* agent when receiving inbound calls. If null, this number
|
|
338
|
-
* inbound call.
|
|
341
|
+
* @deprecated Unique id of agent to bind to the number. The number will
|
|
342
|
+
* automatically use the agent when receiving inbound calls. If null, this number
|
|
343
|
+
* would not accept inbound call. Deprecated. See
|
|
344
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
339
345
|
*/
|
|
340
346
|
inbound_agent_id?: string | null;
|
|
341
347
|
|
|
342
348
|
/**
|
|
343
|
-
* Version of the inbound agent to bind to the number. If not provided,
|
|
344
|
-
* default to latest version.
|
|
349
|
+
* @deprecated Version of the inbound agent to bind to the number. If not provided,
|
|
350
|
+
* will default to latest version. Deprecated. See
|
|
351
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
345
352
|
*/
|
|
346
353
|
inbound_agent_version?: number | null;
|
|
347
354
|
|
|
@@ -370,15 +377,18 @@ export interface PhoneNumberCreateParams {
|
|
|
370
377
|
number_provider?: 'twilio' | 'telnyx';
|
|
371
378
|
|
|
372
379
|
/**
|
|
373
|
-
* Unique id of agent to bind to the number. The number will
|
|
374
|
-
* agent when conducting outbound calls. If null, this number
|
|
375
|
-
* initiate outbound call without agent id override.
|
|
380
|
+
* @deprecated Unique id of agent to bind to the number. The number will
|
|
381
|
+
* automatically use the agent when conducting outbound calls. If null, this number
|
|
382
|
+
* would not be able to initiate outbound call without agent id override.
|
|
383
|
+
* Deprecated. See
|
|
384
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
376
385
|
*/
|
|
377
386
|
outbound_agent_id?: string | null;
|
|
378
387
|
|
|
379
388
|
/**
|
|
380
|
-
* Version of the outbound agent to bind to the number. If not
|
|
381
|
-
* default to latest version.
|
|
389
|
+
* @deprecated Version of the outbound agent to bind to the number. If not
|
|
390
|
+
* provided, will default to latest version. Deprecated. See
|
|
391
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
382
392
|
*/
|
|
383
393
|
outbound_agent_version?: number | null;
|
|
384
394
|
|
|
@@ -469,15 +479,17 @@ export interface PhoneNumberUpdateParams {
|
|
|
469
479
|
fallback_number?: string | null;
|
|
470
480
|
|
|
471
481
|
/**
|
|
472
|
-
* Unique id of agent to bind to the number. The number will
|
|
473
|
-
* agent when receiving inbound calls. If set to null, this
|
|
474
|
-
* inbound call.
|
|
482
|
+
* @deprecated Unique id of agent to bind to the number. The number will
|
|
483
|
+
* automatically use the agent when receiving inbound calls. If set to null, this
|
|
484
|
+
* number would not accept inbound call. Deprecated. See
|
|
485
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
475
486
|
*/
|
|
476
487
|
inbound_agent_id?: string | null;
|
|
477
488
|
|
|
478
489
|
/**
|
|
479
|
-
* Version of the inbound agent to bind to the number. If not provided,
|
|
480
|
-
* default to latest version.
|
|
490
|
+
* @deprecated Version of the inbound agent to bind to the number. If not provided,
|
|
491
|
+
* will default to latest version. Deprecated. See
|
|
492
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
481
493
|
*/
|
|
482
494
|
inbound_agent_version?: number | null;
|
|
483
495
|
|
|
@@ -515,9 +527,11 @@ export interface PhoneNumberUpdateParams {
|
|
|
515
527
|
nickname?: string | null;
|
|
516
528
|
|
|
517
529
|
/**
|
|
518
|
-
* Unique id of agent to bind to the number. The number will
|
|
519
|
-
* agent when conducting outbound calls. If set to null, this
|
|
520
|
-
* able to initiate outbound call without agent id override.
|
|
530
|
+
* @deprecated Unique id of agent to bind to the number. The number will
|
|
531
|
+
* automatically use the agent when conducting outbound calls. If set to null, this
|
|
532
|
+
* number would not be able to initiate outbound call without agent id override.
|
|
533
|
+
* Deprecated. See
|
|
534
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
521
535
|
*/
|
|
522
536
|
outbound_agent_id?: string | null;
|
|
523
537
|
|
|
@@ -634,15 +648,17 @@ export interface PhoneNumberImportParams {
|
|
|
634
648
|
allowed_outbound_country_list?: Array<string> | null;
|
|
635
649
|
|
|
636
650
|
/**
|
|
637
|
-
* Unique id of agent to bind to the number. The number will
|
|
638
|
-
* agent when receiving inbound calls. If null, this number
|
|
639
|
-
* inbound call.
|
|
651
|
+
* @deprecated Unique id of agent to bind to the number. The number will
|
|
652
|
+
* automatically use the agent when receiving inbound calls. If null, this number
|
|
653
|
+
* would not accept inbound call. Deprecated. See
|
|
654
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
640
655
|
*/
|
|
641
656
|
inbound_agent_id?: string | null;
|
|
642
657
|
|
|
643
658
|
/**
|
|
644
|
-
* Version of the inbound agent to bind to the number. If not provided,
|
|
645
|
-
* default to latest version.
|
|
659
|
+
* @deprecated Version of the inbound agent to bind to the number. If not provided,
|
|
660
|
+
* will default to latest version. Deprecated. See
|
|
661
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
646
662
|
*/
|
|
647
663
|
inbound_agent_version?: number | null;
|
|
648
664
|
|
|
@@ -666,15 +682,18 @@ export interface PhoneNumberImportParams {
|
|
|
666
682
|
nickname?: string;
|
|
667
683
|
|
|
668
684
|
/**
|
|
669
|
-
* Unique id of agent to bind to the number. The number will
|
|
670
|
-
* agent when conducting outbound calls. If null, this number
|
|
671
|
-
* initiate outbound call without agent id override.
|
|
685
|
+
* @deprecated Unique id of agent to bind to the number. The number will
|
|
686
|
+
* automatically use the agent when conducting outbound calls. If null, this number
|
|
687
|
+
* would not be able to initiate outbound call without agent id override.
|
|
688
|
+
* Deprecated. See
|
|
689
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
672
690
|
*/
|
|
673
691
|
outbound_agent_id?: string | null;
|
|
674
692
|
|
|
675
693
|
/**
|
|
676
|
-
* Version of the outbound agent to bind to the number. If not
|
|
677
|
-
* default to latest version.
|
|
694
|
+
* @deprecated Version of the outbound agent to bind to the number. If not
|
|
695
|
+
* provided, will default to latest version. Deprecated. See
|
|
696
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
678
697
|
*/
|
|
679
698
|
outbound_agent_version?: number | null;
|
|
680
699
|
|
package/src/resources/voice.ts
CHANGED
|
@@ -53,7 +53,7 @@ export interface VoiceResponse {
|
|
|
53
53
|
/**
|
|
54
54
|
* Indicates the provider of voice.
|
|
55
55
|
*/
|
|
56
|
-
provider: 'elevenlabs' | 'openai' | 'deepgram' | 'cartesia' | 'minimax';
|
|
56
|
+
provider: 'elevenlabs' | 'openai' | 'deepgram' | 'cartesia' | 'minimax' | 'fish_audio';
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
59
|
* Unique id for the voice.
|
|
@@ -133,13 +133,13 @@ export interface VoiceAddResourceParams {
|
|
|
133
133
|
/**
|
|
134
134
|
* Voice provider to add the voice from.
|
|
135
135
|
*/
|
|
136
|
-
voice_provider?: 'elevenlabs' | 'cartesia' | 'minimax';
|
|
136
|
+
voice_provider?: 'elevenlabs' | 'cartesia' | 'minimax' | 'fish_audio';
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
export interface VoiceCloneParams {
|
|
140
140
|
/**
|
|
141
141
|
* Audio files to use for voice cloning. Up to 25 files allowed. For Cartesia and
|
|
142
|
-
* MiniMax, only 1 file is supported.
|
|
142
|
+
* MiniMax, only 1 file is supported. For Inworld, up to 3 files are supported.
|
|
143
143
|
*/
|
|
144
144
|
files: Array<Uploadable>;
|
|
145
145
|
|
|
@@ -149,9 +149,9 @@ export interface VoiceCloneParams {
|
|
|
149
149
|
voice_name: string;
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
|
-
* Voice provider to use for cloning.
|
|
152
|
+
* Voice provider to use for cloning.
|
|
153
153
|
*/
|
|
154
|
-
voice_provider
|
|
154
|
+
voice_provider: 'elevenlabs' | 'cartesia' | 'minimax' | 'fish_audio';
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
export interface VoiceSearchParams {
|
|
@@ -163,7 +163,7 @@ export interface VoiceSearchParams {
|
|
|
163
163
|
/**
|
|
164
164
|
* Voice provider to search.
|
|
165
165
|
*/
|
|
166
|
-
voice_provider?: 'elevenlabs' | 'cartesia' | 'minimax';
|
|
166
|
+
voice_provider?: 'elevenlabs' | 'cartesia' | 'minimax' | 'fish_audio';
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
export declare namespace Voice {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '5.
|
|
1
|
+
export const VERSION = '5.3.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "5.
|
|
1
|
+
export declare const VERSION = "5.3.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "5.
|
|
1
|
+
export declare const VERSION = "5.3.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '5.
|
|
1
|
+
export const VERSION = '5.3.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|