@zernio/node 0.2.1047 → 0.2.1049

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
@@ -21019,9 +21019,13 @@ type SelectFacebookPageData = {
21019
21019
  */
21020
21020
  profileId: string;
21021
21021
  /**
21022
- * The Facebook Page ID selected by the user.
21022
+ * The Facebook Page ID selected by the user. Send this or pageIds, not both.
21023
21023
  */
21024
- pageId: string;
21024
+ pageId?: string;
21025
+ /**
21026
+ * Several Page IDs to connect from one sign-in, each as its own account. With two or more distinct IDs the response lists `accounts` and `failed` instead of `account`, and the request is refused with 400 while a profile holds one Facebook account and on a reconnect or an ads connect, which pick exactly one Page. A single distinct ID behaves exactly like pageId.
21027
+ */
21028
+ pageIds?: Array<(string)>;
21025
21029
  /**
21026
21030
  * Temporary Facebook access token from OAuth.
21027
21031
  */
@@ -21071,6 +21075,23 @@ type SelectFacebookPageResponse = ({
21071
21075
  isActive?: boolean;
21072
21076
  selectedPageName?: string;
21073
21077
  };
21078
+ /**
21079
+ * pageIds only. The connected accounts, same shape as `account`. The redirect_url then carries `accountIds` (comma-separated) and `accountId` of the first.
21080
+ */
21081
+ accounts?: Array<{
21082
+ [key: string]: unknown;
21083
+ }>;
21084
+ /**
21085
+ * pageIds only. The Pages that could not be connected while the others were.
21086
+ */
21087
+ failed?: Array<{
21088
+ /**
21089
+ * The Page ID.
21090
+ */
21091
+ id?: string;
21092
+ code?: string;
21093
+ message?: string;
21094
+ }>;
21074
21095
  });
