@zernio/node 0.2.60 → 0.2.62
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/README.md +43 -43
- package/dist/index.d.mts +42 -39
- package/dist/index.d.ts +42 -39
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +134 -100
- package/src/generated/types.gen.ts +42 -39
|
@@ -13,7 +13,6 @@ export type AccountsListResponse = {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
export type AccountWithFollowerStats = SocialAccount & {
|
|
16
|
-
profilePicture?: string;
|
|
17
16
|
/**
|
|
18
17
|
* Current follower count
|
|
19
18
|
*/
|
|
@@ -690,7 +689,7 @@ export type GoogleBusinessPlatformData = {
|
|
|
690
689
|
export type type2 = 'LEARN_MORE' | 'BOOK' | 'ORDER' | 'SHOP' | 'SIGN_UP' | 'CALL';
|
|
691
690
|
|
|
692
691
|
/**
|
|
693
|
-
* The
|
|
692
|
+
* The account context included in inbox webhook payloads.
|
|
694
693
|
*/
|
|
695
694
|
export type InboxWebhookAccount = {
|
|
696
695
|
/**
|
|
@@ -703,7 +702,7 @@ export type InboxWebhookAccount = {
|
|
|
703
702
|
};
|
|
704
703
|
|
|
705
704
|
/**
|
|
706
|
-
* The
|
|
705
|
+
* The conversation context included in inbox webhook payloads.
|
|
707
706
|
*/
|
|
708
707
|
export type InboxWebhookConversation = {
|
|
709
708
|
id: string;
|
|
@@ -718,7 +717,7 @@ export type InboxWebhookConversation = {
|
|
|
718
717
|
export type status3 = 'active' | 'archived';
|
|
719
718
|
|
|
720
719
|
/**
|
|
721
|
-
* The
|
|
720
|
+
* The message object included in inbox webhook payloads.
|
|
722
721
|
*/
|
|
723
722
|
export type InboxWebhookMessage = {
|
|
724
723
|
/**
|
|
@@ -1619,6 +1618,10 @@ export type SocialAccount = {
|
|
|
1619
1618
|
profileId?: (string | Profile);
|
|
1620
1619
|
username?: string;
|
|
1621
1620
|
displayName?: string;
|
|
1621
|
+
/**
|
|
1622
|
+
* URL to the account's profile picture on the platform. May be null if the platform does not provide one.
|
|
1623
|
+
*/
|
|
1624
|
+
profilePicture?: (string) | null;
|
|
1622
1625
|
/**
|
|
1623
1626
|
* Full profile URL for the connected account on its platform.
|
|
1624
1627
|
*/
|
|
@@ -1648,13 +1651,13 @@ export type SocialAccount = {
|
|
|
1648
1651
|
enabled?: boolean;
|
|
1649
1652
|
/**
|
|
1650
1653
|
* Platform-specific metadata. Fields vary by platform. For WhatsApp accounts, includes:
|
|
1651
|
-
* -
|
|
1652
|
-
* -
|
|
1653
|
-
* -
|
|
1654
|
-
* -
|
|
1655
|
-
* -
|
|
1656
|
-
* -
|
|
1657
|
-
* -
|
|
1654
|
+
* - qualityRating: Phone number quality rating from Meta (GREEN, YELLOW, RED, or UNKNOWN)
|
|
1655
|
+
* - nameStatus: Display name review status (APPROVED, PENDING_REVIEW, DECLINED, or NONE). Messages cannot be sent until the display name is approved by Meta.
|
|
1656
|
+
* - messagingLimitTier: Maximum unique business-initiated conversations per 24h rolling window (TIER_250, TIER_1K, TIER_10K, TIER_100K, or TIER_UNLIMITED). Scales automatically as quality rating improves.
|
|
1657
|
+
* - verifiedName: Meta-verified business display name
|
|
1658
|
+
* - displayPhoneNumber: Formatted phone number (e.g., "+1 555-123-4567")
|
|
1659
|
+
* - wabaId: WhatsApp Business Account ID
|
|
1660
|
+
* - phoneNumberId: Meta phone number ID
|
|
1658
1661
|
*
|
|
1659
1662
|
*/
|
|
1660
1663
|
metadata?: {
|
|
@@ -1713,17 +1716,17 @@ export type ThreadsPlatformData = {
|
|
|
1713
1716
|
* Photo carousels up to 35 images. Video titles up to 2200 chars, photo titles truncated to 90 chars.
|
|
1714
1717
|
* privacyLevel must match creator_info options. Both camelCase and snake_case accepted.
|
|
1715
1718
|
*
|
|
1716
|
-
*
|
|
1719
|
+
* Creator Inbox (draft mode): Set draft: true to send content to the TikTok Creator Inbox
|
|
1717
1720
|
* instead of publishing immediately. The creator receives an inbox notification and completes
|
|
1718
|
-
* the post using TikTok's editing flow. This maps to TikTok's
|
|
1721
|
+
* the post using TikTok's editing flow. This maps to TikTok's post_mode: "MEDIA_UPLOAD" internally.
|
|
1719
1722
|
*
|
|
1720
|
-
*
|
|
1723
|
+
* Important: The field publish_type is NOT supported. Use draft: true for Creator Inbox flow.
|
|
1721
1724
|
*
|
|
1722
|
-
*
|
|
1723
|
-
*
|
|
1725
|
+
* Photo drafts use the /v2/post/publish/content/init/ endpoint with post_mode: "MEDIA_UPLOAD".
|
|
1726
|
+
* Video drafts use the dedicated /v2/post/publish/inbox/video/init/ endpoint.
|
|
1724
1727
|
*
|
|
1725
|
-
* When
|
|
1726
|
-
* (direct post), the
|
|
1728
|
+
* When draft: true, the video.upload scope is required. When draft is false or omitted
|
|
1729
|
+
* (direct post), the video.publish scope is required. For Creator Inbox, TikTok app version
|
|
1727
1730
|
* must be 31.8 or higher.
|
|
1728
1731
|
*
|
|
1729
1732
|
*/
|
|
@@ -1731,9 +1734,9 @@ export type TikTokPlatformData = {
|
|
|
1731
1734
|
/**
|
|
1732
1735
|
* When true, sends the post to the TikTok Creator Inbox as a draft instead of publishing
|
|
1733
1736
|
* immediately. The creator receives an inbox notification to complete posting via TikTok's
|
|
1734
|
-
* editing flow. Maps to TikTok API
|
|
1735
|
-
* inbox endpoint (videos). When false or omitted, publishes directly via
|
|
1736
|
-
* Note:
|
|
1737
|
+
* editing flow. Maps to TikTok API post_mode: "MEDIA_UPLOAD" (photos) or the dedicated
|
|
1738
|
+
* inbox endpoint (videos). When false or omitted, publishes directly via post_mode: "DIRECT_POST".
|
|
1739
|
+
* Note: publish_type is not a supported field. Use this field instead.
|
|
1737
1740
|
*
|
|
1738
1741
|
*/
|
|
1739
1742
|
draft?: boolean;
|
|
@@ -2220,12 +2223,12 @@ export type WebhookPayloadMessage = {
|
|
|
2220
2223
|
export type event4 = 'message.received';
|
|
2221
2224
|
|
|
2222
2225
|
/**
|
|
2223
|
-
* Webhook payload for
|
|
2226
|
+
* Webhook payload for message.deleted events. Fires when the sender
|
|
2224
2227
|
* deletes (unsends) a message. Supported platforms: Instagram (incoming
|
|
2225
2228
|
* unsend) and WhatsApp (when the business deletes an outgoing message
|
|
2226
2229
|
* via the Cloud API).
|
|
2227
2230
|
*
|
|
2228
|
-
* The
|
|
2231
|
+
* The message.text and message.attachments fields retain the content
|
|
2229
2232
|
* that existed before the delete. The Zernio dashboard UI does not show
|
|
2230
2233
|
* this content, but authorized API consumers may access it for
|
|
2231
2234
|
* moderation, compliance, or archival use cases.
|
|
@@ -2244,14 +2247,14 @@ export type WebhookPayloadMessageDeleted = {
|
|
|
2244
2247
|
export type event5 = 'message.deleted';
|
|
2245
2248
|
|
|
2246
2249
|
/**
|
|
2247
|
-
* Shared payload for
|
|
2248
|
-
*
|
|
2250
|
+
* Shared payload for message.delivered, message.read, and
|
|
2251
|
+
* message.failed events. Fires when the platform reports a new
|
|
2249
2252
|
* delivery state for an outgoing message.
|
|
2250
2253
|
*
|
|
2251
2254
|
* Platform support:
|
|
2252
|
-
* *
|
|
2253
|
-
* *
|
|
2254
|
-
* *
|
|
2255
|
+
* * message.delivered — WhatsApp, Facebook Messenger.
|
|
2256
|
+
* * message.read — WhatsApp, Facebook Messenger, Instagram.
|
|
2257
|
+
* * message.failed — WhatsApp only (other platforms don't expose
|
|
2255
2258
|
* per-message failure via webhook).
|
|
2256
2259
|
*
|
|
2257
2260
|
*/
|
|
@@ -2264,7 +2267,7 @@ export type WebhookPayloadMessageDeliveryStatus = {
|
|
|
2264
2267
|
*/
|
|
2265
2268
|
statusAt: string;
|
|
2266
2269
|
/**
|
|
2267
|
-
* Populated only on
|
|
2270
|
+
* Populated only on message.failed.
|
|
2268
2271
|
*/
|
|
2269
2272
|
error?: {
|
|
2270
2273
|
code?: number;
|
|
@@ -2279,10 +2282,10 @@ export type WebhookPayloadMessageDeliveryStatus = {
|
|
|
2279
2282
|
export type event6 = 'message.delivered' | 'message.read' | 'message.failed';
|
|
2280
2283
|
|
|
2281
2284
|
/**
|
|
2282
|
-
* Webhook payload for
|
|
2285
|
+
* Webhook payload for message.edited events. Fires when the sender
|
|
2283
2286
|
* edits a previously-sent message. Supported platforms: Instagram,
|
|
2284
|
-
* Facebook Messenger, Telegram. The
|
|
2285
|
-
* LATEST state;
|
|
2287
|
+
* Facebook Messenger, Telegram. The message object reflects the
|
|
2288
|
+
* LATEST state; editHistory contains every prior version in order
|
|
2286
2289
|
* (oldest first), so the last entry is the version immediately before
|
|
2287
2290
|
* the current content.
|
|
2288
2291
|
*
|
|
@@ -7007,19 +7010,19 @@ export type CreateInboxConversationData = {
|
|
|
7007
7010
|
*/
|
|
7008
7011
|
accountId: string;
|
|
7009
7012
|
/**
|
|
7010
|
-
* Twitter numeric user ID of the recipient. Provide either this or
|
|
7013
|
+
* Twitter numeric user ID of the recipient. Provide either this or participantUsername.
|
|
7011
7014
|
*/
|
|
7012
7015
|
participantId?: string;
|
|
7013
7016
|
/**
|
|
7014
|
-
* Twitter username (with or without @) of the recipient. Resolved to a user ID via lookup. Provide either this or
|
|
7017
|
+
* Twitter username (with or without @) of the recipient. Resolved to a user ID via lookup. Provide either this or participantId.
|
|
7015
7018
|
*/
|
|
7016
7019
|
participantUsername?: string;
|
|
7017
7020
|
/**
|
|
7018
|
-
* Text content of the message. At least one of
|
|
7021
|
+
* Text content of the message. At least one of message or attachment is required.
|
|
7019
7022
|
*/
|
|
7020
7023
|
message?: string;
|
|
7021
7024
|
/**
|
|
7022
|
-
* Skip the
|
|
7025
|
+
* Skip the receives_your_dm eligibility check before sending. Use if you have already verified the recipient accepts DMs.
|
|
7023
7026
|
*/
|
|
7024
7027
|
skipDmCheck?: boolean;
|
|
7025
7028
|
};
|
|
@@ -7236,7 +7239,7 @@ export type GetInboxConversationMessagesResponse = ({
|
|
|
7236
7239
|
editedAt?: string;
|
|
7237
7240
|
}>;
|
|
7238
7241
|
/**
|
|
7239
|
-
* True if the sender has deleted (unsent) this message. The original
|
|
7242
|
+
* True if the sender has deleted (unsent) this message. The original message and attachments fields remain populated.
|
|
7240
7243
|
*/
|
|
7241
7244
|
isDeleted?: boolean;
|
|
7242
7245
|
deletedAt?: (string) | null;
|
|
@@ -7251,7 +7254,7 @@ export type GetInboxConversationMessagesResponse = ({
|
|
|
7251
7254
|
*/
|
|
7252
7255
|
sentAt?: (string) | null;
|
|
7253
7256
|
/**
|
|
7254
|
-
* Populated when
|
|
7257
|
+
* Populated when deliveryStatus === "failed".
|
|
7255
7258
|
*/
|
|
7256
7259
|
deliveryError?: {
|
|
7257
7260
|
code?: number;
|
|
@@ -8504,7 +8507,7 @@ export type CreateWhatsAppTemplateData = {
|
|
|
8504
8507
|
/**
|
|
8505
8508
|
* Name of a pre-built template from Meta's template library (e.g., "appointment_reminder",
|
|
8506
8509
|
* "auto_pay_reminder_1", "address_update"). When provided, the template is pre-approved
|
|
8507
|
-
* by Meta with no review wait. Omit
|
|
8510
|
+
* by Meta with no review wait. Omit components when using this field.
|
|
8508
8511
|
*
|
|
8509
8512
|
*/
|
|
8510
8513
|
library_template_name?: string;
|