@zernio/node 0.2.848 → 0.2.850

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 CHANGED
@@ -4777,6 +4777,10 @@ type CtwaAdRequestBody = {
4777
4777
  * Messaging and CTWA only. Raw Facebook pageId_postId reference, used as object_story_id even with an Instagram account. Mutually exclusive with existingPostId and fresh creative fields.
4778
4778
  */
4779
4779
  objectStoryId?: string;
4780
+ /**
4781
+ * Facebook Page the ad runs as, when the connection was granted several Pages. Defaults to the Page bound to the connection. Any Page granted to the connection is accepted; other ids answer 400 listing the granted Pages. Same semantics as `pageId` on POST /v1/ads/create.
4782
+ */
4783
+ pageId?: string;
4780
4784
  /**
4781
4785
  * WhatsApp only. Optional E.164 number already paired with the Facebook Page. Omit to let Meta select the paired number. Sent to the creative CTA and, when creating a new ad set, its promoted_object. Attach requests do not change the existing ad set. Stored as creative.whatsappPhoneNumber on every created ad.
4782
4786
  */
@@ -16597,7 +16601,7 @@ type GetConnectUrlData = {
16597
16601
  /**
16598
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`.
16599
16603
  */
16600
- language?: 'en' | 'es';
16604
+ language?: 'en' | 'es' | 'pt-BR';
16601
16605
  /**
16602
16606
  * Instagram only. Which of the two Instagram connection methods to use. Ignored for every other platform.
16603
16607
  *
@@ -19713,7 +19717,7 @@ type GetWhatsAppSdkConfigResponse = ({
19713
19717
  * Hex colour, #RRGGBB
19714
19718
  */
19715
19719
  primaryColor?: (string) | null;
19716
- language?: ('en' | 'es') | null;
19720
+ language?: ('en' | 'es' | 'pt-BR') | null;
19717
19721
  } | null;
19718
19722
  });
