@zernio/node 0.2.672 → 0.2.673

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
@@ -15731,7 +15731,57 @@ type ConnectOpenAiAdsCredentialsResponse = ({
15731
15731
  adAccountName?: string;
15732
15732
  redirectUrl?: string;
15733
15733
  });
15734
- type ConnectOpenAiAdsCredentialsError = (ErrorResponse | unknown);
15734
+ type ConnectOpenAiAdsCredentialsError = (ErrorResponse | unknown | {
15735
+ /**
15736
+ * Human-readable error message suitable for end-user display.
15737
+ */
15738
+ error: string;
15739
+ /**
15740
+ * Machine-readable error code. Stable across versions.
15741
+ */
15742
+ code: 'PAYMENT_REQUIRED';
15743
+ /**
15744
+ * Discriminator for which gate fired.
15745
+ */
15746
+ reason: 'free_tier_exceeded' | 'twitter_passthrough' | 'enterprise_required';
15747
+ /**
15748
+ * Link to the relevant documentation page.
15749
+ */
15750
+ documentation_url?: string;
15751
+ /**
15752
+ * Deep-link to send the end-user to. For
15753
+ * `free_tier_exceeded` and `twitter_passthrough` this is
15754
+ * the Zernio billing tab. For `enterprise_required` this
15755
+ * is the Zernio enterprise contact page.
15756
+ *
15757
+ */
15758
+ dashboard_url?: string;
15759
+ /**
15760
+ * Structured context for SDK clients that want to render their own UX. Keys vary by `reason`.
15761
+ */
15762
+ details?: {
15763
+ /**
15764
+ * How many accounts the free tier allows. Only set when reason=free_tier_exceeded.
15765
+ */
15766
+ free_tier_account_limit?: number;
15767
+ /**
15768
+ * How many accounts the team currently has connected. Set when reason=free_tier_exceeded or reason=enterprise_required.
15769
+ */
15770
+ current_account_count?: number;
15771
+ /**
15772
+ * Whether the team currently has a card on file in Stripe. Set when reason=free_tier_exceeded or reason=twitter_passthrough.
15773
+ */
15774
+ has_payment_method?: boolean;
15775
+ /**
15776
+ * The negotiated connected-account cap from the
15777
+ * team's enterprise contract. Self-service teams
15778
+ * have no cap and never receive this reason. Only
15779
+ * set when reason=enterprise_required.
15780
+ *
15781
+ */
15782
+ effective_account_limit?: number;
15783
+ };
15784
+ });
15735
15785
  type ConnectWhatsAppCredentialsData = {
15736
15786
  body: {
15737
15787
  /**
@@ -20476,7 +20526,7 @@ type ListInboxCommentsResponse = ({
20476
20526
  platform?: string;
20477
20527
  error?: string;
20478
20528
  /**
20479
- * Error code if available
20529
+ * Error code if available (e.g. TOKEN_EXPIRED, or X_INBOX_NOT_ENABLED for an X account whose owner has not enabled X inbox)
20480
20530
  */
20481
20531
  code?: (string) | null;
20482
20532
  /**
package/dist/index.d.ts CHANGED
@@ -15731,7 +15731,57 @@ type ConnectOpenAiAdsCredentialsResponse = ({
15731
15731
  adAccountName?: string;
15732
15732
  redirectUrl?: string;
15733
15733
  });
15734
- type ConnectOpenAiAdsCredentialsError = (ErrorResponse | unknown);
15734
+ type ConnectOpenAiAdsCredentialsError = (ErrorResponse | unknown | {
15735
+ /**
15736
+ * Human-readable error message suitable for end-user display.
15737
+ */
15738
+ error: string;
15739
+ /**
15740
+ * Machine-readable error code. Stable across versions.
15741
+ */
15742
+ code: 'PAYMENT_REQUIRED';
15743
+ /**
15744
+ * Discriminator for which gate fired.
15745
+ */
15746
+ reason: 'free_tier_exceeded' | 'twitter_passthrough' | 'enterprise_required';
15747
+ /**
15748
+ * Link to the relevant documentation page.
15749
+ */
15750
+ documentation_url?: string;
15751
+ /**
15752
+ * Deep-link to send the end-user to. For
15753
+ * `free_tier_exceeded` and `twitter_passthrough` this is
15754
+ * the Zernio billing tab. For `enterprise_required` this
15755
+ * is the Zernio enterprise contact page.
15756
+ *
15757
+ */
15758
+ dashboard_url?: string;
15759
+ /**
15760
+ * Structured context for SDK clients that want to render their own UX. Keys vary by `reason`.
15761
+ */
15762
+ details?: {
15763
+ /**
15764
+ * How many accounts the free tier allows. Only set when reason=free_tier_exceeded.
15765
+ */
15766
+ free_tier_account_limit?: number;
15767
+ /**
15768
+ * How many accounts the team currently has connected. Set when reason=free_tier_exceeded or reason=enterprise_required.
15769
+ */
15770
+ current_account_count?: number;
15771
+ /**
15772
+ * Whether the team currently has a card on file in Stripe. Set when reason=free_tier_exceeded or reason=twitter_passthrough.
15773
+ */
15774
+ has_payment_method?: boolean;
15775
+ /**
15776
+ * The negotiated connected-account cap from the
15777
+ * team's enterprise contract. Self-service teams
15778
+ * have no cap and never receive this reason. Only
15779
+ * set when reason=enterprise_required.
15780
+ *
15781
+ */
15782
+ effective_account_limit?: number;
15783
+ };
15784
+ });
15735
15785
  type ConnectWhatsAppCredentialsData = {
15736
15786
  body: {
15737
15787
  /**
@@ -20476,7 +20526,7 @@ type ListInboxCommentsResponse = ({
20476
20526
  platform?: string;
20477
20527
  error?: string;
20478
20528
  /**
20479
- * Error code if available
20529
+ * Error code if available (e.g. TOKEN_EXPIRED, or X_INBOX_NOT_ENABLED for an X account whose owner has not enabled X inbox)
20480
20530
  */
20481
20531
  code?: (string) | null;
20482
20532
  /**
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.672",
39
+ version: "0.2.673",
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.672",
8
+ version: "0.2.673",
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.672",
3
+ "version": "0.2.673",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -15124,7 +15124,57 @@ export type ConnectOpenAiAdsCredentialsResponse = ({
15124
15124
  redirectUrl?: string;
15125
15125
  });
15126
15126
 
15127
- export type ConnectOpenAiAdsCredentialsError = (ErrorResponse | unknown);
15127
+ export type ConnectOpenAiAdsCredentialsError = (ErrorResponse | unknown | {
15128
+ /**
15129
+ * Human-readable error message suitable for end-user display.
15130
+ */
15131
+ error: string;
15132
+ /**
15133
+ * Machine-readable error code. Stable across versions.
15134
+ */
15135
+ code: 'PAYMENT_REQUIRED';
15136
+ /**
15137
+ * Discriminator for which gate fired.
15138
+ */
15139
+ reason: 'free_tier_exceeded' | 'twitter_passthrough' | 'enterprise_required';
15140
+ /**
15141
+ * Link to the relevant documentation page.
15142
+ */
15143
+ documentation_url?: string;
15144
+ /**
15145
+ * Deep-link to send the end-user to. For
15146
+ * `free_tier_exceeded` and `twitter_passthrough` this is
15147
+ * the Zernio billing tab. For `enterprise_required` this
15148
+ * is the Zernio enterprise contact page.
15149
+ *
15150
+ */
15151
+ dashboard_url?: string;
15152
+ /**
15153
+ * Structured context for SDK clients that want to render their own UX. Keys vary by `reason`.
15154
+ */
15155
+ details?: {
15156
+ /**
15157
+ * How many accounts the free tier allows. Only set when reason=free_tier_exceeded.
15158
+ */
15159
+ free_tier_account_limit?: number;
15160
+ /**
15161
+ * How many accounts the team currently has connected. Set when reason=free_tier_exceeded or reason=enterprise_required.
15162
+ */
15163
+ current_account_count?: number;
15164
+ /**
15165
+ * Whether the team currently has a card on file in Stripe. Set when reason=free_tier_exceeded or reason=twitter_passthrough.
15166
+ */
15167
+ has_payment_method?: boolean;
15168
+ /**
15169
+ * The negotiated connected-account cap from the
15170
+ * team's enterprise contract. Self-service teams
15171
+ * have no cap and never receive this reason. Only
15172
+ * set when reason=enterprise_required.
15173
+ *
15174
+ */
15175
+ effective_account_limit?: number;
15176
+ };
15177
+ });
15128
15178
 
15129
15179
  export type ConnectWhatsAppCredentialsData = {
15130
15180
  body: {
@@ -20185,7 +20235,7 @@ export type ListInboxCommentsResponse = ({
20185
20235
  platform?: string;
20186
20236
  error?: string;
20187
20237
  /**
20188
- * Error code if available
20238
+ * Error code if available (e.g. TOKEN_EXPIRED, or X_INBOX_NOT_ENABLED for an X account whose owner has not enabled X inbox)
20189
20239
  */
20190
20240
  code?: (string) | null;
20191
20241
  /**