telnyx 2.0.0-alpha.4 → 2.0.0-alpha.6

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.
Files changed (67) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/VERSION +1 -1
  3. package/dist/resources/AuditEvents.js +5 -0
  4. package/dist/resources/AutorespConfigs.js +1 -1
  5. package/dist/resources/Calls.js +5 -0
  6. package/dist/resources/CustomerServiceRecords.js +15 -0
  7. package/dist/resources/DetailRecords.js +1 -1
  8. package/dist/resources/DialogflowConnections.js +26 -0
  9. package/dist/resources/ExternalConnections.js +44 -40
  10. package/dist/resources/FaxApplications.js +0 -1
  11. package/dist/resources/Faxes.js +0 -1
  12. package/dist/resources/FqdnConnections.js +0 -1
  13. package/dist/resources/Fqdns.js +0 -1
  14. package/dist/resources/InventoryCoverage.js +4 -0
  15. package/dist/resources/Messages.js +20 -4
  16. package/dist/resources/MessagingHostedNumbers.js +2 -2
  17. package/dist/resources/NotificationEvents.js +5 -0
  18. package/dist/resources/OutboundVoiceProfiles.js +1 -9
  19. package/dist/resources/PhoneNumbersCsvDownloads.js +5 -0
  20. package/dist/resources/PortingEvents.js +11 -0
  21. package/dist/resources/PortoutEvents.js +11 -0
  22. package/dist/resources/RegulatoryRequirements.js +1 -1
  23. package/dist/resources/VerifyProfiles.js +2 -14
  24. package/dist/telnyx.js +14 -32
  25. package/dist/types/AuditEventsResource.d.ts +18 -0
  26. package/dist/types/CallControlApplicationsResource.d.ts +2 -2
  27. package/dist/types/CustomerServiceRecordsResource.d.ts +55 -0
  28. package/dist/types/DetailRecordsResource.d.ts +18 -0
  29. package/dist/types/DialogflowConnectionsResource.d.ts +61 -0
  30. package/dist/types/DynamicEmergencyAddressesResource.d.ts +61 -0
  31. package/dist/types/DynamicEmergencyEndpointsResource.d.ts +58 -0
  32. package/dist/types/DynamicEmergencyResource.d.ts +8 -0
  33. package/dist/types/ExternalConnectionsResource.d.ts +303 -0
  34. package/dist/types/FaxApplicationsResource.d.ts +93 -0
  35. package/dist/types/FaxesResource.d.ts +82 -0
  36. package/dist/types/FqdnConnectionsResource.d.ts +93 -0
  37. package/dist/types/FqdnsResource.d.ts +94 -0
  38. package/dist/types/InventoryCoverageResource.d.ts +23 -0
  39. package/dist/types/IpConnectionsResource.d.ts +93 -0
  40. package/dist/types/IpsResource.d.ts +72 -0
  41. package/dist/types/MessagesResource.d.ts +103 -0
  42. package/dist/types/NotificationEventsResource.d.ts +18 -0
  43. package/dist/types/PhoneNumbersCsvDownloadsResource.d.ts +44 -0
  44. package/dist/types/PortingEventsResource.d.ts +43 -0
  45. package/dist/types/PortoutEventsResource.d.ts +43 -0
  46. package/dist/types/StorageBucketsResource.d.ts +8 -11
  47. package/dist/types/TelnyxAPI.d.ts +2 -3
  48. package/dist/types/TexmlApplicationsResource.d.ts +72 -0
  49. package/dist/types/Webhooks.d.ts +8 -8
  50. package/dist/types/index.d.ts +45 -2
  51. package/package.json +1 -1
  52. package/dist/resources/ClientStateUpdate.js +0 -5
  53. package/dist/resources/CsvDownloads.js +0 -15
  54. package/dist/resources/CustomerServiceRecord.js +0 -18
  55. package/dist/resources/Debugging.js +0 -10
  56. package/dist/resources/DialogflowIntegration.js +0 -10
  57. package/dist/resources/Events.js +0 -5
  58. package/dist/resources/InboundChannels.js +0 -10
  59. package/dist/resources/InventoryLevel.js +0 -10
  60. package/dist/resources/IpAddresses.js +0 -15
  61. package/dist/resources/IpRanges.js +0 -15
  62. package/dist/resources/MessagesAlphanumericSenderId.js +0 -5
  63. package/dist/resources/MessagingHostedNumber.js +0 -25
  64. package/dist/resources/MessagingPhoneNumbers.js +0 -5
  65. package/dist/resources/MessagingSenderIds.js +0 -5
  66. package/dist/resources/PublicKey.js +0 -8
  67. package/dist/resources/UpdateClientState.js +0 -14
