@zernio/node 0.2.172 → 0.2.174

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
@@ -10868,6 +10868,28 @@ type GetInboxConversationMessagesResponse = ({
10868
10868
  title?: string;
10869
10869
  message?: string;
10870
10870
  } | null;
10871
+ /**
10872
+ * Emoji reactions on this message (WhatsApp / Telegram). At most one per party in a 1:1 thread.
10873
+ */
10874
+ reactions?: Array<{
10875
+ emoji?: string;
10876
+ /**
10877
+ * true if the connected account reacted
10878
+ */
10879
+ fromMe?: boolean;
10880
+ reactedAt?: string;
10881
+ }>;
10882
+ /**
10883
+ * Platform-specific extras. Free-form, but commonly includes:
10884
+ * `quotedMessageId` (platformMessageId this message replies to),
10885
+ * `waInteractive` (a compact descriptor of WhatsApp interactive
10886
+ * content sent: buttons / list / cta_url / flow), and for inbound
10887
+ * interactive taps `interactiveType` / `interactiveId`.
10888
+ *
10889
+ */
10890
+ metadata?: {
10891
+ [key: string]: unknown;
10892
+ };
10871
10893
  }>;
10872
10894
  lastUpdated?: string;
10873
10895
  });
@@ -11142,6 +11164,51 @@ type SendInboxMessageData = {
11142
11164
  * Platform message ID to quote-reply to. For WhatsApp, pass the wamid (available in message.platformMessageId from webhooks). For Telegram, pass the Telegram message ID.
11143
11165
  */
11144
11166
  replyTo?: string;
11167
+ /**
11168
+ * WhatsApp-only. Send a location pin.
11169
+ */
11170
+ location?: {
11171
+ /**
11172
+ * Latitude in decimal degrees.
11173
+ */
11174
+ latitude: number;
11175
+ /**
11176
+ * Longitude in decimal degrees.
11177
+ */
11178
+ longitude: number;
11179
+ /**
11180
+ * Optional location name.
11181
+ */
11182
+ name?: string;
11183
+ /**
11184
+ * Optional street address.
11185
+ */
11186
+ address?: string;
11187
+ };
11188
+ /**
11189
+ * WhatsApp-only. Send one or more contact cards.
11190
+ */
11191
+ contacts?: Array<{
11192
+ name: {
11193
+ /**
11194
+ * Full display name.
11195
+ */
11196
+ formatted_name: string;
11197
+ first_name?: string;
11198
+ last_name?: string;
11199
+ };
11200
+ phones?: Array<{
11201
+ phone?: string;
11202
+ /**
11203
+ * e.g. CELL, WORK, HOME.
11204
+ */
11205
+ type?: string;
11206
+ }>;
11207
+ emails?: Array<{
11208
+ email?: string;
11209
+ type?: string;
11210
+ }>;
11211
+ }>;
11145
11212
  };
11146
11213
  path: {
11147
11214
  /**
package/dist/index.d.ts CHANGED
@@ -10868,6 +10868,28 @@ type GetInboxConversationMessagesResponse = ({
10868
10868
  title?: string;
10869
10869
  message?: string;
10870
10870
  } | null;
10871
+ /**
10872
+ * Emoji reactions on this message (WhatsApp / Telegram). At most one per party in a 1:1 thread.
10873
+ */
10874
+ reactions?: Array<{
10875
+ emoji?: string;
10876
+ /**
10877
+ * true if the connected account reacted
10878
+ */
10879
+ fromMe?: boolean;
10880
+ reactedAt?: string;
10881
+ }>;
10882
+ /**
10883
+ * Platform-specific extras. Free-form, but commonly includes:
10884
+ * `quotedMessageId` (platformMessageId this message replies to),
10885
+ * `waInteractive` (a compact descriptor of WhatsApp interactive
10886
+ * content sent: buttons / list / cta_url / flow), and for inbound
10887
+ * interactive taps `interactiveType` / `interactiveId`.
10888
+ *
10889
+ */
10890
+ metadata?: {
10891
+ [key: string]: unknown;
10892
+ };
10871
10893
  }>;
10872
10894
  lastUpdated?: string;
10873
10895
  });
