@zernio/node 0.2.733 → 0.2.735

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
@@ -10262,6 +10262,30 @@ type WebhookPayloadMessage = {
10262
10262
  */
10263
10263
  product_retailer_id?: string;
10264
10264
  };
10265
+ /**
10266
+ * WhatsApp only. The location pin the user shared, forwarded
10267
+ * verbatim from Meta. The message `text` is only the emoji preview
10268
+ * (`📍 <name>`); the coordinates live here.
10269
+ *
10270
+ */
10271
+ location?: {
10272
+ /**
10273
+ * Latitude in decimal degrees.
10274
+ */
10275
+ latitude?: number;
10276
+ /**
10277
+ * Longitude in decimal degrees.
10278
+ */
10279
+ longitude?: number;
10280
+ /**
10281
+ * Location name, when the user shared a named place.
10282
+ */
10283
+ name?: string;
10284
+ /**
10285
+ * Street address, when Meta sends one.
10286
+ */
10287
+ address?: string;
10288
+ };
10265
10289
  /**
10266
10290
  * WhatsApp only. Contact cards the user shared, forwarded verbatim
10267
10291
  * from Meta. Read `contactsOrigin` before treating any number here
@@ -10688,9 +10712,48 @@ type WebhookPayloadMessageSent = {
10688
10712
  conversation: InboxWebhookConversation;
10689
10713
  account: InboxWebhookAccount;
10690
10714
  /**
10691
- * Platform-specific context for the sent message. The key is present only when the send carried some context, and absent otherwise: it is never null and never an empty object.
10715
+ * Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin or WhatsApp contact cards. The key is present only when the send carried some context, and absent otherwise: 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.
10692
10716
  */
10693
10717
  metadata?: {
10718
+ /**
10719
+ * WhatsApp only. The location pin this message carries, in the same
10720
+ * shape the inbox send API accepts. Present on API sends that passed
10721
+ * `location`, and on Coexistence echoes of a pin shared from the
10722
+ * WhatsApp Business app. The message `text` is only the emoji
10723
+ * preview (`📍 <name>`); the pin itself lives here.
10724
+ *
10725
+ */
10726
+ location?: {
10727
+ /**
10728
+ * Latitude in decimal degrees.
10729
+ */
10730
+ latitude?: number;
10731
+ /**
10732
+ * Longitude in decimal degrees.
10733
+ */
10734
+ longitude?: number;
10735
+ /**
10736
+ * Location name, when one was given.
10737
+ */
10738
+ name?: string;
10739
+ /**
10740
+ * Street address, when one was given.
10741
+ */
10742
+ address?: string;
10743
+ };
10744
+ /**
10745
+ * WhatsApp only. The contact cards this message carries. On API
10746
+ * sends this is the `contacts` array exactly as given to the inbox
10747
+ * send API (`name`, `phones[].phone` / `type`, `emails[]`); on
10748
+ * Coexistence echoes of a card shared from the WhatsApp Business
10749
+ * app it is Meta's shape (`phones[].wa_id`, `vcard`). The message
10750
+ * `text` is only the emoji preview (`👤 <name>`); the cards live
10751
+ * here.
10752
+ *
10753
+ */
10754
+ contacts?: Array<{
10755
+ [key: string]: unknown;
10756
+ }>;
10694
10757
  /**
10695
10758
  * `platformMessageId` of the message this send is a quote-reply to.
10696
10759
  *
@@ -10819,8 +10882,11 @@ type event21 = 'post.scheduled' | 'post.published' | 'post.failed' | 'post.parti
10819
10882
  * and for `post.tiktok.url_resolved` (same shape, fired when a
10820
10883
  * published TikTok post's public URL is backfilled). Terminal events
10821
10884
  * fire once per platform target inside a post as that platform
10822
- * reaches a terminal state (published or permanent failure). The
10823
- * `post` envelope mirrors the shape of `WebhookPayloadPost` so
10885
+ * reaches a terminal state (published or permanent failure), except
10886
+ * that a target which later fails background reconciliation emits
10887
+ * `post.platform.failed` a second time, after its own
10888
+ * `post.platform.published`. The `post` envelope mirrors the shape
10889
+ * of `WebhookPayloadPost` so
10824
10890
  * consumers can reuse rendering logic; the `platform` block
10825
10891
  * identifies which specific platform transitioned; the `account`
10826
10892
  * block identifies the connected account behind that
package/dist/index.d.ts CHANGED
@@ -10262,6 +10262,30 @@ type WebhookPayloadMessage = {
10262
10262
  */
10263
10263
  product_retailer_id?: string;
10264
10264
  };
