@zernio/node 0.2.645 → 0.2.646

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
@@ -19718,13 +19718,21 @@ type AddMessageReactionData = {
19718
19718
  */
19719
19719
  conversationId: string;
19720
19720
  /**
19721
- * The platform message ID to react to
19721
+ * The platform message ID (as returned by GET /messages) or the Zernio message ID (as returned by the reaction webhook)
19722
19722
  */
19723
19723
  messageId: string;
19724
19724
  };
19725
19725
  };
19726
19726
  type AddMessageReactionResponse = ({
19727
19727
  success?: boolean;
19728
+ /**
19729
+ * The Zernio message ID the reaction was resolved against
19730
+ */
19731
+ messageId?: string;
19732
+ /**
19733
+ * The platform message ID the reaction was sent for
19734
+ */
19735
+ platformMessageId?: string;
19728
19736
  });
19729
19737
  type AddMessageReactionError = (unknown | {
19730
19738
  error?: string;
@@ -19736,7 +19744,7 @@ type RemoveMessageReactionData = {
19736
19744
  */
19737
19745
  conversationId: string;
19738
19746
  /**
19739
- * The platform message ID
19747
+ * The platform message ID (as returned by GET /messages) or the Zernio message ID (as returned by the reaction webhook)
19740
19748
  */
19741
19749
  messageId: string;
19742
19750
  };
@@ -19749,6 +19757,14 @@ type RemoveMessageReactionData = {
19749
19757
  };
19750
19758
  type RemoveMessageReactionResponse = ({
19751
19759
  success?: boolean;
19760
+ /**
19761
+ * The Zernio message ID the removal was resolved against
19762
+ */
19763
+ messageId?: string;
19764
+ /**
19765
+ * The platform message ID the removal was sent for
19766
+ */
19767
+ platformMessageId?: string;
19752
19768
  });
19753
19769
  type RemoveMessageReactionError = (unknown | {
19754
19770
  error?: string;
@@ -32548,10 +32564,18 @@ type CreateLeadFormData = {
32548
32564
  thankYouButtonText?: string;
32549
32565
  thankYouButtonType?: string;
32550
32566
  thankYouWebsiteUrl?: string;
32567
+ /**
32568
+ * Adds a 'Continue in Messenger' option to the thank-you page (Meta thank_you_page.enable_messenger), so the lead can carry on chatting with the Page. Set thankYouButtonType to MESSAGE_BUSINESS or P2B_MESSENGER to make the chat the primary button.
32569
+ */
32570
+ thankYouEnableMessenger?: boolean;
32551
32571
  /**
32552
32572
  * Set true for a higher-intent form (adds a review step before submit).
32553
32573
  */
32554
32574
  isOptimizedForQuality?: boolean;
32575
+ /**
32576
+ * Requires the lead to verify their phone number over SMS before the form submits (Meta is_phone_sms_verify_enabled). Only meaningful on a form with a PHONE question. Meta can restrict this parameter to apps holding a capability: when it does, the create fails with a 422 naming platformSpecificData.isPhoneSmsVerifyEnabled, and the toggle then has to be set in Meta's form builder.
32577
+ */
32578
+ isPhoneSmsVerifyEnabled?: boolean;
32555
32579
  blockDisplayForNonTargetedViewer?: boolean;
32556
32580
  questionPageCustomHeadline?: string;
32557
32581
  contextCard?: {
package/dist/index.d.ts CHANGED
@@ -19718,13 +19718,21 @@ type AddMessageReactionData = {
19718
19718
  */
19719
19719
  conversationId: string;
19720
19720
  /**
19721
- * The platform message ID to react to
19721
+ * The platform message ID (as returned by GET /messages) or the Zernio message ID (as returned by the reaction webhook)
19722
19722
  */
19723
19723
  messageId: string;
19724
19724
  };
19725
19725
  };
19726
19726
  type AddMessageReactionResponse = ({
19727
19727
  success?: boolean;
19728
+ /**
19729
+ * The Zernio message ID the reaction was resolved against
19730
+ */
19731
+ messageId?: string;
19732
+ /**
19733
+ * The platform message ID the reaction was sent for
19734
+ */
19735
+ platformMessageId?: string;
19728
19736
  });
19729
19737
  type AddMessageReactionError = (unknown | {
19730
19738
  error?: string;
@@ -19736,7 +19744,7 @@ type RemoveMessageReactionData = {
19736
19744
  */
19737
19745
  conversationId: string;
19738
19746
  /**
19739
- * The platform message ID
19747
+ * The platform message ID (as returned by GET /messages) or the Zernio message ID (as returned by the reaction webhook)
19740
19748
  */
19741
19749
  messageId: string;
19742
19750
  };
@@ -19749,6 +19757,14 @@ type RemoveMessageReactionData = {
19749
19757
  };
19750
19758
  type RemoveMessageReactionResponse = ({
19751
19759
  success?: boolean;
19760
+ /**
19761
+ * The Zernio message ID the removal was resolved against
19762
+ */
19763
+ messageId?: string;
19764
+ /**
19765
+ * The platform message ID the removal was sent for
19766
+ */
19767
+ platformMessageId?: string;
19752
19768
  });
19753
19769
  type RemoveMessageReactionError = (unknown | {
19754
19770
  error?: string;
@@ -32548,10 +32564,18 @@ type CreateLeadFormData = {
32548
32564
  thankYouButtonText?: string;
32549
32565
  thankYouButtonType?: string;
32550
32566
  thankYouWebsiteUrl?: string;
32567
+ /**
32568
+ * Adds a 'Continue in Messenger' option to the thank-you page (Meta thank_you_page.enable_messenger), so the lead can carry on chatting with the Page. Set thankYouButtonType to MESSAGE_BUSINESS or P2B_MESSENGER to make the chat the primary button.
32569
+ */
32570
+ thankYouEnableMessenger?: boolean;
32551
32571
  /**
32552
32572
  * Set true for a higher-intent form (adds a review step before submit).
32553
32573
  */
32554
32574
  isOptimizedForQuality?: boolean;
32575
+ /**
32576
+ * Requires the lead to verify their phone number over SMS before the form submits (Meta is_phone_sms_verify_enabled). Only meaningful on a form with a PHONE question. Meta can restrict this parameter to apps holding a capability: when it does, the create fails with a 422 naming platformSpecificData.isPhoneSmsVerifyEnabled, and the toggle then has to be set in Meta's form builder.
32577
+ */
32578
+ isPhoneSmsVerifyEnabled?: boolean;
32555
32579
  blockDisplayForNonTargetedViewer?: boolean;
32556
32580
  questionPageCustomHeadline?: string;
32557
32581
  contextCard?: {
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.645",
39
+ version: "0.2.646",
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.645",
8
+ version: "0.2.646",
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.645",
3
+ "version": "0.2.646",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -19387,7 +19387,7 @@ export type AddMessageReactionData = {
19387
19387
  */
19388
19388
  conversationId: string;
19389
19389
  /**
19390
- * The platform message ID to react to
19390
+ * The platform message ID (as returned by GET /messages) or the Zernio message ID (as returned by the reaction webhook)
19391
19391
  */
19392
19392
  messageId: string;
19393
19393
  };
@@ -19395,6 +19395,14 @@ export type AddMessageReactionData = {
19395
19395
 
19396
19396
  export type AddMessageReactionResponse = ({
19397
19397
  success?: boolean;
19398
+ /**
19399
+ * The Zernio message ID the reaction was resolved against
19400
+ */
19401
+ messageId?: string;
19402
+ /**
19403
+ * The platform message ID the reaction was sent for
19404
+ */
19405
+ platformMessageId?: string;
19398
19406
  });
19399
19407
 
19400
19408
  export type AddMessageReactionError = (unknown | {
@@ -19408,7 +19416,7 @@ export type RemoveMessageReactionData = {
19408
19416
  */
19409
19417
  conversationId: string;
19410
19418
  /**
19411
- * The platform message ID
19419
+ * The platform message ID (as returned by GET /messages) or the Zernio message ID (as returned by the reaction webhook)
19412
19420
  */
19413
19421
  messageId: string;
19414
19422
  };
@@ -19422,6 +19430,14 @@ export type RemoveMessageReactionData = {
19422
19430
 
19423
19431
  export type RemoveMessageReactionResponse = ({
19424
19432
  success?: boolean;
19433
+ /**
19434
+ * The Zernio message ID the removal was resolved against
19435
+ */
19436
+ messageId?: string;
19437
+ /**
19438
+ * The platform message ID the removal was sent for
19439
+ */
19440
+ platformMessageId?: string;
19425
19441
  });
19426
19442
 
19427
19443
  export type RemoveMessageReactionError = (unknown | {
@@ -33131,10 +33147,18 @@ export type CreateLeadFormData = {
33131
33147
  thankYouButtonText?: string;
33132
33148
  thankYouButtonType?: string;
33133
33149
  thankYouWebsiteUrl?: string;
33150
+ /**
33151
+ * Adds a 'Continue in Messenger' option to the thank-you page (Meta thank_you_page.enable_messenger), so the lead can carry on chatting with the Page. Set thankYouButtonType to MESSAGE_BUSINESS or P2B_MESSENGER to make the chat the primary button.
33152
+ */
33153
+ thankYouEnableMessenger?: boolean;
33134
33154
  /**
33135
33155
  * Set true for a higher-intent form (adds a review step before submit).
33136
33156
  */
33137
33157
  isOptimizedForQuality?: boolean;
33158
+ /**
33159
+ * Requires the lead to verify their phone number over SMS before the form submits (Meta is_phone_sms_verify_enabled). Only meaningful on a form with a PHONE question. Meta can restrict this parameter to apps holding a capability: when it does, the create fails with a 422 naming platformSpecificData.isPhoneSmsVerifyEnabled, and the toggle then has to be set in Meta's form builder.
33160
+ */
33161
+ isPhoneSmsVerifyEnabled?: boolean;
33138
33162
  blockDisplayForNonTargetedViewer?: boolean;
33139
33163
  questionPageCustomHeadline?: string;
33140
33164
  contextCard?: {