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
|
@@ -18,7 +18,10 @@ export declare class Voicemail extends APIResource {
|
|
|
18
18
|
*/
|
|
19
19
|
retrieve(phoneNumberID: string, options?: RequestOptions): APIPromise<VoicemailRetrieveResponse>;
|
|
20
20
|
/**
|
|
21
|
-
* Update voicemail settings for a phone number
|
|
21
|
+
* Update voicemail settings for a phone number. You can also configure a custom
|
|
22
|
+
* greeting by setting the `greeting` object: use `mode` `custom_greeting` together
|
|
23
|
+
* with a `media_name` that points to an audio file uploaded through the Media
|
|
24
|
+
* Storage API, or `mode` `default` to use the standard system greeting.
|
|
22
25
|
*
|
|
23
26
|
* @example
|
|
24
27
|
* ```ts
|
|
@@ -30,7 +33,10 @@ export declare class Voicemail extends APIResource {
|
|
|
30
33
|
*/
|
|
31
34
|
update(phoneNumberID: string, body: VoicemailUpdateParams, options?: RequestOptions): APIPromise<VoicemailUpdateResponse>;
|
|
32
35
|
/**
|
|
33
|
-
* Create voicemail settings for a phone number
|
|
36
|
+
* Create voicemail settings for a phone number. You can also configure a custom
|
|
37
|
+
* greeting by setting the `greeting` object: use `mode` `custom_greeting` together
|
|
38
|
+
* with a `media_name` that points to an audio file uploaded through the Media
|
|
39
|
+
* Storage API, or `mode` `default` to use the standard system greeting.
|
|
34
40
|
*
|
|
35
41
|
* @example
|
|
36
42
|
* ```ts
|
|
@@ -47,21 +53,83 @@ export interface VoicemailPrefResponse {
|
|
|
47
53
|
* Whether voicemail is enabled.
|
|
48
54
|
*/
|
|
49
55
|
enabled?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Controls the greeting a caller hears before leaving a voicemail. Set `mode` to
|
|
58
|
+
* `default` to play the standard system greeting, or to `custom_greeting` to play
|
|
59
|
+
* your own audio. When `mode` is `custom_greeting`, `media_name` is required and
|
|
60
|
+
* must reference an audio file already uploaded to your account through the Media
|
|
61
|
+
* Storage API.
|
|
62
|
+
*/
|
|
63
|
+
greeting?: VoicemailPrefResponse.Greeting;
|
|
50
64
|
/**
|
|
51
65
|
* The pin used for the voicemail.
|
|
52
66
|
*/
|
|
53
67
|
pin?: string;
|
|
54
68
|
}
|
|
69
|
+
export declare namespace VoicemailPrefResponse {
|
|
70
|
+
/**
|
|
71
|
+
* Controls the greeting a caller hears before leaving a voicemail. Set `mode` to
|
|
72
|
+
* `default` to play the standard system greeting, or to `custom_greeting` to play
|
|
73
|
+
* your own audio. When `mode` is `custom_greeting`, `media_name` is required and
|
|
74
|
+
* must reference an audio file already uploaded to your account through the Media
|
|
75
|
+
* Storage API.
|
|
76
|
+
*/
|
|
77
|
+
interface Greeting {
|
|
78
|
+
/**
|
|
79
|
+
* The name of the media file to play as the greeting. Required when `mode` is
|
|
80
|
+
* `custom_greeting`; ignored when `mode` is `default`. The value must match the
|
|
81
|
+
* `media_name` of a file you previously uploaded with the Media Storage API
|
|
82
|
+
* (`POST /v2/media`).
|
|
83
|
+
*/
|
|
84
|
+
media_name?: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* The greeting mode. `default` plays the standard system greeting.
|
|
87
|
+
* `custom_greeting` plays the audio referenced by `media_name`.
|
|
88
|
+
*/
|
|
89
|
+
mode?: 'default' | 'custom_greeting';
|
|
90
|
+
}
|
|
91
|
+
}
|
|
55
92
|
export interface VoicemailRequest {
|
|
56
93
|
/**
|
|
57
94
|
* Whether voicemail is enabled.
|
|
58
95
|
*/
|
|
59
96
|
enabled?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Controls the greeting a caller hears before leaving a voicemail. Set `mode` to
|
|
99
|
+
* `default` to play the standard system greeting, or to `custom_greeting` to play
|
|
100
|
+
* your own audio. When `mode` is `custom_greeting`, `media_name` is required and
|
|
101
|
+
* must reference an audio file already uploaded to your account through the Media
|
|
102
|
+
* Storage API.
|
|
103
|
+
*/
|
|
104
|
+
greeting?: VoicemailRequest.Greeting;
|
|
60
105
|
/**
|
|
61
106
|
* The pin used for voicemail
|
|
62
107
|
*/
|
|
63
108
|
pin?: string;
|
|
64
109
|
}
|
|
110
|
+
export declare namespace VoicemailRequest {
|
|
111
|
+
/**
|
|
112
|
+
* Controls the greeting a caller hears before leaving a voicemail. Set `mode` to
|
|
113
|
+
* `default` to play the standard system greeting, or to `custom_greeting` to play
|
|
114
|
+
* your own audio. When `mode` is `custom_greeting`, `media_name` is required and
|
|
115
|
+
* must reference an audio file already uploaded to your account through the Media
|
|
116
|
+
* Storage API.
|
|
117
|
+
*/
|
|
118
|
+
interface Greeting {
|
|
119
|
+
/**
|
|
120
|
+
* The name of the media file to play as the greeting. Required when `mode` is
|
|
121
|
+
* `custom_greeting`; ignored when `mode` is `default`. The value must match the
|
|
122
|
+
* `media_name` of a file you previously uploaded with the Media Storage API
|
|
123
|
+
* (`POST /v2/media`).
|
|
124
|
+
*/
|
|
125
|
+
media_name?: string | null;
|
|
126
|
+
/**
|
|
127
|
+
* The greeting mode. `default` plays the standard system greeting.
|
|
128
|
+
* `custom_greeting` plays the audio referenced by `media_name`.
|
|
129
|
+
*/
|
|
130
|
+
mode?: 'default' | 'custom_greeting';
|
|
131
|
+
}
|
|
132
|
+
}
|
|
65
133
|
export interface VoicemailCreateResponse {
|
|
66
134
|
data?: VoicemailPrefResponse;
|
|
67
135
|
}
|
|
@@ -76,21 +144,83 @@ export interface VoicemailUpdateParams {
|
|
|
76
144
|
* Whether voicemail is enabled.
|
|
77
145
|
*/
|
|
78
146
|
enabled?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Controls the greeting a caller hears before leaving a voicemail. Set `mode` to
|
|
149
|
+
* `default` to play the standard system greeting, or to `custom_greeting` to play
|
|
150
|
+
* your own audio. When `mode` is `custom_greeting`, `media_name` is required and
|
|
151
|
+
* must reference an audio file already uploaded to your account through the Media
|
|
152
|
+
* Storage API.
|
|
153
|
+
*/
|
|
154
|
+
greeting?: VoicemailUpdateParams.Greeting;
|
|
79
155
|
/**
|
|
80
156
|
* The pin used for voicemail
|
|
81
157
|
*/
|
|
82
158
|
pin?: string;
|
|
83
159
|
}
|
|
160
|
+
export declare namespace VoicemailUpdateParams {
|
|
161
|
+
/**
|
|
162
|
+
* Controls the greeting a caller hears before leaving a voicemail. Set `mode` to
|
|
163
|
+
* `default` to play the standard system greeting, or to `custom_greeting` to play
|
|
164
|
+
* your own audio. When `mode` is `custom_greeting`, `media_name` is required and
|
|
165
|
+
* must reference an audio file already uploaded to your account through the Media
|
|
166
|
+
* Storage API.
|
|
167
|
+
*/
|
|
168
|
+
interface Greeting {
|
|
169
|
+
/**
|
|
170
|
+
* The name of the media file to play as the greeting. Required when `mode` is
|
|
171
|
+
* `custom_greeting`; ignored when `mode` is `default`. The value must match the
|
|
172
|
+
* `media_name` of a file you previously uploaded with the Media Storage API
|
|
173
|
+
* (`POST /v2/media`).
|
|
174
|
+
*/
|
|
175
|
+
media_name?: string | null;
|
|
176
|
+
/**
|
|
177
|
+
* The greeting mode. `default` plays the standard system greeting.
|
|
178
|
+
* `custom_greeting` plays the audio referenced by `media_name`.
|
|
179
|
+
*/
|
|
180
|
+
mode?: 'default' | 'custom_greeting';
|
|
181
|
+
}
|
|
182
|
+
}
|
|
84
183
|
export interface VoicemailCreateParams {
|
|
85
184
|
/**
|
|
86
185
|
* Whether voicemail is enabled.
|
|
87
186
|
*/
|
|
88
187
|
enabled?: boolean;
|
|
188
|
+
/**
|
|
189
|
+
* Controls the greeting a caller hears before leaving a voicemail. Set `mode` to
|
|
190
|
+
* `default` to play the standard system greeting, or to `custom_greeting` to play
|
|
191
|
+
* your own audio. When `mode` is `custom_greeting`, `media_name` is required and
|
|
192
|
+
* must reference an audio file already uploaded to your account through the Media
|
|
193
|
+
* Storage API.
|
|
194
|
+
*/
|
|
195
|
+
greeting?: VoicemailCreateParams.Greeting;
|
|
89
196
|
/**
|
|
90
197
|
* The pin used for voicemail
|
|
91
198
|
*/
|
|
92
199
|
pin?: string;
|
|
93
200
|
}
|
|
201
|
+
export declare namespace VoicemailCreateParams {
|
|
202
|
+
/**
|
|
203
|
+
* Controls the greeting a caller hears before leaving a voicemail. Set `mode` to
|
|
204
|
+
* `default` to play the standard system greeting, or to `custom_greeting` to play
|
|
205
|
+
* your own audio. When `mode` is `custom_greeting`, `media_name` is required and
|
|
206
|
+
* must reference an audio file already uploaded to your account through the Media
|
|
207
|
+
* Storage API.
|
|
208
|
+
*/
|
|
209
|
+
interface Greeting {
|
|
210
|
+
/**
|
|
211
|
+
* The name of the media file to play as the greeting. Required when `mode` is
|
|
212
|
+
* `custom_greeting`; ignored when `mode` is `default`. The value must match the
|
|
213
|
+
* `media_name` of a file you previously uploaded with the Media Storage API
|
|
214
|
+
* (`POST /v2/media`).
|
|
215
|
+
*/
|
|
216
|
+
media_name?: string | null;
|
|
217
|
+
/**
|
|
218
|
+
* The greeting mode. `default` plays the standard system greeting.
|
|
219
|
+
* `custom_greeting` plays the audio referenced by `media_name`.
|
|
220
|
+
*/
|
|
221
|
+
mode?: 'default' | 'custom_greeting';
|
|
222
|
+
}
|
|
223
|
+
}
|
|
94
224
|
export declare namespace Voicemail {
|
|
95
225
|
export { type VoicemailPrefResponse as VoicemailPrefResponse, type VoicemailRequest as VoicemailRequest, type VoicemailCreateResponse as VoicemailCreateResponse, type VoicemailRetrieveResponse as VoicemailRetrieveResponse, type VoicemailUpdateResponse as VoicemailUpdateResponse, type VoicemailUpdateParams as VoicemailUpdateParams, type VoicemailCreateParams as VoicemailCreateParams, };
|
|
96
226
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voicemail.d.ts","sourceRoot":"","sources":["../../src/resources/phone-numbers/voicemail.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;IAIhG
|
|
1
|
+
{"version":3,"file":"voicemail.d.ts","sourceRoot":"","sources":["../../src/resources/phone-numbers/voicemail.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;IAIhG;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,qBAAqB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAItC;;;;;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CAAC;IAElB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,qBAAqB,CAAC,QAAQ,CAAC;IAE1C;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,yBAAiB,qBAAqB,CAAC;IACrC;;;;;;OAMG;IACH,UAAiB,QAAQ;QACvB;;;;;WAKG;QACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B;;;WAGG;QACH,IAAI,CAAC,EAAE,SAAS,GAAG,iBAAiB,CAAC;KACtC;CACF;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,qBAAqB,CAAC,QAAQ,CAAC;IAE1C;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,yBAAiB,qBAAqB,CAAC;IACrC;;;;;;OAMG;IACH,UAAiB,QAAQ;QACvB;;;;;WAKG;QACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B;;;WAGG;QACH,IAAI,CAAC,EAAE,SAAS,GAAG,iBAAiB,CAAC;KACtC;CACF;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -23,7 +23,10 @@ class Voicemail extends resource_1.APIResource {
|
|
|
23
23
|
return this._client.get((0, path_1.path) `/phone_numbers/${phoneNumberID}/voicemail`, options);
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
* Update voicemail settings for a phone number
|
|
26
|
+
* Update voicemail settings for a phone number. You can also configure a custom
|
|
27
|
+
* greeting by setting the `greeting` object: use `mode` `custom_greeting` together
|
|
28
|
+
* with a `media_name` that points to an audio file uploaded through the Media
|
|
29
|
+
* Storage API, or `mode` `default` to use the standard system greeting.
|
|
27
30
|
*
|
|
28
31
|
* @example
|
|
29
32
|
* ```ts
|
|
@@ -37,7 +40,10 @@ class Voicemail extends resource_1.APIResource {
|
|
|
37
40
|
return this._client.patch((0, path_1.path) `/phone_numbers/${phoneNumberID}/voicemail`, { body, ...options });
|
|
38
41
|
}
|
|
39
42
|
/**
|
|
40
|
-
* Create voicemail settings for a phone number
|
|
43
|
+
* Create voicemail settings for a phone number. You can also configure a custom
|
|
44
|
+
* greeting by setting the `greeting` object: use `mode` `custom_greeting` together
|
|
45
|
+
* with a `media_name` that points to an audio file uploaded through the Media
|
|
46
|
+
* Storage API, or `mode` `default` to use the standard system greeting.
|
|
41
47
|
*
|
|
42
48
|
* @example
|
|
43
49
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voicemail.js","sourceRoot":"","sources":["../../src/resources/phone-numbers/voicemail.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,aAAqB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,aAAa,YAAY,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"voicemail.js","sourceRoot":"","sources":["../../src/resources/phone-numbers/voicemail.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,aAAqB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,aAAa,YAAY,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,aAAqB,EACrB,IAA2B,EAC3B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,kBAAkB,aAAa,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,aAAqB,EACrB,IAA2B,EAC3B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,kBAAkB,aAAa,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClG,CAAC;CACF;AA3DD,8BA2DC"}
|
|
@@ -20,7 +20,10 @@ export class Voicemail extends APIResource {
|
|
|
20
20
|
return this._client.get(path `/phone_numbers/${phoneNumberID}/voicemail`, options);
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Update voicemail settings for a phone number
|
|
23
|
+
* Update voicemail settings for a phone number. You can also configure a custom
|
|
24
|
+
* greeting by setting the `greeting` object: use `mode` `custom_greeting` together
|
|
25
|
+
* with a `media_name` that points to an audio file uploaded through the Media
|
|
26
|
+
* Storage API, or `mode` `default` to use the standard system greeting.
|
|
24
27
|
*
|
|
25
28
|
* @example
|
|
26
29
|
* ```ts
|
|
@@ -34,7 +37,10 @@ export class Voicemail extends APIResource {
|
|
|
34
37
|
return this._client.patch(path `/phone_numbers/${phoneNumberID}/voicemail`, { body, ...options });
|
|
35
38
|
}
|
|
36
39
|
/**
|
|
37
|
-
* Create voicemail settings for a phone number
|
|
40
|
+
* Create voicemail settings for a phone number. You can also configure a custom
|
|
41
|
+
* greeting by setting the `greeting` object: use `mode` `custom_greeting` together
|
|
42
|
+
* with a `media_name` that points to an audio file uploaded through the Media
|
|
43
|
+
* Storage API, or `mode` `default` to use the standard system greeting.
|
|
38
44
|
*
|
|
39
45
|
* @example
|
|
40
46
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voicemail.mjs","sourceRoot":"","sources":["../../src/resources/phone-numbers/voicemail.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,aAAqB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,aAAa,YAAY,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"voicemail.mjs","sourceRoot":"","sources":["../../src/resources/phone-numbers/voicemail.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,aAAqB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,aAAa,YAAY,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,aAAqB,EACrB,IAA2B,EAC3B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,kBAAkB,aAAa,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,aAAqB,EACrB,IAA2B,EAC3B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,kBAAkB,aAAa,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClG,CAAC;CACF"}
|
|
@@ -104,7 +104,7 @@ export interface PrivateWirelessGateway {
|
|
|
104
104
|
export interface PrivateWirelessGatewayStatus {
|
|
105
105
|
/**
|
|
106
106
|
* This attribute is an
|
|
107
|
-
* [error code](https://developers.telnyx.com/development/api-fundamentals/api-errors)
|
|
107
|
+
* [error code](https://developers.telnyx.com/docs/development/api-fundamentals/api-errors)
|
|
108
108
|
* related to the failure reason.
|
|
109
109
|
*/
|
|
110
110
|
error_code?: string | null;
|
|
@@ -104,7 +104,7 @@ export interface PrivateWirelessGateway {
|
|
|
104
104
|
export interface PrivateWirelessGatewayStatus {
|
|
105
105
|
/**
|
|
106
106
|
* This attribute is an
|
|
107
|
-
* [error code](https://developers.telnyx.com/development/api-fundamentals/api-errors)
|
|
107
|
+
* [error code](https://developers.telnyx.com/docs/development/api-fundamentals/api-errors)
|
|
108
108
|
* related to the failure reason.
|
|
109
109
|
*/
|
|
110
110
|
error_code?: string | null;
|
|
@@ -182,6 +182,40 @@ export declare class Actions extends APIResource {
|
|
|
182
182
|
* ```
|
|
183
183
|
*/
|
|
184
184
|
bulkEnableVoice(body: ActionBulkEnableVoiceParams, options?: RequestOptions): APIPromise<ActionBulkEnableVoiceResponse>;
|
|
185
|
+
/**
|
|
186
|
+
* This API disables voice calling on a SIM card. The SIM card will no longer be
|
|
187
|
+
* able to make or receive calls.<br/> The API will trigger an asynchronous
|
|
188
|
+
* operation called a SIM Card Action. The status of the SIM Card Action can be
|
|
189
|
+
* followed through the
|
|
190
|
+
* [List SIM Card Action](https://developers.telnyx.com/api-reference/sim-card-actions/list-sim-card-actions)
|
|
191
|
+
* API.
|
|
192
|
+
*
|
|
193
|
+
* @example
|
|
194
|
+
* ```ts
|
|
195
|
+
* const response = await client.simCards.actions.disableVoice(
|
|
196
|
+
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
197
|
+
* );
|
|
198
|
+
* ```
|
|
199
|
+
*/
|
|
200
|
+
disableVoice(id: string, options?: RequestOptions): APIPromise<ActionDisableVoiceResponse>;
|
|
201
|
+
/**
|
|
202
|
+
* This API enables voice calling on a SIM card. When a <code>connection_id</code>
|
|
203
|
+
* is provided, the SIM is associated with the specified Mobile Voice Connection.
|
|
204
|
+
* The connection must be owned by the same user and of type
|
|
205
|
+
* <code>mobile_voice</code>.<br/> The API will trigger an asynchronous operation
|
|
206
|
+
* called a SIM Card Action. The status of the SIM Card Action can be followed
|
|
207
|
+
* through the
|
|
208
|
+
* [List SIM Card Action](https://developers.telnyx.com/api-reference/sim-card-actions/list-sim-card-actions)
|
|
209
|
+
* API.
|
|
210
|
+
*
|
|
211
|
+
* @example
|
|
212
|
+
* ```ts
|
|
213
|
+
* const response = await client.simCards.actions.enableVoice(
|
|
214
|
+
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
215
|
+
* );
|
|
216
|
+
* ```
|
|
217
|
+
*/
|
|
218
|
+
enableVoice(id: string, body?: ActionEnableVoiceParams | null | undefined, options?: RequestOptions): APIPromise<ActionEnableVoiceResponse>;
|
|
185
219
|
}
|
|
186
220
|
export type WirelessSimCardActionsDefaultFlatPagination = DefaultFlatPagination<WirelessSimCardAction>;
|
|
187
221
|
/**
|
|
@@ -292,9 +326,11 @@ export interface WirelessSimCardAction {
|
|
|
292
326
|
* <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>
|
|
293
327
|
* <li><code>disable</code> - move the SIM card to the <code>disabled</code> status</li>
|
|
294
328
|
* <li><code>set_standby</code> - move the SIM card to the <code>standby</code> status</li>
|
|
329
|
+
* <li><code>enable_voice</code> - enable voice calling on the SIM card</li>
|
|
330
|
+
* <li><code>disable_voice</code> - disable voice calling on the SIM card</li>
|
|
295
331
|
* </ul>
|
|
296
332
|
*/
|
|
297
|
-
action_type?: 'enable' | 'enable_standby_sim_card' | 'disable' | 'set_standby';
|
|
333
|
+
action_type?: 'enable' | 'enable_standby_sim_card' | 'disable' | 'set_standby' | 'enable_voice' | 'disable_voice';
|
|
298
334
|
/**
|
|
299
335
|
* ISO 8601 formatted date-time indicating when the resource was created.
|
|
300
336
|
*/
|
|
@@ -366,6 +402,13 @@ export interface ActionDisableResponse {
|
|
|
366
402
|
*/
|
|
367
403
|
data?: WirelessSimCardAction;
|
|
368
404
|
}
|
|
405
|
+
export interface ActionDisableVoiceResponse {
|
|
406
|
+
/**
|
|
407
|
+
* This object represents a SIM card action. It allows tracking the current status
|
|
408
|
+
* of an operation that impacts the SIM card.
|
|
409
|
+
*/
|
|
410
|
+
data?: WirelessSimCardAction;
|
|
411
|
+
}
|
|
369
412
|
export interface ActionEnableResponse {
|
|
370
413
|
/**
|
|
371
414
|
* This object represents a SIM card action. It allows tracking the current status
|
|
@@ -373,6 +416,13 @@ export interface ActionEnableResponse {
|
|
|
373
416
|
*/
|
|
374
417
|
data?: WirelessSimCardAction;
|
|
375
418
|
}
|
|
419
|
+
export interface ActionEnableVoiceResponse {
|
|
420
|
+
/**
|
|
421
|
+
* This object represents a SIM card action. It allows tracking the current status
|
|
422
|
+
* of an operation that impacts the SIM card.
|
|
423
|
+
*/
|
|
424
|
+
data?: WirelessSimCardAction;
|
|
425
|
+
}
|
|
376
426
|
export interface ActionRemovePublicIPResponse {
|
|
377
427
|
/**
|
|
378
428
|
* This object represents a SIM card action. It allows tracking the current status
|
|
@@ -432,7 +482,7 @@ export declare namespace ActionListParams {
|
|
|
432
482
|
/**
|
|
433
483
|
* Filter by action type.
|
|
434
484
|
*/
|
|
435
|
-
action_type?: 'enable' | 'enable_standby_sim_card' | 'disable' | 'set_standby' | 'remove_public_ip' | 'set_public_ip';
|
|
485
|
+
action_type?: 'enable' | 'enable_standby_sim_card' | 'disable' | 'set_standby' | 'remove_public_ip' | 'set_public_ip' | 'enable_voice' | 'disable_voice';
|
|
436
486
|
/**
|
|
437
487
|
* Filter by a bulk SIM card action ID.
|
|
438
488
|
*/
|
|
@@ -465,8 +515,24 @@ export interface ActionBulkDisableVoiceParams {
|
|
|
465
515
|
}
|
|
466
516
|
export interface ActionBulkEnableVoiceParams {
|
|
467
517
|
sim_card_group_id: string;
|
|
518
|
+
/**
|
|
519
|
+
* The identifier of the Mobile Voice Connection to associate with the SIM cards.
|
|
520
|
+
* The connection must be owned by the same user and of type
|
|
521
|
+
* <code>mobile_voice</code>. If omitted, voice is enabled without a connection
|
|
522
|
+
* association.
|
|
523
|
+
*/
|
|
524
|
+
connection_id?: string;
|
|
525
|
+
}
|
|
526
|
+
export interface ActionEnableVoiceParams {
|
|
527
|
+
/**
|
|
528
|
+
* The identifier of the Mobile Voice Connection to associate with this SIM card.
|
|
529
|
+
* The connection must be owned by the same user and of type
|
|
530
|
+
* <code>mobile_voice</code>. If omitted, voice is enabled without a connection
|
|
531
|
+
* association.
|
|
532
|
+
*/
|
|
533
|
+
connection_id?: string;
|
|
468
534
|
}
|
|
469
535
|
export declare namespace Actions {
|
|
470
|
-
export { type BulkSimCardAction as BulkSimCardAction, type SimCardAction as SimCardAction, type WirelessSimCardAction as WirelessSimCardAction, type ActionRetrieveResponse as ActionRetrieveResponse, type ActionBulkDisableVoiceResponse as ActionBulkDisableVoiceResponse, type ActionBulkEnableVoiceResponse as ActionBulkEnableVoiceResponse, type ActionBulkSetPublicIPsResponse as ActionBulkSetPublicIPsResponse, type ActionDisableResponse as ActionDisableResponse, type ActionEnableResponse as ActionEnableResponse, type ActionRemovePublicIPResponse as ActionRemovePublicIPResponse, type ActionSetPublicIPResponse as ActionSetPublicIPResponse, type ActionSetStandbyResponse as ActionSetStandbyResponse, type ActionValidateRegistrationCodesResponse as ActionValidateRegistrationCodesResponse, type WirelessSimCardActionsDefaultFlatPagination as WirelessSimCardActionsDefaultFlatPagination, type ActionListParams as ActionListParams, type ActionBulkSetPublicIPsParams as ActionBulkSetPublicIPsParams, type ActionValidateRegistrationCodesParams as ActionValidateRegistrationCodesParams, type ActionSetPublicIPParams as ActionSetPublicIPParams, type ActionBulkDisableVoiceParams as ActionBulkDisableVoiceParams, type ActionBulkEnableVoiceParams as ActionBulkEnableVoiceParams, };
|
|
536
|
+
export { type BulkSimCardAction as BulkSimCardAction, type SimCardAction as SimCardAction, type WirelessSimCardAction as WirelessSimCardAction, type ActionRetrieveResponse as ActionRetrieveResponse, type ActionBulkDisableVoiceResponse as ActionBulkDisableVoiceResponse, type ActionBulkEnableVoiceResponse as ActionBulkEnableVoiceResponse, type ActionBulkSetPublicIPsResponse as ActionBulkSetPublicIPsResponse, type ActionDisableResponse as ActionDisableResponse, type ActionDisableVoiceResponse as ActionDisableVoiceResponse, type ActionEnableResponse as ActionEnableResponse, type ActionEnableVoiceResponse as ActionEnableVoiceResponse, type ActionRemovePublicIPResponse as ActionRemovePublicIPResponse, type ActionSetPublicIPResponse as ActionSetPublicIPResponse, type ActionSetStandbyResponse as ActionSetStandbyResponse, type ActionValidateRegistrationCodesResponse as ActionValidateRegistrationCodesResponse, type WirelessSimCardActionsDefaultFlatPagination as WirelessSimCardActionsDefaultFlatPagination, type ActionListParams as ActionListParams, type ActionBulkSetPublicIPsParams as ActionBulkSetPublicIPsParams, type ActionValidateRegistrationCodesParams as ActionValidateRegistrationCodesParams, type ActionSetPublicIPParams as ActionSetPublicIPParams, type ActionBulkDisableVoiceParams as ActionBulkDisableVoiceParams, type ActionBulkEnableVoiceParams as ActionBulkEnableVoiceParams, type ActionEnableVoiceParams as ActionEnableVoiceParams, };
|
|
471
537
|
}
|
|
472
538
|
//# sourceMappingURL=actions.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.mts","sourceRoot":"","sources":["../../src/resources/sim-cards/act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,EAC3D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,2CAA2C,IAAI,2CAA2C,EAC/F,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -182,6 +182,40 @@ export declare class Actions extends APIResource {
|
|
|
182
182
|
* ```
|
|
183
183
|
*/
|
|
184
184
|
bulkEnableVoice(body: ActionBulkEnableVoiceParams, options?: RequestOptions): APIPromise<ActionBulkEnableVoiceResponse>;
|
|
185
|
+
/**
|
|
186
|
+
* This API disables voice calling on a SIM card. The SIM card will no longer be
|
|
187
|
+
* able to make or receive calls.<br/> The API will trigger an asynchronous
|
|
188
|
+
* operation called a SIM Card Action. The status of the SIM Card Action can be
|
|
189
|
+
* followed through the
|
|
190
|
+
* [List SIM Card Action](https://developers.telnyx.com/api-reference/sim-card-actions/list-sim-card-actions)
|
|
191
|
+
* API.
|
|
192
|
+
*
|
|
193
|
+
* @example
|
|
194
|
+
* ```ts
|
|
195
|
+
* const response = await client.simCards.actions.disableVoice(
|
|
196
|
+
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
197
|
+
* );
|
|
198
|
+
* ```
|
|
199
|
+
*/
|
|
200
|
+
disableVoice(id: string, options?: RequestOptions): APIPromise<ActionDisableVoiceResponse>;
|
|
201
|
+
/**
|
|
202
|
+
* This API enables voice calling on a SIM card. When a <code>connection_id</code>
|
|
203
|
+
* is provided, the SIM is associated with the specified Mobile Voice Connection.
|
|
204
|
+
* The connection must be owned by the same user and of type
|
|
205
|
+
* <code>mobile_voice</code>.<br/> The API will trigger an asynchronous operation
|
|
206
|
+
* called a SIM Card Action. The status of the SIM Card Action can be followed
|
|
207
|
+
* through the
|
|
208
|
+
* [List SIM Card Action](https://developers.telnyx.com/api-reference/sim-card-actions/list-sim-card-actions)
|
|
209
|
+
* API.
|
|
210
|
+
*
|
|
211
|
+
* @example
|
|
212
|
+
* ```ts
|
|
213
|
+
* const response = await client.simCards.actions.enableVoice(
|
|
214
|
+
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
215
|
+
* );
|
|
216
|
+
* ```
|
|
217
|
+
*/
|
|
218
|
+
enableVoice(id: string, body?: ActionEnableVoiceParams | null | undefined, options?: RequestOptions): APIPromise<ActionEnableVoiceResponse>;
|
|
185
219
|
}
|
|
186
220
|
export type WirelessSimCardActionsDefaultFlatPagination = DefaultFlatPagination<WirelessSimCardAction>;
|
|
187
221
|
/**
|
|
@@ -292,9 +326,11 @@ export interface WirelessSimCardAction {
|
|
|
292
326
|
* <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>
|
|
293
327
|
* <li><code>disable</code> - move the SIM card to the <code>disabled</code> status</li>
|
|
294
328
|
* <li><code>set_standby</code> - move the SIM card to the <code>standby</code> status</li>
|
|
329
|
+
* <li><code>enable_voice</code> - enable voice calling on the SIM card</li>
|
|
330
|
+
* <li><code>disable_voice</code> - disable voice calling on the SIM card</li>
|
|
295
331
|
* </ul>
|
|
296
332
|
*/
|
|
297
|
-
action_type?: 'enable' | 'enable_standby_sim_card' | 'disable' | 'set_standby';
|
|
333
|
+
action_type?: 'enable' | 'enable_standby_sim_card' | 'disable' | 'set_standby' | 'enable_voice' | 'disable_voice';
|
|
298
334
|
/**
|
|
299
335
|
* ISO 8601 formatted date-time indicating when the resource was created.
|
|
300
336
|
*/
|
|
@@ -366,6 +402,13 @@ export interface ActionDisableResponse {
|
|
|
366
402
|
*/
|
|
367
403
|
data?: WirelessSimCardAction;
|
|
368
404
|
}
|
|
405
|
+
export interface ActionDisableVoiceResponse {
|
|
406
|
+
/**
|
|
407
|
+
* This object represents a SIM card action. It allows tracking the current status
|
|
408
|
+
* of an operation that impacts the SIM card.
|
|
409
|
+
*/
|
|
410
|
+
data?: WirelessSimCardAction;
|
|
411
|
+
}
|
|
369
412
|
export interface ActionEnableResponse {
|
|
370
413
|
/**
|
|
371
414
|
* This object represents a SIM card action. It allows tracking the current status
|
|
@@ -373,6 +416,13 @@ export interface ActionEnableResponse {
|
|
|
373
416
|
*/
|
|
374
417
|
data?: WirelessSimCardAction;
|
|
375
418
|
}
|
|
419
|
+
export interface ActionEnableVoiceResponse {
|
|
420
|
+
/**
|
|
421
|
+
* This object represents a SIM card action. It allows tracking the current status
|
|
422
|
+
* of an operation that impacts the SIM card.
|
|
423
|
+
*/
|
|
424
|
+
data?: WirelessSimCardAction;
|
|
425
|
+
}
|
|
376
426
|
export interface ActionRemovePublicIPResponse {
|
|
377
427
|
/**
|
|
378
428
|
* This object represents a SIM card action. It allows tracking the current status
|
|
@@ -432,7 +482,7 @@ export declare namespace ActionListParams {
|
|
|
432
482
|
/**
|
|
433
483
|
* Filter by action type.
|
|
434
484
|
*/
|
|
435
|
-
action_type?: 'enable' | 'enable_standby_sim_card' | 'disable' | 'set_standby' | 'remove_public_ip' | 'set_public_ip';
|
|
485
|
+
action_type?: 'enable' | 'enable_standby_sim_card' | 'disable' | 'set_standby' | 'remove_public_ip' | 'set_public_ip' | 'enable_voice' | 'disable_voice';
|
|
436
486
|
/**
|
|
437
487
|
* Filter by a bulk SIM card action ID.
|
|
438
488
|
*/
|
|
@@ -465,8 +515,24 @@ export interface ActionBulkDisableVoiceParams {
|
|
|
465
515
|
}
|
|
466
516
|
export interface ActionBulkEnableVoiceParams {
|
|
467
517
|
sim_card_group_id: string;
|
|
518
|
+
/**
|
|
519
|
+
* The identifier of the Mobile Voice Connection to associate with the SIM cards.
|
|
520
|
+
* The connection must be owned by the same user and of type
|
|
521
|
+
* <code>mobile_voice</code>. If omitted, voice is enabled without a connection
|
|
522
|
+
* association.
|
|
523
|
+
*/
|
|
524
|
+
connection_id?: string;
|
|
525
|
+
}
|
|
526
|
+
export interface ActionEnableVoiceParams {
|
|
527
|
+
/**
|
|
528
|
+
* The identifier of the Mobile Voice Connection to associate with this SIM card.
|
|
529
|
+
* The connection must be owned by the same user and of type
|
|
530
|
+
* <code>mobile_voice</code>. If omitted, voice is enabled without a connection
|
|
531
|
+
* association.
|
|
532
|
+
*/
|
|
533
|
+
connection_id?: string;
|
|
468
534
|
}
|
|
469
535
|
export declare namespace Actions {
|
|
470
|
-
export { type BulkSimCardAction as BulkSimCardAction, type SimCardAction as SimCardAction, type WirelessSimCardAction as WirelessSimCardAction, type ActionRetrieveResponse as ActionRetrieveResponse, type ActionBulkDisableVoiceResponse as ActionBulkDisableVoiceResponse, type ActionBulkEnableVoiceResponse as ActionBulkEnableVoiceResponse, type ActionBulkSetPublicIPsResponse as ActionBulkSetPublicIPsResponse, type ActionDisableResponse as ActionDisableResponse, type ActionEnableResponse as ActionEnableResponse, type ActionRemovePublicIPResponse as ActionRemovePublicIPResponse, type ActionSetPublicIPResponse as ActionSetPublicIPResponse, type ActionSetStandbyResponse as ActionSetStandbyResponse, type ActionValidateRegistrationCodesResponse as ActionValidateRegistrationCodesResponse, type WirelessSimCardActionsDefaultFlatPagination as WirelessSimCardActionsDefaultFlatPagination, type ActionListParams as ActionListParams, type ActionBulkSetPublicIPsParams as ActionBulkSetPublicIPsParams, type ActionValidateRegistrationCodesParams as ActionValidateRegistrationCodesParams, type ActionSetPublicIPParams as ActionSetPublicIPParams, type ActionBulkDisableVoiceParams as ActionBulkDisableVoiceParams, type ActionBulkEnableVoiceParams as ActionBulkEnableVoiceParams, };
|
|
536
|
+
export { type BulkSimCardAction as BulkSimCardAction, type SimCardAction as SimCardAction, type WirelessSimCardAction as WirelessSimCardAction, type ActionRetrieveResponse as ActionRetrieveResponse, type ActionBulkDisableVoiceResponse as ActionBulkDisableVoiceResponse, type ActionBulkEnableVoiceResponse as ActionBulkEnableVoiceResponse, type ActionBulkSetPublicIPsResponse as ActionBulkSetPublicIPsResponse, type ActionDisableResponse as ActionDisableResponse, type ActionDisableVoiceResponse as ActionDisableVoiceResponse, type ActionEnableResponse as ActionEnableResponse, type ActionEnableVoiceResponse as ActionEnableVoiceResponse, type ActionRemovePublicIPResponse as ActionRemovePublicIPResponse, type ActionSetPublicIPResponse as ActionSetPublicIPResponse, type ActionSetStandbyResponse as ActionSetStandbyResponse, type ActionValidateRegistrationCodesResponse as ActionValidateRegistrationCodesResponse, type WirelessSimCardActionsDefaultFlatPagination as WirelessSimCardActionsDefaultFlatPagination, type ActionListParams as ActionListParams, type ActionBulkSetPublicIPsParams as ActionBulkSetPublicIPsParams, type ActionValidateRegistrationCodesParams as ActionValidateRegistrationCodesParams, type ActionSetPublicIPParams as ActionSetPublicIPParams, type ActionBulkDisableVoiceParams as ActionBulkDisableVoiceParams, type ActionBulkEnableVoiceParams as ActionBulkEnableVoiceParams, type ActionEnableVoiceParams as ActionEnableVoiceParams, };
|
|
471
537
|
}
|
|
472
538
|
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/resources/sim-cards/actions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,WAAW,EAAE,iCAA8B;AAC7G,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;OAWG;IACH,IAAI,CACF,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,2CAA2C,EAAE,qBAAqB,CAAC;IAOlF;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE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
215
215
|
return this._client.post('/sim_cards/actions/bulk_enable_voice', { body, ...options });
|
|
216
216
|
}
|
|
217
|
+
/**
|
|
218
|
+
* This API disables voice calling on a SIM card. The SIM card will no longer be
|
|
219
|
+
* able to make or receive calls.<br/> The API will trigger an asynchronous
|
|
220
|
+
* operation called a SIM Card Action. The status of the SIM Card Action can be
|
|
221
|
+
* followed through the
|
|
222
|
+
* [List SIM Card Action](https://developers.telnyx.com/api-reference/sim-card-actions/list-sim-card-actions)
|
|
223
|
+
* API.
|
|
224
|
+
*
|
|
225
|
+
* @example
|
|
226
|
+
* ```ts
|
|
227
|
+
* const response = await client.simCards.actions.disableVoice(
|
|
228
|
+
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
229
|
+
* );
|
|
230
|
+
* ```
|
|
231
|
+
*/
|
|
232
|
+
disableVoice(id, options) {
|
|
233
|
+
return this._client.post((0, path_1.path) `/sim_cards/${id}/actions/disable_voice`, options);
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* This API enables voice calling on a SIM card. When a <code>connection_id</code>
|
|
237
|
+
* is provided, the SIM is associated with the specified Mobile Voice Connection.
|
|
238
|
+
* The connection must be owned by the same user and of type
|
|
239
|
+
* <code>mobile_voice</code>.<br/> The API will trigger an asynchronous operation
|
|
240
|
+
* called a SIM Card Action. The status of the SIM Card Action can be followed
|
|
241
|
+
* through the
|
|
242
|
+
* [List SIM Card Action](https://developers.telnyx.com/api-reference/sim-card-actions/list-sim-card-actions)
|
|
243
|
+
* API.
|
|
244
|
+
*
|
|
245
|
+
* @example
|
|
246
|
+
* ```ts
|
|
247
|
+
* const response = await client.simCards.actions.enableVoice(
|
|
248
|
+
* '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
|
|
249
|
+
* );
|
|
250
|
+
* ```
|
|
251
|
+
*/
|
|
252
|
+
enableVoice(id, body = {}, options) {
|
|
253
|
+
return this._client.post((0, path_1.path) `/sim_cards/${id}/actions/enable_voice`, { body, ...options });
|
|
254
|
+
}
|
|
217
255
|
}
|
|
218
256
|
exports.Actions = Actions;
|
|
219
257
|
//# sourceMappingURL=actions.js.map
|