telnyx 2.0.0-alpha.3 → 2.0.0-alpha.5
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 +27 -0
- package/VERSION +1 -1
- package/dist/resources/AuditEvents.js +5 -0
- package/dist/resources/AutorespConfigs.js +1 -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/Calls.js +5 -0
- 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/CustomerServiceRecords.js +15 -0
- package/dist/resources/DetailRecords.js +1 -1
- package/dist/resources/DialogflowConnections.js +26 -0
- package/dist/resources/Documents.js +2 -29
- package/dist/resources/ExternalConnections.js +44 -40
- package/dist/resources/FaxApplications.js +0 -1
- package/dist/resources/Faxes.js +0 -1
- package/dist/resources/FqdnConnections.js +0 -1
- package/dist/resources/Fqdns.js +0 -1
- package/dist/resources/InventoryCoverage.js +4 -0
- package/dist/resources/Messages.js +20 -4
- package/dist/resources/MessagingHostedNumbers.js +2 -2
- package/dist/resources/NotificationEvents.js +5 -0
- package/dist/resources/OutboundVoiceProfiles.js +1 -9
- package/dist/resources/PhoneNumbersCsvDownloads.js +5 -0
- package/dist/resources/PortingEvents.js +11 -0
- package/dist/resources/PortoutEvents.js +11 -0
- package/dist/resources/RegulatoryRequirements.js +1 -1
- package/dist/resources/TelephonyCredentials.js +10 -8
- package/dist/resources/VerifyProfiles.js +2 -14
- package/dist/telnyx.js +14 -38
- package/dist/types/AuditEventsResource.d.ts +18 -0
- 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/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/CustomerServiceRecordsResource.d.ts +55 -0
- package/dist/types/DetailRecordsResource.d.ts +18 -0
- package/dist/types/DialogflowConnectionsResource.d.ts +61 -0
- package/dist/types/DocumentLinksResource.d.ts +18 -0
- package/dist/types/DocumentsResource.d.ts +80 -0
- package/dist/types/DynamicEmergencyAddressesResource.d.ts +61 -0
- package/dist/types/DynamicEmergencyEndpointsResource.d.ts +58 -0
- package/dist/types/DynamicEmergencyResource.d.ts +8 -0
- package/dist/types/ExternalConnectionsResource.d.ts +303 -0
- package/dist/types/FaxApplicationsResource.d.ts +93 -0
- package/dist/types/FaxesResource.d.ts +82 -0
- package/dist/types/FqdnConnectionsResource.d.ts +93 -0
- package/dist/types/FqdnsResource.d.ts +94 -0
- package/dist/types/InventoryCoverageResource.d.ts +23 -0
- package/dist/types/IpConnectionsResource.d.ts +93 -0
- package/dist/types/IpsResource.d.ts +72 -0
- package/dist/types/MessagesResource.d.ts +93 -0
- package/dist/types/NotificationEventsResource.d.ts +18 -0
- package/dist/types/PhoneNumbersCsvDownloadsResource.d.ts +44 -0
- package/dist/types/PortingEventsResource.d.ts +43 -0
- package/dist/types/PortoutEventsResource.d.ts +43 -0
- package/dist/types/TelephonyCredentialsResource.d.ts +99 -0
- package/dist/types/TelnyxAPI.d.ts +3 -4
- package/dist/types/TexmlApplicationsResource.d.ts +72 -0
- package/dist/types/index.d.ts +69 -2
- package/package.json +1 -1
- package/dist/resources/BusinessIdentity.js +0 -15
- package/dist/resources/CallInformation.js +0 -10
- package/dist/resources/ClientStateUpdate.js +0 -5
- package/dist/resources/Credentials.js +0 -24
- package/dist/resources/CsvDownloads.js +0 -15
- package/dist/resources/CustomerServiceRecord.js +0 -18
- package/dist/resources/Debugging.js +0 -10
- package/dist/resources/DialogflowIntegration.js +0 -10
- package/dist/resources/Events.js +0 -5
- package/dist/resources/InboundChannels.js +0 -10
- package/dist/resources/InventoryLevel.js +0 -10
- package/dist/resources/IpAddresses.js +0 -15
- package/dist/resources/IpRanges.js +0 -15
- package/dist/resources/MessagesAlphanumericSenderId.js +0 -5
- package/dist/resources/MessagingHostedNumber.js +0 -25
- package/dist/resources/MessagingPhoneNumbers.js +0 -5
- package/dist/resources/MessagingSenderIds.js +0 -5
- package/dist/resources/PublicKey.js +0 -8
- package/dist/resources/UpdateClientState.js +0 -14
|
@@ -10,15 +10,8 @@ function transformResponseData(response, telnyx) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
export const VerifyProfiles = TelnyxResource.extend({
|
|
13
|
-
path: '
|
|
14
|
-
includeBasic: ['update'],
|
|
15
|
-
delete: telnyxMethod({
|
|
16
|
-
method: 'DELETE',
|
|
17
|
-
path: '/{verify_profile_id}',
|
|
18
|
-
urlParams: ['verify_profile_id'],
|
|
19
|
-
paramsNames: ['id'],
|
|
20
|
-
transformResponseData: transformResponseData,
|
|
21
|
-
}),
|
|
13
|
+
path: 'verify_profiles',
|
|
14
|
+
includeBasic: ['list', 'update', 'del'],
|
|
22
15
|
save: telnyxMethod({
|
|
23
16
|
method: 'PATCH',
|
|
24
17
|
path: '/{verify_profile_id}',
|
|
@@ -33,11 +26,6 @@ export const VerifyProfiles = TelnyxResource.extend({
|
|
|
33
26
|
paramsNames: ['id'],
|
|
34
27
|
transformResponseData: transformResponseData,
|
|
35
28
|
}),
|
|
36
|
-
list: telnyxMethod({
|
|
37
|
-
method: 'GET',
|
|
38
|
-
methodType: 'list',
|
|
39
|
-
transformResponseData: transformResponseData,
|
|
40
|
-
}),
|
|
41
29
|
create: telnyxMethod({
|
|
42
30
|
method: 'POST',
|
|
43
31
|
transformResponseData: transformResponseData,
|
package/dist/telnyx.js
CHANGED
|
@@ -27,64 +27,52 @@ 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';
|
|
37
35
|
import { CampaignBuilder } from './resources/CampaignBuilder';
|
|
38
36
|
import { CdrUsageReports } from './resources/CdrUsageReports';
|
|
39
37
|
import { Channelzones } from './resources/Channelzones';
|
|
40
|
-
import { ClientStateUpdate } from './resources/ClientStateUpdate';
|
|
41
38
|
import { Conferences } from './resources/Conferences';
|
|
42
39
|
import { Connections } from './resources/Connections';
|
|
43
40
|
import { CredentialConnections } from './resources/CredentialConnections';
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import { CustomerServiceRecord } from './resources/CustomerServiceRecord';
|
|
47
|
-
import { Debugging } from './resources/Debugging';
|
|
41
|
+
import { PhoneNumbersCsvDownloads } from './resources/PhoneNumbersCsvDownloads';
|
|
42
|
+
import { CustomerServiceRecords } from './resources/CustomerServiceRecords';
|
|
48
43
|
import { DetailRecords } from './resources/DetailRecords';
|
|
49
|
-
import {
|
|
44
|
+
import { DialogflowConnections } from './resources/DialogflowConnections';
|
|
50
45
|
import { DocumentLinks } from './resources/DocumentLinks';
|
|
51
46
|
import { Documents } from './resources/Documents';
|
|
52
47
|
import { DynamicEmergency } from './resources/DynamicEmergency';
|
|
53
48
|
import { DynamicEmergencyAddresses } from './resources/DynamicEmergencyAddresses';
|
|
54
49
|
import { DynamicEmergencyEndpoints } from './resources/DynamicEmergencyEndpoints';
|
|
55
|
-
import {
|
|
50
|
+
import { AuditEvents } from './resources/AuditEvents';
|
|
56
51
|
import { ExternalConnections } from './resources/ExternalConnections';
|
|
57
52
|
import { FaxApplications } from './resources/FaxApplications';
|
|
58
53
|
import { Faxes } from './resources/Faxes';
|
|
59
54
|
import { FqdnConnections } from './resources/FqdnConnections';
|
|
60
55
|
import { Fqdns } from './resources/Fqdns';
|
|
61
56
|
import { GlobalIps } from './resources/GlobalIps';
|
|
62
|
-
import { InboundChannels } from './resources/InboundChannels';
|
|
63
57
|
import { InventoryCoverage } from './resources/InventoryCoverage';
|
|
64
|
-
import { InventoryLevel } from './resources/InventoryLevel';
|
|
65
|
-
import { IpAddresses } from './resources/IpAddresses';
|
|
66
58
|
import { IpConnections } from './resources/IpConnections';
|
|
67
|
-
import { IpRanges } from './resources/IpRanges';
|
|
68
59
|
import { Ips } from './resources/Ips';
|
|
69
60
|
import { ManagedAccounts } from './resources/ManagedAccounts';
|
|
70
61
|
import { MdrDetailReports } from './resources/MdrDetailReports';
|
|
71
62
|
import { MdrUsageReports } from './resources/MdrUsageReports';
|
|
72
63
|
import { MediaStorageApi } from './resources/MediaStorageApi';
|
|
73
64
|
import { Messages } from './resources/Messages';
|
|
74
|
-
import { MessagesAlphanumericSenderId } from './resources/MessagesAlphanumericSenderId';
|
|
75
|
-
import { MessagingHostedNumber } from './resources/MessagingHostedNumber';
|
|
76
65
|
import { MessagingHostedNumberOrders } from './resources/MessagingHostedNumberOrders';
|
|
77
66
|
import { MessagingHostedNumbers } from './resources/MessagingHostedNumbers';
|
|
78
|
-
import { MessagingPhoneNumbers } from './resources/MessagingPhoneNumbers';
|
|
79
67
|
import { MessagingProfileMetrics } from './resources/MessagingProfileMetrics';
|
|
80
68
|
import { MessagingProfiles } from './resources/MessagingProfiles';
|
|
81
|
-
import { MessagingSenderIds } from './resources/MessagingSenderIds';
|
|
82
69
|
import { MessagingShortCodes } from './resources/MessagingShortCodes';
|
|
83
70
|
import { MessagingTollfreeVerification } from './resources/MessagingTollfreeVerification';
|
|
84
71
|
import { MessagingUrlDomains } from './resources/MessagingUrlDomains';
|
|
85
72
|
import { MobileNetworkOperators } from './resources/MobileNetworkOperators';
|
|
86
73
|
import { MobileOperatorNetworks } from './resources/MobileOperatorNetworks';
|
|
87
74
|
import { Networks } from './resources/Networks';
|
|
75
|
+
import { NotificationEvents } from './resources/NotificationEvents';
|
|
88
76
|
import { NumberBackgroundJobs } from './resources/NumberBackgroundJobs';
|
|
89
77
|
import { NumberLookup } from './resources/NumberLookup';
|
|
90
78
|
import { NumberOrderDocuments } from './resources/NumberOrderDocuments';
|
|
@@ -108,13 +96,14 @@ import { PhoneNumbersInboundChannels } from './resources/PhoneNumbersInboundChan
|
|
|
108
96
|
import { PhoneNumbersMessaging } from './resources/PhoneNumbersMessaging';
|
|
109
97
|
import { PhoneNumbersVoice } from './resources/PhoneNumbersVoice';
|
|
110
98
|
import { PortabilityChecks } from './resources/PortabilityChecks';
|
|
99
|
+
import { PortingEvents } from './resources/PortingEvents';
|
|
100
|
+
import { PortoutEvents } from './resources/PortoutEvents';
|
|
111
101
|
import { PortingOrders } from './resources/PortingOrders';
|
|
112
102
|
import { PortingPhoneNumbers } from './resources/PortingPhoneNumbers';
|
|
113
103
|
import { PortoutRequests } from './resources/PortoutRequests';
|
|
114
104
|
import { PresignedObjectUrls } from './resources/PresignedObjectUrls';
|
|
115
105
|
import { PrivateWirelessGateways } from './resources/PrivateWirelessGateways';
|
|
116
106
|
import { PublicInternetGateways } from './resources/PublicInternetGateways';
|
|
117
|
-
import { PublicKey } from './resources/PublicKey';
|
|
118
107
|
import { PushCredentials } from './resources/PushCredentials';
|
|
119
108
|
import { Queues } from './resources/Queues';
|
|
120
109
|
import { RecordingsCommands } from './resources/RecordingsCommands';
|
|
@@ -142,7 +131,6 @@ import { SimCards } from './resources/SimCards';
|
|
|
142
131
|
import { StorageBuckets } from './resources/StorageBuckets';
|
|
143
132
|
import { TelephonyCredentials } from './resources/TelephonyCredentials';
|
|
144
133
|
import { TexmlApplications } from './resources/TexmlApplications';
|
|
145
|
-
import { UpdateClientState } from './resources/UpdateClientState';
|
|
146
134
|
import { Verifications } from './resources/Verifications';
|
|
147
135
|
import { VerifiedNumbers } from './resources/VerifiedNumbers';
|
|
148
136
|
import { Verify } from './resources/Verify';
|
|
@@ -202,64 +190,51 @@ export function createTelnyx() {
|
|
|
202
190
|
BulkCredentials,
|
|
203
191
|
BulkSoleProprietorCreation,
|
|
204
192
|
BulkTelephonyCredentials,
|
|
205
|
-
BusinessIdentity,
|
|
206
193
|
CallControlApplications,
|
|
207
194
|
CallEvents,
|
|
208
|
-
CallInformation,
|
|
209
195
|
CallRecordings,
|
|
210
196
|
Calls,
|
|
211
197
|
Campaign,
|
|
212
198
|
CampaignBuilder,
|
|
213
199
|
CdrUsageReports,
|
|
214
200
|
Channelzones,
|
|
215
|
-
ClientStateUpdate,
|
|
216
201
|
Conferences,
|
|
217
202
|
Connections,
|
|
218
203
|
CredentialConnections,
|
|
219
|
-
|
|
220
|
-
CsvDownloads,
|
|
221
|
-
CustomerServiceRecord,
|
|
222
|
-
Debugging,
|
|
204
|
+
CustomerServiceRecords,
|
|
223
205
|
DetailRecords,
|
|
224
|
-
|
|
206
|
+
DialogflowConnections,
|
|
225
207
|
DocumentLinks,
|
|
226
208
|
Documents,
|
|
227
209
|
DynamicEmergency,
|
|
228
210
|
DynamicEmergencyAddresses,
|
|
229
211
|
DynamicEmergencyEndpoints,
|
|
230
|
-
|
|
212
|
+
AuditEvents,
|
|
231
213
|
ExternalConnections,
|
|
232
214
|
FaxApplications,
|
|
233
215
|
Faxes,
|
|
234
216
|
FqdnConnections,
|
|
235
217
|
Fqdns,
|
|
236
218
|
GlobalIps,
|
|
237
|
-
InboundChannels,
|
|
238
219
|
InventoryCoverage,
|
|
239
|
-
InventoryLevel,
|
|
240
|
-
IpAddresses,
|
|
241
220
|
IpConnections,
|
|
242
|
-
IpRanges,
|
|
243
221
|
Ips,
|
|
244
222
|
ManagedAccounts,
|
|
245
223
|
MdrDetailReports,
|
|
246
224
|
MdrUsageReports,
|
|
247
225
|
MediaStorageApi,
|
|
248
226
|
Messages,
|
|
249
|
-
MessagesAlphanumericSenderId,
|
|
250
|
-
MessagingHostedNumber,
|
|
251
227
|
MessagingHostedNumberOrders,
|
|
252
228
|
MessagingHostedNumbers,
|
|
253
|
-
MessagingPhoneNumbers,
|
|
254
229
|
MessagingProfileMetrics,
|
|
255
230
|
MessagingProfiles,
|
|
256
|
-
MessagingSenderIds,
|
|
257
231
|
MessagingShortCodes,
|
|
258
232
|
MessagingTollfreeVerification,
|
|
259
233
|
MessagingUrlDomains,
|
|
260
234
|
MobileNetworkOperators,
|
|
261
235
|
MobileOperatorNetworks,
|
|
262
236
|
Networks,
|
|
237
|
+
NotificationEvents,
|
|
263
238
|
NumberBackgroundJobs,
|
|
264
239
|
NumberLookup,
|
|
265
240
|
NumberOrderDocuments,
|
|
@@ -282,6 +257,9 @@ export function createTelnyx() {
|
|
|
282
257
|
PhoneNumbersInboundChannels,
|
|
283
258
|
PhoneNumbersMessaging,
|
|
284
259
|
PhoneNumbersVoice,
|
|
260
|
+
PhoneNumbersCsvDownloads,
|
|
261
|
+
PortingEvents,
|
|
262
|
+
PortoutEvents,
|
|
285
263
|
PortabilityChecks,
|
|
286
264
|
PortingOrders,
|
|
287
265
|
PortingPhoneNumbers,
|
|
@@ -289,7 +267,6 @@ export function createTelnyx() {
|
|
|
289
267
|
PresignedObjectUrls,
|
|
290
268
|
PrivateWirelessGateways,
|
|
291
269
|
PublicInternetGateways,
|
|
292
|
-
PublicKey,
|
|
293
270
|
PushCredentials,
|
|
294
271
|
Queues,
|
|
295
272
|
RecordingsCommands,
|
|
@@ -317,7 +294,6 @@ export function createTelnyx() {
|
|
|
317
294
|
StorageBuckets,
|
|
318
295
|
TelephonyCredentials,
|
|
319
296
|
TexmlApplications,
|
|
320
|
-
UpdateClientState,
|
|
321
297
|
Verifications,
|
|
322
298
|
VerifiedNumbers,
|
|
323
299
|
Verify,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {paths} from './TelnyxAPI.js';
|
|
2
|
+
|
|
3
|
+
declare module 'telnyx' {
|
|
4
|
+
namespace Telnyx {
|
|
5
|
+
type AuditEventsListParams =
|
|
6
|
+
paths['/audit_events']['get']['parameters']['query'];
|
|
7
|
+
|
|
8
|
+
type AuditEventsListResponse =
|
|
9
|
+
paths['/audit_events']['get']['responses']['200']['content']['application/json'];
|
|
10
|
+
|
|
11
|
+
class AuditEventsResource {
|
|
12
|
+
list(
|
|
13
|
+
params?: AuditEventsListParams,
|
|
14
|
+
options?: RequestOptions,
|
|
15
|
+
): Promise<Telnyx.Response<Telnyx.AuditEventsListResponse>>;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -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.CallControlApplicationsRetrieveResponse &
|
|
74
|
+
NestedResponseData<
|
|
75
|
+
CallControlApplicationsRetrieveResponse['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
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {paths} from './TelnyxAPI.js';
|
|
2
|
+
|
|
3
|
+
declare module 'telnyx' {
|
|
4
|
+
namespace Telnyx {
|
|
5
|
+
type CdrUsageReportsSyncParams =
|
|
6
|
+
paths['/reports/cdr_usage_reports/sync']['get']['parameters']['query'];
|
|
7
|
+
|
|
8
|
+
type CdrUsageReportsSyncResponse =
|
|
9
|
+
paths['/reports/cdr_usage_reports/sync']['get']['responses']['200']['content']['application/json'];
|
|
10
|
+
|
|
11
|
+
class CdrUsageReportsResource {
|
|
12
|
+
retrieveUsageReportSync(
|
|
13
|
+
params?: CdrUsageReportsSyncParams,
|
|
14
|
+
options?: RequestOptions,
|
|
15
|
+
): Promise<Telnyx.Response<Telnyx.CdrUsageReportsSyncResponse>>;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import {paths} from './TelnyxAPI.js';
|
|
2
|
+
|
|
3
|
+
declare module 'telnyx' {
|
|
4
|
+
namespace Telnyx {
|
|
5
|
+
type ChannelzonesListParams =
|
|
6
|
+
paths['/channel_zones']['get']['parameters']['query'];
|
|
7
|
+
|
|
8
|
+
type ChannelzonesListResponse =
|
|
9
|
+
paths['/channel_zones']['get']['responses']['200']['content']['application/json'];
|
|
10
|
+
|
|
11
|
+
type ChannelzonesUpdateId =
|
|
12
|
+
paths['/channel_zones/{channel_zone_id}']['patch']['parameters']['path']['channel_zone_id'];
|
|
13
|
+
|
|
14
|
+
type ChannelzonesUpdateParams =
|
|
15
|
+
paths['/channel_zones/{channel_zone_id}']['patch']['requestBody']['content']['application/json'];
|
|
16
|
+
|
|
17
|
+
type ChannelzonesUpdateResponse =
|
|
18
|
+
paths['/channel_zones/{channel_zone_id}']['patch']['responses']['200']['content']['application/json'];
|
|
19
|
+
|
|
20
|
+
type ChannelzonesRetrieveId =
|
|
21
|
+
paths['/channel_zones/{channel_zone_id}']['get']['parameters']['path']['channel_zone_id'];
|
|
22
|
+
|
|
23
|
+
type ChannelzonesRetrieveParams =
|
|
24
|
+
paths['/channel_zones/{channel_zone_id}']['get']['parameters']['query'];
|
|
25
|
+
|
|
26
|
+
type ChannelzonesRetrieveResponse =
|
|
27
|
+
paths['/channel_zones/{channel_zone_id}']['get']['responses']['200']['content']['application/json'];
|
|
28
|
+
|
|
29
|
+
type ChannelzonesPhoneNumbersListId =
|
|
30
|
+
paths['/channel_zones/{channel_zone_id}/channel_zone_phone_numbers']['get']['parameters']['path']['channel_zone_id'];
|
|
31
|
+
|
|
32
|
+
type ChannelzonesPhoneNumbersListParams =
|
|
33
|
+
paths['/channel_zones/{channel_zone_id}/channel_zone_phone_numbers']['get']['parameters']['query'];
|
|
34
|
+
|
|
35
|
+
type ChannelzonesPhoneNumbersListResponse =
|
|
36
|
+
paths['/channel_zones/{channel_zone_id}/channel_zone_phone_numbers']['get']['responses']['200']['content']['application/json'];
|
|
37
|
+
|
|
38
|
+
type ChannelzonesPhoneNumbersCreatePathParams =
|
|
39
|
+
paths['/channel_zones/{channel_zone_id}/channel_zone_phone_numbers']['post']['parameters']['path'];
|
|
40
|
+
|
|
41
|
+
type ChannelzonesPhoneNumbersCreateParams =
|
|
42
|
+
paths['/channel_zones/{channel_zone_id}/channel_zone_phone_numbers']['post']['requestBody']['content']['application/json'];
|
|
43
|
+
|
|
44
|
+
type ChannelzonesPhoneNumbersCreateResponse =
|
|
45
|
+
paths['/channel_zones/{channel_zone_id}/channel_zone_phone_numbers']['post']['responses']['200']['content']['application/json'];
|
|
46
|
+
|
|
47
|
+
type ChannelzonesPhoneNumbersDeletePathParams =
|
|
48
|
+
paths['/channel_zones/{channel_zone_id}/channel_zone_phone_numbers/{phone_number}']['delete']['parameters']['path'];
|
|
49
|
+
|
|
50
|
+
type ChannelzonesPhoneNumbersDeleteResponse =
|
|
51
|
+
paths['/channel_zones/{channel_zone_id}/channel_zone_phone_numbers/{phone_number}']['delete']['responses']['200']['content'];
|
|
52
|
+
|
|
53
|
+
class ChannelzonesResource {
|
|
54
|
+
list(
|
|
55
|
+
params?: ChannelzonesListParams,
|
|
56
|
+
options?: RequestOptions,
|
|
57
|
+
): Promise<Telnyx.Response<Telnyx.ChannelzonesListResponse>>;
|
|
58
|
+
|
|
59
|
+
update(
|
|
60
|
+
id: ChannelzonesUpdateId,
|
|
61
|
+
params: ChannelzonesUpdateParams,
|
|
62
|
+
options?: RequestOptions,
|
|
63
|
+
): Promise<Telnyx.Response<Telnyx.ChannelzonesUpdateResponse>>;
|
|
64
|
+
|
|
65
|
+
retrieve(
|
|
66
|
+
id: ChannelzonesRetrieveId,
|
|
67
|
+
options?: RequestOptions,
|
|
68
|
+
): Promise<Telnyx.Response<Telnyx.ChannelzonesRetrieveResponse>>;
|
|
69
|
+
|
|
70
|
+
listPhoneNumbers(
|
|
71
|
+
id: ChannelzonesPhoneNumbersListId,
|
|
72
|
+
params?: ChannelzonesPhoneNumbersListParams,
|
|
73
|
+
options?: RequestOptions,
|
|
74
|
+
): Promise<Telnyx.Response<Telnyx.ChannelzonesPhoneNumbersListResponse>>;
|
|
75
|
+
|
|
76
|
+
createPhoneNumber(
|
|
77
|
+
pathParams: ChannelzonesPhoneNumbersCreatePathParams,
|
|
78
|
+
params: ChannelzonesPhoneNumbersCreateParams,
|
|
79
|
+
options?: RequestOptions,
|
|
80
|
+
): Promise<
|
|
81
|
+
Telnyx.Response<Telnyx.ChannelzonesPhoneNumbersCreateResponse>
|
|
82
|
+
>;
|
|
83
|
+
|
|
84
|
+
delPhoneNumber(
|
|
85
|
+
pathParams: ChannelzonesPhoneNumbersDeletePathParams,
|
|
86
|
+
options?: RequestOptions,
|
|
87
|
+
): Promise<
|
|
88
|
+
Telnyx.Response<Telnyx.ChannelzonesPhoneNumbersDeleteResponse>
|
|
89
|
+
>;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|