telnyx 6.6.0 → 6.7.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 +21 -0
- package/package.json +7 -1
- package/resources/bulk-sim-card-actions.d.mts +10 -6
- package/resources/bulk-sim-card-actions.d.mts.map +1 -1
- package/resources/bulk-sim-card-actions.d.ts +10 -6
- package/resources/bulk-sim-card-actions.d.ts.map +1 -1
- package/resources/shared.d.mts +4 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +4 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/sim-cards/actions.d.mts +144 -4
- package/resources/sim-cards/actions.d.mts.map +1 -1
- package/resources/sim-cards/actions.d.ts +144 -4
- package/resources/sim-cards/actions.d.ts.map +1 -1
- package/resources/sim-cards/actions.js +48 -0
- package/resources/sim-cards/actions.js.map +1 -1
- package/resources/sim-cards/actions.mjs +48 -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 +6 -2
- package/resources/sim-cards/sim-cards.d.mts.map +1 -1
- package/resources/sim-cards/sim-cards.d.ts +6 -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/src/resources/bulk-sim-card-actions.ts +10 -6
- package/src/resources/shared.ts +5 -0
- package/src/resources/sim-cards/actions.ts +171 -3
- package/src/resources/sim-cards/index.ts +4 -0
- package/src/resources/sim-cards/sim-cards.ts +13 -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
|
@@ -44,6 +44,62 @@ export class Actions extends APIResource {
|
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
/**
|
|
48
|
+
* This API triggers an asynchronous operation to disable voice on SIM cards
|
|
49
|
+
* belonging to a specified SIM Card Group.<br/> For each SIM Card a SIM Card
|
|
50
|
+
* Action will be generated. The status of the SIM Card Actions can be followed
|
|
51
|
+
* through the
|
|
52
|
+
* [List SIM Card Action](https://developers.telnyx.com/api-reference/sim-card-actions/list-sim-card-actions)
|
|
53
|
+
* API.
|
|
54
|
+
*
|
|
55
|
+
* The overall status of the Bulk SIM Card Action can be followed through the
|
|
56
|
+
* [List Bulk SIM Card Action](https://developers.telnyx.com/api-reference/sim-card-actions/list-bulk-sim-card-actions)
|
|
57
|
+
* API.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```ts
|
|
61
|
+
* const response =
|
|
62
|
+
* await client.simCards.actions.bulkDisableVoice({
|
|
63
|
+
* sim_card_group_id:
|
|
64
|
+
* '6b14e151-8493-4fa1-8664-1cc4e6d14158',
|
|
65
|
+
* });
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
bulkDisableVoice(
|
|
69
|
+
body: ActionBulkDisableVoiceParams,
|
|
70
|
+
options?: RequestOptions,
|
|
71
|
+
): APIPromise<ActionBulkDisableVoiceResponse> {
|
|
72
|
+
return this._client.post('/sim_cards/actions/bulk_disable_voice', { body, ...options });
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* This API triggers an asynchronous operation to enable voice on SIM cards
|
|
77
|
+
* belonging to a specified SIM Card Group.<br/> For each SIM Card a SIM Card
|
|
78
|
+
* Action will be generated. The status of the SIM Card Actions can be followed
|
|
79
|
+
* through the
|
|
80
|
+
* [List SIM Card Action](https://developers.telnyx.com/api-reference/sim-card-actions/list-sim-card-actions)
|
|
81
|
+
* API.
|
|
82
|
+
*
|
|
83
|
+
* The overall status of the Bulk SIM Card Action can be followed through the
|
|
84
|
+
* [List Bulk SIM Card Action](https://developers.telnyx.com/api-reference/sim-card-actions/list-bulk-sim-card-actions)
|
|
85
|
+
* API.
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* ```ts
|
|
89
|
+
* const response =
|
|
90
|
+
* await client.simCards.actions.bulkEnableVoice({
|
|
91
|
+
* sim_card_group_id:
|
|
92
|
+
* '6b14e151-8493-4fa1-8664-1cc4e6d14158',
|
|
93
|
+
* });
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
bulkEnableVoice(
|
|
97
|
+
body: ActionBulkEnableVoiceParams,
|
|
98
|
+
options?: RequestOptions,
|
|
99
|
+
): APIPromise<ActionBulkEnableVoiceResponse> {
|
|
100
|
+
return this._client.post('/sim_cards/actions/bulk_enable_voice', { body, ...options });
|
|
101
|
+
}
|
|
102
|
+
|
|
47
103
|
/**
|
|
48
104
|
* This API triggers an asynchronous operation to set a public IP for each of the
|
|
49
105
|
* specified SIM cards.<br/> For each SIM Card a SIM Card Action will be generated.
|
|
@@ -264,6 +320,104 @@ export interface ActionRetrieveResponse {
|
|
|
264
320
|
data?: SimCardAction;
|
|
265
321
|
}
|
|
266
322
|
|
|
323
|
+
export interface ActionBulkDisableVoiceResponse {
|
|
324
|
+
/**
|
|
325
|
+
* This object represents a bulk SIM card action. It groups SIM card actions
|
|
326
|
+
* created through a bulk endpoint under a single resource for further lookup.
|
|
327
|
+
*/
|
|
328
|
+
data?: ActionBulkDisableVoiceResponse.Data;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export namespace ActionBulkDisableVoiceResponse {
|
|
332
|
+
/**
|
|
333
|
+
* This object represents a bulk SIM card action. It groups SIM card actions
|
|
334
|
+
* created through a bulk endpoint under a single resource for further lookup.
|
|
335
|
+
*/
|
|
336
|
+
export interface Data {
|
|
337
|
+
/**
|
|
338
|
+
* Identifies the resource.
|
|
339
|
+
*/
|
|
340
|
+
id?: string;
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* The action type. It can be one of the following: <br/>
|
|
344
|
+
*
|
|
345
|
+
* <ul>
|
|
346
|
+
* <li><code>bulk_disable_voice</code> - disable voice for every SIM Card in a SIM Card Group.</li>
|
|
347
|
+
* <li><code>bulk_enable_voice</code> - enable voice for every SIM Card in a SIM Card Group.</li>
|
|
348
|
+
* <li><code>bulk_set_public_ips</code> - set a public IP for each specified SIM Card.</li>
|
|
349
|
+
* </ul>
|
|
350
|
+
*/
|
|
351
|
+
action_type?: 'bulk_disable_voice' | 'bulk_enable_voice' | 'bulk_set_public_ips';
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* ISO 8601 formatted date-time indicating when the resource was created.
|
|
355
|
+
*/
|
|
356
|
+
created_at?: string;
|
|
357
|
+
|
|
358
|
+
record_type?: string;
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* A JSON object representation of the bulk action payload.
|
|
362
|
+
*/
|
|
363
|
+
settings?: { [key: string]: unknown };
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* ISO 8601 formatted date-time indicating when the resource was updated.
|
|
367
|
+
*/
|
|
368
|
+
updated_at?: string;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
export interface ActionBulkEnableVoiceResponse {
|
|
373
|
+
/**
|
|
374
|
+
* This object represents a bulk SIM card action. It groups SIM card actions
|
|
375
|
+
* created through a bulk endpoint under a single resource for further lookup.
|
|
376
|
+
*/
|
|
377
|
+
data?: ActionBulkEnableVoiceResponse.Data;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
export namespace ActionBulkEnableVoiceResponse {
|
|
381
|
+
/**
|
|
382
|
+
* This object represents a bulk SIM card action. It groups SIM card actions
|
|
383
|
+
* created through a bulk endpoint under a single resource for further lookup.
|
|
384
|
+
*/
|
|
385
|
+
export interface Data {
|
|
386
|
+
/**
|
|
387
|
+
* Identifies the resource.
|
|
388
|
+
*/
|
|
389
|
+
id?: string;
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* The action type. It can be one of the following: <br/>
|
|
393
|
+
*
|
|
394
|
+
* <ul>
|
|
395
|
+
* <li><code>bulk_disable_voice</code> - disable voice for every SIM Card in a SIM Card Group.</li>
|
|
396
|
+
* <li><code>bulk_enable_voice</code> - enable voice for every SIM Card in a SIM Card Group.</li>
|
|
397
|
+
* <li><code>bulk_set_public_ips</code> - set a public IP for each specified SIM Card.</li>
|
|
398
|
+
* </ul>
|
|
399
|
+
*/
|
|
400
|
+
action_type?: 'bulk_disable_voice' | 'bulk_enable_voice' | 'bulk_set_public_ips';
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* ISO 8601 formatted date-time indicating when the resource was created.
|
|
404
|
+
*/
|
|
405
|
+
created_at?: string;
|
|
406
|
+
|
|
407
|
+
record_type?: string;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* A JSON object representation of the bulk action payload.
|
|
411
|
+
*/
|
|
412
|
+
settings?: { [key: string]: unknown };
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* ISO 8601 formatted date-time indicating when the resource was updated.
|
|
416
|
+
*/
|
|
417
|
+
updated_at?: string;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
|
|
267
421
|
export interface ActionBulkSetPublicIPsResponse {
|
|
268
422
|
/**
|
|
269
423
|
* This object represents a bulk SIM card action. It groups SIM card actions
|
|
@@ -284,13 +438,15 @@ export namespace ActionBulkSetPublicIPsResponse {
|
|
|
284
438
|
id?: string;
|
|
285
439
|
|
|
286
440
|
/**
|
|
287
|
-
* The
|
|
441
|
+
* The action type. It can be one of the following: <br/>
|
|
288
442
|
*
|
|
289
443
|
* <ul>
|
|
290
|
-
* <li><code>
|
|
444
|
+
* <li><code>bulk_disable_voice</code> - disable voice for every SIM Card in a SIM Card Group.</li>
|
|
445
|
+
* <li><code>bulk_enable_voice</code> - enable voice for every SIM Card in a SIM Card Group.</li>
|
|
446
|
+
* <li><code>bulk_set_public_ips</code> - set a public IP for each specified SIM Card.</li>
|
|
291
447
|
* </ul>
|
|
292
448
|
*/
|
|
293
|
-
action_type?: 'bulk_set_public_ips';
|
|
449
|
+
action_type?: 'bulk_disable_voice' | 'bulk_enable_voice' | 'bulk_set_public_ips';
|
|
294
450
|
|
|
295
451
|
/**
|
|
296
452
|
* ISO 8601 formatted date-time indicating when the resource was created.
|
|
@@ -420,6 +576,14 @@ export namespace ActionListParams {
|
|
|
420
576
|
}
|
|
421
577
|
}
|
|
422
578
|
|
|
579
|
+
export interface ActionBulkDisableVoiceParams {
|
|
580
|
+
sim_card_group_id: string;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
export interface ActionBulkEnableVoiceParams {
|
|
584
|
+
sim_card_group_id: string;
|
|
585
|
+
}
|
|
586
|
+
|
|
423
587
|
export interface ActionBulkSetPublicIPsParams {
|
|
424
588
|
sim_card_ids: Array<string>;
|
|
425
589
|
}
|
|
@@ -440,6 +604,8 @@ export declare namespace Actions {
|
|
|
440
604
|
export {
|
|
441
605
|
type SimCardAction as SimCardAction,
|
|
442
606
|
type ActionRetrieveResponse as ActionRetrieveResponse,
|
|
607
|
+
type ActionBulkDisableVoiceResponse as ActionBulkDisableVoiceResponse,
|
|
608
|
+
type ActionBulkEnableVoiceResponse as ActionBulkEnableVoiceResponse,
|
|
443
609
|
type ActionBulkSetPublicIPsResponse as ActionBulkSetPublicIPsResponse,
|
|
444
610
|
type ActionDisableResponse as ActionDisableResponse,
|
|
445
611
|
type ActionEnableResponse as ActionEnableResponse,
|
|
@@ -449,6 +615,8 @@ export declare namespace Actions {
|
|
|
449
615
|
type ActionValidateRegistrationCodesResponse as ActionValidateRegistrationCodesResponse,
|
|
450
616
|
type SimCardActionsDefaultFlatPagination as SimCardActionsDefaultFlatPagination,
|
|
451
617
|
type ActionListParams as ActionListParams,
|
|
618
|
+
type ActionBulkDisableVoiceParams as ActionBulkDisableVoiceParams,
|
|
619
|
+
type ActionBulkEnableVoiceParams as ActionBulkEnableVoiceParams,
|
|
452
620
|
type ActionBulkSetPublicIPsParams as ActionBulkSetPublicIPsParams,
|
|
453
621
|
type ActionSetPublicIPParams as ActionSetPublicIPParams,
|
|
454
622
|
type ActionValidateRegistrationCodesParams as ActionValidateRegistrationCodesParams,
|
|
@@ -4,6 +4,8 @@ export {
|
|
|
4
4
|
Actions,
|
|
5
5
|
type SimCardAction,
|
|
6
6
|
type ActionRetrieveResponse,
|
|
7
|
+
type ActionBulkDisableVoiceResponse,
|
|
8
|
+
type ActionBulkEnableVoiceResponse,
|
|
7
9
|
type ActionBulkSetPublicIPsResponse,
|
|
8
10
|
type ActionDisableResponse,
|
|
9
11
|
type ActionEnableResponse,
|
|
@@ -12,6 +14,8 @@ export {
|
|
|
12
14
|
type ActionSetStandbyResponse,
|
|
13
15
|
type ActionValidateRegistrationCodesResponse,
|
|
14
16
|
type ActionListParams,
|
|
17
|
+
type ActionBulkDisableVoiceParams,
|
|
18
|
+
type ActionBulkEnableVoiceParams,
|
|
15
19
|
type ActionBulkSetPublicIPsParams,
|
|
16
20
|
type ActionSetPublicIPParams,
|
|
17
21
|
type ActionValidateRegistrationCodesParams,
|
|
@@ -5,6 +5,10 @@ import * as Shared from '../shared';
|
|
|
5
5
|
import { SimpleSimCardsDefaultFlatPagination } from '../shared';
|
|
6
6
|
import * as ActionsAPI from './actions';
|
|
7
7
|
import {
|
|
8
|
+
ActionBulkDisableVoiceParams,
|
|
9
|
+
ActionBulkDisableVoiceResponse,
|
|
10
|
+
ActionBulkEnableVoiceParams,
|
|
11
|
+
ActionBulkEnableVoiceResponse,
|
|
8
12
|
ActionBulkSetPublicIPsParams,
|
|
9
13
|
ActionBulkSetPublicIPsResponse,
|
|
10
14
|
ActionDisableResponse,
|
|
@@ -345,6 +349,11 @@ export interface SimCard {
|
|
|
345
349
|
* The version of the SIM card.
|
|
346
350
|
*/
|
|
347
351
|
version?: string;
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Indicates whether voice services are enabled for the SIM card.
|
|
355
|
+
*/
|
|
356
|
+
voice_enabled?: boolean;
|
|
348
357
|
}
|
|
349
358
|
|
|
350
359
|
export namespace SimCard {
|
|
@@ -761,6 +770,8 @@ export declare namespace SimCards {
|
|
|
761
770
|
Actions as Actions,
|
|
762
771
|
type SimCardAction as SimCardAction,
|
|
763
772
|
type ActionRetrieveResponse as ActionRetrieveResponse,
|
|
773
|
+
type ActionBulkDisableVoiceResponse as ActionBulkDisableVoiceResponse,
|
|
774
|
+
type ActionBulkEnableVoiceResponse as ActionBulkEnableVoiceResponse,
|
|
764
775
|
type ActionBulkSetPublicIPsResponse as ActionBulkSetPublicIPsResponse,
|
|
765
776
|
type ActionDisableResponse as ActionDisableResponse,
|
|
766
777
|
type ActionEnableResponse as ActionEnableResponse,
|
|
@@ -770,6 +781,8 @@ export declare namespace SimCards {
|
|
|
770
781
|
type ActionValidateRegistrationCodesResponse as ActionValidateRegistrationCodesResponse,
|
|
771
782
|
type SimCardActionsDefaultFlatPagination as SimCardActionsDefaultFlatPagination,
|
|
772
783
|
type ActionListParams as ActionListParams,
|
|
784
|
+
type ActionBulkDisableVoiceParams as ActionBulkDisableVoiceParams,
|
|
785
|
+
type ActionBulkEnableVoiceParams as ActionBulkEnableVoiceParams,
|
|
773
786
|
type ActionBulkSetPublicIPsParams as ActionBulkSetPublicIPsParams,
|
|
774
787
|
type ActionSetPublicIPParams as ActionSetPublicIPParams,
|
|
775
788
|
type ActionValidateRegistrationCodesParams as ActionValidateRegistrationCodesParams,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '6.
|
|
1
|
+
export const VERSION = '6.7.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "6.
|
|
1
|
+
export declare const VERSION = "6.7.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "6.
|
|
1
|
+
export declare const VERSION = "6.7.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '6.
|
|
1
|
+
export const VERSION = '6.7.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|