telnyx 2.0.0-alpha.3 → 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.
@@ -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
+ }
@@ -0,0 +1,202 @@
1
+ import {paths} from './TelnyxAPI.js';
2
+
3
+ declare module 'telnyx' {
4
+ namespace Telnyx {
5
+ type ConferencesListParams =
6
+ paths['/conferences']['get']['parameters']['query'];
7
+
8
+ type ConferencesListResponse =
9
+ paths['/conferences']['get']['responses']['200']['content']['application/json'];
10
+
11
+ type ConferencesRetrieveId =
12
+ paths['/conferences/{id}']['get']['parameters']['path']['id'];
13
+
14
+ type ConferencesRetrieveParams =
15
+ paths['/conferences/{id}']['get']['parameters']['query'];
16
+
17
+ type ConferencesRetrieveResponse =
18
+ paths['/conferences/{id}']['get']['responses']['200']['content']['application/json'];
19
+
20
+ type ConferencesCreateParams =
21
+ paths['/conferences']['post']['requestBody']['content']['application/json'];
22
+
23
+ type ConferencesCreateResponse =
24
+ paths['/conferences']['post']['responses']['200']['content']['application/json'];
25
+
26
+ type ConferencesJoinParams =
27
+ paths['/conferences/{id}/actions/join']['post']['requestBody']['content']['application/json'];
28
+ type ConferencesMuteParams =
29
+ paths['/conferences/{id}/actions/mute']['post']['responses']['200']['content']['application/json'];
30
+ type ConferencesUnmuteParams =
31
+ paths['/conferences/{id}/actions/unmute']['post']['responses']['200']['content']['application/json'];
32
+ type ConferencesHoldParams =
33
+ paths['/conferences/{id}/actions/hold']['post']['responses']['200']['content']['application/json'];
34
+ type ConferencesUnholdParams =
35
+ paths['/conferences/{id}/actions/unhold']['post']['responses']['200']['content']['application/json'];
36
+ type ConferencesSpeakParams =
37
+ paths['/conferences/{id}/actions/speak']['post']['responses']['200']['content']['application/json'];
38
+ type ConferencesPlayParams =
39
+ paths['/conferences/{id}/actions/play']['post']['responses']['200']['content']['application/json'];
40
+ type ConferencesStopParams =
41
+ paths['/conferences/{id}/actions/stop']['post']['responses']['200']['content']['application/json'];
42
+ type ConferencesRecordStartParams =
43
+ paths['/conferences/{id}/actions/record_start']['post']['responses']['200']['content']['application/json'];
44
+ type ConferencesRecordStopParams =
45
+ paths['/conferences/{id}/actions/record_stop']['post']['responses']['200']['content']['application/json'];
46
+ type ConferencesRecordResumeParams =
47
+ paths['/conferences/{id}/actions/record_resume']['post']['responses']['200']['content']['application/json'];
48
+ type ConferencesRecordPauseParams =
49
+ paths['/conferences/{id}/actions/record_pause']['post']['responses']['200']['content']['application/json'];
50
+ type ConferencesUpdateParams =
51
+ paths['/conferences/{id}/actions/update']['post']['responses']['200']['content']['application/json'];
52
+ type ConferencesLeaveParams =
53
+ paths['/conferences/{id}/actions/leave']['post']['responses']['200']['content']['application/json'];
54
+
55
+ type ConferencesJoinResponse =
56
+ paths['/conferences/{id}/actions/join']['post']['responses']['200']['content']['application/json'];
57
+ type ConferencesMuteResponse =
58
+ paths['/conferences/{id}/actions/mute']['post']['responses']['200']['content']['application/json'];
59
+ type ConferencesUnmuteResponse =
60
+ paths['/conferences/{id}/actions/unmute']['post']['responses']['200']['content']['application/json'];
61
+ type ConferencesHoldResponse =
62
+ paths['/conferences/{id}/actions/hold']['post']['responses']['200']['content']['application/json'];
63
+ type ConferencesUnholdResponse =
64
+ paths['/conferences/{id}/actions/unhold']['post']['responses']['200']['content']['application/json'];
65
+ type ConferencesSpeakResponse =
66
+ paths['/conferences/{id}/actions/speak']['post']['responses']['200']['content']['application/json'];
67
+ type ConferencesPlayResponse =
68
+ paths['/conferences/{id}/actions/play']['post']['responses']['200']['content']['application/json'];
69
+ type ConferencesStopResponse =
70
+ paths['/conferences/{id}/actions/stop']['post']['responses']['200']['content']['application/json'];
71
+ type ConferencesRecordStartResponse =
72
+ paths['/conferences/{id}/actions/record_start']['post']['responses']['200']['content']['application/json'];
73
+ type ConferencesRecordStopResponse =
74
+ paths['/conferences/{id}/actions/record_stop']['post']['responses']['200']['content']['application/json'];
75
+ type ConferencesUpdateResponse =
76
+ paths['/conferences/{id}/actions/update']['post']['responses']['200']['content']['application/json'];
77
+ type ConferencesLeaveResponse =
78
+ paths['/conferences/{id}/actions/leave']['post']['responses']['200']['content']['application/json'];
79
+ type ConferencesRecordResumeResponse =
80
+ paths['/conferences/{id}/actions/record_resume']['post']['responses']['200']['content']['application/json'];
81
+ type ConferencesRecordPauseResponse =
82
+ paths['/conferences/{id}/actions/record_pause']['post']['responses']['200']['content']['application/json'];
83
+
84
+ type ConferencesParticipantsId =
85
+ paths['/conferences/{conference_id}/participants']['get']['parameters']['path']['conference_id'];
86
+
87
+ type ConferencesParticipantsParams =
88
+ paths['/conferences/{conference_id}/participants']['get']['parameters']['query'];
89
+
90
+ type ConferencesParticipantsResponse =
91
+ paths['/conferences/{id}']['get']['responses']['200']['content']['application/json'];
92
+
93
+ type ConferencesNestedMethods = {
94
+ join: ConferencesResource['join'];
95
+ mute: ConferencesResource['mute'];
96
+ unmute: ConferencesResource['unmute'];
97
+ hold: ConferencesResource['hold'];
98
+ unhold: ConferencesResource['unhold'];
99
+ speak: ConferencesResource['speak'];
100
+ play: ConferencesResource['play'];
101
+ stop: ConferencesResource['stop'];
102
+ recordStart: ConferencesResource['recordStart'];
103
+ recordStop: ConferencesResource['recordStop'];
104
+ update: ConferencesResource['update'];
105
+ leave: ConferencesResource['leave'];
106
+ recordResume: ConferencesResource['recordResume'];
107
+ recordPause: ConferencesResource['recordPause'];
108
+ };
109
+
110
+ class ConferencesResource {
111
+ list(
112
+ params?: ConferencesListParams,
113
+ options?: RequestOptions,
114
+ ): Promise<Telnyx.Response<Telnyx.ConferencesListResponse>>;
115
+
116
+ retrieve(
117
+ id: ConferencesRetrieveId,
118
+ options?: RequestOptions,
119
+ ): Promise<
120
+ Telnyx.Response<Telnyx.ConferencesRetrieveResponse> &
121
+ NestedResponseData<
122
+ ConferencesRetrieveResponse['data'],
123
+ ConferencesNestedMethods
124
+ >
125
+ >;
126
+
127
+ create(
128
+ params: ConferencesCreateParams,
129
+ options?: RequestOptions,
130
+ ): Promise<
131
+ Telnyx.Response<Telnyx.ConferencesCreateResponse> &
132
+ NestedResponseData<
133
+ ConferencesCreateResponse['data'],
134
+ ConferencesNestedMethods
135
+ >
136
+ >;
137
+
138
+ join(
139
+ params: ConferencesJoinParams,
140
+ options?: RequestOptions,
141
+ ): Promise<Telnyx.Response<Telnyx.ConferencesJoinResponse>>;
142
+ mute(
143
+ params: ConferencesMuteParams,
144
+ options?: RequestOptions,
145
+ ): Promise<Telnyx.Response<Telnyx.ConferencesMuteResponse>>;
146
+ unmute(
147
+ params: ConferencesUnmuteParams,
148
+ options?: RequestOptions,
149
+ ): Promise<Telnyx.Response<Telnyx.ConferencesUnmuteResponse>>;
150
+ hold(
151
+ params: ConferencesHoldParams,
152
+ options?: RequestOptions,
153
+ ): Promise<Telnyx.Response<Telnyx.ConferencesHoldResponse>>;
154
+ unhold(
155
+ params: ConferencesUnholdParams,
156
+ options?: RequestOptions,
157
+ ): Promise<Telnyx.Response<Telnyx.ConferencesUnholdResponse>>;
158
+ speak(
159
+ params: ConferencesSpeakParams,
160
+ options?: RequestOptions,
161
+ ): Promise<Telnyx.Response<Telnyx.ConferencesSpeakResponse>>;
162
+ play(
163
+ params: ConferencesPlayParams,
164
+ options?: RequestOptions,
165
+ ): Promise<Telnyx.Response<Telnyx.ConferencesPlayResponse>>;
166
+ stop(
167
+ params: ConferencesStopParams,
168
+ options?: RequestOptions,
169
+ ): Promise<Telnyx.Response<Telnyx.ConferencesStopResponse>>;
170
+ recordStart(
171
+ params: ConferencesRecordStartParams,
172
+ options?: RequestOptions,
173
+ ): Promise<Telnyx.Response<Telnyx.ConferencesRecordStartResponse>>;
174
+ recordStop(
175
+ params: ConferencesRecordStopParams,
176
+ options?: RequestOptions,
177
+ ): Promise<Telnyx.Response<Telnyx.ConferencesRecordStopResponse>>;
178
+ update(
179
+ params: ConferencesUpdateParams,
180
+ options?: RequestOptions,
181
+ ): Promise<Telnyx.Response<Telnyx.ConferencesUpdateResponse>>;
182
+ leave(
183
+ params: ConferencesLeaveParams,
184
+ options?: RequestOptions,
185
+ ): Promise<Telnyx.Response<Telnyx.ConferencesLeaveResponse>>;
186
+ recordResume(
187
+ params: ConferencesRecordResumeParams,
188
+ options?: RequestOptions,
189
+ ): Promise<Telnyx.Response<Telnyx.ConferencesRecordResumeResponse>>;
190
+ recordPause(
191
+ params: ConferencesRecordPauseParams,
192
+ options?: RequestOptions,
193
+ ): Promise<Telnyx.Response<Telnyx.ConferencesRecordPauseResponse>>;
194
+
195
+ participants(
196
+ id: ConferencesParticipantsId,
197
+ params: ConferencesParticipantsParams,
198
+ options?: RequestOptions,
199
+ ): Promise<Telnyx.Response<Telnyx.ConferencesParticipantsResponse>>;
200
+ }
201
+ }
202
+ }
@@ -0,0 +1,44 @@
1
+ import {paths} from './TelnyxAPI.js';
2
+
3
+ declare module 'telnyx' {
4
+ namespace Telnyx {
5
+ type ConnectionsListParams =
6
+ paths['/connections']['get']['parameters']['query'];
7
+
8
+ type ConnectionsListResponse =
9
+ paths['/connections']['get']['responses']['200']['content']['application/json'];
10
+
11
+ type ConnectionsRetrieveId =
12
+ paths['/connections/{id}']['get']['parameters']['path']['id'];
13
+
14
+ type ConnectionsRetrieveResponse =
15
+ paths['/connections/{id}']['get']['responses']['200']['content']['application/json'];
16
+
17
+ type ConnectionsListActiveCallsId =
18
+ paths['/connections/{connection_id}/active_calls']['get']['parameters']['path']['connection_id'];
19
+
20
+ type ConnectionsListActiveCallsParams =
21
+ paths['/connections/{connection_id}/active_calls']['get']['parameters']['query'];
22
+
23
+ type ConnectionsListActiveCallsResponse =
24
+ paths['/connections/{connection_id}/active_calls']['get']['responses']['200']['content']['application/json'];
25
+
26
+ class ConnectionsResource {
27
+ list(
28
+ params?: ConnectionsListParams,
29
+ options?: RequestOptions,
30
+ ): Promise<Telnyx.Response<Telnyx.ConnectionsListResponse>>;
31
+
32
+ retrieve(
33
+ id: ConnectionsRetrieveId,
34
+ options?: RequestOptions,
35
+ ): Promise<Telnyx.Response<Telnyx.ConnectionsRetrieveResponse>>;
36
+
37
+ listActiveCalls(
38
+ id: ConnectionsListActiveCallsId,
39
+ params?: ConnectionsListActiveCallsParams,
40
+ options?: RequestOptions,
41
+ ): Promise<Telnyx.Response<Telnyx.ConnectionsListActiveCallsResponse>>;
42
+ }
43
+ }
44
+ }
@@ -0,0 +1,69 @@
1
+ import {paths} from './TelnyxAPI.js';
2
+
3
+ declare module 'telnyx' {
4
+ namespace Telnyx {
5
+ type CredentialConnectionsListParams =
6
+ paths['/credential_connections']['get']['parameters']['query'];
7
+
8
+ type CredentialConnectionsListResponse =
9
+ paths['/credential_connections']['get']['responses']['200']['content']['application/json'];
10
+
11
+ type CredentialConnectionsCreateParams =
12
+ paths['/credential_connections']['post']['requestBody']['content']['application/json'];
13
+
14
+ type CredentialConnectionsCreateResponse =
15
+ paths['/credential_connections']['post']['responses']['201']['content']['application/json'];
16
+
17
+ type CredentialConnectionsRetrieveId =
18
+ paths['/credential_connections/{id}']['get']['parameters']['path']['id'];
19
+
20
+ type CredentialConnectionsRetrieveResponse =
21
+ paths['/credential_connections/{id}']['get']['responses']['200']['content']['application/json'];
22
+
23
+ type CredentialConnectionsUpdateId =
24
+ paths['/credential_connections/{id}']['patch']['parameters']['path']['id'];
25
+
26
+ type CredentialConnectionsUpdateParams =
27
+ paths['/credential_connections/{id}']['patch']['requestBody']['content']['application/json'];
28
+
29
+ type CredentialConnectionsUpdateResponse =
30
+ paths['/credential_connections/{id}']['patch']['responses']['200']['content']['application/json'];
31
+
32
+ type CredentialConnectionsDelId =
33
+ paths['/credential_connections/{id}']['delete']['parameters']['path']['id'];
34
+
35
+ type CredentialConnectionsDelParams =
36
+ paths['/credential_connections/{id}']['delete']['parameters']['query'];
37
+
38
+ type CredentialConnectionsDelResponse =
39
+ paths['/credential_connections/{id}']['delete']['responses']['200']['content']['application/json'];
40
+
41
+ class CredentialConnectionsResource {
42
+ list(
43
+ params?: CredentialConnectionsListParams,
44
+ options?: RequestOptions,
45
+ ): Promise<Telnyx.Response<Telnyx.CredentialConnectionsListResponse>>;
46
+
47
+ create(
48
+ params: CredentialConnectionsCreateParams,
49
+ options?: RequestOptions,
50
+ ): Promise<Telnyx.Response<Telnyx.CredentialConnectionsCreateResponse>>;
51
+
52
+ retrieve(
53
+ id: CredentialConnectionsRetrieveId,
54
+ options?: RequestOptions,
55
+ ): Promise<Telnyx.Response<Telnyx.CredentialConnectionsRetrieveResponse>>;
56
+
57
+ update(
58
+ id: CredentialConnectionsUpdateId,
59
+ params: CredentialConnectionsUpdateParams,
60
+ options?: RequestOptions,
61
+ ): Promise<Telnyx.Response<Telnyx.CredentialConnectionsUpdateResponse>>;
62
+
63
+ del(
64
+ id: CredentialConnectionsDelId,
65
+ options?: RequestOptions,
66
+ ): Promise<Telnyx.Response<Telnyx.CredentialConnectionsDelResponse>>;
67
+ }
68
+ }
69
+ }
@@ -0,0 +1,18 @@
1
+ import {paths} from './TelnyxAPI.js';
2
+
3
+ declare module 'telnyx' {
4
+ namespace Telnyx {
5
+ type DocumentLinksListParams =
6
+ paths['/document_links']['get']['parameters']['query'];
7
+
8
+ type DocumentLinksListResponse =
9
+ paths['/document_links']['get']['responses']['200']['content']['application/json'];
10
+
11
+ class DocumentLinksResource {
12
+ list(
13
+ params?: DocumentLinksListParams,
14
+ options?: RequestOptions,
15
+ ): Promise<Telnyx.Response<Telnyx.DocumentLinksListResponse>>;
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,80 @@
1
+ import {paths} from './TelnyxAPI.js';
2
+
3
+ declare module 'telnyx' {
4
+ namespace Telnyx {
5
+ type DocumentsListParams =
6
+ paths['/documents']['get']['parameters']['query'];
7
+
8
+ type DocumentsListResponse =
9
+ paths['/documents']['get']['responses']['200']['content']['application/json'];
10
+
11
+ type DocumentsCreateParams =
12
+ paths['/documents']['post']['requestBody']['content']['application/json'];
13
+
14
+ type DocumentsCreateResponse =
15
+ paths['/documents']['post']['responses']['200']['content']['application/json'];
16
+
17
+ type DocumentsRetrieveId =
18
+ paths['/documents/{id}']['get']['parameters']['path']['id'];
19
+
20
+ type DocumentsRetrieveResponse =
21
+ paths['/documents/{id}']['get']['responses']['200']['content']['application/json'];
22
+
23
+ type DocumentsUpdateId =
24
+ paths['/documents/{id}']['patch']['parameters']['path']['id'];
25
+
26
+ type DocumentsUpdateParams =
27
+ paths['/documents/{id}']['patch']['requestBody']['content']['application/json'];
28
+
29
+ type DocumentsUpdateResponse =
30
+ paths['/documents/{id}']['patch']['responses']['200']['content']['application/json'];
31
+
32
+ type DocumentsDelId =
33
+ paths['/documents/{id}']['delete']['parameters']['path']['id'];
34
+
35
+ type DocumentsDelParams =
36
+ paths['/documents/{id}']['delete']['parameters']['query'];
37
+
38
+ type DocumentsDelResponse =
39
+ paths['/documents/{id}']['delete']['responses']['200']['content']['application/json'];
40
+
41
+ type DocumentsDownloadId =
42
+ paths['/documents/{id}/download']['get']['parameters']['path']['id'];
43
+
44
+ type DocumentsDownloadResponse =
45
+ paths['/documents/{id}/download']['get']['responses']['200']['content']['*'];
46
+
47
+ class DocumentsResource {
48
+ list(
49
+ params?: DocumentsListParams,
50
+ options?: RequestOptions,
51
+ ): Promise<Telnyx.Response<Telnyx.DocumentsListResponse>>;
52
+
53
+ create(
54
+ params: DocumentsCreateParams,
55
+ options?: RequestOptions,
56
+ ): Promise<Telnyx.Response<Telnyx.DocumentsCreateResponse>>;
57
+
58
+ retrieve(
59
+ id: DocumentsRetrieveId,
60
+ options?: RequestOptions,
61
+ ): Promise<Telnyx.Response<Telnyx.DocumentsRetrieveResponse>>;
62
+
63
+ update(
64
+ id: DocumentsUpdateId,
65
+ params: DocumentsUpdateParams,
66
+ options?: RequestOptions,
67
+ ): Promise<Telnyx.Response<Telnyx.DocumentsUpdateResponse>>;
68
+
69
+ del(
70
+ id: DocumentsDelId,
71
+ options?: RequestOptions,
72
+ ): Promise<Telnyx.Response<Telnyx.DocumentsDelResponse>>;
73
+
74
+ download(
75
+ id: DocumentsDownloadId,
76
+ options?: RequestOptions,
77
+ ): Promise<Telnyx.Response<Telnyx.DocumentsDownloadResponse>>;
78
+ }
79
+ }
80
+ }
@@ -0,0 +1,99 @@
1
+ import {paths} from './TelnyxAPI.js';
2
+
3
+ declare module 'telnyx' {
4
+ namespace Telnyx {
5
+ type TelephonyCredentialsListParams =
6
+ paths['/telephony_credentials']['get']['parameters']['query'];
7
+
8
+ type TelephonyCredentialsListResponse =
9
+ paths['/telephony_credentials']['get']['responses']['200']['content']['application/json'];
10
+
11
+ type TelephonyCredentialsCreateParams =
12
+ paths['/telephony_credentials']['post']['requestBody']['content']['application/json'];
13
+
14
+ type TelephonyCredentialsCreateResponse =
15
+ paths['/telephony_credentials']['post']['responses']['201']['content']['application/json'];
16
+
17
+ type TelephonyCredentialsRetrieveId =
18
+ paths['/telephony_credentials/{id}']['get']['parameters']['path']['id'];
19
+
20
+ type TelephonyCredentialsRetrieveParams =
21
+ paths['/telephony_credentials/{id}']['get']['parameters']['query'];
22
+
23
+ type TelephonyCredentialsRetrieveResponse =
24
+ paths['/telephony_credentials/{id}']['get']['responses']['200']['content']['application/json'];
25
+
26
+ type TelephonyCredentialsUpdateId =
27
+ paths['/telephony_credentials/{id}']['patch']['parameters']['path']['id'];
28
+
29
+ type TelephonyCredentialsUpdateParams =
30
+ paths['/telephony_credentials/{id}']['patch']['requestBody']['content']['application/json'];
31
+
32
+ type TelephonyCredentialsUpdateResponse =
33
+ paths['/telephony_credentials/{id}']['patch']['responses']['200']['content']['application/json'];
34
+
35
+ type TelephonyCredentialsDelId =
36
+ paths['/telephony_credentials/{id}']['delete']['parameters']['path']['id'];
37
+
38
+ type TelephonyCredentialsDelParams =
39
+ paths['/telephony_credentials/{id}']['delete']['parameters']['query'];
40
+
41
+ type TelephonyCredentialsDelResponse =
42
+ paths['/telephony_credentials/{id}']['delete']['responses']['200']['content']['application/json'];
43
+
44
+ type TelephonyCredentialsCreateTokenId =
45
+ paths['/telephony_credentials/{id}/token']['post']['parameters']['path']['id'];
46
+
47
+ type TelephonyCredentialsCreateTokenParams =
48
+ paths['/telephony_credentials/{id}/token']['post']['requestBody'];
49
+
50
+ type TelephonyCredentialsCreateTokenResponse =
51
+ paths['/telephony_credentials/{id}/token']['post']['responses']['201']['content']['text/plain'];
52
+
53
+ type TelephonyCredentialsListTagsParams =
54
+ paths['/telephony_credentials/tags']['get']['parameters']['query'];
55
+
56
+ type TelephonyCredentialsListTagsResponse =
57
+ paths['/telephony_credentials/tags']['get']['responses']['200']['content']['application/json'];
58
+
59
+ class TelephonyCredentialsResource {
60
+ list(
61
+ params?: TelephonyCredentialsListParams,
62
+ options?: RequestOptions,
63
+ ): Promise<Telnyx.Response<Telnyx.TelephonyCredentialsListResponse>>;
64
+
65
+ create(
66
+ params: TelephonyCredentialsCreateParams,
67
+ options?: RequestOptions,
68
+ ): Promise<Telnyx.Response<Telnyx.TelephonyCredentialsCreateResponse>>;
69
+
70
+ retrieve(
71
+ id: TelephonyCredentialsRetrieveId,
72
+ options?: RequestOptions,
73
+ ): Promise<Telnyx.Response<Telnyx.TelephonyCredentialsRetrieveResponse>>;
74
+
75
+ update(
76
+ id: TelephonyCredentialsUpdateId,
77
+ params: TelephonyCredentialsUpdateParams,
78
+ options?: RequestOptions,
79
+ ): Promise<Telnyx.Response<Telnyx.TelephonyCredentialsUpdateResponse>>;
80
+
81
+ del(
82
+ id: TelephonyCredentialsDelId,
83
+ options?: RequestOptions,
84
+ ): Promise<Telnyx.Response<Telnyx.TelephonyCredentialsDelResponse>>;
85
+
86
+ createToken(
87
+ id: TelephonyCredentialsCreateTokenId,
88
+ options?: RequestOptions,
89
+ ): Promise<
90
+ Telnyx.Response<Telnyx.TelephonyCredentialsCreateTokenResponse>
91
+ >;
92
+
93
+ listTags(
94
+ params?: TelephonyCredentialsListTagsParams,
95
+ options?: RequestOptions,
96
+ ): Promise<Telnyx.Response<Telnyx.TelephonyCredentialsListTagsResponse>>;
97
+ }
98
+ }
99
+ }
@@ -60827,7 +60827,7 @@ export interface operations {
60827
60827
  [name: string]: unknown;
60828
60828
  };
60829
60829
  content: {
60830
- 'application/json': components['schemas']['MdrGetSyncUsageReportResponse'];
60830
+ 'application/json': components['schemas']['CdrGetSyncUsageReportResponse'];
60831
60831
  };
60832
60832
  };
60833
60833
  };