package/CHANGELOG.md CHANGED
@@ -2,6 +2,29 @@
2
2
 
3
3
  ## v2
4
4
 
5
+ ### v2.0.0-alpha.6
6
+
7
+ - Update optional types on `Webhooks`
8
+ - Make optional types on `Fqdns`, `Ips`, `Messages` and `StorageBuckets` resources more strict
9
+
10
+ ### v2.0.0-alpha.5
11
+
12
+ - Remove `ClientStateUpdate` resource
13
+ - Remove `MessagesAlphanumericSenderId` resource
14
+ - Remove `MessagingHostedNumber` resource
15
+ - Remove `MessagingPhoneNumbers` resource
16
+ - Remove `MessagingSenderIds` resource
17
+ - Remove `PublicKey` resource
18
+ - Remove `UpdateClientState` resource
19
+ - Remove `Debugging` dupe resource
20
+ - Update syntax on `Events` resources
21
+ - Update `ExternalConnections` stale resource
22
+ - Update `Messages` stale resource
23
+ - Update `Ip`s stale resources
24
+ - Update `AutorespConfigs` stale resource
25
+ - Update `DetailRecords` stale resource
26
+ - Update `InventoryCoverage` stale resource
27
+
5
28
  ### v2.0.0-alpha.4
6
29
 
7
30
  - Add `Addresses` example
package/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.0-alpha.4
1
+ 2.0.0-alpha.6
@@ -0,0 +1,5 @@
1
+ import TelnyxResource from '../TelnyxResource';
2
+ export const AuditEvents = TelnyxResource.extend({
3
+ path: 'audit_events',
4
+ includeBasic: ['list'],
5
+ });
@@ -5,7 +5,7 @@ export const AutorespConfigs = TelnyxResource.extend({
5
5
  includeBasic: ['del', 'list', 'create', 'retrieve'],
6
6
  update: telnyxMethod({
7
7
  method: 'PUT',
8
- path: '/messaging_profiles/{profile_id}/autoresp_configs/{autoresp_cfg_id}',
8
+ path: '/{autoresp_cfg_id}',
9
9
  urlParams: ['profile_id', 'autoresp_cfg_id'],
10
10
  }),
11
11
  });
@@ -60,5 +60,10 @@ export const Calls = TelnyxResource.extend({
60
60
  return utils.addResourceToResponseData(response, telnyx, 'calls', utils.createNestedMethods(telnyxMethod, CALL_COMMANDS, getSpec(response.data.call_control_id)));
61
61
  },
62
62
  }),
63
+ updateClientState: telnyxMethod({
64
+ path: '/{call_control_id}/actions/client_state_update',
65
+ urlParams: ['call_control_id'],
66
+ method: 'PUT',
67
+ }),
63
68
  instanceMethods: utils.createNestedMethods(telnyxMethod, CALL_COMMANDS, getSpec()),
64
69
  });
@@ -0,0 +1,15 @@
1
+ import TelnyxResource from '../TelnyxResource';
2
+ const telnyxMethod = TelnyxResource.method;
3
+ export const CustomerServiceRecords = TelnyxResource.extend({
4
+ path: 'customer_service_records',
5
+ includeBasic: ['list', 'create'],
6
+ retrieve: telnyxMethod({
7
+ method: 'GET',
8
+ path: '/{customer_service_record_id}',
9
+ urlParams: ['customer_service_record_id'],
10
+ }),
11
+ verifyPhoneNumbersCoverage: telnyxMethod({
12
+ method: 'POST',
13
+ path: '/phone_number_coverages',
14
+ }),
15
+ });
@@ -2,7 +2,7 @@ import TelnyxResource from '../TelnyxResource';
2
2
  const telnyxMethod = TelnyxResource.method;
