@getlatedev/node 0.2.902 → 0.2.904

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
@@ -15144,7 +15144,7 @@ type GetUsageData = {
15144
15144
  type GetUsageResponse = ((UsageStats | UsageMetering));
15145
15145
  type GetUsageError = (unknown | {
15146
15146
  error?: string;
15147
- });
15147
+ } | ErrorResponse);
15148
15148
  type GetUsageStatsData = {
15149
15149
  query?: {
15150
15150
  /**
@@ -15161,7 +15161,7 @@ type GetUsageStatsData = {
15161
15161
  type GetUsageStatsResponse = (UsageStats);
15162
15162
  type GetUsageStatsError = (unknown | {
15163
15163
  error?: string;
15164
- });
15164
+ } | ErrorResponse);
15165
15165
  type GetCallsUsageData = {
15166
15166
  query?: {
15167
15167
  channel?: 'whatsapp' | 'pstn';
@@ -16847,11 +16847,13 @@ type GetConnectUrlData = {
16847
16847
  * redirect, but ours overwrite a param of yours with the same name. On an error redirect the
16848
16848
  * internal `headless`, `adsConnect` and `adsScope` markers we add during the flow are removed.
16849
16849
  *
16850
- * Correlation (every redirect from an OAuth callback, success and failure):
16851
- * - `request_id`: the id we log the callback request under. Quote it when reporting a problem.
16850
+ * Correlation (every redirect from an OAuth callback, success and failure, and the
16851
+ * `redirect_url` returned by the selection endpoints such as POST /v1/connect/facebook/select-page):
16852
+ * - `request_id`: the id we log that request under. Quote it when reporting a problem.
16852
16853
  * - `stage`: where the flow ended. `authorize` = the platform's consent dialog returned an
16853
16854
  * error or denial instead of a code. `callback` = we processed the returned code (success,
16854
- * a selection step, or a failure). `select_page` is reserved for the destination-selection step.
16855
+ * a selection step, or a failure). `select_page` = the destination-selection endpoint
16856
+ * (page, account, organization, board, location, profile or phone number) completed it.
16855
16857
  *
16856
16858
  * `oauth_denied` carries `error_message` and, when the platform sent them, its own values as
16857
16859
  * `platform_error` (e.g. `access_denied`), `platform_error_reason` (e.g. `user_denied`) and
@@ -17808,9 +17810,13 @@ type SelectInstagramAccountData = {
17808
17810
  type SelectInstagramAccountResponse = ({
17809
17811
  message?: string;
17810
17812
  /**
17811
- * Redirect URL if a custom redirect_url was provided
17813
+ * Redirect URL if a custom redirect_url was provided. On an ads connect it also carries `adsAccountId`.
17812
17814
  */
17813
17815
  redirect_url?: string;
17816
+ /**
17817
+ * Ads connect only (the redirect_url carries adsConnect=true, as it does after GET /v1/connect/{platform}/ads). The metaads SocialAccount ID to use with the /v1/ads endpoints. `account.accountId` is the Instagram posting account. Absent when the ads account could not be created.
17818
+ */
17819
+ adsAccountId?: string;
17814
17820
  account?: {
17815
17821
  /**
17816
17822
  * ID of the created SocialAccount
package/dist/index.d.ts CHANGED
@@ -15144,7 +15144,7 @@ type GetUsageData = {
15144
15144
  type GetUsageResponse = ((UsageStats | UsageMetering));
15145
15145
  type GetUsageError = (unknown | {
15146
15146
  error?: string;
15147
- });
15147
+ } | ErrorResponse);
15148
15148
  type GetUsageStatsData = {
15149
15149
  query?: {
15150
15150
  /**
@@ -15161,7 +15161,7 @@ type GetUsageStatsData = {
15161
15161
  type GetUsageStatsResponse = (UsageStats);
15162
15162
  type GetUsageStatsError = (unknown | {
15163
15163
  error?: string;
15164
- });
15164
+ } | ErrorResponse);
15165
15165
  type GetCallsUsageData = {
15166
15166
  query?: {
15167
15167
  channel?: 'whatsapp' | 'pstn';
@@ -16847,11 +16847,13 @@ type GetConnectUrlData = {
16847
16847
  * redirect, but ours overwrite a param of yours with the same name. On an error redirect the
16848
16848
  * internal `headless`, `adsConnect` and `adsScope` markers we add during the flow are removed.
16849
16849
  *
16850
- * Correlation (every redirect from an OAuth callback, success and failure):
16851
- * - `request_id`: the id we log the callback request under. Quote it when reporting a problem.
16850
+ * Correlation (every redirect from an OAuth callback, success and failure, and the
16851
+ * `redirect_url` returned by the selection endpoints such as POST /v1/connect/facebook/select-page):
16852
+ * - `request_id`: the id we log that request under. Quote it when reporting a problem.
16852
16853
  * - `stage`: where the flow ended. `authorize` = the platform's consent dialog returned an
16853
16854
  * error or denial instead of a code. `callback` = we processed the returned code (success,
16854
- * a selection step, or a failure). `select_page` is reserved for the destination-selection step.
16855
+ * a selection step, or a failure). `select_page` = the destination-selection endpoint
16856
+ * (page, account, organization, board, location, profile or phone number) completed it.
16855
16857
  *
16856
16858
  * `oauth_denied` carries `error_message` and, when the platform sent them, its own values as
16857
16859
  * `platform_error` (e.g. `access_denied`), `platform_error_reason` (e.g. `user_denied`) and
@@ -17808,9 +17810,13 @@ type SelectInstagramAccountData = {
17808
17810
  type SelectInstagramAccountResponse = ({
17809
17811
  message?: string;
17810
17812
  /**
17811
- * Redirect URL if a custom redirect_url was provided
17813
+ * Redirect URL if a custom redirect_url was provided. On an ads connect it also carries `adsAccountId`.
17812
17814
  */
17813
17815
  redirect_url?: string;
17816
+ /**
17817
+ * Ads connect only (the redirect_url carries adsConnect=true, as it does after GET /v1/connect/{platform}/ads). The metaads SocialAccount ID to use with the /v1/ads endpoints. `account.accountId` is the Instagram posting account. Absent when the ads account could not be created.
17818
+ */
17819
+ adsAccountId?: string;
17814
17820
  account?: {
17815
17821
  /**
17816
17822
  * ID of the created SocialAccount
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.902",
39
+ version: "0.2.904",
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.902",
8
+ version: "0.2.904",
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.902",
3
+ "version": "0.2.904",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -14058,7 +14058,7 @@ export type GetUsageResponse = ((UsageStats | UsageMetering));
14058
14058
 
14059
14059
  export type GetUsageError = (unknown | {
14060
14060
  error?: string;
14061
- });
14061
+ } | ErrorResponse);
14062
14062
 
14063
14063
  export type GetUsageStatsData = {
14064
14064
  query?: {
@@ -14078,7 +14078,7 @@ export type GetUsageStatsResponse = (UsageStats);
14078
14078
 
14079
14079
  export type GetUsageStatsError = (unknown | {
14080
14080
  error?: string;
14081
- });
14081
+ } | ErrorResponse);
14082
14082
 
14083
14083
  export type GetCallsUsageData = {
14084
14084
  query?: {
@@ -15887,11 +15887,13 @@ export type GetConnectUrlData = {
15887
15887
  * redirect, but ours overwrite a param of yours with the same name. On an error redirect the
15888
15888
  * internal `headless`, `adsConnect` and `adsScope` markers we add during the flow are removed.
15889
15889
  *
15890
- * Correlation (every redirect from an OAuth callback, success and failure):
15891
- * - `request_id`: the id we log the callback request under. Quote it when reporting a problem.
15890
+ * Correlation (every redirect from an OAuth callback, success and failure, and the
15891
+ * `redirect_url` returned by the selection endpoints such as POST /v1/connect/facebook/select-page):
15892
+ * - `request_id`: the id we log that request under. Quote it when reporting a problem.
15892
15893
  * - `stage`: where the flow ended. `authorize` = the platform's consent dialog returned an
15893
15894
  * error or denial instead of a code. `callback` = we processed the returned code (success,
15894
- * a selection step, or a failure). `select_page` is reserved for the destination-selection step.
15895
+ * a selection step, or a failure). `select_page` = the destination-selection endpoint
15896
+ * (page, account, organization, board, location, profile or phone number) completed it.
15895
15897
  *
15896
15898
  * `oauth_denied` carries `error_message` and, when the platform sent them, its own values as
15897
15899
  * `platform_error` (e.g. `access_denied`), `platform_error_reason` (e.g. `user_denied`) and
@@ -16883,9 +16885,13 @@ export type SelectInstagramAccountData = {
16883
16885
  export type SelectInstagramAccountResponse = ({
16884
16886
  message?: string;
16885
16887
  /**
16886
- * Redirect URL if a custom redirect_url was provided
16888
+ * Redirect URL if a custom redirect_url was provided. On an ads connect it also carries `adsAccountId`.
16887
16889
  */
16888
16890
  redirect_url?: string;
16891
+ /**
16892
+ * Ads connect only (the redirect_url carries adsConnect=true, as it does after GET /v1/connect/{platform}/ads). The metaads SocialAccount ID to use with the /v1/ads endpoints. `account.accountId` is the Instagram posting account. Absent when the ads account could not be created.
16893
+ */
16894
+ adsAccountId?: string;
16889
16895
  account?: {
16890
16896
  /**
16891
16897
  * ID of the created SocialAccount