retell-sdk 5.49.1 → 5.50.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 +24 -0
- package/client.d.mts +11 -9
- package/client.d.mts.map +1 -1
- package/client.d.ts +11 -9
- 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 +18 -0
- package/lib/webhook_auth.d.mts.map +1 -0
- package/lib/webhook_auth.d.ts +18 -0
- package/lib/webhook_auth.d.ts.map +1 -0
- package/lib/webhook_auth.js +80 -0
- package/lib/webhook_auth.js.map +1 -0
- package/lib/webhook_auth.mjs +75 -0
- package/lib/webhook_auth.mjs.map +1 -0
- package/package.json +11 -1
- package/resources/agent.d.mts +69 -69
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +69 -69
- package/resources/agent.d.ts.map +1 -1
- package/resources/agent.js +30 -30
- package/resources/agent.js.map +1 -1
- package/resources/agent.mjs +30 -30
- package/resources/agent.mjs.map +1 -1
- package/resources/call.d.mts +1350 -1350
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +1350 -1350
- package/resources/call.d.ts.map +1 -1
- package/resources/call.js +60 -60
- package/resources/call.js.map +1 -1
- package/resources/call.mjs +60 -60
- package/resources/call.mjs.map +1 -1
- package/resources/chat-agent.d.mts +70 -70
- package/resources/chat-agent.d.mts.map +1 -1
- package/resources/chat-agent.d.ts +70 -70
- package/resources/chat-agent.d.ts.map +1 -1
- package/resources/chat-agent.js +31 -31
- package/resources/chat-agent.js.map +1 -1
- package/resources/chat-agent.mjs +31 -31
- package/resources/chat-agent.mjs.map +1 -1
- package/resources/chat.d.mts +97 -97
- package/resources/chat.d.mts.map +1 -1
- package/resources/chat.d.ts +97 -97
- package/resources/chat.d.ts.map +1 -1
- package/resources/chat.js +55 -55
- package/resources/chat.js.map +1 -1
- package/resources/chat.mjs +55 -55
- package/resources/chat.mjs.map +1 -1
- package/resources/conversation-flow-component.d.mts +25 -25
- package/resources/conversation-flow-component.d.mts.map +1 -1
- package/resources/conversation-flow-component.d.ts +25 -25
- package/resources/conversation-flow-component.d.ts.map +1 -1
- package/resources/conversation-flow-component.js +12 -12
- package/resources/conversation-flow-component.js.map +1 -1
- package/resources/conversation-flow-component.mjs +12 -12
- package/resources/conversation-flow-component.mjs.map +1 -1
- package/resources/conversation-flow.d.mts +25 -25
- package/resources/conversation-flow.d.mts.map +1 -1
- package/resources/conversation-flow.d.ts +25 -25
- package/resources/conversation-flow.d.ts.map +1 -1
- package/resources/conversation-flow.js +12 -12
- package/resources/conversation-flow.js.map +1 -1
- package/resources/conversation-flow.mjs +12 -12
- package/resources/conversation-flow.mjs.map +1 -1
- package/resources/index.d.mts +9 -9
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +9 -9
- package/resources/index.d.ts.map +1 -1
- package/resources/llm.d.mts +24 -24
- package/resources/llm.d.mts.map +1 -1
- package/resources/llm.d.ts +24 -24
- package/resources/llm.d.ts.map +1 -1
- package/resources/llm.js +11 -11
- package/resources/llm.js.map +1 -1
- package/resources/llm.mjs +11 -11
- package/resources/llm.mjs.map +1 -1
- package/resources/phone-number.d.mts +130 -130
- package/resources/phone-number.d.mts.map +1 -1
- package/resources/phone-number.d.ts +130 -130
- 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/resources/tests.d.mts +95 -95
- package/resources/tests.d.mts.map +1 -1
- package/resources/tests.d.ts +95 -95
- package/resources/tests.d.ts.map +1 -1
- package/resources/tests.js +27 -27
- package/resources/tests.js.map +1 -1
- package/resources/tests.mjs +27 -27
- package/resources/tests.mjs.map +1 -1
- package/resources/voice.d.mts +8 -8
- package/resources/voice.d.mts.map +1 -1
- package/resources/voice.d.ts +8 -8
- package/resources/voice.d.ts.map +1 -1
- package/resources/voice.js +12 -12
- package/resources/voice.js.map +1 -1
- package/resources/voice.mjs +12 -12
- package/resources/voice.mjs.map +1 -1
- package/src/client.ts +21 -18
- package/src/index.ts +1 -0
- package/src/lib/webhook_auth.ts +112 -0
- package/src/resources/agent.ts +90 -90
- package/src/resources/call.ts +1821 -1821
- package/src/resources/chat-agent.ts +95 -95
- package/src/resources/chat.ts +112 -112
- package/src/resources/conversation-flow-component.ts +34 -34
- package/src/resources/conversation-flow.ts +34 -34
- package/src/resources/index.ts +18 -18
- package/src/resources/llm.ts +30 -30
- package/src/resources/phone-number.ts +152 -152
- package/src/resources/tests.ts +136 -136
- package/src/resources/voice.ts +12 -12
- 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
|
@@ -20,23 +20,6 @@ export class PhoneNumber extends APIResource {
|
|
|
20
20
|
return this._client.post('/create-phone-number', { body, ...options });
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
/**
|
|
24
|
-
* Import a phone number from custom telephony & Bind agents
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```ts
|
|
28
|
-
* const phoneNumberResponse = await client.phoneNumber.import(
|
|
29
|
-
* {
|
|
30
|
-
* phone_number: '+14157774444',
|
|
31
|
-
* termination_uri: 'someuri.pstn.twilio.com',
|
|
32
|
-
* },
|
|
33
|
-
* );
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
import(body: PhoneNumberImportParams, options?: RequestOptions): APIPromise<PhoneNumberResponse> {
|
|
37
|
-
return this._client.post('/import-phone-number', { body, ...options });
|
|
38
|
-
}
|
|
39
|
-
|
|
40
23
|
/**
|
|
41
24
|
* Retrieve details of a specific phone number
|
|
42
25
|
*
|
|
@@ -50,21 +33,6 @@ export class PhoneNumber extends APIResource {
|
|
|
50
33
|
return this._client.get(path`/get-phone-number/${phoneNumber}`, options);
|
|
51
34
|
}
|
|
52
35
|
|
|
53
|
-
/**
|
|
54
|
-
* List phone numbers with pagination
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```ts
|
|
58
|
-
* const phoneNumbers = await client.phoneNumber.list();
|
|
59
|
-
* ```
|
|
60
|
-
*/
|
|
61
|
-
list(
|
|
62
|
-
query: PhoneNumberListParams | null | undefined = {},
|
|
63
|
-
options?: RequestOptions,
|
|
64
|
-
): APIPromise<PhoneNumberListResponse> {
|
|
65
|
-
return this._client.get('/v2/list-phone-numbers', { query, ...options });
|
|
66
|
-
}
|
|
67
|
-
|
|
68
36
|
/**
|
|
69
37
|
* Update agent bound to a purchased phone number
|
|
70
38
|
*
|
|
@@ -100,6 +68,21 @@ export class PhoneNumber extends APIResource {
|
|
|
100
68
|
return this._client.patch(path`/update-phone-number/${phoneNumber}`, { body, ...options });
|
|
101
69
|
}
|
|
102
70
|
|
|
71
|
+
/**
|
|
72
|
+
* List phone numbers with pagination
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* ```ts
|
|
76
|
+
* const phoneNumbers = await client.phoneNumber.list();
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
list(
|
|
80
|
+
query: PhoneNumberListParams | null | undefined = {},
|
|
81
|
+
options?: RequestOptions,
|
|
82
|
+
): APIPromise<PhoneNumberListResponse> {
|
|
83
|
+
return this._client.get('/v2/list-phone-numbers', { query, ...options });
|
|
84
|
+
}
|
|
85
|
+
|
|
103
86
|
/**
|
|
104
87
|
* Delete an existing phone number
|
|
105
88
|
*
|
|
@@ -114,6 +97,23 @@ export class PhoneNumber extends APIResource {
|
|
|
114
97
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
115
98
|
});
|
|
116
99
|
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Import a phone number from custom telephony & Bind agents
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* ```ts
|
|
106
|
+
* const phoneNumberResponse = await client.phoneNumber.import(
|
|
107
|
+
* {
|
|
108
|
+
* phone_number: '+14157774444',
|
|
109
|
+
* termination_uri: 'someuri.pstn.twilio.com',
|
|
110
|
+
* },
|
|
111
|
+
* );
|
|
112
|
+
* ```
|
|
113
|
+
*/
|
|
114
|
+
import(body: PhoneNumberImportParams, options?: RequestOptions): APIPromise<PhoneNumberResponse> {
|
|
115
|
+
return this._client.post('/import-phone-number', { body, ...options });
|
|
116
|
+
}
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
export interface PhoneNumberResponse {
|
|
@@ -473,21 +473,7 @@ export namespace PhoneNumberCreateParams {
|
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
|
|
476
|
-
export interface
|
|
477
|
-
/**
|
|
478
|
-
* The number you are trying to import in E.164 format of the number (+country
|
|
479
|
-
* code, then number with no space, no special characters), used as the unique
|
|
480
|
-
* identifier for phone number APIs.
|
|
481
|
-
*/
|
|
482
|
-
phone_number: string;
|
|
483
|
-
|
|
484
|
-
/**
|
|
485
|
-
* The termination uri to uniquely identify your elastic SIP trunk. This is used
|
|
486
|
-
* for outbound calls. For Twilio elastic SIP trunks it always end with
|
|
487
|
-
* ".pstn.twilio.com".
|
|
488
|
-
*/
|
|
489
|
-
termination_uri: string;
|
|
490
|
-
|
|
476
|
+
export interface PhoneNumberUpdateParams {
|
|
491
477
|
/**
|
|
492
478
|
* List of ISO 3166-1 alpha-2 country codes from which inbound calls are allowed.
|
|
493
479
|
* If not set or empty, calls from all countries are allowed.
|
|
@@ -501,19 +487,46 @@ export interface PhoneNumberImportParams {
|
|
|
501
487
|
allowed_outbound_country_list?: Array<string> | null;
|
|
502
488
|
|
|
503
489
|
/**
|
|
504
|
-
*
|
|
505
|
-
*
|
|
506
|
-
* true. Must be a boolean literal; string values like "true" or "false" are
|
|
507
|
-
* invalid.
|
|
490
|
+
* The password used for authentication for the SIP trunk to update for the phone
|
|
491
|
+
* number.
|
|
508
492
|
*/
|
|
509
|
-
|
|
493
|
+
auth_password?: string;
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* The username used for authentication for the SIP trunk to update for the phone
|
|
497
|
+
* number.
|
|
498
|
+
*/
|
|
499
|
+
auth_username?: string;
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* When inbound call concurrency is reached and a slot does not free up after
|
|
503
|
+
* extended ringing, the call will fall back to this number. Can be either a Retell
|
|
504
|
+
* phone number or an external number. Set to null to remove. Cannot be the same as
|
|
505
|
+
* this phone number, and cannot be a number that already has its own fallback
|
|
506
|
+
* configured (prevents nested forwarding).
|
|
507
|
+
*/
|
|
508
|
+
fallback_number?: string | null;
|
|
510
509
|
|
|
511
510
|
/**
|
|
512
511
|
* Inbound agents to bind to the number with weights. If set and non-empty, one
|
|
513
512
|
* agent will be picked randomly for each inbound call, with probability
|
|
514
513
|
* proportional to the weight. Total weights must add up to 1.
|
|
515
514
|
*/
|
|
516
|
-
inbound_agents?: Array<
|
|
515
|
+
inbound_agents?: Array<PhoneNumberUpdateParams.InboundAgent> | null;
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* Inbound SMS agents to bind to the number with weights. If set and non-empty, one
|
|
519
|
+
* agent will be picked randomly for each inbound SMS, with probability
|
|
520
|
+
* proportional to the weight. Total weights must add up to 1.
|
|
521
|
+
*/
|
|
522
|
+
inbound_sms_agents?: Array<PhoneNumberUpdateParams.InboundSMSAgent> | null;
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* If set, Retell will send a webhook for inbound SMS, where you can override the
|
|
526
|
+
* agent ID, set dynamic variables, reject the SMS, and configure other fields
|
|
527
|
+
* specific to that chat.
|
|
528
|
+
*/
|
|
529
|
+
inbound_sms_webhook_url?: string | null;
|
|
517
530
|
|
|
518
531
|
/**
|
|
519
532
|
* If set, Retell will send a webhook for inbound calls, where you can override the
|
|
@@ -525,24 +538,27 @@ export interface PhoneNumberImportParams {
|
|
|
525
538
|
/**
|
|
526
539
|
* Nickname of the number. This is for your reference only.
|
|
527
540
|
*/
|
|
528
|
-
nickname?: string;
|
|
541
|
+
nickname?: string | null;
|
|
529
542
|
|
|
530
543
|
/**
|
|
531
544
|
* Outbound agents to bind to the number with weights. If set and non-empty, one
|
|
532
545
|
* agent will be picked randomly for each outbound call, with probability
|
|
533
546
|
* proportional to the weight. Total weights must add up to 1.
|
|
534
547
|
*/
|
|
535
|
-
outbound_agents?: Array<
|
|
548
|
+
outbound_agents?: Array<PhoneNumberUpdateParams.OutboundAgent> | null;
|
|
536
549
|
|
|
537
550
|
/**
|
|
538
|
-
*
|
|
551
|
+
* Outbound SMS agents to bind to the number with weights. If set and non-empty,
|
|
552
|
+
* one agent will be picked randomly for each outbound SMS, with probability
|
|
553
|
+
* proportional to the weight. Total weights must add up to 1.
|
|
539
554
|
*/
|
|
540
|
-
|
|
555
|
+
outbound_sms_agents?: Array<PhoneNumberUpdateParams.OutboundSMSAgent> | null;
|
|
541
556
|
|
|
542
557
|
/**
|
|
543
|
-
* The
|
|
558
|
+
* The termination uri to update for the phone number. This is used for outbound
|
|
559
|
+
* calls.
|
|
544
560
|
*/
|
|
545
|
-
|
|
561
|
+
termination_uri?: string;
|
|
546
562
|
|
|
547
563
|
/**
|
|
548
564
|
* Outbound transport protocol to update for the phone number. Valid values are
|
|
@@ -551,7 +567,7 @@ export interface PhoneNumberImportParams {
|
|
|
551
567
|
transport?: string | null;
|
|
552
568
|
}
|
|
553
569
|
|
|
554
|
-
export namespace
|
|
570
|
+
export namespace PhoneNumberUpdateParams {
|
|
555
571
|
export interface InboundAgent {
|
|
556
572
|
agent_id: string;
|
|
557
573
|
|
|
@@ -575,6 +591,29 @@ export namespace PhoneNumberImportParams {
|
|
|
575
591
|
agent_version?: string | number;
|
|
576
592
|
}
|
|
577
593
|
|
|
594
|
+
export interface InboundSMSAgent {
|
|
595
|
+
agent_id: string;
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* The weight of the agent. When used in a list of agents, the total weights must
|
|
599
|
+
* add up to 1.
|
|
600
|
+
*/
|
|
601
|
+
weight: number;
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* Agent version reference. Supports a numeric version (for example 3) or a
|
|
605
|
+
* tag/environment name (for example "prod"). The string "latest" resolves to the
|
|
606
|
+
* most recently created version (the largest version number), and
|
|
607
|
+
* "latest_published" resolves to the most recently published version. When a tag
|
|
608
|
+
* is provided, resolution uses that exact tag assignment (including its dynamic
|
|
609
|
+
* variables). If the tag exists but is currently unassigned, it resolves to
|
|
610
|
+
* latest. When a numeric version, latest, or latest_published is provided,
|
|
611
|
+
* resolution applies dynamic variables from the preferred tag for that resolved
|
|
612
|
+
* version (most recently assigned), if any.
|
|
613
|
+
*/
|
|
614
|
+
agent_version?: string | number;
|
|
615
|
+
}
|
|
616
|
+
|
|
578
617
|
export interface OutboundAgent {
|
|
579
618
|
agent_id: string;
|
|
580
619
|
|
|
@@ -597,6 +636,29 @@ export namespace PhoneNumberImportParams {
|
|
|
597
636
|
*/
|
|
598
637
|
agent_version?: string | number;
|
|
599
638
|
}
|
|
639
|
+
|
|
640
|
+
export interface OutboundSMSAgent {
|
|
641
|
+
agent_id: string;
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* The weight of the agent. When used in a list of agents, the total weights must
|
|
645
|
+
* add up to 1.
|
|
646
|
+
*/
|
|
647
|
+
weight: number;
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* Agent version reference. Supports a numeric version (for example 3) or a
|
|
651
|
+
* tag/environment name (for example "prod"). The string "latest" resolves to the
|
|
652
|
+
* most recently created version (the largest version number), and
|
|
653
|
+
* "latest_published" resolves to the most recently published version. When a tag
|
|
654
|
+
* is provided, resolution uses that exact tag assignment (including its dynamic
|
|
655
|
+
* variables). If the tag exists but is currently unassigned, it resolves to
|
|
656
|
+
* latest. When a numeric version, latest, or latest_published is provided,
|
|
657
|
+
* resolution applies dynamic variables from the preferred tag for that resolved
|
|
658
|
+
* version (most recently assigned), if any.
|
|
659
|
+
*/
|
|
660
|
+
agent_version?: string | number;
|
|
661
|
+
}
|
|
600
662
|
}
|
|
601
663
|
|
|
602
664
|
export interface PhoneNumberListParams {
|
|
@@ -616,60 +678,47 @@ export interface PhoneNumberListParams {
|
|
|
616
678
|
sort_order?: 'ascending' | 'descending';
|
|
617
679
|
}
|
|
618
680
|
|
|
619
|
-
export interface
|
|
681
|
+
export interface PhoneNumberImportParams {
|
|
620
682
|
/**
|
|
621
|
-
*
|
|
622
|
-
*
|
|
683
|
+
* The number you are trying to import in E.164 format of the number (+country
|
|
684
|
+
* code, then number with no space, no special characters), used as the unique
|
|
685
|
+
* identifier for phone number APIs.
|
|
623
686
|
*/
|
|
624
|
-
|
|
687
|
+
phone_number: string;
|
|
625
688
|
|
|
626
689
|
/**
|
|
627
|
-
*
|
|
628
|
-
*
|
|
690
|
+
* The termination uri to uniquely identify your elastic SIP trunk. This is used
|
|
691
|
+
* for outbound calls. For Twilio elastic SIP trunks it always end with
|
|
692
|
+
* ".pstn.twilio.com".
|
|
629
693
|
*/
|
|
630
|
-
|
|
694
|
+
termination_uri: string;
|
|
631
695
|
|
|
632
696
|
/**
|
|
633
|
-
*
|
|
634
|
-
*
|
|
697
|
+
* List of ISO 3166-1 alpha-2 country codes from which inbound calls are allowed.
|
|
698
|
+
* If not set or empty, calls from all countries are allowed.
|
|
635
699
|
*/
|
|
636
|
-
|
|
700
|
+
allowed_inbound_country_list?: Array<string> | null;
|
|
637
701
|
|
|
638
702
|
/**
|
|
639
|
-
*
|
|
640
|
-
*
|
|
703
|
+
* List of ISO 3166-1 alpha-2 country codes to which outbound calls are allowed. If
|
|
704
|
+
* not set or empty, calls to all countries are allowed.
|
|
641
705
|
*/
|
|
642
|
-
|
|
706
|
+
allowed_outbound_country_list?: Array<string> | null;
|
|
643
707
|
|
|
644
708
|
/**
|
|
645
|
-
*
|
|
646
|
-
*
|
|
647
|
-
*
|
|
648
|
-
*
|
|
649
|
-
* configured (prevents nested forwarding).
|
|
709
|
+
* If true, E.164 validation for phone_number is skipped. This is useful for
|
|
710
|
+
* internal pseudo numbers when using custom telephony. If omitted, default is
|
|
711
|
+
* true. Must be a boolean literal; string values like "true" or "false" are
|
|
712
|
+
* invalid.
|
|
650
713
|
*/
|
|
651
|
-
|
|
714
|
+
ignore_e164_validation?: boolean;
|
|
652
715
|
|
|
653
716
|
/**
|
|
654
717
|
* Inbound agents to bind to the number with weights. If set and non-empty, one
|
|
655
718
|
* agent will be picked randomly for each inbound call, with probability
|
|
656
719
|
* proportional to the weight. Total weights must add up to 1.
|
|
657
720
|
*/
|
|
658
|
-
inbound_agents?: Array<
|
|
659
|
-
|
|
660
|
-
/**
|
|
661
|
-
* Inbound SMS agents to bind to the number with weights. If set and non-empty, one
|
|
662
|
-
* agent will be picked randomly for each inbound SMS, with probability
|
|
663
|
-
* proportional to the weight. Total weights must add up to 1.
|
|
664
|
-
*/
|
|
665
|
-
inbound_sms_agents?: Array<PhoneNumberUpdateParams.InboundSMSAgent> | null;
|
|
666
|
-
|
|
667
|
-
/**
|
|
668
|
-
* If set, Retell will send a webhook for inbound SMS, where you can override the
|
|
669
|
-
* agent ID, set dynamic variables, reject the SMS, and configure other fields
|
|
670
|
-
* specific to that chat.
|
|
671
|
-
*/
|
|
672
|
-
inbound_sms_webhook_url?: string | null;
|
|
721
|
+
inbound_agents?: Array<PhoneNumberImportParams.InboundAgent> | null;
|
|
673
722
|
|
|
674
723
|
/**
|
|
675
724
|
* If set, Retell will send a webhook for inbound calls, where you can override the
|
|
@@ -681,27 +730,24 @@ export interface PhoneNumberUpdateParams {
|
|
|
681
730
|
/**
|
|
682
731
|
* Nickname of the number. This is for your reference only.
|
|
683
732
|
*/
|
|
684
|
-
nickname?: string
|
|
733
|
+
nickname?: string;
|
|
685
734
|
|
|
686
735
|
/**
|
|
687
736
|
* Outbound agents to bind to the number with weights. If set and non-empty, one
|
|
688
737
|
* agent will be picked randomly for each outbound call, with probability
|
|
689
738
|
* proportional to the weight. Total weights must add up to 1.
|
|
690
739
|
*/
|
|
691
|
-
outbound_agents?: Array<
|
|
740
|
+
outbound_agents?: Array<PhoneNumberImportParams.OutboundAgent> | null;
|
|
692
741
|
|
|
693
742
|
/**
|
|
694
|
-
*
|
|
695
|
-
* one agent will be picked randomly for each outbound SMS, with probability
|
|
696
|
-
* proportional to the weight. Total weights must add up to 1.
|
|
743
|
+
* The password used for authentication for the SIP trunk.
|
|
697
744
|
*/
|
|
698
|
-
|
|
745
|
+
sip_trunk_auth_password?: string;
|
|
699
746
|
|
|
700
747
|
/**
|
|
701
|
-
* The
|
|
702
|
-
* calls.
|
|
748
|
+
* The username used for authentication for the SIP trunk.
|
|
703
749
|
*/
|
|
704
|
-
|
|
750
|
+
sip_trunk_auth_username?: string;
|
|
705
751
|
|
|
706
752
|
/**
|
|
707
753
|
* Outbound transport protocol to update for the phone number. Valid values are
|
|
@@ -710,7 +756,7 @@ export interface PhoneNumberUpdateParams {
|
|
|
710
756
|
transport?: string | null;
|
|
711
757
|
}
|
|
712
758
|
|
|
713
|
-
export namespace
|
|
759
|
+
export namespace PhoneNumberImportParams {
|
|
714
760
|
export interface InboundAgent {
|
|
715
761
|
agent_id: string;
|
|
716
762
|
|
|
@@ -734,29 +780,6 @@ export namespace PhoneNumberUpdateParams {
|
|
|
734
780
|
agent_version?: string | number;
|
|
735
781
|
}
|
|
736
782
|
|
|
737
|
-
export interface InboundSMSAgent {
|
|
738
|
-
agent_id: string;
|
|
739
|
-
|
|
740
|
-
/**
|
|
741
|
-
* The weight of the agent. When used in a list of agents, the total weights must
|
|
742
|
-
* add up to 1.
|
|
743
|
-
*/
|
|
744
|
-
weight: number;
|
|
745
|
-
|
|
746
|
-
/**
|
|
747
|
-
* Agent version reference. Supports a numeric version (for example 3) or a
|
|
748
|
-
* tag/environment name (for example "prod"). The string "latest" resolves to the
|
|
749
|
-
* most recently created version (the largest version number), and
|
|
750
|
-
* "latest_published" resolves to the most recently published version. When a tag
|
|
751
|
-
* is provided, resolution uses that exact tag assignment (including its dynamic
|
|
752
|
-
* variables). If the tag exists but is currently unassigned, it resolves to
|
|
753
|
-
* latest. When a numeric version, latest, or latest_published is provided,
|
|
754
|
-
* resolution applies dynamic variables from the preferred tag for that resolved
|
|
755
|
-
* version (most recently assigned), if any.
|
|
756
|
-
*/
|
|
757
|
-
agent_version?: string | number;
|
|
758
|
-
}
|
|
759
|
-
|
|
760
783
|
export interface OutboundAgent {
|
|
761
784
|
agent_id: string;
|
|
762
785
|
|
|
@@ -779,29 +802,6 @@ export namespace PhoneNumberUpdateParams {
|
|
|
779
802
|
*/
|
|
780
803
|
agent_version?: string | number;
|
|
781
804
|
}
|
|
782
|
-
|
|
783
|
-
export interface OutboundSMSAgent {
|
|
784
|
-
agent_id: string;
|
|
785
|
-
|
|
786
|
-
/**
|
|
787
|
-
* The weight of the agent. When used in a list of agents, the total weights must
|
|
788
|
-
* add up to 1.
|
|
789
|
-
*/
|
|
790
|
-
weight: number;
|
|
791
|
-
|
|
792
|
-
/**
|
|
793
|
-
* Agent version reference. Supports a numeric version (for example 3) or a
|
|
794
|
-
* tag/environment name (for example "prod"). The string "latest" resolves to the
|
|
795
|
-
* most recently created version (the largest version number), and
|
|
796
|
-
* "latest_published" resolves to the most recently published version. When a tag
|
|
797
|
-
* is provided, resolution uses that exact tag assignment (including its dynamic
|
|
798
|
-
* variables). If the tag exists but is currently unassigned, it resolves to
|
|
799
|
-
* latest. When a numeric version, latest, or latest_published is provided,
|
|
800
|
-
* resolution applies dynamic variables from the preferred tag for that resolved
|
|
801
|
-
* version (most recently assigned), if any.
|
|
802
|
-
*/
|
|
803
|
-
agent_version?: string | number;
|
|
804
|
-
}
|
|
805
805
|
}
|
|
806
806
|
|
|
807
807
|
export declare namespace PhoneNumber {
|
|
@@ -809,8 +809,8 @@ export declare namespace PhoneNumber {
|
|
|
809
809
|
type PhoneNumberResponse as PhoneNumberResponse,
|
|
810
810
|
type PhoneNumberListResponse as PhoneNumberListResponse,
|
|
811
811
|
type PhoneNumberCreateParams as PhoneNumberCreateParams,
|
|
812
|
-
type PhoneNumberImportParams as PhoneNumberImportParams,
|
|
813
|
-
type PhoneNumberListParams as PhoneNumberListParams,
|
|
814
812
|
type PhoneNumberUpdateParams as PhoneNumberUpdateParams,
|
|
813
|
+
type PhoneNumberListParams as PhoneNumberListParams,
|
|
814
|
+
type PhoneNumberImportParams as PhoneNumberImportParams,
|
|
815
815
|
};
|
|
816
816
|
}
|