telnyx 7.14.0 → 7.16.0
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 +25 -0
- package/client.d.mts +8 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -2
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/calls/actions.d.mts +10 -8
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +10 -8
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/calls.d.mts +5 -5
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +5 -5
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/index.d.mts +3 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/meeting-sessions/actions.d.mts +82 -0
- package/resources/meeting-sessions/actions.d.mts.map +1 -0
- package/resources/meeting-sessions/actions.d.ts +82 -0
- package/resources/meeting-sessions/actions.d.ts.map +1 -0
- package/resources/meeting-sessions/actions.js +59 -0
- package/resources/meeting-sessions/actions.js.map +1 -0
- package/resources/meeting-sessions/actions.mjs +55 -0
- package/resources/meeting-sessions/actions.mjs.map +1 -0
- package/resources/meeting-sessions/artifacts.d.mts +92 -0
- package/resources/meeting-sessions/artifacts.d.mts.map +1 -0
- package/resources/meeting-sessions/artifacts.d.ts +92 -0
- package/resources/meeting-sessions/artifacts.d.ts.map +1 -0
- package/resources/meeting-sessions/artifacts.js +62 -0
- package/resources/meeting-sessions/artifacts.js.map +1 -0
- package/resources/meeting-sessions/artifacts.mjs +58 -0
- package/resources/meeting-sessions/artifacts.mjs.map +1 -0
- package/resources/meeting-sessions/index.d.mts +4 -0
- package/resources/meeting-sessions/index.d.mts.map +1 -0
- package/resources/meeting-sessions/index.d.ts +4 -0
- package/resources/meeting-sessions/index.d.ts.map +1 -0
- package/resources/meeting-sessions/index.js +11 -0
- package/resources/meeting-sessions/index.js.map +1 -0
- package/resources/meeting-sessions/index.mjs +5 -0
- package/resources/meeting-sessions/index.mjs.map +1 -0
- package/resources/meeting-sessions/meeting-sessions.d.mts +580 -0
- package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -0
- package/resources/meeting-sessions/meeting-sessions.d.ts +580 -0
- package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -0
- package/resources/meeting-sessions/meeting-sessions.js +175 -0
- package/resources/meeting-sessions/meeting-sessions.js.map +1 -0
- package/resources/meeting-sessions/meeting-sessions.mjs +170 -0
- package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -0
- package/resources/meeting-sessions.d.mts +2 -0
- package/resources/meeting-sessions.d.mts.map +1 -0
- package/resources/meeting-sessions.d.ts +2 -0
- package/resources/meeting-sessions.d.ts.map +1 -0
- package/resources/meeting-sessions.js +6 -0
- package/resources/meeting-sessions.js.map +1 -0
- package/resources/meeting-sessions.mjs +3 -0
- package/resources/meeting-sessions.mjs.map +1 -0
- package/resources/messaging-profiles/messaging-profiles.d.mts +1 -1
- package/resources/messaging-profiles/messaging-profiles.d.ts +1 -1
- package/resources/messaging-profiles/messaging-profiles.js +1 -1
- package/resources/messaging-profiles/messaging-profiles.mjs +1 -1
- package/resources/phone-numbers/voicemail.d.mts +132 -2
- package/resources/phone-numbers/voicemail.d.mts.map +1 -1
- package/resources/phone-numbers/voicemail.d.ts +132 -2
- package/resources/phone-numbers/voicemail.d.ts.map +1 -1
- package/resources/phone-numbers/voicemail.js +8 -2
- package/resources/phone-numbers/voicemail.js.map +1 -1
- package/resources/phone-numbers/voicemail.mjs +8 -2
- package/resources/phone-numbers/voicemail.mjs.map +1 -1
- package/resources/private-wireless-gateways.d.mts +1 -1
- package/resources/private-wireless-gateways.d.ts +1 -1
- package/resources/sim-cards/actions.d.mts +69 -3
- package/resources/sim-cards/actions.d.mts.map +1 -1
- package/resources/sim-cards/actions.d.ts +69 -3
- package/resources/sim-cards/actions.d.ts.map +1 -1
- package/resources/sim-cards/actions.js +38 -0
- package/resources/sim-cards/actions.js.map +1 -1
- package/resources/sim-cards/actions.mjs +38 -0
- package/resources/sim-cards/actions.mjs.map +1 -1
- package/resources/sim-cards/index.d.mts +1 -1
- package/resources/sim-cards/index.d.mts.map +1 -1
- package/resources/sim-cards/index.d.ts +1 -1
- package/resources/sim-cards/index.d.ts.map +1 -1
- package/resources/sim-cards/index.js.map +1 -1
- package/resources/sim-cards/index.mjs.map +1 -1
- package/resources/sim-cards/sim-cards.d.mts +2 -2
- package/resources/sim-cards/sim-cards.d.mts.map +1 -1
- package/resources/sim-cards/sim-cards.d.ts +2 -2
- package/resources/sim-cards/sim-cards.d.ts.map +1 -1
- package/resources/sim-cards/sim-cards.js.map +1 -1
- package/resources/sim-cards/sim-cards.mjs.map +1 -1
- package/resources/storage/index.d.mts +2 -1
- package/resources/storage/index.d.mts.map +1 -1
- package/resources/storage/index.d.ts +2 -1
- package/resources/storage/index.d.ts.map +1 -1
- package/resources/storage/index.js +3 -1
- package/resources/storage/index.js.map +1 -1
- package/resources/storage/index.mjs +1 -0
- package/resources/storage/index.mjs.map +1 -1
- package/resources/storage/kvs/index.d.mts +1 -1
- package/resources/storage/kvs/index.d.mts.map +1 -1
- package/resources/storage/kvs/index.d.ts +1 -1
- package/resources/storage/kvs/index.d.ts.map +1 -1
- package/resources/storage/kvs/index.js.map +1 -1
- package/resources/storage/kvs/index.mjs.map +1 -1
- package/resources/storage/kvs/kvs.d.mts +7 -1
- package/resources/storage/kvs/kvs.d.mts.map +1 -1
- package/resources/storage/kvs/kvs.d.ts +7 -1
- package/resources/storage/kvs/kvs.d.ts.map +1 -1
- package/resources/storage/kvs/kvs.js.map +1 -1
- package/resources/storage/kvs/kvs.mjs.map +1 -1
- package/resources/storage/sqldbs/actions.d.mts +84 -0
- package/resources/storage/sqldbs/actions.d.mts.map +1 -0
- package/resources/storage/sqldbs/actions.d.ts +84 -0
- package/resources/storage/sqldbs/actions.d.ts.map +1 -0
- package/resources/storage/sqldbs/actions.js +29 -0
- package/resources/storage/sqldbs/actions.js.map +1 -0
- package/resources/storage/sqldbs/actions.mjs +25 -0
- package/resources/storage/sqldbs/actions.mjs.map +1 -0
- package/resources/storage/sqldbs/index.d.mts +3 -0
- package/resources/storage/sqldbs/index.d.mts.map +1 -0
- package/resources/storage/sqldbs/index.d.ts +3 -0
- package/resources/storage/sqldbs/index.d.ts.map +1 -0
- package/resources/storage/sqldbs/index.js +9 -0
- package/resources/storage/sqldbs/index.js.map +1 -0
- package/resources/storage/sqldbs/index.mjs +4 -0
- package/resources/storage/sqldbs/index.mjs.map +1 -0
- package/resources/storage/sqldbs/sqldbs.d.mts +116 -0
- package/resources/storage/sqldbs/sqldbs.d.mts.map +1 -0
- package/resources/storage/sqldbs/sqldbs.d.ts +116 -0
- package/resources/storage/sqldbs/sqldbs.d.ts.map +1 -0
- package/resources/storage/sqldbs/sqldbs.js +94 -0
- package/resources/storage/sqldbs/sqldbs.js.map +1 -0
- package/resources/storage/sqldbs/sqldbs.mjs +89 -0
- package/resources/storage/sqldbs/sqldbs.mjs.map +1 -0
- package/resources/storage/sqldbs.d.mts +2 -0
- package/resources/storage/sqldbs.d.mts.map +1 -0
- package/resources/storage/sqldbs.d.ts +2 -0
- package/resources/storage/sqldbs.d.ts.map +1 -0
- package/resources/storage/sqldbs.js +6 -0
- package/resources/storage/sqldbs.js.map +1 -0
- package/resources/storage/sqldbs.mjs +3 -0
- package/resources/storage/sqldbs.mjs.map +1 -0
- package/resources/storage/storage.d.mts +6 -2
- package/resources/storage/storage.d.mts.map +1 -1
- package/resources/storage/storage.d.ts +6 -2
- package/resources/storage/storage.d.ts.map +1 -1
- package/resources/storage/storage.js +4 -0
- package/resources/storage/storage.js.map +1 -1
- package/resources/storage/storage.mjs +4 -0
- package/resources/storage/storage.mjs.map +1 -1
- package/resources/web-search/index.d.mts +3 -0
- package/resources/web-search/index.d.mts.map +1 -0
- package/resources/web-search/index.d.ts +3 -0
- package/resources/web-search/index.d.ts.map +1 -0
- package/resources/web-search/index.js +9 -0
- package/resources/web-search/index.js.map +1 -0
- package/resources/web-search/index.mjs +4 -0
- package/resources/web-search/index.mjs.map +1 -0
- package/resources/web-search/research.d.mts +148 -0
- package/resources/web-search/research.d.mts.map +1 -0
- package/resources/web-search/research.d.ts +148 -0
- package/resources/web-search/research.d.ts.map +1 -0
- package/resources/web-search/research.js +57 -0
- package/resources/web-search/research.js.map +1 -0
- package/resources/web-search/research.mjs +53 -0
- package/resources/web-search/research.mjs.map +1 -0
- package/resources/web-search/web-search.d.mts +204 -0
- package/resources/web-search/web-search.d.mts.map +1 -0
- package/resources/web-search/web-search.d.ts +204 -0
- package/resources/web-search/web-search.d.ts.map +1 -0
- package/resources/web-search/web-search.js +59 -0
- package/resources/web-search/web-search.js.map +1 -0
- package/resources/web-search/web-search.mjs +54 -0
- package/resources/web-search/web-search.mjs.map +1 -0
- package/resources/web-search.d.mts +2 -0
- package/resources/web-search.d.mts.map +1 -0
- package/resources/web-search.d.ts +2 -0
- package/resources/web-search.d.ts.map +1 -0
- package/resources/web-search.js +6 -0
- package/resources/web-search.js.map +1 -0
- package/resources/web-search.mjs +3 -0
- package/resources/web-search.mjs.map +1 -0
- package/resources/webhooks.d.mts +475 -3
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +475 -3
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +62 -0
- package/src/resources/calls/actions.ts +10 -8
- package/src/resources/calls/calls.ts +5 -5
- package/src/resources/index.ts +28 -0
- package/src/resources/meeting-sessions/actions.ts +108 -0
- package/src/resources/meeting-sessions/artifacts.ts +135 -0
- package/src/resources/meeting-sessions/index.ts +31 -0
- package/src/resources/meeting-sessions/meeting-sessions.ts +771 -0
- package/src/resources/meeting-sessions.ts +3 -0
- package/src/resources/messaging-profiles/messaging-profiles.ts +1 -1
- package/src/resources/phone-numbers/voicemail.ts +144 -2
- package/src/resources/private-wireless-gateways.ts +1 -1
- package/src/resources/sim-cards/actions.ts +93 -2
- package/src/resources/sim-cards/index.ts +3 -0
- package/src/resources/sim-cards/sim-cards.ts +6 -0
- package/src/resources/storage/index.ts +10 -0
- package/src/resources/storage/kvs/index.ts +1 -0
- package/src/resources/storage/kvs/kvs.ts +11 -0
- package/src/resources/storage/sqldbs/actions.ts +101 -0
- package/src/resources/storage/sqldbs/index.ts +12 -0
- package/src/resources/storage/sqldbs/sqldbs.ts +179 -0
- package/src/resources/storage/sqldbs.ts +3 -0
- package/src/resources/storage/storage.ts +24 -0
- package/src/resources/web-search/index.ts +17 -0
- package/src/resources/web-search/research.ts +180 -0
- package/src/resources/web-search/web-search.ts +266 -0
- package/src/resources/web-search.ts +3 -0
- package/src/resources/webhooks.ts +579 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -35,7 +35,7 @@ export class MessagingProfiles extends APIResource {
|
|
|
35
35
|
actions: ActionsAPI.Actions = new ActionsAPI.Actions(this._client);
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Lists messaging profiles owned by the authenticated account. Apply the
|
|
39
39
|
* documented filters and pagination parameters to narrow the result set.
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
@@ -25,7 +25,10 @@ export class Voicemail extends APIResource {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
* Update voicemail settings for a phone number
|
|
28
|
+
* Update voicemail settings for a phone number. You can also configure a custom
|
|
29
|
+
* greeting by setting the `greeting` object: use `mode` `custom_greeting` together
|
|
30
|
+
* with a `media_name` that points to an audio file uploaded through the Media
|
|
31
|
+
* Storage API, or `mode` `default` to use the standard system greeting.
|
|
29
32
|
*
|
|
30
33
|
* @example
|
|
31
34
|
* ```ts
|
|
@@ -44,7 +47,10 @@ export class Voicemail extends APIResource {
|
|
|
44
47
|
}
|
|
45
48
|
|
|
46
49
|
/**
|
|
47
|
-
* Create voicemail settings for a phone number
|
|
50
|
+
* Create voicemail settings for a phone number. You can also configure a custom
|
|
51
|
+
* greeting by setting the `greeting` object: use `mode` `custom_greeting` together
|
|
52
|
+
* with a `media_name` that points to an audio file uploaded through the Media
|
|
53
|
+
* Storage API, or `mode` `default` to use the standard system greeting.
|
|
48
54
|
*
|
|
49
55
|
* @example
|
|
50
56
|
* ```ts
|
|
@@ -69,24 +75,92 @@ export interface VoicemailPrefResponse {
|
|
|
69
75
|
*/
|
|
70
76
|
enabled?: boolean;
|
|
71
77
|
|
|
78
|
+
/**
|
|
79
|
+
* Controls the greeting a caller hears before leaving a voicemail. Set `mode` to
|
|
80
|
+
* `default` to play the standard system greeting, or to `custom_greeting` to play
|
|
81
|
+
* your own audio. When `mode` is `custom_greeting`, `media_name` is required and
|
|
82
|
+
* must reference an audio file already uploaded to your account through the Media
|
|
83
|
+
* Storage API.
|
|
84
|
+
*/
|
|
85
|
+
greeting?: VoicemailPrefResponse.Greeting;
|
|
86
|
+
|
|
72
87
|
/**
|
|
73
88
|
* The pin used for the voicemail.
|
|
74
89
|
*/
|
|
75
90
|
pin?: string;
|
|
76
91
|
}
|
|
77
92
|
|
|
93
|
+
export namespace VoicemailPrefResponse {
|
|
94
|
+
/**
|
|
95
|
+
* Controls the greeting a caller hears before leaving a voicemail. Set `mode` to
|
|
96
|
+
* `default` to play the standard system greeting, or to `custom_greeting` to play
|
|
97
|
+
* your own audio. When `mode` is `custom_greeting`, `media_name` is required and
|
|
98
|
+
* must reference an audio file already uploaded to your account through the Media
|
|
99
|
+
* Storage API.
|
|
100
|
+
*/
|
|
101
|
+
export interface Greeting {
|
|
102
|
+
/**
|
|
103
|
+
* The name of the media file to play as the greeting. Required when `mode` is
|
|
104
|
+
* `custom_greeting`; ignored when `mode` is `default`. The value must match the
|
|
105
|
+
* `media_name` of a file you previously uploaded with the Media Storage API
|
|
106
|
+
* (`POST /v2/media`).
|
|
107
|
+
*/
|
|
108
|
+
media_name?: string | null;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* The greeting mode. `default` plays the standard system greeting.
|
|
112
|
+
* `custom_greeting` plays the audio referenced by `media_name`.
|
|
113
|
+
*/
|
|
114
|
+
mode?: 'default' | 'custom_greeting';
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
78
118
|
export interface VoicemailRequest {
|
|
79
119
|
/**
|
|
80
120
|
* Whether voicemail is enabled.
|
|
81
121
|
*/
|
|
82
122
|
enabled?: boolean;
|
|
83
123
|
|
|
124
|
+
/**
|
|
125
|
+
* Controls the greeting a caller hears before leaving a voicemail. Set `mode` to
|
|
126
|
+
* `default` to play the standard system greeting, or to `custom_greeting` to play
|
|
127
|
+
* your own audio. When `mode` is `custom_greeting`, `media_name` is required and
|
|
128
|
+
* must reference an audio file already uploaded to your account through the Media
|
|
129
|
+
* Storage API.
|
|
130
|
+
*/
|
|
131
|
+
greeting?: VoicemailRequest.Greeting;
|
|
132
|
+
|
|
84
133
|
/**
|
|
85
134
|
* The pin used for voicemail
|
|
86
135
|
*/
|
|
87
136
|
pin?: string;
|
|
88
137
|
}
|
|
89
138
|
|
|
139
|
+
export namespace VoicemailRequest {
|
|
140
|
+
/**
|
|
141
|
+
* Controls the greeting a caller hears before leaving a voicemail. Set `mode` to
|
|
142
|
+
* `default` to play the standard system greeting, or to `custom_greeting` to play
|
|
143
|
+
* your own audio. When `mode` is `custom_greeting`, `media_name` is required and
|
|
144
|
+
* must reference an audio file already uploaded to your account through the Media
|
|
145
|
+
* Storage API.
|
|
146
|
+
*/
|
|
147
|
+
export interface Greeting {
|
|
148
|
+
/**
|
|
149
|
+
* The name of the media file to play as the greeting. Required when `mode` is
|
|
150
|
+
* `custom_greeting`; ignored when `mode` is `default`. The value must match the
|
|
151
|
+
* `media_name` of a file you previously uploaded with the Media Storage API
|
|
152
|
+
* (`POST /v2/media`).
|
|
153
|
+
*/
|
|
154
|
+
media_name?: string | null;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* The greeting mode. `default` plays the standard system greeting.
|
|
158
|
+
* `custom_greeting` plays the audio referenced by `media_name`.
|
|
159
|
+
*/
|
|
160
|
+
mode?: 'default' | 'custom_greeting';
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
90
164
|
export interface VoicemailCreateResponse {
|
|
91
165
|
data?: VoicemailPrefResponse;
|
|
92
166
|
}
|
|
@@ -105,24 +179,92 @@ export interface VoicemailUpdateParams {
|
|
|
105
179
|
*/
|
|
106
180
|
enabled?: boolean;
|
|
107
181
|
|
|
182
|
+
/**
|
|
183
|
+
* Controls the greeting a caller hears before leaving a voicemail. Set `mode` to
|
|
184
|
+
* `default` to play the standard system greeting, or to `custom_greeting` to play
|
|
185
|
+
* your own audio. When `mode` is `custom_greeting`, `media_name` is required and
|
|
186
|
+
* must reference an audio file already uploaded to your account through the Media
|
|
187
|
+
* Storage API.
|
|
188
|
+
*/
|
|
189
|
+
greeting?: VoicemailUpdateParams.Greeting;
|
|
190
|
+
|
|
108
191
|
/**
|
|
109
192
|
* The pin used for voicemail
|
|
110
193
|
*/
|
|
111
194
|
pin?: string;
|
|
112
195
|
}
|
|
113
196
|
|
|
197
|
+
export namespace VoicemailUpdateParams {
|
|
198
|
+
/**
|
|
199
|
+
* Controls the greeting a caller hears before leaving a voicemail. Set `mode` to
|
|
200
|
+
* `default` to play the standard system greeting, or to `custom_greeting` to play
|
|
201
|
+
* your own audio. When `mode` is `custom_greeting`, `media_name` is required and
|
|
202
|
+
* must reference an audio file already uploaded to your account through the Media
|
|
203
|
+
* Storage API.
|
|
204
|
+
*/
|
|
205
|
+
export interface Greeting {
|
|
206
|
+
/**
|
|
207
|
+
* The name of the media file to play as the greeting. Required when `mode` is
|
|
208
|
+
* `custom_greeting`; ignored when `mode` is `default`. The value must match the
|
|
209
|
+
* `media_name` of a file you previously uploaded with the Media Storage API
|
|
210
|
+
* (`POST /v2/media`).
|
|
211
|
+
*/
|
|
212
|
+
media_name?: string | null;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* The greeting mode. `default` plays the standard system greeting.
|
|
216
|
+
* `custom_greeting` plays the audio referenced by `media_name`.
|
|
217
|
+
*/
|
|
218
|
+
mode?: 'default' | 'custom_greeting';
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
114
222
|
export interface VoicemailCreateParams {
|
|
115
223
|
/**
|
|
116
224
|
* Whether voicemail is enabled.
|
|
117
225
|
*/
|
|
118
226
|
enabled?: boolean;
|
|
119
227
|
|
|
228
|
+
/**
|
|
229
|
+
* Controls the greeting a caller hears before leaving a voicemail. Set `mode` to
|
|
230
|
+
* `default` to play the standard system greeting, or to `custom_greeting` to play
|
|
231
|
+
* your own audio. When `mode` is `custom_greeting`, `media_name` is required and
|
|
232
|
+
* must reference an audio file already uploaded to your account through the Media
|
|
233
|
+
* Storage API.
|
|
234
|
+
*/
|
|
235
|
+
greeting?: VoicemailCreateParams.Greeting;
|
|
236
|
+
|
|
120
237
|
/**
|
|
121
238
|
* The pin used for voicemail
|
|
122
239
|
*/
|
|
123
240
|
pin?: string;
|
|
124
241
|
}
|
|
125
242
|
|
|
243
|
+
export namespace VoicemailCreateParams {
|
|
244
|
+
/**
|
|
245
|
+
* Controls the greeting a caller hears before leaving a voicemail. Set `mode` to
|
|
246
|
+
* `default` to play the standard system greeting, or to `custom_greeting` to play
|
|
247
|
+
* your own audio. When `mode` is `custom_greeting`, `media_name` is required and
|
|
248
|
+
* must reference an audio file already uploaded to your account through the Media
|
|
249
|
+
* Storage API.
|
|
250
|
+
*/
|
|
251
|
+
export interface Greeting {
|
|
252
|
+
/**
|
|
253
|
+
* The name of the media file to play as the greeting. Required when `mode` is
|
|
254
|
+
* `custom_greeting`; ignored when `mode` is `default`. The value must match the
|
|
255
|
+
* `media_name` of a file you previously uploaded with the Media Storage API
|
|
256
|
+
* (`POST /v2/media`).
|
|
257
|
+
*/
|
|
258
|
+
media_name?: string | null;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* The greeting mode. `default` plays the standard system greeting.
|
|
262
|
+
* `custom_greeting` plays the audio referenced by `media_name`.
|
|
263
|
+
*/
|
|
264
|
+
mode?: 'default' | 'custom_greeting';
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
126
268
|
export declare namespace Voicemail {
|
|
127
269
|
export {
|
|
128
270
|
type VoicemailPrefResponse as VoicemailPrefResponse,
|
|
@@ -141,7 +141,7 @@ export interface PrivateWirelessGateway {
|
|
|
141
141
|
export interface PrivateWirelessGatewayStatus {
|
|
142
142
|
/**
|
|
143
143
|
* This attribute is an
|
|
144
|
-
* [error code](https://developers.telnyx.com/development/api-fundamentals/api-errors)
|
|
144
|
+
* [error code](https://developers.telnyx.com/docs/development/api-fundamentals/api-errors)
|
|
145
145
|
* related to the failure reason.
|
|
146
146
|
*/
|
|
147
147
|
error_code?: string | null;
|
|
@@ -244,6 +244,50 @@ export class Actions extends APIResource {
|
|
|
244
244
|
): APIPromise<ActionBulkEnableVoiceResponse> {
|
|
245
245
|
return this._client.post('/sim_cards/actions/bulk_enable_voice', { body, ...options });
|
|
246
246
|
}
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* This API disables voice calling on a SIM card. The SIM card will no longer be
|
|
250
|
+
* able to make or receive calls.<br/> The API will trigger an asynchronous
|
|
251
|
+
* operation called a SIM Card Action. The status of the SIM Card Action can be
|
|
252
|
+
* followed through the
|
|
253
|
+
* [List SIM Card Action](https://developers.telnyx.com/api-reference/sim-card-actions/list-sim-card-actions)
|
|
254
|
+
* API.
|
|
255
|
+
*
|
|
256
|
+
* @example
|
|
257
|
+
* ```ts
|
|
258
|
+
* const response = await client.simCards.actions.disableVoice(
|
|
259
|
+
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
260
|
+
* );
|
|
261
|
+
* ```
|
|
262
|
+
*/
|
|
263
|
+
disableVoice(id: string, options?: RequestOptions): APIPromise<ActionDisableVoiceResponse> {
|
|
264
|
+
return this._client.post(path`/sim_cards/${id}/actions/disable_voice`, options);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* This API enables voice calling on a SIM card. When a <code>connection_id</code>
|
|
269
|
+
* is provided, the SIM is associated with the specified Mobile Voice Connection.
|
|
270
|
+
* The connection must be owned by the same user and of type
|
|
271
|
+
* <code>mobile_voice</code>.<br/> The API will trigger an asynchronous operation
|
|
272
|
+
* called a SIM Card Action. The status of the SIM Card Action can be followed
|
|
273
|
+
* through the
|
|
274
|
+
* [List SIM Card Action](https://developers.telnyx.com/api-reference/sim-card-actions/list-sim-card-actions)
|
|
275
|
+
* API.
|
|
276
|
+
*
|
|
277
|
+
* @example
|
|
278
|
+
* ```ts
|
|
279
|
+
* const response = await client.simCards.actions.enableVoice(
|
|
280
|
+
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
281
|
+
* );
|
|
282
|
+
* ```
|
|
283
|
+
*/
|
|
284
|
+
enableVoice(
|
|
285
|
+
id: string,
|
|
286
|
+
body: ActionEnableVoiceParams | null | undefined = {},
|
|
287
|
+
options?: RequestOptions,
|
|
288
|
+
): APIPromise<ActionEnableVoiceResponse> {
|
|
289
|
+
return this._client.post(path`/sim_cards/${id}/actions/enable_voice`, { body, ...options });
|
|
290
|
+
}
|
|
247
291
|
}
|
|
248
292
|
|
|
249
293
|
export type WirelessSimCardActionsDefaultFlatPagination = DefaultFlatPagination<WirelessSimCardAction>;
|
|
@@ -369,9 +413,17 @@ export interface WirelessSimCardAction {
|
|
|
369
413
|
* <li><code>enable_standby_sim_card</code> - move a SIM card previously on the <code>standby</code> status to the <code>enabled</code> status after it consumes data.</li>
|
|
370
414
|
* <li><code>disable</code> - move the SIM card to the <code>disabled</code> status</li>
|
|
371
415
|
* <li><code>set_standby</code> - move the SIM card to the <code>standby</code> status</li>
|
|
416
|
+
* <li><code>enable_voice</code> - enable voice calling on the SIM card</li>
|
|
417
|
+
* <li><code>disable_voice</code> - disable voice calling on the SIM card</li>
|
|
372
418
|
* </ul>
|
|
373
419
|
*/
|
|
374
|
-
action_type?:
|
|
420
|
+
action_type?:
|
|
421
|
+
| 'enable'
|
|
422
|
+
| 'enable_standby_sim_card'
|
|
423
|
+
| 'disable'
|
|
424
|
+
| 'set_standby'
|
|
425
|
+
| 'enable_voice'
|
|
426
|
+
| 'disable_voice';
|
|
375
427
|
|
|
376
428
|
/**
|
|
377
429
|
* ISO 8601 formatted date-time indicating when the resource was created.
|
|
@@ -455,6 +507,14 @@ export interface ActionDisableResponse {
|
|
|
455
507
|
data?: WirelessSimCardAction;
|
|
456
508
|
}
|
|
457
509
|
|
|
510
|
+
export interface ActionDisableVoiceResponse {
|
|
511
|
+
/**
|
|
512
|
+
* This object represents a SIM card action. It allows tracking the current status
|
|
513
|
+
* of an operation that impacts the SIM card.
|
|
514
|
+
*/
|
|
515
|
+
data?: WirelessSimCardAction;
|
|
516
|
+
}
|
|
517
|
+
|
|
458
518
|
export interface ActionEnableResponse {
|
|
459
519
|
/**
|
|
460
520
|
* This object represents a SIM card action. It allows tracking the current status
|
|
@@ -463,6 +523,14 @@ export interface ActionEnableResponse {
|
|
|
463
523
|
data?: WirelessSimCardAction;
|
|
464
524
|
}
|
|
465
525
|
|
|
526
|
+
export interface ActionEnableVoiceResponse {
|
|
527
|
+
/**
|
|
528
|
+
* This object represents a SIM card action. It allows tracking the current status
|
|
529
|
+
* of an operation that impacts the SIM card.
|
|
530
|
+
*/
|
|
531
|
+
data?: WirelessSimCardAction;
|
|
532
|
+
}
|
|
533
|
+
|
|
466
534
|
export interface ActionRemovePublicIPResponse {
|
|
467
535
|
/**
|
|
468
536
|
* This object represents a SIM card action. It allows tracking the current status
|
|
@@ -537,7 +605,9 @@ export namespace ActionListParams {
|
|
|
537
605
|
| 'disable'
|
|
538
606
|
| 'set_standby'
|
|
539
607
|
| 'remove_public_ip'
|
|
540
|
-
| 'set_public_ip'
|
|
608
|
+
| 'set_public_ip'
|
|
609
|
+
| 'enable_voice'
|
|
610
|
+
| 'disable_voice';
|
|
541
611
|
|
|
542
612
|
/**
|
|
543
613
|
* Filter by a bulk SIM card action ID.
|
|
@@ -578,6 +648,24 @@ export interface ActionBulkDisableVoiceParams {
|
|
|
578
648
|
|
|
579
649
|
export interface ActionBulkEnableVoiceParams {
|
|
580
650
|
sim_card_group_id: string;
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* The identifier of the Mobile Voice Connection to associate with the SIM cards.
|
|
654
|
+
* The connection must be owned by the same user and of type
|
|
655
|
+
* <code>mobile_voice</code>. If omitted, voice is enabled without a connection
|
|
656
|
+
* association.
|
|
657
|
+
*/
|
|
658
|
+
connection_id?: string;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
export interface ActionEnableVoiceParams {
|
|
662
|
+
/**
|
|
663
|
+
* The identifier of the Mobile Voice Connection to associate with this SIM card.
|
|
664
|
+
* The connection must be owned by the same user and of type
|
|
665
|
+
* <code>mobile_voice</code>. If omitted, voice is enabled without a connection
|
|
666
|
+
* association.
|
|
667
|
+
*/
|
|
668
|
+
connection_id?: string;
|
|
581
669
|
}
|
|
582
670
|
|
|
583
671
|
export declare namespace Actions {
|
|
@@ -590,7 +678,9 @@ export declare namespace Actions {
|
|
|
590
678
|
type ActionBulkEnableVoiceResponse as ActionBulkEnableVoiceResponse,
|
|
591
679
|
type ActionBulkSetPublicIPsResponse as ActionBulkSetPublicIPsResponse,
|
|
592
680
|
type ActionDisableResponse as ActionDisableResponse,
|
|
681
|
+
type ActionDisableVoiceResponse as ActionDisableVoiceResponse,
|
|
593
682
|
type ActionEnableResponse as ActionEnableResponse,
|
|
683
|
+
type ActionEnableVoiceResponse as ActionEnableVoiceResponse,
|
|
594
684
|
type ActionRemovePublicIPResponse as ActionRemovePublicIPResponse,
|
|
595
685
|
type ActionSetPublicIPResponse as ActionSetPublicIPResponse,
|
|
596
686
|
type ActionSetStandbyResponse as ActionSetStandbyResponse,
|
|
@@ -602,5 +692,6 @@ export declare namespace Actions {
|
|
|
602
692
|
type ActionSetPublicIPParams as ActionSetPublicIPParams,
|
|
603
693
|
type ActionBulkDisableVoiceParams as ActionBulkDisableVoiceParams,
|
|
604
694
|
type ActionBulkEnableVoiceParams as ActionBulkEnableVoiceParams,
|
|
695
|
+
type ActionEnableVoiceParams as ActionEnableVoiceParams,
|
|
605
696
|
};
|
|
606
697
|
}
|
|
@@ -10,7 +10,9 @@ export {
|
|
|
10
10
|
type ActionBulkEnableVoiceResponse,
|
|
11
11
|
type ActionBulkSetPublicIPsResponse,
|
|
12
12
|
type ActionDisableResponse,
|
|
13
|
+
type ActionDisableVoiceResponse,
|
|
13
14
|
type ActionEnableResponse,
|
|
15
|
+
type ActionEnableVoiceResponse,
|
|
14
16
|
type ActionRemovePublicIPResponse,
|
|
15
17
|
type ActionSetPublicIPResponse,
|
|
16
18
|
type ActionSetStandbyResponse,
|
|
@@ -21,6 +23,7 @@ export {
|
|
|
21
23
|
type ActionSetPublicIPParams,
|
|
22
24
|
type ActionBulkDisableVoiceParams,
|
|
23
25
|
type ActionBulkEnableVoiceParams,
|
|
26
|
+
type ActionEnableVoiceParams,
|
|
24
27
|
type WirelessSimCardActionsDefaultFlatPagination,
|
|
25
28
|
} from './actions';
|
|
26
29
|
export {
|
|
@@ -12,7 +12,10 @@ import {
|
|
|
12
12
|
ActionBulkSetPublicIPsParams,
|
|
13
13
|
ActionBulkSetPublicIPsResponse,
|
|
14
14
|
ActionDisableResponse,
|
|
15
|
+
ActionDisableVoiceResponse,
|
|
15
16
|
ActionEnableResponse,
|
|
17
|
+
ActionEnableVoiceParams,
|
|
18
|
+
ActionEnableVoiceResponse,
|
|
16
19
|
ActionListParams,
|
|
17
20
|
ActionRemovePublicIPResponse,
|
|
18
21
|
ActionRetrieveResponse,
|
|
@@ -778,7 +781,9 @@ export declare namespace SimCards {
|
|
|
778
781
|
type ActionBulkEnableVoiceResponse as ActionBulkEnableVoiceResponse,
|
|
779
782
|
type ActionBulkSetPublicIPsResponse as ActionBulkSetPublicIPsResponse,
|
|
780
783
|
type ActionDisableResponse as ActionDisableResponse,
|
|
784
|
+
type ActionDisableVoiceResponse as ActionDisableVoiceResponse,
|
|
781
785
|
type ActionEnableResponse as ActionEnableResponse,
|
|
786
|
+
type ActionEnableVoiceResponse as ActionEnableVoiceResponse,
|
|
782
787
|
type ActionRemovePublicIPResponse as ActionRemovePublicIPResponse,
|
|
783
788
|
type ActionSetPublicIPResponse as ActionSetPublicIPResponse,
|
|
784
789
|
type ActionSetStandbyResponse as ActionSetStandbyResponse,
|
|
@@ -790,6 +795,7 @@ export declare namespace SimCards {
|
|
|
790
795
|
type ActionSetPublicIPParams as ActionSetPublicIPParams,
|
|
791
796
|
type ActionBulkDisableVoiceParams as ActionBulkDisableVoiceParams,
|
|
792
797
|
type ActionBulkEnableVoiceParams as ActionBulkEnableVoiceParams,
|
|
798
|
+
type ActionEnableVoiceParams as ActionEnableVoiceParams,
|
|
793
799
|
};
|
|
794
800
|
}
|
|
795
801
|
|
|
@@ -17,6 +17,7 @@ export {
|
|
|
17
17
|
} from './cloudfs/index';
|
|
18
18
|
export {
|
|
19
19
|
Kvs,
|
|
20
|
+
type EdgeComputePaginationMeta,
|
|
20
21
|
type KvNamespace,
|
|
21
22
|
type KvNamespaceResponseWrapper,
|
|
22
23
|
type KvListParams,
|
|
@@ -40,4 +41,13 @@ export {
|
|
|
40
41
|
type MigrationListResponse,
|
|
41
42
|
type MigrationCreateParams,
|
|
42
43
|
} from './migrations/index';
|
|
44
|
+
export {
|
|
45
|
+
Sqldbs,
|
|
46
|
+
type SqlDatabase,
|
|
47
|
+
type SqlDatabaseResponseWrapper,
|
|
48
|
+
type SqldbListParams,
|
|
49
|
+
type SqldbCreateParams,
|
|
50
|
+
type SqldbDeleteParams,
|
|
51
|
+
type SqlDatabasesDefaultFlatPagination,
|
|
52
|
+
} from './sqldbs/index';
|
|
43
53
|
export { Storage, type StorageListMigrationSourceCoverageResponse } from './storage';
|
|
@@ -95,6 +95,16 @@ export class Kvs extends APIResource {
|
|
|
95
95
|
|
|
96
96
|
export type KvNamespacesDefaultFlatPagination = DefaultFlatPagination<KvNamespace>;
|
|
97
97
|
|
|
98
|
+
export interface EdgeComputePaginationMeta {
|
|
99
|
+
page_number?: number;
|
|
100
|
+
|
|
101
|
+
page_size?: number;
|
|
102
|
+
|
|
103
|
+
total_pages?: number;
|
|
104
|
+
|
|
105
|
+
total_results?: number;
|
|
106
|
+
}
|
|
107
|
+
|
|
98
108
|
export interface KvNamespace {
|
|
99
109
|
id?: string;
|
|
100
110
|
|
|
@@ -130,6 +140,7 @@ Kvs.Keys = Keys;
|
|
|
130
140
|
|
|
131
141
|
export declare namespace Kvs {
|
|
132
142
|
export {
|
|
143
|
+
type EdgeComputePaginationMeta as EdgeComputePaginationMeta,
|
|
133
144
|
type KvNamespace as KvNamespace,
|
|
134
145
|
type KvNamespaceResponseWrapper as KvNamespaceResponseWrapper,
|
|
135
146
|
type KvNamespacesDefaultFlatPagination as KvNamespacesDefaultFlatPagination,
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
6
|
+
import { path } from '../../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Manage SQL databases and run SQL against them
|
|
10
|
+
*/
|
|
11
|
+
export class Actions extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Runs SQL against the database and returns the resulting rows — empty for
|
|
14
|
+
* statements that return none, such as DDL. Bind positional `?` placeholders with
|
|
15
|
+
* `params` rather than interpolating values into the SQL string.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const response = await client.storage.sqldbs.actions.query(
|
|
20
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
21
|
+
* { sql: 'SELECT * FROM users WHERE name = ?' },
|
|
22
|
+
* );
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
query(id: string, body: ActionQueryParams, options?: RequestOptions): APIPromise<ActionQueryResponse> {
|
|
26
|
+
return this._client.post(path`/storage/sqldbs/${id}/actions/query`, { body, ...options });
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface ActionQueryResponse {
|
|
31
|
+
data?: ActionQueryResponse.Data;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export namespace ActionQueryResponse {
|
|
35
|
+
export interface Data {
|
|
36
|
+
/**
|
|
37
|
+
* Number of rows returned.
|
|
38
|
+
*/
|
|
39
|
+
count?: number;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Wall-clock duration of the request, in milliseconds.
|
|
43
|
+
*/
|
|
44
|
+
duration?: number;
|
|
45
|
+
|
|
46
|
+
meta?: Data.Meta;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* The result rows, each a map of column name to value. Empty for statements that
|
|
50
|
+
* return no rows.
|
|
51
|
+
*/
|
|
52
|
+
results?: Array<{ [key: string]: unknown }>;
|
|
53
|
+
|
|
54
|
+
success?: boolean;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export namespace Data {
|
|
58
|
+
export interface Meta {
|
|
59
|
+
/**
|
|
60
|
+
* Number of rows added, changed, or removed by the statement.
|
|
61
|
+
*/
|
|
62
|
+
changes?: number;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Wall-clock duration of the statement, in milliseconds.
|
|
66
|
+
*/
|
|
67
|
+
duration?: number;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Rowid of the last inserted row, when applicable.
|
|
71
|
+
*/
|
|
72
|
+
last_row_id?: number;
|
|
73
|
+
|
|
74
|
+
rows_read?: number;
|
|
75
|
+
|
|
76
|
+
rows_written?: number;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface ActionQueryParams {
|
|
82
|
+
/**
|
|
83
|
+
* The SQL to run. Use positional `?` placeholders and supply the values in
|
|
84
|
+
* `params` rather than interpolating them into this string.
|
|
85
|
+
*/
|
|
86
|
+
sql: string;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Positional bind parameters, in placeholder order. Each value is a string, a
|
|
90
|
+
* number, a boolean, or null; booleans are cast to `1`/`0`. The count must match
|
|
91
|
+
* the number of `?` placeholders exactly — a mismatch is rejected with 422 rather
|
|
92
|
+
* than binding null for the ones you left out. (Not enforced for multi-statement
|
|
93
|
+
* scripts or named parameters, where the placeholder count is not the number
|
|
94
|
+
* bound.)
|
|
95
|
+
*/
|
|
96
|
+
params?: Array<string | number | boolean | null>;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export declare namespace Actions {
|
|
100
|
+
export { type ActionQueryResponse as ActionQueryResponse, type ActionQueryParams as ActionQueryParams };
|
|
101
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export { Actions, type ActionQueryResponse, type ActionQueryParams } from './actions';
|
|
4
|
+
export {
|
|
5
|
+
Sqldbs,
|
|
6
|
+
type SqlDatabase,
|
|
7
|
+
type SqlDatabaseResponseWrapper,
|
|
8
|
+
type SqldbListParams,
|
|
9
|
+
type SqldbCreateParams,
|
|
10
|
+
type SqldbDeleteParams,
|
|
11
|
+
type SqlDatabasesDefaultFlatPagination,
|
|
12
|
+
} from './sqldbs';
|