@zernio/node 0.2.849 → 0.2.851
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/dist/index.d.mts +10 -2
- package/dist/index.d.ts +10 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +5 -0
- package/src/generated/types.gen.ts +10 -2
package/dist/index.d.mts
CHANGED
|
@@ -16601,7 +16601,7 @@ type GetConnectUrlData = {
|
|
|
16601
16601
|
/**
|
|
16602
16602
|
* Hosted signup page only (`signup=hosted`, WhatsApp): language of the page and its follow-along guide. Explainer videos stay in English. Default `en`. Rejected without `signup=hosted`.
|
|
16603
16603
|
*/
|
|
16604
|
-
language?: 'en' | 'es';
|
|
16604
|
+
language?: 'en' | 'es' | 'pt-BR';
|
|
16605
16605
|
/**
|
|
16606
16606
|
* Instagram only. Which of the two Instagram connection methods to use. Ignored for every other platform.
|
|
16607
16607
|
*
|
|
@@ -19717,7 +19717,7 @@ type GetWhatsAppSdkConfigResponse = ({
|
|
|
19717
19717
|
* Hex colour, #RRGGBB
|
|
19718
19718
|
*/
|
|
19719
19719
|
primaryColor?: (string) | null;
|
|
19720
|
-
language?: ('en' | 'es') | null;
|
|
19720
|
+
language?: ('en' | 'es' | 'pt-BR') | null;
|
|
19721
19721
|
} | null;
|
|
19722
19722
|
});
|
|
19723
19723
|
type GetWhatsAppSdkConfigError = ({
|
|
@@ -29372,6 +29372,10 @@ type CreatePhoneNumberKycLinkData = {
|
|
|
29372
29372
|
* Area code (NDC) the eventual number must be in. Hard constraint carried by the link; the end customer filling the form makes no area choice. Options come from GET /v1/phone-numbers/availability (areaOptions).
|
|
29373
29373
|
*/
|
|
29374
29374
|
areaCode?: string;
|
|
29375
|
+
/**
|
|
29376
|
+
* Language of the hosted page: its copy, the carrier requirement texts (translated once per country and cached), the pre-submit review notes and the status emails to the end customer. Omitted: the browser language of the end customer, falling back to English. The end customer can also switch with `?lang=` on the page.
|
|
29377
|
+
*/
|
|
29378
|
+
language?: 'en' | 'es' | 'pt-BR';
|
|
29375
29379
|
/**
|
|
29376
29380
|
* Optional white-label of the hosted page the end customer sees.
|
|
29377
29381
|
*/
|
|
@@ -30136,6 +30140,10 @@ type CreateWhatsAppNumberKycLinkData = {
|
|
|
30136
30140
|
* Area code (NDC) the eventual number must be in. Hard constraint carried by the link; the end customer filling the form makes no area choice. Options come from GET /v1/phone-numbers/availability (areaOptions).
|
|
30137
30141
|
*/
|
|
30138
30142
|
areaCode?: string;
|
|
30143
|
+
/**
|
|
30144
|
+
* Language of the hosted page: its copy, the carrier requirement texts (translated once per country and cached), the pre-submit review notes and the status emails to the end customer. Omitted: the browser language of the end customer, falling back to English. The end customer can also switch with `?lang=` on the page.
|
|
30145
|
+
*/
|
|
30146
|
+
language?: 'en' | 'es' | 'pt-BR';
|
|
30139
30147
|
/**
|
|
30140
30148
|
* Optional white-label of the hosted page the end customer sees.
|
|
30141
30149
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -16601,7 +16601,7 @@ type GetConnectUrlData = {
|
|
|
16601
16601
|
/**
|
|
16602
16602
|
* Hosted signup page only (`signup=hosted`, WhatsApp): language of the page and its follow-along guide. Explainer videos stay in English. Default `en`. Rejected without `signup=hosted`.
|
|
16603
16603
|
*/
|
|
16604
|
-
language?: 'en' | 'es';
|
|
16604
|
+
language?: 'en' | 'es' | 'pt-BR';
|
|
16605
16605
|
/**
|
|
16606
16606
|
* Instagram only. Which of the two Instagram connection methods to use. Ignored for every other platform.
|
|
16607
16607
|
*
|
|
@@ -19717,7 +19717,7 @@ type GetWhatsAppSdkConfigResponse = ({
|
|
|
19717
19717
|
* Hex colour, #RRGGBB
|
|
19718
19718
|
*/
|
|
19719
19719
|
primaryColor?: (string) | null;
|
|
19720
|
-
language?: ('en' | 'es') | null;
|
|
19720
|
+
language?: ('en' | 'es' | 'pt-BR') | null;
|
|
19721
19721
|
} | null;
|
|
19722
19722
|
});
|
|
19723
19723
|
type GetWhatsAppSdkConfigError = ({
|
|
@@ -29372,6 +29372,10 @@ type CreatePhoneNumberKycLinkData = {
|
|
|
29372
29372
|
* Area code (NDC) the eventual number must be in. Hard constraint carried by the link; the end customer filling the form makes no area choice. Options come from GET /v1/phone-numbers/availability (areaOptions).
|
|
29373
29373
|
*/
|
|
29374
29374
|
areaCode?: string;
|
|
29375
|
+
/**
|
|
29376
|
+
* Language of the hosted page: its copy, the carrier requirement texts (translated once per country and cached), the pre-submit review notes and the status emails to the end customer. Omitted: the browser language of the end customer, falling back to English. The end customer can also switch with `?lang=` on the page.
|
|
29377
|
+
*/
|
|
29378
|
+
language?: 'en' | 'es' | 'pt-BR';
|
|
29375
29379
|
/**
|
|
29376
29380
|
* Optional white-label of the hosted page the end customer sees.
|
|
29377
29381
|
*/
|
|
@@ -30136,6 +30140,10 @@ type CreateWhatsAppNumberKycLinkData = {
|
|
|
30136
30140
|
* Area code (NDC) the eventual number must be in. Hard constraint carried by the link; the end customer filling the form makes no area choice. Options come from GET /v1/phone-numbers/availability (areaOptions).
|
|
30137
30141
|
*/
|
|
30138
30142
|
areaCode?: string;
|
|
30143
|
+
/**
|
|
30144
|
+
* Language of the hosted page: its copy, the carrier requirement texts (translated once per country and cached), the pre-submit review notes and the status emails to the end customer. Omitted: the browser language of the end customer, falling back to English. The end customer can also switch with `?lang=` on the page.
|
|
30145
|
+
*/
|
|
30146
|
+
language?: 'en' | 'es' | 'pt-BR';
|
|
30139
30147
|
/**
|
|
30140
30148
|
* Optional white-label of the hosted page the end customer sees.
|
|
30141
30149
|
*/
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
36
36
|
// package.json
|
|
37
37
|
var package_default = {
|
|
38
38
|
name: "@zernio/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.851",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5
5
|
// package.json
|
|
6
6
|
var package_default = {
|
|
7
7
|
name: "@zernio/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.851",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
package/package.json
CHANGED
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -10531,6 +10531,11 @@ export const getDsaRecommendations = <ThrowOnError extends boolean = false>(opti
|
|
|
10531
10531
|
* `instagramAccountId`, `destinationType`, `whatsappPhoneNumber` and `adSetId`
|
|
10532
10532
|
* are Meta-only and return 400 on other platforms.
|
|
10533
10533
|
*
|
|
10534
|
+
* `accountId` may be a Facebook, Instagram or Meta ads (business login)
|
|
10535
|
+
* connection. A business-login connection has no posting account, so pass
|
|
10536
|
+
* the post as `platformPostId` (Facebook `pageId_postId` or an Instagram
|
|
10537
|
+
* media id); a Zernio `postId` is a 400 there.
|
|
10538
|
+
*
|
|
10534
10539
|
* **Messaging boosts (Meta).** Use `goal: engagement` with
|
|
10535
10540
|
* `callToAction: WHATSAPP_MESSAGE`, `MESSAGE_PAGE`, or `INSTAGRAM_MESSAGE`.
|
|
10536
10541
|
* The CTA implies WHATSAPP, MESSENGER, or INSTAGRAM_DIRECT respectively;
|
|
@@ -15647,7 +15647,7 @@ export type GetConnectUrlData = {
|
|
|
15647
15647
|
/**
|
|
15648
15648
|
* Hosted signup page only (`signup=hosted`, WhatsApp): language of the page and its follow-along guide. Explainer videos stay in English. Default `en`. Rejected without `signup=hosted`.
|
|
15649
15649
|
*/
|
|
15650
|
-
language?: 'en' | 'es';
|
|
15650
|
+
language?: 'en' | 'es' | 'pt-BR';
|
|
15651
15651
|
/**
|
|
15652
15652
|
* Instagram only. Which of the two Instagram connection methods to use. Ignored for every other platform.
|
|
15653
15653
|
*
|
|
@@ -18921,7 +18921,7 @@ export type GetWhatsAppSdkConfigResponse = ({
|
|
|
18921
18921
|
* Hex colour, #RRGGBB
|
|
18922
18922
|
*/
|
|
18923
18923
|
primaryColor?: (string) | null;
|
|
18924
|
-
language?: ('en' | 'es') | null;
|
|
18924
|
+
language?: ('en' | 'es' | 'pt-BR') | null;
|
|
18925
18925
|
} | null;
|
|
18926
18926
|
});
|
|
18927
18927
|
|
|
@@ -29295,6 +29295,10 @@ export type CreatePhoneNumberKycLinkData = {
|
|
|
29295
29295
|
* Area code (NDC) the eventual number must be in. Hard constraint carried by the link; the end customer filling the form makes no area choice. Options come from GET /v1/phone-numbers/availability (areaOptions).
|
|
29296
29296
|
*/
|
|
29297
29297
|
areaCode?: string;
|
|
29298
|
+
/**
|
|
29299
|
+
* Language of the hosted page: its copy, the carrier requirement texts (translated once per country and cached), the pre-submit review notes and the status emails to the end customer. Omitted: the browser language of the end customer, falling back to English. The end customer can also switch with `?lang=` on the page.
|
|
29300
|
+
*/
|
|
29301
|
+
language?: 'en' | 'es' | 'pt-BR';
|
|
29298
29302
|
/**
|
|
29299
29303
|
* Optional white-label of the hosted page the end customer sees.
|
|
29300
29304
|
*/
|
|
@@ -30109,6 +30113,10 @@ export type CreateWhatsAppNumberKycLinkData = {
|
|
|
30109
30113
|
* Area code (NDC) the eventual number must be in. Hard constraint carried by the link; the end customer filling the form makes no area choice. Options come from GET /v1/phone-numbers/availability (areaOptions).
|
|
30110
30114
|
*/
|
|
30111
30115
|
areaCode?: string;
|
|
30116
|
+
/**
|
|
30117
|
+
* Language of the hosted page: its copy, the carrier requirement texts (translated once per country and cached), the pre-submit review notes and the status emails to the end customer. Omitted: the browser language of the end customer, falling back to English. The end customer can also switch with `?lang=` on the page.
|
|
30118
|
+
*/
|
|
30119
|
+
language?: 'en' | 'es' | 'pt-BR';
|
|
30112
30120
|
/**
|
|
30113
30121
|
* Optional white-label of the hosted page the end customer sees.
|
|
30114
30122
|
*/
|