10265
+ /**
10266
+ * WhatsApp only. The location pin the user shared, forwarded
10267
+ * verbatim from Meta. The message `text` is only the emoji preview
10268
+ * (`📍 <name>`); the coordinates live here.
10269
+ *
10270
+ */
10271
+ location?: {
10272
+ /**
10273
+ * Latitude in decimal degrees.
10274
+ */
10275
+ latitude?: number;
10276
+ /**
10277
+ * Longitude in decimal degrees.
10278
+ */
10279
+ longitude?: number;
10280
+ /**
10281
+ * Location name, when the user shared a named place.
10282
+ */
10283
+ name?: string;
10284
+ /**
10285
+ * Street address, when Meta sends one.
10286
+ */
10287
+ address?: string;
10288
+ };
10265
10289
  /**
10266
10290
  * WhatsApp only. Contact cards the user shared, forwarded verbatim
10267
10291
  * from Meta. Read `contactsOrigin` before treating any number here
@@ -10688,9 +10712,48 @@ type WebhookPayloadMessageSent = {
10688
10712
  conversation: InboxWebhookConversation;
10689
10713
  account: InboxWebhookAccount;
10690
10714
  /**
10691
- * Platform-specific context for the sent message. The key is present only when the send carried some context, and absent otherwise: it is never null and never an empty object.
10715
+ * Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin or WhatsApp contact cards. The key is present only when the send carried some context, and absent otherwise: 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.
10692
10716
  */
10693
10717
  metadata?: {
10718
+ /**
10719
+ * WhatsApp only. The location pin this message carries, in the same
10720
+ * shape the inbox send API accepts. Present on API sends that passed
10721
+ * `location`, and on Coexistence echoes of a pin shared from the
10722
+ * WhatsApp Business app. The message `text` is only the emoji
10723
+ * preview (`📍 <name>`); the pin itself lives here.
10724
+ *
10725
+ */
10726
+ location?: {
10727
+ /**
10728
+ * Latitude in decimal degrees.
10729
+ */
10730
+ latitude?: number;
10731
+ /**
10732
+ * Longitude in decimal degrees.
10733
+ */
10734
+ longitude?: number;
10735
+ /**
10736
+ * Location name, when one was given.
10737
+ */
10738
+ name?: string;
10739
+ /**
10740
+ * Street address, when one was given.
10741
+ */
10742
+ address?: string;
10743
+ };
10744
+ /**
10745
+ * WhatsApp only. The contact cards this message carries. On API
10746
+ * sends this is the `contacts` array exactly as given to the inbox
10747
+ * send API (`name`, `phones[].phone` / `type`, `emails[]`); on
10748
+ * Coexistence echoes of a card shared from the WhatsApp Business
10749
+ * app it is Meta's shape (`phones[].wa_id`, `vcard`). The message
10750
+ * `text` is only the emoji preview (`👤 <name>`); the cards live
10751
+ * here.
10752
+ *
10753
+ */
10754
+ contacts?: Array<{
10755
+ [key: string]: unknown;
10756
+ }>;
10694
10757
  /**
10695
10758
  * `platformMessageId` of the message this send is a quote-reply to.
10696
10759
  *
@@ -10819,8 +10882,11 @@ type event21 = 'post.scheduled' | 'post.published' | 'post.failed' | 'post.parti
10819
10882
  * and for `post.tiktok.url_resolved` (same shape, fired when a
10820
10883
  * published TikTok post's public URL is backfilled). Terminal events
10821
10884
  * fire once per platform target inside a post as that platform
10822
- * reaches a terminal state (published or permanent failure). The
10823
- * `post` envelope mirrors the shape of `WebhookPayloadPost` so
10885
+ * reaches a terminal state (published or permanent failure), except
10886
+ * that a target which later fails background reconciliation emits
10887
+ * `post.platform.failed` a second time, after its own
10888
+ * `post.platform.published`. The `post` envelope mirrors the shape
10889
+ * of `WebhookPayloadPost` so
10824
10890
  * consumers can reuse rendering logic; the `platform` block
10825
10891
  * identifies which specific platform transitioned; the `account`
10826
10892
  * block identifies the connected account behind that
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.733",
39
+ version: "0.2.735",
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.733",
8
+ version: "0.2.735",
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.733",
3
+ "version": "0.2.735",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -9061,6 +9061,30 @@ export type WebhookPayloadMessage = {
9061
9061
  */
9062
9062
  product_retailer_id?: string;
9063
9063
  };
