@zernio/node 0.2.905 → 0.2.906

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.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.905",
39
+ version: "0.2.906",
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.905",
8
+ version: "0.2.906",
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.905",
3
+ "version": "0.2.906",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1641,10 +1641,17 @@ export const handleOAuthCallback = <ThrowOnError extends boolean = false>(option
1641
1641
  * token. No posting account is created or required. This mode always returns an authUrl;
1642
1642
  * it returns 503 when the server has no META_ADS_CONFIG_ID. Complete the dialog in a
1643
1643
  * browser. The callback creates or reconnects only the metaads account, preserving its
1644
- * ID, history and scopedAdAccountIds. Non-empty successful subscription results replace
1645
- * subscribedAdAccountIds to remove stale grants; an empty result leaves routing unchanged. A reconnect must grant
1646
- * every previously scoped ad account (or every previous grant for an unscoped connection).
1647
- * Missing or unverifiable grants return 409 before changing the account.
1644
+ * ID and history. Non-empty successful subscription results replace
1645
+ * subscribedAdAccountIds to remove stale grants; an empty result leaves routing unchanged. A reconnect is
1646
+ * accepted when the new grant shares at least one ad account with the existing connection (its
1647
+ * scopedAdAccountIds plus the previous grant, or the ad accounts its old token can read when neither
1648
+ * is stored), so re-running the dialog can add, drop or swap ad accounts. A grant with zero overlap
1649
+ * is refused before changing the account and redirects with `error=invalid_field_value` and
1650
+ * `error_reason=reconnect_mismatch` (disconnect and connect again to switch); when the previous ad
1651
+ * accounts cannot be read at all, it redirects with `error=reconnect_required`. On an accepted
1652
+ * reconnect the scope is rebuilt from the new grant: `adAccountIds` passed on the re-auth become the
1653
+ * scope; otherwise a stored scope keeps its ad accounts that are still granted plus any granted for the
1654
+ * first time, and an unscoped connection follows the new grant.
1648
1655
  *
1649
1656
  * Pass `pageId` to select a granted Page for creatives and lead forms. API integrations
1650
1657
  * otherwise reuse the previous Page or sole granted Page. Multiple Pages without a selection