19719
19723
  type GetWhatsAppSdkConfigError = ({
@@ -29368,6 +29372,10 @@ type CreatePhoneNumberKycLinkData = {
29368
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).
29369
29373
  */
29370
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';
29371
29379
  /**
29372
29380
  * Optional white-label of the hosted page the end customer sees.
29373
29381
  */
@@ -30132,6 +30140,10 @@ type CreateWhatsAppNumberKycLinkData = {
30132
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).
30133
30141
  */
30134
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';
30135
30147
  /**
30136
30148
  * Optional white-label of the hosted page the end customer sees.
30137
30149
  */
package/dist/index.d.ts CHANGED
@@ -4777,6 +4777,10 @@ type CtwaAdRequestBody = {
4777
4777
  * Messaging and CTWA only. Raw Facebook pageId_postId reference, used as object_story_id even with an Instagram account. Mutually exclusive with existingPostId and fresh creative fields.
4778
4778
  */
4779
4779
  objectStoryId?: string;
4780
+ /**
4781
+ * Facebook Page the ad runs as, when the connection was granted several Pages. Defaults to the Page bound to the connection. Any Page granted to the connection is accepted; other ids answer 400 listing the granted Pages. Same semantics as `pageId` on POST /v1/ads/create.
4782
+ */
4783
+ pageId?: string;
4780
4784
  /**
4781
4785
  * WhatsApp only. Optional E.164 number already paired with the Facebook Page. Omit to let Meta select the paired number. Sent to the creative CTA and, when creating a new ad set, its promoted_object. Attach requests do not change the existing ad set. Stored as creative.whatsappPhoneNumber on every created ad.
4782
4786
  */
@@ -16597,7 +16601,7 @@ type GetConnectUrlData = {
16597
16601
  /**
16598
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`.
16599
16603
  */
16600
- language?: 'en' | 'es';
16604
+ language?: 'en' | 'es' | 'pt-BR';
16601
16605
  /**
16602
16606
  * Instagram only. Which of the two Instagram connection methods to use. Ignored for every other platform.
16603
16607
  *
@@ -19713,7 +19717,7 @@ type GetWhatsAppSdkConfigResponse = ({
19713
19717
  * Hex colour, #RRGGBB
19714
19718
  */
19715
19719
  primaryColor?: (string) | null;
19716
- language?: ('en' | 'es') | null;
19720
+ language?: ('en' | 'es' | 'pt-BR') | null;
19717
19721
  } | null;
19718
19722
  });
19719
19723
  type GetWhatsAppSdkConfigError = ({
@@ -29368,6 +29372,10 @@ type CreatePhoneNumberKycLinkData = {
29368
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).
29369
29373
  */
29370
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';
29371
29379
  /**
29372
29380
  * Optional white-label of the hosted page the end customer sees.
29373
29381
  */
@@ -30132,6 +30140,10 @@ type CreateWhatsAppNumberKycLinkData = {
30132
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).
30133
30141
  */
30134
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';
30135
30147
  /**
30136
30148
  * Optional white-label of the hosted page the end customer sees.
30137
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.848",
39
+ version: "0.2.850",
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.848",
8
+ version: "0.2.850",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.848",
3
+ "version": "0.2.850",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -11746,6 +11746,8 @@ export const sendWhatsAppConversion = <ThrowOnError extends boolean = false>(opt
11746
11746
  * `objectStoryId`, either per creative or at the top level. Omit fresh
11747
11747
  * media and copy for that creative. Optional `whatsappPhoneNumber` selects
11748
11748
  * a number already paired with the Page (WhatsApp destination only).
11749
+ * `accountId` is a Facebook, Instagram or Meta ads (business login) connection;
11750
+ * `pageId` picks the Page when that connection was granted several.
11749
11751
  */
11750
11752
  export const createMessagingAd = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateMessagingAdData, ThrowOnError>) => {
11751
11753
  return (options?.client ?? client).post<CreateMessagingAdResponse, CreateMessagingAdError, ThrowOnError>({
@@ -3217,6 +3217,10 @@ export type CtwaAdRequestBody = {
3217
3217
  * Messaging and CTWA only. Raw Facebook pageId_postId reference, used as object_story_id even with an Instagram account. Mutually exclusive with existingPostId and fresh creative fields.
3218
3218
  */
3219
3219
  objectStoryId?: string;
3220
+ /**
3221
+ * Facebook Page the ad runs as, when the connection was granted several Pages. Defaults to the Page bound to the connection. Any Page granted to the connection is accepted; other ids answer 400 listing the granted Pages. Same semantics as `pageId` on POST /v1/ads/create.
3222
+ */
3223
+ pageId?: string;
3220
3224
  /**
3221
3225
  * WhatsApp only. Optional E.164 number already paired with the Facebook Page. Omit to let Meta select the paired number. Sent to the creative CTA and, when creating a new ad set, its promoted_object. Attach requests do not change the existing ad set. Stored as creative.whatsappPhoneNumber on every created ad.
3222
3226
  */
@@ -15643,7 +15647,7 @@ export type GetConnectUrlData = {
15643
15647
  /**
15644
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`.
15645
15649
  */
15646
- language?: 'en' | 'es';
15650
+ language?: 'en' | 'es' | 'pt-BR';
15647
15651
  /**
15648
15652
  * Instagram only. Which of the two Instagram connection methods to use. Ignored for every other platform.
15649
15653
  *
@@ -18917,7 +18921,7 @@ export type GetWhatsAppSdkConfigResponse = ({
18917
18921
  * Hex colour, #RRGGBB
18918
18922
  */
18919
18923
  primaryColor?: (string) | null;
18920
- language?: ('en' | 'es') | null;
18924
+ language?: ('en' | 'es' | 'pt-BR') | null;
18921
18925
  } | null;
18922
18926
  });
18923
18927
 
@@ -29291,6 +29295,10 @@ export type CreatePhoneNumberKycLinkData = {
29291
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).
29292
29296
  */
29293
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';
29294
29302
  /**
29295
29303
  * Optional white-label of the hosted page the end customer sees.
29296
29304
  */
@@ -30105,6 +30113,10 @@ export type CreateWhatsAppNumberKycLinkData = {
30105
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).
30106
30114
  */
30107
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';
30108
30120
  /**
30109
30121
  * Optional white-label of the hosted page the end customer sees.
30110
30122
  */