retell-sdk 5.32.5 → 5.33.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 +12 -0
- package/package.json +1 -1
- package/resources/call.d.mts +11 -10
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +11 -10
- package/resources/call.d.ts.map +1 -1
- package/resources/chat.d.mts +1 -1
- package/resources/chat.d.mts.map +1 -1
- package/resources/chat.d.ts +1 -1
- package/resources/chat.d.ts.map +1 -1
- package/resources/phone-number.d.mts +154 -150
- package/resources/phone-number.d.mts.map +1 -1
- package/resources/phone-number.d.ts +154 -150
- package/resources/phone-number.d.ts.map +1 -1
- package/resources/phone-number.js +27 -27
- package/resources/phone-number.js.map +1 -1
- package/resources/phone-number.mjs +27 -27
- package/resources/phone-number.mjs.map +1 -1
- package/src/resources/call.ts +15 -9
- package/src/resources/chat.ts +1 -0
- package/src/resources/phone-number.ts +176 -172
- 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
|
@@ -12,6 +12,20 @@ export declare class PhoneNumber extends APIResource {
|
|
|
12
12
|
* ```
|
|
13
13
|
*/
|
|
14
14
|
create(body: PhoneNumberCreateParams, options?: RequestOptions): APIPromise<PhoneNumberResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Import a phone number from custom telephony & Bind agents
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const phoneNumberResponse = await client.phoneNumber.import(
|
|
21
|
+
* {
|
|
22
|
+
* phone_number: '+14157774444',
|
|
23
|
+
* termination_uri: 'someuri.pstn.twilio.com',
|
|
24
|
+
* },
|
|
25
|
+
* );
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
import(body: PhoneNumberImportParams, options?: RequestOptions): APIPromise<PhoneNumberResponse>;
|
|
15
29
|
/**
|
|
16
30
|
* Retrieve details of a specific phone number
|
|
17
31
|
*
|
|
@@ -22,6 +36,15 @@ export declare class PhoneNumber extends APIResource {
|
|
|
22
36
|
* ```
|
|
23
37
|
*/
|
|
24
38
|
retrieve(phoneNumber: string, options?: RequestOptions): APIPromise<PhoneNumberResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* List phone numbers with pagination
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const phoneNumbers = await client.phoneNumber.list();
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
list(query?: PhoneNumberListParams | null | undefined, options?: RequestOptions): APIPromise<PhoneNumberListResponse>;
|
|
25
48
|
/**
|
|
26
49
|
* Update agent bound to a purchased phone number
|
|
27
50
|
*
|
|
@@ -50,15 +73,6 @@ export declare class PhoneNumber extends APIResource {
|
|
|
50
73
|
* ```
|
|
51
74
|
*/
|
|
52
75
|
update(phoneNumber: string, body: PhoneNumberUpdateParams, options?: RequestOptions): APIPromise<PhoneNumberResponse>;
|
|
53
|
-
/**
|
|
54
|
-
* List phone numbers with pagination
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```ts
|
|
58
|
-
* const phoneNumbers = await client.phoneNumber.list();
|
|
59
|
-
* ```
|
|
60
|
-
*/
|
|
61
|
-
list(query?: PhoneNumberListParams | null | undefined, options?: RequestOptions): APIPromise<PhoneNumberListResponse>;
|
|
62
76
|
/**
|
|
63
77
|
* Delete an existing phone number
|
|
64
78
|
*
|
|
@@ -68,20 +82,6 @@ export declare class PhoneNumber extends APIResource {
|
|
|
68
82
|
* ```
|
|
69
83
|
*/
|
|
70
84
|
delete(phoneNumber: string, options?: RequestOptions): APIPromise<void>;
|
|
71
|
-
/**
|
|
72
|
-
* Import a phone number from custom telephony & Bind agents
|
|
73
|
-
*
|
|
74
|
-
* @example
|
|
75
|
-
* ```ts
|
|
76
|
-
* const phoneNumberResponse = await client.phoneNumber.import(
|
|
77
|
-
* {
|
|
78
|
-
* phone_number: '+14157774444',
|
|
79
|
-
* termination_uri: 'someuri.pstn.twilio.com',
|
|
80
|
-
* },
|
|
81
|
-
* );
|
|
82
|
-
* ```
|
|
83
|
-
*/
|
|
84
|
-
import(body: PhoneNumberImportParams, options?: RequestOptions): APIPromise<PhoneNumberResponse>;
|
|
85
85
|
}
|
|
86
86
|
export interface PhoneNumberResponse {
|
|
87
87
|
/**
|
|
@@ -114,11 +114,11 @@ export interface PhoneNumberResponse {
|
|
|
114
114
|
*/
|
|
115
115
|
area_code?: number;
|
|
116
116
|
/**
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
117
|
+
* When inbound call concurrency is reached and a slot does not free up after
|
|
118
|
+
* extended ringing, the call will fall back to this number. Can be either a Retell
|
|
119
|
+
* phone number or an external number. Cannot be the same as this phone number, and
|
|
120
|
+
* cannot be a number that already has its own fallback configured (prevents nested
|
|
121
|
+
* forwarding).
|
|
122
122
|
*/
|
|
123
123
|
fallback_number?: string | null;
|
|
124
124
|
/**
|
|
@@ -135,8 +135,9 @@ export interface PhoneNumberResponse {
|
|
|
135
135
|
*/
|
|
136
136
|
inbound_sms_agents?: Array<PhoneNumberResponse.InboundSMSAgent> | null;
|
|
137
137
|
/**
|
|
138
|
-
* If set, will send a webhook for inbound SMS, where you can override
|
|
139
|
-
* set dynamic variables and other fields specific to that
|
|
138
|
+
* If set, Retell will send a webhook for inbound SMS, where you can override the
|
|
139
|
+
* agent ID, set dynamic variables, and configure other fields specific to that
|
|
140
|
+
* chat.
|
|
140
141
|
*/
|
|
141
142
|
inbound_sms_webhook_url?: string | null;
|
|
142
143
|
/**
|
|
@@ -298,11 +299,11 @@ export interface PhoneNumberCreateParams {
|
|
|
298
299
|
*/
|
|
299
300
|
country_code?: 'US' | 'CA';
|
|
300
301
|
/**
|
|
301
|
-
*
|
|
302
|
-
*
|
|
303
|
-
*
|
|
304
|
-
*
|
|
305
|
-
*
|
|
302
|
+
* When inbound call concurrency is reached and a slot does not free up after
|
|
303
|
+
* extended ringing, the call will fall back to this number. Can be either a Retell
|
|
304
|
+
* phone number or an external number. Cannot be the same as this phone number, and
|
|
305
|
+
* cannot be a number that already has its own fallback configured (prevents nested
|
|
306
|
+
* forwarding).
|
|
306
307
|
*/
|
|
307
308
|
fallback_number?: string | null;
|
|
308
309
|
/**
|
|
@@ -312,8 +313,9 @@ export interface PhoneNumberCreateParams {
|
|
|
312
313
|
*/
|
|
313
314
|
inbound_agents?: Array<PhoneNumberCreateParams.InboundAgent> | null;
|
|
314
315
|
/**
|
|
315
|
-
* If set, will send a webhook for inbound calls, where you can override
|
|
316
|
-
* set dynamic variables and other fields specific to that
|
|
316
|
+
* If set, Retell will send a webhook for inbound calls, where you can override the
|
|
317
|
+
* agent ID, set dynamic variables, and configure other fields specific to that
|
|
318
|
+
* call.
|
|
317
319
|
*/
|
|
318
320
|
inbound_webhook_url?: string | null;
|
|
319
321
|
/**
|
|
@@ -387,7 +389,19 @@ export declare namespace PhoneNumberCreateParams {
|
|
|
387
389
|
agent_version?: number | string;
|
|
388
390
|
}
|
|
389
391
|
}
|
|
390
|
-
export interface
|
|
392
|
+
export interface PhoneNumberImportParams {
|
|
393
|
+
/**
|
|
394
|
+
* The number you are trying to import in E.164 format of the number (+country
|
|
395
|
+
* code, then number with no space, no special characters), used as the unique
|
|
396
|
+
* identifier for phone number APIs.
|
|
397
|
+
*/
|
|
398
|
+
phone_number: string;
|
|
399
|
+
/**
|
|
400
|
+
* The termination uri to uniquely identify your elastic SIP trunk. This is used
|
|
401
|
+
* for outbound calls. For Twilio elastic SIP trunks it always end with
|
|
402
|
+
* ".pstn.twilio.com".
|
|
403
|
+
*/
|
|
404
|
+
termination_uri: string;
|
|
391
405
|
/**
|
|
392
406
|
* List of ISO 3166-1 alpha-2 country codes from which inbound calls are allowed.
|
|
393
407
|
* If not set or empty, calls from all countries are allowed.
|
|
@@ -399,76 +413,49 @@ export interface PhoneNumberUpdateParams {
|
|
|
399
413
|
*/
|
|
400
414
|
allowed_outbound_country_list?: Array<string> | null;
|
|
401
415
|
/**
|
|
402
|
-
*
|
|
403
|
-
*
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
/**
|
|
407
|
-
* The username used for authentication for the SIP trunk to update for the phone
|
|
408
|
-
* number.
|
|
409
|
-
*/
|
|
410
|
-
auth_username?: string;
|
|
411
|
-
/**
|
|
412
|
-
* Enterprise only. Phone number to transfer inbound calls to when organization is
|
|
413
|
-
* in outage mode or when an inbound call cannot get a concurrency slot before the
|
|
414
|
-
* fallback timeout. Can be either a Retell phone number or an external number. Set
|
|
415
|
-
* to null to remove. Cannot be the same as this phone number, and cannot be a
|
|
416
|
-
* number that already has its own fallback configured (prevents nested
|
|
417
|
-
* forwarding).
|
|
416
|
+
* If true, E.164 validation for phone_number is skipped. This is useful for
|
|
417
|
+
* internal pseudo numbers when using custom telephony. If omitted, default is
|
|
418
|
+
* true. Must be a boolean literal; string values like "true" or "false" are
|
|
419
|
+
* invalid.
|
|
418
420
|
*/
|
|
419
|
-
|
|
421
|
+
ignore_e164_validation?: boolean;
|
|
420
422
|
/**
|
|
421
423
|
* Inbound agents to bind to the number with weights. If set and non-empty, one
|
|
422
424
|
* agent will be picked randomly for each inbound call, with probability
|
|
423
425
|
* proportional to the weight. Total weights must add up to 1.
|
|
424
426
|
*/
|
|
425
|
-
inbound_agents?: Array<
|
|
426
|
-
/**
|
|
427
|
-
* Inbound SMS agents to bind to the number with weights. If set and non-empty, one
|
|
428
|
-
* agent will be picked randomly for each inbound SMS, with probability
|
|
429
|
-
* proportional to the weight. Total weights must add up to 1. If not set or empty,
|
|
430
|
-
* fallback to inbound_sms_agent_id.
|
|
431
|
-
*/
|
|
432
|
-
inbound_sms_agents?: Array<PhoneNumberUpdateParams.InboundSMSAgent> | null;
|
|
433
|
-
/**
|
|
434
|
-
* If set, will send a webhook for inbound SMS, where you can override agent id,
|
|
435
|
-
* set dynamic variables and other fields specific to that chat.
|
|
436
|
-
*/
|
|
437
|
-
inbound_sms_webhook_url?: string | null;
|
|
427
|
+
inbound_agents?: Array<PhoneNumberImportParams.InboundAgent> | null;
|
|
438
428
|
/**
|
|
439
|
-
* If set, will send a webhook for inbound calls, where you can override
|
|
440
|
-
* set dynamic variables and other fields specific to that
|
|
429
|
+
* If set, Retell will send a webhook for inbound calls, where you can override the
|
|
430
|
+
* agent ID, set dynamic variables, and configure other fields specific to that
|
|
431
|
+
* call.
|
|
441
432
|
*/
|
|
442
433
|
inbound_webhook_url?: string | null;
|
|
443
434
|
/**
|
|
444
435
|
* Nickname of the number. This is for your reference only.
|
|
445
436
|
*/
|
|
446
|
-
nickname?: string
|
|
437
|
+
nickname?: string;
|
|
447
438
|
/**
|
|
448
439
|
* Outbound agents to bind to the number with weights. If set and non-empty, one
|
|
449
440
|
* agent will be picked randomly for each outbound call, with probability
|
|
450
441
|
* proportional to the weight. Total weights must add up to 1.
|
|
451
442
|
*/
|
|
452
|
-
outbound_agents?: Array<
|
|
443
|
+
outbound_agents?: Array<PhoneNumberImportParams.OutboundAgent> | null;
|
|
453
444
|
/**
|
|
454
|
-
*
|
|
455
|
-
* one agent will be picked randomly for each outbound SMS, with probability
|
|
456
|
-
* proportional to the weight. Total weights must add up to 1. If not set or empty,
|
|
457
|
-
* fallback to outbound_sms_agent_id.
|
|
445
|
+
* The password used for authentication for the SIP trunk.
|
|
458
446
|
*/
|
|
459
|
-
|
|
447
|
+
sip_trunk_auth_password?: string;
|
|
460
448
|
/**
|
|
461
|
-
* The
|
|
462
|
-
* calls.
|
|
449
|
+
* The username used for authentication for the SIP trunk.
|
|
463
450
|
*/
|
|
464
|
-
|
|
451
|
+
sip_trunk_auth_username?: string;
|
|
465
452
|
/**
|
|
466
453
|
* Outbound transport protocol to update for the phone number. Valid values are
|
|
467
454
|
* "TLS", "TCP" and "UDP". Default is "TCP".
|
|
468
455
|
*/
|
|
469
456
|
transport?: string | null;
|
|
470
457
|
}
|
|
471
|
-
export declare namespace
|
|
458
|
+
export declare namespace PhoneNumberImportParams {
|
|
472
459
|
interface InboundAgent {
|
|
473
460
|
agent_id: string;
|
|
474
461
|
/**
|
|
@@ -489,26 +476,6 @@ export declare namespace PhoneNumberUpdateParams {
|
|
|
489
476
|
*/
|
|
490
477
|
agent_version?: number | string;
|
|
491
478
|
}
|
|
492
|
-
interface InboundSMSAgent {
|
|
493
|
-
agent_id: string;
|
|
494
|
-
/**
|
|
495
|
-
* The weight of the agent. When used in a list of agents, the total weights must
|
|
496
|
-
* add up to 1.
|
|
497
|
-
*/
|
|
498
|
-
weight: number;
|
|
499
|
-
/**
|
|
500
|
-
* Agent version reference. Supports a numeric version (for example 3) or a
|
|
501
|
-
* tag/environment name (for example "prod"). The string "latest" resolves to the
|
|
502
|
-
* most recently created version (the largest version number), and
|
|
503
|
-
* "latest_published" resolves to the most recently published version. When a tag
|
|
504
|
-
* is provided, resolution uses that exact tag assignment (including its dynamic
|
|
505
|
-
* variables). If the tag exists but is currently unassigned, it resolves to
|
|
506
|
-
* latest. When a numeric version, latest, or latest_published is provided,
|
|
507
|
-
* resolution applies dynamic variables from the preferred tag for that resolved
|
|
508
|
-
* version (most recently assigned), if any.
|
|
509
|
-
*/
|
|
510
|
-
agent_version?: number | string;
|
|
511
|
-
}
|
|
512
479
|
interface OutboundAgent {
|
|
513
480
|
agent_id: string;
|
|
514
481
|
/**
|
|
@@ -529,26 +496,6 @@ export declare namespace PhoneNumberUpdateParams {
|
|
|
529
496
|
*/
|
|
530
497
|
agent_version?: number | string;
|
|
531
498
|
}
|
|
532
|
-
interface OutboundSMSAgent {
|
|
533
|
-
agent_id: string;
|
|
534
|
-
/**
|
|
535
|
-
* The weight of the agent. When used in a list of agents, the total weights must
|
|
536
|
-
* add up to 1.
|
|
537
|
-
*/
|
|
538
|
-
weight: number;
|
|
539
|
-
/**
|
|
540
|
-
* Agent version reference. Supports a numeric version (for example 3) or a
|
|
541
|
-
* tag/environment name (for example "prod"). The string "latest" resolves to the
|
|
542
|
-
* most recently created version (the largest version number), and
|
|
543
|
-
* "latest_published" resolves to the most recently published version. When a tag
|
|
544
|
-
* is provided, resolution uses that exact tag assignment (including its dynamic
|
|
545
|
-
* variables). If the tag exists but is currently unassigned, it resolves to
|
|
546
|
-
* latest. When a numeric version, latest, or latest_published is provided,
|
|
547
|
-
* resolution applies dynamic variables from the preferred tag for that resolved
|
|
548
|
-
* version (most recently assigned), if any.
|
|
549
|
-
*/
|
|
550
|
-
agent_version?: number | string;
|
|
551
|
-
}
|
|
552
499
|
}
|
|
553
500
|
export interface PhoneNumberListParams {
|
|
554
501
|
/**
|
|
@@ -564,19 +511,7 @@ export interface PhoneNumberListParams {
|
|
|
564
511
|
*/
|
|
565
512
|
sort_order?: 'ascending' | 'descending';
|
|
566
513
|
}
|
|
567
|
-
export interface
|
|
568
|
-
/**
|
|
569
|
-
* The number you are trying to import in E.164 format of the number (+country
|
|
570
|
-
* code, then number with no space, no special characters), used as the unique
|
|
571
|
-
* identifier for phone number APIs.
|
|
572
|
-
*/
|
|
573
|
-
phone_number: string;
|
|
574
|
-
/**
|
|
575
|
-
* The termination uri to uniquely identify your elastic SIP trunk. This is used
|
|
576
|
-
* for outbound calls. For Twilio elastic SIP trunks it always end with
|
|
577
|
-
* ".pstn.twilio.com".
|
|
578
|
-
*/
|
|
579
|
-
termination_uri: string;
|
|
514
|
+
export interface PhoneNumberUpdateParams {
|
|
580
515
|
/**
|
|
581
516
|
* List of ISO 3166-1 alpha-2 country codes from which inbound calls are allowed.
|
|
582
517
|
* If not set or empty, calls from all countries are allowed.
|
|
@@ -588,48 +523,77 @@ export interface PhoneNumberImportParams {
|
|
|
588
523
|
*/
|
|
589
524
|
allowed_outbound_country_list?: Array<string> | null;
|
|
590
525
|
/**
|
|
591
|
-
*
|
|
592
|
-
*
|
|
593
|
-
* true. Must be a boolean literal; string values like "true" or "false" are
|
|
594
|
-
* invalid.
|
|
526
|
+
* The password used for authentication for the SIP trunk to update for the phone
|
|
527
|
+
* number.
|
|
595
528
|
*/
|
|
596
|
-
|
|
529
|
+
auth_password?: string;
|
|
530
|
+
/**
|
|
531
|
+
* The username used for authentication for the SIP trunk to update for the phone
|
|
532
|
+
* number.
|
|
533
|
+
*/
|
|
534
|
+
auth_username?: string;
|
|
535
|
+
/**
|
|
536
|
+
* When inbound call concurrency is reached and a slot does not free up after
|
|
537
|
+
* extended ringing, the call will fall back to this number. Can be either a Retell
|
|
538
|
+
* phone number or an external number. Set to null to remove. Cannot be the same as
|
|
539
|
+
* this phone number, and cannot be a number that already has its own fallback
|
|
540
|
+
* configured (prevents nested forwarding).
|
|
541
|
+
*/
|
|
542
|
+
fallback_number?: string | null;
|
|
597
543
|
/**
|
|
598
544
|
* Inbound agents to bind to the number with weights. If set and non-empty, one
|
|
599
545
|
* agent will be picked randomly for each inbound call, with probability
|
|
600
546
|
* proportional to the weight. Total weights must add up to 1.
|
|
601
547
|
*/
|
|
602
|
-
inbound_agents?: Array<
|
|
548
|
+
inbound_agents?: Array<PhoneNumberUpdateParams.InboundAgent> | null;
|
|
549
|
+
/**
|
|
550
|
+
* Inbound SMS agents to bind to the number with weights. If set and non-empty, one
|
|
551
|
+
* agent will be picked randomly for each inbound SMS, with probability
|
|
552
|
+
* proportional to the weight. Total weights must add up to 1. If not set or empty,
|
|
553
|
+
* fallback to inbound_sms_agent_id.
|
|
554
|
+
*/
|
|
555
|
+
inbound_sms_agents?: Array<PhoneNumberUpdateParams.InboundSMSAgent> | null;
|
|
603
556
|
/**
|
|
604
|
-
* If set, will send a webhook for inbound
|
|
605
|
-
* set dynamic variables and other fields specific to that
|
|
557
|
+
* If set, Retell will send a webhook for inbound SMS, where you can override the
|
|
558
|
+
* agent ID, set dynamic variables, and configure other fields specific to that
|
|
559
|
+
* chat.
|
|
560
|
+
*/
|
|
561
|
+
inbound_sms_webhook_url?: string | null;
|
|
562
|
+
/**
|
|
563
|
+
* If set, Retell will send a webhook for inbound calls, where you can override the
|
|
564
|
+
* agent ID, set dynamic variables, and configure other fields specific to that
|
|
565
|
+
* call.
|
|
606
566
|
*/
|
|
607
567
|
inbound_webhook_url?: string | null;
|
|
608
568
|
/**
|
|
609
569
|
* Nickname of the number. This is for your reference only.
|
|
610
570
|
*/
|
|
611
|
-
nickname?: string;
|
|
571
|
+
nickname?: string | null;
|
|
612
572
|
/**
|
|
613
573
|
* Outbound agents to bind to the number with weights. If set and non-empty, one
|
|
614
574
|
* agent will be picked randomly for each outbound call, with probability
|
|
615
575
|
* proportional to the weight. Total weights must add up to 1.
|
|
616
576
|
*/
|
|
617
|
-
outbound_agents?: Array<
|
|
577
|
+
outbound_agents?: Array<PhoneNumberUpdateParams.OutboundAgent> | null;
|
|
618
578
|
/**
|
|
619
|
-
*
|
|
579
|
+
* Outbound SMS agents to bind to the number with weights. If set and non-empty,
|
|
580
|
+
* one agent will be picked randomly for each outbound SMS, with probability
|
|
581
|
+
* proportional to the weight. Total weights must add up to 1. If not set or empty,
|
|
582
|
+
* fallback to outbound_sms_agent_id.
|
|
620
583
|
*/
|
|
621
|
-
|
|
584
|
+
outbound_sms_agents?: Array<PhoneNumberUpdateParams.OutboundSMSAgent> | null;
|
|
622
585
|
/**
|
|
623
|
-
* The
|
|
586
|
+
* The termination uri to update for the phone number. This is used for outbound
|
|
587
|
+
* calls.
|
|
624
588
|
*/
|
|
625
|
-
|
|
589
|
+
termination_uri?: string;
|
|
626
590
|
/**
|
|
627
591
|
* Outbound transport protocol to update for the phone number. Valid values are
|
|
628
592
|
* "TLS", "TCP" and "UDP". Default is "TCP".
|
|
629
593
|
*/
|
|
630
594
|
transport?: string | null;
|
|
631
595
|
}
|
|
632
|
-
export declare namespace
|
|
596
|
+
export declare namespace PhoneNumberUpdateParams {
|
|
633
597
|
interface InboundAgent {
|
|
634
598
|
agent_id: string;
|
|
635
599
|
/**
|
|
@@ -650,6 +614,26 @@ export declare namespace PhoneNumberImportParams {
|
|
|
650
614
|
*/
|
|
651
615
|
agent_version?: number | string;
|
|
652
616
|
}
|
|
617
|
+
interface InboundSMSAgent {
|
|
618
|
+
agent_id: string;
|
|
619
|
+
/**
|
|
620
|
+
* The weight of the agent. When used in a list of agents, the total weights must
|
|
621
|
+
* add up to 1.
|
|
622
|
+
*/
|
|
623
|
+
weight: number;
|
|
624
|
+
/**
|
|
625
|
+
* Agent version reference. Supports a numeric version (for example 3) or a
|
|
626
|
+
* tag/environment name (for example "prod"). The string "latest" resolves to the
|
|
627
|
+
* most recently created version (the largest version number), and
|
|
628
|
+
* "latest_published" resolves to the most recently published version. When a tag
|
|
629
|
+
* is provided, resolution uses that exact tag assignment (including its dynamic
|
|
630
|
+
* variables). If the tag exists but is currently unassigned, it resolves to
|
|
631
|
+
* latest. When a numeric version, latest, or latest_published is provided,
|
|
632
|
+
* resolution applies dynamic variables from the preferred tag for that resolved
|
|
633
|
+
* version (most recently assigned), if any.
|
|
634
|
+
*/
|
|
635
|
+
agent_version?: number | string;
|
|
636
|
+
}
|
|
653
637
|
interface OutboundAgent {
|
|
654
638
|
agent_id: string;
|
|
655
639
|
/**
|
|
@@ -670,8 +654,28 @@ export declare namespace PhoneNumberImportParams {
|
|
|
670
654
|
*/
|
|
671
655
|
agent_version?: number | string;
|
|
672
656
|
}
|
|
657
|
+
interface OutboundSMSAgent {
|
|
658
|
+
agent_id: string;
|
|
659
|
+
/**
|
|
660
|
+
* The weight of the agent. When used in a list of agents, the total weights must
|
|
661
|
+
* add up to 1.
|
|
662
|
+
*/
|
|
663
|
+
weight: number;
|
|
664
|
+
/**
|
|
665
|
+
* Agent version reference. Supports a numeric version (for example 3) or a
|
|
666
|
+
* tag/environment name (for example "prod"). The string "latest" resolves to the
|
|
667
|
+
* most recently created version (the largest version number), and
|
|
668
|
+
* "latest_published" resolves to the most recently published version. When a tag
|
|
669
|
+
* is provided, resolution uses that exact tag assignment (including its dynamic
|
|
670
|
+
* variables). If the tag exists but is currently unassigned, it resolves to
|
|
671
|
+
* latest. When a numeric version, latest, or latest_published is provided,
|
|
672
|
+
* resolution applies dynamic variables from the preferred tag for that resolved
|
|
673
|
+
* version (most recently assigned), if any.
|
|
674
|
+
*/
|
|
675
|
+
agent_version?: number | string;
|
|
676
|
+
}
|
|
673
677
|
}
|
|
674
678
|
export declare namespace PhoneNumber {
|
|
675
|
-
export { type PhoneNumberResponse as PhoneNumberResponse, type PhoneNumberListResponse as PhoneNumberListResponse, type PhoneNumberCreateParams as PhoneNumberCreateParams, type
|
|
679
|
+
export { type PhoneNumberResponse as PhoneNumberResponse, type PhoneNumberListResponse as PhoneNumberListResponse, type PhoneNumberCreateParams as PhoneNumberCreateParams, type PhoneNumberImportParams as PhoneNumberImportParams, type PhoneNumberListParams as PhoneNumberListParams, type PhoneNumberUpdateParams as PhoneNumberUpdateParams, };
|
|
676
680
|
}
|
|
677
681
|
//# sourceMappingURL=phone-number.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-number.d.mts","sourceRoot":"","sources":["../src/resources/phone-number.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;OAQG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAIhG
|
|
1
|
+
{"version":3,"file":"phone-number.d.mts","sourceRoot":"","sources":["../src/resources/phone-number.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;OAQG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBA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