@zernio/node 0.2.831 → 0.2.833

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
@@ -6420,7 +6420,7 @@ type InboxWebhookMessage = {
6420
6420
  text: (string) | null;
6421
6421
  attachments: Array<{
6422
6422
  /**
6423
- * Attachment type (image, video, file, sticker, audio)
6423
+ * Attachment type (image, video, file, sticker, audio, share)
6424
6424
  */
6425
6425
  type: string;
6426
6426
  /**
@@ -11338,7 +11338,7 @@ type WebhookPayloadMessage = {
11338
11338
  */
11339
11339
  noRenderableContent?: boolean;
11340
11340
  /**
11341
- * TikTok only. The message type as TikTok reports it, forwarded verbatim (for example image, video, sticker, share_post, emoji, reaction, template). Present on every TikTok DM that is not plain text; those arrive with text empty and, for image and video, an attachment.
11341
+ * TikTok only. The message type as TikTok reports it, forwarded verbatim (for example image, video, sticker, share_post, emoji, reaction, template). Present on every TikTok DM that is not plain text; those arrive with text empty and, for image, video, share_post, sticker and emoji, an attachment (share_post as type share with the embed url and payload.videoId; sticker/emoji as type sticker, url signed and expiring).
11342
11342
  */
11343
11343
  tiktokMessageType?: string;
11344
11344
  } | null;
@@ -11687,7 +11687,7 @@ type WebhookPayloadMessageSent = {
11687
11687
  */
11688
11688
  threadTs?: string;
11689
11689
  /**
11690
- * TikTok only. The message type as TikTok reports it, forwarded verbatim (for example image, video, sticker, share_post, emoji, reaction, template). Present on every TikTok DM that is not plain text; those arrive with text empty and, for image and video, an attachment. Absent on image sends made through the Zernio API, which carry the image in attachments.
11690
+ * TikTok only. The message type as TikTok reports it, forwarded verbatim (for example image, video, sticker, share_post, emoji, reaction, template). Present on every TikTok DM that is not plain text; those arrive with text empty and, for image, video, share_post, sticker and emoji, an attachment (share_post as type share with the embed url and payload.videoId; sticker/emoji as type sticker, url signed and expiring). Absent on image sends made through the Zernio API, which carry the image in attachments.
11691
11691
  */
11692
11692
  tiktokMessageType?: string;
11693
11693
  };
@@ -16434,7 +16434,7 @@ type GetConnectUrlData = {
16434
16434
  *
16435
16435
  * WhatsApp:
16436
16436
  * whatsapp_error, one_whatsapp_per_profile, whatsapp_number_already_connected,
16437
- * whatsapp_number_pinned_to_profile, connection_cancelled
16437
+ * whatsapp_number_pinned_to_profile, whatsapp_coexistence_not_registered, connection_cancelled
16438
16438
  *
16439
16439
  * Google Ads (platform=googleads):
16440
16440
  * google_ads_auth_failed, google_ads_invalid_state, google_ads_config_error,
@@ -16480,8 +16480,8 @@ type GetConnectUrlData = {
16480
16480
  * side and no domain setup: send the user to `authUrl`, and they come back to `redirect_url` with the
16481
16481
  * same params as the redirect flow. Success: `connected=whatsapp`, `profileId`, `accountId`, `username`
16482
16482
  * (plus `connect_token` for API-key callers). Failure: `error` and `platform=whatsapp`, with the same
16483
- * values and extras as the redirect flow (`one_whatsapp_per_profile`, `whatsapp_number_already_connected`
16484
- * and `whatsapp_number_pinned_to_profile` with `is_user_fixable=true`; `payment_required` with `reason`
16483
+ * values and extras as the redirect flow (`one_whatsapp_per_profile`, `whatsapp_number_already_connected`,
16484
+ * `whatsapp_number_pinned_to_profile` and `whatsapp_coexistence_not_registered` with `is_user_fixable=true`; `payment_required` with `reason`
16485
16485
  * and `dashboard_url`; `whatsapp_error` with `error_message` when Meta reported one), plus two of its own:
16486
16486
  * `connection_cancelled` when the popup was closed before finishing (`error_message` carries Meta's last
16487
16487
  * reported step or error when there is one) and `session_expired` when the user took longer than the
package/dist/index.d.ts CHANGED
@@ -6420,7 +6420,7 @@ type InboxWebhookMessage = {
6420
6420
  text: (string) | null;
6421
6421
  attachments: Array<{
6422
6422
  /**
6423
- * Attachment type (image, video, file, sticker, audio)
6423
+ * Attachment type (image, video, file, sticker, audio, share)
6424
6424
  */
6425
6425
  type: string;
6426
6426
  /**
@@ -11338,7 +11338,7 @@ type WebhookPayloadMessage = {
11338
11338
  */
11339
11339
  noRenderableContent?: boolean;
11340
11340
  /**
11341
- * TikTok only. The message type as TikTok reports it, forwarded verbatim (for example image, video, sticker, share_post, emoji, reaction, template). Present on every TikTok DM that is not plain text; those arrive with text empty and, for image and video, an attachment.
11341
+ * TikTok only. The message type as TikTok reports it, forwarded verbatim (for example image, video, sticker, share_post, emoji, reaction, template). Present on every TikTok DM that is not plain text; those arrive with text empty and, for image, video, share_post, sticker and emoji, an attachment (share_post as type share with the embed url and payload.videoId; sticker/emoji as type sticker, url signed and expiring).
11342
11342
  */
11343
11343
  tiktokMessageType?: string;
11344
11344
  } | null;
@@ -11687,7 +11687,7 @@ type WebhookPayloadMessageSent = {
11687
11687
  */
11688
11688
  threadTs?: string;
11689
11689
  /**
11690
- * TikTok only. The message type as TikTok reports it, forwarded verbatim (for example image, video, sticker, share_post, emoji, reaction, template). Present on every TikTok DM that is not plain text; those arrive with text empty and, for image and video, an attachment. Absent on image sends made through the Zernio API, which carry the image in attachments.
11690
+ * TikTok only. The message type as TikTok reports it, forwarded verbatim (for example image, video, sticker, share_post, emoji, reaction, template). Present on every TikTok DM that is not plain text; those arrive with text empty and, for image, video, share_post, sticker and emoji, an attachment (share_post as type share with the embed url and payload.videoId; sticker/emoji as type sticker, url signed and expiring). Absent on image sends made through the Zernio API, which carry the image in attachments.
11691
11691
  */
11692
11692
  tiktokMessageType?: string;
11693
11693
  };
@@ -16434,7 +16434,7 @@ type GetConnectUrlData = {
16434
16434
  *
16435
16435
  * WhatsApp:
16436
16436
  * whatsapp_error, one_whatsapp_per_profile, whatsapp_number_already_connected,
16437
- * whatsapp_number_pinned_to_profile, connection_cancelled
16437
+ * whatsapp_number_pinned_to_profile, whatsapp_coexistence_not_registered, connection_cancelled
16438
16438
  *
16439
16439
  * Google Ads (platform=googleads):
16440
16440
  * google_ads_auth_failed, google_ads_invalid_state, google_ads_config_error,
@@ -16480,8 +16480,8 @@ type GetConnectUrlData = {
16480
16480
  * side and no domain setup: send the user to `authUrl`, and they come back to `redirect_url` with the
16481
16481
  * same params as the redirect flow. Success: `connected=whatsapp`, `profileId`, `accountId`, `username`
16482
16482
  * (plus `connect_token` for API-key callers). Failure: `error` and `platform=whatsapp`, with the same
16483
- * values and extras as the redirect flow (`one_whatsapp_per_profile`, `whatsapp_number_already_connected`
16484
- * and `whatsapp_number_pinned_to_profile` with `is_user_fixable=true`; `payment_required` with `reason`
16483
+ * values and extras as the redirect flow (`one_whatsapp_per_profile`, `whatsapp_number_already_connected`,
16484
+ * `whatsapp_number_pinned_to_profile` and `whatsapp_coexistence_not_registered` with `is_user_fixable=true`; `payment_required` with `reason`
16485
16485
  * and `dashboard_url`; `whatsapp_error` with `error_message` when Meta reported one), plus two of its own:
16486
16486
  * `connection_cancelled` when the popup was closed before finishing (`error_message` carries Meta's last
16487
16487
  * reported step or error when there is one) and `session_expired` when the user took longer than the
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.831",
39
+ version: "0.2.833",
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.831",
8
+ version: "0.2.833",
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.831",
3
+ "version": "0.2.833",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -4955,7 +4955,7 @@ export type InboxWebhookMessage = {
4955
4955
  text: (string) | null;
4956
4956
  attachments: Array<{
4957
4957
  /**
4958
- * Attachment type (image, video, file, sticker, audio)
4958
+ * Attachment type (image, video, file, sticker, audio, share)
4959
4959
  */
4960
4960
  type: string;
4961
4961
  /**
@@ -10066,7 +10066,7 @@ export type WebhookPayloadMessage = {
10066
10066
  */
10067
10067
  noRenderableContent?: boolean;
10068
10068
  /**
10069
- * TikTok only. The message type as TikTok reports it, forwarded verbatim (for example image, video, sticker, share_post, emoji, reaction, template). Present on every TikTok DM that is not plain text; those arrive with text empty and, for image and video, an attachment.
10069
+ * TikTok only. The message type as TikTok reports it, forwarded verbatim (for example image, video, sticker, share_post, emoji, reaction, template). Present on every TikTok DM that is not plain text; those arrive with text empty and, for image, video, share_post, sticker and emoji, an attachment (share_post as type share with the embed url and payload.videoId; sticker/emoji as type sticker, url signed and expiring).
10070
10070
  */
10071
10071
  tiktokMessageType?: string;
10072
10072
  } | null;
@@ -10426,7 +10426,7 @@ export type WebhookPayloadMessageSent = {
10426
10426
  */
10427
10427
  threadTs?: string;
10428
10428
  /**
10429
- * TikTok only. The message type as TikTok reports it, forwarded verbatim (for example image, video, sticker, share_post, emoji, reaction, template). Present on every TikTok DM that is not plain text; those arrive with text empty and, for image and video, an attachment. Absent on image sends made through the Zernio API, which carry the image in attachments.
10429
+ * TikTok only. The message type as TikTok reports it, forwarded verbatim (for example image, video, sticker, share_post, emoji, reaction, template). Present on every TikTok DM that is not plain text; those arrive with text empty and, for image, video, share_post, sticker and emoji, an attachment (share_post as type share with the embed url and payload.videoId; sticker/emoji as type sticker, url signed and expiring). Absent on image sends made through the Zernio API, which carry the image in attachments.
10430
10430
  */
10431
10431
  tiktokMessageType?: string;
10432
10432
  };
@@ -15498,7 +15498,7 @@ export type GetConnectUrlData = {
15498
15498
  *
15499
15499
  * WhatsApp:
15500
15500
  * whatsapp_error, one_whatsapp_per_profile, whatsapp_number_already_connected,
15501
- * whatsapp_number_pinned_to_profile, connection_cancelled
15501
+ * whatsapp_number_pinned_to_profile, whatsapp_coexistence_not_registered, connection_cancelled
15502
15502
  *
15503
15503
  * Google Ads (platform=googleads):
15504
15504
  * google_ads_auth_failed, google_ads_invalid_state, google_ads_config_error,
@@ -15544,8 +15544,8 @@ export type GetConnectUrlData = {
15544
15544
  * side and no domain setup: send the user to `authUrl`, and they come back to `redirect_url` with the
15545
15545
  * same params as the redirect flow. Success: `connected=whatsapp`, `profileId`, `accountId`, `username`
15546
15546
  * (plus `connect_token` for API-key callers). Failure: `error` and `platform=whatsapp`, with the same
15547
- * values and extras as the redirect flow (`one_whatsapp_per_profile`, `whatsapp_number_already_connected`
15548
- * and `whatsapp_number_pinned_to_profile` with `is_user_fixable=true`; `payment_required` with `reason`
15547
+ * values and extras as the redirect flow (`one_whatsapp_per_profile`, `whatsapp_number_already_connected`,
15548
+ * `whatsapp_number_pinned_to_profile` and `whatsapp_coexistence_not_registered` with `is_user_fixable=true`; `payment_required` with `reason`
15549
15549
  * and `dashboard_url`; `whatsapp_error` with `error_message` when Meta reported one), plus two of its own:
15550
15550
  * `connection_cancelled` when the popup was closed before finishing (`error_message` carries Meta's last
15551
15551
  * reported step or error when there is one) and `session_expired` when the user took longer than the