retell-sdk 5.1.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 +22 -0
- package/client.d.mts +2 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/index.d.mts +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +4 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/lib/webhook_auth.d.mts +11 -0
- package/lib/webhook_auth.d.mts.map +1 -0
- package/lib/webhook_auth.d.ts +11 -0
- package/lib/webhook_auth.d.ts.map +1 -0
- package/lib/webhook_auth.js +48 -0
- package/lib/webhook_auth.js.map +1 -0
- package/lib/webhook_auth.mjs +43 -0
- package/lib/webhook_auth.mjs.map +1 -0
- package/package.json +11 -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/client.ts +4 -0
- package/src/index.ts +1 -0
- package/src/lib/webhook_auth.ts +76 -0
- 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
|
@@ -110,14 +110,16 @@ export interface PhoneNumberResponse {
|
|
|
110
110
|
*/
|
|
111
111
|
fallback_number?: string | null;
|
|
112
112
|
/**
|
|
113
|
-
* Unique id of agent to bind to the number. The number will
|
|
114
|
-
* agent when receiving inbound calls. If null, this number
|
|
115
|
-
* inbound call.
|
|
113
|
+
* @deprecated Unique id of agent to bind to the number. The number will
|
|
114
|
+
* automatically use the agent when receiving inbound calls. If null, this number
|
|
115
|
+
* would not accept inbound call. Deprecated. See
|
|
116
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
116
117
|
*/
|
|
117
118
|
inbound_agent_id?: string | null;
|
|
118
119
|
/**
|
|
119
|
-
* Version of the inbound agent to bind to the number. If not provided,
|
|
120
|
-
* default to latest version.
|
|
120
|
+
* @deprecated Version of the inbound agent to bind to the number. If not provided,
|
|
121
|
+
* will default to latest version. Deprecated. See
|
|
122
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
121
123
|
*/
|
|
122
124
|
inbound_agent_version?: number | null;
|
|
123
125
|
/**
|
|
@@ -149,14 +151,17 @@ export interface PhoneNumberResponse {
|
|
|
149
151
|
*/
|
|
150
152
|
nickname?: string | null;
|
|
151
153
|
/**
|
|
152
|
-
* Unique id of agent to bind to the number. The number will
|
|
153
|
-
* agent when conducting outbound calls. If null, this number
|
|
154
|
-
* initiate outbound call without agent id override.
|
|
154
|
+
* @deprecated Unique id of agent to bind to the number. The number will
|
|
155
|
+
* automatically use the agent when conducting outbound calls. If null, this number
|
|
156
|
+
* would not be able to initiate outbound call without agent id override.
|
|
157
|
+
* Deprecated. See
|
|
158
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
155
159
|
*/
|
|
156
160
|
outbound_agent_id?: string | null;
|
|
157
161
|
/**
|
|
158
|
-
* Version of the outbound agent to bind to the number. If not
|
|
159
|
-
* default to latest version.
|
|
162
|
+
* @deprecated Version of the outbound agent to bind to the number. If not
|
|
163
|
+
* provided, will default to latest version. Deprecated. See
|
|
164
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
160
165
|
*/
|
|
161
166
|
outbound_agent_version?: number | null;
|
|
162
167
|
/**
|
|
@@ -262,14 +267,16 @@ export interface PhoneNumberCreateParams {
|
|
|
262
267
|
*/
|
|
263
268
|
fallback_number?: string | null;
|
|
264
269
|
/**
|
|
265
|
-
* Unique id of agent to bind to the number. The number will
|
|
266
|
-
* agent when receiving inbound calls. If null, this number
|
|
267
|
-
* inbound call.
|
|
270
|
+
* @deprecated Unique id of agent to bind to the number. The number will
|
|
271
|
+
* automatically use the agent when receiving inbound calls. If null, this number
|
|
272
|
+
* would not accept inbound call. Deprecated. See
|
|
273
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
268
274
|
*/
|
|
269
275
|
inbound_agent_id?: string | null;
|
|
270
276
|
/**
|
|
271
|
-
* Version of the inbound agent to bind to the number. If not provided,
|
|
272
|
-
* default to latest version.
|
|
277
|
+
* @deprecated Version of the inbound agent to bind to the number. If not provided,
|
|
278
|
+
* will default to latest version. Deprecated. See
|
|
279
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
273
280
|
*/
|
|
274
281
|
inbound_agent_version?: number | null;
|
|
275
282
|
/**
|
|
@@ -293,14 +300,17 @@ export interface PhoneNumberCreateParams {
|
|
|
293
300
|
*/
|
|
294
301
|
number_provider?: 'twilio' | 'telnyx';
|
|
295
302
|
/**
|
|
296
|
-
* Unique id of agent to bind to the number. The number will
|
|
297
|
-
* agent when conducting outbound calls. If null, this number
|
|
298
|
-
* initiate outbound call without agent id override.
|
|
303
|
+
* @deprecated Unique id of agent to bind to the number. The number will
|
|
304
|
+
* automatically use the agent when conducting outbound calls. If null, this number
|
|
305
|
+
* would not be able to initiate outbound call without agent id override.
|
|
306
|
+
* Deprecated. See
|
|
307
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
299
308
|
*/
|
|
300
309
|
outbound_agent_id?: string | null;
|
|
301
310
|
/**
|
|
302
|
-
* Version of the outbound agent to bind to the number. If not
|
|
303
|
-
* default to latest version.
|
|
311
|
+
* @deprecated Version of the outbound agent to bind to the number. If not
|
|
312
|
+
* provided, will default to latest version. Deprecated. See
|
|
313
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
304
314
|
*/
|
|
305
315
|
outbound_agent_version?: number | null;
|
|
306
316
|
/**
|
|
@@ -375,14 +385,16 @@ export interface PhoneNumberUpdateParams {
|
|
|
375
385
|
*/
|
|
376
386
|
fallback_number?: string | null;
|
|
377
387
|
/**
|
|
378
|
-
* Unique id of agent to bind to the number. The number will
|
|
379
|
-
* agent when receiving inbound calls. If set to null, this
|
|
380
|
-
* inbound call.
|
|
388
|
+
* @deprecated Unique id of agent to bind to the number. The number will
|
|
389
|
+
* automatically use the agent when receiving inbound calls. If set to null, this
|
|
390
|
+
* number would not accept inbound call. Deprecated. See
|
|
391
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
381
392
|
*/
|
|
382
393
|
inbound_agent_id?: string | null;
|
|
383
394
|
/**
|
|
384
|
-
* Version of the inbound agent to bind to the number. If not provided,
|
|
385
|
-
* default to latest version.
|
|
395
|
+
* @deprecated Version of the inbound agent to bind to the number. If not provided,
|
|
396
|
+
* will default to latest version. Deprecated. See
|
|
397
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
386
398
|
*/
|
|
387
399
|
inbound_agent_version?: number | null;
|
|
388
400
|
/**
|
|
@@ -414,9 +426,11 @@ export interface PhoneNumberUpdateParams {
|
|
|
414
426
|
*/
|
|
415
427
|
nickname?: string | null;
|
|
416
428
|
/**
|
|
417
|
-
* Unique id of agent to bind to the number. The number will
|
|
418
|
-
* agent when conducting outbound calls. If set to null, this
|
|
419
|
-
* able to initiate outbound call without agent id override.
|
|
429
|
+
* @deprecated Unique id of agent to bind to the number. The number will
|
|
430
|
+
* automatically use the agent when conducting outbound calls. If set to null, this
|
|
431
|
+
* number would not be able to initiate outbound call without agent id override.
|
|
432
|
+
* Deprecated. See
|
|
433
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
420
434
|
*/
|
|
421
435
|
outbound_agent_id?: string | null;
|
|
422
436
|
/**
|
|
@@ -511,14 +525,16 @@ export interface PhoneNumberImportParams {
|
|
|
511
525
|
*/
|
|
512
526
|
allowed_outbound_country_list?: Array<string> | null;
|
|
513
527
|
/**
|
|
514
|
-
* Unique id of agent to bind to the number. The number will
|
|
515
|
-
* agent when receiving inbound calls. If null, this number
|
|
516
|
-
* inbound call.
|
|
528
|
+
* @deprecated Unique id of agent to bind to the number. The number will
|
|
529
|
+
* automatically use the agent when receiving inbound calls. If null, this number
|
|
530
|
+
* would not accept inbound call. Deprecated. See
|
|
531
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
517
532
|
*/
|
|
518
533
|
inbound_agent_id?: string | null;
|
|
519
534
|
/**
|
|
520
|
-
* Version of the inbound agent to bind to the number. If not provided,
|
|
521
|
-
* default to latest version.
|
|
535
|
+
* @deprecated Version of the inbound agent to bind to the number. If not provided,
|
|
536
|
+
* will default to latest version. Deprecated. See
|
|
537
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
522
538
|
*/
|
|
523
539
|
inbound_agent_version?: number | null;
|
|
524
540
|
/**
|
|
@@ -538,14 +554,17 @@ export interface PhoneNumberImportParams {
|
|
|
538
554
|
*/
|
|
539
555
|
nickname?: string;
|
|
540
556
|
/**
|
|
541
|
-
* Unique id of agent to bind to the number. The number will
|
|
542
|
-
* agent when conducting outbound calls. If null, this number
|
|
543
|
-
* initiate outbound call without agent id override.
|
|
557
|
+
* @deprecated Unique id of agent to bind to the number. The number will
|
|
558
|
+
* automatically use the agent when conducting outbound calls. If null, this number
|
|
559
|
+
* would not be able to initiate outbound call without agent id override.
|
|
560
|
+
* Deprecated. See
|
|
561
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
544
562
|
*/
|
|
545
563
|
outbound_agent_id?: string | null;
|
|
546
564
|
/**
|
|
547
|
-
* Version of the outbound agent to bind to the number. If not
|
|
548
|
-
* default to latest version.
|
|
565
|
+
* @deprecated Version of the outbound agent to bind to the number. If not
|
|
566
|
+
* provided, will default to latest version. Deprecated. See
|
|
567
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
549
568
|
*/
|
|
550
569
|
outbound_agent_version?: number | null;
|
|
551
570
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|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Q,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvC;;;;;OAKG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,uBAAuB,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC;IAEtE;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,yBAAiB,uBAAuB,CAAC;IACvC,UAAiB,YAAY;QAC3B,QAAQ,EAAE,MAAM,CAAC;QAEjB;;;WAGG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB;IAED,UAAiB,aAAa;QAC5B,QAAQ,EAAE,MAAM,CAAC;QAEjB;;;WAGG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -110,14 +110,16 @@ export interface PhoneNumberResponse {
|
|
|
110
110
|
*/
|
|
111
111
|
fallback_number?: string | null;
|
|
112
112
|
/**
|
|
113
|
-
* Unique id of agent to bind to the number. The number will
|
|
114
|
-
* agent when receiving inbound calls. If null, this number
|
|
115
|
-
* inbound call.
|
|
113
|
+
* @deprecated Unique id of agent to bind to the number. The number will
|
|
114
|
+
* automatically use the agent when receiving inbound calls. If null, this number
|
|
115
|
+
* would not accept inbound call. Deprecated. See
|
|
116
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
116
117
|
*/
|
|
117
118
|
inbound_agent_id?: string | null;
|
|
118
119
|
/**
|
|
119
|
-
* Version of the inbound agent to bind to the number. If not provided,
|
|
120
|
-
* default to latest version.
|
|
120
|
+
* @deprecated Version of the inbound agent to bind to the number. If not provided,
|
|
121
|
+
* will default to latest version. Deprecated. See
|
|
122
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
121
123
|
*/
|
|
122
124
|
inbound_agent_version?: number | null;
|
|
123
125
|
/**
|
|
@@ -149,14 +151,17 @@ export interface PhoneNumberResponse {
|
|
|
149
151
|
*/
|
|
150
152
|
nickname?: string | null;
|
|
151
153
|
/**
|
|
152
|
-
* Unique id of agent to bind to the number. The number will
|
|
153
|
-
* agent when conducting outbound calls. If null, this number
|
|
154
|
-
* initiate outbound call without agent id override.
|
|
154
|
+
* @deprecated Unique id of agent to bind to the number. The number will
|
|
155
|
+
* automatically use the agent when conducting outbound calls. If null, this number
|
|
156
|
+
* would not be able to initiate outbound call without agent id override.
|
|
157
|
+
* Deprecated. See
|
|
158
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
155
159
|
*/
|
|
156
160
|
outbound_agent_id?: string | null;
|
|
157
161
|
/**
|
|
158
|
-
* Version of the outbound agent to bind to the number. If not
|
|
159
|
-
* default to latest version.
|
|
162
|
+
* @deprecated Version of the outbound agent to bind to the number. If not
|
|
163
|
+
* provided, will default to latest version. Deprecated. See
|
|
164
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
160
165
|
*/
|
|
161
166
|
outbound_agent_version?: number | null;
|
|
162
167
|
/**
|
|
@@ -262,14 +267,16 @@ export interface PhoneNumberCreateParams {
|
|
|
262
267
|
*/
|
|
263
268
|
fallback_number?: string | null;
|
|
264
269
|
/**
|
|
265
|
-
* Unique id of agent to bind to the number. The number will
|
|
266
|
-
* agent when receiving inbound calls. If null, this number
|
|
267
|
-
* inbound call.
|
|
270
|
+
* @deprecated Unique id of agent to bind to the number. The number will
|
|
271
|
+
* automatically use the agent when receiving inbound calls. If null, this number
|
|
272
|
+
* would not accept inbound call. Deprecated. See
|
|
273
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
268
274
|
*/
|
|
269
275
|
inbound_agent_id?: string | null;
|
|
270
276
|
/**
|
|
271
|
-
* Version of the inbound agent to bind to the number. If not provided,
|
|
272
|
-
* default to latest version.
|
|
277
|
+
* @deprecated Version of the inbound agent to bind to the number. If not provided,
|
|
278
|
+
* will default to latest version. Deprecated. See
|
|
279
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
273
280
|
*/
|
|
274
281
|
inbound_agent_version?: number | null;
|
|
275
282
|
/**
|
|
@@ -293,14 +300,17 @@ export interface PhoneNumberCreateParams {
|
|
|
293
300
|
*/
|
|
294
301
|
number_provider?: 'twilio' | 'telnyx';
|
|
295
302
|
/**
|
|
296
|
-
* Unique id of agent to bind to the number. The number will
|
|
297
|
-
* agent when conducting outbound calls. If null, this number
|
|
298
|
-
* initiate outbound call without agent id override.
|
|
303
|
+
* @deprecated Unique id of agent to bind to the number. The number will
|
|
304
|
+
* automatically use the agent when conducting outbound calls. If null, this number
|
|
305
|
+
* would not be able to initiate outbound call without agent id override.
|
|
306
|
+
* Deprecated. See
|
|
307
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
299
308
|
*/
|
|
300
309
|
outbound_agent_id?: string | null;
|
|
301
310
|
/**
|
|
302
|
-
* Version of the outbound agent to bind to the number. If not
|
|
303
|
-
* default to latest version.
|
|
311
|
+
* @deprecated Version of the outbound agent to bind to the number. If not
|
|
312
|
+
* provided, will default to latest version. Deprecated. See
|
|
313
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
304
314
|
*/
|
|
305
315
|
outbound_agent_version?: number | null;
|
|
306
316
|
/**
|
|
@@ -375,14 +385,16 @@ export interface PhoneNumberUpdateParams {
|
|
|
375
385
|
*/
|
|
376
386
|
fallback_number?: string | null;
|
|
377
387
|
/**
|
|
378
|
-
* Unique id of agent to bind to the number. The number will
|
|
379
|
-
* agent when receiving inbound calls. If set to null, this
|
|
380
|
-
* inbound call.
|
|
388
|
+
* @deprecated Unique id of agent to bind to the number. The number will
|
|
389
|
+
* automatically use the agent when receiving inbound calls. If set to null, this
|
|
390
|
+
* number would not accept inbound call. Deprecated. See
|
|
391
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
381
392
|
*/
|
|
382
393
|
inbound_agent_id?: string | null;
|
|
383
394
|
/**
|
|
384
|
-
* Version of the inbound agent to bind to the number. If not provided,
|
|
385
|
-
* default to latest version.
|
|
395
|
+
* @deprecated Version of the inbound agent to bind to the number. If not provided,
|
|
396
|
+
* will default to latest version. Deprecated. See
|
|
397
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
386
398
|
*/
|
|
387
399
|
inbound_agent_version?: number | null;
|
|
388
400
|
/**
|
|
@@ -414,9 +426,11 @@ export interface PhoneNumberUpdateParams {
|
|
|
414
426
|
*/
|
|
415
427
|
nickname?: string | null;
|
|
416
428
|
/**
|
|
417
|
-
* Unique id of agent to bind to the number. The number will
|
|
418
|
-
* agent when conducting outbound calls. If set to null, this
|
|
419
|
-
* able to initiate outbound call without agent id override.
|
|
429
|
+
* @deprecated Unique id of agent to bind to the number. The number will
|
|
430
|
+
* automatically use the agent when conducting outbound calls. If set to null, this
|
|
431
|
+
* number would not be able to initiate outbound call without agent id override.
|
|
432
|
+
* Deprecated. See
|
|
433
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
420
434
|
*/
|
|
421
435
|
outbound_agent_id?: string | null;
|
|
422
436
|
/**
|
|
@@ -511,14 +525,16 @@ export interface PhoneNumberImportParams {
|
|
|
511
525
|
*/
|
|
512
526
|
allowed_outbound_country_list?: Array<string> | null;
|
|
513
527
|
/**
|
|
514
|
-
* Unique id of agent to bind to the number. The number will
|
|
515
|
-
* agent when receiving inbound calls. If null, this number
|
|
516
|
-
* inbound call.
|
|
528
|
+
* @deprecated Unique id of agent to bind to the number. The number will
|
|
529
|
+
* automatically use the agent when receiving inbound calls. If null, this number
|
|
530
|
+
* would not accept inbound call. Deprecated. See
|
|
531
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
517
532
|
*/
|
|
518
533
|
inbound_agent_id?: string | null;
|
|
519
534
|
/**
|
|
520
|
-
* Version of the inbound agent to bind to the number. If not provided,
|
|
521
|
-
* default to latest version.
|
|
535
|
+
* @deprecated Version of the inbound agent to bind to the number. If not provided,
|
|
536
|
+
* will default to latest version. Deprecated. See
|
|
537
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
522
538
|
*/
|
|
523
539
|
inbound_agent_version?: number | null;
|
|
524
540
|
/**
|
|
@@ -538,14 +554,17 @@ export interface PhoneNumberImportParams {
|
|
|
538
554
|
*/
|
|
539
555
|
nickname?: string;
|
|
540
556
|
/**
|
|
541
|
-
* Unique id of agent to bind to the number. The number will
|
|
542
|
-
* agent when conducting outbound calls. If null, this number
|
|
543
|
-
* initiate outbound call without agent id override.
|
|
557
|
+
* @deprecated Unique id of agent to bind to the number. The number will
|
|
558
|
+
* automatically use the agent when conducting outbound calls. If null, this number
|
|
559
|
+
* would not be able to initiate outbound call without agent id override.
|
|
560
|
+
* Deprecated. See
|
|
561
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
544
562
|
*/
|
|
545
563
|
outbound_agent_id?: string | null;
|
|
546
564
|
/**
|
|
547
|
-
* Version of the outbound agent to bind to the number. If not
|
|
548
|
-
* default to latest version.
|
|
565
|
+
* @deprecated Version of the outbound agent to bind to the number. If not
|
|
566
|
+
* provided, will default to latest version. Deprecated. See
|
|
567
|
+
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
549
568
|
*/
|
|
550
569
|
outbound_agent_version?: number | null;
|
|
551
570
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-number.d.ts","sourceRoot":"","sources":["../src/resources/phone-number.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;OAQG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAIhG;;;;;;;;OAQG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAIxF;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAIlC;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAInE;;;;;;;OAOG;IACH,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOvE;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAGjG;AAED,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,2BAA2B,EAAE,MAAM,CAAC;IA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ources/voice.d.mts
CHANGED
|
@@ -32,7 +32,7 @@ export interface VoiceResponse {
|
|
|
32
32
|
/**
|
|
33
33
|
* Indicates the provider of voice.
|
|
34
34
|
*/
|
|
35
|
-
provider: 'elevenlabs' | 'openai' | 'deepgram' | 'cartesia' | 'minimax';
|
|
35
|
+
provider: 'elevenlabs' | 'openai' | 'deepgram' | 'cartesia' | 'minimax' | 'fish_audio';
|
|
36
36
|
/**
|
|
37
37
|
* Unique id for the voice.
|
|
38
38
|
*/
|
|
@@ -97,12 +97,12 @@ export interface VoiceAddResourceParams {
|
|
|
97
97
|
/**
|
|
98
98
|
* Voice provider to add the voice from.
|
|
99
99
|
*/
|
|
100
|
-
voice_provider?: 'elevenlabs' | 'cartesia' | 'minimax';
|
|
100
|
+
voice_provider?: 'elevenlabs' | 'cartesia' | 'minimax' | 'fish_audio';
|
|
101
101
|
}
|
|
102
102
|
export interface VoiceCloneParams {
|
|
103
103
|
/**
|
|
104
104
|
* Audio files to use for voice cloning. Up to 25 files allowed. For Cartesia and
|
|
105
|
-
* MiniMax, only 1 file is supported.
|
|
105
|
+
* MiniMax, only 1 file is supported. For Inworld, up to 3 files are supported.
|
|
106
106
|
*/
|
|
107
107
|
files: Array<Uploadable>;
|
|
108
108
|
/**
|
|
@@ -110,9 +110,9 @@ export interface VoiceCloneParams {
|
|
|
110
110
|
*/
|
|
111
111
|
voice_name: string;
|
|
112
112
|
/**
|
|
113
|
-
* Voice provider to use for cloning.
|
|
113
|
+
* Voice provider to use for cloning.
|
|
114
114
|
*/
|
|
115
|
-
voice_provider
|
|
115
|
+
voice_provider: 'elevenlabs' | 'cartesia' | 'minimax' | 'fish_audio';
|
|
116
116
|
}
|
|
117
117
|
export interface VoiceSearchParams {
|
|
118
118
|
/**
|
|
@@ -122,7 +122,7 @@ export interface VoiceSearchParams {
|
|
|
122
122
|
/**
|
|
123
123
|
* Voice provider to search.
|
|
124
124
|
*/
|
|
125
|
-
voice_provider?: 'elevenlabs' | 'cartesia' | 'minimax';
|
|
125
|
+
voice_provider?: 'elevenlabs' | 'cartesia' | 'minimax' | 'fish_audio';
|
|
126
126
|
}
|
|
127
127
|
export declare namespace Voice {
|
|
128
128
|
export { type VoiceResponse as VoiceResponse, type VoiceListResponse as VoiceListResponse, type VoiceSearchResponse as VoiceSearchResponse, type VoiceAddResourceParams as VoiceAddResourceParams, type VoiceCloneParams as VoiceCloneParams, type VoiceSearchParams as VoiceSearchParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice.d.mts","sourceRoot":"","sources":["../src/resources/voice.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OACnB,EAAE,cAAc,EAAE;AAIzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;IAI9E;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAI7D;;OAEG;IACH,WAAW,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;IAI9F;;OAEG;IACH,KAAK,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;IAIlF;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAG3F;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC;IAE1B;;OAEG;IACH,QAAQ,EAAE,YAAY,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CAAC;
|
|
1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,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/voice.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export interface VoiceResponse {
|
|
|
32
32
|
/**
|
|
33
33
|
* Indicates the provider of voice.
|
|
34
34
|
*/
|
|
35
|
-
provider: 'elevenlabs' | 'openai' | 'deepgram' | 'cartesia' | 'minimax';
|
|
35
|
+
provider: 'elevenlabs' | 'openai' | 'deepgram' | 'cartesia' | 'minimax' | 'fish_audio';
|
|
36
36
|
/**
|
|
37
37
|
* Unique id for the voice.
|
|
38
38
|
*/
|
|
@@ -97,12 +97,12 @@ export interface VoiceAddResourceParams {
|
|
|
97
97
|
/**
|
|
98
98
|
* Voice provider to add the voice from.
|
|
99
99
|
*/
|
|
100
|
-
voice_provider?: 'elevenlabs' | 'cartesia' | 'minimax';
|
|
100
|
+
voice_provider?: 'elevenlabs' | 'cartesia' | 'minimax' | 'fish_audio';
|
|
101
101
|
}
|
|
102
102
|
export interface VoiceCloneParams {
|
|
103
103
|
/**
|
|
104
104
|
* Audio files to use for voice cloning. Up to 25 files allowed. For Cartesia and
|
|
105
|
-
* MiniMax, only 1 file is supported.
|
|
105
|
+
* MiniMax, only 1 file is supported. For Inworld, up to 3 files are supported.
|
|
106
106
|
*/
|
|
107
107
|
files: Array<Uploadable>;
|
|
108
108
|
/**
|
|
@@ -110,9 +110,9 @@ export interface VoiceCloneParams {
|
|
|
110
110
|
*/
|
|
111
111
|
voice_name: string;
|
|
112
112
|
/**
|
|
113
|
-
* Voice provider to use for cloning.
|
|
113
|
+
* Voice provider to use for cloning.
|
|
114
114
|
*/
|
|
115
|
-
voice_provider
|
|
115
|
+
voice_provider: 'elevenlabs' | 'cartesia' | 'minimax' | 'fish_audio';
|
|
116
116
|
}
|
|
117
117
|
export interface VoiceSearchParams {
|
|
118
118
|
/**
|
|
@@ -122,7 +122,7 @@ export interface VoiceSearchParams {
|
|
|
122
122
|
/**
|
|
123
123
|
* Voice provider to search.
|
|
124
124
|
*/
|
|
125
|
-
voice_provider?: 'elevenlabs' | 'cartesia' | 'minimax';
|
|
125
|
+
voice_provider?: 'elevenlabs' | 'cartesia' | 'minimax' | 'fish_audio';
|
|
126
126
|
}
|
|
127
127
|
export declare namespace Voice {
|
|
128
128
|
export { type VoiceResponse as VoiceResponse, type VoiceListResponse as VoiceListResponse, type VoiceSearchResponse as VoiceSearchResponse, type VoiceAddResourceParams as VoiceAddResourceParams, type VoiceCloneParams as VoiceCloneParams, type VoiceSearchParams as VoiceSearchParams, };
|
package/resources/voice.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice.d.ts","sourceRoot":"","sources":["../src/resources/voice.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OACnB,EAAE,cAAc,EAAE;AAIzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;IAI9E;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAI7D;;OAEG;IACH,WAAW,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;IAI9F;;OAEG;IACH,KAAK,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;IAIlF;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAG3F;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC;IAE1B;;OAEG;IACH,QAAQ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,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/src/client.ts
CHANGED
|
@@ -14,6 +14,7 @@ import * as Opts from './internal/request-options';
|
|
|
14
14
|
import { VERSION } from './version';
|
|
15
15
|
import * as Errors from './core/error';
|
|
16
16
|
import * as Uploads from './core/uploads';
|
|
17
|
+
import * as Webhooks from './lib/webhook_auth';
|
|
17
18
|
import * as API from './resources/index';
|
|
18
19
|
import { APIPromise } from './core/api-promise';
|
|
19
20
|
import {
|
|
@@ -836,6 +837,9 @@ export class Retell {
|
|
|
836
837
|
|
|
837
838
|
static toFile = Uploads.toFile;
|
|
838
839
|
|
|
840
|
+
static verify = Webhooks.verify;
|
|
841
|
+
static sign = Webhooks.sign;
|
|
842
|
+
|
|
839
843
|
call: API.Call = new API.Call(this);
|
|
840
844
|
chat: API.Chat = new API.Chat(this);
|
|
841
845
|
phoneNumber: API.PhoneNumber = new API.PhoneNumber(this);
|
package/src/index.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
export { Retell as default } from './client';
|
|
4
4
|
|
|
5
5
|
export { type Uploadable, toFile } from './core/uploads';
|
|
6
|
+
export { verify, sign, type SecureWebhooks } from './lib/webhook_auth';
|
|
6
7
|
export { APIPromise } from './core/api-promise';
|
|
7
8
|
export { Retell, type ClientOptions } from './client';
|
|
8
9
|
export {
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
const FIVE_MINUTES = 5 * 60 * 1000;
|
|
2
|
+
|
|
3
|
+
async function hmacSha256Hex(secret: string, input: string): Promise<string> {
|
|
4
|
+
const enc = new TextEncoder();
|
|
5
|
+
const key = await globalThis.crypto.subtle.importKey(
|
|
6
|
+
'raw',
|
|
7
|
+
enc.encode(secret),
|
|
8
|
+
{ name: 'HMAC', hash: 'SHA-256' },
|
|
9
|
+
false,
|
|
10
|
+
['sign'],
|
|
11
|
+
);
|
|
12
|
+
const sig = await globalThis.crypto.subtle.sign('HMAC', key, enc.encode(input));
|
|
13
|
+
return Array.from(new Uint8Array(sig))
|
|
14
|
+
.map((b) => b.toString(16).padStart(2, '0'))
|
|
15
|
+
.join('');
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
async function hmacSha256Verify(secret: string, input: string, digest: string): Promise<boolean> {
|
|
19
|
+
const enc = new TextEncoder();
|
|
20
|
+
const key = await globalThis.crypto.subtle.importKey(
|
|
21
|
+
'raw',
|
|
22
|
+
enc.encode(secret),
|
|
23
|
+
{ name: 'HMAC', hash: 'SHA-256' },
|
|
24
|
+
false,
|
|
25
|
+
['verify'],
|
|
26
|
+
);
|
|
27
|
+
const digestBytes = new Uint8Array(digest.length / 2);
|
|
28
|
+
for (let i = 0; i < digest.length; i += 2) {
|
|
29
|
+
digestBytes[i / 2] = parseInt(digest.slice(i, i + 2), 16);
|
|
30
|
+
}
|
|
31
|
+
return globalThis.crypto.subtle.verify('HMAC', key, digestBytes, enc.encode(input));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface SecureWebhooks {
|
|
35
|
+
sign(input: string, secret: string, timestamp?: number): Promise<string>;
|
|
36
|
+
verify(
|
|
37
|
+
input: string,
|
|
38
|
+
secret: string,
|
|
39
|
+
signature: string,
|
|
40
|
+
opts?: { timeout?: number; timestamp?: number },
|
|
41
|
+
): Promise<boolean>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export const symmetric: SecureWebhooks = {
|
|
45
|
+
async sign(input: string, secret: string, timestamp: number = Date.now()): Promise<string> {
|
|
46
|
+
const digest = await hmacSha256Hex(secret, input + timestamp);
|
|
47
|
+
return `v=${timestamp},d=${digest}`;
|
|
48
|
+
},
|
|
49
|
+
|
|
50
|
+
async verify(
|
|
51
|
+
input: string,
|
|
52
|
+
secret: string,
|
|
53
|
+
signature: string,
|
|
54
|
+
opts: { timeout?: number; timestamp?: number } = {},
|
|
55
|
+
): Promise<boolean> {
|
|
56
|
+
const match = /v=(\d+),d=(.*)/.exec(signature);
|
|
57
|
+
if (!match) return false;
|
|
58
|
+
|
|
59
|
+
const poststamp = Number(match[1]);
|
|
60
|
+
const postDigest = match[2]!;
|
|
61
|
+
const timestamp = opts.timestamp ?? Date.now();
|
|
62
|
+
const timeout = opts.timeout ?? FIVE_MINUTES;
|
|
63
|
+
|
|
64
|
+
if (Math.abs(timestamp - poststamp) > timeout) return false;
|
|
65
|
+
|
|
66
|
+
return hmacSha256Verify(secret, input + poststamp, postDigest);
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export const verify = (body: string, apiKey: string, signature: string): Promise<boolean> => {
|
|
71
|
+
return symmetric.verify(body, apiKey, signature);
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export const sign = (body: string, apiKey: string): Promise<string> => {
|
|
75
|
+
return symmetric.sign(body, apiKey);
|
|
76
|
+
};
|