@getlatedev/node 0.2.1780 → 0.2.1781
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 +91 -74
- package/dist/index.d.ts +91 -74
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +92 -73
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: "@getlatedev/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.1781",
|
|
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: "@getlatedev/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.1781",
|
|
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
|
@@ -7943,6 +7943,39 @@ export type CampaignSubmissionFlag = {
|
|
|
7943
7943
|
|
|
7944
7944
|
export type code = 'duplicate_media' | 'duplicate_post' | 'view_spike' | 'linked_accounts' | 'cross_operator' | 'unreachable' | 'post_deleted' | 'account_restricted' | 'low_authenticity' | 'x_read_cap' | 'paid_views' | 'organic_unverified';
|
|
7945
7945
|
|
|
7946
|
+
/**
|
|
7947
|
+
* The outcome of the latest chat history request Zernio sent Meta for a WhatsApp coexistence number, read from the account (not a live probe).
|
|
7948
|
+
*/
|
|
7949
|
+
export type CoexistenceHistorySync = {
|
|
7950
|
+
/**
|
|
7951
|
+
* - `requested`: Meta accepted the request and has not sent history yet, which can take a while.
|
|
7952
|
+
* - `imported`: Meta sent chat history to this account, including history a reconnect kept.
|
|
7953
|
+
* - `declined`: the business chose not to share its chat history in Meta's window.
|
|
7954
|
+
* - `already_synced`: Meta refused the request because an earlier connection already used the number's one history share. Disconnecting inside the WhatsApp Business app (Settings > Account > Business Platform), then connecting again gets a new import.
|
|
7955
|
+
* - `refused`: Meta refused it for another reason.
|
|
7956
|
+
*
|
|
7957
|
+
*/
|
|
7958
|
+
status?: 'requested' | 'imported' | 'declined' | 'already_synced' | 'refused';
|
|
7959
|
+
/**
|
|
7960
|
+
* The id of the last history request Meta accepted, kept across reconnects. Quote it in a Meta support case.
|
|
7961
|
+
*/
|
|
7962
|
+
requestId?: (string) | null;
|
|
7963
|
+
/**
|
|
7964
|
+
* When Meta refused the latest request. Null when it was accepted.
|
|
7965
|
+
*/
|
|
7966
|
+
refusedAt?: (string) | null;
|
|
7967
|
+
};
|
|
7968
|
+
|
|
7969
|
+
/**
|
|
7970
|
+
* - `requested`: Meta accepted the request and has not sent history yet, which can take a while.
|
|
7971
|
+
* - `imported`: Meta sent chat history to this account, including history a reconnect kept.
|
|
7972
|
+
* - `declined`: the business chose not to share its chat history in Meta's window.
|
|
7973
|
+
* - `already_synced`: Meta refused the request because an earlier connection already used the number's one history share. Disconnecting inside the WhatsApp Business app (Settings > Account > Business Platform), then connecting again gets a new import.
|
|
7974
|
+
* - `refused`: Meta refused it for another reason.
|
|
7975
|
+
*
|
|
7976
|
+
*/
|
|
7977
|
+
export type status24 = 'requested' | 'imported' | 'declined' | 'already_synced' | 'refused';
|
|
7978
|
+
|
|
7946
7979
|
/**
|
|
7947
7980
|
* The media on a comment or reply, one per comment (the first item when the platform returns several).
|
|
7948
7981
|
* `type` is the platform's own media kind:
|
|
@@ -8292,7 +8325,7 @@ export type source = 'comment' | 'live_comment' | 'story_reply' | 'story_mention
|
|
|
8292
8325
|
* - 'gated': the follow-gate confirmation DM went out and we are waiting for the tap. It flips to 'sent' or 'skipped' when they tap.
|
|
8293
8326
|
* - 'skipped': also covers repeatPolicy, cooldown and dedupeSameTextHours suppressions, with the reason in error.
|
|
8294
8327
|
*/
|
|
8295
|
-
export type
|
|
8328
|
+
export type status25 = 'pending' | 'sent' | 'failed' | 'skipped' | 'gated';
|
|
8296
8329
|
|
|
8297
8330
|
/**
|
|
8298
8331
|
* How the audience rule resolved. Null on automations without one.
|
|
@@ -8601,7 +8634,7 @@ export type method3 = 'code' | 'automatic';
|
|
|
8601
8634
|
|
|
8602
8635
|
export type type14 = 'percentage' | 'fixed_amount' | 'free_shipping' | 'buy_x_get_y' | 'app';
|
|
8603
8636
|
|
|
8604
|
-
export type
|
|
8637
|
+
export type status26 = 'active' | 'scheduled' | 'expired';
|
|
8605
8638
|
|
|
8606
8639
|
export type CommerceDraftOrder = {
|
|
8607
8640
|
id?: string;
|
|
@@ -8651,7 +8684,7 @@ export type CommerceDraftOrder = {
|
|
|
8651
8684
|
completedAt?: (string) | null;
|
|
8652
8685
|
};
|
|
8653
8686
|
|
|
8654
|
-
export type
|
|
8687
|
+
export type status27 = 'open' | 'invoice_sent' | 'completed';
|
|
8655
8688
|
|
|
8656
8689
|
export type CommerceImage = {
|
|
8657
8690
|
/**
|
|
@@ -8706,7 +8739,7 @@ export type CommerceMarket = {
|
|
|
8706
8739
|
type?: string;
|
|
8707
8740
|
};
|
|
8708
8741
|
|
|
8709
|
-
export type
|
|
8742
|
+
export type status28 = 'active' | 'draft';
|
|
8710
8743
|
|
|
8711
8744
|
export type CommerceMenu = {
|
|
8712
8745
|
id?: string;
|
|
@@ -9350,7 +9383,7 @@ export type ConnectHandoff = {
|
|
|
9350
9383
|
} | null;
|
|
9351
9384
|
};
|
|
9352
9385
|
|
|
9353
|
-
export type
|
|
9386
|
+
export type status29 = 'waiting' | 'opened' | 'connected' | 'failed' | 'expired';
|
|
9354
9387
|
|
|
9355
9388
|
/**
|
|
9356
9389
|
* Only with `handoff=true`: the link to show as a QR code.
|
|
@@ -9919,7 +9952,7 @@ export type visibility3 = 'full' | 'limited' | 'none';
|
|
|
9919
9952
|
*/
|
|
9920
9953
|
export type scanMode = 'static' | 'rendered';
|
|
9921
9954
|
|
|
9922
|
-
export type
|
|
9955
|
+
export type status30 = 'detected' | 'likely' | 'not-visible';
|
|
9923
9956
|
|
|
9924
9957
|
export type googleConsentMode = 'v2' | 'v1' | 'not-seen';
|
|
9925
9958
|
|
|
@@ -9963,7 +9996,7 @@ export type ConversionDestination = {
|
|
|
9963
9996
|
* For LinkedIn, `inactive` means the rule is soft-deleted (`enabled: false`).
|
|
9964
9997
|
*
|
|
9965
9998
|
*/
|
|
9966
|
-
export type
|
|
9999
|
+
export type status31 = 'active' | 'inactive';
|
|
9967
10000
|
|
|
9968
10001
|
/**
|
|
9969
10002
|
* A single conversion event to relay to the ad platform. All PII fields
|
|
@@ -10720,7 +10753,7 @@ export type CreatorCampaign = {
|
|
|
10720
10753
|
/**
|
|
10721
10754
|
* draft until activated; active accepts submissions and accrues; paused stops new submissions; closed is final.
|
|
10722
10755
|
*/
|
|
10723
|
-
export type
|
|
10756
|
+
export type status32 = 'draft' | 'active' | 'paused' | 'closed';
|
|
10724
10757
|
|
|
10725
10758
|
/**
|
|
10726
10759
|
* Same as economics.type.
|
|
@@ -11296,7 +11329,7 @@ export type CreatorPortalPayoutSetup = {
|
|
|
11296
11329
|
*/
|
|
11297
11330
|
export type mode5 = 'none' | 'external' | 'treasury';
|
|
11298
11331
|
|
|
11299
|
-
export type
|
|
11332
|
+
export type status33 = 'not_started' | 'pending' | 'enabled' | 'not_applicable';
|
|
11300
11333
|
|
|
11301
11334
|
export type CreatorPortalReferral = {
|
|
11302
11335
|
/**
|
|
@@ -12250,7 +12283,7 @@ export type objective = 'OUTCOME_ENGAGEMENT' | 'OUTCOME_SALES' | 'OUTCOME_LEADS'
|
|
|
12250
12283
|
* `adSetId`, the new ads themselves.
|
|
12251
12284
|
*
|
|
12252
12285
|
*/
|
|
12253
|
-
export type
|
|
12286
|
+
export type status34 = 'ACTIVE' | 'PAUSED';
|
|
12254
12287
|
|
|
12255
12288
|
/**
|
|
12256
12289
|
* Campaign-level status, same semantics as `POST /v1/ads/create`. Defaults to `status`.
|
|
@@ -12664,7 +12697,7 @@ export type privacy_level = 2;
|
|
|
12664
12697
|
/**
|
|
12665
12698
|
* 1=SCHEDULED, 2=ACTIVE, 3=COMPLETED, 4=CANCELED
|
|
12666
12699
|
*/
|
|
12667
|
-
export type
|
|
12700
|
+
export type status35 = 1 | 2 | 3 | 4;
|
|
12668
12701
|
|
|
12669
12702
|
/**
|
|
12670
12703
|
* 1=STAGE_INSTANCE, 2=VOICE, 3=EXTERNAL
|
|
@@ -12838,7 +12871,7 @@ export type EmailClean = {
|
|
|
12838
12871
|
} | null;
|
|
12839
12872
|
};
|
|
12840
12873
|
|
|
12841
|
-
export type
|
|
12874
|
+
export type status36 = 'stripped' | 'unchanged' | 'fallback';
|
|
12842
12875
|
|
|
12843
12876
|
/**
|
|
12844
12877
|
* A draft in the mailbox. Carries the message fields; `id` is the draft id the drafts endpoints take. Store `id`, not `messageId`.
|
|
@@ -13465,7 +13498,7 @@ export type EventCorrection = {
|
|
|
13465
13498
|
/**
|
|
13466
13499
|
* `corrected`: the platform changed its count. `not_supported`: the platform has no API to change a conversion it already counted. `failed`: see `error`.
|
|
13467
13500
|
*/
|
|
13468
|
-
export type
|
|
13501
|
+
export type status37 = 'corrected' | 'not_supported' | 'failed';
|
|
13469
13502
|
|
|
13470
13503
|
export type EventDestination = {
|
|
13471
13504
|
/**
|
|
@@ -13992,7 +14025,7 @@ export type FeedbackReceipt = {
|
|
|
13992
14025
|
duplicate?: boolean;
|
|
13993
14026
|
};
|
|
13994
14027
|
|
|
13995
|
-
export type
|
|
14028
|
+
export type status38 = 'received';
|
|
13996
14029
|
|
|
13997
14030
|
/**
|
|
13998
14031
|
* A file or folder in a connected Google Drive or OneDrive. Ids are the provider's own.
|
|
@@ -14357,7 +14390,7 @@ export type GohighlevelAudienceSync = {
|
|
|
14357
14390
|
}>;
|
|
14358
14391
|
};
|
|
14359
14392
|
|
|
14360
|
-
export type
|
|
14393
|
+
export type status39 = 'syncing' | 'ready' | 'error';
|
|
14361
14394
|
|
|
14362
14395
|
export type GohighlevelAudienceSyncOverview = {
|
|
14363
14396
|
/**
|
|
@@ -14493,7 +14526,7 @@ export type GoogleAdLabel = {
|
|
|
14493
14526
|
description?: (string) | null;
|
|
14494
14527
|
};
|
|
14495
14528
|
|
|
14496
|
-
export type
|
|
14529
|
+
export type status40 = 'ENABLED' | 'REMOVED' | 'UNKNOWN';
|
|
14497
14530
|
|
|
14498
14531
|
/**
|
|
14499
14532
|
* At least one id across the four target lists. Up to 1000 ids per list.
|
|
@@ -14596,7 +14629,7 @@ export type GoogleAdsManagerLink = {
|
|
|
14596
14629
|
/**
|
|
14597
14630
|
* Status the link has after this call.
|
|
14598
14631
|
*/
|
|
14599
|
-
export type
|
|
14632
|
+
export type status41 = 'PENDING' | 'ACTIVE' | 'REFUSED' | 'CANCELED' | 'INACTIVE';
|
|
14600
14633
|
|
|
14601
14634
|
export type GoogleAdsPlatformQueryBody = {
|
|
14602
14635
|
/**
|
|
@@ -14630,7 +14663,7 @@ export type GoogleAdsUserAccessInvitation = {
|
|
|
14630
14663
|
|
|
14631
14664
|
export type accessRole = 'ADMIN' | 'STANDARD' | 'READ_ONLY' | 'EMAIL_ONLY' | 'UNKNOWN';
|
|
14632
14665
|
|
|
14633
|
-
export type
|
|
14666
|
+
export type status42 = 'PENDING' | 'DECLINED' | 'EXPIRED' | 'UNKNOWN';
|
|
14634
14667
|
|
|
14635
14668
|
export type GoogleAdsUserAccessInvitationResult = {
|
|
14636
14669
|
customerId?: string;
|
|
@@ -14654,7 +14687,7 @@ export type GoogleAdsUserAccessInvitationResult = {
|
|
|
14654
14687
|
/**
|
|
14655
14688
|
* PENDING once the email is sent; PENDING_APPROVAL while Google waits for a second admin's multi-party approval.
|
|
14656
14689
|
*/
|
|
14657
|
-
export type
|
|
14690
|
+
export type status43 = 'PENDING' | 'PENDING_APPROVAL';
|
|
14658
14691
|
|
|
14659
14692
|
export type GoogleAdsUserInvitationApproval = {
|
|
14660
14693
|
/**
|
|
@@ -15653,7 +15686,7 @@ export type GoogleRecommendationResult = {
|
|
|
15653
15686
|
error?: string;
|
|
15654
15687
|
};
|
|
15655
15688
|
|
|
15656
|
-
export type
|
|
15689
|
+
export type status44 = 'applied' | 'dismissed' | 'failed';
|
|
15657
15690
|
|
|
15658
15691
|
export type GoogleRsaDescription = {
|
|
15659
15692
|
text: string;
|
|
@@ -16019,7 +16052,7 @@ export type ImessageSandboxContact = {
|
|
|
16019
16052
|
createdAt?: string;
|
|
16020
16053
|
};
|
|
16021
16054
|
|
|
16022
|
-
export type
|
|
16055
|
+
export type status45 = 'pending' | 'active';
|
|
16023
16056
|
|
|
16024
16057
|
/**
|
|
16025
16058
|
* An iMessage sender registered as an account on a profile.
|
|
@@ -16094,7 +16127,7 @@ export type region = 'US' | 'GB';
|
|
|
16094
16127
|
/**
|
|
16095
16128
|
* `awaiting_payment`: the first-month charge is still being confirmed by the card; the number is ordered automatically once it is paid (usually under 5 minutes), or the order fails with `failureReason` when the card declines or nothing confirms within 30 minutes.
|
|
16096
16129
|
*/
|
|
16097
|
-
export type
|
|
16130
|
+
export type status46 = 'ordering' | 'awaiting_payment' | 'activating' | 'active' | 'suspended' | 'canceled' | 'failed';
|
|
16098
16131
|
|
|
16099
16132
|
/**
|
|
16100
16133
|
* When inbound messages and comments were first and last seen for the account. Only events matched to this account count. WhatsApp delivery statuses for outbound messages do not count, so the stamps of a number that only sends stay null. The stamps reset on every connect.
|
|
@@ -16393,7 +16426,7 @@ export type InboxWebhookConversation = {
|
|
|
16393
16426
|
contactId?: string;
|
|
16394
16427
|
};
|
|
16395
16428
|
|
|
16396
|
-
export type
|
|
16429
|
+
export type status47 = 'active' | 'archived';
|
|
16397
16430
|
|
|
16398
16431
|
/**
|
|
16399
16432
|
* The conversation object included in conversation lifecycle webhook payloads (conversation.started, conversation.control_changed).
|
|
@@ -18991,7 +19024,7 @@ export type OAuthApp = {
|
|
|
18991
19024
|
/**
|
|
18992
19025
|
* `ok`: the platform accepted the keys at the last check. `unchecked`: the check could not reach a verdict (see lastError). `invalid`: the platform rejected the keys; connects and token refreshes through this app will fail until the secret is rotated.
|
|
18993
19026
|
*/
|
|
18994
|
-
export type
|
|
19027
|
+
export type status48 = 'ok' | 'unchecked' | 'invalid';
|
|
18995
19028
|
|
|
18996
19029
|
export type OAuthAppSetup = {
|
|
18997
19030
|
platform: string;
|
|
@@ -19067,7 +19100,7 @@ export type OrgConnection = {
|
|
|
19067
19100
|
};
|
|
19068
19101
|
};
|
|
19069
19102
|
|
|
19070
|
-
export type
|
|
19103
|
+
export type status49 = 'pending' | 'active' | 'revoked';
|
|
19071
19104
|
|
|
19072
19105
|
export type type28 = 'google_domain_wide_delegation' | 'microsoft_admin_consent';
|
|
19073
19106
|
|
|
@@ -19258,7 +19291,7 @@ export type OwnedPhoneNumber = {
|
|
|
19258
19291
|
}>;
|
|
19259
19292
|
};
|
|
19260
19293
|
|
|
19261
|
-
export type
|
|
19294
|
+
export type status50 = 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'verifying' | 'active' | 'suspended' | 'releasing' | 'released';
|
|
19262
19295
|
|
|
19263
19296
|
export type metaVerificationStatus = 'pending' | 'code_requested' | 'verified' | 'expired';
|
|
19264
19297
|
|
|
@@ -19431,7 +19464,7 @@ export type PayoutBatch = {
|
|
|
19431
19464
|
/**
|
|
19432
19465
|
* `awaiting_payment` until the card charge succeeds (3D Secure included); `paying` during the 7-day card hold and while transfers go out; then `paid`, `partially_failed` (some items failed or were skipped), `failed` (the card was declined, or none paid) or `expired` (the payment was cancelled unpaid, every amount is payable again).
|
|
19433
19466
|
*/
|
|
19434
|
-
export type
|
|
19467
|
+
export type status51 = 'awaiting_payment' | 'paying' | 'paid' | 'partially_failed' | 'failed' | 'expired';
|
|
19435
19468
|
|
|
19436
19469
|
export type method4 = 'card';
|
|
19437
19470
|
|
|
@@ -19474,7 +19507,7 @@ export type PayoutBatchItem = {
|
|
|
19474
19507
|
/**
|
|
19475
19508
|
* `skipped`: payout setup not finished, or the card payment never completed. `failed`: Stripe refused the transfer. `refunded`: failed or skipped after the card hold; its payout, fee and VAT on the fee went back to the card through a credit note. The amount is payable again in every case.
|
|
19476
19509
|
*/
|
|
19477
|
-
export type
|
|
19510
|
+
export type status52 = 'pending' | 'paid' | 'failed' | 'skipped' | 'refunded';
|
|
19478
19511
|
|
|
19479
19512
|
export type PhoneNumberStockWatch = {
|
|
19480
19513
|
id: string;
|
|
@@ -19592,7 +19625,7 @@ export type PlatformAnalytics = {
|
|
|
19592
19625
|
isOwner?: (boolean) | null;
|
|
19593
19626
|
};
|
|
19594
19627
|
|
|
19595
|
-
export type
|
|
19628
|
+
export type status53 = 'published' | 'failed';
|
|
19596
19629
|
|
|
19597
19630
|
/**
|
|
19598
19631
|
* Sync state of analytics for this platform
|
|
@@ -19890,7 +19923,7 @@ export type Post = {
|
|
|
19890
19923
|
/**
|
|
19891
19924
|
* `cancelled` is set by POST /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. `pending_approval` (set by `requiresApproval: true`) never publishes until POST /v1/posts/{postId}/review approves it.
|
|
19892
19925
|
*/
|
|
19893
|
-
export type
|
|
19926
|
+
export type status54 = 'draft' | 'pending_approval' | 'scheduled' | 'publishing' | 'published' | 'partial' | 'failed' | 'cancelled';
|
|
19894
19927
|
|
|
19895
19928
|
export type visibility5 = 'public' | 'private' | 'unlisted';
|
|
19896
19929
|
|
|
@@ -20580,7 +20613,7 @@ export type Product = {
|
|
|
20580
20613
|
publishedAt?: (string) | null;
|
|
20581
20614
|
};
|
|
20582
20615
|
|
|
20583
|
-
export type
|
|
20616
|
+
export type status55 = 'active' | 'draft' | 'archived';
|
|
20584
20617
|
|
|
20585
20618
|
export type ProductImage = {
|
|
20586
20619
|
url?: string;
|
|
@@ -20880,7 +20913,7 @@ export type RcsAgent = {
|
|
|
20880
20913
|
createdAt?: string;
|
|
20881
20914
|
};
|
|
20882
20915
|
|
|
20883
|
-
export type
|
|
20916
|
+
export type status56 = 'requested' | 'changes_requested' | 'brand_vetting' | 'agent_review' | 'testing' | 'launch_review' | 'launching' | 'live' | 'rejected' | 'deactivated';
|
|
20884
20917
|
|
|
20885
20918
|
export type useCase = 'MULTI_USE' | 'PROMOTIONAL' | 'TRANSACTIONAL' | 'OTP';
|
|
20886
20919
|
|
|
@@ -20932,7 +20965,7 @@ export type RcsBrand = RcsBrandInput & {
|
|
|
20932
20965
|
/**
|
|
20933
20966
|
* draft = not filed yet (still editable).
|
|
20934
20967
|
*/
|
|
20935
|
-
export type
|
|
20968
|
+
export type status57 = 'draft' | 'vetting' | 'verified' | 'rejected';
|
|
20936
20969
|
|
|
20937
20970
|
export type RcsBrandInput = {
|
|
20938
20971
|
displayName: string;
|
|
@@ -21019,7 +21052,7 @@ export type RcsCarrierApproval = {
|
|
|
21019
21052
|
|
|
21020
21053
|
export type scope3 = 'carrier' | 'hub' | 'bot';
|
|
21021
21054
|
|
|
21022
|
-
export type
|
|
21055
|
+
export type status58 = 'PENDING' | 'SUBMITTED' | 'APPROVED' | 'REJECTED';
|
|
21023
21056
|
|
|
21024
21057
|
/**
|
|
21025
21058
|
* Message content. `suggestions` (max 11) render as chips under the message.
|
|
@@ -21702,7 +21735,7 @@ export type ScheduledEmail = {
|
|
|
21702
21735
|
createdAt?: string;
|
|
21703
21736
|
};
|
|
21704
21737
|
|
|
21705
|
-
export type
|
|
21738
|
+
export type status59 = 'scheduled' | 'sending' | 'sent' | 'failed' | 'cancelled';
|
|
21706
21739
|
|
|
21707
21740
|
export type SendEmailRequest = {
|
|
21708
21741
|
accountId: string;
|
|
@@ -22322,7 +22355,7 @@ export type SupportRun = {
|
|
|
22322
22355
|
/**
|
|
22323
22356
|
* queued and running are in progress. needs_human means the assistant handed the question to a person instead of answering; when `supportTicket` is set, a Zernio teammate has been notified and will follow up by email.
|
|
22324
22357
|
*/
|
|
22325
|
-
export type
|
|
22358
|
+
export type status60 = 'queued' | 'running' | 'completed' | 'needs_human' | 'failed';
|
|
22326
22359
|
|
|
22327
22360
|
/**
|
|
22328
22361
|
* Why the run stopped. Null while it is in progress.
|
|
@@ -23290,7 +23323,7 @@ export type TrackingSite = {
|
|
|
23290
23323
|
updatedAt?: string;
|
|
23291
23324
|
};
|
|
23292
23325
|
|
|
23293
|
-
export type
|
|
23326
|
+
export type status61 = 'active' | 'paused' | 'removing';
|
|
23294
23327
|
|
|
23295
23328
|
/**
|
|
23296
23329
|
* How the tag is installed. `snippet` means you paste it.
|
|
@@ -23609,7 +23642,7 @@ export type TrackingWindow = {
|
|
|
23609
23642
|
} | null;
|
|
23610
23643
|
};
|
|
23611
23644
|
|
|
23612
|
-
export type
|
|
23645
|
+
export type status62 = 'open' | 'completing' | 'completed' | 'cancelled';
|
|
23613
23646
|
|
|
23614
23647
|
/**
|
|
23615
23648
|
* How the window closed. Null while it is open.
|
|
@@ -23703,7 +23736,7 @@ export type purpose = 'balance' | 'payout_batch';
|
|
|
23703
23736
|
/**
|
|
23704
23737
|
* `pending` until the card is charged (or 3D Secure is finished) and credited. `expired` means it ended unpaid: cancelled, or 3D Secure left unfinished for 30 minutes. Only `pending` counts toward pendingTopupCents.
|
|
23705
23738
|
*/
|
|
23706
|
-
export type
|
|
23739
|
+
export type status63 = 'pending' | 'succeeded' | 'failed' | 'expired';
|
|
23707
23740
|
|
|
23708
23741
|
export type TreasuryTransfer = {
|
|
23709
23742
|
id?: string;
|
|
@@ -23744,7 +23777,7 @@ export type TreasuryTransfer = {
|
|
|
23744
23777
|
|
|
23745
23778
|
export type destinationType = 'creator' | 'ad_account';
|
|
23746
23779
|
|
|
23747
|
-
export type
|
|
23780
|
+
export type status64 = 'pending' | 'paid' | 'failed' | 'reversed';
|
|
23748
23781
|
|
|
23749
23782
|
/**
|
|
23750
23783
|
* X-specific post options. The article field creates a long-form X Article and is mutually exclusive with tweet media and tweet-only options. Geo-restriction applies at the media level: media is hidden outside the specified countries while tweet text remains visible.
|
|
@@ -23935,7 +23968,7 @@ export type UploadTokenResponse = {
|
|
|
23935
23968
|
status?: 'pending' | 'completed' | 'expired';
|
|
23936
23969
|
};
|
|
23937
23970
|
|
|
23938
|
-
export type
|
|
23971
|
+
export type status65 = 'pending' | 'completed' | 'expired';
|
|
23939
23972
|
|
|
23940
23973
|
export type UploadTokenStatusResponse = {
|
|
23941
23974
|
token?: string;
|
|
@@ -24481,7 +24514,7 @@ export type Verification = {
|
|
|
24481
24514
|
resend?: boolean;
|
|
24482
24515
|
};
|
|
24483
24516
|
|
|
24484
|
-
export type
|
|
24517
|
+
export type status66 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
|
|
24485
24518
|
|
|
24486
24519
|
export type channel6 = 'sms' | 'whatsapp';
|
|
24487
24520
|
|
|
@@ -24740,7 +24773,7 @@ export type WebhookLog = {
|
|
|
24740
24773
|
/**
|
|
24741
24774
|
* Delivery outcome
|
|
24742
24775
|
*/
|
|
24743
|
-
export type
|
|
24776
|
+
export type status67 = 'success' | 'failed';
|
|
24744
24777
|
|
|
24745
24778
|
/**
|
|
24746
24779
|
* Webhook payload for `account.ads.initial_sync_completed` events.
|
|
@@ -24854,7 +24887,7 @@ export type event = 'account.ads.initial_sync_completed';
|
|
|
24854
24887
|
/**
|
|
24855
24888
|
* Overall outcome of the initial sync.
|
|
24856
24889
|
*/
|
|
24857
|
-
export type
|
|
24890
|
+
export type status68 = 'success' | 'failure';
|
|
24858
24891
|
|
|
24859
24892
|
/**
|
|
24860
24893
|
* Stable category for UX branching. New values may be added; existing ones are stable.
|
|
@@ -25537,7 +25570,7 @@ export type WebhookPayloadAdReview = {
|
|
|
25537
25570
|
|
|
25538
25571
|
export type event14 = 'ad.review.approved' | 'ad.review.rejected';
|
|
25539
25572
|
|
|
25540
|
-
export type
|
|
25573
|
+
export type status69 = 'approved' | 'rejected';
|
|
25541
25574
|
|
|
25542
25575
|
/**
|
|
25543
25576
|
* Webhook payload for the `ad_rule.triggered` event.
|
|
@@ -26108,7 +26141,7 @@ export type event20 = 'ad.video.processed';
|
|
|
26108
26141
|
/**
|
|
26109
26142
|
* `ready`: usable as `video.id` on the create endpoints. `error`: Meta could not process it; upload again.
|
|
26110
26143
|
*/
|
|
26111
|
-
export type
|
|
26144
|
+
export type status70 = 'ready' | 'error';
|
|
26112
26145
|
|
|
26113
26146
|
/**
|
|
26114
26147
|
* Webhook payload for `analytics.synced`. Fired once per connected account each time its analytics sync cycle completes successfully. Poll-driven (roughly hourly per account), not real-time, and never fired for a skipped or failed cycle.
|
|
@@ -26249,7 +26282,7 @@ export type WebhookPayloadAutomationAction = {
|
|
|
26249
26282
|
|
|
26250
26283
|
export type event23 = 'automation.action.applied' | 'automation.action.failed' | 'automation.action.unknown';
|
|
26251
26284
|
|
|
26252
|
-
export type
|
|
26285
|
+
export type status71 = 'applied' | 'skipped' | 'failed' | 'unknown';
|
|
26253
26286
|
|
|
26254
26287
|
/**
|
|
26255
26288
|
* Webhook payload for `automation.alert.opened`, `automation.alert.escalated` and `automation.alert.resolved`: an alert episode of an automation with a lifecycle (an ad rule's `lifecycle`).
|
|
@@ -30094,7 +30127,7 @@ export type event79 = 'post.platform.published' | 'post.platform.failed' | 'post
|
|
|
30094
30127
|
/**
|
|
30095
30128
|
* Terminal status this event fires on. Matches the event suffix.
|
|
30096
30129
|
*/
|
|
30097
|
-
export type
|
|
30130
|
+
export type status72 = 'published' | 'failed' | 'deleted';
|
|
30098
30131
|
|
|
30099
30132
|
/**
|
|
30100
30133
|
* Webhook payload for `post.tracking_completed`. Fired once when a post's tracking window ends and its final analytics read has run.
|
|
@@ -30684,7 +30717,7 @@ export type event92 = 'whatsapp.account.name_status_updated';
|
|
|
30684
30717
|
/**
|
|
30685
30718
|
* Normalized from Meta's `decision` (REJECTED -> DECLINED, DEFERRED -> PENDING_REVIEW; the review is still open on DEFERRED, not a rejection).
|
|
30686
30719
|
*/
|
|
30687
|
-
export type
|
|
30720
|
+
export type status73 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
|
|
30688
30721
|
|
|
30689
30722
|
/**
|
|
30690
30723
|
* Webhook payload for `whatsapp.account.quality_updated`. Fired when a connected
|
|
@@ -30818,7 +30851,7 @@ export type event94 = 'whatsapp.account.status_updated';
|
|
|
30818
30851
|
/**
|
|
30819
30852
|
* `active` only on a reinstatement (DISABLED_UPDATE with ban state REINSTATE).
|
|
30820
30853
|
*/
|
|
30821
|
-
export type
|
|
30854
|
+
export type status74 = 'restricted' | 'active';
|
|
30822
30855
|
|
|
30823
30856
|
/**
|
|
30824
30857
|
* Webhook payload for the `whatsapp.contact.identity_changed` event. Fired when
|
|
@@ -31034,7 +31067,7 @@ export type event97 = 'whatsapp.template.status_updated';
|
|
|
31034
31067
|
* request before the template is actually removed.
|
|
31035
31068
|
*
|
|
31036
31069
|
*/
|
|
31037
|
-
export type
|
|
31070
|
+
export type status75 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
|
|
31038
31071
|
|
|
31039
31072
|
export type WebhookPayloadWorkflowRun = {
|
|
31040
31073
|
/**
|
|
@@ -31098,7 +31131,7 @@ export type event98 = 'workflow.run.started' | 'workflow.run.completed' | 'workf
|
|
|
31098
31131
|
/**
|
|
31099
31132
|
* running on workflow.run.started; completed or exited (ended on purpose before the last node, e.g. a handoff) on workflow.run.completed; failed on workflow.run.failed.
|
|
31100
31133
|
*/
|
|
31101
|
-
export type
|
|
31134
|
+
export type status76 = 'running' | 'waiting' | 'completed' | 'exited' | 'failed';
|
|
31102
31135
|
|
|
31103
31136
|
/**
|
|
31104
31137
|
* The profiles this event belongs to, each with the externalId you set on it (null when none is set). Use it to route the event to your tenant without storing Zernio profile ids.
|
|
@@ -31501,7 +31534,7 @@ export type WorkflowExecutionEvent = {
|
|
|
31501
31534
|
|
|
31502
31535
|
export type action3 = 'execution_started' | 'execution_completed' | 'execution_exited' | 'execution_paused' | 'execution_resumed' | 'node_started' | 'node_completed' | 'node_failed' | 'node_skipped';
|
|
31503
31536
|
|
|
31504
|
-
export type
|
|
31537
|
+
export type status77 = 'success' | 'failed' | 'pending';
|
|
31505
31538
|
|
|
31506
31539
|
/**
|
|
31507
31540
|
* A node in a workflow graph. `config` shape depends on `type`.
|
|
@@ -38943,6 +38976,10 @@ export type GetAllAccountsHealthResponse = ({
|
|
|
38943
38976
|
* Present on WhatsApp, Instagram and Facebook accounts. An active WhatsApp number with no inbound message or comment 24 hours after its latest connect gets an entry in issues, which never changes status. Null for accounts connected before tracking shipped, until their first inbound event or next connect.
|
|
38944
38977
|
*/
|
|
38945
38978
|
inboundActivity?: (InboundActivity | null);
|
|
38979
|
+
/**
|
|
38980
|
+
* WhatsApp accounts only. On `already_synced` an entry with the steps for a new import is added to `issues`, which never changes status. Null when no request ran for the current connection, and on numbers that are not in coexistence.
|
|
38981
|
+
*/
|
|
38982
|
+
coexistenceHistorySync?: (CoexistenceHistorySync | null);
|
|
38946
38983
|
/**
|
|
38947
38984
|
* Set when the last 3 finished publishes failed with the same account-level error (suspended, restricted, a verification check, an expired login). The next successful publish or a reconnect clears it. While set, status is at least `warning`. Null when the account publishes normally.
|
|
38948
38985
|
*/
|
|
@@ -39257,27 +39294,9 @@ export type GetAccountHealthResponse = ({
|
|
|
39257
39294
|
pausedUntil?: (string) | null;
|
|
39258
39295
|
} | null;
|
|
39259
39296
|
/**
|
|
39260
|
-
* WhatsApp accounts only.
|
|
39297
|
+
* WhatsApp accounts only. Null when no request ran for the current connection, and on numbers that are not in coexistence.
|
|
39261
39298
|
*/
|
|
39262
|
-
coexistenceHistorySync?:
|
|
39263
|
-
/**
|
|
39264
|
-
* - `requested`: Meta accepted the request and has not sent history yet, which can take a while.
|
|
39265
|
-
* - `imported`: Meta sent chat history to this account, including history a reconnect kept.
|
|
39266
|
-
* - `declined`: the business chose not to share its chat history in Meta's window.
|
|
39267
|
-
* - `already_synced`: Meta refused the request because an earlier connection already used the number's one history share. The description above says how to get a new import.
|
|
39268
|
-
* - `refused`: Meta refused it for another reason.
|
|
39269
|
-
*
|
|
39270
|
-
*/
|
|
39271
|
-
status?: 'requested' | 'imported' | 'declined' | 'already_synced' | 'refused';
|
|
39272
|
-
/**
|
|
39273
|
-
* The id of the last history request Meta accepted, kept across reconnects. Quote it in a Meta support case.
|
|
39274
|
-
*/
|
|
39275
|
-
requestId?: (string) | null;
|
|
39276
|
-
/**
|
|
39277
|
-
* When Meta refused the latest request. Null when it was accepted.
|
|
39278
|
-
*/
|
|
39279
|
-
refusedAt?: (string) | null;
|
|
39280
|
-
} | null;
|
|
39299
|
+
coexistenceHistorySync?: (CoexistenceHistorySync | null);
|
|
39281
39300
|
/**
|
|
39282
39301
|
* WhatsApp accounts only. Live probe of the Meta link behind the channel, performed at request time (the same read as GET /v1/whatsapp/number-info).
|
|
39283
39302
|
*/
|