3
3
  export const DetailRecords = TelnyxResource.extend({
4
4
  path: 'detail_records',
5
- query: telnyxMethod({
5
+ search: telnyxMethod({
6
6
  method: 'GET',
7
7
  methodType: 'list',
8
8
  }),
@@ -0,0 +1,26 @@
1
+ import TelnyxResource from '../TelnyxResource';
2
+ const telnyxMethod = TelnyxResource.method;
3
+ export const DialogflowConnections = TelnyxResource.extend({
4
+ path: 'dialogflow_connections',
5
+ retrieve: telnyxMethod({
6
+ method: 'GET',
7
+ path: '/{connection_id}',
8
+ urlParams: ['connection_id'],
9
+ methodType: 'retrieve',
10
+ }),
11
+ create: telnyxMethod({
12
+ method: 'POST',
13
+ path: '/{connection_id}',
14
+ urlParams: ['connection_id'],
15
+ }),
16
+ update: telnyxMethod({
17
+ method: 'PUT',
18
+ path: '/{connection_id}',
19
+ urlParams: ['connection_id'],
20
+ }),
21
+ del: telnyxMethod({
22
+ method: 'DELETE',
23
+ path: '/{connection_id}',
24
+ urlParams: ['connection_id'],
25
+ }),
26
+ });
@@ -2,70 +2,74 @@ import TelnyxResource from '../TelnyxResource';
2
2
  const telnyxMethod = TelnyxResource.method;
3
3
  export const ExternalConnections = TelnyxResource.extend({
4
4
  path: 'external_connections',
5
- includeBasic: ['list', 'retrieve', 'create', 'delete'],
6
- GetExternalConnectionUploadsStatus: telnyxMethod({
5
+ includeBasic: ['list', 'retrieve', 'create', 'update', 'del'],
6
+ listLogMessages: telnyxMethod({
7
7
  method: 'GET',
8
- path: '/external_connections/{id}/uploads/status',
8
+ path: '/log/messages',
9
9
  }),
10
- ListExternalConnectionReleases: telnyxMethod({
10
+ retrieveLogMessage: telnyxMethod({
11
11
  method: 'GET',
12
- path: '/external_connections/{id}/releases',
12
+ path: '/log/messages/{id}',
13
+ urlParams: ['id'],
13
14
  }),
14
- RetryUpload: telnyxMethod({
15
- method: 'POST',
16
- path: '/external_connections/{id}/uploads/{ticketIid}/retry',
17
- }),
18
- DeleteExternalConnection: telnyxMethod({
15
+ delLogMessage: telnyxMethod({
19
16
  method: 'DELETE',
20
- path: '/external_connections/{id}',
17
+ path: '/log/messages/{id}',
18
+ urlParams: ['id'],
21
19
  }),
22
- updateLocation: telnyxMethod({
23
- method: 'PATCH',
24
- path: '/v2/external_connections/{id}/locations/{location_id}',
25
- urlParams: ['id', 'location_id'],
26
- }),
27
- DeleteExternalConnectionLogMessage: telnyxMethod({
28
- method: 'DELETE',
29
- path: '/external_connections/log/messages/{id}',
20
+ listCivicAddresses: telnyxMethod({
21
+ method: 'GET',
22
+ path: '/{id}/civic_addresses',
23
+ urlParams: ['id'],
30
24
  }),
31
- GetExternalConnectionCivicAddress: telnyxMethod({
25
+ retrieveCivicAddress: telnyxMethod({
32
26
  method: 'GET',
33
- path: '/external_connections/{id}/civic/addresses/{address_id}',
27
+ path: '/{id}/civic_addresses/{address_id}',
28
+ urlParams: ['id', 'address_id'],
34
29
  }),
35
- ListExternalConnectionPhoneNumbers: telnyxMethod({
30
+ listPhoneNumbers: telnyxMethod({
36
31
  method: 'GET',
37
- path: '/external_connections/{id}/phone/numbers',
32
+ path: '/{id}/phone_numbers',
33
+ urlParams: ['id'],
38
34
  }),
39
- ListExternalConnections: telnyxMethod({
35
+ retrievePhoneNumber: telnyxMethod({
40
36
  method: 'GET',
41
- path: '/external_connections',
37
+ path: '/{id}/phone_numbers/{phone_number_id}',
38
+ urlParams: ['id', 'phone_number_id'],
42
39
  }),
43
- GetExternalConnectionPhoneNumber: telnyxMethod({
40
+ listReleases: telnyxMethod({
44
41
  method: 'GET',
45
- path: '/external_connections/{id}/phone/numbers/{phone_number_id}',
42
+ path: '/{id}/releases',
43
+ urlParams: ['id'],
46
44
  }),
47
- ListCivicAddresses: telnyxMethod({
45
+ retrieveRelease: telnyxMethod({
48
46
  method: 'GET',
49
- path: '/external_connections/{id}/civic_addresses',
47
+ path: '/{id}/releases/{release_id}',
48
+ urlParams: ['id', 'release_id'],
50
49
  }),
51
- ListExternalConnectionLogMessages: telnyxMethod({
50
+ listUploads: telnyxMethod({
52
51
  method: 'GET',
53
- path: '/external_connections/log/messages',
52
+ path: '/{id}/uploads',
53
+ urlParams: ['id'],
54
54
  }),
55
- GetExternalConnectionUpload: telnyxMethod({
55
+ retrieveUpload: telnyxMethod({
56
56
  method: 'GET',
57
- path: '/external_connections/{id}/uploads/{ticket_id}',
57
+ path: '/{id}/uploads/{ticket_id}',
58
+ urlParams: ['id', 'ticket_id'],
58
59
  }),
59
- RefreshExternalConnectionUploads: telnyxMethod({
60
+ refreshUploads: telnyxMethod({
60
61
  method: 'POST',
61
- path: '/external_connections/{id}/uploads/refresh',
62
+ path: '/{id}/uploads/refresh',
63
+ urlParams: ['id'],
62
64
  }),
63
- GetExternalConnectionRelease: telnyxMethod({
65
+ retrieveUploadsStatus: telnyxMethod({
64
66
  method: 'GET',
65
- path: '/external_connections/{id}/releases/{release_id}',
67
+ path: '/{id}/uploads/status',
68
+ urlParams: ['id'],
66
69
  }),
67
- ListExternalConnectionUploads: telnyxMethod({
68
- method: 'GET',
69
- path: '/external_connections/{id}/uploads',
70
+ retryUpload: telnyxMethod({
71
+ method: 'POST',
72
+ path: '/{id}/uploads/{ticket_id}/retry',
73
+ urlParams: ['id', 'ticket_id'],
70
74
  }),
71
75
  });
@@ -24,7 +24,6 @@ export const FaxApplications = 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',
@@ -17,7 +17,6 @@ export const Faxes = TelnyxResource.extend({
17
17
  list: telnyxMethod({
18
18
  method: 'GET',
19
19
  methodType: 'list',
20
- transformResponseData: transformResponseData,
21
20
  }),
22
21
  create: telnyxMethod({
23
22
  method: 'POST',
@@ -24,7 +24,6 @@ export const FqdnConnections = 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',
@@ -24,7 +24,6 @@ export const Fqdns = 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',
@@ -2,6 +2,10 @@ import TelnyxResource from '../TelnyxResource';
2
2
  const telnyxMethod = TelnyxResource.method;
3
3
  export const InventoryCoverage = TelnyxResource.extend({
4
4
  path: 'inventory_coverage',
5
+ list: telnyxMethod({
6
+ method: 'GET',
7
+ methodType: 'list',
8
+ }),
5
9
  request: telnyxMethod({
6
10
  method: 'GET',
7
11
  methodType: 'list',
@@ -1,9 +1,25 @@
1
1
  import TelnyxResource from '../TelnyxResource';
2
- import { MessagesAlphanumericSenderId } from './MessagesAlphanumericSenderId';
2
+ const telnyxMethod = TelnyxResource.method;
3
3
  export const Messages = TelnyxResource.extend({
4
4
  path: 'messages',
5
5
  includeBasic: ['create', 'retrieve'],
6
- nestedResources: {
7
- AlphanumericSenderId: MessagesAlphanumericSenderId,
8
- },
6
+ send: telnyxMethod({
7
+ method: 'POST',
8
+ }),
9
+ sendGroupMms: telnyxMethod({
10
+ method: 'POST',
11
+ path: '/group_mms',
12
+ }),
13
+ sendLongCode: telnyxMethod({
14
+ method: 'POST',
15
+ path: '/long_code',
16
+ }),
17
+ sendNumberPool: telnyxMethod({
18
+ method: 'POST',
19
+ path: '/number_pool',
20
+ }),
21
+ sendShortCode: telnyxMethod({
22
+ method: 'POST',
23
+ path: '/short_code',
24
+ }),
9
25
  });
@@ -1,5 +1,5 @@
1
1
  import TelnyxResource from '../TelnyxResource';
2
2
  export const MessagingHostedNumbers = TelnyxResource.extend({
3
- path: '../id/actions/file_upload',
4
- includeBasic: ['retrieve'],
3
+ path: 'messaging_hosted_numbers',
4
+ includeBasic: ['del'],
5
5
  });
@@ -0,0 +1,5 @@
1
+ import TelnyxResource from '../TelnyxResource';
2
+ export const NotificationEvents = TelnyxResource.extend({
3
+ path: 'notification_events',
4
+ includeBasic: ['list'],
5
+ });
@@ -21,11 +21,7 @@ function transformResponseData(response, telnyx) {
21
21
  }
22
22
  export const OutboundVoiceProfiles = TelnyxResource.extend({
23
23
  path: 'outbound_voice_profiles',
24
- list: telnyxMethod({
25
- method: 'GET',
26
- methodType: 'list',
27
- transformResponseData: transformResponseData,
28
- }),
24
+ includeBasic: ['list', 'update', 'del'],
29
25
  create: telnyxMethod({
30
26
  method: 'POST',
31
27
  transformResponseData: transformResponseData,
@@ -36,8 +32,4 @@ export const OutboundVoiceProfiles = TelnyxResource.extend({
36
32
  urlParams: ['id'],
37
33
  transformResponseData: transformResponseData,
38
34
  }),
39
- del: telnyxMethod({
40
- method: 'DELETE',
41
- path: '/{id}',
42
- }),
43
35
  });
@@ -0,0 +1,5 @@
1
+ import TelnyxResource from '../TelnyxResource';
2
+ export const PhoneNumbersCsvDownloads = TelnyxResource.extend({
3
+ path: '/phone_numbers/csv_downloads',
4
+ includeBasic: ['list', 'create', 'retrieve'],
5
+ });
@@ -0,0 +1,11 @@
1
+ import TelnyxResource from '../TelnyxResource';
2
+ const telnyxMethod = TelnyxResource.method;
3
+ export const PortingEvents = TelnyxResource.extend({
4
+ path: 'porting/events',
5
+ includeBasic: ['list', 'retrieve'],
6
+ republish: telnyxMethod({
7
+ method: 'POST',
8
+ path: '/{id}/republish',
9
+ urlParams: ['id'],
10
+ }),
11
+ });
@@ -0,0 +1,11 @@
1
+ import TelnyxResource from '../TelnyxResource';
2
+ const telnyxMethod = TelnyxResource.method;
3
+ export const PortoutEvents = TelnyxResource.extend({
4
+ path: 'portout/events',
5
+ includeBasic: ['list', 'retrieve'],
6
+ republish: telnyxMethod({
7
+ method: 'POST',
8
+ path: '/{id}/republish',
9
+ urlParams: ['id'],
10
+ }),
11
+ });
@@ -1,5 +1,5 @@
1
1
  import TelnyxResource from '../TelnyxResource';
2
2
  export const RegulatoryRequirements = TelnyxResource.extend({
3
3
  path: 'regulatory_requirements',
4
- includeBasic: ['list', 'retrieve'],
4
+ includeBasic: ['list'],
5
5
  });
@@ -10,15 +10,8 @@ function transformResponseData(response, telnyx) {
10
10
  });
11
11
  }
12
12
  export const VerifyProfiles = TelnyxResource.extend({
13
- path: 'sim_cards',
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
@@ -35,53 +35,44 @@ import { Campaign } from './resources/Campaign';
35
35
  import { CampaignBuilder } from './resources/CampaignBuilder';
36
36
  import { CdrUsageReports } from './resources/CdrUsageReports';
37
37
  import { Channelzones } from './resources/Channelzones';
38
- import { ClientStateUpdate } from './resources/ClientStateUpdate';
39
38
  import { Conferences } from './resources/Conferences';
40
39
  import { Connections } from './resources/Connections';
41
40
  import { CredentialConnections } from './resources/CredentialConnections';
42
- import { CsvDownloads } from './resources/CsvDownloads';
43
- import { CustomerServiceRecord } from './resources/CustomerServiceRecord';
44
- import { Debugging } from './resources/Debugging';
41
+ import { PhoneNumbersCsvDownloads } from './resources/PhoneNumbersCsvDownloads';
42
+ import { CustomerServiceRecords } from './resources/CustomerServiceRecords';
45
43
  import { DetailRecords } from './resources/DetailRecords';
46
- import { DialogflowIntegration } from './resources/DialogflowIntegration';
44
+ import { DialogflowConnections } from './resources/DialogflowConnections';
47
45
  import { DocumentLinks } from './resources/DocumentLinks';
48
46
  import { Documents } from './resources/Documents';
49
47
  import { DynamicEmergency } from './resources/DynamicEmergency';
50
48
  import { DynamicEmergencyAddresses } from './resources/DynamicEmergencyAddresses';
51
49
  import { DynamicEmergencyEndpoints } from './resources/DynamicEmergencyEndpoints';
52
- import { Events } from './resources/Events';
50
+ import { AuditEvents } from './resources/AuditEvents';
53
51
  import { ExternalConnections } from './resources/ExternalConnections';
54
52
  import { FaxApplications } from './resources/FaxApplications';
55
53
  import { Faxes } from './resources/Faxes';
56
54
  import { FqdnConnections } from './resources/FqdnConnections';
57
55
  import { Fqdns } from './resources/Fqdns';
58
56
  import { GlobalIps } from './resources/GlobalIps';
59
- import { InboundChannels } from './resources/InboundChannels';
60
57
  import { InventoryCoverage } from './resources/InventoryCoverage';
61
- import { InventoryLevel } from './resources/InventoryLevel';
62
- import { IpAddresses } from './resources/IpAddresses';
63
58
  import { IpConnections } from './resources/IpConnections';
64
- import { IpRanges } from './resources/IpRanges';
65
59
  import { Ips } from './resources/Ips';
66
60
  import { ManagedAccounts } from './resources/ManagedAccounts';
67
61
  import { MdrDetailReports } from './resources/MdrDetailReports';
68
62
  import { MdrUsageReports } from './resources/MdrUsageReports';
69
63
  import { MediaStorageApi } from './resources/MediaStorageApi';
70
64
  import { Messages } from './resources/Messages';
71
- import { MessagesAlphanumericSenderId } from './resources/MessagesAlphanumericSenderId';
72
- import { MessagingHostedNumber } from './resources/MessagingHostedNumber';
73
65
  import { MessagingHostedNumberOrders } from './resources/MessagingHostedNumberOrders';
74
66
  import { MessagingHostedNumbers } from './resources/MessagingHostedNumbers';
75
- import { MessagingPhoneNumbers } from './resources/MessagingPhoneNumbers';
76
67
  import { MessagingProfileMetrics } from './resources/MessagingProfileMetrics';
77
68
  import { MessagingProfiles } from './resources/MessagingProfiles';
78
- import { MessagingSenderIds } from './resources/MessagingSenderIds';
79
69
  import { MessagingShortCodes } from './resources/MessagingShortCodes';
80
70
  import { MessagingTollfreeVerification } from './resources/MessagingTollfreeVerification';
81
71
  import { MessagingUrlDomains } from './resources/MessagingUrlDomains';
82
72
  import { MobileNetworkOperators } from './resources/MobileNetworkOperators';
83
73
  import { MobileOperatorNetworks } from './resources/MobileOperatorNetworks';
84
74
  import { Networks } from './resources/Networks';
75
+ import { NotificationEvents } from './resources/NotificationEvents';
85
76
  import { NumberBackgroundJobs } from './resources/NumberBackgroundJobs';
86
77
  import { NumberLookup } from './resources/NumberLookup';
87
78
  import { NumberOrderDocuments } from './resources/NumberOrderDocuments';
@@ -105,13 +96,14 @@ import { PhoneNumbersInboundChannels } from './resources/PhoneNumbersInboundChan
105
96
  import { PhoneNumbersMessaging } from './resources/PhoneNumbersMessaging';
106
97
  import { PhoneNumbersVoice } from './resources/PhoneNumbersVoice';
107
98
  import { PortabilityChecks } from './resources/PortabilityChecks';
99
+ import { PortingEvents } from './resources/PortingEvents';
100
+ import { PortoutEvents } from './resources/PortoutEvents';
108
101
  import { PortingOrders } from './resources/PortingOrders';
109
102
  import { PortingPhoneNumbers } from './resources/PortingPhoneNumbers';
110
103
  import { PortoutRequests } from './resources/PortoutRequests';
111
104
  import { PresignedObjectUrls } from './resources/PresignedObjectUrls';
112
105
  import { PrivateWirelessGateways } from './resources/PrivateWirelessGateways';
113
106
  import { PublicInternetGateways } from './resources/PublicInternetGateways';
114
- import { PublicKey } from './resources/PublicKey';
115
107
  import { PushCredentials } from './resources/PushCredentials';
116
108
  import { Queues } from './resources/Queues';
117
109
  import { RecordingsCommands } from './resources/RecordingsCommands';
@@ -139,7 +131,6 @@ import { SimCards } from './resources/SimCards';
139
131
  import { StorageBuckets } from './resources/StorageBuckets';
140
132
  import { TelephonyCredentials } from './resources/TelephonyCredentials';
141
133
  import { TexmlApplications } from './resources/TexmlApplications';
142
- import { UpdateClientState } from './resources/UpdateClientState';
143
134
  import { Verifications } from './resources/Verifications';
144
135
  import { VerifiedNumbers } from './resources/VerifiedNumbers';
145
136
  import { Verify } from './resources/Verify';
@@ -207,53 +198,43 @@ export function createTelnyx() {
207
198
  CampaignBuilder,
208
199
  CdrUsageReports,
209
200
  Channelzones,
210
- ClientStateUpdate,
211
201
  Conferences,
212
202
  Connections,
213
203
  CredentialConnections,
214
- CsvDownloads,
215
- CustomerServiceRecord,
216
- Debugging,
204
+ CustomerServiceRecords,
217
205
  DetailRecords,
218
- DialogflowIntegration,
206
+ DialogflowConnections,
219
207
  DocumentLinks,
220
208
  Documents,
221
209
  DynamicEmergency,
222
210
  DynamicEmergencyAddresses,
223
211
  DynamicEmergencyEndpoints,
224
- Events,
212
+ AuditEvents,
225
213
  ExternalConnections,
226
214
  FaxApplications,
227
215
  Faxes,
228
216
  FqdnConnections,
229
217
  Fqdns,
230
218
  GlobalIps,
231
- InboundChannels,
232
219
  InventoryCoverage,
233
- InventoryLevel,
234
- IpAddresses,
235
220
  IpConnections,
236
- IpRanges,
237
221
  Ips,
238
222
  ManagedAccounts,
239
223
  MdrDetailReports,
240
224
  MdrUsageReports,
241
225
  MediaStorageApi,
242
226
  Messages,
243
- MessagesAlphanumericSenderId,
244
- MessagingHostedNumber,
245
227
  MessagingHostedNumberOrders,
246
228
  MessagingHostedNumbers,
247
- MessagingPhoneNumbers,
248
229
  MessagingProfileMetrics,
249
230
  MessagingProfiles,
250
- MessagingSenderIds,
251
231
  MessagingShortCodes,
252
232
  MessagingTollfreeVerification,
253
233
  MessagingUrlDomains,
254
234
  MobileNetworkOperators,
255
235
  MobileOperatorNetworks,
256
236
  Networks,
237
+ NotificationEvents,
257
238
  NumberBackgroundJobs,
258
239
  NumberLookup,
259
240
  NumberOrderDocuments,
@@ -276,6 +257,9 @@ export function createTelnyx() {
276
257
  PhoneNumbersInboundChannels,
277
258
  PhoneNumbersMessaging,
278
259
  PhoneNumbersVoice,
260
+ PhoneNumbersCsvDownloads,
261
+ PortingEvents,
262
+ PortoutEvents,
279
263
  PortabilityChecks,
280
264
  PortingOrders,
281
265
  PortingPhoneNumbers,
@@ -283,7 +267,6 @@ export function createTelnyx() {
283
267
  PresignedObjectUrls,
284
268
  PrivateWirelessGateways,
285
269
  PublicInternetGateways,
286
- PublicKey,
287
270
  PushCredentials,
288
271
  Queues,
289
272
  RecordingsCommands,
@@ -311,7 +294,6 @@ export function createTelnyx() {
311
294
  StorageBuckets,
312
295
  TelephonyCredentials,
313
296
  TexmlApplications,
314
- UpdateClientState,
315
297
  Verifications,
316
298
  VerifiedNumbers,
317
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
+ }
@@ -70,9 +70,9 @@ declare module 'telnyx' {
70
70
  options?: RequestOptions,
71
71
  ): Promise<
72
72
  Telnyx.Response<
73
- Telnyx.CallControlApplicationsCreateResponse &
73
+ Telnyx.CallControlApplicationsRetrieveResponse &
74
74
  NestedResponseData<
75
- CallControlApplicationsCreateResponse['data'],
75
+ CallControlApplicationsRetrieveResponse['data'],
76
76
  CallControlApplicationsNestedMethods
77
77
  >
78
78
  >