@getlatedev/node 0.2.1178 → 0.2.1179

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
@@ -21690,7 +21690,7 @@ type GetConnectUrlData = {
21690
21690
  *
21691
21691
  * `facebook_login`: the Facebook Login dialog, i.e. "Instagram API with Facebook Login". The user authorizes a Facebook Page that has a linked Instagram professional account, and every API call for that account then runs through the Page. Use this when the customer manages Instagram through a Page and expects the Facebook consent screen. Because the user has to pick which Page to connect, the callback continues at the account-selection step, `/v1/connect/instagram/select-account`.
21692
21692
  *
21693
- * `facebook_login` supports `headless=true` like the other selection platforms: the callback redirects to your `redirect_url` with `profileId`, `tempToken`, `platform=instagram`, `step=select_account` and `connect_token`, which you pass into the select-account endpoints to finish. The default `instagram_login` has no selection step, so it connects the account directly.
21693
+ * `facebook_login` supports `headless=true` like the other selection platforms: the callback redirects to your `redirect_url` with `profileId`, `tempToken`, `platform=instagram`, `step=select_account`, `userProfile` (the Facebook user's profile, same shape and encoding as the Facebook `step=select_page` redirect) and `connect_token`. Pass `profileId`, `tempToken` and `connect_token` into the select-account endpoints to finish. The default `instagram_login` has no selection step, so it connects the account directly.
21694
21694
  *
21695
21695
  */
21696
21696
  loginMethod?: 'instagram_login' | 'facebook_login';
@@ -21749,7 +21749,8 @@ type GetConnectUrlData = {
21749
21749
  * - `granted_pages_not_listed`: Pages were ticked but Meta listed none the user can manage, and a
21750
21750
  * direct read of each ticked Page returned no access token.
21751
21751
  *
21752
- * Headless Facebook success (`step=select_page`): `userProfile` is JSON that was
21752
+ * Headless Facebook success (`step=select_page`) and headless Instagram `facebook_login` success
21753
+ * (`step=select_account`): `userProfile` is JSON that was
21753
21754
  * percent-encoded once before being set as a query param, so it is encoded twice on the wire.
21754
21755
  * After your framework decodes the query string once, run one more decodeURIComponent (or
21755
21756
  * equivalent) and then JSON.parse it. `tempToken` and `connect_token` are plain values.
package/dist/index.d.ts CHANGED
@@ -21690,7 +21690,7 @@ type GetConnectUrlData = {
21690
21690
  *
21691
21691
  * `facebook_login`: the Facebook Login dialog, i.e. "Instagram API with Facebook Login". The user authorizes a Facebook Page that has a linked Instagram professional account, and every API call for that account then runs through the Page. Use this when the customer manages Instagram through a Page and expects the Facebook consent screen. Because the user has to pick which Page to connect, the callback continues at the account-selection step, `/v1/connect/instagram/select-account`.
21692
21692
  *
21693
- * `facebook_login` supports `headless=true` like the other selection platforms: the callback redirects to your `redirect_url` with `profileId`, `tempToken`, `platform=instagram`, `step=select_account` and `connect_token`, which you pass into the select-account endpoints to finish. The default `instagram_login` has no selection step, so it connects the account directly.
21693
+ * `facebook_login` supports `headless=true` like the other selection platforms: the callback redirects to your `redirect_url` with `profileId`, `tempToken`, `platform=instagram`, `step=select_account`, `userProfile` (the Facebook user's profile, same shape and encoding as the Facebook `step=select_page` redirect) and `connect_token`. Pass `profileId`, `tempToken` and `connect_token` into the select-account endpoints to finish. The default `instagram_login` has no selection step, so it connects the account directly.
21694
21694
  *
21695
21695
  */
21696
21696
  loginMethod?: 'instagram_login' | 'facebook_login';
@@ -21749,7 +21749,8 @@ type GetConnectUrlData = {
21749
21749
  * - `granted_pages_not_listed`: Pages were ticked but Meta listed none the user can manage, and a
21750
21750
  * direct read of each ticked Page returned no access token.
21751
21751
  *
21752
- * Headless Facebook success (`step=select_page`): `userProfile` is JSON that was
21752
+ * Headless Facebook success (`step=select_page`) and headless Instagram `facebook_login` success
21753
+ * (`step=select_account`): `userProfile` is JSON that was
21753
21754
  * percent-encoded once before being set as a query param, so it is encoded twice on the wire.
21754
21755
  * After your framework decodes the query string once, run one more decodeURIComponent (or
21755
21756
  * equivalent) and then JSON.parse it. `tempToken` and `connect_token` are plain values.
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.1178",
39
+ version: "0.2.1179",
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.1178",
8
+ version: "0.2.1179",
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.1178",
3
+ "version": "0.2.1179",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -20641,7 +20641,7 @@ export type GetConnectUrlData = {
20641
20641
  *
20642
20642
  * `facebook_login`: the Facebook Login dialog, i.e. "Instagram API with Facebook Login". The user authorizes a Facebook Page that has a linked Instagram professional account, and every API call for that account then runs through the Page. Use this when the customer manages Instagram through a Page and expects the Facebook consent screen. Because the user has to pick which Page to connect, the callback continues at the account-selection step, `/v1/connect/instagram/select-account`.
20643
20643
  *
20644
- * `facebook_login` supports `headless=true` like the other selection platforms: the callback redirects to your `redirect_url` with `profileId`, `tempToken`, `platform=instagram`, `step=select_account` and `connect_token`, which you pass into the select-account endpoints to finish. The default `instagram_login` has no selection step, so it connects the account directly.
20644
+ * `facebook_login` supports `headless=true` like the other selection platforms: the callback redirects to your `redirect_url` with `profileId`, `tempToken`, `platform=instagram`, `step=select_account`, `userProfile` (the Facebook user's profile, same shape and encoding as the Facebook `step=select_page` redirect) and `connect_token`. Pass `profileId`, `tempToken` and `connect_token` into the select-account endpoints to finish. The default `instagram_login` has no selection step, so it connects the account directly.
20645
20645
  *
20646
20646
  */
20647
20647
  loginMethod?: 'instagram_login' | 'facebook_login';
@@ -20700,7 +20700,8 @@ export type GetConnectUrlData = {
20700
20700
  * - `granted_pages_not_listed`: Pages were ticked but Meta listed none the user can manage, and a
20701
20701
  * direct read of each ticked Page returned no access token.
20702
20702
  *
20703
- * Headless Facebook success (`step=select_page`): `userProfile` is JSON that was
20703
+ * Headless Facebook success (`step=select_page`) and headless Instagram `facebook_login` success
20704
+ * (`step=select_account`): `userProfile` is JSON that was
20704
20705
  * percent-encoded once before being set as a query param, so it is encoded twice on the wire.
20705
20706
  * After your framework decodes the query string once, run one more decodeURIComponent (or
20706
20707
  * equivalent) and then JSON.parse it. `tempToken` and `connect_token` are plain values.