@zernio/node 0.2.801 → 0.2.803
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 +18 -10
- package/dist/index.d.ts +18 -10
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +18 -10
package/dist/index.d.mts
CHANGED
|
@@ -6294,7 +6294,7 @@ type InboxWebhookConversationDetail = {
|
|
|
6294
6294
|
* Internal conversation ID
|
|
6295
6295
|
*/
|
|
6296
6296
|
id: string;
|
|
6297
|
-
platform: 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'sms' | 'slack';
|
|
6297
|
+
platform: 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'sms' | 'slack' | 'tiktok';
|
|
6298
6298
|
platformConversationId: string;
|
|
6299
6299
|
/**
|
|
6300
6300
|
* Contact's platform identifier (IGSID, PSID, wa_id, etc.)
|
|
@@ -6318,7 +6318,7 @@ type InboxWebhookConversationDetail = {
|
|
|
6318
6318
|
*/
|
|
6319
6319
|
contactId?: string;
|
|
6320
6320
|
};
|
|
6321
|
-
type platform4 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'sms' | 'slack';
|
|
6321
|
+
type platform4 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'sms' | 'slack' | 'tiktok';
|
|
6322
6322
|
/**
|
|
6323
6323
|
* The message object included in inbox webhook payloads.
|
|
6324
6324
|
*/
|
|
@@ -7542,7 +7542,7 @@ type PlatformAnalytics = {
|
|
|
7542
7542
|
syncStatus?: 'synced' | 'pending' | 'unavailable';
|
|
7543
7543
|
platformPostUrl?: (string) | null;
|
|
7544
7544
|
/**
|
|
7545
|
-
* Error details when status is failed
|
|
7545
|
+
* Error details when status is failed, or why analytics are unavailable for a published entry (e.g. Google Business Profile, a TikTok upload that never received a video id)
|
|
7546
7546
|
*/
|
|
7547
7547
|
errorMessage?: (string) | null;
|
|
7548
7548
|
};
|
|
@@ -7581,7 +7581,7 @@ type PlatformTarget = {
|
|
|
7581
7581
|
*/
|
|
7582
7582
|
platformPostId?: string;
|
|
7583
7583
|
/**
|
|
7584
|
-
* Public URL of the published post. Included in the response for immediate posts; for scheduled posts, fetch via GET /v1/posts/{postId} after publish time. Empty when the platform confirmed the publish without returning an id a permalink can be built from (TikTok returns a publish id for some uploads); the TikTok reconcile cron backfills it later.
|
|
7584
|
+
* Public URL of the published post. Included in the response for immediate posts; for scheduled posts, fetch via GET /v1/posts/{postId} after publish time. Empty when the platform confirmed the publish without returning an id a permalink can be built from (TikTok returns a publish id for some uploads); the TikTok reconcile cron backfills it later. If TikTok never returns one, /v1/analytics reports that entry as syncStatus unavailable.
|
|
7585
7585
|
*/
|
|
7586
7586
|
platformPostUrl?: (string) | null;
|
|
7587
7587
|
/**
|
|
@@ -10428,7 +10428,7 @@ type previousOwner = 'app' | 'ai_agent' | 'other';
|
|
|
10428
10428
|
* Fired once when a new conversation begins, in either direction. A conversation
|
|
10429
10429
|
* starts the first time an account and a contact exchange a message on any DM
|
|
10430
10430
|
* platform (Instagram, Messenger/Facebook, Telegram, WhatsApp, X, Reddit,
|
|
10431
|
-
* Bluesky, SMS). Platform-agnostic: one subscription covers every DM platform.
|
|
10431
|
+
* Bluesky, SMS, TikTok). Platform-agnostic: one subscription covers every DM platform.
|
|
10432
10432
|
*
|
|
10433
10433
|
*/
|
|
10434
10434
|
type WebhookPayloadConversationStarted = {
|
|
@@ -10563,7 +10563,7 @@ type WebhookPayloadMessage = {
|
|
|
10563
10563
|
* Internal conversation ID
|
|
10564
10564
|
*/
|
|
10565
10565
|
conversationId: string;
|
|
10566
|
-
platform: 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'sms';
|
|
10566
|
+
platform: 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'sms' | 'twitter' | 'bluesky' | 'reddit' | 'slack' | 'tiktok';
|
|
10567
10567
|
/**
|
|
10568
10568
|
* Platform's message ID
|
|
10569
10569
|
*/
|
|
@@ -10715,7 +10715,7 @@ type WebhookPayloadMessage = {
|
|
|
10715
10715
|
conversation: InboxWebhookConversation;
|
|
10716
10716
|
account: InboxWebhookAccount;
|
|
10717
10717
|
/**
|
|
10718
|
-
* Platform-specific message context (present when the message is a quick reply tap, postback button tap, inline keyboard callback, a quote-reply to an earlier message,
|
|
10718
|
+
* Platform-specific message context (present when the message is a quick reply tap, postback button tap, inline keyboard callback, a quote-reply to an earlier message, a WhatsApp inbound that Meta Business Agent is answering, or a TikTok DM that is not plain text)
|
|
10719
10719
|
*/
|
|
10720
10720
|
metadata?: {
|
|
10721
10721
|
/**
|
|
@@ -11047,6 +11047,10 @@ type WebhookPayloadMessage = {
|
|
|
11047
11047
|
*
|
|
11048
11048
|
*/
|
|
11049
11049
|
noRenderableContent?: boolean;
|
|
11050
|
+
/**
|
|
11051
|
+
* 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.
|
|
11052
|
+
*/
|
|
11053
|
+
tiktokMessageType?: string;
|
|
11050
11054
|
} | null;
|
|
11051
11055
|
/**
|
|
11052
11056
|
* UTC time at which Zernio generated this event (set once when the event payload is built, before delivery is queued). Retries and redeliveries keep the original value, so it reflects the event, not the delivery attempt.
|
|
@@ -11216,7 +11220,7 @@ type WebhookPayloadMessageSent = {
|
|
|
11216
11220
|
/**
|
|
11217
11221
|
* Every platform whose outgoing messages Zernio observes. sms is absent on purpose: its carrier receipts update delivery status and never raise message.sent.
|
|
11218
11222
|
*/
|
|
11219
|
-
platform: 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'slack';
|
|
11223
|
+
platform: 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'slack' | 'tiktok';
|
|
11220
11224
|
/**
|
|
11221
11225
|
* Platform's message ID
|
|
11222
11226
|
*/
|
|
@@ -11319,7 +11323,7 @@ type WebhookPayloadMessageSent = {
|
|
|
11319
11323
|
conversation: InboxWebhookConversation;
|
|
11320
11324
|
account: InboxWebhookAccount;
|
|
11321
11325
|
/**
|
|
11322
|
-
* Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin
|
|
11326
|
+
* Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards or the TikTok message type. 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.
|
|
11323
11327
|
*/
|
|
11324
11328
|
metadata?: {
|
|
11325
11329
|
/**
|
|
@@ -11392,6 +11396,10 @@ type WebhookPayloadMessageSent = {
|
|
|
11392
11396
|
*
|
|
11393
11397
|
*/
|
|
11394
11398
|
threadTs?: string;
|
|
11399
|
+
/**
|
|
11400
|
+
* 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.
|
|
11401
|
+
*/
|
|
11402
|
+
tiktokMessageType?: string;
|
|
11395
11403
|
};
|
|
11396
11404
|
/**
|
|
11397
11405
|
* UTC time at which Zernio generated this event (set once when the event payload is built, before delivery is queued). Retries and redeliveries keep the original value, so it reflects the event, not the delivery attempt.
|
|
@@ -11402,7 +11410,7 @@ type event19 = 'message.sent';
|
|
|
11402
11410
|
/**
|
|
11403
11411
|
* Every platform whose outgoing messages Zernio observes. sms is absent on purpose: its carrier receipts update delivery status and never raise message.sent.
|
|
11404
11412
|
*/
|
|
11405
|
-
type platform12 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'slack';
|
|
11413
|
+
type platform12 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'slack' | 'tiktok';
|
|
11406
11414
|
/**
|
|
11407
11415
|
* WhatsApp send origin. whatsapp_business_app when sent from the WhatsApp Business phone app on a Coexistence number; cloud_api when sent through Zernio (dashboard, API, or broadcasts); meta_business_agent when Meta Business Agent answered on the number. Absent on non-WhatsApp platforms. Says where WhatsApp saw the send come from, not which Zernio surface produced it: read sentVia for that.
|
|
11408
11416
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -6294,7 +6294,7 @@ type InboxWebhookConversationDetail = {
|
|
|
6294
6294
|
* Internal conversation ID
|
|
6295
6295
|
*/
|
|
6296
6296
|
id: string;
|
|
6297
|
-
platform: 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'sms' | 'slack';
|
|
6297
|
+
platform: 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'sms' | 'slack' | 'tiktok';
|
|
6298
6298
|
platformConversationId: string;
|
|
6299
6299
|
/**
|
|
6300
6300
|
* Contact's platform identifier (IGSID, PSID, wa_id, etc.)
|
|
@@ -6318,7 +6318,7 @@ type InboxWebhookConversationDetail = {
|
|
|
6318
6318
|
*/
|
|
6319
6319
|
contactId?: string;
|
|
6320
6320
|
};
|
|
6321
|
-
type platform4 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'sms' | 'slack';
|
|
6321
|
+
type platform4 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'sms' | 'slack' | 'tiktok';
|
|
6322
6322
|
/**
|
|
6323
6323
|
* The message object included in inbox webhook payloads.
|
|
6324
6324
|
*/
|
|
@@ -7542,7 +7542,7 @@ type PlatformAnalytics = {
|
|
|
7542
7542
|
syncStatus?: 'synced' | 'pending' | 'unavailable';
|
|
7543
7543
|
platformPostUrl?: (string) | null;
|
|
7544
7544
|
/**
|
|
7545
|
-
* Error details when status is failed
|
|
7545
|
+
* Error details when status is failed, or why analytics are unavailable for a published entry (e.g. Google Business Profile, a TikTok upload that never received a video id)
|
|
7546
7546
|
*/
|
|
7547
7547
|
errorMessage?: (string) | null;
|
|
7548
7548
|
};
|
|
@@ -7581,7 +7581,7 @@ type PlatformTarget = {
|
|
|
7581
7581
|
*/
|
|
7582
7582
|
platformPostId?: string;
|
|
7583
7583
|
/**
|
|
7584
|
-
* Public URL of the published post. Included in the response for immediate posts; for scheduled posts, fetch via GET /v1/posts/{postId} after publish time. Empty when the platform confirmed the publish without returning an id a permalink can be built from (TikTok returns a publish id for some uploads); the TikTok reconcile cron backfills it later.
|
|
7584
|
+
* Public URL of the published post. Included in the response for immediate posts; for scheduled posts, fetch via GET /v1/posts/{postId} after publish time. Empty when the platform confirmed the publish without returning an id a permalink can be built from (TikTok returns a publish id for some uploads); the TikTok reconcile cron backfills it later. If TikTok never returns one, /v1/analytics reports that entry as syncStatus unavailable.
|
|
7585
7585
|
*/
|
|
7586
7586
|
platformPostUrl?: (string) | null;
|
|
7587
7587
|
/**
|
|
@@ -10428,7 +10428,7 @@ type previousOwner = 'app' | 'ai_agent' | 'other';
|
|
|
10428
10428
|
* Fired once when a new conversation begins, in either direction. A conversation
|
|
10429
10429
|
* starts the first time an account and a contact exchange a message on any DM
|
|
10430
10430
|
* platform (Instagram, Messenger/Facebook, Telegram, WhatsApp, X, Reddit,
|
|
10431
|
-
* Bluesky, SMS). Platform-agnostic: one subscription covers every DM platform.
|
|
10431
|
+
* Bluesky, SMS, TikTok). Platform-agnostic: one subscription covers every DM platform.
|
|
10432
10432
|
*
|
|
10433
10433
|
*/
|
|
10434
10434
|
type WebhookPayloadConversationStarted = {
|
|
@@ -10563,7 +10563,7 @@ type WebhookPayloadMessage = {
|
|
|
10563
10563
|
* Internal conversation ID
|
|
10564
10564
|
*/
|
|
10565
10565
|
conversationId: string;
|
|
10566
|
-
platform: 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'sms';
|
|
10566
|
+
platform: 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'sms' | 'twitter' | 'bluesky' | 'reddit' | 'slack' | 'tiktok';
|
|
10567
10567
|
/**
|
|
10568
10568
|
* Platform's message ID
|
|
10569
10569
|
*/
|
|
@@ -10715,7 +10715,7 @@ type WebhookPayloadMessage = {
|
|
|
10715
10715
|
conversation: InboxWebhookConversation;
|
|
10716
10716
|
account: InboxWebhookAccount;
|
|
10717
10717
|
/**
|
|
10718
|
-
* Platform-specific message context (present when the message is a quick reply tap, postback button tap, inline keyboard callback, a quote-reply to an earlier message,
|
|
10718
|
+
* Platform-specific message context (present when the message is a quick reply tap, postback button tap, inline keyboard callback, a quote-reply to an earlier message, a WhatsApp inbound that Meta Business Agent is answering, or a TikTok DM that is not plain text)
|
|
10719
10719
|
*/
|
|
10720
10720
|
metadata?: {
|
|
10721
10721
|
/**
|
|
@@ -11047,6 +11047,10 @@ type WebhookPayloadMessage = {
|
|
|
11047
11047
|
*
|
|
11048
11048
|
*/
|
|
11049
11049
|
noRenderableContent?: boolean;
|
|
11050
|
+
/**
|
|
11051
|
+
* 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.
|
|
11052
|
+
*/
|
|
11053
|
+
tiktokMessageType?: string;
|
|
11050
11054
|
} | null;
|
|
11051
11055
|
/**
|
|
11052
11056
|
* UTC time at which Zernio generated this event (set once when the event payload is built, before delivery is queued). Retries and redeliveries keep the original value, so it reflects the event, not the delivery attempt.
|
|
@@ -11216,7 +11220,7 @@ type WebhookPayloadMessageSent = {
|
|
|
11216
11220
|
/**
|
|
11217
11221
|
* Every platform whose outgoing messages Zernio observes. sms is absent on purpose: its carrier receipts update delivery status and never raise message.sent.
|
|
11218
11222
|
*/
|
|
11219
|
-
platform: 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'slack';
|
|
11223
|
+
platform: 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'slack' | 'tiktok';
|
|
11220
11224
|
/**
|
|
11221
11225
|
* Platform's message ID
|
|
11222
11226
|
*/
|
|
@@ -11319,7 +11323,7 @@ type WebhookPayloadMessageSent = {
|
|
|
11319
11323
|
conversation: InboxWebhookConversation;
|
|
11320
11324
|
account: InboxWebhookAccount;
|
|
11321
11325
|
/**
|
|
11322
|
-
* Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin
|
|
11326
|
+
* Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards or the TikTok message type. 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.
|
|
11323
11327
|
*/
|
|
11324
11328
|
metadata?: {
|
|
11325
11329
|
/**
|
|
@@ -11392,6 +11396,10 @@ type WebhookPayloadMessageSent = {
|
|
|
11392
11396
|
*
|
|
11393
11397
|
*/
|
|
11394
11398
|
threadTs?: string;
|
|
11399
|
+
/**
|
|
11400
|
+
* 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.
|
|
11401
|
+
*/
|
|
11402
|
+
tiktokMessageType?: string;
|
|
11395
11403
|
};
|
|
11396
11404
|
/**
|
|
11397
11405
|
* UTC time at which Zernio generated this event (set once when the event payload is built, before delivery is queued). Retries and redeliveries keep the original value, so it reflects the event, not the delivery attempt.
|
|
@@ -11402,7 +11410,7 @@ type event19 = 'message.sent';
|
|
|
11402
11410
|
/**
|
|
11403
11411
|
* Every platform whose outgoing messages Zernio observes. sms is absent on purpose: its carrier receipts update delivery status and never raise message.sent.
|
|
11404
11412
|
*/
|
|
11405
|
-
type platform12 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'slack';
|
|
11413
|
+
type platform12 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'slack' | 'tiktok';
|
|
11406
11414
|
/**
|
|
11407
11415
|
* WhatsApp send origin. whatsapp_business_app when sent from the WhatsApp Business phone app on a Coexistence number; cloud_api when sent through Zernio (dashboard, API, or broadcasts); meta_business_agent when Meta Business Agent answered on the number. Absent on non-WhatsApp platforms. Says where WhatsApp saw the send come from, not which Zernio surface produced it: read sentVia for that.
|
|
11408
11416
|
*/
|
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.
|
|
39
|
+
version: "0.2.803",
|
|
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.
|
|
8
|
+
version: "0.2.803",
|
|
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
|
@@ -4854,7 +4854,7 @@ export type InboxWebhookConversationDetail = {
|
|
|
4854
4854
|
* Internal conversation ID
|
|
4855
4855
|
*/
|
|
4856
4856
|
id: string;
|
|
4857
|
-
platform: 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'sms' | 'slack';
|
|
4857
|
+
platform: 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'sms' | 'slack' | 'tiktok';
|
|
4858
4858
|
platformConversationId: string;
|
|
4859
4859
|
/**
|
|
4860
4860
|
* Contact's platform identifier (IGSID, PSID, wa_id, etc.)
|
|
@@ -4879,7 +4879,7 @@ export type InboxWebhookConversationDetail = {
|
|
|
4879
4879
|
contactId?: string;
|
|
4880
4880
|
};
|
|
4881
4881
|
|
|
4882
|
-
export type platform4 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'sms' | 'slack';
|
|
4882
|
+
export type platform4 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'sms' | 'slack' | 'tiktok';
|
|
4883
4883
|
|
|
4884
4884
|
/**
|
|
4885
4885
|
* The message object included in inbox webhook payloads.
|
|
@@ -6150,7 +6150,7 @@ export type PlatformAnalytics = {
|
|
|
6150
6150
|
syncStatus?: 'synced' | 'pending' | 'unavailable';
|
|
6151
6151
|
platformPostUrl?: (string) | null;
|
|
6152
6152
|
/**
|
|
6153
|
-
* Error details when status is failed
|
|
6153
|
+
* Error details when status is failed, or why analytics are unavailable for a published entry (e.g. Google Business Profile, a TikTok upload that never received a video id)
|
|
6154
6154
|
*/
|
|
6155
6155
|
errorMessage?: (string) | null;
|
|
6156
6156
|
};
|
|
@@ -6192,7 +6192,7 @@ export type PlatformTarget = {
|
|
|
6192
6192
|
*/
|
|
6193
6193
|
platformPostId?: string;
|
|
6194
6194
|
/**
|
|
6195
|
-
* Public URL of the published post. Included in the response for immediate posts; for scheduled posts, fetch via GET /v1/posts/{postId} after publish time. Empty when the platform confirmed the publish without returning an id a permalink can be built from (TikTok returns a publish id for some uploads); the TikTok reconcile cron backfills it later.
|
|
6195
|
+
* Public URL of the published post. Included in the response for immediate posts; for scheduled posts, fetch via GET /v1/posts/{postId} after publish time. Empty when the platform confirmed the publish without returning an id a permalink can be built from (TikTok returns a publish id for some uploads); the TikTok reconcile cron backfills it later. If TikTok never returns one, /v1/analytics reports that entry as syncStatus unavailable.
|
|
6196
6196
|
*/
|
|
6197
6197
|
platformPostUrl?: (string) | null;
|
|
6198
6198
|
/**
|
|
@@ -9161,7 +9161,7 @@ export type previousOwner = 'app' | 'ai_agent' | 'other';
|
|
|
9161
9161
|
* Fired once when a new conversation begins, in either direction. A conversation
|
|
9162
9162
|
* starts the first time an account and a contact exchange a message on any DM
|
|
9163
9163
|
* platform (Instagram, Messenger/Facebook, Telegram, WhatsApp, X, Reddit,
|
|
9164
|
-
* Bluesky, SMS). Platform-agnostic: one subscription covers every DM platform.
|
|
9164
|
+
* Bluesky, SMS, TikTok). Platform-agnostic: one subscription covers every DM platform.
|
|
9165
9165
|
*
|
|
9166
9166
|
*/
|
|
9167
9167
|
export type WebhookPayloadConversationStarted = {
|
|
@@ -9303,7 +9303,7 @@ export type WebhookPayloadMessage = {
|
|
|
9303
9303
|
* Internal conversation ID
|
|
9304
9304
|
*/
|
|
9305
9305
|
conversationId: string;
|
|
9306
|
-
platform: 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'sms';
|
|
9306
|
+
platform: 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'sms' | 'twitter' | 'bluesky' | 'reddit' | 'slack' | 'tiktok';
|
|
9307
9307
|
/**
|
|
9308
9308
|
* Platform's message ID
|
|
9309
9309
|
*/
|
|
@@ -9455,7 +9455,7 @@ export type WebhookPayloadMessage = {
|
|
|
9455
9455
|
conversation: InboxWebhookConversation;
|
|
9456
9456
|
account: InboxWebhookAccount;
|
|
9457
9457
|
/**
|
|
9458
|
-
* Platform-specific message context (present when the message is a quick reply tap, postback button tap, inline keyboard callback, a quote-reply to an earlier message,
|
|
9458
|
+
* Platform-specific message context (present when the message is a quick reply tap, postback button tap, inline keyboard callback, a quote-reply to an earlier message, a WhatsApp inbound that Meta Business Agent is answering, or a TikTok DM that is not plain text)
|
|
9459
9459
|
*/
|
|
9460
9460
|
metadata?: {
|
|
9461
9461
|
/**
|
|
@@ -9787,6 +9787,10 @@ export type WebhookPayloadMessage = {
|
|
|
9787
9787
|
*
|
|
9788
9788
|
*/
|
|
9789
9789
|
noRenderableContent?: boolean;
|
|
9790
|
+
/**
|
|
9791
|
+
* 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.
|
|
9792
|
+
*/
|
|
9793
|
+
tiktokMessageType?: string;
|
|
9790
9794
|
} | null;
|
|
9791
9795
|
/**
|
|
9792
9796
|
* UTC time at which Zernio generated this event (set once when the event payload is built, before delivery is queued). Retries and redeliveries keep the original value, so it reflects the event, not the delivery attempt.
|
|
@@ -9967,7 +9971,7 @@ export type WebhookPayloadMessageSent = {
|
|
|
9967
9971
|
/**
|
|
9968
9972
|
* Every platform whose outgoing messages Zernio observes. sms is absent on purpose: its carrier receipts update delivery status and never raise message.sent.
|
|
9969
9973
|
*/
|
|
9970
|
-
platform: 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'slack';
|
|
9974
|
+
platform: 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'slack' | 'tiktok';
|
|
9971
9975
|
/**
|
|
9972
9976
|
* Platform's message ID
|
|
9973
9977
|
*/
|
|
@@ -10070,7 +10074,7 @@ export type WebhookPayloadMessageSent = {
|
|
|
10070
10074
|
conversation: InboxWebhookConversation;
|
|
10071
10075
|
account: InboxWebhookAccount;
|
|
10072
10076
|
/**
|
|
10073
|
-
* Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin
|
|
10077
|
+
* Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards or the TikTok message type. 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.
|
|
10074
10078
|
*/
|
|
10075
10079
|
metadata?: {
|
|
10076
10080
|
/**
|
|
@@ -10143,6 +10147,10 @@ export type WebhookPayloadMessageSent = {
|
|
|
10143
10147
|
*
|
|
10144
10148
|
*/
|
|
10145
10149
|
threadTs?: string;
|
|
10150
|
+
/**
|
|
10151
|
+
* 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.
|
|
10152
|
+
*/
|
|
10153
|
+
tiktokMessageType?: string;
|
|
10146
10154
|
};
|
|
10147
10155
|
/**
|
|
10148
10156
|
* UTC time at which Zernio generated this event (set once when the event payload is built, before delivery is queued). Retries and redeliveries keep the original value, so it reflects the event, not the delivery attempt.
|
|
@@ -10155,7 +10163,7 @@ export type event19 = 'message.sent';
|
|
|
10155
10163
|
/**
|
|
10156
10164
|
* Every platform whose outgoing messages Zernio observes. sms is absent on purpose: its carrier receipts update delivery status and never raise message.sent.
|
|
10157
10165
|
*/
|
|
10158
|
-
export type platform12 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'slack';
|
|
10166
|
+
export type platform12 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'slack' | 'tiktok';
|
|
10159
10167
|
|
|
10160
10168
|
/**
|
|
10161
10169
|
* WhatsApp send origin. whatsapp_business_app when sent from the WhatsApp Business phone app on a Coexistence number; cloud_api when sent through Zernio (dashboard, API, or broadcasts); meta_business_agent when Meta Business Agent answered on the number. Absent on non-WhatsApp platforms. Says where WhatsApp saw the send come from, not which Zernio surface produced it: read sentVia for that.
|