telnyx 6.34.0 → 6.36.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 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/assistants/assistants.d.mts +16 -4
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +16 -4
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/enterprises/enterprises.d.mts +2 -2
- package/resources/enterprises/enterprises.d.mts.map +1 -1
- package/resources/enterprises/enterprises.d.ts +2 -2
- package/resources/enterprises/enterprises.d.ts.map +1 -1
- package/resources/enterprises/index.d.mts +1 -1
- package/resources/enterprises/index.d.mts.map +1 -1
- package/resources/enterprises/index.d.ts +1 -1
- package/resources/enterprises/index.d.ts.map +1 -1
- package/resources/enterprises/reputation/index.d.mts +2 -2
- package/resources/enterprises/reputation/index.d.mts.map +1 -1
- package/resources/enterprises/reputation/index.d.ts +2 -2
- package/resources/enterprises/reputation/index.d.ts.map +1 -1
- package/resources/enterprises/reputation/numbers.d.mts +43 -43
- package/resources/enterprises/reputation/numbers.d.mts.map +1 -1
- package/resources/enterprises/reputation/numbers.d.ts +43 -43
- package/resources/enterprises/reputation/numbers.d.ts.map +1 -1
- package/resources/enterprises/reputation/numbers.js +31 -31
- package/resources/enterprises/reputation/numbers.js.map +1 -1
- package/resources/enterprises/reputation/numbers.mjs +31 -31
- package/resources/enterprises/reputation/numbers.mjs.map +1 -1
- package/resources/enterprises/reputation/reputation.d.mts +45 -46
- package/resources/enterprises/reputation/reputation.d.mts.map +1 -1
- package/resources/enterprises/reputation/reputation.d.ts +45 -46
- package/resources/enterprises/reputation/reputation.d.ts.map +1 -1
- package/resources/enterprises/reputation/reputation.js +43 -44
- package/resources/enterprises/reputation/reputation.js.map +1 -1
- package/resources/enterprises/reputation/reputation.mjs +43 -44
- package/resources/enterprises/reputation/reputation.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/texml/accounts/calls/calls.d.mts +7 -0
- package/resources/texml/accounts/calls/calls.d.mts.map +1 -1
- package/resources/texml/accounts/calls/calls.d.ts +7 -0
- package/resources/texml/accounts/calls/calls.d.ts.map +1 -1
- package/resources/texml/accounts/calls/calls.js.map +1 -1
- package/resources/texml/accounts/calls/calls.mjs.map +1 -1
- package/resources/texml/index.d.mts +1 -1
- package/resources/texml/index.d.mts.map +1 -1
- package/resources/texml/index.d.ts +1 -1
- package/resources/texml/index.d.ts.map +1 -1
- package/resources/texml/index.js.map +1 -1
- package/resources/texml/index.mjs +1 -1
- package/resources/texml/index.mjs.map +1 -1
- package/resources/texml/texml.d.mts +219 -1
- package/resources/texml/texml.d.mts.map +1 -1
- package/resources/texml/texml.d.ts +219 -1
- package/resources/texml/texml.d.ts.map +1 -1
- package/resources/texml/texml.js +26 -0
- package/resources/texml/texml.js.map +1 -1
- package/resources/texml/texml.mjs +26 -0
- package/resources/texml/texml.mjs.map +1 -1
- package/src/client.ts +9 -1
- package/src/resources/ai/assistants/assistants.ts +18 -2
- package/src/resources/enterprises/enterprises.ts +6 -6
- package/src/resources/enterprises/index.ts +3 -3
- package/src/resources/enterprises/reputation/index.ts +6 -6
- package/src/resources/enterprises/reputation/numbers.ts +58 -54
- package/src/resources/enterprises/reputation/reputation.ts +60 -61
- package/src/resources/index.ts +7 -1
- package/src/resources/texml/accounts/calls/calls.ts +8 -0
- package/src/resources/texml/index.ts +7 -1
- package/src/resources/texml/texml.ts +279 -1
- 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
|
@@ -5,9 +5,9 @@ import * as ReputationAPI from './reputation/reputation';
|
|
|
5
5
|
import {
|
|
6
6
|
EnterpriseReputationPublic,
|
|
7
7
|
Reputation,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
ReputationEnableParams,
|
|
9
|
+
ReputationEnableResponse,
|
|
10
|
+
ReputationRetrieveResponse,
|
|
11
11
|
ReputationUpdateFrequencyParams,
|
|
12
12
|
ReputationUpdateFrequencyResponse,
|
|
13
13
|
} from './reputation/reputation';
|
|
@@ -586,10 +586,10 @@ export declare namespace Enterprises {
|
|
|
586
586
|
export {
|
|
587
587
|
Reputation as Reputation,
|
|
588
588
|
type EnterpriseReputationPublic as EnterpriseReputationPublic,
|
|
589
|
-
type
|
|
590
|
-
type
|
|
589
|
+
type ReputationRetrieveResponse as ReputationRetrieveResponse,
|
|
590
|
+
type ReputationEnableResponse as ReputationEnableResponse,
|
|
591
591
|
type ReputationUpdateFrequencyResponse as ReputationUpdateFrequencyResponse,
|
|
592
|
-
type
|
|
592
|
+
type ReputationEnableParams as ReputationEnableParams,
|
|
593
593
|
type ReputationUpdateFrequencyParams as ReputationUpdateFrequencyParams,
|
|
594
594
|
};
|
|
595
595
|
}
|
|
@@ -18,9 +18,9 @@ export {
|
|
|
18
18
|
export {
|
|
19
19
|
Reputation,
|
|
20
20
|
type EnterpriseReputationPublic,
|
|
21
|
-
type
|
|
22
|
-
type
|
|
21
|
+
type ReputationRetrieveResponse,
|
|
22
|
+
type ReputationEnableResponse,
|
|
23
23
|
type ReputationUpdateFrequencyResponse,
|
|
24
|
-
type
|
|
24
|
+
type ReputationEnableParams,
|
|
25
25
|
type ReputationUpdateFrequencyParams,
|
|
26
26
|
} from './reputation/index';
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
export {
|
|
4
4
|
Numbers,
|
|
5
|
-
type NumberCreateResponse,
|
|
6
5
|
type NumberRetrieveResponse,
|
|
7
|
-
type
|
|
6
|
+
type NumberAssociateResponse,
|
|
8
7
|
type NumberRetrieveParams,
|
|
9
8
|
type NumberListParams,
|
|
10
|
-
type
|
|
9
|
+
type NumberAssociateParams,
|
|
10
|
+
type NumberDisassociateParams,
|
|
11
11
|
} from './numbers';
|
|
12
12
|
export {
|
|
13
13
|
Reputation,
|
|
14
14
|
type EnterpriseReputationPublic,
|
|
15
|
-
type
|
|
16
|
-
type
|
|
15
|
+
type ReputationRetrieveResponse,
|
|
16
|
+
type ReputationEnableResponse,
|
|
17
17
|
type ReputationUpdateFrequencyResponse,
|
|
18
|
-
type
|
|
18
|
+
type ReputationEnableParams,
|
|
19
19
|
type ReputationUpdateFrequencyParams,
|
|
20
20
|
} from './reputation';
|
|
@@ -17,40 +17,6 @@ import { path } from '../../../internal/utils/path';
|
|
|
17
17
|
* Associate phone numbers with an enterprise for reputation monitoring and retrieve reputation scores
|
|
18
18
|
*/
|
|
19
19
|
export class Numbers extends APIResource {
|
|
20
|
-
/**
|
|
21
|
-
* Associate one or more phone numbers with an enterprise for Number Reputation
|
|
22
|
-
* monitoring.
|
|
23
|
-
*
|
|
24
|
-
* **Validations:**
|
|
25
|
-
*
|
|
26
|
-
* - Phone numbers must be in E.164 format (e.g., `+16035551234`)
|
|
27
|
-
* - Phone numbers must be in-service and belong to your account (verified via
|
|
28
|
-
* Warehouse)
|
|
29
|
-
* - Phone numbers must be US local numbers
|
|
30
|
-
* - Phone numbers cannot already be associated with any enterprise
|
|
31
|
-
*
|
|
32
|
-
* **Note:** This operation is atomic — if any number fails validation, the entire
|
|
33
|
-
* request fails.
|
|
34
|
-
*
|
|
35
|
-
* **Maximum:** 100 phone numbers per request.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```ts
|
|
39
|
-
* const number =
|
|
40
|
-
* await client.enterprises.reputation.numbers.create(
|
|
41
|
-
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
42
|
-
* { phone_numbers: ['+16035551234'] },
|
|
43
|
-
* );
|
|
44
|
-
* ```
|
|
45
|
-
*/
|
|
46
|
-
create(
|
|
47
|
-
enterpriseID: string,
|
|
48
|
-
body: NumberCreateParams,
|
|
49
|
-
options?: RequestOptions,
|
|
50
|
-
): APIPromise<NumberCreateResponse> {
|
|
51
|
-
return this._client.post(path`/enterprises/${enterpriseID}/reputation/numbers`, { body, ...options });
|
|
52
|
-
}
|
|
53
|
-
|
|
54
20
|
/**
|
|
55
21
|
* Get detailed reputation data for a specific phone number associated with an
|
|
56
22
|
* enterprise.
|
|
@@ -126,6 +92,40 @@ export class Numbers extends APIResource {
|
|
|
126
92
|
);
|
|
127
93
|
}
|
|
128
94
|
|
|
95
|
+
/**
|
|
96
|
+
* Associate one or more phone numbers with an enterprise for Number Reputation
|
|
97
|
+
* monitoring.
|
|
98
|
+
*
|
|
99
|
+
* **Validations:**
|
|
100
|
+
*
|
|
101
|
+
* - Phone numbers must be in E.164 format (e.g., `+16035551234`)
|
|
102
|
+
* - Phone numbers must be in-service and belong to your account (verified via
|
|
103
|
+
* Warehouse)
|
|
104
|
+
* - Phone numbers must be US local numbers
|
|
105
|
+
* - Phone numbers cannot already be associated with any enterprise
|
|
106
|
+
*
|
|
107
|
+
* **Note:** This operation is atomic — if any number fails validation, the entire
|
|
108
|
+
* request fails.
|
|
109
|
+
*
|
|
110
|
+
* **Maximum:** 100 phone numbers per request.
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* ```ts
|
|
114
|
+
* const response =
|
|
115
|
+
* await client.enterprises.reputation.numbers.associate(
|
|
116
|
+
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
117
|
+
* { phone_numbers: ['+16035551234'] },
|
|
118
|
+
* );
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
associate(
|
|
122
|
+
enterpriseID: string,
|
|
123
|
+
body: NumberAssociateParams,
|
|
124
|
+
options?: RequestOptions,
|
|
125
|
+
): APIPromise<NumberAssociateResponse> {
|
|
126
|
+
return this._client.post(path`/enterprises/${enterpriseID}/reputation/numbers`, { body, ...options });
|
|
127
|
+
}
|
|
128
|
+
|
|
129
129
|
/**
|
|
130
130
|
* Remove a phone number from Number Reputation monitoring for an enterprise.
|
|
131
131
|
*
|
|
@@ -134,13 +134,17 @@ export class Numbers extends APIResource {
|
|
|
134
134
|
*
|
|
135
135
|
* @example
|
|
136
136
|
* ```ts
|
|
137
|
-
* await client.enterprises.reputation.numbers.
|
|
137
|
+
* await client.enterprises.reputation.numbers.disassociate(
|
|
138
138
|
* '+16035551234',
|
|
139
139
|
* { enterprise_id: '6a09cdc3-8948-47f0-aa62-74ac943d6c58' },
|
|
140
140
|
* );
|
|
141
141
|
* ```
|
|
142
142
|
*/
|
|
143
|
-
|
|
143
|
+
disassociate(
|
|
144
|
+
phoneNumber: string,
|
|
145
|
+
params: NumberDisassociateParams,
|
|
146
|
+
options?: RequestOptions,
|
|
147
|
+
): APIPromise<void> {
|
|
144
148
|
const { enterprise_id } = params;
|
|
145
149
|
return this._client.delete(path`/enterprises/${enterprise_id}/reputation/numbers/${phoneNumber}`, {
|
|
146
150
|
...options,
|
|
@@ -149,13 +153,17 @@ export class Numbers extends APIResource {
|
|
|
149
153
|
}
|
|
150
154
|
}
|
|
151
155
|
|
|
152
|
-
export interface
|
|
153
|
-
data?:
|
|
156
|
+
export interface NumberRetrieveResponse {
|
|
157
|
+
data?: Shared.ReputationPhoneNumberWithReputationData;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export interface NumberAssociateResponse {
|
|
161
|
+
data?: Array<NumberAssociateResponse.Data>;
|
|
154
162
|
|
|
155
163
|
meta?: Shared.MetaInfo;
|
|
156
164
|
}
|
|
157
165
|
|
|
158
|
-
export namespace
|
|
166
|
+
export namespace NumberAssociateResponse {
|
|
159
167
|
export interface Data {
|
|
160
168
|
/**
|
|
161
169
|
* Unique identifier
|
|
@@ -184,17 +192,6 @@ export namespace NumberCreateResponse {
|
|
|
184
192
|
}
|
|
185
193
|
}
|
|
186
194
|
|
|
187
|
-
export interface NumberRetrieveResponse {
|
|
188
|
-
data?: Shared.ReputationPhoneNumberWithReputationData;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
export interface NumberCreateParams {
|
|
192
|
-
/**
|
|
193
|
-
* List of phone numbers to associate for reputation monitoring (max 100)
|
|
194
|
-
*/
|
|
195
|
-
phone_numbers: Array<string>;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
195
|
export interface NumberRetrieveParams {
|
|
199
196
|
/**
|
|
200
197
|
* Path param: Unique identifier of the enterprise (UUID)
|
|
@@ -215,7 +212,14 @@ export interface NumberListParams extends DefaultFlatPaginationParams {
|
|
|
215
212
|
phone_number?: string;
|
|
216
213
|
}
|
|
217
214
|
|
|
218
|
-
export interface
|
|
215
|
+
export interface NumberAssociateParams {
|
|
216
|
+
/**
|
|
217
|
+
* List of phone numbers to associate for reputation monitoring (max 100)
|
|
218
|
+
*/
|
|
219
|
+
phone_numbers: Array<string>;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export interface NumberDisassociateParams {
|
|
219
223
|
/**
|
|
220
224
|
* Unique identifier of the enterprise (UUID)
|
|
221
225
|
*/
|
|
@@ -224,12 +228,12 @@ export interface NumberDeleteParams {
|
|
|
224
228
|
|
|
225
229
|
export declare namespace Numbers {
|
|
226
230
|
export {
|
|
227
|
-
type NumberCreateResponse as NumberCreateResponse,
|
|
228
231
|
type NumberRetrieveResponse as NumberRetrieveResponse,
|
|
229
|
-
type
|
|
232
|
+
type NumberAssociateResponse as NumberAssociateResponse,
|
|
230
233
|
type NumberRetrieveParams as NumberRetrieveParams,
|
|
231
234
|
type NumberListParams as NumberListParams,
|
|
232
|
-
type
|
|
235
|
+
type NumberAssociateParams as NumberAssociateParams,
|
|
236
|
+
type NumberDisassociateParams as NumberDisassociateParams,
|
|
233
237
|
};
|
|
234
238
|
}
|
|
235
239
|
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as NumbersAPI from './numbers';
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
NumberAssociateParams,
|
|
7
|
+
NumberAssociateResponse,
|
|
8
|
+
NumberDisassociateParams,
|
|
9
9
|
NumberListParams,
|
|
10
10
|
NumberRetrieveParams,
|
|
11
11
|
NumberRetrieveResponse,
|
|
@@ -22,50 +22,6 @@ import { path } from '../../../internal/utils/path';
|
|
|
22
22
|
export class Reputation extends APIResource {
|
|
23
23
|
numbers: NumbersAPI.Numbers = new NumbersAPI.Numbers(this._client);
|
|
24
24
|
|
|
25
|
-
/**
|
|
26
|
-
* Enable Number Reputation service for an enterprise.
|
|
27
|
-
*
|
|
28
|
-
* **Requirements:**
|
|
29
|
-
*
|
|
30
|
-
* - Signed LOA (Letter of Authorization) document ID
|
|
31
|
-
* - Reputation check frequency (defaults to `business_daily`)
|
|
32
|
-
* - Number Reputation Terms of Service must be accepted
|
|
33
|
-
*
|
|
34
|
-
* **Flow:**
|
|
35
|
-
*
|
|
36
|
-
* 1. Registers the enterprise for reputation monitoring
|
|
37
|
-
* 2. Creates reputation settings with `pending` status
|
|
38
|
-
* 3. Awaits admin approval before monitoring begins
|
|
39
|
-
*
|
|
40
|
-
* **Resubmission After Rejection:** If a previously rejected record exists, this
|
|
41
|
-
* endpoint will delete it and create a new `pending` record.
|
|
42
|
-
*
|
|
43
|
-
* **Available Frequencies:**
|
|
44
|
-
*
|
|
45
|
-
* - `business_daily` — Monday–Friday
|
|
46
|
-
* - `daily` — Every day
|
|
47
|
-
* - `weekly` — Once per week
|
|
48
|
-
* - `biweekly` — Once every two weeks
|
|
49
|
-
* - `monthly` — Once per month
|
|
50
|
-
* - `never` — Manual refresh only
|
|
51
|
-
*
|
|
52
|
-
* @example
|
|
53
|
-
* ```ts
|
|
54
|
-
* const reputation =
|
|
55
|
-
* await client.enterprises.reputation.create(
|
|
56
|
-
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
57
|
-
* { loa_document_id: 'doc_01HXYZ1234ABCDEF' },
|
|
58
|
-
* );
|
|
59
|
-
* ```
|
|
60
|
-
*/
|
|
61
|
-
create(
|
|
62
|
-
enterpriseID: string,
|
|
63
|
-
body: ReputationCreateParams,
|
|
64
|
-
options?: RequestOptions,
|
|
65
|
-
): APIPromise<ReputationCreateResponse> {
|
|
66
|
-
return this._client.post(path`/enterprises/${enterpriseID}/reputation`, { body, ...options });
|
|
67
|
-
}
|
|
68
|
-
|
|
69
25
|
/**
|
|
70
26
|
* Retrieve the current Number Reputation settings for an enterprise.
|
|
71
27
|
*
|
|
@@ -76,13 +32,13 @@ export class Reputation extends APIResource {
|
|
|
76
32
|
*
|
|
77
33
|
* @example
|
|
78
34
|
* ```ts
|
|
79
|
-
* const
|
|
80
|
-
* await client.enterprises.reputation.
|
|
35
|
+
* const reputation =
|
|
36
|
+
* await client.enterprises.reputation.retrieve(
|
|
81
37
|
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
82
38
|
* );
|
|
83
39
|
* ```
|
|
84
40
|
*/
|
|
85
|
-
|
|
41
|
+
retrieve(enterpriseID: string, options?: RequestOptions): APIPromise<ReputationRetrieveResponse> {
|
|
86
42
|
return this._client.get(path`/enterprises/${enterpriseID}/reputation`, options);
|
|
87
43
|
}
|
|
88
44
|
|
|
@@ -99,18 +55,61 @@ export class Reputation extends APIResource {
|
|
|
99
55
|
*
|
|
100
56
|
* @example
|
|
101
57
|
* ```ts
|
|
102
|
-
* await client.enterprises.reputation.
|
|
58
|
+
* await client.enterprises.reputation.disable(
|
|
103
59
|
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
104
60
|
* );
|
|
105
61
|
* ```
|
|
106
62
|
*/
|
|
107
|
-
|
|
63
|
+
disable(enterpriseID: string, options?: RequestOptions): APIPromise<void> {
|
|
108
64
|
return this._client.delete(path`/enterprises/${enterpriseID}/reputation`, {
|
|
109
65
|
...options,
|
|
110
66
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
111
67
|
});
|
|
112
68
|
}
|
|
113
69
|
|
|
70
|
+
/**
|
|
71
|
+
* Enable Number Reputation service for an enterprise.
|
|
72
|
+
*
|
|
73
|
+
* **Requirements:**
|
|
74
|
+
*
|
|
75
|
+
* - Signed LOA (Letter of Authorization) document ID
|
|
76
|
+
* - Reputation check frequency (defaults to `business_daily`)
|
|
77
|
+
* - Number Reputation Terms of Service must be accepted
|
|
78
|
+
*
|
|
79
|
+
* **Flow:**
|
|
80
|
+
*
|
|
81
|
+
* 1. Registers the enterprise for reputation monitoring
|
|
82
|
+
* 2. Creates reputation settings with `pending` status
|
|
83
|
+
* 3. Awaits admin approval before monitoring begins
|
|
84
|
+
*
|
|
85
|
+
* **Resubmission After Rejection:** If a previously rejected record exists, this
|
|
86
|
+
* endpoint will delete it and create a new `pending` record.
|
|
87
|
+
*
|
|
88
|
+
* **Available Frequencies:**
|
|
89
|
+
*
|
|
90
|
+
* - `business_daily` — Monday–Friday
|
|
91
|
+
* - `daily` — Every day
|
|
92
|
+
* - `weekly` — Once per week
|
|
93
|
+
* - `biweekly` — Once every two weeks
|
|
94
|
+
* - `monthly` — Once per month
|
|
95
|
+
* - `never` — Manual refresh only
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```ts
|
|
99
|
+
* const response = await client.enterprises.reputation.enable(
|
|
100
|
+
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
101
|
+
* { loa_document_id: 'doc_01HXYZ1234ABCDEF' },
|
|
102
|
+
* );
|
|
103
|
+
* ```
|
|
104
|
+
*/
|
|
105
|
+
enable(
|
|
106
|
+
enterpriseID: string,
|
|
107
|
+
body: ReputationEnableParams,
|
|
108
|
+
options?: RequestOptions,
|
|
109
|
+
): APIPromise<ReputationEnableResponse> {
|
|
110
|
+
return this._client.post(path`/enterprises/${enterpriseID}/reputation`, { body, ...options });
|
|
111
|
+
}
|
|
112
|
+
|
|
114
113
|
/**
|
|
115
114
|
* Update how often reputation data is automatically refreshed.
|
|
116
115
|
*
|
|
@@ -181,11 +180,11 @@ export interface EnterpriseReputationPublic {
|
|
|
181
180
|
updated_at?: string;
|
|
182
181
|
}
|
|
183
182
|
|
|
184
|
-
export interface
|
|
183
|
+
export interface ReputationRetrieveResponse {
|
|
185
184
|
data?: EnterpriseReputationPublic;
|
|
186
185
|
}
|
|
187
186
|
|
|
188
|
-
export interface
|
|
187
|
+
export interface ReputationEnableResponse {
|
|
189
188
|
data?: EnterpriseReputationPublic;
|
|
190
189
|
}
|
|
191
190
|
|
|
@@ -193,7 +192,7 @@ export interface ReputationUpdateFrequencyResponse {
|
|
|
193
192
|
data?: EnterpriseReputationPublic;
|
|
194
193
|
}
|
|
195
194
|
|
|
196
|
-
export interface
|
|
195
|
+
export interface ReputationEnableParams {
|
|
197
196
|
/**
|
|
198
197
|
* ID of the signed Letter of Authorization (LOA) document uploaded to the document
|
|
199
198
|
* service
|
|
@@ -218,20 +217,20 @@ Reputation.Numbers = Numbers;
|
|
|
218
217
|
export declare namespace Reputation {
|
|
219
218
|
export {
|
|
220
219
|
type EnterpriseReputationPublic as EnterpriseReputationPublic,
|
|
221
|
-
type
|
|
222
|
-
type
|
|
220
|
+
type ReputationRetrieveResponse as ReputationRetrieveResponse,
|
|
221
|
+
type ReputationEnableResponse as ReputationEnableResponse,
|
|
223
222
|
type ReputationUpdateFrequencyResponse as ReputationUpdateFrequencyResponse,
|
|
224
|
-
type
|
|
223
|
+
type ReputationEnableParams as ReputationEnableParams,
|
|
225
224
|
type ReputationUpdateFrequencyParams as ReputationUpdateFrequencyParams,
|
|
226
225
|
};
|
|
227
226
|
|
|
228
227
|
export {
|
|
229
228
|
Numbers as Numbers,
|
|
230
|
-
type NumberCreateResponse as NumberCreateResponse,
|
|
231
229
|
type NumberRetrieveResponse as NumberRetrieveResponse,
|
|
232
|
-
type
|
|
230
|
+
type NumberAssociateResponse as NumberAssociateResponse,
|
|
233
231
|
type NumberRetrieveParams as NumberRetrieveParams,
|
|
234
232
|
type NumberListParams as NumberListParams,
|
|
235
|
-
type
|
|
233
|
+
type NumberAssociateParams as NumberAssociateParams,
|
|
234
|
+
type NumberDisassociateParams as NumberDisassociateParams,
|
|
236
235
|
};
|
|
237
236
|
}
|
package/src/resources/index.ts
CHANGED
|
@@ -1195,7 +1195,13 @@ export {
|
|
|
1195
1195
|
type TelephonyCredentialsDefaultFlatPagination,
|
|
1196
1196
|
} from './telephony-credentials';
|
|
1197
1197
|
export { TermsOfService } from './terms-of-service/terms-of-service';
|
|
1198
|
-
export {
|
|
1198
|
+
export {
|
|
1199
|
+
Texml,
|
|
1200
|
+
type TexmlInitiateAICallResponse,
|
|
1201
|
+
type TexmlSecretsResponse,
|
|
1202
|
+
type TexmlInitiateAICallParams,
|
|
1203
|
+
type TexmlSecretsParams,
|
|
1204
|
+
} from './texml/texml';
|
|
1199
1205
|
export {
|
|
1200
1206
|
TexmlApplications,
|
|
1201
1207
|
type TexmlApplication,
|
|
@@ -787,6 +787,14 @@ export interface CallCallsParams {
|
|
|
787
787
|
*/
|
|
788
788
|
MachineDetectionTimeout?: number;
|
|
789
789
|
|
|
790
|
+
/**
|
|
791
|
+
* Defines whether media should be encrypted on the call. When set to `SRTP`, the
|
|
792
|
+
* call will use Secure Real-time Transport Protocol for media encryption. When set
|
|
793
|
+
* to `DTLS`, the call will use DTLS for media encryption. Only supported for SIP
|
|
794
|
+
* destinations.
|
|
795
|
+
*/
|
|
796
|
+
MediaEncryption?: 'disabled' | 'SRTP' | 'DTLS';
|
|
797
|
+
|
|
790
798
|
/**
|
|
791
799
|
* The list of comma-separated codecs to be offered on a call.
|
|
792
800
|
*/
|
|
@@ -9,4 +9,10 @@ export {
|
|
|
9
9
|
type AccountRetrieveRecordingsJsonParams,
|
|
10
10
|
type AccountRetrieveTranscriptionsJsonParams,
|
|
11
11
|
} from './accounts/index';
|
|
12
|
-
export {
|
|
12
|
+
export {
|
|
13
|
+
Texml,
|
|
14
|
+
type TexmlInitiateAICallResponse,
|
|
15
|
+
type TexmlSecretsResponse,
|
|
16
|
+
type TexmlInitiateAICallParams,
|
|
17
|
+
type TexmlSecretsParams,
|
|
18
|
+
} from './texml';
|