@zernio/node 0.2.776 → 0.2.778
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 +58 -18
- package/dist/index.d.ts +58 -18
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +10 -0
- package/src/generated/types.gen.ts +61 -17
|
@@ -7317,7 +7317,7 @@ export type TikTokPlatformData = {
|
|
|
7317
7317
|
*/
|
|
7318
7318
|
musicSoundInfo?: {
|
|
7319
7319
|
/**
|
|
7320
|
-
* The
|
|
7320
|
+
* The id field of a track from GET /v1/accounts/{accountId}/tiktok/commercial-music (a song clip id). TikTok fails the publish with a generic 51065 when given the commercial music id instead.
|
|
7321
7321
|
*/
|
|
7322
7322
|
musicSoundId: string;
|
|
7323
7323
|
/**
|
|
@@ -10698,6 +10698,45 @@ export type otp_type = 'copy_code' | 'one_tap' | 'zero_tap';
|
|
|
10698
10698
|
|
|
10699
10699
|
export type WhatsAppTemplateComponent = WhatsAppHeaderComponent | WhatsAppBodyComponent | WhatsAppFooterComponent | WhatsAppButtonsComponent | WhatsAppCarouselComponent | WhatsAppLimitedTimeOfferComponent;
|
|
10700
10700
|
|
|
10701
|
+
export type WhatsAppTemplateLookupError = {
|
|
10702
|
+
error: string;
|
|
10703
|
+
type: 'platform_error';
|
|
10704
|
+
code: 'platform_api_error';
|
|
10705
|
+
platform: 'whatsapp';
|
|
10706
|
+
/**
|
|
10707
|
+
* Sanitized Meta lookup error fields, present when Meta returned them.
|
|
10708
|
+
*/
|
|
10709
|
+
platformError?: {
|
|
10710
|
+
code?: number;
|
|
10711
|
+
message?: string;
|
|
10712
|
+
error_data?: {
|
|
10713
|
+
details?: string;
|
|
10714
|
+
};
|
|
10715
|
+
};
|
|
10716
|
+
details: {
|
|
10717
|
+
phase: 'template_lookup';
|
|
10718
|
+
/**
|
|
10719
|
+
* Meta endpoint path without query parameters or access tokens
|
|
10720
|
+
*/
|
|
10721
|
+
endpoint: string;
|
|
10722
|
+
upstreamStatus?: number;
|
|
10723
|
+
/**
|
|
10724
|
+
* Safe provider headers retained from the lookup response.
|
|
10725
|
+
*/
|
|
10726
|
+
providerHeaders?: {
|
|
10727
|
+
'retry-after'?: string;
|
|
10728
|
+
'x-app-usage'?: string;
|
|
10729
|
+
'x-business-use-case-usage'?: string;
|
|
10730
|
+
};
|
|
10731
|
+
};
|
|
10732
|
+
};
|
|
10733
|
+
|
|
10734
|
+
export type type11 = 'platform_error';
|
|
10735
|
+
|
|
10736
|
+
export type code = 'platform_api_error';
|
|
10737
|
+
|
|
10738
|
+
export type phase = 'template_lookup';
|
|
10739
|
+
|
|
10701
10740
|
/**
|
|
10702
10741
|
* A directed edge between two nodes.
|
|
10703
10742
|
*/
|
|
@@ -10851,7 +10890,7 @@ export type WorkflowNode = {
|
|
|
10851
10890
|
* integrations (webhook, ai, handoff, start_call).
|
|
10852
10891
|
*
|
|
10853
10892
|
*/
|
|
10854
|
-
export type
|
|
10893
|
+
export type type12 = 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
|
|
10855
10894
|
|
|
10856
10895
|
/**
|
|
10857
10896
|
* A single X API operation with its per-call price and the Zernio platform methods that trigger it.
|
|
@@ -10987,7 +11026,7 @@ export type XArticleBlock = {
|
|
|
10987
11026
|
entity_ranges?: Array<XArticleEntityRange>;
|
|
10988
11027
|
};
|
|
10989
11028
|
|
|
10990
|
-
export type
|
|
11029
|
+
export type type13 = 'unstyled' | 'header-one' | 'header-two' | 'header-three' | 'unordered-list-item' | 'ordered-list-item' | 'blockquote' | 'atomic';
|
|
10991
11030
|
|
|
10992
11031
|
/**
|
|
10993
11032
|
* X's snake_case content-state shape. Standard DraftJS camelCase fields such as entityMap, inlineStyleRanges, and entityRanges are rejected.
|
|
@@ -11066,7 +11105,7 @@ export type XArticleEntity = {
|
|
|
11066
11105
|
|
|
11067
11106
|
export type mutability = 'immutable' | 'mutable' | 'segmented';
|
|
11068
11107
|
|
|
11069
|
-
export type
|
|
11108
|
+
export type type14 = 'divider' | 'latex';
|
|
11070
11109
|
|
|
11071
11110
|
/**
|
|
11072
11111
|
* The referenced entity must exist, and offset plus length must not exceed the containing block's text length.
|
|
@@ -14406,9 +14445,13 @@ export type ListTikTokCommercialMusicData = {
|
|
|
14406
14445
|
export type ListTikTokCommercialMusicResponse = ({
|
|
14407
14446
|
tracks?: Array<{
|
|
14408
14447
|
/**
|
|
14409
|
-
* The
|
|
14448
|
+
* The id to send as musicSoundId (the full track's song clip id). TikTok rejects the commercial music id itself at publish time.
|
|
14410
14449
|
*/
|
|
14411
14450
|
id?: string;
|
|
14451
|
+
/**
|
|
14452
|
+
* TikTok's commercial_music_id, for reference only
|
|
14453
|
+
*/
|
|
14454
|
+
commercialMusicId?: string;
|
|
14412
14455
|
name?: string;
|
|
14413
14456
|
artist?: string;
|
|
14414
14457
|
durationSec?: number;
|
|
@@ -14423,9 +14466,10 @@ export type ListTikTokCommercialMusicResponse = ({
|
|
|
14423
14466
|
*/
|
|
14424
14467
|
rank?: number;
|
|
14425
14468
|
/**
|
|
14426
|
-
* The trending excerpt of the track, when TikTok provides one
|
|
14469
|
+
* The trending excerpt of the track, when TikTok provides one. Its id is also accepted as musicSoundId.
|
|
14427
14470
|
*/
|
|
14428
14471
|
clip?: {
|
|
14472
|
+
id?: string;
|
|
14429
14473
|
durationSec?: number;
|
|
14430
14474
|
previewUrl?: string;
|
|
14431
14475
|
};
|
|
@@ -21210,21 +21254,21 @@ export type CreateInboxConversationResponse = ({
|
|
|
21210
21254
|
};
|
|
21211
21255
|
});
|
|
21212
21256
|
|
|
21213
|
-
export type CreateInboxConversationError = ({
|
|
21257
|
+
export type CreateInboxConversationError = (({
|
|
21214
21258
|
error?: string;
|
|
21215
|
-
code?: 'PLATFORM_NOT_SUPPORTED' | 'PLATFORM_LIMITATION' | 'TEMPLATE_REQUIRED' | 'INVALID_TEMPLATE_PARAMS' | 'INVALID_TEMPLATE_BUTTON_PARAM' | 'INVALID_TEMPLATE_CARD_PARAM' | 'DIRECT_SEND_NOT_ELIGIBLE' | 'DIRECT_SEND_LIMITED' | 'DIRECT_SEND_BLOCKED';
|
|
21216
|
-
} | {
|
|
21259
|
+
code?: 'PLATFORM_NOT_SUPPORTED' | 'PLATFORM_LIMITATION' | 'TEMPLATE_REQUIRED' | 'INVALID_TEMPLATE_PARAMS' | 'INVALID_TEMPLATE_BUTTON_PARAM' | 'INVALID_TEMPLATE_HEADER' | 'INVALID_TEMPLATE_CARD_PARAM' | 'DIRECT_SEND_NOT_ELIGIBLE' | 'DIRECT_SEND_LIMITED' | 'DIRECT_SEND_BLOCKED';
|
|
21260
|
+
} | WhatsAppTemplateLookupError) | {
|
|
21217
21261
|
error?: string;
|
|
21218
|
-
} | unknown | {
|
|
21262
|
+
} | unknown | ({
|
|
21219
21263
|
error?: string;
|
|
21220
21264
|
code?: 'account_not_found' | 'PARTICIPANT_NOT_FOUND';
|
|
21221
|
-
} | {
|
|
21265
|
+
} | WhatsAppTemplateLookupError) | ({
|
|
21222
21266
|
error?: string;
|
|
21223
21267
|
code?: 'DM_NOT_ALLOWED';
|
|
21224
|
-
} | {
|
|
21268
|
+
} | WhatsAppTemplateLookupError) | ({
|
|
21225
21269
|
error?: string;
|
|
21226
21270
|
code?: 'rate_limited';
|
|
21227
|
-
});
|
|
21271
|
+
} | WhatsAppTemplateLookupError) | WhatsAppTemplateLookupError);
|
|
21228
21272
|
|
|
21229
21273
|
export type SearchInboxConversationsData = {
|
|
21230
21274
|
query: {
|
|
@@ -22356,13 +22400,13 @@ export type SendInboxMessageError = ({
|
|
|
22356
22400
|
/**
|
|
22357
22401
|
* Stable machine-readable reason. PLATFORM_LIMITATION covers a capability the platform does not offer (e.g. Bluesky and Reddit DMs reject media); MISSING_PARTICIPANT means the stored conversation has no recipient to send to; DIRECT_SEND_NOT_ELIGIBLE and DIRECT_SEND_BLOCKED mean the WhatsApp Business Account needs Meta to grant or restore Direct Send access; DIRECT_SEND_LIMITED is temporary, Meta lifts it on its own; platform_api_error means Meta itself rejected the send (see platformError).
|
|
22358
22402
|
*/
|
|
22359
|
-
code?: 'PLATFORM_LIMITATION' | 'MISSING_PARTICIPANT' | 'DIRECT_SEND_NOT_ELIGIBLE' | 'DIRECT_SEND_LIMITED' | 'DIRECT_SEND_BLOCKED' | 'platform_api_error';
|
|
22403
|
+
code?: 'PLATFORM_LIMITATION' | 'MISSING_PARTICIPANT' | 'INVALID_TEMPLATE_HEADER' | 'DIRECT_SEND_NOT_ELIGIBLE' | 'DIRECT_SEND_LIMITED' | 'DIRECT_SEND_BLOCKED' | 'platform_api_error';
|
|
22360
22404
|
/**
|
|
22361
|
-
* Present alongside code platform_api_error. The platform that rejected the send (e.g. instagram, facebook).
|
|
22405
|
+
* Present alongside code platform_api_error. The platform that rejected the send (e.g. instagram, facebook, whatsapp).
|
|
22362
22406
|
*/
|
|
22363
22407
|
platform?: string;
|
|
22364
22408
|
/**
|
|
22365
|
-
* Instagram
|
|
22409
|
+
* Instagram, Facebook, or WhatsApp. Meta's diagnostic fields for the rejected send or template lookup. WhatsApp lookup errors retain only code, message, and error_data.details. Absent when the failure did not come from Meta.
|
|
22366
22410
|
*/
|
|
22367
22411
|
platformError?: {
|
|
22368
22412
|
/**
|
|
@@ -22384,7 +22428,7 @@ export type SendInboxMessageError = ({
|
|
|
22384
22428
|
};
|
|
22385
22429
|
} | {
|
|
22386
22430
|
error?: string;
|
|
22387
|
-
} | ErrorResponse | unknown);
|
|
22431
|
+
} | ErrorResponse | unknown | WhatsAppTemplateLookupError | (ErrorResponse | WhatsAppTemplateLookupError));
|
|
22388
22432
|
|
|
22389
22433
|
export type GetWhatsAppMediaData = {
|
|
22390
22434
|
path: {
|