9064
+ /**
9065
+ * WhatsApp only. The location pin the user shared, forwarded
9066
+ * verbatim from Meta. The message `text` is only the emoji preview
9067
+ * (`📍 <name>`); the coordinates live here.
9068
+ *
9069
+ */
9070
+ location?: {
9071
+ /**
9072
+ * Latitude in decimal degrees.
9073
+ */
9074
+ latitude?: number;
9075
+ /**
9076
+ * Longitude in decimal degrees.
9077
+ */
9078
+ longitude?: number;
9079
+ /**
9080
+ * Location name, when the user shared a named place.
9081
+ */
9082
+ name?: string;
9083
+ /**
9084
+ * Street address, when Meta sends one.
9085
+ */
9086
+ address?: string;
9087
+ };
9064
9088
  /**
9065
9089
  * WhatsApp only. Contact cards the user shared, forwarded verbatim
9066
9090
  * from Meta. Read `contactsOrigin` before treating any number here
@@ -9498,9 +9522,48 @@ export type WebhookPayloadMessageSent = {
9498
9522
  conversation: InboxWebhookConversation;
9499
9523
  account: InboxWebhookAccount;
9500
9524
  /**
9501
- * Platform-specific context for the sent message. The key is present only when the send carried some context, and absent otherwise: it is never null and never an empty object.
9525
+ * Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin or WhatsApp contact cards. The key is present only when the send carried some context, and absent otherwise: 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.
9502
9526
  */
9503
9527
  metadata?: {
9528
+ /**
9529
+ * WhatsApp only. The location pin this message carries, in the same
9530
+ * shape the inbox send API accepts. Present on API sends that passed
9531
+ * `location`, and on Coexistence echoes of a pin shared from the
9532
+ * WhatsApp Business app. The message `text` is only the emoji
9533
+ * preview (`📍 <name>`); the pin itself lives here.
9534
+ *
9535
+ */
9536
+ location?: {
9537
+ /**
9538
+ * Latitude in decimal degrees.
9539
+ */
9540
+ latitude?: number;
9541
+ /**
9542
+ * Longitude in decimal degrees.
9543
+ */
9544
+ longitude?: number;
9545
+ /**
9546
+ * Location name, when one was given.
9547
+ */
9548
+ name?: string;
9549
+ /**
9550
+ * Street address, when one was given.
9551
+ */
9552
+ address?: string;
9553
+ };
9554
+ /**
9555
+ * WhatsApp only. The contact cards this message carries. On API
9556
+ * sends this is the `contacts` array exactly as given to the inbox
9557
+ * send API (`name`, `phones[].phone` / `type`, `emails[]`); on
9558
+ * Coexistence echoes of a card shared from the WhatsApp Business
9559
+ * app it is Meta's shape (`phones[].wa_id`, `vcard`). The message
9560
+ * `text` is only the emoji preview (`👤 <name>`); the cards live
9561
+ * here.
9562
+ *
9563
+ */
9564
+ contacts?: Array<{
9565
+ [key: string]: unknown;
9566
+ }>;
9504
9567
  /**
9505
9568
  * `platformMessageId` of the message this send is a quote-reply to.
9506
9569
  *
@@ -9637,8 +9700,11 @@ export type event21 = 'post.scheduled' | 'post.published' | 'post.failed' | 'pos
9637
9700
  * and for `post.tiktok.url_resolved` (same shape, fired when a
9638
9701
  * published TikTok post's public URL is backfilled). Terminal events
9639
9702
  * fire once per platform target inside a post as that platform
9640
- * reaches a terminal state (published or permanent failure). The
9641
- * `post` envelope mirrors the shape of `WebhookPayloadPost` so
9703
+ * reaches a terminal state (published or permanent failure), except
9704
+ * that a target which later fails background reconciliation emits
9705
+ * `post.platform.failed` a second time, after its own
9706
+ * `post.platform.published`. The `post` envelope mirrors the shape
9707
+ * of `WebhookPayloadPost` so
9642
9708
  * consumers can reuse rendering logic; the `platform` block
9643
9709
  * identifies which specific platform transitioned; the `account`
9644
9710
  * block identifies the connected account behind that