telnyx 2.0.0-beta.0 → 2.0.0-beta.1
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 +9 -0
- package/VERSION +1 -1
- package/dist/resources/IpConnections.js +0 -1
- package/dist/resources/Ips.js +2 -2
- package/dist/resources/PortingOrders.js +6 -6
- package/dist/resources/Queues.js +7 -7
- package/dist/resources/Verifications.js +41 -36
- package/dist/resources/VerifiedNumbers.js +35 -1
- package/dist/resources/VerifyProfiles.js +4 -26
- package/dist/telnyx.js +0 -2
- package/dist/types/AddressesResource.d.ts +3 -1
- package/dist/types/CallControlApplicationsResource.d.ts +8 -2
- package/dist/types/ConferencesResource.d.ts +14 -10
- package/dist/types/FaxApplicationsResource.d.ts +25 -19
- package/dist/types/FaxesResource.d.ts +9 -7
- package/dist/types/FqdnConnectionsResource.d.ts +11 -16
- package/dist/types/FqdnsResource.d.ts +14 -8
- package/dist/types/IpConnectionsResource.d.ts +11 -16
- package/dist/types/MessagingProfilesResource.d.ts +3 -1
- package/dist/types/VerificationsResource.d.ts +116 -0
- package/dist/types/VerifiedNumbersResource.d.ts +108 -0
- package/dist/types/VerifyProfilesResource.d.ts +84 -0
- package/dist/types/index.d.ts +6 -0
- package/package.json +1 -1
- package/dist/resources/Verify.js +0 -50
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
## v2
|
|
4
4
|
|
|
5
|
+
### v2.0.0-beta.1
|
|
6
|
+
|
|
7
|
+
- Fix `Queues` resource nested methods
|
|
8
|
+
- Fix `PortingOrders` and `Ips` resource nested methods param names
|
|
9
|
+
- Update legacy skipped tests
|
|
10
|
+
- Fix `Verifications`, `VerifyProfiles` and `VerifiedNumbers` resources method naming and params
|
|
11
|
+
- Remove dupe `Verify` resource
|
|
12
|
+
- Update nested methods types to match param values usage
|
|
13
|
+
|
|
5
14
|
### v2.0.0-beta.0
|
|
6
15
|
|
|
7
16
|
- Move `AutorespConfigs` resource to be nested in `MessagingProfiles`
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.0.0-beta.
|
|
1
|
+
2.0.0-beta.1
|
package/dist/resources/Ips.js
CHANGED
|
@@ -8,14 +8,14 @@ function transformResponseData(response, telnyx) {
|
|
|
8
8
|
path: '/{ipId}',
|
|
9
9
|
urlParams: ['ipId'],
|
|
10
10
|
paramsValues: [response.data.id],
|
|
11
|
-
paramsNames: ['
|
|
11
|
+
paramsNames: ['ipId'],
|
|
12
12
|
}),
|
|
13
13
|
update: telnyxMethod({
|
|
14
14
|
method: 'PATCH',
|
|
15
15
|
path: '/{ipId}',
|
|
16
16
|
urlParams: ['ipId'],
|
|
17
17
|
paramsValues: [response.data.id],
|
|
18
|
-
paramsNames: ['
|
|
18
|
+
paramsNames: ['ipId'],
|
|
19
19
|
}),
|
|
20
20
|
});
|
|
21
21
|
}
|
|
@@ -8,14 +8,14 @@ function transformResponseData(response, telnyx) {
|
|
|
8
8
|
path: '/{portingOrderId}',
|
|
9
9
|
urlParams: ['portingOrderId'],
|
|
10
10
|
paramsValues: [response.data.id],
|
|
11
|
-
paramsNames: ['
|
|
11
|
+
paramsNames: ['portingOrderId'],
|
|
12
12
|
}),
|
|
13
13
|
update: telnyxMethod({
|
|
14
14
|
method: 'PATCH',
|
|
15
15
|
path: '/{portingOrderId}',
|
|
16
16
|
urlParams: ['portingOrderId'],
|
|
17
17
|
paramsValues: [response.data.id],
|
|
18
|
-
paramsNames: ['
|
|
18
|
+
paramsNames: ['portingOrderId'],
|
|
19
19
|
}),
|
|
20
20
|
});
|
|
21
21
|
}
|
|
@@ -24,12 +24,10 @@ export const PortingOrders = TelnyxResource.extend({
|
|
|
24
24
|
list: telnyxMethod({
|
|
25
25
|
method: 'GET',
|
|
26
26
|
methodType: 'list',
|
|
27
|
-
transformResponseData: transformResponseData,
|
|
28
27
|
}),
|
|
29
28
|
create: telnyxMethod({
|
|
30
29
|
method: 'POST',
|
|
31
30
|
methodType: 'create',
|
|
32
|
-
transformResponseData: transformResponseData,
|
|
33
31
|
}),
|
|
34
32
|
// include_phone_numbers query param
|
|
35
33
|
retrieve: telnyxMethod({
|
|
@@ -51,8 +49,10 @@ export const PortingOrders = TelnyxResource.extend({
|
|
|
51
49
|
}),
|
|
52
50
|
cancelOrder: telnyxMethod({
|
|
53
51
|
method: 'POST',
|
|
54
|
-
path: '/{
|
|
55
|
-
urlParams: ['
|
|
52
|
+
path: '/{orderId}/actions/cancel',
|
|
53
|
+
urlParams: ['orderId'],
|
|
54
|
+
paramsNames: ['orderId'],
|
|
55
|
+
methodType: 'create',
|
|
56
56
|
}),
|
|
57
57
|
listAllowedFocWindows: telnyxMethod({
|
|
58
58
|
method: 'GET',
|
package/dist/resources/Queues.js
CHANGED
|
@@ -16,12 +16,12 @@ function getSpec(queueName) {
|
|
|
16
16
|
}
|
|
17
17
|
function transformResponseData(response, telnyx) {
|
|
18
18
|
const methods = utils.createNestedMethods(telnyxMethod, ACTIONS, getSpec(response.data.name));
|
|
19
|
-
methods.
|
|
19
|
+
methods.retrieveCall = telnyxMethod({
|
|
20
20
|
method: 'GET',
|
|
21
|
-
path: '/{call_control_id}',
|
|
22
|
-
urlParams: ['call_control_id'],
|
|
23
|
-
paramsValues: [response.data.
|
|
24
|
-
paramsNames: ['call_control_id'],
|
|
21
|
+
path: '/{queue_name}/calls/{call_control_id}',
|
|
22
|
+
urlParams: ['queue_name', 'call_control_id'],
|
|
23
|
+
paramsValues: [response.data.queue_name],
|
|
24
|
+
paramsNames: ['queue_name', 'call_control_id'],
|
|
25
25
|
});
|
|
26
26
|
return utils.addResourceToResponseData(response, telnyx, 'queues', methods);
|
|
27
27
|
}
|
|
@@ -37,12 +37,12 @@ export const Queues = TelnyxResource.extend({
|
|
|
37
37
|
method: 'GET',
|
|
38
38
|
path: '/{queue_name}/calls',
|
|
39
39
|
urlParams: ['queue_name'],
|
|
40
|
-
transformResponseData: transformResponseData,
|
|
41
40
|
}),
|
|
42
41
|
retrieveCall: telnyxMethod({
|
|
43
42
|
method: 'GET',
|
|
44
43
|
path: '/{queue_name}/calls/{call_control_id}',
|
|
45
44
|
urlParams: ['queue_name', 'call_control_id'],
|
|
46
|
-
|
|
45
|
+
paramsNames: ['queue_name', 'call_control_id'],
|
|
46
|
+
methodType: 'retrieve',
|
|
47
47
|
}),
|
|
48
48
|
});
|
|
@@ -1,53 +1,58 @@
|
|
|
1
1
|
import TelnyxResource from '../TelnyxResource';
|
|
2
2
|
import * as utils from '../utils';
|
|
3
3
|
const telnyxMethod = TelnyxResource.method;
|
|
4
|
-
|
|
5
|
-
return utils.addResourceToResponseData(response, telnyx, '
|
|
6
|
-
|
|
4
|
+
const transformResponseData = (response, telnyx) => {
|
|
5
|
+
return utils.addResourceToResponseData(response, telnyx, 'verifiedNumbers', {
|
|
6
|
+
verify: telnyxMethod({
|
|
7
7
|
method: 'POST',
|
|
8
|
-
path: '/
|
|
9
|
-
transformResponseData: transformResponseData,
|
|
10
|
-
}),
|
|
11
|
-
call: telnyxMethod({
|
|
12
|
-
method: 'POST',
|
|
13
|
-
path: '/call',
|
|
14
|
-
transformResponseData: transformResponseData,
|
|
15
|
-
}),
|
|
16
|
-
flashcall: telnyxMethod({
|
|
17
|
-
method: 'POST',
|
|
18
|
-
path: '/flashcall',
|
|
19
|
-
transformResponseData: transformResponseData,
|
|
20
|
-
}),
|
|
21
|
-
byPhoneNumber: telnyxMethod({
|
|
22
|
-
method: 'GET',
|
|
23
|
-
path: '/verifications/by_phone_number/{phone_number}',
|
|
24
|
-
urlParams: ['phone_number'],
|
|
25
|
-
paramsValues: [response.data.id],
|
|
26
|
-
paramsNames: ['id'],
|
|
27
|
-
}),
|
|
28
|
-
verifyVerificationCodeByPhoneNumber: telnyxMethod({
|
|
29
|
-
method: 'POST',
|
|
30
|
-
path: '/by_phone_number/{phone_number}/actions/verify',
|
|
31
|
-
urlParams: ['phone_number'],
|
|
32
|
-
paramsValues: [response.data.id],
|
|
33
|
-
paramsNames: ['id'],
|
|
34
|
-
}),
|
|
35
|
-
verifyVerificationCodeById: telnyxMethod({
|
|
36
|
-
method: 'POST',
|
|
37
|
-
path: '/by_phone_number/{verification_id}/actions/verify',
|
|
8
|
+
path: '/{verification_id}/actions/verify',
|
|
38
9
|
urlParams: ['verification_id'],
|
|
10
|
+
paramsNames: ['verification_id'],
|
|
39
11
|
paramsValues: [response.data.id],
|
|
40
|
-
paramsNames: ['id'],
|
|
41
12
|
}),
|
|
42
13
|
});
|
|
43
|
-
}
|
|
14
|
+
};
|
|
44
15
|
export const Verifications = TelnyxResource.extend({
|
|
45
16
|
path: 'verifications',
|
|
46
|
-
|
|
17
|
+
callVerify: telnyxMethod({
|
|
18
|
+
method: 'POST',
|
|
19
|
+
path: '/call',
|
|
20
|
+
methodType: 'create',
|
|
21
|
+
}),
|
|
22
|
+
flashcallVerify: telnyxMethod({
|
|
23
|
+
method: 'POST',
|
|
24
|
+
path: '/flashcall',
|
|
25
|
+
methodType: 'create',
|
|
26
|
+
}),
|
|
27
|
+
smsVerify: telnyxMethod({
|
|
28
|
+
method: 'POST',
|
|
29
|
+
path: '/sms',
|
|
30
|
+
methodType: 'create',
|
|
31
|
+
}),
|
|
47
32
|
retrieve: telnyxMethod({
|
|
48
33
|
method: 'GET',
|
|
49
34
|
path: '/{verification_id}',
|
|
50
35
|
urlParams: ['verification_id'],
|
|
51
36
|
transformResponseData: transformResponseData,
|
|
52
37
|
}),
|
|
38
|
+
verify: telnyxMethod({
|
|
39
|
+
method: 'POST',
|
|
40
|
+
path: '/{verification_id}/actions/verify',
|
|
41
|
+
urlParams: ['verification_id'],
|
|
42
|
+
paramsNames: ['verification_id'],
|
|
43
|
+
}),
|
|
44
|
+
listByPhoneNumber: telnyxMethod({
|
|
45
|
+
method: 'GET',
|
|
46
|
+
path: '/by_phone_number/{phone_number}',
|
|
47
|
+
urlParams: ['phone_number'],
|
|
48
|
+
paramsNames: ['phone_number'],
|
|
49
|
+
methodType: 'list',
|
|
50
|
+
}),
|
|
51
|
+
verifyByPhoneNumber: telnyxMethod({
|
|
52
|
+
method: 'POST',
|
|
53
|
+
path: '/by_phone_number/{phone_number}/actions/verify',
|
|
54
|
+
urlParams: ['phone_number'],
|
|
55
|
+
paramsNames: ['phone_number'],
|
|
56
|
+
methodType: 'create',
|
|
57
|
+
}),
|
|
53
58
|
});
|
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
import TelnyxResource from '../TelnyxResource';
|
|
2
|
+
import * as utils from '../utils';
|
|
3
|
+
const telnyxMethod = TelnyxResource.method;
|
|
4
|
+
const transformResponseData = (response, telnyx) => {
|
|
5
|
+
return utils.addResourceToResponseData(response, telnyx, 'verifiedNumbers', {
|
|
6
|
+
verify: telnyxMethod({
|
|
7
|
+
method: 'POST',
|
|
8
|
+
path: '/{phone_number}/actions/verify',
|
|
9
|
+
urlParams: ['phone_number'],
|
|
10
|
+
paramsNames: ['phone_number'],
|
|
11
|
+
paramsValues: [response.data.id],
|
|
12
|
+
}),
|
|
13
|
+
});
|
|
14
|
+
};
|
|
2
15
|
export const VerifiedNumbers = TelnyxResource.extend({
|
|
3
16
|
path: 'verified_numbers',
|
|
4
|
-
includeBasic: ['list', '
|
|
17
|
+
includeBasic: ['list', 'del'],
|
|
18
|
+
retrieve: telnyxMethod({
|
|
19
|
+
method: 'GET',
|
|
20
|
+
path: '/{phone_number}',
|
|
21
|
+
urlParams: ['phone_number'],
|
|
22
|
+
transformResponseData: transformResponseData,
|
|
23
|
+
}),
|
|
24
|
+
create: telnyxMethod({
|
|
25
|
+
method: 'POST',
|
|
26
|
+
transformResponseData: transformResponseData,
|
|
27
|
+
}),
|
|
28
|
+
request: telnyxMethod({
|
|
29
|
+
method: 'POST',
|
|
30
|
+
transformResponseData: transformResponseData,
|
|
31
|
+
}),
|
|
32
|
+
verify: telnyxMethod({
|
|
33
|
+
method: 'POST',
|
|
34
|
+
path: '/{phone_number}/actions/verify',
|
|
35
|
+
urlParams: ['phone_number'],
|
|
36
|
+
paramsNames: ['phone_number'],
|
|
37
|
+
methodType: 'create',
|
|
38
|
+
}),
|
|
5
39
|
});
|
|
@@ -1,33 +1,11 @@
|
|
|
1
1
|
import TelnyxResource from '../TelnyxResource';
|
|
2
|
-
import * as utils from '../utils';
|
|
3
2
|
const telnyxMethod = TelnyxResource.method;
|
|
4
|
-
function transformResponseData(response, telnyx) {
|
|
5
|
-
return utils.addResourceToResponseData(response, telnyx, 'verifyProfiles', {
|
|
6
|
-
retrieveVerifyProfileMessageTemplates: telnyxMethod({
|
|
7
|
-
method: 'GET',
|
|
8
|
-
path: '/verify_profiles/templates',
|
|
9
|
-
}),
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
3
|
export const VerifyProfiles = TelnyxResource.extend({
|
|
13
4
|
path: 'verify_profiles',
|
|
14
|
-
includeBasic: ['list', 'update', 'del'],
|
|
15
|
-
|
|
16
|
-
method: 'PATCH',
|
|
17
|
-
path: '/{verify_profile_id}',
|
|
18
|
-
urlParams: ['verify_profile_id'],
|
|
19
|
-
paramsNames: ['id'],
|
|
20
|
-
transformResponseData: transformResponseData,
|
|
21
|
-
}),
|
|
22
|
-
retrieve: telnyxMethod({
|
|
5
|
+
includeBasic: ['list', 'create', 'retrieve', 'update', 'del'],
|
|
6
|
+
listTemplates: telnyxMethod({
|
|
23
7
|
method: 'GET',
|
|
24
|
-
path: '/
|
|
25
|
-
|
|
26
|
-
paramsNames: ['id'],
|
|
27
|
-
transformResponseData: transformResponseData,
|
|
28
|
-
}),
|
|
29
|
-
create: telnyxMethod({
|
|
30
|
-
method: 'POST',
|
|
31
|
-
transformResponseData: transformResponseData,
|
|
8
|
+
path: '/templates',
|
|
9
|
+
methodType: 'list',
|
|
32
10
|
}),
|
|
33
11
|
});
|
package/dist/telnyx.js
CHANGED
|
@@ -132,7 +132,6 @@ import { TelephonyCredentials } from './resources/TelephonyCredentials';
|
|
|
132
132
|
import { TexmlApplications } from './resources/TexmlApplications';
|
|
133
133
|
import { Verifications } from './resources/Verifications';
|
|
134
134
|
import { VerifiedNumbers } from './resources/VerifiedNumbers';
|
|
135
|
-
import { Verify } from './resources/Verify';
|
|
136
135
|
import { VerifyProfiles } from './resources/VerifyProfiles';
|
|
137
136
|
import { VirtualCrossConnects } from './resources/VirtualCrossConnects';
|
|
138
137
|
import { WdrDetailReports } from './resources/WdrDetailReports';
|
|
@@ -294,7 +293,6 @@ export function createTelnyx() {
|
|
|
294
293
|
TexmlApplications,
|
|
295
294
|
Verifications,
|
|
296
295
|
VerifiedNumbers,
|
|
297
|
-
Verify,
|
|
298
296
|
VerifyProfiles,
|
|
299
297
|
VirtualCrossConnects,
|
|
300
298
|
WdrDetailReports,
|
|
@@ -39,7 +39,9 @@ declare module 'telnyx' {
|
|
|
39
39
|
paths['/addresses/{id}']['delete']['responses']['200']['content']['application/json'];
|
|
40
40
|
|
|
41
41
|
type AddressesNestedMethods = {
|
|
42
|
-
del
|
|
42
|
+
del(
|
|
43
|
+
options?: RequestOptions,
|
|
44
|
+
): Promise<Telnyx.Response<Telnyx.AddressesDelResponse>>;
|
|
43
45
|
};
|
|
44
46
|
|
|
45
47
|
class AddressesResource {
|
|
@@ -42,8 +42,14 @@ declare module 'telnyx' {
|
|
|
42
42
|
paths['/call_control_applications/{id}']['delete']['responses']['200']['content']['application/json'];
|
|
43
43
|
|
|
44
44
|
type CallControlApplicationsNestedMethods = {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
del(
|
|
46
|
+
options?: RequestOptions,
|
|
47
|
+
): Promise<Telnyx.Response<Telnyx.CallControlApplicationsDelResponse>>;
|
|
48
|
+
|
|
49
|
+
update(
|
|
50
|
+
params: CallControlApplicationsUpdateParams,
|
|
51
|
+
options?: RequestOptions,
|
|
52
|
+
): Promise<Telnyx.Response<Telnyx.CallControlApplicationsUpdateResponse>>;
|
|
47
53
|
};
|
|
48
54
|
|
|
49
55
|
class CallControlApplicationsResource {
|
|
@@ -191,22 +191,26 @@ declare module 'telnyx' {
|
|
|
191
191
|
id: ConferencesRetrieveId,
|
|
192
192
|
options?: RequestOptions,
|
|
193
193
|
): Promise<
|
|
194
|
-
Telnyx.Response<
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
194
|
+
Telnyx.Response<
|
|
195
|
+
Telnyx.ConferencesRetrieveResponse &
|
|
196
|
+
NestedResponseData<
|
|
197
|
+
ConferencesRetrieveResponse['data'],
|
|
198
|
+
ConferencesNestedMethods
|
|
199
|
+
>
|
|
200
|
+
>
|
|
199
201
|
>;
|
|
200
202
|
|
|
201
203
|
create(
|
|
202
204
|
params: ConferencesCreateParams,
|
|
203
205
|
options?: RequestOptions,
|
|
204
206
|
): Promise<
|
|
205
|
-
Telnyx.Response<
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
207
|
+
Telnyx.Response<
|
|
208
|
+
Telnyx.ConferencesCreateResponse &
|
|
209
|
+
NestedResponseData<
|
|
210
|
+
ConferencesCreateResponse['data'],
|
|
211
|
+
ConferencesNestedMethods
|
|
212
|
+
>
|
|
213
|
+
>
|
|
210
214
|
>;
|
|
211
215
|
|
|
212
216
|
join(
|
|
@@ -2,14 +2,11 @@ import {paths} from './TelnyxAPI.js';
|
|
|
2
2
|
|
|
3
3
|
declare module 'telnyx' {
|
|
4
4
|
namespace Telnyx {
|
|
5
|
-
type
|
|
6
|
-
paths['/fax_applications
|
|
7
|
-
|
|
8
|
-
type FaxApplicationsDelParams =
|
|
9
|
-
paths['/fax_applications/{id}']['delete']['parameters']['query'];
|
|
5
|
+
type FaxApplicationsListParams =
|
|
6
|
+
paths['/fax_applications']['get']['parameters']['query'];
|
|
10
7
|
|
|
11
|
-
type
|
|
12
|
-
paths['/fax_applications
|
|
8
|
+
type FaxApplicationsListResponse =
|
|
9
|
+
paths['/fax_applications']['get']['responses']['200']['content']['application/json'];
|
|
13
10
|
|
|
14
11
|
type FaxApplicationsCreateParams =
|
|
15
12
|
paths['/fax_applications']['post']['requestBody']['content']['application/json'];
|
|
@@ -26,11 +23,14 @@ declare module 'telnyx' {
|
|
|
26
23
|
type FaxApplicationsRetrieveResponse =
|
|
27
24
|
paths['/fax_applications/{id}']['get']['responses']['200']['content']['application/json'];
|
|
28
25
|
|
|
29
|
-
type
|
|
30
|
-
paths['/fax_applications']['
|
|
26
|
+
type FaxApplicationsDelId =
|
|
27
|
+
paths['/fax_applications/{id}']['delete']['parameters']['path']['id'];
|
|
31
28
|
|
|
32
|
-
type
|
|
33
|
-
paths['/fax_applications']['
|
|
29
|
+
type FaxApplicationsDelParams =
|
|
30
|
+
paths['/fax_applications/{id}']['delete']['parameters']['query'];
|
|
31
|
+
|
|
32
|
+
type FaxApplicationsDelResponse =
|
|
33
|
+
paths['/fax_applications/{id}']['delete']['responses']['200']['content']['application/json'];
|
|
34
34
|
|
|
35
35
|
type FaxApplicationsUpdateId =
|
|
36
36
|
paths['/fax_applications/{id}']['patch']['parameters']['path']['id'];
|
|
@@ -42,15 +42,21 @@ declare module 'telnyx' {
|
|
|
42
42
|
paths['/fax_applications/{id}']['patch']['responses']['200']['content']['application/json'];
|
|
43
43
|
|
|
44
44
|
type FaxApplicationsNestedMethods = {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
del(
|
|
46
|
+
options?: RequestOptions,
|
|
47
|
+
): Promise<Telnyx.Response<Telnyx.FaxApplicationsDelResponse>>;
|
|
48
|
+
|
|
49
|
+
update(
|
|
50
|
+
params: FaxApplicationsUpdateParams,
|
|
51
|
+
options?: RequestOptions,
|
|
52
|
+
): Promise<Telnyx.Response<Telnyx.FaxApplicationsUpdateResponse>>;
|
|
47
53
|
};
|
|
48
54
|
|
|
49
55
|
class FaxApplicationsResource {
|
|
50
|
-
|
|
51
|
-
|
|
56
|
+
list(
|
|
57
|
+
params?: FaxApplicationsListParams,
|
|
52
58
|
options?: RequestOptions,
|
|
53
|
-
): Promise<Telnyx.Response<Telnyx.
|
|
59
|
+
): Promise<Telnyx.Response<Telnyx.FaxApplicationsListResponse>>;
|
|
54
60
|
|
|
55
61
|
create(
|
|
56
62
|
params: FaxApplicationsCreateParams,
|
|
@@ -78,10 +84,10 @@ declare module 'telnyx' {
|
|
|
78
84
|
>
|
|
79
85
|
>;
|
|
80
86
|
|
|
81
|
-
|
|
82
|
-
|
|
87
|
+
del(
|
|
88
|
+
id: FaxApplicationsDelId,
|
|
83
89
|
options?: RequestOptions,
|
|
84
|
-
): Promise<Telnyx.Response<Telnyx.
|
|
90
|
+
): Promise<Telnyx.Response<Telnyx.FaxApplicationsDelResponse>>;
|
|
85
91
|
|
|
86
92
|
update(
|
|
87
93
|
id: FaxApplicationsUpdateId,
|
|
@@ -31,14 +31,16 @@ declare module 'telnyx' {
|
|
|
31
31
|
paths['/faxes']['get']['responses']['200']['content']['application/json'];
|
|
32
32
|
|
|
33
33
|
type FaxesNestedMethods = {
|
|
34
|
-
del
|
|
34
|
+
del(
|
|
35
|
+
options?: RequestOptions,
|
|
36
|
+
): Promise<Telnyx.Response<Telnyx.FaxesDelResponse>>;
|
|
35
37
|
};
|
|
36
38
|
|
|
37
39
|
class FaxesResource {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
+
list(
|
|
41
|
+
params?: FaxesListParams,
|
|
40
42
|
options?: RequestOptions,
|
|
41
|
-
): Promise<Telnyx.Response<Telnyx.
|
|
43
|
+
): Promise<Telnyx.Response<Telnyx.FaxesListResponse>>;
|
|
42
44
|
|
|
43
45
|
create(
|
|
44
46
|
params: FaxesCreateParams,
|
|
@@ -73,10 +75,10 @@ declare module 'telnyx' {
|
|
|
73
75
|
>
|
|
74
76
|
>;
|
|
75
77
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
+
del(
|
|
79
|
+
id: FaxesDelId,
|
|
78
80
|
options?: RequestOptions,
|
|
79
|
-
): Promise<Telnyx.Response<Telnyx.
|
|
81
|
+
): Promise<Telnyx.Response<Telnyx.FaxesDelResponse>>;
|
|
80
82
|
}
|
|
81
83
|
}
|
|
82
84
|
}
|
|
@@ -42,15 +42,21 @@ declare module 'telnyx' {
|
|
|
42
42
|
paths['/fqdn_connections/{id}']['patch']['responses']['200']['content']['application/json'];
|
|
43
43
|
|
|
44
44
|
type FqdnConnectionsNestedMethods = {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
del(
|
|
46
|
+
options?: RequestOptions,
|
|
47
|
+
): Promise<Telnyx.Response<Telnyx.FqdnConnectionsDelResponse>>;
|
|
48
|
+
|
|
49
|
+
update(
|
|
50
|
+
params: FqdnConnectionsUpdateParams,
|
|
51
|
+
options?: RequestOptions,
|
|
52
|
+
): Promise<Telnyx.Response<Telnyx.FqdnConnectionsUpdateResponse>>;
|
|
47
53
|
};
|
|
48
54
|
|
|
49
55
|
class FqdnConnectionsResource {
|
|
50
|
-
|
|
51
|
-
|
|
56
|
+
list(
|
|
57
|
+
params?: FqdnConnectionsListParams,
|
|
52
58
|
options?: RequestOptions,
|
|
53
|
-
): Promise<Telnyx.Response<Telnyx.
|
|
59
|
+
): Promise<Telnyx.Response<Telnyx.FqdnConnectionsListResponse>>;
|
|
54
60
|
|
|
55
61
|
create(
|
|
56
62
|
params: FqdnConnectionsCreateParams,
|
|
@@ -77,17 +83,6 @@ declare module 'telnyx' {
|
|
|
77
83
|
>
|
|
78
84
|
>
|
|
79
85
|
>;
|
|
80
|
-
|
|
81
|
-
list(
|
|
82
|
-
params?: FqdnConnectionsListParams,
|
|
83
|
-
options?: RequestOptions,
|
|
84
|
-
): Promise<Telnyx.Response<Telnyx.FqdnConnectionsListResponse>>;
|
|
85
|
-
|
|
86
|
-
update(
|
|
87
|
-
id: FqdnConnectionsUpdateId,
|
|
88
|
-
params: FqdnConnectionsUpdateParams,
|
|
89
|
-
options?: RequestOptions,
|
|
90
|
-
): Promise<Telnyx.Response<Telnyx.FqdnConnectionsUpdateResponse>>;
|
|
91
86
|
}
|
|
92
87
|
}
|
|
93
88
|
}
|
|
@@ -46,15 +46,21 @@ declare module 'telnyx' {
|
|
|
46
46
|
paths['/fqdns/{id}']['patch']['responses']['200']['content']['application/json'];
|
|
47
47
|
|
|
48
48
|
type FqdnsNestedMethods = {
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
del(
|
|
50
|
+
options?: RequestOptions,
|
|
51
|
+
): Promise<Telnyx.Response<Telnyx.FqdnsDelResponse>>;
|
|
52
|
+
|
|
53
|
+
update(
|
|
54
|
+
params: FqdnsUpdateParams,
|
|
55
|
+
options?: RequestOptions,
|
|
56
|
+
): Promise<Telnyx.Response<Telnyx.FqdnsUpdateResponse>>;
|
|
51
57
|
};
|
|
52
58
|
|
|
53
59
|
class FqdnsResource {
|
|
54
|
-
|
|
55
|
-
|
|
60
|
+
list(
|
|
61
|
+
params?: FqdnsListParams,
|
|
56
62
|
options?: RequestOptions,
|
|
57
|
-
): Promise<Telnyx.Response<Telnyx.
|
|
63
|
+
): Promise<Telnyx.Response<Telnyx.FqdnsListResponse>>;
|
|
58
64
|
|
|
59
65
|
create(
|
|
60
66
|
params: FqdnsCreateParams,
|
|
@@ -79,10 +85,10 @@ declare module 'telnyx' {
|
|
|
79
85
|
>
|
|
80
86
|
>;
|
|
81
87
|
|
|
82
|
-
|
|
83
|
-
|
|
88
|
+
del(
|
|
89
|
+
id: FqdnsDelId,
|
|
84
90
|
options?: RequestOptions,
|
|
85
|
-
): Promise<Telnyx.Response<Telnyx.
|
|
91
|
+
): Promise<Telnyx.Response<Telnyx.FqdnsDelResponse>>;
|
|
86
92
|
|
|
87
93
|
update(
|
|
88
94
|
id: FqdnsUpdateId,
|
|
@@ -42,15 +42,21 @@ declare module 'telnyx' {
|
|
|
42
42
|
paths['/ip_connections/{id}']['patch']['responses']['200']['content']['application/json'];
|
|
43
43
|
|
|
44
44
|
type IpConnectionsNestedMethods = {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
del(
|
|
46
|
+
options?: RequestOptions,
|
|
47
|
+
): Promise<Telnyx.Response<Telnyx.IpConnectionsDelResponse>>;
|
|
48
|
+
|
|
49
|
+
update(
|
|
50
|
+
params: IpConnectionsUpdateParams,
|
|
51
|
+
options?: RequestOptions,
|
|
52
|
+
): Promise<Telnyx.Response<Telnyx.IpConnectionsUpdateResponse>>;
|
|
47
53
|
};
|
|
48
54
|
|
|
49
55
|
class IpConnectionsResource {
|
|
50
|
-
|
|
51
|
-
|
|
56
|
+
list(
|
|
57
|
+
params?: IpConnectionsListParams,
|
|
52
58
|
options?: RequestOptions,
|
|
53
|
-
): Promise<Telnyx.Response<Telnyx.
|
|
59
|
+
): Promise<Telnyx.Response<Telnyx.IpConnectionsListResponse>>;
|
|
54
60
|
|
|
55
61
|
create(
|
|
56
62
|
params: IpConnectionsCreateParams,
|
|
@@ -77,17 +83,6 @@ declare module 'telnyx' {
|
|
|
77
83
|
>
|
|
78
84
|
>
|
|
79
85
|
>;
|
|
80
|
-
|
|
81
|
-
list(
|
|
82
|
-
params?: IpConnectionsListParams,
|
|
83
|
-
options?: RequestOptions,
|
|
84
|
-
): Promise<Telnyx.Response<Telnyx.IpConnectionsListResponse>>;
|
|
85
|
-
|
|
86
|
-
update(
|
|
87
|
-
id: IpConnectionsUpdateId,
|
|
88
|
-
params: IpConnectionsUpdateParams,
|
|
89
|
-
options?: RequestOptions,
|
|
90
|
-
): Promise<Telnyx.Response<Telnyx.IpConnectionsUpdateResponse>>;
|
|
91
86
|
}
|
|
92
87
|
}
|
|
93
88
|
}
|
|
@@ -117,7 +117,9 @@ declare module 'telnyx' {
|
|
|
117
117
|
paths['/messaging_profiles/{profile_id}/autoresp_configs/{autoresp_cfg_id}']['put']['responses']['200']['content']['application/json'];
|
|
118
118
|
|
|
119
119
|
type MessagingProfilesNestedMethods = {
|
|
120
|
-
del
|
|
120
|
+
del(
|
|
121
|
+
options?: RequestOptions,
|
|
122
|
+
): Promise<Telnyx.Response<Telnyx.MessagingProfilesDelResponse>>;
|
|
121
123
|
|
|
122
124
|
phoneNumbers(
|
|
123
125
|
params: MessagingProfilesListPhoneNumbersParams,
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import {paths} from './TelnyxAPI.js';
|
|
2
|
+
|
|
3
|
+
declare module 'telnyx' {
|
|
4
|
+
namespace Telnyx {
|
|
5
|
+
type VerificationsCallCreateParams =
|
|
6
|
+
paths['/verifications/call']['post']['requestBody']['content']['application/json'];
|
|
7
|
+
|
|
8
|
+
type VerificationsCallCreateResponse =
|
|
9
|
+
paths['/verifications/call']['post']['responses']['200']['content']['application/json'];
|
|
10
|
+
|
|
11
|
+
type VerificationsFlashcallCreateParams =
|
|
12
|
+
paths['/verifications/flashcall']['post']['requestBody']['content']['application/json'];
|
|
13
|
+
|
|
14
|
+
type VerificationsFlashcallCreateResponse =
|
|
15
|
+
paths['/verifications/flashcall']['post']['responses']['200']['content']['application/json'];
|
|
16
|
+
|
|
17
|
+
type VerificationsSmsCreateParams =
|
|
18
|
+
paths['/verifications/sms']['post']['requestBody']['content']['application/json'];
|
|
19
|
+
|
|
20
|
+
type VerificationsSmsCreateResponse =
|
|
21
|
+
paths['/verifications/sms']['post']['responses']['200']['content']['application/json'];
|
|
22
|
+
|
|
23
|
+
type VerificationsRetrieveId =
|
|
24
|
+
paths['/verifications/{verification_id}']['get']['parameters']['path']['verification_id'];
|
|
25
|
+
|
|
26
|
+
type VerificationsRetrieveResponse =
|
|
27
|
+
paths['/verifications/{verification_id}']['get']['responses']['200']['content']['application/json'];
|
|
28
|
+
|
|
29
|
+
type VerificationsVerifyId =
|
|
30
|
+
paths['/verifications/{verification_id}/actions/verify']['post']['parameters']['path']['verification_id'];
|
|
31
|
+
|
|
32
|
+
type VerificationsVerifyParams =
|
|
33
|
+
paths['/verifications/{verification_id}/actions/verify']['post']['requestBody']['content']['application/json'];
|
|
34
|
+
|
|
35
|
+
type VerificationsVerifyResponse =
|
|
36
|
+
paths['/verifications/{verification_id}/actions/verify']['post']['responses']['200']['content']['application/json'];
|
|
37
|
+
|
|
38
|
+
type VerificationsListByPhoneNumberPhoneNumber =
|
|
39
|
+
paths['/verifications/by_phone_number/{phone_number}']['get']['parameters']['path']['phone_number'];
|
|
40
|
+
|
|
41
|
+
type VerificationsListByPhoneNumberParams =
|
|
42
|
+
| paths['/verifications/by_phone_number/{phone_number}']['get']['parameters']['query']
|
|
43
|
+
| Record<string, never>;
|
|
44
|
+
|
|
45
|
+
type VerificationsListByPhoneNumberResponse =
|
|
46
|
+
paths['/verifications/by_phone_number/{phone_number}']['get']['responses']['200']['content']['application/json'];
|
|
47
|
+
|
|
48
|
+
type VerificationsVerifyByPhoneNumberPhoneNumber =
|
|
49
|
+
paths['/verifications/by_phone_number/{phone_number}/actions/verify']['post']['parameters']['path']['phone_number'];
|
|
50
|
+
|
|
51
|
+
type VerificationsVerifyByPhoneNumberParams =
|
|
52
|
+
paths['/verifications/by_phone_number/{phone_number}/actions/verify']['post']['requestBody']['content']['application/json'];
|
|
53
|
+
|
|
54
|
+
type VerificationsVerifyByPhoneNumberResponse =
|
|
55
|
+
paths['/verifications/by_phone_number/{phone_number}/actions/verify']['post']['responses']['200']['content']['application/json'];
|
|
56
|
+
|
|
57
|
+
type VerificationsNestedMethods = {
|
|
58
|
+
verify(
|
|
59
|
+
params: VerificationsVerifyParams,
|
|
60
|
+
options?: RequestOptions,
|
|
61
|
+
): Promise<Telnyx.Response<Telnyx.VerificationsVerifyResponse>>;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
class VerificationsResource {
|
|
65
|
+
callVerify(
|
|
66
|
+
params: VerificationsCallCreateParams,
|
|
67
|
+
options?: RequestOptions,
|
|
68
|
+
): Promise<Telnyx.Response<Telnyx.VerificationsCallCreateResponse>>;
|
|
69
|
+
|
|
70
|
+
flashcallVerify(
|
|
71
|
+
params: VerificationsFlashcallCreateParams,
|
|
72
|
+
options?: RequestOptions,
|
|
73
|
+
): Promise<Telnyx.Response<Telnyx.VerificationsFlashcallCreateResponse>>;
|
|
74
|
+
|
|
75
|
+
smsVerify(
|
|
76
|
+
params: VerificationsSmsCreateParams,
|
|
77
|
+
options?: RequestOptions,
|
|
78
|
+
): Promise<Telnyx.Response<Telnyx.VerificationsSmsCreateResponse>>;
|
|
79
|
+
|
|
80
|
+
retrieve(
|
|
81
|
+
id: VerificationsRetrieveId,
|
|
82
|
+
options?: RequestOptions,
|
|
83
|
+
): Promise<
|
|
84
|
+
Telnyx.Response<
|
|
85
|
+
Telnyx.VerificationsRetrieveResponse &
|
|
86
|
+
NestedResponseData<
|
|
87
|
+
VerificationsRetrieveResponse['data'],
|
|
88
|
+
VerificationsNestedMethods
|
|
89
|
+
>
|
|
90
|
+
>
|
|
91
|
+
>;
|
|
92
|
+
|
|
93
|
+
verify(
|
|
94
|
+
id: VerificationsVerifyId,
|
|
95
|
+
params: VerificationsVerifyParams,
|
|
96
|
+
options?: RequestOptions,
|
|
97
|
+
): Promise<Telnyx.Response<Telnyx.VerificationsVerifyResponse>>;
|
|
98
|
+
|
|
99
|
+
listByPhoneNumber(
|
|
100
|
+
phoneNumber: VerificationsListByPhoneNumberPhoneNumber,
|
|
101
|
+
params: VerificationsListByPhoneNumberParams,
|
|
102
|
+
options?: RequestOptions,
|
|
103
|
+
): Promise<
|
|
104
|
+
Telnyx.Response<Telnyx.VerificationsListByPhoneNumberResponse>
|
|
105
|
+
>;
|
|
106
|
+
|
|
107
|
+
verifyByPhoneNumber(
|
|
108
|
+
phoneNumber: VerificationsVerifyByPhoneNumberPhoneNumber,
|
|
109
|
+
params: VerificationsVerifyByPhoneNumberParams,
|
|
110
|
+
options?: RequestOptions,
|
|
111
|
+
): Promise<
|
|
112
|
+
Telnyx.Response<Telnyx.VerificationsVerifyByPhoneNumberResponse>
|
|
113
|
+
>;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import {paths} from './TelnyxAPI.js';
|
|
2
|
+
|
|
3
|
+
declare module 'telnyx' {
|
|
4
|
+
namespace Telnyx {
|
|
5
|
+
type VerifiedNumbersListParams =
|
|
6
|
+
paths['/verified_numbers']['get']['parameters']['query'];
|
|
7
|
+
|
|
8
|
+
type VerifiedNumbersListResponse =
|
|
9
|
+
paths['/verified_numbers']['get']['responses']['200']['content']['application/json'];
|
|
10
|
+
|
|
11
|
+
type VerifiedNumbersCreateParams =
|
|
12
|
+
paths['/verified_numbers']['post']['requestBody']['content']['application/json'];
|
|
13
|
+
|
|
14
|
+
type VerifiedNumbersCreateResponse =
|
|
15
|
+
paths['/verified_numbers']['post']['responses']['200']['content']['application/json'];
|
|
16
|
+
|
|
17
|
+
type VerifiedNumbersRetrievePhoneNumber =
|
|
18
|
+
paths['/verified_numbers/{phone_number}']['get']['parameters']['path']['phone_number'];
|
|
19
|
+
|
|
20
|
+
type VerifiedNumbersRetrieveParams =
|
|
21
|
+
paths['/verified_numbers/{phone_number}']['get']['parameters']['query'];
|
|
22
|
+
|
|
23
|
+
type VerifiedNumbersRetrieveResponse =
|
|
24
|
+
paths['/verified_numbers/{phone_number}']['get']['responses']['200']['content']['application/json'];
|
|
25
|
+
|
|
26
|
+
type VerifiedNumbersDelPhoneNumber =
|
|
27
|
+
paths['/verified_numbers/{phone_number}']['delete']['parameters']['path']['phone_number'];
|
|
28
|
+
|
|
29
|
+
type VerifiedNumbersDelParams =
|
|
30
|
+
paths['/verified_numbers/{phone_number}']['delete']['parameters']['query'];
|
|
31
|
+
|
|
32
|
+
type VerifiedNumbersDelResponse =
|
|
33
|
+
paths['/verified_numbers/{phone_number}']['delete']['responses']['200']['content']['application/json'];
|
|
34
|
+
|
|
35
|
+
type VerifiedNumbersVerifyPhoneNumber =
|
|
36
|
+
paths['/verified_numbers/{phone_number}/actions/verify']['post']['parameters']['path']['phone_number'];
|
|
37
|
+
|
|
38
|
+
type VerifiedNumbersVerifyParams =
|
|
39
|
+
paths['/verified_numbers/{phone_number}/actions/verify']['post']['requestBody']['content']['application/json'];
|
|
40
|
+
|
|
41
|
+
type VerifiedNumbersVerifyResponse =
|
|
42
|
+
paths['/verified_numbers/{phone_number}/actions/verify']['post']['responses']['200']['content']['application/json'];
|
|
43
|
+
|
|
44
|
+
type VerifiedNumbersNestedMethods = {
|
|
45
|
+
verify(
|
|
46
|
+
params: VerifiedNumbersVerifyParams,
|
|
47
|
+
options?: RequestOptions,
|
|
48
|
+
): Promise<Telnyx.Response<Telnyx.VerifiedNumbersVerifyResponse>>;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
class VerifiedNumbersResource {
|
|
52
|
+
list(
|
|
53
|
+
params?: VerifiedNumbersListParams,
|
|
54
|
+
options?: RequestOptions,
|
|
55
|
+
): Promise<Telnyx.Response<Telnyx.VerifiedNumbersListResponse>>;
|
|
56
|
+
|
|
57
|
+
create(
|
|
58
|
+
params: VerifiedNumbersCreateParams,
|
|
59
|
+
options?: RequestOptions,
|
|
60
|
+
): Promise<
|
|
61
|
+
Telnyx.Response<
|
|
62
|
+
Telnyx.VerifiedNumbersCreateResponse &
|
|
63
|
+
NestedResponseData<
|
|
64
|
+
VerifiedNumbersCreateResponse,
|
|
65
|
+
VerifiedNumbersNestedMethods
|
|
66
|
+
>
|
|
67
|
+
>
|
|
68
|
+
>;
|
|
69
|
+
|
|
70
|
+
request(
|
|
71
|
+
params: VerifiedNumbersCreateParams,
|
|
72
|
+
options?: RequestOptions,
|
|
73
|
+
): Promise<
|
|
74
|
+
Telnyx.Response<
|
|
75
|
+
Telnyx.VerifiedNumbersCreateResponse &
|
|
76
|
+
NestedResponseData<
|
|
77
|
+
VerifiedNumbersCreateResponse,
|
|
78
|
+
VerifiedNumbersNestedMethods
|
|
79
|
+
>
|
|
80
|
+
>
|
|
81
|
+
>;
|
|
82
|
+
|
|
83
|
+
verify(
|
|
84
|
+
phoneNumber: VerifiedNumbersVerifyPhoneNumber,
|
|
85
|
+
params: VerifiedNumbersVerifyParams,
|
|
86
|
+
options?: RequestOptions,
|
|
87
|
+
): Promise<Telnyx.Response<Telnyx.VerifiedNumbersVerifyResponse>>;
|
|
88
|
+
|
|
89
|
+
retrieve(
|
|
90
|
+
phoneNumber: VerifiedNumbersRetrievePhoneNumber,
|
|
91
|
+
options?: RequestOptions,
|
|
92
|
+
): Promise<
|
|
93
|
+
Telnyx.Response<
|
|
94
|
+
Telnyx.VerifiedNumbersRetrieveResponse &
|
|
95
|
+
NestedResponseData<
|
|
96
|
+
VerifiedNumbersRetrieveResponse['data'],
|
|
97
|
+
VerifiedNumbersNestedMethods
|
|
98
|
+
>
|
|
99
|
+
>
|
|
100
|
+
>;
|
|
101
|
+
|
|
102
|
+
del(
|
|
103
|
+
phoneNumber: VerifiedNumbersDelPhoneNumber,
|
|
104
|
+
options?: RequestOptions,
|
|
105
|
+
): Promise<Telnyx.Response<Telnyx.VerifiedNumbersDelResponse>>;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import {paths} from './TelnyxAPI.js';
|
|
2
|
+
|
|
3
|
+
declare module 'telnyx' {
|
|
4
|
+
namespace Telnyx {
|
|
5
|
+
type VerifyProfilesListParams =
|
|
6
|
+
paths['/verify_profiles']['get']['parameters']['query'];
|
|
7
|
+
|
|
8
|
+
type VerifyProfilesListResponse =
|
|
9
|
+
paths['/verify_profiles']['get']['responses']['200']['content']['application/json'];
|
|
10
|
+
|
|
11
|
+
type VerifyProfilesCreateParams =
|
|
12
|
+
paths['/verify_profiles']['post']['requestBody']['content']['application/json'];
|
|
13
|
+
|
|
14
|
+
type VerifyProfilesCreateResponse =
|
|
15
|
+
paths['/verify_profiles']['post']['responses']['200']['content']['application/json'];
|
|
16
|
+
|
|
17
|
+
type VerifyProfilesRetrieveId =
|
|
18
|
+
paths['/verify_profiles/{verify_profile_id}']['get']['parameters']['path']['verify_profile_id'];
|
|
19
|
+
|
|
20
|
+
type VerifyProfilesRetrieveParams =
|
|
21
|
+
paths['/verify_profiles/{verify_profile_id}']['get']['parameters']['query'];
|
|
22
|
+
|
|
23
|
+
type VerifyProfilesRetrieveResponse =
|
|
24
|
+
paths['/verify_profiles/{verify_profile_id}']['get']['responses']['200']['content']['application/json'];
|
|
25
|
+
|
|
26
|
+
type VerifyProfilesDelId =
|
|
27
|
+
paths['/verify_profiles/{verify_profile_id}']['delete']['parameters']['path']['verify_profile_id'];
|
|
28
|
+
|
|
29
|
+
type VerifyProfilesDelParams =
|
|
30
|
+
paths['/verify_profiles/{verify_profile_id}']['delete']['parameters']['query'];
|
|
31
|
+
|
|
32
|
+
type VerifyProfilesDelResponse =
|
|
33
|
+
paths['/verify_profiles/{verify_profile_id}']['delete']['responses']['200']['content']['application/json'];
|
|
34
|
+
|
|
35
|
+
type VerifyProfilesUpdateId =
|
|
36
|
+
paths['/verify_profiles/{verify_profile_id}']['patch']['parameters']['path']['verify_profile_id'];
|
|
37
|
+
|
|
38
|
+
type VerifyProfilesUpdateParams =
|
|
39
|
+
paths['/verify_profiles/{verify_profile_id}']['patch']['requestBody']['content']['application/json'];
|
|
40
|
+
|
|
41
|
+
type VerifyProfilesUpdateResponse =
|
|
42
|
+
paths['/verify_profiles/{verify_profile_id}']['patch']['responses']['200']['content']['application/json'];
|
|
43
|
+
|
|
44
|
+
type VerifyProfilesListTemplatesParams =
|
|
45
|
+
| paths['/verify_profiles/templates']['get']['parameters']['query']
|
|
46
|
+
| Record<string, never>;
|
|
47
|
+
|
|
48
|
+
type VerifyProfilesListTemplatesResponse =
|
|
49
|
+
paths['/verify_profiles/templates']['get']['responses']['200']['content']['application/json'];
|
|
50
|
+
|
|
51
|
+
class VerifyProfilesResource {
|
|
52
|
+
list(
|
|
53
|
+
params?: VerifyProfilesListParams,
|
|
54
|
+
options?: RequestOptions,
|
|
55
|
+
): Promise<Telnyx.Response<Telnyx.VerifyProfilesListResponse>>;
|
|
56
|
+
|
|
57
|
+
create(
|
|
58
|
+
params: VerifyProfilesCreateParams,
|
|
59
|
+
options?: RequestOptions,
|
|
60
|
+
): Promise<Telnyx.Response<Telnyx.VerifyProfilesCreateResponse>>;
|
|
61
|
+
|
|
62
|
+
retrieve(
|
|
63
|
+
id: VerifyProfilesRetrieveId,
|
|
64
|
+
options?: RequestOptions,
|
|
65
|
+
): Promise<Telnyx.Response<Telnyx.VerifyProfilesRetrieveResponse>>;
|
|
66
|
+
|
|
67
|
+
del(
|
|
68
|
+
id: VerifyProfilesDelId,
|
|
69
|
+
options?: RequestOptions,
|
|
70
|
+
): Promise<Telnyx.Response<Telnyx.VerifyProfilesDelResponse>>;
|
|
71
|
+
|
|
72
|
+
update(
|
|
73
|
+
id: VerifyProfilesUpdateId,
|
|
74
|
+
params: VerifyProfilesUpdateParams,
|
|
75
|
+
options?: RequestOptions,
|
|
76
|
+
): Promise<Telnyx.Response<Telnyx.VerifyProfilesUpdateResponse>>;
|
|
77
|
+
|
|
78
|
+
listTemplates(
|
|
79
|
+
params?: VerifyProfilesListTemplatesParams,
|
|
80
|
+
options?: RequestOptions,
|
|
81
|
+
): Promise<Telnyx.Response<Telnyx.VerifyProfilesListTemplatesResponse>>;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -61,6 +61,9 @@
|
|
|
61
61
|
///<reference path='./TelephonyCredentialsResource.d.ts' />
|
|
62
62
|
///<reference path='./TexmlApplicationsResource.d.ts' />
|
|
63
63
|
///<reference path='./StorageBucketsResource.d.ts' />
|
|
64
|
+
///<reference path='./VerificationsResource.d.ts' />
|
|
65
|
+
///<reference path='./VerifiedNumbersResource.d.ts' />
|
|
66
|
+
///<reference path='./VerifyProfilesResource.d.ts' />
|
|
64
67
|
//
|
|
65
68
|
|
|
66
69
|
declare module 'telnyx' {
|
|
@@ -130,6 +133,9 @@ declare module 'telnyx' {
|
|
|
130
133
|
telephonyCredentials: Telnyx.TelephonyCredentialsResource;
|
|
131
134
|
texmlApplications: Telnyx.TexmlApplicationsResource;
|
|
132
135
|
storageBuckets: Telnyx.StorageBucketsResource;
|
|
136
|
+
verifications: Telnyx.VerificationsResource;
|
|
137
|
+
verifiedNumbers: Telnyx.VerifiedNumbersResource;
|
|
138
|
+
verifyProfiles: Telnyx.VerifyProfilesResource;
|
|
133
139
|
//
|
|
134
140
|
|
|
135
141
|
webhooks: Telnyx.Webhooks;
|
package/package.json
CHANGED
package/dist/resources/Verify.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import TelnyxResource from '../TelnyxResource';
|
|
2
|
-
const telnyxMethod = TelnyxResource.method;
|
|
3
|
-
export const Verify = TelnyxResource.extend({
|
|
4
|
-
path: 'verify',
|
|
5
|
-
includeBasic: ['list', 'retrieve', 'create', 'delete'],
|
|
6
|
-
RetrieveVerification: telnyxMethod({
|
|
7
|
-
method: 'GET',
|
|
8
|
-
path: '/verifications/{verification/id}',
|
|
9
|
-
urlParams: ['verification_id'],
|
|
10
|
-
}),
|
|
11
|
-
CreateFlashcallVerification: telnyxMethod({
|
|
12
|
-
method: 'POST',
|
|
13
|
-
path: '/verifications/flashcall',
|
|
14
|
-
}),
|
|
15
|
-
VerifyVerificationCode: telnyxMethod({
|
|
16
|
-
method: 'POST',
|
|
17
|
-
path: '/verifications/by_phone_number/{phone/number}/actions/verify',
|
|
18
|
-
urlParams: ['phone_number'],
|
|
19
|
-
}),
|
|
20
|
-
CreateVerificationSms: telnyxMethod({
|
|
21
|
-
method: 'POST',
|
|
22
|
-
path: '/verifications/sms',
|
|
23
|
-
}),
|
|
24
|
-
CreateVerificationPsd2: telnyxMethod({
|
|
25
|
-
method: 'POST',
|
|
26
|
-
path: '/verifications/psd2',
|
|
27
|
-
}),
|
|
28
|
-
ListVerifications: telnyxMethod({
|
|
29
|
-
method: 'GET',
|
|
30
|
-
path: '/verifications/by_phone_number/{phone/number}',
|
|
31
|
-
urlParams: ['phone_number'],
|
|
32
|
-
}),
|
|
33
|
-
ListProfiles: telnyxMethod({
|
|
34
|
-
method: 'GET',
|
|
35
|
-
path: '/verify_profiles',
|
|
36
|
-
}),
|
|
37
|
-
CreateVerificationWhatsapp: telnyxMethod({
|
|
38
|
-
method: 'POST',
|
|
39
|
-
path: '/verifications/whatsapp',
|
|
40
|
-
}),
|
|
41
|
-
DeleteProfile: telnyxMethod({
|
|
42
|
-
method: 'DELETE',
|
|
43
|
-
path: '/verify_profiles/{verify/profile/id}',
|
|
44
|
-
urlParams: ['verify_profile_id'],
|
|
45
|
-
}),
|
|
46
|
-
CreateVerificationCall: telnyxMethod({
|
|
47
|
-
method: 'POST',
|
|
48
|
-
path: '/verifications/call',
|
|
49
|
-
}),
|
|
50
|
-
});
|