@@ -11142,6 +11164,51 @@ type SendInboxMessageData = {
11142
11164
  * Platform message ID to quote-reply to. For WhatsApp, pass the wamid (available in message.platformMessageId from webhooks). For Telegram, pass the Telegram message ID.
11143
11165
  */
11144
11166
  replyTo?: string;
11167
+ /**
11168
+ * WhatsApp-only. Send a location pin.
11169
+ */
11170
+ location?: {
11171
+ /**
11172
+ * Latitude in decimal degrees.
11173
+ */
11174
+ latitude: number;
11175
+ /**
11176
+ * Longitude in decimal degrees.
11177
+ */
11178
+ longitude: number;
11179
+ /**
11180
+ * Optional location name.
11181
+ */
11182
+ name?: string;
11183
+ /**
11184
+ * Optional street address.
11185
+ */
11186
+ address?: string;
11187
+ };
11188
+ /**
11189
+ * WhatsApp-only. Send one or more contact cards.
11190
+ */
11191
+ contacts?: Array<{
11192
+ name: {
11193
+ /**
11194
+ * Full display name.
11195
+ */
11196
+ formatted_name: string;
11197
+ first_name?: string;
11198
+ last_name?: string;
11199
+ };
11200
+ phones?: Array<{
11201
+ phone?: string;
11202
+ /**
11203
+ * e.g. CELL, WORK, HOME.
11204
+ */
11205
+ type?: string;
11206
+ }>;
11207
+ emails?: Array<{
11208
+ email?: string;
11209
+ type?: string;
11210
+ }>;
11211
+ }>;
11145
11212
  };
11146
11213
  path: {
11147
11214
  /**
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.172",
39
+ version: "0.2.174",
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.172",
8
+ version: "0.2.174",
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.172",
3
+ "version": "0.2.174",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -10841,6 +10841,28 @@ export type GetInboxConversationMessagesResponse = ({
10841
10841
  title?: string;
10842
10842
  message?: string;
10843
10843
  } | null;
10844
+ /**
10845
+ * Emoji reactions on this message (WhatsApp / Telegram). At most one per party in a 1:1 thread.
10846
+ */
10847
+ reactions?: Array<{
10848
+ emoji?: string;
10849
+ /**
10850
+ * true if the connected account reacted
10851
+ */
10852
+ fromMe?: boolean;
10853
+ reactedAt?: string;
10854
+ }>;
10855
+ /**
10856
+ * Platform-specific extras. Free-form, but commonly includes:
10857
+ * `quotedMessageId` (platformMessageId this message replies to),
10858
+ * `waInteractive` (a compact descriptor of WhatsApp interactive
10859
+ * content sent: buttons / list / cta_url / flow), and for inbound
10860
+ * interactive taps `interactiveType` / `interactiveId`.
10861
+ *
10862
+ */
10863
+ metadata?: {
10864
+ [key: string]: unknown;
10865
+ };
10844
10866
  }>;
10845
10867
  lastUpdated?: string;
10846
10868
  });
@@ -11117,6 +11139,51 @@ export type SendInboxMessageData = {
11117
11139
  * Platform message ID to quote-reply to. For WhatsApp, pass the wamid (available in message.platformMessageId from webhooks). For Telegram, pass the Telegram message ID.
11118
11140
  */
11119
11141
  replyTo?: string;
11142
+ /**
11143
+ * WhatsApp-only. Send a location pin.
11144
+ */
11145
+ location?: {
11146
+ /**
11147
+ * Latitude in decimal degrees.
11148
+ */
11149
+ latitude: number;
11150
+ /**
11151
+ * Longitude in decimal degrees.
11152
+ */
11153
+ longitude: number;
11154
+ /**
11155
+ * Optional location name.
11156
+ */
11157
+ name?: string;
11158
+ /**
11159
+ * Optional street address.
11160
+ */
11161
+ address?: string;
11162
+ };
11163
+ /**
11164
+ * WhatsApp-only. Send one or more contact cards.
11165
+ */
11166
+ contacts?: Array<{
11167
+ name: {
11168
+ /**
11169
+ * Full display name.
11170
+ */
11171
+ formatted_name: string;
11172
+ first_name?: string;
11173
+ last_name?: string;
11174
+ };
11175
+ phones?: Array<{
11176
+ phone?: string;
11177
+ /**
11178
+ * e.g. CELL, WORK, HOME.
11179
+ */
11180
+ type?: string;
11181
+ }>;
11182
+ emails?: Array<{
11183
+ email?: string;
11184
+ type?: string;
11185
+ }>;
11186
+ }>;
11120
11187
  };
11121
11188
  path: {
11122
11189
  /**