@getlatedev/node 0.2.1782 → 0.2.1783

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
@@ -41191,6 +41191,8 @@ type GetConnectUrlData = {
41191
41191
  *
41192
41192
  * - Standard mode: connected={platform}&profileId=X&accountId=Y&username=Z.
41193
41193
  * - X on prepaid-balance billing at a $0 balance: `billingNotice=x_balance_required` is added. The account is connected, but X posts wait or are refused (402 `insufficient_balance`) until the balance is funded.
41194
+ * - The login landed on an account the profile already had connected, on a connect that named none (no `reconnectAccountId`, `expectedUsername` or `expectedPlatformUserId`): `accountNotice=already_connected` is added. No new account was added: `accountId` is that account, with its connection refreshed.
41195
+ * - Platforms sign in whoever is logged in on the device, so to connect a different account the user logs out of the platform first, or uses a private window. On Instagram Login, `forceReauth=true` asks for the credentials of the account to connect instead.
41194
41196
  * - Headless mode: OAuth data params for platforms requiring selection (e.g. LinkedIn orgs, Facebook pages). If no selection is needed, the account is created directly and the redirect includes accountId.
41195
41197
  *
41196
41198
  * **Failure params:** the browser goes to the same redirect_url with `error` and `platform` appended (always present). `error_message`, `is_user_fixable`, `reason`, `dashboard_url`, `missing_scopes`, `error_reason` and the `platform_error*` params are conditional: treat them as optional.
package/dist/index.d.ts CHANGED
@@ -41191,6 +41191,8 @@ type GetConnectUrlData = {
41191
41191
  *
41192
41192
  * - Standard mode: connected={platform}&profileId=X&accountId=Y&username=Z.
41193
41193
  * - X on prepaid-balance billing at a $0 balance: `billingNotice=x_balance_required` is added. The account is connected, but X posts wait or are refused (402 `insufficient_balance`) until the balance is funded.
41194
+ * - The login landed on an account the profile already had connected, on a connect that named none (no `reconnectAccountId`, `expectedUsername` or `expectedPlatformUserId`): `accountNotice=already_connected` is added. No new account was added: `accountId` is that account, with its connection refreshed.
41195
+ * - Platforms sign in whoever is logged in on the device, so to connect a different account the user logs out of the platform first, or uses a private window. On Instagram Login, `forceReauth=true` asks for the credentials of the account to connect instead.
41194
41196
  * - Headless mode: OAuth data params for platforms requiring selection (e.g. LinkedIn orgs, Facebook pages). If no selection is needed, the account is created directly and the redirect includes accountId.
41195
41197
  *
41196
41198
  * **Failure params:** the browser goes to the same redirect_url with `error` and `platform` appended (always present). `error_message`, `is_user_fixable`, `reason`, `dashboard_url`, `missing_scopes`, `error_reason` and the `platform_error*` params are conditional: treat them as optional.
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.1782",
39
+ version: "0.2.1783",
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.1782",
8
+ version: "0.2.1783",
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.1782",
3
+ "version": "0.2.1783",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -40435,6 +40435,8 @@ export type GetConnectUrlData = {
40435
40435
  *
40436
40436
  * - Standard mode: connected={platform}&profileId=X&accountId=Y&username=Z.
40437
40437
  * - X on prepaid-balance billing at a $0 balance: `billingNotice=x_balance_required` is added. The account is connected, but X posts wait or are refused (402 `insufficient_balance`) until the balance is funded.
40438
+ * - The login landed on an account the profile already had connected, on a connect that named none (no `reconnectAccountId`, `expectedUsername` or `expectedPlatformUserId`): `accountNotice=already_connected` is added. No new account was added: `accountId` is that account, with its connection refreshed.
40439
+ * - Platforms sign in whoever is logged in on the device, so to connect a different account the user logs out of the platform first, or uses a private window. On Instagram Login, `forceReauth=true` asks for the credentials of the account to connect instead.
40438
40440
  * - Headless mode: OAuth data params for platforms requiring selection (e.g. LinkedIn orgs, Facebook pages). If no selection is needed, the account is created directly and the redirect includes accountId.
40439
40441
  *
40440
40442
  * **Failure params:** the browser goes to the same redirect_url with `error` and `platform` appended (always present). `error_message`, `is_user_fixable`, `reason`, `dashboard_url`, `missing_scopes`, `error_reason` and the `platform_error*` params are conditional: treat them as optional.