@zernio/node 0.2.1829 → 0.2.1831

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
@@ -31382,12 +31382,34 @@ type WebhookPayloadMessageSent = {
31382
31382
  conversation: InboxWebhookConversation;
31383
31383
  account: InboxWebhookAccount;
31384
31384
  /**
31385
- * Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards, the TikTok message type, or outgoing Instagram/Facebook buttons, quick replies and template.
31385
+ * Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards, Meta's reason a WhatsApp Business app echo has no renderable body, the TikTok message type, or outgoing Instagram/Facebook buttons, quick replies and template.
31386
31386
  *
31387
31387
  * The key is present only when the send carried some context: it is never null and never an empty object. Read it to tell a location or contact-card message from a text one without a GET on the message.
31388
31388
  *
31389
31389
  */
31390
31390
  metadata?: {
31391
+ /**
31392
+ * WhatsApp only. Meta's own reason this message has no renderable body. Present on Coexistence echoes of a message sent from the WhatsApp Business app that Meta could not render (for example an album, code 131051: message type currently not supported). Absent otherwise.
31393
+ *
31394
+ */
31395
+ unsupported?: {
31396
+ /**
31397
+ * Meta's numeric error code (e.g. 131051).
31398
+ */
31399
+ code?: number;
31400
+ /**
31401
+ * Meta's short error title.
31402
+ */
31403
+ title?: string;
31404
+ /**
31405
+ * Meta's human-readable error detail string.
31406
+ */
31407
+ details?: string;
31408
+ /**
31409
+ * Meta's name for the content WhatsApp could not deliver, e.g. unknown or album. Absent when Meta sends none.
31410
+ */
31411
+ type?: string;
31412
+ };
31391
31413
  /**
31392
31414
  * Instagram/Facebook only. The buttons, quickReplies and/or template this outgoing message carried, as sent (tracked urls included when link tracking wrapped a button). Absent when the send carried none.
31393
31415
  */
@@ -36910,13 +36932,6 @@ type CreatePayeeOnboardingLinkError = (ErrorResponse | {
36910
36932
  */
36911
36933
  effective_account_limit?: number;
36912
36934
  };
36913
- } | {
36914
- error?: string;
36915
- code?: 'insufficient_permissions' | 'unclassified_resource';
36916
- /**
36917
- * The resource group the key needs for this operation. Absent on admin-plane and unclassified-path denials.
36918
- */
36919
- required_group?: 'publishing' | 'engagement' | 'messages' | 'contacts' | 'analytics' | 'ads' | 'telephony' | 'accounts' | 'billing' | 'webhooks' | 'commerce' | 'creator_campaigns' | 'money' | 'calendar' | 'files';
36920
36935
  } | {
36921
36936
  error?: string;
36922
36937
  });
package/dist/index.d.ts CHANGED
@@ -31382,12 +31382,34 @@ type WebhookPayloadMessageSent = {
31382
31382
  conversation: InboxWebhookConversation;
31383
31383
  account: InboxWebhookAccount;
31384
31384
  /**
31385
- * Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards, the TikTok message type, or outgoing Instagram/Facebook buttons, quick replies and template.
31385
+ * Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards, Meta's reason a WhatsApp Business app echo has no renderable body, the TikTok message type, or outgoing Instagram/Facebook buttons, quick replies and template.
31386
31386
  *
31387
31387
  * The key is present only when the send carried some context: it is never null and never an empty object. Read it to tell a location or contact-card message from a text one without a GET on the message.
31388
31388
  *
31389
31389
  */
31390
31390
  metadata?: {
31391
+ /**
31392
+ * WhatsApp only. Meta's own reason this message has no renderable body. Present on Coexistence echoes of a message sent from the WhatsApp Business app that Meta could not render (for example an album, code 131051: message type currently not supported). Absent otherwise.
31393
+ *
31394
+ */
31395
+ unsupported?: {
31396
+ /**
31397
+ * Meta's numeric error code (e.g. 131051).
31398
+ */
31399
+ code?: number;
31400
+ /**
31401
+ * Meta's short error title.
31402
+ */
31403
+ title?: string;
31404
+ /**
31405
+ * Meta's human-readable error detail string.
31406
+ */
31407
+ details?: string;
31408
+ /**
31409
+ * Meta's name for the content WhatsApp could not deliver, e.g. unknown or album. Absent when Meta sends none.
31410
+ */
31411
+ type?: string;
31412
+ };
31391
31413
  /**
31392
31414
  * Instagram/Facebook only. The buttons, quickReplies and/or template this outgoing message carried, as sent (tracked urls included when link tracking wrapped a button). Absent when the send carried none.
31393
31415
  */
@@ -36910,13 +36932,6 @@ type CreatePayeeOnboardingLinkError = (ErrorResponse | {
36910
36932
  */
36911
36933
  effective_account_limit?: number;
36912
36934
  };
36913
- } | {
36914
- error?: string;
36915
- code?: 'insufficient_permissions' | 'unclassified_resource';
36916
- /**
36917
- * The resource group the key needs for this operation. Absent on admin-plane and unclassified-path denials.
36918
- */
36919
- required_group?: 'publishing' | 'engagement' | 'messages' | 'contacts' | 'analytics' | 'ads' | 'telephony' | 'accounts' | 'billing' | 'webhooks' | 'commerce' | 'creator_campaigns' | 'money' | 'calendar' | 'files';
36920
36935
  } | {
36921
36936
  error?: string;
36922
36937
  });
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.1829",
39
+ version: "0.2.1831",
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.1829",
8
+ version: "0.2.1831",
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.1829",
3
+ "version": "0.2.1831",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1231,6 +1231,11 @@ export const listPayees = <ThrowOnError extends boolean = false>(options?: Optio
1231
1231
  /**
1232
1232
  * Create a payee onboarding link
1233
1233
  * Returns a Stripe-hosted link where the payee completes identity and bank details so they can receive payouts.
1234
+ *
1235
+ * Only for a payee that has not submitted their details yet: after that, only the payee changes them, from their own payouts page.
1236
+ *
1237
+ * Needs an owner, admin or billing admin, signed in or through a full-access key they created.
1238
+ *
1234
1239
  */
1235
1240
  export const createPayeeOnboardingLink = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreatePayeeOnboardingLinkData, ThrowOnError>) => {
1236
1241
  return (options?.client ?? client).post<CreatePayeeOnboardingLinkResponse, CreatePayeeOnboardingLinkError, ThrowOnError>({
@@ -30009,12 +30009,34 @@ export type WebhookPayloadMessageSent = {
30009
30009
  conversation: InboxWebhookConversation;
30010
30010
  account: InboxWebhookAccount;
30011
30011
  /**
30012
- * Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards, the TikTok message type, or outgoing Instagram/Facebook buttons, quick replies and template.
30012
+ * Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards, Meta's reason a WhatsApp Business app echo has no renderable body, the TikTok message type, or outgoing Instagram/Facebook buttons, quick replies and template.
30013
30013
  *
30014
30014
  * The key is present only when the send carried some context: it is never null and never an empty object. Read it to tell a location or contact-card message from a text one without a GET on the message.
30015
30015
  *
30016
30016
  */
30017
30017
  metadata?: {
30018
+ /**
30019
+ * WhatsApp only. Meta's own reason this message has no renderable body. Present on Coexistence echoes of a message sent from the WhatsApp Business app that Meta could not render (for example an album, code 131051: message type currently not supported). Absent otherwise.
30020
+ *
30021
+ */
30022
+ unsupported?: {
30023
+ /**
30024
+ * Meta's numeric error code (e.g. 131051).
30025
+ */
30026
+ code?: number;
30027
+ /**
30028
+ * Meta's short error title.
30029
+ */
30030
+ title?: string;
30031
+ /**
30032
+ * Meta's human-readable error detail string.
30033
+ */
30034
+ details?: string;
30035
+ /**
30036
+ * Meta's name for the content WhatsApp could not deliver, e.g. unknown or album. Absent when Meta sends none.
30037
+ */
30038
+ type?: string;
30039
+ };
30018
30040
  /**
30019
30041
  * Instagram/Facebook only. The buttons, quickReplies and/or template this outgoing message carried, as sent (tracked urls included when link tracking wrapped a button). Absent when the send carried none.
30020
30042
  */
@@ -35819,13 +35841,6 @@ export type CreatePayeeOnboardingLinkError = (ErrorResponse | {
35819
35841
  */
35820
35842
  effective_account_limit?: number;
35821
35843
  };
35822
- } | {
35823
- error?: string;
35824
- code?: 'insufficient_permissions' | 'unclassified_resource';
35825
- /**
35826
- * The resource group the key needs for this operation. Absent on admin-plane and unclassified-path denials.
35827
- */
35828
- required_group?: 'publishing' | 'engagement' | 'messages' | 'contacts' | 'analytics' | 'ads' | 'telephony' | 'accounts' | 'billing' | 'webhooks' | 'commerce' | 'creator_campaigns' | 'money' | 'calendar' | 'files';
35829
35844
  } | {
35830
35845
  error?: string;
35831
35846
  });