telnyx 2.0.0-alpha.2 → 2.0.0-alpha.4
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 +13 -0
- package/README.md +1 -0
- package/VERSION +1 -1
- package/dist/resources/Addresses.js +0 -1
- package/dist/resources/Brands.js +1 -5
- package/dist/resources/CallControlApplications.js +1 -5
- package/dist/resources/CallRecordings.js +8 -10
- package/dist/resources/CdrUsageReports.js +4 -4
- package/dist/resources/Channelzones.js +20 -12
- package/dist/resources/Conferences.js +11 -2
- package/dist/resources/Connections.js +5 -0
- package/dist/resources/Documents.js +2 -29
- package/dist/resources/TelephonyCredentials.js +10 -8
- package/dist/telnyx.js +0 -6
- package/dist/types/AddressesResource.d.ts +12 -2
- package/dist/types/AuthenticationProvidersResource.d.ts +72 -0
- package/dist/types/BrandsResource.d.ts +12 -5
- package/dist/types/CallControlApplicationsResource.d.ts +93 -0
- package/dist/types/CallEventsResource.d.ts +18 -0
- package/dist/types/CallRecordingsResource.d.ts +59 -0
- package/dist/types/CallsResource.d.ts +8 -2
- package/dist/types/CdrUsageReportsResource.d.ts +18 -0
- package/dist/types/ChannelzonesResource.d.ts +92 -0
- package/dist/types/ConferencesResource.d.ts +202 -0
- package/dist/types/ConnectionsResource.d.ts +44 -0
- package/dist/types/CredentialConnectionsResource.d.ts +69 -0
- package/dist/types/DocumentLinksResource.d.ts +18 -0
- package/dist/types/DocumentsResource.d.ts +80 -0
- package/dist/types/MessagingProfilesResource.d.ts +8 -2
- package/dist/types/TelephonyCredentialsResource.d.ts +99 -0
- package/dist/types/TelnyxAPI.d.ts +1 -1
- package/dist/types/index.d.ts +25 -1
- package/dist/types/lib.d.ts +2 -0
- package/package.json +1 -1
- package/dist/resources/BusinessIdentity.js +0 -15
- package/dist/resources/CallInformation.js +0 -10
- package/dist/resources/Credentials.js +0 -24
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
## v2
|
|
4
4
|
|
|
5
|
+
### v2.0.0-alpha.4
|
|
6
|
+
|
|
7
|
+
- Add `Addresses` example
|
|
8
|
+
- Remove `BusinessIdentity` resource
|
|
9
|
+
- Remove `CallInformation` resource
|
|
10
|
+
- Remove duplicated `Credentials` resource
|
|
11
|
+
- Fixed `Conferences`, `Documents` and `TelephonyCredentials` method names
|
|
12
|
+
- Add missing resource types defs
|
|
13
|
+
|
|
14
|
+
### v2.0.0-alpha.3
|
|
15
|
+
|
|
16
|
+
- Update typing on Nested Resources
|
|
17
|
+
|
|
5
18
|
### v2.0.0-alpha.2
|
|
6
19
|
|
|
7
20
|
- Fix `AI` resource methods and created nested structure
|
package/README.md
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
[](https://github.com/team-telnyx/telnyx-node/actions)
|
|
5
5
|
[](https://www.npmjs.com/package/telnyx)
|
|
6
6
|
[](https://runkit.com/npm/telnyx)
|
|
7
|
+
[](https://github.com/prettier/prettier")
|
|
7
8
|
[](https://joinslack.telnyx.com/)
|
|
8
9
|
|
|
9
10
|
The Telnyx Node library provides convenient access to the Telnyx API from
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.0.0-alpha.
|
|
1
|
+
2.0.0-alpha.4
|
package/dist/resources/Brands.js
CHANGED
|
@@ -24,15 +24,11 @@ export const Brands = TelnyxResource.extend({
|
|
|
24
24
|
path: '/brand/{brandId}/2faEmail',
|
|
25
25
|
urlParams: ['brandId'],
|
|
26
26
|
}),
|
|
27
|
-
externalVettings: telnyxMethod({
|
|
28
|
-
method: 'GET',
|
|
29
|
-
path: '/brand/{brandId}/externalVetting',
|
|
30
|
-
urlParams: ['brandId'],
|
|
31
|
-
}),
|
|
32
27
|
listExternalVettings: telnyxMethod({
|
|
33
28
|
method: 'GET',
|
|
34
29
|
path: '/brand/{brandId}/externalVetting',
|
|
35
30
|
urlParams: ['brandId'],
|
|
31
|
+
methodType: 'list',
|
|
36
32
|
}),
|
|
37
33
|
exportExternalVettings: telnyxMethod({
|
|
38
34
|
method: 'PUT',
|
|
@@ -21,11 +21,7 @@ function transformResponseData(response, telnyx) {
|
|
|
21
21
|
}
|
|
22
22
|
export const CallControlApplications = TelnyxResource.extend({
|
|
23
23
|
path: 'call_control_applications',
|
|
24
|
-
|
|
25
|
-
method: 'GET',
|
|
26
|
-
methodType: 'list',
|
|
27
|
-
transformResponseData: transformResponseData,
|
|
28
|
-
}),
|
|
24
|
+
includeBasic: ['list', 'update'],
|
|
29
25
|
create: telnyxMethod({
|
|
30
26
|
method: 'POST',
|
|
31
27
|
transformResponseData: transformResponseData,
|
|
@@ -2,21 +2,19 @@ import TelnyxResource from '../TelnyxResource';
|
|
|
2
2
|
const telnyxMethod = TelnyxResource.method;
|
|
3
3
|
export const CallRecordings = TelnyxResource.extend({
|
|
4
4
|
path: 'recordings',
|
|
5
|
-
includeBasic: ['list'
|
|
6
|
-
|
|
5
|
+
includeBasic: ['list'],
|
|
6
|
+
retrieve: telnyxMethod({
|
|
7
7
|
method: 'GET',
|
|
8
|
-
path: '/
|
|
8
|
+
path: '/{recording_id}',
|
|
9
|
+
urlParams: ['recording_id'],
|
|
9
10
|
}),
|
|
10
|
-
|
|
11
|
+
del: telnyxMethod({
|
|
11
12
|
method: 'DELETE',
|
|
12
|
-
path: '/
|
|
13
|
+
path: '/{recording_id}',
|
|
14
|
+
urlParams: ['recording_id'],
|
|
13
15
|
}),
|
|
14
|
-
|
|
16
|
+
bulkDel: telnyxMethod({
|
|
15
17
|
method: 'DELETE',
|
|
16
18
|
path: '/recordings/actions/delete',
|
|
17
19
|
}),
|
|
18
|
-
DeleteCustomStorageCredentials: telnyxMethod({
|
|
19
|
-
method: 'DELETE',
|
|
20
|
-
path: '/custom/storage/credentials/{connection/id}',
|
|
21
|
-
}),
|
|
22
20
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import TelnyxResource from '../TelnyxResource';
|
|
2
2
|
const telnyxMethod = TelnyxResource.method;
|
|
3
3
|
export const CdrUsageReports = TelnyxResource.extend({
|
|
4
|
-
path: 'cdr_usage_reports',
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
path: 'reports/cdr_usage_reports',
|
|
5
|
+
retrieveUsageReportSync: telnyxMethod({
|
|
6
|
+
path: '/sync',
|
|
7
7
|
method: 'GET',
|
|
8
|
-
|
|
8
|
+
urlParams: [],
|
|
9
9
|
}),
|
|
10
10
|
});
|
|
@@ -1,22 +1,30 @@
|
|
|
1
1
|
import TelnyxResource from '../TelnyxResource';
|
|
2
2
|
const telnyxMethod = TelnyxResource.method;
|
|
3
3
|
export const Channelzones = TelnyxResource.extend({
|
|
4
|
-
path: '
|
|
5
|
-
includeBasic: ['list'
|
|
6
|
-
|
|
4
|
+
path: 'channel_zones',
|
|
5
|
+
includeBasic: ['list'],
|
|
6
|
+
update: telnyxMethod({
|
|
7
|
+
method: 'PATCH',
|
|
8
|
+
path: '/{channel_zone_id}',
|
|
9
|
+
urlParams: ['channel_zone_id'],
|
|
10
|
+
}),
|
|
11
|
+
retrieve: telnyxMethod({
|
|
7
12
|
method: 'GET',
|
|
8
|
-
path: '/
|
|
13
|
+
path: '/{channel_zone_id}',
|
|
14
|
+
urlParams: ['channel_zone_id'],
|
|
9
15
|
}),
|
|
10
|
-
|
|
11
|
-
method: '
|
|
12
|
-
path: '/
|
|
16
|
+
createPhoneNumber: telnyxMethod({
|
|
17
|
+
method: 'POST',
|
|
18
|
+
path: '/{channel_zone_id}/channel_zone_phone_numbers',
|
|
19
|
+
urlParams: ['channel_zone_id'],
|
|
13
20
|
}),
|
|
14
|
-
|
|
21
|
+
listPhoneNumbers: telnyxMethod({
|
|
15
22
|
method: 'GET',
|
|
16
|
-
path: '/
|
|
23
|
+
path: '/{channel_zone_id}/channel_zone_phone_numbers',
|
|
17
24
|
}),
|
|
18
|
-
|
|
19
|
-
method: '
|
|
20
|
-
path: '/
|
|
25
|
+
delPhoneNumber: telnyxMethod({
|
|
26
|
+
method: 'DELETE',
|
|
27
|
+
path: '/{channel_zone_id}/channel_zone_phone_numbers/{phone_number}',
|
|
28
|
+
urlParams: ['channel_zone_id', 'phone_number'],
|
|
21
29
|
}),
|
|
22
30
|
});
|
|
@@ -14,7 +14,8 @@ const CONFERENCES = [
|
|
|
14
14
|
'record_stop',
|
|
15
15
|
'update',
|
|
16
16
|
'leave',
|
|
17
|
-
'
|
|
17
|
+
'record_resume',
|
|
18
|
+
'record_pause',
|
|
18
19
|
];
|
|
19
20
|
function getSpec(conferenceId) {
|
|
20
21
|
return function (methodName) {
|
|
@@ -30,7 +31,15 @@ function getSpec(conferenceId) {
|
|
|
30
31
|
}
|
|
31
32
|
export const Conferences = TelnyxResource.extend({
|
|
32
33
|
path: 'conferences',
|
|
33
|
-
includeBasic: ['list'
|
|
34
|
+
includeBasic: ['list'],
|
|
35
|
+
retrieve: telnyxMethod({
|
|
36
|
+
method: 'GET',
|
|
37
|
+
path: '/{id}',
|
|
38
|
+
urlParams: ['id'],
|
|
39
|
+
transformResponseData: function (response, telnyx) {
|
|
40
|
+
return utils.addResourceToResponseData(response, telnyx, 'conferences', utils.createNestedMethods(telnyxMethod, CONFERENCES, getSpec(response.data.id)));
|
|
41
|
+
},
|
|
42
|
+
}),
|
|
34
43
|
create: telnyxMethod({
|
|
35
44
|
method: 'POST',
|
|
36
45
|
transformResponseData: function (response, telnyx) {
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import TelnyxResource from '../TelnyxResource';
|
|
2
|
+
const telnyxMethod = TelnyxResource.method;
|
|
2
3
|
export const Connections = TelnyxResource.extend({
|
|
3
4
|
path: 'connections',
|
|
4
5
|
includeBasic: ['list', 'retrieve'],
|
|
6
|
+
listActiveCalls: telnyxMethod({
|
|
7
|
+
method: 'GET',
|
|
8
|
+
path: '/{connection_id}/active_calls',
|
|
9
|
+
}),
|
|
5
10
|
});
|
|
@@ -1,44 +1,17 @@
|
|
|
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, 'documents', {});
|
|
6
|
-
}
|
|
7
3
|
export const Documents = TelnyxResource.extend({
|
|
8
4
|
path: 'documents',
|
|
9
|
-
|
|
10
|
-
method: 'GET',
|
|
11
|
-
transformResponseData: transformResponseData,
|
|
12
|
-
}),
|
|
13
|
-
update: telnyxMethod({
|
|
14
|
-
method: 'PATCH',
|
|
15
|
-
path: '/{id}',
|
|
16
|
-
urlParams: ['id'],
|
|
17
|
-
transformResponseData: transformResponseData,
|
|
18
|
-
}),
|
|
19
|
-
del: telnyxMethod({
|
|
20
|
-
method: 'DELETE',
|
|
21
|
-
path: '{id}',
|
|
22
|
-
urlParams: ['id'],
|
|
23
|
-
transformResponseData: transformResponseData,
|
|
24
|
-
}),
|
|
5
|
+
includeBasic: ['list', 'update', 'del', 'create', 'retrieve'],
|
|
25
6
|
upload: telnyxMethod({
|
|
26
7
|
method: 'POST',
|
|
27
|
-
transformResponseData: transformResponseData,
|
|
28
|
-
}),
|
|
29
|
-
retrieveDocumentId: telnyxMethod({
|
|
30
|
-
method: 'GET',
|
|
31
|
-
path: '/{id}',
|
|
32
|
-
urlParams: ['id'],
|
|
33
|
-
transformResponseData: transformResponseData,
|
|
34
8
|
}),
|
|
35
|
-
|
|
9
|
+
download: telnyxMethod({
|
|
36
10
|
method: 'GET',
|
|
37
11
|
path: '/{id}/download',
|
|
38
12
|
urlParams: ['id'],
|
|
39
13
|
headers: {
|
|
40
14
|
'Content-Type': '*',
|
|
41
15
|
},
|
|
42
|
-
transformResponseData: transformResponseData,
|
|
43
16
|
}),
|
|
44
17
|
});
|
|
@@ -12,7 +12,7 @@ function transformResponseData(response, telnyx) {
|
|
|
12
12
|
}),
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
export const TelephonyCredentials = TelnyxResource.extend({
|
|
16
16
|
path: 'telephony_credentials',
|
|
17
17
|
includeBasic: ['del', 'list', 'update'],
|
|
18
18
|
create: telnyxMethod({
|
|
@@ -20,16 +20,18 @@ const telephonyCredentialResource = {
|
|
|
20
20
|
transformResponseData: transformResponseData,
|
|
21
21
|
}),
|
|
22
22
|
retrieve: telnyxMethod({
|
|
23
|
+
method: 'GET',
|
|
24
|
+
path: '/{id}',
|
|
25
|
+
urlParams: ['id'],
|
|
26
|
+
transformResponseData: transformResponseData,
|
|
27
|
+
}),
|
|
28
|
+
createToken: telnyxMethod({
|
|
23
29
|
method: 'POST',
|
|
24
30
|
path: '/{id}/token',
|
|
25
31
|
urlParams: ['id'],
|
|
26
|
-
transformResponseData: transformResponseData,
|
|
27
32
|
}),
|
|
28
|
-
|
|
33
|
+
listTags: telnyxMethod({
|
|
29
34
|
method: 'GET',
|
|
30
|
-
path: '/
|
|
31
|
-
urlParams: ['id'],
|
|
32
|
-
transformResponseData: transformResponseData,
|
|
35
|
+
path: '/tags',
|
|
33
36
|
}),
|
|
34
|
-
};
|
|
35
|
-
export const TelephonyCredentials = TelnyxResource.extend(telephonyCredentialResource);
|
|
37
|
+
});
|
package/dist/telnyx.js
CHANGED
|
@@ -27,10 +27,8 @@ import { Brands } from './resources/Brands';
|
|
|
27
27
|
import { BulkCredentials } from './resources/BulkCredentials';
|
|
28
28
|
import { BulkSoleProprietorCreation } from './resources/BulkSoleProprietorCreation';
|
|
29
29
|
import { BulkTelephonyCredentials } from './resources/BulkTelephonyCredentials';
|
|
30
|
-
import { BusinessIdentity } from './resources/BusinessIdentity';
|
|
31
30
|
import { CallControlApplications } from './resources/CallControlApplications';
|
|
32
31
|
import { CallEvents } from './resources/CallEvents';
|
|
33
|
-
import { CallInformation } from './resources/CallInformation';
|
|
34
32
|
import { CallRecordings } from './resources/CallRecordings';
|
|
35
33
|
import { Calls } from './resources/Calls';
|
|
36
34
|
import { Campaign } from './resources/Campaign';
|
|
@@ -41,7 +39,6 @@ import { ClientStateUpdate } from './resources/ClientStateUpdate';
|
|
|
41
39
|
import { Conferences } from './resources/Conferences';
|
|
42
40
|
import { Connections } from './resources/Connections';
|
|
43
41
|
import { CredentialConnections } from './resources/CredentialConnections';
|
|
44
|
-
import { Credentials } from './resources/Credentials';
|
|
45
42
|
import { CsvDownloads } from './resources/CsvDownloads';
|
|
46
43
|
import { CustomerServiceRecord } from './resources/CustomerServiceRecord';
|
|
47
44
|
import { Debugging } from './resources/Debugging';
|
|
@@ -202,10 +199,8 @@ export function createTelnyx() {
|
|
|
202
199
|
BulkCredentials,
|
|
203
200
|
BulkSoleProprietorCreation,
|
|
204
201
|
BulkTelephonyCredentials,
|
|
205
|
-
BusinessIdentity,
|
|
206
202
|
CallControlApplications,
|
|
207
203
|
CallEvents,
|
|
208
|
-
CallInformation,
|
|
209
204
|
CallRecordings,
|
|
210
205
|
Calls,
|
|
211
206
|
Campaign,
|
|
@@ -216,7 +211,6 @@ export function createTelnyx() {
|
|
|
216
211
|
Conferences,
|
|
217
212
|
Connections,
|
|
218
213
|
CredentialConnections,
|
|
219
|
-
Credentials,
|
|
220
214
|
CsvDownloads,
|
|
221
215
|
CustomerServiceRecord,
|
|
222
216
|
Debugging,
|
|
@@ -48,7 +48,11 @@ declare module 'telnyx' {
|
|
|
48
48
|
options?: RequestOptions,
|
|
49
49
|
): Promise<
|
|
50
50
|
Telnyx.Response<
|
|
51
|
-
Telnyx.AddressesRetrieveResponse &
|
|
51
|
+
Telnyx.AddressesRetrieveResponse &
|
|
52
|
+
NestedResponseData<
|
|
53
|
+
AddressesRetrieveResponse['data'],
|
|
54
|
+
AddressesNestedMethods
|
|
55
|
+
>
|
|
52
56
|
>
|
|
53
57
|
>;
|
|
54
58
|
|
|
@@ -56,7 +60,13 @@ declare module 'telnyx' {
|
|
|
56
60
|
params: AddressesCreateParams,
|
|
57
61
|
options?: RequestOptions,
|
|
58
62
|
): Promise<
|
|
59
|
-
Telnyx.Response<
|
|
63
|
+
Telnyx.Response<
|
|
64
|
+
Telnyx.AddressesCreateResponse &
|
|
65
|
+
NestedResponseData<
|
|
66
|
+
AddressesCreateResponse['data'],
|
|
67
|
+
AddressesNestedMethods
|
|
68
|
+
>
|
|
69
|
+
>
|
|
60
70
|
>;
|
|
61
71
|
|
|
62
72
|
validate(
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import {paths} from './TelnyxAPI.js';
|
|
2
|
+
|
|
3
|
+
declare module 'telnyx' {
|
|
4
|
+
namespace Telnyx {
|
|
5
|
+
type AuthenticationProvidersListParams =
|
|
6
|
+
paths['/authentication_providers']['get']['parameters']['query'];
|
|
7
|
+
|
|
8
|
+
type AuthenticationProvidersListResponse =
|
|
9
|
+
paths['/authentication_providers']['get']['responses']['200']['content']['application/json'];
|
|
10
|
+
|
|
11
|
+
type AuthenticationProvidersCreateParams =
|
|
12
|
+
paths['/authentication_providers']['post']['requestBody']['content']['application/json'];
|
|
13
|
+
|
|
14
|
+
type AuthenticationProvidersCreateResponse =
|
|
15
|
+
paths['/authentication_providers']['post']['responses']['200']['content']['application/json'];
|
|
16
|
+
|
|
17
|
+
type AuthenticationProvidersRetrieveId =
|
|
18
|
+
paths['/authentication_providers/{id}']['get']['parameters']['path']['id'];
|
|
19
|
+
|
|
20
|
+
type AuthenticationProvidersRetrieveParams =
|
|
21
|
+
paths['/authentication_providers/{id}']['get']['parameters']['query'];
|
|
22
|
+
|
|
23
|
+
type AuthenticationProvidersRetrieveResponse =
|
|
24
|
+
paths['/authentication_providers/{id}']['get']['responses']['200']['content']['application/json'];
|
|
25
|
+
type AuthenticationProvidersUpdateId =
|
|
26
|
+
paths['/authentication_providers/{id}']['patch']['parameters']['path']['id'];
|
|
27
|
+
|
|
28
|
+
type AuthenticationProvidersUpdateParams =
|
|
29
|
+
paths['/authentication_providers/{id}']['patch']['requestBody']['content']['application/json'];
|
|
30
|
+
|
|
31
|
+
type AuthenticationProvidersUpdateResponse =
|
|
32
|
+
paths['/authentication_providers/{id}']['patch']['responses']['200']['content']['application/json'];
|
|
33
|
+
type AuthenticationProvidersDelId =
|
|
34
|
+
paths['/authentication_providers/{id}']['delete']['parameters']['path']['id'];
|
|
35
|
+
|
|
36
|
+
type AuthenticationProvidersDelParams =
|
|
37
|
+
paths['/authentication_providers/{id}']['delete']['parameters']['query'];
|
|
38
|
+
|
|
39
|
+
type AuthenticationProvidersDelResponse =
|
|
40
|
+
paths['/authentication_providers/{id}']['delete']['responses']['200']['content']['application/json'];
|
|
41
|
+
|
|
42
|
+
class AuthenticationProvidersResource {
|
|
43
|
+
list(
|
|
44
|
+
params?: AuthenticationProvidersListParams,
|
|
45
|
+
options?: RequestOptions,
|
|
46
|
+
): Promise<Telnyx.Response<Telnyx.AuthenticationProvidersListResponse>>;
|
|
47
|
+
|
|
48
|
+
create(
|
|
49
|
+
params: AuthenticationProvidersCreateParams,
|
|
50
|
+
options?: RequestOptions,
|
|
51
|
+
): Promise<Telnyx.Response<Telnyx.AuthenticationProvidersCreateResponse>>;
|
|
52
|
+
|
|
53
|
+
retrieve(
|
|
54
|
+
id: AuthenticationProvidersRetrieveId,
|
|
55
|
+
options?: RequestOptions,
|
|
56
|
+
): Promise<
|
|
57
|
+
Telnyx.Response<Telnyx.AuthenticationProvidersRetrieveResponse>
|
|
58
|
+
>;
|
|
59
|
+
|
|
60
|
+
update(
|
|
61
|
+
id: AuthenticationProvidersUpdateId,
|
|
62
|
+
params: AuthenticationProvidersUpdateParams,
|
|
63
|
+
options?: RequestOptions,
|
|
64
|
+
): Promise<Telnyx.Response<Telnyx.AuthenticationProvidersUpdateResponse>>;
|
|
65
|
+
|
|
66
|
+
del(
|
|
67
|
+
id: AuthenticationProvidersDelId,
|
|
68
|
+
options?: RequestOptions,
|
|
69
|
+
): Promise<Telnyx.Response<Telnyx.AuthenticationProvidersDelResponse>>;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -55,18 +55,27 @@ declare module 'telnyx' {
|
|
|
55
55
|
type BrandsExportExternalVettingsPathParams =
|
|
56
56
|
paths['/brand/{brandId}/externalVetting']['put']['parameters']['path'];
|
|
57
57
|
|
|
58
|
+
type BrandsExportExternalVettingsParams =
|
|
59
|
+
paths['/brand/{brandId}/externalVetting']['put']['requestBody']['content']['application/json'];
|
|
60
|
+
|
|
58
61
|
type BrandsExportExternalVettingsResponse =
|
|
59
62
|
paths['/brand/{brandId}/externalVetting']['put']['responses']['200']['content']['application/json'];
|
|
60
63
|
|
|
61
64
|
type BrandsOrderExternalVettingsPathParams =
|
|
62
65
|
paths['/brand/{brandId}/externalVetting']['post']['parameters']['path'];
|
|
63
66
|
|
|
67
|
+
type BrandsOrderExternalVettingsParams =
|
|
68
|
+
paths['/brand/{brandId}/externalVetting']['post']['requestBody']['content']['application/json'];
|
|
69
|
+
|
|
64
70
|
type BrandsOrderExternalVettingsResponse =
|
|
65
71
|
paths['/brand/{brandId}/externalVetting']['post']['responses']['200']['content']['application/json'];
|
|
66
72
|
|
|
67
73
|
type BrandsRevetPathParams =
|
|
68
74
|
paths['/brand/{brandId}/revet']['put']['parameters']['path'];
|
|
69
75
|
|
|
76
|
+
type BrandsRevetParams =
|
|
77
|
+
paths['/brand/{brandId}/externalVetting']['put']['requestBody']['content']['application/json'];
|
|
78
|
+
|
|
70
79
|
type BrandsRevetResponse =
|
|
71
80
|
paths['/brand/{brandId}/revet']['put']['responses']['200']['content']['application/json'];
|
|
72
81
|
|
|
@@ -108,11 +117,6 @@ declare module 'telnyx' {
|
|
|
108
117
|
options?: RequestOptions,
|
|
109
118
|
): Promise<Telnyx.Response<Telnyx.BrandsResend2faEmailResponse>>;
|
|
110
119
|
|
|
111
|
-
externalVettings(
|
|
112
|
-
params?: BrandsListExternalVettingsPathParams,
|
|
113
|
-
options?: RequestOptions,
|
|
114
|
-
): Promise<Telnyx.Response<Telnyx.BrandsListExternalVettingsResponse>>;
|
|
115
|
-
|
|
116
120
|
listExternalVettings(
|
|
117
121
|
pathParams: BrandsListExternalVettingsPathParams,
|
|
118
122
|
options?: RequestOptions,
|
|
@@ -120,16 +124,19 @@ declare module 'telnyx' {
|
|
|
120
124
|
|
|
121
125
|
exportExternalVettings(
|
|
122
126
|
pathParams: BrandsExportExternalVettingsPathParams,
|
|
127
|
+
params: BrandsExportExternalVettingsParams,
|
|
123
128
|
options?: RequestOptions,
|
|
124
129
|
): Promise<Telnyx.Response<Telnyx.BrandsExportExternalVettingsResponse>>;
|
|
125
130
|
|
|
126
131
|
orderExternalVettings(
|
|
127
132
|
pathParams: BrandsOrderExternalVettingsPathParams,
|
|
133
|
+
params: BrandsOrderExternalVettingsParams,
|
|
128
134
|
options?: RequestOptions,
|
|
129
135
|
): Promise<Telnyx.Response<Telnyx.BrandsOrderExternalVettingsResponse>>;
|
|
130
136
|
|
|
131
137
|
revet(
|
|
132
138
|
pathParams: BrandsRevetPathParams,
|
|
139
|
+
params: BrandsRevetParams,
|
|
133
140
|
options?: RequestOptions,
|
|
134
141
|
): Promise<Telnyx.Response<Telnyx.BrandsRevetResponse>>;
|
|
135
142
|
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import {paths} from './TelnyxAPI.js';
|
|
2
|
+
|
|
3
|
+
declare module 'telnyx' {
|
|
4
|
+
namespace Telnyx {
|
|
5
|
+
type CallControlApplicationsListParams =
|
|
6
|
+
paths['/call_control_applications']['get']['parameters']['query'];
|
|
7
|
+
|
|
8
|
+
type CallControlApplicationsListResponse =
|
|
9
|
+
paths['/call_control_applications']['get']['responses']['200']['content']['application/json'];
|
|
10
|
+
|
|
11
|
+
type CallControlApplicationsCreateParams =
|
|
12
|
+
paths['/call_control_applications']['post']['requestBody']['content']['application/json'];
|
|
13
|
+
|
|
14
|
+
type CallControlApplicationsCreateResponse =
|
|
15
|
+
paths['/call_control_applications']['post']['responses']['201']['content']['application/json'];
|
|
16
|
+
|
|
17
|
+
type CallControlApplicationsRetrieveId =
|
|
18
|
+
paths['/call_control_applications/{id}']['get']['parameters']['path']['id'];
|
|
19
|
+
|
|
20
|
+
type CallControlApplicationsRetrieveParams =
|
|
21
|
+
paths['/call_control_applications/{id}']['get']['parameters']['query'];
|
|
22
|
+
|
|
23
|
+
type CallControlApplicationsRetrieveResponse =
|
|
24
|
+
paths['/call_control_applications/{id}']['get']['responses']['200']['content']['application/json'];
|
|
25
|
+
|
|
26
|
+
type CallControlApplicationsUpdateId =
|
|
27
|
+
paths['/call_control_applications/{id}']['patch']['parameters']['path']['id'];
|
|
28
|
+
|
|
29
|
+
type CallControlApplicationsUpdateParams =
|
|
30
|
+
paths['/call_control_applications/{id}']['patch']['requestBody']['content']['application/json'];
|
|
31
|
+
|
|
32
|
+
type CallControlApplicationsUpdateResponse =
|
|
33
|
+
paths['/call_control_applications/{id}']['patch']['responses']['200']['content']['application/json'];
|
|
34
|
+
|
|
35
|
+
type CallControlApplicationsDelId =
|
|
36
|
+
paths['/call_control_applications/{id}']['delete']['parameters']['path']['id'];
|
|
37
|
+
|
|
38
|
+
type CallControlApplicationsDelParams =
|
|
39
|
+
paths['/call_control_applications/{id}']['delete']['parameters']['query'];
|
|
40
|
+
|
|
41
|
+
type CallControlApplicationsDelResponse =
|
|
42
|
+
paths['/call_control_applications/{id}']['delete']['responses']['200']['content']['application/json'];
|
|
43
|
+
|
|
44
|
+
type CallControlApplicationsNestedMethods = {
|
|
45
|
+
create: MessagingProfilesResource['create'];
|
|
46
|
+
del: MessagingProfilesResource['del'];
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
class CallControlApplicationsResource {
|
|
50
|
+
list(
|
|
51
|
+
params?: CallControlApplicationsListParams,
|
|
52
|
+
options?: RequestOptions,
|
|
53
|
+
): Promise<Telnyx.Response<Telnyx.CallControlApplicationsListResponse>>;
|
|
54
|
+
|
|
55
|
+
create(
|
|
56
|
+
params: CallControlApplicationsCreateParams,
|
|
57
|
+
options?: RequestOptions,
|
|
58
|
+
): Promise<
|
|
59
|
+
Telnyx.Response<
|
|
60
|
+
Telnyx.CallControlApplicationsCreateResponse &
|
|
61
|
+
NestedResponseData<
|
|
62
|
+
CallControlApplicationsCreateResponse['data'],
|
|
63
|
+
CallControlApplicationsNestedMethods
|
|
64
|
+
>
|
|
65
|
+
>
|
|
66
|
+
>;
|
|
67
|
+
|
|
68
|
+
retrieve(
|
|
69
|
+
id: CallControlApplicationsRetrieveId,
|
|
70
|
+
options?: RequestOptions,
|
|
71
|
+
): Promise<
|
|
72
|
+
Telnyx.Response<
|
|
73
|
+
Telnyx.CallControlApplicationsCreateResponse &
|
|
74
|
+
NestedResponseData<
|
|
75
|
+
CallControlApplicationsCreateResponse['data'],
|
|
76
|
+
CallControlApplicationsNestedMethods
|
|
77
|
+
>
|
|
78
|
+
>
|
|
79
|
+
>;
|
|
80
|
+
|
|
81
|
+
update(
|
|
82
|
+
id: CallControlApplicationsUpdateId,
|
|
83
|
+
params: CallControlApplicationsUpdateParams,
|
|
84
|
+
options?: RequestOptions,
|
|
85
|
+
): Promise<Telnyx.Response<Telnyx.CallControlApplicationsUpdateResponse>>;
|
|
86
|
+
|
|
87
|
+
del(
|
|
88
|
+
id: CallControlApplicationsDelId,
|
|
89
|
+
options?: RequestOptions,
|
|
90
|
+
): Promise<Telnyx.Response<Telnyx.CallControlApplicationsDelResponse>>;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {paths} from './TelnyxAPI.js';
|
|
2
|
+
|
|
3
|
+
declare module 'telnyx' {
|
|
4
|
+
namespace Telnyx {
|
|
5
|
+
type CallEventsListParams =
|
|
6
|
+
paths['/call_events']['get']['parameters']['query'];
|
|
7
|
+
|
|
8
|
+
type CallEventsListResponse =
|
|
9
|
+
paths['/call_events']['get']['responses']['200']['content']['application/json'];
|
|
10
|
+
|
|
11
|
+
class CallEventsResource {
|
|
12
|
+
list(
|
|
13
|
+
params?: CallEventsListParams,
|
|
14
|
+
options?: RequestOptions,
|
|
15
|
+
): Promise<Telnyx.Response<Telnyx.CallEventsListResponse>>;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import {paths} from './TelnyxAPI.js';
|
|
2
|
+
|
|
3
|
+
declare module 'telnyx' {
|
|
4
|
+
namespace Telnyx {
|
|
5
|
+
type CallRecordingsListParams =
|
|
6
|
+
paths['/recordings']['get']['parameters']['query'];
|
|
7
|
+
|
|
8
|
+
type CallRecordingsListResponse =
|
|
9
|
+
paths['/recordings']['get']['responses']['200']['content']['application/json'];
|
|
10
|
+
|
|
11
|
+
type CallRecordingsRetrieveId =
|
|
12
|
+
paths['/recordings/{recording_id}']['get']['parameters']['path']['recording_id'];
|
|
13
|
+
|
|
14
|
+
type CallRecordingsRetrieveParams =
|
|
15
|
+
paths['/recordings/{recording_id}']['get']['parameters']['query'];
|
|
16
|
+
|
|
17
|
+
type CallRecordingsRetrieveResponse =
|
|
18
|
+
paths['/recordings/{recording_id}']['get']['responses']['200']['content']['application/json'];
|
|
19
|
+
|
|
20
|
+
type CallRecordingsDelId =
|
|
21
|
+
paths['/recordings/{recording_id}']['delete']['parameters']['path']['recording_id'];
|
|
22
|
+
|
|
23
|
+
type CallRecordingsDelResponse =
|
|
24
|
+
paths['/recordings/{recording_id}']['delete']['responses']['200']['content']['application/json'];
|
|
25
|
+
|
|
26
|
+
type CallRecordingsBulkDelParams =
|
|
27
|
+
paths['/recordings/actions/delete']['delete']['requestBody']['content']['application/json'];
|
|
28
|
+
|
|
29
|
+
type CallRecordingsBulkDelResponse =
|
|
30
|
+
paths['/recordings/actions/delete']['delete']['responses']['204']['content'];
|
|
31
|
+
|
|
32
|
+
class CallRecordingsResource {
|
|
33
|
+
list(
|
|
34
|
+
params?: CallRecordingsListParams,
|
|
35
|
+
options?: RequestOptions,
|
|
36
|
+
): Promise<Telnyx.Response<Telnyx.CallRecordingsListResponse>>;
|
|
37
|
+
|
|
38
|
+
retrieve(
|
|
39
|
+
id: CallRecordingsRetrieveId,
|
|
40
|
+
options?: RequestOptions,
|
|
41
|
+
): Promise<Telnyx.Response<Telnyx.CallRecordingsRetrieveResponse>>;
|
|
42
|
+
|
|
43
|
+
del(
|
|
44
|
+
id: CallRecordingsDelId,
|
|
45
|
+
options?: RequestOptions,
|
|
46
|
+
): Promise<Telnyx.Response<Telnyx.CallRecordingsDelResponse>>;
|
|
47
|
+
|
|
48
|
+
del(
|
|
49
|
+
id: CallRecordingsDelId,
|
|
50
|
+
options?: RequestOptions,
|
|
51
|
+
): Promise<Telnyx.Response<Telnyx.CallRecordingsDelResponse>>;
|
|
52
|
+
|
|
53
|
+
bulkDel(
|
|
54
|
+
params?: CallRecordingsBulkDelParams,
|
|
55
|
+
options?: RequestOptions,
|
|
56
|
+
): Promise<Telnyx.Response<Telnyx.CallRecordingsDelResponse>>;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|