@zernio/node 0.2.1030 → 0.2.1032

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: {
@@ -8386,7 +8389,7 @@ type InboxWebhookMessage = {
8386
8389
  */
8387
8390
  parentBusinessScopedUserId?: string;
8388
8391
  /**
8389
- * WhatsApp only. User's WhatsApp username (e.g. `@jane`). Not a
8392
+ * WhatsApp only. User's WhatsApp username (e.g. `jane.shop`). Not a
8390
8393
  * stable identifier, because users can change it. Useful for display, not
8391
8394
  * recommended as an identity anchor.
8392
8395
  *
@@ -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: {
@@ -13981,7 +13987,7 @@ type WebhookPayloadMessage = {
13981
13987
  */
13982
13988
  parentBusinessScopedUserId?: string;
13983
13989
  /**
13984
- * WhatsApp only. User's WhatsApp username (e.g. `@jane`). Not a
13990
+ * WhatsApp only. User's WhatsApp username (e.g. `jane.shop`). Not a
13985
13991
  * stable identifier, because users can change it. Useful for display,
13986
13992
  * not recommended as an identity anchor.
13987
13993
  *
@@ -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.
@@ -26074,6 +26094,14 @@ type ListInboxConversationsResponse = ({
26074
26094
  * X verified badge type. Only present for X conversations.
26075
26095
  */
26076
26096
  participantVerifiedType?: ('blue' | 'government' | 'business' | 'none') | null;
26097
+ /**
26098
+ * WhatsApp only. Meta business-scoped user ID (BSUID), the stable identity anchor; present when Meta has sent it for this participant.
26099
+ */
26100
+ businessScopedUserId?: string;
26101
+ /**
26102
+ * 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.
26103
+ */
26104
+ whatsappUsername?: string;
26077
26105
  lastMessage?: string;
26078
26106
  updatedTime?: string;
26079
26107
  status?: 'active' | 'archived';
@@ -26570,6 +26598,14 @@ type GetInboxConversationResponse = ({
26570
26598
  * X verified badge type. Only present for X conversations.
26571
26599
  */
26572
26600
  participantVerifiedType?: ('blue' | 'government' | 'business' | 'none') | null;
26601
+ /**
26602
+ * WhatsApp only. Meta business-scoped user ID (BSUID), the stable identity anchor; present when Meta has sent it for this participant.
26603
+ */
26604
+ businessScopedUserId?: string;
26605
+ /**
26606
+ * 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.
26607
+ */
26608
+ whatsappUsername?: string;
26573
26609
  lastMessage?: string;
26574
26610
  lastMessageAt?: string;
26575
26611
  updatedTime?: string;
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: {
@@ -8386,7 +8389,7 @@ type InboxWebhookMessage = {
8386
8389
  */
8387
8390
  parentBusinessScopedUserId?: string;
8388
8391
  /**
8389
- * WhatsApp only. User's WhatsApp username (e.g. `@jane`). Not a
8392
+ * WhatsApp only. User's WhatsApp username (e.g. `jane.shop`). Not a
8390
8393
  * stable identifier, because users can change it. Useful for display, not
8391
8394
  * recommended as an identity anchor.
8392
8395
  *
@@ -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: {
@@ -13981,7 +13987,7 @@ type WebhookPayloadMessage = {
13981
13987
  */
13982
13988
  parentBusinessScopedUserId?: string;
13983
13989
  /**
13984
- * WhatsApp only. User's WhatsApp username (e.g. `@jane`). Not a
13990
+ * WhatsApp only. User's WhatsApp username (e.g. `jane.shop`). Not a
13985
13991
  * stable identifier, because users can change it. Useful for display,
13986
13992
  * not recommended as an identity anchor.
13987
13993
  *
@@ -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.
@@ -26074,6 +26094,14 @@ type ListInboxConversationsResponse = ({
26074
26094
  * X verified badge type. Only present for X conversations.
26075
26095
  */
26076
26096
  participantVerifiedType?: ('blue' | 'government' | 'business' | 'none') | null;
26097
+ /**
26098
+ * WhatsApp only. Meta business-scoped user ID (BSUID), the stable identity anchor; present when Meta has sent it for this participant.
26099
+ */
26100
+ businessScopedUserId?: string;
26101
+ /**
26102
+ * 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.
26103
+ */
26104
+ whatsappUsername?: string;
26077
26105
  lastMessage?: string;
26078
26106
  updatedTime?: string;
26079
26107
  status?: 'active' | 'archived';
@@ -26570,6 +26598,14 @@ type GetInboxConversationResponse = ({
26570
26598
  * X verified badge type. Only present for X conversations.
26571
26599
  */
26572
26600
  participantVerifiedType?: ('blue' | 'government' | 'business' | 'none') | null;
26601
+ /**
26602
+ * WhatsApp only. Meta business-scoped user ID (BSUID), the stable identity anchor; present when Meta has sent it for this participant.
26603
+ */
26604
+ businessScopedUserId?: string;
26605
+ /**
26606
+ * 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.
26607
+ */
26608
+ whatsappUsername?: string;
26573
26609
  lastMessage?: string;
26574
26610
  lastMessageAt?: string;
26575
26611
  updatedTime?: string;
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.1030",
39
+ version: "0.2.1032",
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.1030",
8
+ version: "0.2.1032",
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.1030",
3
+ "version": "0.2.1032",
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: {
@@ -6710,7 +6713,7 @@ export type InboxWebhookMessage = {
6710
6713
  */
6711
6714
  parentBusinessScopedUserId?: string;
6712
6715
  /**
6713
- * WhatsApp only. User's WhatsApp username (e.g. `@jane`). Not a
6716
+ * WhatsApp only. User's WhatsApp username (e.g. `jane.shop`). Not a
6714
6717
  * stable identifier, because users can change it. Useful for display, not
6715
6718
  * recommended as an identity anchor.
6716
6719
  *
@@ -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: {
@@ -12557,7 +12563,7 @@ export type WebhookPayloadMessage = {
12557
12563
  */
12558
12564
  parentBusinessScopedUserId?: string;
12559
12565
  /**
12560
- * WhatsApp only. User's WhatsApp username (e.g. `@jane`). Not a
12566
+ * WhatsApp only. User's WhatsApp username (e.g. `jane.shop`). Not a
12561
12567
  * stable identifier, because users can change it. Useful for display,
12562
12568
  * not recommended as an identity anchor.
12563
12569
  *
@@ -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.
@@ -25414,6 +25434,14 @@ export type ListInboxConversationsResponse = ({
25414
25434
  * X verified badge type. Only present for X conversations.
25415
25435
  */
25416
25436
  participantVerifiedType?: ('blue' | 'government' | 'business' | 'none') | null;
25437
+ /**
25438
+ * WhatsApp only. Meta business-scoped user ID (BSUID), the stable identity anchor; present when Meta has sent it for this participant.
25439
+ */
25440
+ businessScopedUserId?: string;
25441
+ /**
25442
+ * 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.
25443
+ */
25444
+ whatsappUsername?: string;
25417
25445
  lastMessage?: string;
25418
25446
  updatedTime?: string;
25419
25447
  status?: 'active' | 'archived';
@@ -25919,6 +25947,14 @@ export type GetInboxConversationResponse = ({
25919
25947
  * X verified badge type. Only present for X conversations.
25920
25948
  */
25921
25949
  participantVerifiedType?: ('blue' | 'government' | 'business' | 'none') | null;
25950
+ /**
25951
+ * WhatsApp only. Meta business-scoped user ID (BSUID), the stable identity anchor; present when Meta has sent it for this participant.
25952
+ */
25953
+ businessScopedUserId?: string;
25954
+ /**
25955
+ * 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.
25956
+ */
25957
+ whatsappUsername?: string;
25922
25958
  lastMessage?: string;
25923
25959
  lastMessageAt?: string;
25924
25960
  updatedTime?: string;