@getlatedev/node 0.2.1132 → 0.2.1134

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
@@ -21175,6 +21175,10 @@ type GetConnectUrlData = {
21175
21175
  * Only connect if the authorized account's handle is this one (case-insensitive, a leading @ is ignored); otherwise the flow ends with `error=account_mismatch`, `error_message` naming the handle that was authorized, and nothing is written. Same coverage and transport as expectedPlatformUserId; when both are sent both must match. Use this on a first connection, where you hold the handle the user typed but no Zernio id yet.
21176
21176
  */
21177
21177
  expectedUsername?: string;
21178
+ /**
21179
+ * Instagram Login only (the default loginMethod); ignored elsewhere. Makes Instagram show its login page and ask for the credentials of the account to connect even when another Instagram account is logged in on the device or in the app, and hides the Facebook login option on that page. Use it when the person connecting manages several Instagram accounts on one phone: Instagram otherwise logs in, and converts to a professional account, whichever account is active, before any consent screen. Pair it with expectedUsername to also refuse a wrong account at the end.
21180
+ */
21181
+ forceReauth?: boolean;
21178
21182
  /**
21179
21183
  * When true, the user is redirected to your redirect_url with raw OAuth data (code, state) instead of Zernio's default account selection UI. Use this to build a custom connect experience.
21180
21184
  */
@@ -22104,7 +22108,7 @@ type ListFacebookPagesResponse = ({
22104
22108
  */
22105
22109
  truncated?: boolean;
22106
22110
  });
22107
- type ListFacebookPagesError = (unknown | ErrorResponse | {
22111
+ type ListFacebookPagesError = (unknown | ErrorResponse | string | {
22108
22112
  error?: string;
22109
22113
  });
22110
22114
  type SelectFacebookPageData = {
@@ -22192,7 +22196,7 @@ type SelectFacebookPageResponse = ({
22192
22196
  message?: string;
22193
22197
  }>;
22194
22198
  });
22195
- type SelectFacebookPageError = (unknown | ErrorResponse);
22199
+ type SelectFacebookPageError = (unknown | ErrorResponse | string);
22196
22200
  type ListInstagramPagesData = {
22197
22201
  headers?: {
22198
22202
  /**
@@ -22242,7 +22246,7 @@ type ListInstagramPagesResponse = ({
22242
22246
  };
22243
22247
  }>;
22244
22248
  });
22245
- type ListInstagramPagesError = (unknown | ErrorResponse);
22249
+ type ListInstagramPagesError = (unknown | ErrorResponse | string);
22246
22250
  type SelectInstagramAccountData = {
22247
22251
  body: {
22248
22252
  /**
@@ -22369,7 +22373,7 @@ type SelectInstagramAccountError = (unknown | ErrorResponse | {
22369
22373
  */
22370
22374
  effective_account_limit?: number;
22371
22375
  };
22372
- });
22376
+ } | string);
22373
22377
  type ListGoogleBusinessLocationsData = {
22374
22378
  query?: {
22375
22379
  /**
package/dist/index.d.ts CHANGED
@@ -21175,6 +21175,10 @@ type GetConnectUrlData = {
21175
21175
  * Only connect if the authorized account's handle is this one (case-insensitive, a leading @ is ignored); otherwise the flow ends with `error=account_mismatch`, `error_message` naming the handle that was authorized, and nothing is written. Same coverage and transport as expectedPlatformUserId; when both are sent both must match. Use this on a first connection, where you hold the handle the user typed but no Zernio id yet.
21176
21176
  */
21177
21177
  expectedUsername?: string;
21178
+ /**
21179
+ * Instagram Login only (the default loginMethod); ignored elsewhere. Makes Instagram show its login page and ask for the credentials of the account to connect even when another Instagram account is logged in on the device or in the app, and hides the Facebook login option on that page. Use it when the person connecting manages several Instagram accounts on one phone: Instagram otherwise logs in, and converts to a professional account, whichever account is active, before any consent screen. Pair it with expectedUsername to also refuse a wrong account at the end.
21180
+ */
21181
+ forceReauth?: boolean;
21178
21182
  /**
21179
21183
  * When true, the user is redirected to your redirect_url with raw OAuth data (code, state) instead of Zernio's default account selection UI. Use this to build a custom connect experience.
21180
21184
  */
@@ -22104,7 +22108,7 @@ type ListFacebookPagesResponse = ({
22104
22108
  */
22105
22109
  truncated?: boolean;
22106
22110
  });
22107
- type ListFacebookPagesError = (unknown | ErrorResponse | {
22111
+ type ListFacebookPagesError = (unknown | ErrorResponse | string | {
22108
22112
  error?: string;
22109
22113
  });
22110
22114
  type SelectFacebookPageData = {
@@ -22192,7 +22196,7 @@ type SelectFacebookPageResponse = ({
22192
22196
  message?: string;
22193
22197
  }>;
22194
22198
  });
22195
- type SelectFacebookPageError = (unknown | ErrorResponse);
22199
+ type SelectFacebookPageError = (unknown | ErrorResponse | string);
22196
22200
  type ListInstagramPagesData = {
22197
22201
  headers?: {
22198
22202
  /**
@@ -22242,7 +22246,7 @@ type ListInstagramPagesResponse = ({
22242
22246
  };
22243
22247
  }>;
22244
22248
  });
22245
- type ListInstagramPagesError = (unknown | ErrorResponse);
22249
+ type ListInstagramPagesError = (unknown | ErrorResponse | string);
22246
22250
  type SelectInstagramAccountData = {
22247
22251
  body: {
22248
22252
  /**
@@ -22369,7 +22373,7 @@ type SelectInstagramAccountError = (unknown | ErrorResponse | {
22369
22373
  */
22370
22374
  effective_account_limit?: number;
22371
22375
  };
22372
- });
22376
+ } | string);
22373
22377
  type ListGoogleBusinessLocationsData = {
22374
22378
  query?: {
22375
22379
  /**
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: "@getlatedev/node",
39
- version: "0.2.1132",
39
+ version: "0.2.1134",
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: "@getlatedev/node",
8
- version: "0.2.1132",
8
+ version: "0.2.1134",
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": "@getlatedev/node",
3
- "version": "0.2.1132",
3
+ "version": "0.2.1134",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -20126,6 +20126,10 @@ export type GetConnectUrlData = {
20126
20126
  * Only connect if the authorized account's handle is this one (case-insensitive, a leading @ is ignored); otherwise the flow ends with `error=account_mismatch`, `error_message` naming the handle that was authorized, and nothing is written. Same coverage and transport as expectedPlatformUserId; when both are sent both must match. Use this on a first connection, where you hold the handle the user typed but no Zernio id yet.
20127
20127
  */
20128
20128
  expectedUsername?: string;
20129
+ /**
20130
+ * Instagram Login only (the default loginMethod); ignored elsewhere. Makes Instagram show its login page and ask for the credentials of the account to connect even when another Instagram account is logged in on the device or in the app, and hides the Facebook login option on that page. Use it when the person connecting manages several Instagram accounts on one phone: Instagram otherwise logs in, and converts to a professional account, whichever account is active, before any consent screen. Pair it with expectedUsername to also refuse a wrong account at the end.
20131
+ */
20132
+ forceReauth?: boolean;
20129
20133
  /**
20130
20134
  * When true, the user is redirected to your redirect_url with raw OAuth data (code, state) instead of Zernio's default account selection UI. Use this to build a custom connect experience.
20131
20135
  */
@@ -21082,7 +21086,7 @@ export type ListFacebookPagesResponse = ({
21082
21086
  truncated?: boolean;
21083
21087
  });
21084
21088
 
21085
- export type ListFacebookPagesError = (unknown | ErrorResponse | {
21089
+ export type ListFacebookPagesError = (unknown | ErrorResponse | string | {
21086
21090
  error?: string;
21087
21091
  });
21088
21092
 
@@ -21173,7 +21177,7 @@ export type SelectFacebookPageResponse = ({
21173
21177
  }>;
21174
21178
  });
21175
21179
 
21176
- export type SelectFacebookPageError = (unknown | ErrorResponse);
21180
+ export type SelectFacebookPageError = (unknown | ErrorResponse | string);
21177
21181
 
21178
21182
  export type ListInstagramPagesData = {
21179
21183
  headers?: {
@@ -21226,7 +21230,7 @@ export type ListInstagramPagesResponse = ({
21226
21230
  }>;
21227
21231
  });
21228
21232
 
21229
- export type ListInstagramPagesError = (unknown | ErrorResponse);
21233
+ export type ListInstagramPagesError = (unknown | ErrorResponse | string);
21230
21234
 
21231
21235
  export type SelectInstagramAccountData = {
21232
21236
  body: {
@@ -21356,7 +21360,7 @@ export type SelectInstagramAccountError = (unknown | ErrorResponse | {
21356
21360
  */
21357
21361
  effective_account_limit?: number;
21358
21362
  };
21359
- });
21363
+ } | string);
21360
21364
 
21361
21365
  export type ListGoogleBusinessLocationsData = {
21362
21366
  query?: {