@zernio/node 0.2.1031 → 0.2.1033

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
@@ -8336,7 +8336,10 @@ type InboxWebhookMessage = {
8336
8336
  * Additional attachment metadata
8337
8337
  */
8338
8338
  payload?: {
8339
- [key: string]: unknown;
8339
+ /**
8340
+ * WhatsApp audio only. True for a voice note recorded in the WhatsApp client, false for an audio file.
8341
+ */
8342
+ voice?: boolean;
8340
8343
  };
8341
8344
  }>;
8342
8345
  sender: {
@@ -13935,7 +13938,10 @@ type WebhookPayloadMessage = {
13935
13938
  * Additional attachment metadata
13936
13939
  */
13937
13940
  payload?: {
13938
- [key: string]: unknown;
13941
+ /**
13942
+ * WhatsApp audio only. True for a voice note recorded in the WhatsApp client, false for an audio file.
13943
+ */
13944
+ voice?: boolean;
13939
13945
  };
13940
13946
  }>;
13941
13947
  sender: {
@@ -14171,6 +14177,14 @@ type WebhookPayloadMessage = {
14171
14177
  */
14172
14178
  product_retailer_id?: string;
14173
14179
  };
14180
+ /**
14181
+ * WhatsApp only. True when the user forwarded this message (5 times or fewer). Absent when not forwarded.
14182
+ */
14183
+ forwarded?: boolean;
14184
+ /**
14185
+ * WhatsApp only. True when the message was forwarded more than 5 times; Meta then omits forwarded.
14186
+ */
14187
+ frequentlyForwarded?: boolean;
14174
14188
  /**
14175
14189
  * WhatsApp only. The location pin the user shared, forwarded
14176
14190
  * verbatim from Meta. The message `text` is only the emoji preview
@@ -14278,6 +14292,12 @@ type WebhookPayloadMessage = {
14278
14292
  image_url?: string;
14279
14293
  video_url?: string;
14280
14294
  thumbnail_url?: string;
14295
+ /**
14296
+ * WhatsApp CTWA only. The greeting Meta showed the user in the ad.
14297
+ */
14298
+ welcome_message?: {
14299
+ text?: string;
14300
+ };
14281
14301
  /**
14282
14302
  * Facebook Messenger CTM / Instagram CTD only. The Meta ad ID the
14283
14303
  * user clicked to start the conversation.
@@ -26504,6 +26524,14 @@ type SearchInboxConversationsResponse = ({
26504
26524
  participantName?: (string) | null;
26505
26525
  participantUsername?: (string) | null;
26506
26526
  participantPicture?: (string) | null;
26527
+ /**
26528
+ * WhatsApp only. Meta business-scoped user ID (BSUID), the stable identity anchor; present when Meta has sent it for this participant.
26529
+ */
26530
+ businessScopedUserId?: string;
26531
+ /**
26532
+ * WhatsApp only. The participant's WhatsApp username (e.g. `jane.shop`, no leading @). Not a stable identifier, because users can change it: useful for display, not recommended as an identity anchor. Captured from inbound messages, so older threads fill in on their next inbound.
26533
+ */
26534
+ whatsappUsername?: string;
26507
26535
  status?: 'active' | 'archived';
26508
26536
  /**
26509
26537
  * The conversation's most recent message preview
package/dist/index.d.ts CHANGED
@@ -8336,7 +8336,10 @@ type InboxWebhookMessage = {
8336
8336
  * Additional attachment metadata
8337
8337
  */
8338
8338
  payload?: {
8339
- [key: string]: unknown;
8339
+ /**
8340
+ * WhatsApp audio only. True for a voice note recorded in the WhatsApp client, false for an audio file.
8341
+ */
8342
+ voice?: boolean;
8340
8343
  };
8341
8344
  }>;
8342
8345
  sender: {
@@ -13935,7 +13938,10 @@ type WebhookPayloadMessage = {
13935
13938
  * Additional attachment metadata
13936
13939
  */
13937
13940
  payload?: {
13938
- [key: string]: unknown;
13941
+ /**
13942
+ * WhatsApp audio only. True for a voice note recorded in the WhatsApp client, false for an audio file.
13943
+ */
13944
+ voice?: boolean;
13939
13945
  };
13940
13946
  }>;
13941
13947
  sender: {
@@ -14171,6 +14177,14 @@ type WebhookPayloadMessage = {
14171
14177
  */
14172
14178
  product_retailer_id?: string;
14173
14179
  };
14180
+ /**
14181
+ * WhatsApp only. True when the user forwarded this message (5 times or fewer). Absent when not forwarded.
14182
+ */
14183
+ forwarded?: boolean;
14184
+ /**
14185
+ * WhatsApp only. True when the message was forwarded more than 5 times; Meta then omits forwarded.
14186
+ */
14187
+ frequentlyForwarded?: boolean;
14174
14188
  /**
14175
14189
  * WhatsApp only. The location pin the user shared, forwarded
14176
14190
  * verbatim from Meta. The message `text` is only the emoji preview
@@ -14278,6 +14292,12 @@ type WebhookPayloadMessage = {
14278
14292
  image_url?: string;
14279
14293
  video_url?: string;
14280
14294
  thumbnail_url?: string;
14295
+ /**
14296
+ * WhatsApp CTWA only. The greeting Meta showed the user in the ad.
14297
+ */
14298
+ welcome_message?: {
14299
+ text?: string;
14300
+ };
14281
14301
  /**
14282
14302
  * Facebook Messenger CTM / Instagram CTD only. The Meta ad ID the
14283
14303
  * user clicked to start the conversation.
@@ -26504,6 +26524,14 @@ type SearchInboxConversationsResponse = ({
26504
26524
  participantName?: (string) | null;
26505
26525
  participantUsername?: (string) | null;
26506
26526
  participantPicture?: (string) | null;
26527
+ /**
26528
+ * WhatsApp only. Meta business-scoped user ID (BSUID), the stable identity anchor; present when Meta has sent it for this participant.
26529
+ */
26530
+ businessScopedUserId?: string;
26531
+ /**
26532
+ * WhatsApp only. The participant's WhatsApp username (e.g. `jane.shop`, no leading @). Not a stable identifier, because users can change it: useful for display, not recommended as an identity anchor. Captured from inbound messages, so older threads fill in on their next inbound.
26533
+ */
26534
+ whatsappUsername?: string;
26507
26535
  status?: 'active' | 'archived';
26508
26536
  /**
26509
26537
  * The conversation's most recent message preview
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.1031",
39
+ version: "0.2.1033",
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.1031",
8
+ version: "0.2.1033",
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.1031",
3
+ "version": "0.2.1033",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -6660,7 +6660,10 @@ export type InboxWebhookMessage = {
6660
6660
  * Additional attachment metadata
6661
6661
  */
6662
6662
  payload?: {
6663
- [key: string]: unknown;
6663
+ /**
6664
+ * WhatsApp audio only. True for a voice note recorded in the WhatsApp client, false for an audio file.
6665
+ */
6666
+ voice?: boolean;
6664
6667
  };
6665
6668
  }>;
6666
6669
  sender: {
@@ -12511,7 +12514,10 @@ export type WebhookPayloadMessage = {
12511
12514
  * Additional attachment metadata
12512
12515
  */
12513
12516
  payload?: {
12514
- [key: string]: unknown;
12517
+ /**
12518
+ * WhatsApp audio only. True for a voice note recorded in the WhatsApp client, false for an audio file.
12519
+ */
12520
+ voice?: boolean;
12515
12521
  };
12516
12522
  }>;
12517
12523
  sender: {
@@ -12747,6 +12753,14 @@ export type WebhookPayloadMessage = {
12747
12753
  */
12748
12754
  product_retailer_id?: string;
12749
12755
  };
12756
+ /**
12757
+ * WhatsApp only. True when the user forwarded this message (5 times or fewer). Absent when not forwarded.
12758
+ */
12759
+ forwarded?: boolean;
12760
+ /**
12761
+ * WhatsApp only. True when the message was forwarded more than 5 times; Meta then omits forwarded.
12762
+ */
12763
+ frequentlyForwarded?: boolean;
12750
12764
  /**
12751
12765
  * WhatsApp only. The location pin the user shared, forwarded
12752
12766
  * verbatim from Meta. The message `text` is only the emoji preview
@@ -12854,6 +12868,12 @@ export type WebhookPayloadMessage = {
12854
12868
  image_url?: string;
12855
12869
  video_url?: string;
12856
12870
  thumbnail_url?: string;
12871
+ /**
12872
+ * WhatsApp CTWA only. The greeting Meta showed the user in the ad.
12873
+ */
12874
+ welcome_message?: {
12875
+ text?: string;
12876
+ };
12857
12877
  /**
12858
12878
  * Facebook Messenger CTM / Instagram CTD only. The Meta ad ID the
12859
12879
  * user clicked to start the conversation.
@@ -25850,6 +25870,14 @@ export type SearchInboxConversationsResponse = ({
25850
25870
  participantName?: (string) | null;
25851
25871
  participantUsername?: (string) | null;
25852
25872
  participantPicture?: (string) | null;
25873
+ /**
25874
+ * WhatsApp only. Meta business-scoped user ID (BSUID), the stable identity anchor; present when Meta has sent it for this participant.
25875
+ */
25876
+ businessScopedUserId?: string;
25877
+ /**
25878
+ * WhatsApp only. The participant's WhatsApp username (e.g. `jane.shop`, no leading @). Not a stable identifier, because users can change it: useful for display, not recommended as an identity anchor. Captured from inbound messages, so older threads fill in on their next inbound.
25879
+ */
25880
+ whatsappUsername?: string;
25853
25881
  status?: 'active' | 'archived';
25854
25882
  /**
25855
25883
  * The conversation's most recent message preview