@zernio/node 0.2.121 → 0.2.122

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
@@ -3786,6 +3786,32 @@ type WebhookPayloadMessage = {
3786
3786
  flowResponseData?: {
3787
3787
  [key: string]: unknown;
3788
3788
  };
3789
+ /**
3790
+ * Instagram only. Populated when an IG user replies to one of the
3791
+ * account's stories (Meta `messaging_story_replies`). Mutually
3792
+ * exclusive in practice with `isStoryMention`.
3793
+ *
3794
+ */
3795
+ storyReply?: {
3796
+ /**
3797
+ * The Instagram story ID the user replied to.
3798
+ */
3799
+ storyId: string;
3800
+ /**
3801
+ * Meta CDN URL for the story media. Expires approximately
3802
+ * 24 hours after the story posted; consumers must fetch
3803
+ * promptly or treat 404s as expected.
3804
+ *
3805
+ */
3806
+ storyUrl?: string;
3807
+ };
3808
+ /**
3809
+ * Instagram only. True when the message was generated by an IG
3810
+ * user mentioning the account in their own story (`story_mention`
3811
+ * attachment type). Mutually exclusive in practice with `storyReply`.
3812
+ *
3813
+ */
3814
+ isStoryMention?: boolean;
3789
3815
  /**
3790
3816
  * WhatsApp only. Click-to-WhatsApp (CTWA) ad attribution. Present
3791
3817
  * only on the FIRST inbound message after a user reaches the
@@ -8941,7 +8967,7 @@ type CreateWebhookSettingsData = {
8941
8967
  /**
8942
8968
  * Events to subscribe to (at least one required)
8943
8969
  */
8944
- events: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'message.received' | 'comment.received' | 'review.new' | 'review.updated')>;
8970
+ events: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'message.received' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'comment.received' | 'review.new' | 'review.updated')>;
8945
8971
  /**
8946
8972
  * Enable or disable webhook delivery. Defaults to `true` when omitted.
8947
8973
  */
@@ -8982,7 +9008,7 @@ type UpdateWebhookSettingsData = {
8982
9008
  /**
8983
9009
  * Events to subscribe to. Must contain at least one event if provided.
8984
9010
  */
8985
- events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'message.received' | 'comment.received' | 'review.new' | 'review.updated')>;
9011
+ events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'message.received' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'comment.received' | 'review.new' | 'review.updated')>;
8986
9012
  /**
8987
9013
  * Enable or disable webhook delivery
8988
9014
  */
package/dist/index.d.ts CHANGED
@@ -3786,6 +3786,32 @@ type WebhookPayloadMessage = {
3786
3786
  flowResponseData?: {
3787
3787
  [key: string]: unknown;
3788
3788
  };
3789
+ /**
3790
+ * Instagram only. Populated when an IG user replies to one of the
3791
+ * account's stories (Meta `messaging_story_replies`). Mutually
3792
+ * exclusive in practice with `isStoryMention`.
3793
+ *
3794
+ */
3795
+ storyReply?: {
3796
+ /**
3797
+ * The Instagram story ID the user replied to.
3798
+ */
3799
+ storyId: string;
3800
+ /**
3801
+ * Meta CDN URL for the story media. Expires approximately
3802
+ * 24 hours after the story posted; consumers must fetch
3803
+ * promptly or treat 404s as expected.
3804
+ *
3805
+ */
3806
+ storyUrl?: string;
3807
+ };
3808
+ /**
3809
+ * Instagram only. True when the message was generated by an IG
3810
+ * user mentioning the account in their own story (`story_mention`
3811
+ * attachment type). Mutually exclusive in practice with `storyReply`.
3812
+ *
3813
+ */
3814
+ isStoryMention?: boolean;
3789
3815
  /**
3790
3816
  * WhatsApp only. Click-to-WhatsApp (CTWA) ad attribution. Present
3791
3817
  * only on the FIRST inbound message after a user reaches the
@@ -8941,7 +8967,7 @@ type CreateWebhookSettingsData = {
8941
8967
  /**
8942
8968
  * Events to subscribe to (at least one required)
8943
8969
  */
8944
- events: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'message.received' | 'comment.received' | 'review.new' | 'review.updated')>;
8970
+ events: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'message.received' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'comment.received' | 'review.new' | 'review.updated')>;
8945
8971
  /**
8946
8972
  * Enable or disable webhook delivery. Defaults to `true` when omitted.
8947
8973
  */
@@ -8982,7 +9008,7 @@ type UpdateWebhookSettingsData = {
8982
9008
  /**
8983
9009
  * Events to subscribe to. Must contain at least one event if provided.
8984
9010
  */
8985
- events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'message.received' | 'comment.received' | 'review.new' | 'review.updated')>;
9011
+ events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'message.received' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'comment.received' | 'review.new' | 'review.updated')>;
8986
9012
  /**
8987
9013
  * Enable or disable webhook delivery
8988
9014
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.121",
3
+ "version": "0.2.122",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -3322,6 +3322,32 @@ export type WebhookPayloadMessage = {
3322
3322
  flowResponseData?: {
3323
3323
  [key: string]: unknown;
3324
3324
  };
3325
+ /**
3326
+ * Instagram only. Populated when an IG user replies to one of the
3327
+ * account's stories (Meta `messaging_story_replies`). Mutually
3328
+ * exclusive in practice with `isStoryMention`.
3329
+ *
3330
+ */
3331
+ storyReply?: {
3332
+ /**
3333
+ * The Instagram story ID the user replied to.
3334
+ */
3335
+ storyId: string;
3336
+ /**
3337
+ * Meta CDN URL for the story media. Expires approximately
3338
+ * 24 hours after the story posted; consumers must fetch
3339
+ * promptly or treat 404s as expected.
3340
+ *
3341
+ */
3342
+ storyUrl?: string;
3343
+ };
3344
+ /**
3345
+ * Instagram only. True when the message was generated by an IG
3346
+ * user mentioning the account in their own story (`story_mention`
3347
+ * attachment type). Mutually exclusive in practice with `storyReply`.
3348
+ *
3349
+ */
3350
+ isStoryMention?: boolean;
3325
3351
  /**
3326
3352
  * WhatsApp only. Click-to-WhatsApp (CTWA) ad attribution. Present
3327
3353
  * only on the FIRST inbound message after a user reaches the
@@ -8878,7 +8904,7 @@ export type CreateWebhookSettingsData = {
8878
8904
  /**
8879
8905
  * Events to subscribe to (at least one required)
8880
8906
  */
8881
- events: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'message.received' | 'comment.received' | 'review.new' | 'review.updated')>;
8907
+ events: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'message.received' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'comment.received' | 'review.new' | 'review.updated')>;
8882
8908
  /**
8883
8909
  * Enable or disable webhook delivery. Defaults to `true` when omitted.
8884
8910
  */
@@ -8922,7 +8948,7 @@ export type UpdateWebhookSettingsData = {
8922
8948
  /**
8923
8949
  * Events to subscribe to. Must contain at least one event if provided.
8924
8950
  */
8925
- events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'message.received' | 'comment.received' | 'review.new' | 'review.updated')>;
8951
+ events?: Array<('post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'message.received' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'comment.received' | 'review.new' | 'review.updated')>;
8926
8952
  /**
8927
8953
  * Enable or disable webhook delivery
8928
8954
  */