21075
21096
  type SelectFacebookPageError = (unknown | {
21076
21097
  error?: string;
@@ -21124,9 +21145,13 @@ type SelectInstagramAccountData = {
21124
21145
  */
21125
21146
  profileId: string;
21126
21147
  /**
21127
- * The Facebook Page ID selected by the user, from GET /v1/connect/instagram/select-account
21148
+ * The Facebook Page ID selected by the user, from GET /v1/connect/instagram/select-account. Send this or pageIds, not both.
21128
21149
  */
21129
- pageId: string;
21150
+ pageId?: string;
21151
+ /**
21152
+ * Several Page IDs whose linked Instagram accounts to connect from one sign-in, each as its own account. With two or more distinct IDs the response lists `accounts` and `failed` instead of `account`, and the request is refused with 400 while a profile holds one Instagram account and on a reconnect or an ads connect. A single distinct ID behaves exactly like pageId.
21153
+ */
21154
+ pageIds?: Array<(string)>;
21130
21155
  /**
21131
21156
  * Long-lived Facebook user access token from the OAuth callback redirect
21132
21157
  */
@@ -21162,6 +21187,23 @@ type SelectInstagramAccountResponse = ({
21162
21187
  isActive?: boolean;
21163
21188
  loginMethod?: 'facebook_login';
21164
21189
  };
21190
+ /**
21191
+ * pageIds only. The connected accounts, same shape as `account`. The redirect_url then carries `accountIds` (comma-separated) and `accountId` of the first.
21192
+ */
21193
+ accounts?: Array<{
21194
+ [key: string]: unknown;
21195
+ }>;
21196
+ /**
21197
+ * pageIds only. The Pages whose Instagram account could not be connected while the others were.
21198
+ */
21199
+ failed?: Array<{
21200
+ /**
21201
+ * The Page ID.
21202
+ */
21203
+ id?: string;
21204
+ code?: string;
21205
+ message?: string;
21206
+ }>;
21165
21207
  });
21166
21208
  type SelectInstagramAccountError = (unknown | {
21167
21209
  error?: string;
@@ -21220,7 +21262,7 @@ type SelectInstagramAccountError = (unknown | {
21220
21262
  */
21221
21263
  effective_account_limit?: number;
21222
21264
  };
21223
- });
21265
+ } | ErrorResponse);
21224
21266
  type ListGoogleBusinessLocationsData = {
21225
21267
  query?: {
21226
21268
  /**
@@ -45367,7 +45409,7 @@ type CreateStandaloneAdData = {
45367
45409
  */
45368
45410
  leadGenFormId?: string;
45369
45411
  /**
45370
- * Image creative for Meta/Google/Pinterest/LinkedIn on legacy + attach shapes (mutually exclusive with `video`). Required for LinkedIn ads unless `video` is set. Not required for Google Search campaigns. For TikTok, this field carries the VIDEO URL (the TikTok ads endpoint is video-only; the field retains the `imageUrl` name for cross-platform consistency). Ignored for X. For Google Display, treated as the landscape image (alias of `images.landscape`); supply `images.square` alongside or the request is rejected. For LinkedIn the image is uploaded to LinkedIn under the authoring Company Page (see `organizationId`); recommended ratio 1.91:1 (e.g. 1200×627). Required for OpenAI Ads (uploaded as the chat card's image; OpenAI has no video ad format).
45412
+ * Image creative for Meta/Google/Pinterest/LinkedIn on legacy + attach shapes (mutually exclusive with `video`). Required for LinkedIn ads unless `video` is set. Not required for Google Search campaigns. For TikTok, this field carries the VIDEO URL (the TikTok ads endpoint is video-only; the field retains the `imageUrl` name for cross-platform consistency). Rejected with 400 on X (an X ad is a post from body + linkUrl; promote a post that carries the image with POST /v1/ads/boost), as are headline, description, video and callToAction. For Google Display, treated as the landscape image (alias of `images.landscape`); supply `images.square` alongside or the request is rejected. For LinkedIn the image is uploaded to LinkedIn under the authoring Company Page (see `organizationId`); recommended ratio 1.91:1 (e.g. 1200×627). Required for OpenAI Ads (uploaded as the chat card's image; OpenAI has no video ad format).
45371
45413
  */
45372
45414
  imageUrl?: string;
45373
45415
  /**
package/dist/index.d.ts CHANGED
@@ -21019,9 +21019,13 @@ type SelectFacebookPageData = {
21019
21019
  */
21020
21020
  profileId: string;
21021
21021
  /**
21022
- * The Facebook Page ID selected by the user.
21022
+ * The Facebook Page ID selected by the user. Send this or pageIds, not both.
21023
21023
  */
21024
- pageId: string;
21024
+ pageId?: string;
21025
+ /**
21026
+ * Several Page IDs to connect from one sign-in, each as its own account. With two or more distinct IDs the response lists `accounts` and `failed` instead of `account`, and the request is refused with 400 while a profile holds one Facebook account and on a reconnect or an ads connect, which pick exactly one Page. A single distinct ID behaves exactly like pageId.
21027
+ */
21028
+ pageIds?: Array<(string)>;
21025
21029
  /**
21026
21030
  * Temporary Facebook access token from OAuth.
21027
21031
  */
@@ -21071,6 +21075,23 @@ type SelectFacebookPageResponse = ({
21071
21075
  isActive?: boolean;
21072
21076
  selectedPageName?: string;
21073
21077
  };
21078
+ /**
21079
+ * pageIds only. The connected accounts, same shape as `account`. The redirect_url then carries `accountIds` (comma-separated) and `accountId` of the first.
21080
+ */
21081
+ accounts?: Array<{
21082
+ [key: string]: unknown;
21083
+ }>;
21084
+ /**
21085
+ * pageIds only. The Pages that could not be connected while the others were.
21086
+ */
21087
+ failed?: Array<{
21088
+ /**
21089
+ * The Page ID.
21090
+ */
21091
+ id?: string;
21092
+ code?: string;
21093
+ message?: string;
21094
+ }>;
21074
21095
  });
21075
21096
  type SelectFacebookPageError = (unknown | {
21076
21097
  error?: string;
@@ -21124,9 +21145,13 @@ type SelectInstagramAccountData = {
21124
21145
  */
21125
21146
  profileId: string;
21126
21147
  /**
21127
- * The Facebook Page ID selected by the user, from GET /v1/connect/instagram/select-account
21148
+ * The Facebook Page ID selected by the user, from GET /v1/connect/instagram/select-account. Send this or pageIds, not both.
21128
21149
  */
21129
- pageId: string;
21150
+ pageId?: string;
21151
+ /**
21152
+ * Several Page IDs whose linked Instagram accounts to connect from one sign-in, each as its own account. With two or more distinct IDs the response lists `accounts` and `failed` instead of `account`, and the request is refused with 400 while a profile holds one Instagram account and on a reconnect or an ads connect. A single distinct ID behaves exactly like pageId.
21153
+ */
21154
+ pageIds?: Array<(string)>;
21130
21155
  /**
21131
21156
  * Long-lived Facebook user access token from the OAuth callback redirect
21132
21157
  */
@@ -21162,6 +21187,23 @@ type SelectInstagramAccountResponse = ({
21162
21187
  isActive?: boolean;
21163
21188
  loginMethod?: 'facebook_login';
21164
21189
  };
21190
+ /**
21191
+ * pageIds only. The connected accounts, same shape as `account`. The redirect_url then carries `accountIds` (comma-separated) and `accountId` of the first.
21192
+ */
21193
+ accounts?: Array<{
21194
+ [key: string]: unknown;
21195
+ }>;
21196
+ /**
21197
+ * pageIds only. The Pages whose Instagram account could not be connected while the others were.
21198
+ */
21199
+ failed?: Array<{
21200
+ /**
21201
+ * The Page ID.
21202
+ */
21203
+ id?: string;
21204
+ code?: string;
21205
+ message?: string;
21206
+ }>;
21165
21207
  });
21166
21208
  type SelectInstagramAccountError = (unknown | {
21167
21209
  error?: string;
@@ -21220,7 +21262,7 @@ type SelectInstagramAccountError = (unknown | {
21220
21262
  */
21221
21263
  effective_account_limit?: number;
21222
21264
  };
21223
- });
21265
+ } | ErrorResponse);
21224
21266
  type ListGoogleBusinessLocationsData = {
21225
21267
  query?: {
21226
21268
  /**
@@ -45367,7 +45409,7 @@ type CreateStandaloneAdData = {
45367
45409
  */
45368
45410
  leadGenFormId?: string;
45369
45411
  /**
45370
- * Image creative for Meta/Google/Pinterest/LinkedIn on legacy + attach shapes (mutually exclusive with `video`). Required for LinkedIn ads unless `video` is set. Not required for Google Search campaigns. For TikTok, this field carries the VIDEO URL (the TikTok ads endpoint is video-only; the field retains the `imageUrl` name for cross-platform consistency). Ignored for X. For Google Display, treated as the landscape image (alias of `images.landscape`); supply `images.square` alongside or the request is rejected. For LinkedIn the image is uploaded to LinkedIn under the authoring Company Page (see `organizationId`); recommended ratio 1.91:1 (e.g. 1200×627). Required for OpenAI Ads (uploaded as the chat card's image; OpenAI has no video ad format).
45412
+ * Image creative for Meta/Google/Pinterest/LinkedIn on legacy + attach shapes (mutually exclusive with `video`). Required for LinkedIn ads unless `video` is set. Not required for Google Search campaigns. For TikTok, this field carries the VIDEO URL (the TikTok ads endpoint is video-only; the field retains the `imageUrl` name for cross-platform consistency). Rejected with 400 on X (an X ad is a post from body + linkUrl; promote a post that carries the image with POST /v1/ads/boost), as are headline, description, video and callToAction. For Google Display, treated as the landscape image (alias of `images.landscape`); supply `images.square` alongside or the request is rejected. For LinkedIn the image is uploaded to LinkedIn under the authoring Company Page (see `organizationId`); recommended ratio 1.91:1 (e.g. 1200×627). Required for OpenAI Ads (uploaded as the chat card's image; OpenAI has no video ad format).
45371
45413
  */
45372
45414
  imageUrl?: string;
45373
45415
  /**
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.1047",
39
+ version: "0.2.1049",
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.1047",
8
+ version: "0.2.1049",
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.1047",
3
+ "version": "0.2.1049",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -19980,9 +19980,13 @@ export type SelectFacebookPageData = {
19980
19980
  */
19981
19981
  profileId: string;
19982
19982
  /**
19983
- * The Facebook Page ID selected by the user.
19983
+ * The Facebook Page ID selected by the user. Send this or pageIds, not both.
19984
19984
  */
19985
- pageId: string;
19985
+ pageId?: string;
19986
+ /**
19987
+ * Several Page IDs to connect from one sign-in, each as its own account. With two or more distinct IDs the response lists `accounts` and `failed` instead of `account`, and the request is refused with 400 while a profile holds one Facebook account and on a reconnect or an ads connect, which pick exactly one Page. A single distinct ID behaves exactly like pageId.
19988
+ */
19989
+ pageIds?: Array<(string)>;
19986
19990
  /**
19987
19991
  * Temporary Facebook access token from OAuth.
19988
19992
  */
@@ -20033,6 +20037,23 @@ export type SelectFacebookPageResponse = ({
20033
20037
  isActive?: boolean;
20034
20038
  selectedPageName?: string;
20035
20039
  };
20040
+ /**
20041
+ * pageIds only. The connected accounts, same shape as `account`. The redirect_url then carries `accountIds` (comma-separated) and `accountId` of the first.
20042
+ */
20043
+ accounts?: Array<{
20044
+ [key: string]: unknown;
20045
+ }>;
20046
+ /**
20047
+ * pageIds only. The Pages that could not be connected while the others were.
20048
+ */
20049
+ failed?: Array<{
20050
+ /**
20051
+ * The Page ID.
20052
+ */
20053
+ id?: string;
20054
+ code?: string;
20055
+ message?: string;
20056
+ }>;
20036
20057
  });
20037
20058
 
20038
20059
  export type SelectFacebookPageError = (unknown | {
@@ -20091,9 +20112,13 @@ export type SelectInstagramAccountData = {
20091
20112
  */
20092
20113
  profileId: string;
20093
20114
  /**
20094
- * The Facebook Page ID selected by the user, from GET /v1/connect/instagram/select-account
20115
+ * The Facebook Page ID selected by the user, from GET /v1/connect/instagram/select-account. Send this or pageIds, not both.
20095
20116
  */
20096
- pageId: string;
20117
+ pageId?: string;
20118
+ /**
20119
+ * Several Page IDs whose linked Instagram accounts to connect from one sign-in, each as its own account. With two or more distinct IDs the response lists `accounts` and `failed` instead of `account`, and the request is refused with 400 while a profile holds one Instagram account and on a reconnect or an ads connect. A single distinct ID behaves exactly like pageId.
20120
+ */
20121
+ pageIds?: Array<(string)>;
20097
20122
  /**
20098
20123
  * Long-lived Facebook user access token from the OAuth callback redirect
20099
20124
  */
@@ -20130,6 +20155,23 @@ export type SelectInstagramAccountResponse = ({
20130
20155
  isActive?: boolean;
20131
20156
  loginMethod?: 'facebook_login';
20132
20157
  };
20158
+ /**
20159
+ * pageIds only. The connected accounts, same shape as `account`. The redirect_url then carries `accountIds` (comma-separated) and `accountId` of the first.
20160
+ */
20161
+ accounts?: Array<{
20162
+ [key: string]: unknown;
20163
+ }>;
20164
+ /**
20165
+ * pageIds only. The Pages whose Instagram account could not be connected while the others were.
20166
+ */
20167
+ failed?: Array<{
20168
+ /**
20169
+ * The Page ID.
20170
+ */
20171
+ id?: string;
20172
+ code?: string;
20173
+ message?: string;
20174
+ }>;
20133
20175
  });
20134
20176
 
20135
20177
  export type SelectInstagramAccountError = (unknown | {
@@ -20189,7 +20231,7 @@ export type SelectInstagramAccountError = (unknown | {
20189
20231
  */
20190
20232
  effective_account_limit?: number;
20191
20233
  };
20192
- });
20234
+ } | ErrorResponse);
20193
20235
 
20194
20236
  export type ListGoogleBusinessLocationsData = {
20195
20237
  query?: {
@@ -46101,7 +46143,7 @@ export type CreateStandaloneAdData = {
46101
46143
  */
46102
46144
  leadGenFormId?: string;
46103
46145
  /**
46104
- * Image creative for Meta/Google/Pinterest/LinkedIn on legacy + attach shapes (mutually exclusive with `video`). Required for LinkedIn ads unless `video` is set. Not required for Google Search campaigns. For TikTok, this field carries the VIDEO URL (the TikTok ads endpoint is video-only; the field retains the `imageUrl` name for cross-platform consistency). Ignored for X. For Google Display, treated as the landscape image (alias of `images.landscape`); supply `images.square` alongside or the request is rejected. For LinkedIn the image is uploaded to LinkedIn under the authoring Company Page (see `organizationId`); recommended ratio 1.91:1 (e.g. 1200×627). Required for OpenAI Ads (uploaded as the chat card's image; OpenAI has no video ad format).
46146
+ * Image creative for Meta/Google/Pinterest/LinkedIn on legacy + attach shapes (mutually exclusive with `video`). Required for LinkedIn ads unless `video` is set. Not required for Google Search campaigns. For TikTok, this field carries the VIDEO URL (the TikTok ads endpoint is video-only; the field retains the `imageUrl` name for cross-platform consistency). Rejected with 400 on X (an X ad is a post from body + linkUrl; promote a post that carries the image with POST /v1/ads/boost), as are headline, description, video and callToAction. For Google Display, treated as the landscape image (alias of `images.landscape`); supply `images.square` alongside or the request is rejected. For LinkedIn the image is uploaded to LinkedIn under the authoring Company Page (see `organizationId`); recommended ratio 1.91:1 (e.g. 1200×627). Required for OpenAI Ads (uploaded as the chat card's image; OpenAI has no video ad format).
46105
46147
  */
46106
46148
  imageUrl?: string;
46107
46149
  /**