@zernio/node 0.2.894 → 0.2.896
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 +24 -22
- package/dist/index.d.ts +24 -22
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +23 -22
|
@@ -1692,9 +1692,9 @@ export type AnalyticsSinglePostResponse = {
|
|
|
1692
1692
|
*/
|
|
1693
1693
|
latePostId?: (string) | null;
|
|
1694
1694
|
/**
|
|
1695
|
-
* Overall post status. "partial" when some platforms published and others failed.
|
|
1695
|
+
* Overall post status. "partial" when some platforms published and others failed. While any platform is still pending or processing, the post's own status is returned instead (usually scheduled or publishing), even if another platform already published.
|
|
1696
1696
|
*/
|
|
1697
|
-
status?: 'published' | 'failed' | 'partial';
|
|
1697
|
+
status?: 'published' | 'failed' | 'partial' | 'scheduled' | 'publishing' | 'draft' | 'cancelled';
|
|
1698
1698
|
content?: string;
|
|
1699
1699
|
scheduledFor?: string;
|
|
1700
1700
|
publishedAt?: (string) | null;
|
|
@@ -1758,9 +1758,9 @@ export type AnalyticsSinglePostResponse = {
|
|
|
1758
1758
|
};
|
|
1759
1759
|
|
|
1760
1760
|
/**
|
|
1761
|
-
* Overall post status. "partial" when some platforms published and others failed.
|
|
1761
|
+
* Overall post status. "partial" when some platforms published and others failed. While any platform is still pending or processing, the post's own status is returned instead (usually scheduled or publishing), even if another platform already published.
|
|
1762
1762
|
*/
|
|
1763
|
-
export type status2 = 'published' | 'failed' | 'partial';
|
|
1763
|
+
export type status2 = 'published' | 'failed' | 'partial' | 'scheduled' | 'publishing' | 'draft' | 'cancelled';
|
|
1764
1764
|
|
|
1765
1765
|
/**
|
|
1766
1766
|
* Overall sync state across all platforms
|
|
@@ -6682,7 +6682,7 @@ export type PlatformTarget = {
|
|
|
6682
6682
|
*/
|
|
6683
6683
|
platformPostUrl?: (string) | null;
|
|
6684
6684
|
/**
|
|
6685
|
-
* Timestamp when the post was published to this platform
|
|
6685
|
+
* Timestamp when the post was published to this platform. YouTube uploads a scheduled public video up to 15 minutes early as private with YouTube's own release time, so its entry is published with this set to scheduledFor, the moment the video goes public.
|
|
6686
6686
|
*/
|
|
6687
6687
|
publishedAt?: string;
|
|
6688
6688
|
/**
|
|
@@ -6820,11 +6820,6 @@ export type Post = {
|
|
|
6820
6820
|
updatedAt?: string;
|
|
6821
6821
|
};
|
|
6822
6822
|
|
|
6823
|
-
/**
|
|
6824
|
-
* `cancelled` is set by DELETE /v1/posts/{postId}/unpublish once every platform entry has been removed from its platform (a post with published entries left becomes `partial`); cancelled posts can be edited and rescheduled like drafts.
|
|
6825
|
-
*/
|
|
6826
|
-
export type status14 = 'draft' | 'scheduled' | 'publishing' | 'published' | 'partial' | 'failed' | 'cancelled';
|
|
6827
|
-
|
|
6828
6823
|
export type visibility2 = 'public' | 'private' | 'unlisted';
|
|
6829
6824
|
|
|
6830
6825
|
export type PostAnalytics = {
|
|
@@ -7026,7 +7021,7 @@ export type Product = {
|
|
|
7026
7021
|
|
|
7027
7022
|
export type platform8 = 'shopify';
|
|
7028
7023
|
|
|
7029
|
-
export type
|
|
7024
|
+
export type status14 = 'active' | 'draft' | 'archived';
|
|
7030
7025
|
|
|
7031
7026
|
export type ProductImage = {
|
|
7032
7027
|
url?: string;
|
|
@@ -8276,7 +8271,7 @@ export type UploadTokenResponse = {
|
|
|
8276
8271
|
status?: 'pending' | 'completed' | 'expired';
|
|
8277
8272
|
};
|
|
8278
8273
|
|
|
8279
|
-
export type
|
|
8274
|
+
export type status15 = 'pending' | 'completed' | 'expired';
|
|
8280
8275
|
|
|
8281
8276
|
export type UploadTokenStatusResponse = {
|
|
8282
8277
|
token?: string;
|
|
@@ -8752,7 +8747,7 @@ export type Verification = {
|
|
|
8752
8747
|
resend?: boolean;
|
|
8753
8748
|
};
|
|
8754
8749
|
|
|
8755
|
-
export type
|
|
8750
|
+
export type status16 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
|
|
8756
8751
|
|
|
8757
8752
|
export type channel3 = 'sms';
|
|
8758
8753
|
|
|
@@ -8879,7 +8874,7 @@ export type WebhookLog = {
|
|
|
8879
8874
|
/**
|
|
8880
8875
|
* Delivery outcome
|
|
8881
8876
|
*/
|
|
8882
|
-
export type
|
|
8877
|
+
export type status17 = 'success' | 'failed';
|
|
8883
8878
|
|
|
8884
8879
|
/**
|
|
8885
8880
|
* Webhook payload for `account.ads.initial_sync_completed` events.
|
|
@@ -8991,7 +8986,7 @@ export type event = 'account.ads.initial_sync_completed';
|
|
|
8991
8986
|
/**
|
|
8992
8987
|
* Overall outcome of the initial sync.
|
|
8993
8988
|
*/
|
|
8994
|
-
export type
|
|
8989
|
+
export type status18 = 'success' | 'failure';
|
|
8995
8990
|
|
|
8996
8991
|
/**
|
|
8997
8992
|
* Stable category for UX branching. New values may be added; existing ones are
|
|
@@ -10896,7 +10891,7 @@ export type event22 = 'post.platform.published' | 'post.platform.failed' | 'post
|
|
|
10896
10891
|
/**
|
|
10897
10892
|
* Terminal status this event fires on. Matches the event suffix.
|
|
10898
10893
|
*/
|
|
10899
|
-
export type
|
|
10894
|
+
export type status19 = 'published' | 'failed' | 'deleted';
|
|
10900
10895
|
|
|
10901
10896
|
/**
|
|
10902
10897
|
* Webhook payload for reaction received events (WhatsApp, Telegram, Slack, Instagram, Facebook Messenger)
|
|
@@ -11161,7 +11156,7 @@ export type platform15 = 'whatsapp';
|
|
|
11161
11156
|
/**
|
|
11162
11157
|
* Normalized from Meta's `decision` (REJECTED -> DECLINED, DEFERRED -> PENDING_REVIEW; the review is still open on DEFERRED, not a rejection).
|
|
11163
11158
|
*/
|
|
11164
|
-
export type
|
|
11159
|
+
export type status20 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
|
|
11165
11160
|
|
|
11166
11161
|
/**
|
|
11167
11162
|
* Webhook payload for the `whatsapp.template.category_updated` event.
|
|
@@ -11310,7 +11305,7 @@ export type event30 = 'whatsapp.template.status_updated';
|
|
|
11310
11305
|
* request before the template is actually removed.
|
|
11311
11306
|
*
|
|
11312
11307
|
*/
|
|
11313
|
-
export type
|
|
11308
|
+
export type status21 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
|
|
11314
11309
|
|
|
11315
11310
|
export type WhatsAppBodyComponent = {
|
|
11316
11311
|
type: 'body';
|
|
@@ -11464,7 +11459,7 @@ export type WhatsAppSandboxSession = {
|
|
|
11464
11459
|
* list responses.
|
|
11465
11460
|
*
|
|
11466
11461
|
*/
|
|
11467
|
-
export type
|
|
11462
|
+
export type status22 = 'pending' | 'active';
|
|
11468
11463
|
|
|
11469
11464
|
export type WhatsAppTemplateButton = {
|
|
11470
11465
|
type: 'quick_reply' | 'url' | 'phone_number' | 'otp' | 'copy_code' | 'flow' | 'mpm' | 'catalog';
|
|
@@ -11622,7 +11617,7 @@ export type WorkflowExecutionEvent = {
|
|
|
11622
11617
|
|
|
11623
11618
|
export type action2 = 'execution_started' | 'execution_completed' | 'execution_exited' | 'execution_paused' | 'execution_resumed' | 'node_started' | 'node_completed' | 'node_failed' | 'node_skipped';
|
|
11624
11619
|
|
|
11625
|
-
export type
|
|
11620
|
+
export type status23 = 'success' | 'failed' | 'pending';
|
|
11626
11621
|
|
|
11627
11622
|
/**
|
|
11628
11623
|
* A node in a workflow graph. `config` shape depends on `type`.
|
|
@@ -15865,8 +15860,14 @@ export type GetConnectUrlData = {
|
|
|
15865
15860
|
* Your custom redirect URL after connection completes. MUST be an absolute http(s) URL or a custom app scheme for mobile deeplinks (e.g. myapp://callback); a relative path is rejected with 400 INVALID_REDIRECT_URL. Result params are appended with the URL API, so an existing query string is preserved. Standard mode appends connected={platform}&profileId=X&accountId=Y&username=Z. Headless mode appends OAuth data params for platforms requiring selection (e.g. LinkedIn orgs, Facebook pages). If no selection is needed, the account is created directly and the redirect includes accountId.
|
|
15866
15861
|
*
|
|
15867
15862
|
* On failure, the browser is sent to the same redirect_url with `error` and `platform` appended.
|
|
15868
|
-
* `error` and `platform` are always present. `error_message`, `is_user_fixable`, `reason
|
|
15869
|
-
* `dashboard_url` are conditional and must be treated as optional.
|
|
15863
|
+
* `error` and `platform` are always present. `error_message`, `is_user_fixable`, `reason`,
|
|
15864
|
+
* `dashboard_url` and `missing_scopes` are conditional and must be treated as optional.
|
|
15865
|
+
*
|
|
15866
|
+
* `missing_google_permissions` (YouTube and Google Business) means the user unchecked one or more
|
|
15867
|
+
* permissions on Google's consent screen. It always comes with `is_user_fixable=true`. When Google
|
|
15868
|
+
* reported the granted scopes, `missing_scopes` is also present: a comma-separated list of the
|
|
15869
|
+
* requested Google scopes that were not granted. Ask the user to connect again and keep every
|
|
15870
|
+
* permission checked.
|
|
15870
15871
|
*
|
|
15871
15872
|
* This list is NOT exhaustive and new values may be added at any time. Treat an unrecognized
|
|
15872
15873
|
* value as a generic failure rather than matching it exhaustively. Existing values are not
|