@zernio/node 0.2.117 → 0.2.118

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
@@ -10468,7 +10468,10 @@ type SendPrivateReplyToCommentData = {
10468
10468
  message: string;
10469
10469
  /**
10470
10470
  * Optional quick-reply chips appended to the message. Visible only in the
10471
- * Instagram and Messenger apps (not on web). Maximum 13 entries.
10471
+ * Instagram and Messenger apps (not on web). Maximum 13 entries. Mutually
10472
+ * exclusive with `buttons`. Note: chips do NOT render in the Instagram
10473
+ * Message Requests folder where DMs from non-followers land — use `buttons`
10474
+ * instead for cold reach.
10472
10475
  *
10473
10476
  */
10474
10477
  quickReplies?: Array<{
@@ -10485,6 +10488,43 @@ type SendPrivateReplyToCommentData = {
10485
10488
  */
10486
10489
  imageUrl?: string;
10487
10490
  }>;
10491
+ /**
10492
+ * Optional 1-3 inline buttons rendered as part of the same message bubble
10493
+ * via Meta's button_template. Visible in the Instagram Message Requests
10494
+ * folder (unlike quick replies). Mutually exclusive with `quickReplies`.
10495
+ *
10496
+ */
10497
+ buttons?: Array<({
10498
+ type: 'url';
10499
+ /**
10500
+ * Label shown on the button.
10501
+ */
10502
+ title: string;
10503
+ /**
10504
+ * URL opened when the button is tapped.
10505
+ */
10506
+ url: string;
10507
+ } | {
10508
+ type: 'postback';
10509
+ /**
10510
+ * Label shown on the button.
10511
+ */
10512
+ title: string;
10513
+ /**
10514
+ * Opaque value returned in the inbound webhook when the user taps the button.
10515
+ */
10516
+ payload: string;
10517
+ } | {
10518
+ type: 'phone';
10519
+ /**
10520
+ * Label shown on the button. Facebook only.
10521
+ */
10522
+ title: string;
10523
+ /**
10524
+ * E.164 phone number dialed when tapped. Facebook only.
10525
+ */
10526
+ phone: string;
10527
+ })>;
10488
10528
  };
10489
10529
  path: {
10490
10530
  /**
package/dist/index.d.ts CHANGED
@@ -10468,7 +10468,10 @@ type SendPrivateReplyToCommentData = {
10468
10468
  message: string;
10469
10469
  /**
10470
10470
  * Optional quick-reply chips appended to the message. Visible only in the
10471
- * Instagram and Messenger apps (not on web). Maximum 13 entries.
10471
+ * Instagram and Messenger apps (not on web). Maximum 13 entries. Mutually
10472
+ * exclusive with `buttons`. Note: chips do NOT render in the Instagram
10473
+ * Message Requests folder where DMs from non-followers land — use `buttons`
10474
+ * instead for cold reach.
10472
10475
  *
10473
10476
  */
10474
10477
  quickReplies?: Array<{
@@ -10485,6 +10488,43 @@ type SendPrivateReplyToCommentData = {
10485
10488
  */
10486
10489
  imageUrl?: string;
10487
10490
  }>;
10491
+ /**
10492
+ * Optional 1-3 inline buttons rendered as part of the same message bubble
10493
+ * via Meta's button_template. Visible in the Instagram Message Requests
10494
+ * folder (unlike quick replies). Mutually exclusive with `quickReplies`.
10495
+ *
10496
+ */
10497
+ buttons?: Array<({
10498
+ type: 'url';
10499
+ /**
10500
+ * Label shown on the button.
10501
+ */
10502
+ title: string;
10503
+ /**
10504
+ * URL opened when the button is tapped.
10505
+ */
10506
+ url: string;
10507
+ } | {
10508
+ type: 'postback';
10509
+ /**
10510
+ * Label shown on the button.
10511
+ */
10512
+ title: string;
10513
+ /**
10514
+ * Opaque value returned in the inbound webhook when the user taps the button.
10515
+ */
10516
+ payload: string;
10517
+ } | {
10518
+ type: 'phone';
10519
+ /**
10520
+ * Label shown on the button. Facebook only.
10521
+ */
10522
+ title: string;
10523
+ /**
10524
+ * E.164 phone number dialed when tapped. Facebook only.
10525
+ */
10526
+ phone: string;
10527
+ })>;
10488
10528
  };
10489
10529
  path: {
10490
10530
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.117",
3
+ "version": "0.2.118",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -2174,9 +2174,11 @@ export const unlikeInboxComment = <ThrowOnError extends boolean = false>(options
2174
2174
  /**
2175
2175
  * Send private reply
2176
2176
  * Send a private message to the author of a comment. Supported on Instagram and Facebook only.
2177
- * One reply per comment, must be sent within 7 days. Optionally include up to 13 quick-reply
2178
- * chips (`quickReplies`) on the same first message useful for comment-to-DM automations
2179
- * that want to capture intent in a single round-trip.
2177
+ * One reply per comment, must be sent within 7 days. Optionally attach interactive elements:
2178
+ * `quickReplies` (chips above the keyboard, max 13) or `buttons` (1-3 inline postback/url
2179
+ * buttons rendered in the same bubble via Meta's button_template). Buttons are recommended
2180
+ * for cold reach since chips do not render in the Instagram Message Requests folder.
2181
+ * `quickReplies` and `buttons` are mutually exclusive.
2180
2182
  *
2181
2183
  */
2182
2184
  export const sendPrivateReplyToComment = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SendPrivateReplyToCommentData, ThrowOnError>) => {
@@ -10507,7 +10507,10 @@ export type SendPrivateReplyToCommentData = {
10507
10507
  message: string;
10508
10508
  /**
10509
10509
  * Optional quick-reply chips appended to the message. Visible only in the
10510
- * Instagram and Messenger apps (not on web). Maximum 13 entries.
10510
+ * Instagram and Messenger apps (not on web). Maximum 13 entries. Mutually
10511
+ * exclusive with `buttons`. Note: chips do NOT render in the Instagram
10512
+ * Message Requests folder where DMs from non-followers land — use `buttons`
10513
+ * instead for cold reach.
10511
10514
  *
10512
10515
  */
10513
10516
  quickReplies?: Array<{
@@ -10524,6 +10527,43 @@ export type SendPrivateReplyToCommentData = {
10524
10527
  */
10525
10528
  imageUrl?: string;
10526
10529
  }>;
10530
+ /**
10531
+ * Optional 1-3 inline buttons rendered as part of the same message bubble
10532
+ * via Meta's button_template. Visible in the Instagram Message Requests
10533
+ * folder (unlike quick replies). Mutually exclusive with `quickReplies`.
10534
+ *
10535
+ */
10536
+ buttons?: Array<({
10537
+ type: 'url';
10538
+ /**
10539
+ * Label shown on the button.
10540
+ */
10541
+ title: string;
10542
+ /**
10543
+ * URL opened when the button is tapped.
10544
+ */
10545
+ url: string;
10546
+ } | {
10547
+ type: 'postback';
10548
+ /**
10549
+ * Label shown on the button.
10550
+ */
10551
+ title: string;
10552
+ /**
10553
+ * Opaque value returned in the inbound webhook when the user taps the button.
10554
+ */
10555
+ payload: string;
10556
+ } | {
10557
+ type: 'phone';
10558
+ /**
10559
+ * Label shown on the button. Facebook only.
10560
+ */
10561
+ title: string;
10562
+ /**
10563
+ * E.164 phone number dialed when tapped. Facebook only.
10564
+ */
10565
+ phone: string;
10566
+ })>;
10527
10567
  };
10528
10568
  path: {
10529
10569
  /**