telnyx 6.7.0 → 6.8.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 +50 -0
- package/client.d.mts +10 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -0
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/assistants/assistants.d.mts +5 -5
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +5 -5
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/chat.d.mts +6 -0
- package/resources/ai/chat.d.mts.map +1 -1
- package/resources/ai/chat.d.ts +6 -0
- package/resources/ai/chat.d.ts.map +1 -1
- package/resources/index.d.mts +2 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +6 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/messaging-10dlc/brand/brand.d.mts +1 -1
- package/resources/messaging-10dlc/brand/brand.d.mts.map +1 -1
- package/resources/messaging-10dlc/brand/brand.d.ts +1 -1
- package/resources/messaging-10dlc/brand/brand.d.ts.map +1 -1
- package/resources/messaging-10dlc/brand/brand.js.map +1 -1
- package/resources/messaging-10dlc/brand/brand.mjs.map +1 -1
- package/resources/shared.d.mts +25 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +25 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/sim-cards/actions.d.mts +39 -115
- package/resources/sim-cards/actions.d.mts.map +1 -1
- package/resources/sim-cards/actions.d.ts +39 -115
- package/resources/sim-cards/actions.d.ts.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/text-to-speech/internal-base.d.mts +3 -3
- package/resources/text-to-speech/internal-base.d.ts +3 -3
- package/resources/text-to-speech/internal-base.js +1 -1
- package/resources/text-to-speech/internal-base.js.map +1 -1
- package/resources/text-to-speech/internal-base.mjs +1 -1
- package/resources/text-to-speech/internal-base.mjs.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.mts +5 -3
- package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.ts +5 -3
- package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
- package/resources/whatsapp/business-accounts/business-accounts.d.mts +132 -0
- package/resources/whatsapp/business-accounts/business-accounts.d.mts.map +1 -0
- package/resources/whatsapp/business-accounts/business-accounts.d.ts +132 -0
- package/resources/whatsapp/business-accounts/business-accounts.d.ts.map +1 -0
- package/resources/whatsapp/business-accounts/business-accounts.js +67 -0
- package/resources/whatsapp/business-accounts/business-accounts.js.map +1 -0
- package/resources/whatsapp/business-accounts/business-accounts.mjs +62 -0
- package/resources/whatsapp/business-accounts/business-accounts.mjs.map +1 -0
- package/resources/whatsapp/business-accounts/index.d.mts +4 -0
- package/resources/whatsapp/business-accounts/index.d.mts.map +1 -0
- package/resources/whatsapp/business-accounts/index.d.ts +4 -0
- package/resources/whatsapp/business-accounts/index.d.ts.map +1 -0
- package/resources/whatsapp/business-accounts/index.js +11 -0
- package/resources/whatsapp/business-accounts/index.js.map +1 -0
- package/resources/whatsapp/business-accounts/index.mjs +5 -0
- package/resources/whatsapp/business-accounts/index.mjs.map +1 -0
- package/resources/whatsapp/business-accounts/phone-numbers.d.mts +76 -0
- package/resources/whatsapp/business-accounts/phone-numbers.d.mts.map +1 -0
- package/resources/whatsapp/business-accounts/phone-numbers.d.ts +76 -0
- package/resources/whatsapp/business-accounts/phone-numbers.d.ts.map +1 -0
- package/resources/whatsapp/business-accounts/phone-numbers.js +49 -0
- package/resources/whatsapp/business-accounts/phone-numbers.js.map +1 -0
- package/resources/whatsapp/business-accounts/phone-numbers.mjs +45 -0
- package/resources/whatsapp/business-accounts/phone-numbers.mjs.map +1 -0
- package/resources/whatsapp/business-accounts/settings.d.mts +85 -0
- package/resources/whatsapp/business-accounts/settings.d.mts.map +1 -0
- package/resources/whatsapp/business-accounts/settings.d.ts +85 -0
- package/resources/whatsapp/business-accounts/settings.d.ts.map +1 -0
- package/resources/whatsapp/business-accounts/settings.js +41 -0
- package/resources/whatsapp/business-accounts/settings.js.map +1 -0
- package/resources/whatsapp/business-accounts/settings.mjs +37 -0
- package/resources/whatsapp/business-accounts/settings.mjs.map +1 -0
- package/resources/whatsapp/business-accounts.d.mts +2 -0
- package/resources/whatsapp/business-accounts.d.mts.map +1 -0
- package/resources/whatsapp/business-accounts.d.ts +2 -0
- package/resources/whatsapp/business-accounts.d.ts.map +1 -0
- package/resources/whatsapp/business-accounts.js +6 -0
- package/resources/whatsapp/business-accounts.js.map +1 -0
- package/resources/whatsapp/business-accounts.mjs +3 -0
- package/resources/whatsapp/business-accounts.mjs.map +1 -0
- package/resources/whatsapp/index.d.mts +5 -0
- package/resources/whatsapp/index.d.mts.map +1 -0
- package/resources/whatsapp/index.d.ts +5 -0
- package/resources/whatsapp/index.d.ts.map +1 -0
- package/resources/whatsapp/index.js +13 -0
- package/resources/whatsapp/index.js.map +1 -0
- package/resources/whatsapp/index.mjs +6 -0
- package/resources/whatsapp/index.mjs.map +1 -0
- package/resources/whatsapp/phone-numbers/calling-settings.d.mts +58 -0
- package/resources/whatsapp/phone-numbers/calling-settings.d.mts.map +1 -0
- package/resources/whatsapp/phone-numbers/calling-settings.d.ts +58 -0
- package/resources/whatsapp/phone-numbers/calling-settings.d.ts.map +1 -0
- package/resources/whatsapp/phone-numbers/calling-settings.js +45 -0
- package/resources/whatsapp/phone-numbers/calling-settings.js.map +1 -0
- package/resources/whatsapp/phone-numbers/calling-settings.mjs +41 -0
- package/resources/whatsapp/phone-numbers/calling-settings.mjs.map +1 -0
- package/resources/whatsapp/phone-numbers/index.d.mts +4 -0
- package/resources/whatsapp/phone-numbers/index.d.mts.map +1 -0
- package/resources/whatsapp/phone-numbers/index.d.ts +4 -0
- package/resources/whatsapp/phone-numbers/index.d.ts.map +1 -0
- package/resources/whatsapp/phone-numbers/index.js +11 -0
- package/resources/whatsapp/phone-numbers/index.js.map +1 -0
- package/resources/whatsapp/phone-numbers/index.mjs +5 -0
- package/resources/whatsapp/phone-numbers/index.mjs.map +1 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.d.mts +101 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.d.mts.map +1 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.d.ts +101 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.d.ts.map +1 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.js +89 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.js.map +1 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.mjs +84 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.mjs.map +1 -0
- package/resources/whatsapp/phone-numbers/profile/index.d.mts +3 -0
- package/resources/whatsapp/phone-numbers/profile/index.d.mts.map +1 -0
- package/resources/whatsapp/phone-numbers/profile/index.d.ts +3 -0
- package/resources/whatsapp/phone-numbers/profile/index.d.ts.map +1 -0
- package/resources/whatsapp/phone-numbers/profile/index.js +9 -0
- package/resources/whatsapp/phone-numbers/profile/index.js.map +1 -0
- package/resources/whatsapp/phone-numbers/profile/index.mjs +4 -0
- package/resources/whatsapp/phone-numbers/profile/index.mjs.map +1 -0
- package/resources/whatsapp/phone-numbers/profile/photo.d.mts +47 -0
- package/resources/whatsapp/phone-numbers/profile/photo.d.mts.map +1 -0
- package/resources/whatsapp/phone-numbers/profile/photo.d.ts +47 -0
- package/resources/whatsapp/phone-numbers/profile/photo.d.ts.map +1 -0
- package/resources/whatsapp/phone-numbers/profile/photo.js +46 -0
- package/resources/whatsapp/phone-numbers/profile/photo.js.map +1 -0
- package/resources/whatsapp/phone-numbers/profile/photo.mjs +42 -0
- package/resources/whatsapp/phone-numbers/profile/photo.mjs.map +1 -0
- package/resources/whatsapp/phone-numbers/profile/profile.d.mts +73 -0
- package/resources/whatsapp/phone-numbers/profile/profile.d.mts.map +1 -0
- package/resources/whatsapp/phone-numbers/profile/profile.d.ts +73 -0
- package/resources/whatsapp/phone-numbers/profile/profile.d.ts.map +1 -0
- package/resources/whatsapp/phone-numbers/profile/profile.js +49 -0
- package/resources/whatsapp/phone-numbers/profile/profile.js.map +1 -0
- package/resources/whatsapp/phone-numbers/profile/profile.mjs +44 -0
- package/resources/whatsapp/phone-numbers/profile/profile.mjs.map +1 -0
- package/resources/whatsapp/phone-numbers/profile.d.mts +2 -0
- package/resources/whatsapp/phone-numbers/profile.d.mts.map +1 -0
- package/resources/whatsapp/phone-numbers/profile.d.ts +2 -0
- package/resources/whatsapp/phone-numbers/profile.d.ts.map +1 -0
- package/resources/whatsapp/phone-numbers/profile.js +6 -0
- package/resources/whatsapp/phone-numbers/profile.js.map +1 -0
- package/resources/whatsapp/phone-numbers/profile.mjs +3 -0
- package/resources/whatsapp/phone-numbers/profile.mjs.map +1 -0
- package/resources/whatsapp/phone-numbers.d.mts +2 -0
- package/resources/whatsapp/phone-numbers.d.mts.map +1 -0
- package/resources/whatsapp/phone-numbers.d.ts +2 -0
- package/resources/whatsapp/phone-numbers.d.ts.map +1 -0
- package/resources/whatsapp/phone-numbers.js +6 -0
- package/resources/whatsapp/phone-numbers.js.map +1 -0
- package/resources/whatsapp/phone-numbers.mjs +3 -0
- package/resources/whatsapp/phone-numbers.mjs.map +1 -0
- package/resources/whatsapp/templates.d.mts +73 -0
- package/resources/whatsapp/templates.d.mts.map +1 -0
- package/resources/whatsapp/templates.d.ts +73 -0
- package/resources/whatsapp/templates.d.ts.map +1 -0
- package/resources/whatsapp/templates.js +44 -0
- package/resources/whatsapp/templates.js.map +1 -0
- package/resources/whatsapp/templates.mjs +40 -0
- package/resources/whatsapp/templates.mjs.map +1 -0
- package/resources/whatsapp/whatsapp.d.mts +18 -0
- package/resources/whatsapp/whatsapp.d.mts.map +1 -0
- package/resources/whatsapp/whatsapp.d.ts +18 -0
- package/resources/whatsapp/whatsapp.d.ts.map +1 -0
- package/resources/whatsapp/whatsapp.js +25 -0
- package/resources/whatsapp/whatsapp.js.map +1 -0
- package/resources/whatsapp/whatsapp.mjs +20 -0
- package/resources/whatsapp/whatsapp.mjs.map +1 -0
- package/resources/whatsapp-message-templates.d.mts +37 -0
- package/resources/whatsapp-message-templates.d.mts.map +1 -0
- package/resources/whatsapp-message-templates.d.ts +37 -0
- package/resources/whatsapp-message-templates.d.ts.map +1 -0
- package/resources/whatsapp-message-templates.js +35 -0
- package/resources/whatsapp-message-templates.js.map +1 -0
- package/resources/whatsapp-message-templates.mjs +31 -0
- package/resources/whatsapp-message-templates.mjs.map +1 -0
- package/resources/whatsapp.d.mts +2 -0
- package/resources/whatsapp.d.mts.map +1 -0
- package/resources/whatsapp.d.ts +2 -0
- package/resources/whatsapp.d.ts.map +1 -0
- package/resources/whatsapp.js +6 -0
- package/resources/whatsapp.js.map +1 -0
- package/resources/whatsapp.mjs +3 -0
- package/resources/whatsapp.mjs.map +1 -0
- package/src/client.ts +24 -0
- package/src/resources/ai/assistants/assistants.ts +5 -5
- package/src/resources/ai/chat.ts +7 -0
- package/src/resources/index.ts +7 -0
- package/src/resources/messaging-10dlc/brand/brand.ts +17 -11
- package/src/resources/shared.ts +37 -0
- package/src/resources/sim-cards/actions.ts +43 -126
- package/src/resources/sim-cards/index.ts +1 -0
- package/src/resources/sim-cards/sim-cards.ts +2 -0
- package/src/resources/text-to-speech/internal-base.ts +4 -4
- package/src/resources/text-to-speech/text-to-speech.ts +3 -3
- package/src/resources/whatsapp/business-accounts/business-accounts.ts +217 -0
- package/src/resources/whatsapp/business-accounts/index.ts +23 -0
- package/src/resources/whatsapp/business-accounts/phone-numbers.ts +127 -0
- package/src/resources/whatsapp/business-accounts/settings.ts +116 -0
- package/src/resources/whatsapp/business-accounts.ts +3 -0
- package/src/resources/whatsapp/index.ts +24 -0
- package/src/resources/whatsapp/phone-numbers/calling-settings.ts +86 -0
- package/src/resources/whatsapp/phone-numbers/index.ts +24 -0
- package/src/resources/whatsapp/phone-numbers/phone-numbers.ts +193 -0
- package/src/resources/whatsapp/phone-numbers/profile/index.ts +10 -0
- package/src/resources/whatsapp/phone-numbers/profile/photo.ts +70 -0
- package/src/resources/whatsapp/phone-numbers/profile/profile.ts +121 -0
- package/src/resources/whatsapp/phone-numbers/profile.ts +3 -0
- package/src/resources/whatsapp/phone-numbers.ts +3 -0
- package/src/resources/whatsapp/templates.ts +101 -0
- package/src/resources/whatsapp/whatsapp.ts +60 -0
- package/src/resources/whatsapp-message-templates.ts +63 -0
- package/src/resources/whatsapp.ts +3 -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
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as Shared from "./shared.mjs";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Manage Whatsapp message templates
|
|
7
|
+
*/
|
|
8
|
+
export declare class WhatsappMessageTemplates extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get a Whatsapp message template by ID
|
|
11
|
+
*/
|
|
12
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<WhatsappMessageTemplateRetrieveResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Update a Whatsapp message template
|
|
15
|
+
*/
|
|
16
|
+
update(id: string, body: WhatsappMessageTemplateUpdateParams, options?: RequestOptions): APIPromise<WhatsappMessageTemplateUpdateResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Delete a Whatsapp message template
|
|
19
|
+
*/
|
|
20
|
+
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
21
|
+
}
|
|
22
|
+
export interface WhatsappMessageTemplateRetrieveResponse {
|
|
23
|
+
data?: Shared.WhatsappTemplateData;
|
|
24
|
+
}
|
|
25
|
+
export interface WhatsappMessageTemplateUpdateResponse {
|
|
26
|
+
data?: Shared.WhatsappTemplateData;
|
|
27
|
+
}
|
|
28
|
+
export interface WhatsappMessageTemplateUpdateParams {
|
|
29
|
+
category?: 'MARKETING' | 'UTILITY' | 'AUTHENTICATION';
|
|
30
|
+
components?: Array<{
|
|
31
|
+
[key: string]: unknown;
|
|
32
|
+
}>;
|
|
33
|
+
}
|
|
34
|
+
export declare namespace WhatsappMessageTemplates {
|
|
35
|
+
export { type WhatsappMessageTemplateRetrieveResponse as WhatsappMessageTemplateRetrieveResponse, type WhatsappMessageTemplateUpdateResponse as WhatsappMessageTemplateUpdateResponse, type WhatsappMessageTemplateUpdateParams as WhatsappMessageTemplateUpdateParams, };
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=whatsapp-message-templates.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whatsapp-message-templates.d.mts","sourceRoot":"","sources":["../src/resources/whatsapp-message-templates.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,WAAW;IACvD;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uCAAuC,CAAC;IAInG;;OAEG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,mCAAmC,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qCAAqC,CAAC;IAIpD;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAM/D;AAED,MAAM,WAAW,uCAAuC;IACtD,IAAI,CAAC,EAAE,MAAM,CAAC,oBAAoB,CAAC;CACpC;AAED,MAAM,WAAW,qCAAqC;IACpD,IAAI,CAAC,EAAE,MAAM,CAAC,oBAAoB,CAAC;CACpC;AAED,MAAM,WAAW,mCAAmC;IAClD,QAAQ,CAAC,EAAE,WAAW,GAAG,SAAS,GAAG,gBAAgB,CAAC;IAEtD,UAAU,CAAC,EAAE,KAAK,CAAC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC,CAAC;CAChD;AAED,MAAM,CAAC,OAAO,WAAW,wBAAwB,CAAC;IAChD,OAAO,EACL,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,mCAAmC,IAAI,mCAAmC,GAChF,CAAC;CACH"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as Shared from "./shared.js";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
/**
|
|
6
|
+
* Manage Whatsapp message templates
|
|
7
|
+
*/
|
|
8
|
+
export declare class WhatsappMessageTemplates extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get a Whatsapp message template by ID
|
|
11
|
+
*/
|
|
12
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<WhatsappMessageTemplateRetrieveResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Update a Whatsapp message template
|
|
15
|
+
*/
|
|
16
|
+
update(id: string, body: WhatsappMessageTemplateUpdateParams, options?: RequestOptions): APIPromise<WhatsappMessageTemplateUpdateResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Delete a Whatsapp message template
|
|
19
|
+
*/
|
|
20
|
+
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
21
|
+
}
|
|
22
|
+
export interface WhatsappMessageTemplateRetrieveResponse {
|
|
23
|
+
data?: Shared.WhatsappTemplateData;
|
|
24
|
+
}
|
|
25
|
+
export interface WhatsappMessageTemplateUpdateResponse {
|
|
26
|
+
data?: Shared.WhatsappTemplateData;
|
|
27
|
+
}
|
|
28
|
+
export interface WhatsappMessageTemplateUpdateParams {
|
|
29
|
+
category?: 'MARKETING' | 'UTILITY' | 'AUTHENTICATION';
|
|
30
|
+
components?: Array<{
|
|
31
|
+
[key: string]: unknown;
|
|
32
|
+
}>;
|
|
33
|
+
}
|
|
34
|
+
export declare namespace WhatsappMessageTemplates {
|
|
35
|
+
export { type WhatsappMessageTemplateRetrieveResponse as WhatsappMessageTemplateRetrieveResponse, type WhatsappMessageTemplateUpdateResponse as WhatsappMessageTemplateUpdateResponse, type WhatsappMessageTemplateUpdateParams as WhatsappMessageTemplateUpdateParams, };
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=whatsapp-message-templates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whatsapp-message-templates.d.ts","sourceRoot":"","sources":["../src/resources/whatsapp-message-templates.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,WAAW;IACvD;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uCAAuC,CAAC;IAInG;;OAEG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,mCAAmC,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qCAAqC,CAAC;IAIpD;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAM/D;AAED,MAAM,WAAW,uCAAuC;IACtD,IAAI,CAAC,EAAE,MAAM,CAAC,oBAAoB,CAAC;CACpC;AAED,MAAM,WAAW,qCAAqC;IACpD,IAAI,CAAC,EAAE,MAAM,CAAC,oBAAoB,CAAC;CACpC;AAED,MAAM,WAAW,mCAAmC;IAClD,QAAQ,CAAC,EAAE,WAAW,GAAG,SAAS,GAAG,gBAAgB,CAAC;IAEtD,UAAU,CAAC,EAAE,KAAK,CAAC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC,CAAC;CAChD;AAED,MAAM,CAAC,OAAO,WAAW,wBAAwB,CAAC;IAChD,OAAO,EACL,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,mCAAmC,IAAI,mCAAmC,GAChF,CAAC;CACH"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.WhatsappMessageTemplates = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const headers_1 = require("../internal/headers.js");
|
|
7
|
+
const path_1 = require("../internal/utils/path.js");
|
|
8
|
+
/**
|
|
9
|
+
* Manage Whatsapp message templates
|
|
10
|
+
*/
|
|
11
|
+
class WhatsappMessageTemplates extends resource_1.APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get a Whatsapp message template by ID
|
|
14
|
+
*/
|
|
15
|
+
retrieve(id, options) {
|
|
16
|
+
return this._client.get((0, path_1.path) `/v2/whatsapp_message_templates/${id}`, options);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Update a Whatsapp message template
|
|
20
|
+
*/
|
|
21
|
+
update(id, body, options) {
|
|
22
|
+
return this._client.patch((0, path_1.path) `/v2/whatsapp_message_templates/${id}`, { body, ...options });
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Delete a Whatsapp message template
|
|
26
|
+
*/
|
|
27
|
+
delete(id, options) {
|
|
28
|
+
return this._client.delete((0, path_1.path) `/v2/whatsapp_message_templates/${id}`, {
|
|
29
|
+
...options,
|
|
30
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.WhatsappMessageTemplates = WhatsappMessageTemplates;
|
|
35
|
+
//# sourceMappingURL=whatsapp-message-templates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whatsapp-message-templates.js","sourceRoot":"","sources":["../src/resources/whatsapp-message-templates.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAAmD;AAEnD,oDAA8C;AAE9C;;GAEG;AACH,MAAa,wBAAyB,SAAQ,sBAAW;IACvD;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kCAAkC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,IAAyC,EACzC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,kCAAkC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,kCAAkC,EAAE,EAAE,EAAE;YACrE,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA5BD,4DA4BC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../internal/headers.mjs";
|
|
4
|
+
import { path } from "../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Manage Whatsapp message templates
|
|
7
|
+
*/
|
|
8
|
+
export class WhatsappMessageTemplates extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get a Whatsapp message template by ID
|
|
11
|
+
*/
|
|
12
|
+
retrieve(id, options) {
|
|
13
|
+
return this._client.get(path `/v2/whatsapp_message_templates/${id}`, options);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Update a Whatsapp message template
|
|
17
|
+
*/
|
|
18
|
+
update(id, body, options) {
|
|
19
|
+
return this._client.patch(path `/v2/whatsapp_message_templates/${id}`, { body, ...options });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Delete a Whatsapp message template
|
|
23
|
+
*/
|
|
24
|
+
delete(id, options) {
|
|
25
|
+
return this._client.delete(path `/v2/whatsapp_message_templates/${id}`, {
|
|
26
|
+
...options,
|
|
27
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=whatsapp-message-templates.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whatsapp-message-templates.mjs","sourceRoot":"","sources":["../src/resources/whatsapp-message-templates.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,wBAAyB,SAAQ,WAAW;IACvD;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kCAAkC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,IAAyC,EACzC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,kCAAkC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,kCAAkC,EAAE,EAAE,EAAE;YACrE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whatsapp.d.mts","sourceRoot":"","sources":["../src/resources/whatsapp.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whatsapp.d.ts","sourceRoot":"","sources":["../src/resources/whatsapp.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./whatsapp/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=whatsapp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whatsapp.js","sourceRoot":"","sources":["../src/resources/whatsapp.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whatsapp.mjs","sourceRoot":"","sources":["../src/resources/whatsapp.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
package/src/client.ts
CHANGED
|
@@ -1033,6 +1033,12 @@ import {
|
|
|
1033
1033
|
WellKnownRetrieveAuthorizationServerMetadataResponse,
|
|
1034
1034
|
WellKnownRetrieveProtectedResourceMetadataResponse,
|
|
1035
1035
|
} from './resources/well-known';
|
|
1036
|
+
import {
|
|
1037
|
+
WhatsappMessageTemplateRetrieveResponse,
|
|
1038
|
+
WhatsappMessageTemplateUpdateParams,
|
|
1039
|
+
WhatsappMessageTemplateUpdateResponse,
|
|
1040
|
+
WhatsappMessageTemplates,
|
|
1041
|
+
} from './resources/whatsapp-message-templates';
|
|
1036
1042
|
import {
|
|
1037
1043
|
WireguardInterfaceCreateParams,
|
|
1038
1044
|
WireguardInterfaceCreateResponse,
|
|
@@ -1457,6 +1463,7 @@ import {
|
|
|
1457
1463
|
VerifiedNumbers,
|
|
1458
1464
|
VerifiedNumbersDefaultFlatPagination,
|
|
1459
1465
|
} from './resources/verified-numbers/verified-numbers';
|
|
1466
|
+
import { Whatsapp } from './resources/whatsapp/whatsapp';
|
|
1460
1467
|
import {
|
|
1461
1468
|
Wireless,
|
|
1462
1469
|
WirelessRetrieveRegionsParams,
|
|
@@ -2806,6 +2813,11 @@ export class Telnyx {
|
|
|
2806
2813
|
* Analyze voice AI sessions, costs, and event hierarchies across Telnyx products.
|
|
2807
2814
|
*/
|
|
2808
2815
|
sessionAnalysis: API.SessionAnalysis = new API.SessionAnalysis(this);
|
|
2816
|
+
whatsapp: API.Whatsapp = new API.Whatsapp(this);
|
|
2817
|
+
/**
|
|
2818
|
+
* Manage Whatsapp message templates
|
|
2819
|
+
*/
|
|
2820
|
+
whatsappMessageTemplates: API.WhatsappMessageTemplates = new API.WhatsappMessageTemplates(this);
|
|
2809
2821
|
}
|
|
2810
2822
|
|
|
2811
2823
|
Telnyx.Legacy = Legacy;
|
|
@@ -2961,6 +2973,8 @@ Telnyx.Organizations = Organizations;
|
|
|
2961
2973
|
Telnyx.AlphanumericSenderIDs = AlphanumericSenderIDs;
|
|
2962
2974
|
Telnyx.MessagingProfileMetrics = MessagingProfileMetrics;
|
|
2963
2975
|
Telnyx.SessionAnalysis = SessionAnalysis;
|
|
2976
|
+
Telnyx.Whatsapp = Whatsapp;
|
|
2977
|
+
Telnyx.WhatsappMessageTemplates = WhatsappMessageTemplates;
|
|
2964
2978
|
|
|
2965
2979
|
export declare namespace Telnyx {
|
|
2966
2980
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -4620,6 +4634,15 @@ export declare namespace Telnyx {
|
|
|
4620
4634
|
type SessionAnalysisRetrieveParams as SessionAnalysisRetrieveParams,
|
|
4621
4635
|
};
|
|
4622
4636
|
|
|
4637
|
+
export { Whatsapp as Whatsapp };
|
|
4638
|
+
|
|
4639
|
+
export {
|
|
4640
|
+
WhatsappMessageTemplates as WhatsappMessageTemplates,
|
|
4641
|
+
type WhatsappMessageTemplateRetrieveResponse as WhatsappMessageTemplateRetrieveResponse,
|
|
4642
|
+
type WhatsappMessageTemplateUpdateResponse as WhatsappMessageTemplateUpdateResponse,
|
|
4643
|
+
type WhatsappMessageTemplateUpdateParams as WhatsappMessageTemplateUpdateParams,
|
|
4644
|
+
};
|
|
4645
|
+
|
|
4623
4646
|
export type APIError = API.APIError;
|
|
4624
4647
|
export type AvailablePhoneNumbersMetadata = API.AvailablePhoneNumbersMetadata;
|
|
4625
4648
|
export type AzureVoiceSettings = API.AzureVoiceSettings;
|
|
@@ -4651,4 +4674,5 @@ export declare namespace Telnyx {
|
|
|
4651
4674
|
export type SimCardStatus = API.SimCardStatus;
|
|
4652
4675
|
export type SimpleSimCard = API.SimpleSimCard;
|
|
4653
4676
|
export type SubNumberOrderRegulatoryRequirementWithValue = API.SubNumberOrderRegulatoryRequirementWithValue;
|
|
4677
|
+
export type WhatsappTemplateData = API.WhatsappTemplateData;
|
|
4654
4678
|
}
|
|
@@ -620,17 +620,17 @@ export namespace AssistantTool {
|
|
|
620
620
|
}
|
|
621
621
|
|
|
622
622
|
export interface Invite {
|
|
623
|
-
|
|
623
|
+
invite_config: Invite.InviteConfig;
|
|
624
624
|
|
|
625
625
|
type: 'invite';
|
|
626
626
|
}
|
|
627
627
|
|
|
628
628
|
export namespace Invite {
|
|
629
|
-
export interface
|
|
629
|
+
export interface InviteConfig {
|
|
630
630
|
/**
|
|
631
631
|
* Custom headers to be added to the SIP INVITE for the invite command.
|
|
632
632
|
*/
|
|
633
|
-
custom_headers?: Array<
|
|
633
|
+
custom_headers?: Array<InviteConfig.CustomHeader>;
|
|
634
634
|
|
|
635
635
|
/**
|
|
636
636
|
* Number or SIP URI placing the call.
|
|
@@ -641,10 +641,10 @@ export namespace AssistantTool {
|
|
|
641
641
|
* Configuration for voicemail detection (AMD - Answering Machine Detection) on the
|
|
642
642
|
* invited call.
|
|
643
643
|
*/
|
|
644
|
-
voicemail_detection?:
|
|
644
|
+
voicemail_detection?: InviteConfig.VoicemailDetection;
|
|
645
645
|
}
|
|
646
646
|
|
|
647
|
-
export namespace
|
|
647
|
+
export namespace InviteConfig {
|
|
648
648
|
export interface CustomHeader {
|
|
649
649
|
name?: string;
|
|
650
650
|
|
package/src/resources/ai/chat.ts
CHANGED
|
@@ -78,6 +78,13 @@ export interface ChatCreateCompletionParams {
|
|
|
78
78
|
*/
|
|
79
79
|
early_stopping?: boolean;
|
|
80
80
|
|
|
81
|
+
/**
|
|
82
|
+
* Whether to enable the thinking/reasoning phase for models that support it (e.g.,
|
|
83
|
+
* QwQ, Qwen3). When set to false, the model will skip the internal reasoning step
|
|
84
|
+
* and respond directly, which can reduce latency. Defaults to true.
|
|
85
|
+
*/
|
|
86
|
+
enable_thinking?: boolean;
|
|
87
|
+
|
|
81
88
|
/**
|
|
82
89
|
* Higher values will penalize the model from repeating the same output tokens.
|
|
83
90
|
*/
|
package/src/resources/index.ts
CHANGED
|
@@ -1387,6 +1387,13 @@ export {
|
|
|
1387
1387
|
type WellKnownRetrieveAuthorizationServerMetadataResponse,
|
|
1388
1388
|
type WellKnownRetrieveProtectedResourceMetadataResponse,
|
|
1389
1389
|
} from './well-known';
|
|
1390
|
+
export { Whatsapp } from './whatsapp/whatsapp';
|
|
1391
|
+
export {
|
|
1392
|
+
WhatsappMessageTemplates,
|
|
1393
|
+
type WhatsappMessageTemplateRetrieveResponse,
|
|
1394
|
+
type WhatsappMessageTemplateUpdateResponse,
|
|
1395
|
+
type WhatsappMessageTemplateUpdateParams,
|
|
1396
|
+
} from './whatsapp-message-templates';
|
|
1390
1397
|
export {
|
|
1391
1398
|
WireguardInterfaces,
|
|
1392
1399
|
type WireguardInterfaceCreateResponse,
|
|
@@ -560,23 +560,29 @@ export interface TelnyxBrand {
|
|
|
560
560
|
* Vertical or industry segment of the brand or campaign.
|
|
561
561
|
*/
|
|
562
562
|
export type Vertical =
|
|
563
|
-
| 'REAL_ESTATE'
|
|
564
|
-
| 'HEALTHCARE'
|
|
565
|
-
| 'ENERGY'
|
|
566
|
-
| 'ENTERTAINMENT'
|
|
567
|
-
| 'RETAIL'
|
|
568
563
|
| 'AGRICULTURE'
|
|
569
|
-
| '
|
|
564
|
+
| 'COMMUNICATION'
|
|
565
|
+
| 'CONSTRUCTION'
|
|
570
566
|
| 'EDUCATION'
|
|
571
|
-
| '
|
|
567
|
+
| 'ENERGY'
|
|
568
|
+
| 'ENTERTAINMENT'
|
|
572
569
|
| 'FINANCIAL'
|
|
573
570
|
| 'GAMBLING'
|
|
574
|
-
| 'CONSTRUCTION'
|
|
575
|
-
| 'NGO'
|
|
576
|
-
| 'MANUFACTURING'
|
|
577
571
|
| 'GOVERNMENT'
|
|
572
|
+
| 'HEALTHCARE'
|
|
573
|
+
| 'HOSPITALITY'
|
|
574
|
+
| 'HUMAN_RESOURCES'
|
|
575
|
+
| 'INSURANCE'
|
|
576
|
+
| 'LEGAL'
|
|
577
|
+
| 'MANUFACTURING'
|
|
578
|
+
| 'NGO'
|
|
579
|
+
| 'POLITICAL'
|
|
580
|
+
| 'POSTAL'
|
|
581
|
+
| 'PROFESSIONAL'
|
|
582
|
+
| 'REAL_ESTATE'
|
|
583
|
+
| 'RETAIL'
|
|
578
584
|
| 'TECHNOLOGY'
|
|
579
|
-
| '
|
|
585
|
+
| 'TRANSPORTATION';
|
|
580
586
|
|
|
581
587
|
/**
|
|
582
588
|
* Telnyx-specific extensions to The Campaign Registry's `Brand` type
|
package/src/resources/shared.ts
CHANGED
|
@@ -1215,6 +1215,41 @@ export interface SubNumberOrderRegulatoryRequirementWithValue {
|
|
|
1215
1215
|
requirement_id?: string;
|
|
1216
1216
|
}
|
|
1217
1217
|
|
|
1218
|
+
export interface WhatsappTemplateData {
|
|
1219
|
+
id?: string;
|
|
1220
|
+
|
|
1221
|
+
category?: 'MARKETING' | 'UTILITY' | 'AUTHENTICATION';
|
|
1222
|
+
|
|
1223
|
+
/**
|
|
1224
|
+
* Whatsapp template components (header, body, footer, buttons)
|
|
1225
|
+
*/
|
|
1226
|
+
components?: Array<{ [key: string]: unknown }>;
|
|
1227
|
+
|
|
1228
|
+
created_at?: string;
|
|
1229
|
+
|
|
1230
|
+
language?: string;
|
|
1231
|
+
|
|
1232
|
+
name?: string;
|
|
1233
|
+
|
|
1234
|
+
record_type?: string;
|
|
1235
|
+
|
|
1236
|
+
rejection_reason?: string;
|
|
1237
|
+
|
|
1238
|
+
status?: string;
|
|
1239
|
+
|
|
1240
|
+
template_id?: string;
|
|
1241
|
+
|
|
1242
|
+
updated_at?: string;
|
|
1243
|
+
|
|
1244
|
+
whatsapp_business_account?: WhatsappTemplateData.WhatsappBusinessAccount;
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
export namespace WhatsappTemplateData {
|
|
1248
|
+
export interface WhatsappBusinessAccount {
|
|
1249
|
+
id?: string;
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1218
1253
|
export type MessagingHostedNumberOrdersDefaultFlatPagination =
|
|
1219
1254
|
DefaultFlatPagination<MessagingHostedNumberOrder>;
|
|
1220
1255
|
|
|
@@ -1226,3 +1261,5 @@ export type ShortCodesDefaultFlatPagination = DefaultFlatPagination<ShortCode>;
|
|
|
1226
1261
|
export type RoomParticipantsDefaultFlatPagination = DefaultFlatPagination<RoomParticipant>;
|
|
1227
1262
|
|
|
1228
1263
|
export type SimpleSimCardsDefaultFlatPagination = DefaultFlatPagination<SimpleSimCard>;
|
|
1264
|
+
|
|
1265
|
+
export type WhatsappTemplateDataDefaultFlatPagination = DefaultFlatPagination<WhatsappTemplateData>;
|
|
@@ -248,6 +248,45 @@ export class Actions extends APIResource {
|
|
|
248
248
|
|
|
249
249
|
export type SimCardActionsDefaultFlatPagination = DefaultFlatPagination<SimCardAction>;
|
|
250
250
|
|
|
251
|
+
/**
|
|
252
|
+
* This object represents a bulk SIM card action. It groups SIM card actions
|
|
253
|
+
* created through a bulk endpoint under a single resource for further lookup.
|
|
254
|
+
*/
|
|
255
|
+
export interface BulkSimCardAction {
|
|
256
|
+
/**
|
|
257
|
+
* Identifies the resource.
|
|
258
|
+
*/
|
|
259
|
+
id?: string;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* The action type. It can be one of the following: <br/>
|
|
263
|
+
*
|
|
264
|
+
* <ul>
|
|
265
|
+
* <li><code>bulk_disable_voice</code> - disable voice for every SIM Card in a SIM Card Group.</li>
|
|
266
|
+
* <li><code>bulk_enable_voice</code> - enable voice for every SIM Card in a SIM Card Group.</li>
|
|
267
|
+
* <li><code>bulk_set_public_ips</code> - set a public IP for each specified SIM Card.</li>
|
|
268
|
+
* </ul>
|
|
269
|
+
*/
|
|
270
|
+
action_type?: 'bulk_disable_voice' | 'bulk_enable_voice' | 'bulk_set_public_ips';
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* ISO 8601 formatted date-time indicating when the resource was created.
|
|
274
|
+
*/
|
|
275
|
+
created_at?: string;
|
|
276
|
+
|
|
277
|
+
record_type?: string;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* A JSON object representation of the bulk action payload.
|
|
281
|
+
*/
|
|
282
|
+
settings?: { [key: string]: unknown };
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* ISO 8601 formatted date-time indicating when the resource was updated.
|
|
286
|
+
*/
|
|
287
|
+
updated_at?: string;
|
|
288
|
+
}
|
|
289
|
+
|
|
251
290
|
/**
|
|
252
291
|
* This object represents a SIM card action. It allows tracking the current status
|
|
253
292
|
* of an operation that impacts the SIM card.
|
|
@@ -325,48 +364,7 @@ export interface ActionBulkDisableVoiceResponse {
|
|
|
325
364
|
* This object represents a bulk SIM card action. It groups SIM card actions
|
|
326
365
|
* created through a bulk endpoint under a single resource for further lookup.
|
|
327
366
|
*/
|
|
328
|
-
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
|
-
}
|
|
367
|
+
data?: BulkSimCardAction;
|
|
370
368
|
}
|
|
371
369
|
|
|
372
370
|
export interface ActionBulkEnableVoiceResponse {
|
|
@@ -374,48 +372,7 @@ export interface ActionBulkEnableVoiceResponse {
|
|
|
374
372
|
* This object represents a bulk SIM card action. It groups SIM card actions
|
|
375
373
|
* created through a bulk endpoint under a single resource for further lookup.
|
|
376
374
|
*/
|
|
377
|
-
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
|
-
}
|
|
375
|
+
data?: BulkSimCardAction;
|
|
419
376
|
}
|
|
420
377
|
|
|
421
378
|
export interface ActionBulkSetPublicIPsResponse {
|
|
@@ -423,48 +380,7 @@ export interface ActionBulkSetPublicIPsResponse {
|
|
|
423
380
|
* This object represents a bulk SIM card action. It groups SIM card actions
|
|
424
381
|
* created through a bulk endpoint under a single resource for further lookup.
|
|
425
382
|
*/
|
|
426
|
-
data?:
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
export namespace ActionBulkSetPublicIPsResponse {
|
|
430
|
-
/**
|
|
431
|
-
* This object represents a bulk SIM card action. It groups SIM card actions
|
|
432
|
-
* created through a bulk endpoint under a single resource for further lookup.
|
|
433
|
-
*/
|
|
434
|
-
export interface Data {
|
|
435
|
-
/**
|
|
436
|
-
* Identifies the resource.
|
|
437
|
-
*/
|
|
438
|
-
id?: string;
|
|
439
|
-
|
|
440
|
-
/**
|
|
441
|
-
* The action type. It can be one of the following: <br/>
|
|
442
|
-
*
|
|
443
|
-
* <ul>
|
|
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>
|
|
447
|
-
* </ul>
|
|
448
|
-
*/
|
|
449
|
-
action_type?: 'bulk_disable_voice' | 'bulk_enable_voice' | 'bulk_set_public_ips';
|
|
450
|
-
|
|
451
|
-
/**
|
|
452
|
-
* ISO 8601 formatted date-time indicating when the resource was created.
|
|
453
|
-
*/
|
|
454
|
-
created_at?: string;
|
|
455
|
-
|
|
456
|
-
record_type?: string;
|
|
457
|
-
|
|
458
|
-
/**
|
|
459
|
-
* A JSON object representation of the bulk action payload.
|
|
460
|
-
*/
|
|
461
|
-
settings?: { [key: string]: unknown };
|
|
462
|
-
|
|
463
|
-
/**
|
|
464
|
-
* ISO 8601 formatted date-time indicating when the resource was updated.
|
|
465
|
-
*/
|
|
466
|
-
updated_at?: string;
|
|
467
|
-
}
|
|
383
|
+
data?: BulkSimCardAction;
|
|
468
384
|
}
|
|
469
385
|
|
|
470
386
|
export interface ActionDisableResponse {
|
|
@@ -602,6 +518,7 @@ export interface ActionValidateRegistrationCodesParams {
|
|
|
602
518
|
|
|
603
519
|
export declare namespace Actions {
|
|
604
520
|
export {
|
|
521
|
+
type BulkSimCardAction as BulkSimCardAction,
|
|
605
522
|
type SimCardAction as SimCardAction,
|
|
606
523
|
type ActionRetrieveResponse as ActionRetrieveResponse,
|
|
607
524
|
type ActionBulkDisableVoiceResponse as ActionBulkDisableVoiceResponse,
|
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
ActionValidateRegistrationCodesParams,
|
|
23
23
|
ActionValidateRegistrationCodesResponse,
|
|
24
24
|
Actions,
|
|
25
|
+
BulkSimCardAction,
|
|
25
26
|
SimCardAction,
|
|
26
27
|
SimCardActionsDefaultFlatPagination,
|
|
27
28
|
} from './actions';
|
|
@@ -768,6 +769,7 @@ export declare namespace SimCards {
|
|
|
768
769
|
|
|
769
770
|
export {
|
|
770
771
|
Actions as Actions,
|
|
772
|
+
type BulkSimCardAction as BulkSimCardAction,
|
|
771
773
|
type SimCardAction as SimCardAction,
|
|
772
774
|
type ActionRetrieveResponse as ActionRetrieveResponse,
|
|
773
775
|
type ActionBulkDisableVoiceResponse as ActionBulkDisableVoiceResponse,
|