@zernio/node 0.2.520 → 0.2.521

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
@@ -8131,7 +8131,7 @@ type event19 = 'post.platform.published' | 'post.platform.failed' | 'post.platfo
8131
8131
  */
8132
8132
  type status12 = 'published' | 'failed' | 'deleted';
8133
8133
  /**
8134
- * Webhook payload for reaction received events (WhatsApp, Telegram)
8134
+ * Webhook payload for reaction received events (WhatsApp, Telegram, Slack, Instagram, Facebook Messenger)
8135
8135
  */
8136
8136
  type WebhookPayloadReaction = {
8137
8137
  /**
@@ -8156,7 +8156,7 @@ type WebhookPayloadReaction = {
8156
8156
  */
8157
8157
  platformMessageId: string;
8158
8158
  /**
8159
- * The participant who added or removed the reaction.
8159
+ * Whoever added or removed the reaction. Usually the participant, but on Slack, Instagram and Facebook Messenger it is the business own platform id when the reaction was made from the native app: compare it with conversation.participantId.
8160
8160
  */
8161
8161
  sender: {
8162
8162
  id: string;
package/dist/index.d.ts CHANGED
@@ -8131,7 +8131,7 @@ type event19 = 'post.platform.published' | 'post.platform.failed' | 'post.platfo
8131
8131
  */
8132
8132
  type status12 = 'published' | 'failed' | 'deleted';
8133
8133
  /**
8134
- * Webhook payload for reaction received events (WhatsApp, Telegram)
8134
+ * Webhook payload for reaction received events (WhatsApp, Telegram, Slack, Instagram, Facebook Messenger)
8135
8135
  */
8136
8136
  type WebhookPayloadReaction = {
8137
8137
  /**
@@ -8156,7 +8156,7 @@ type WebhookPayloadReaction = {
8156
8156
  */
8157
8157
  platformMessageId: string;
8158
8158
  /**
8159
- * The participant who added or removed the reaction.
8159
+ * Whoever added or removed the reaction. Usually the participant, but on Slack, Instagram and Facebook Messenger it is the business own platform id when the reaction was made from the native app: compare it with conversation.participantId.
8160
8160
  */
8161
8161
  sender: {
8162
8162
  id: 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.520",
39
+ version: "0.2.521",
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.520",
8
+ version: "0.2.521",
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.520",
3
+ "version": "0.2.521",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -3231,6 +3231,8 @@ export const markConversationRead = <ThrowOnError extends boolean = false>(optio
3231
3231
  * Add an emoji reaction to a message. Platform support:
3232
3232
  * - Telegram: Supports a subset of Unicode emoji reactions
3233
3233
  * - WhatsApp: Supports any standard emoji (one reaction per message per sender)
3234
+ * - Instagram and Facebook Messenger: Any standard emoji, subject to Meta's 24h messaging window
3235
+ * - Slack: The emoji must have a Slack name (e.g. `:thumbsup:`); unnamed characters return 400
3234
3236
  * - All others: Returns 400 (not supported)
3235
3237
  *
3236
3238
  */
@@ -3246,6 +3248,8 @@ export const addMessageReaction = <ThrowOnError extends boolean = false>(options
3246
3248
  * Remove a reaction from a message. Platform support:
3247
3249
  * - Telegram: Send empty reaction array to clear
3248
3250
  * - WhatsApp: Send empty emoji to remove
3251
+ * - Instagram and Facebook Messenger: Sends Meta's `unreact` action; the emoji does not need to be repeated
3252
+ * - Slack: Removes the reaction we previously sent on that message
3249
3253
  * - All others: Returns 400 (not supported)
3250
3254
  *
3251
3255
  */
@@ -7168,7 +7168,7 @@ export type event19 = 'post.platform.published' | 'post.platform.failed' | 'post
7168
7168
  export type status12 = 'published' | 'failed' | 'deleted';
7169
7169
 
7170
7170
  /**
7171
- * Webhook payload for reaction received events (WhatsApp, Telegram)
7171
+ * Webhook payload for reaction received events (WhatsApp, Telegram, Slack, Instagram, Facebook Messenger)
7172
7172
  */
7173
7173
  export type WebhookPayloadReaction = {
7174
7174
  /**
@@ -7193,7 +7193,7 @@ export type WebhookPayloadReaction = {
7193
7193
  */
7194
7194
  platformMessageId: string;
7195
7195
  /**
7196
- * The participant who added or removed the reaction.
7196
+ * Whoever added or removed the reaction. Usually the participant, but on Slack, Instagram and Facebook Messenger it is the business own platform id when the reaction was made from the native app: compare it with conversation.participantId.
7197
7197
  */
7198
7198
  sender: {
7199
7199
  id: string;