@getlatedev/node 0.2.1363 → 0.2.1365
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 +1 -0
- package/dist/index.d.mts +155 -76
- package/dist/index.d.ts +155 -76
- package/dist/index.js +8 -1
- package/dist/index.mjs +8 -1
- package/package.json +1 -1
- package/src/client.ts +2 -0
- package/src/generated/sdk.gen.ts +16 -1
- package/src/generated/types.gen.ts +160 -76
|
@@ -1598,6 +1598,49 @@ export type direction = 'increase' | 'decrease';
|
|
|
1598
1598
|
*/
|
|
1599
1599
|
export type AdRuleActions = Array<AdRuleAction>;
|
|
1600
1600
|
|
|
1601
|
+
export type AdRuleActivityEntry = {
|
|
1602
|
+
/**
|
|
1603
|
+
* Stable ID of this entry.
|
|
1604
|
+
*/
|
|
1605
|
+
id: string;
|
|
1606
|
+
ranAt: string;
|
|
1607
|
+
ruleId: string;
|
|
1608
|
+
/**
|
|
1609
|
+
* The rule's name when it acted.
|
|
1610
|
+
*/
|
|
1611
|
+
ruleName: string;
|
|
1612
|
+
platform: string;
|
|
1613
|
+
/**
|
|
1614
|
+
* The ads connection the rule runs on.
|
|
1615
|
+
*/
|
|
1616
|
+
accountId: string;
|
|
1617
|
+
adAccountId: string;
|
|
1618
|
+
level: 'campaign' | 'adset';
|
|
1619
|
+
/**
|
|
1620
|
+
* Platform ID of the campaign or ad set.
|
|
1621
|
+
*/
|
|
1622
|
+
objectId: string;
|
|
1623
|
+
/**
|
|
1624
|
+
* Its name when the rule acted.
|
|
1625
|
+
*/
|
|
1626
|
+
objectName: (string) | null;
|
|
1627
|
+
type: 'pause' | 'activate' | 'adjust_budget';
|
|
1628
|
+
status: 'done' | 'skipped' | 'failed';
|
|
1629
|
+
/**
|
|
1630
|
+
* Why it was skipped or failed, for example `already_paused`.
|
|
1631
|
+
*/
|
|
1632
|
+
reason: (string) | null;
|
|
1633
|
+
previousDailyBudget: (number) | null;
|
|
1634
|
+
newDailyBudget: (number) | null;
|
|
1635
|
+
currency: (string) | null;
|
|
1636
|
+
};
|
|
1637
|
+
|
|
1638
|
+
export type level = 'campaign' | 'adset';
|
|
1639
|
+
|
|
1640
|
+
export type type3 = 'pause' | 'activate' | 'adjust_budget';
|
|
1641
|
+
|
|
1642
|
+
export type status3 = 'done' | 'skipped' | 'failed';
|
|
1643
|
+
|
|
1601
1644
|
export type AdRuleCondition = {
|
|
1602
1645
|
/**
|
|
1603
1646
|
* `ctr` is a percentage. `spend`, `cpc`, `cpm` and `cpa` are in the ad account currency.
|
|
@@ -1693,6 +1736,17 @@ export type AdRuleRun = {
|
|
|
1693
1736
|
* The matched objects with their condition values, and what each action did.
|
|
1694
1737
|
*/
|
|
1695
1738
|
evaluation: {
|
|
1739
|
+
/**
|
|
1740
|
+
* The rule as it was when this run happened, so its actions stay readable after the rule is renamed or deleted. Absent on runs recorded before October 2026.
|
|
1741
|
+
*/
|
|
1742
|
+
rule?: {
|
|
1743
|
+
name?: string;
|
|
1744
|
+
profileId?: string;
|
|
1745
|
+
accountId?: string;
|
|
1746
|
+
platform?: string;
|
|
1747
|
+
platformAdAccountId?: string;
|
|
1748
|
+
level?: 'campaign' | 'adset';
|
|
1749
|
+
};
|
|
1696
1750
|
today?: string;
|
|
1697
1751
|
timezone?: string;
|
|
1698
1752
|
timezoneAssumed?: boolean;
|
|
@@ -1728,7 +1782,7 @@ export type AdRuleRun = {
|
|
|
1728
1782
|
*/
|
|
1729
1783
|
export type outcome = 'triggered' | 'cooldown' | 'no_match' | 'failed';
|
|
1730
1784
|
|
|
1731
|
-
export type
|
|
1785
|
+
export type status4 = 'done' | 'failed';
|
|
1732
1786
|
|
|
1733
1787
|
export type AdRuleSchedule = {
|
|
1734
1788
|
/**
|
|
@@ -1784,7 +1838,7 @@ export type kind = 'ad_rejected' | 'delivery_issue' | 'payment' | 'budget_limite
|
|
|
1784
1838
|
|
|
1785
1839
|
export type severity = 'error' | 'warning' | 'info';
|
|
1786
1840
|
|
|
1787
|
-
export type
|
|
1841
|
+
export type level2 = 'ad_account' | 'campaign' | 'ad_set' | 'ad';
|
|
1788
1842
|
|
|
1789
1843
|
/**
|
|
1790
1844
|
* One ad schedule window as Google stores it. Half-open: it is exclusive of the end minute, so 09:00-12:00 and 12:00-17:00 are adjacent, not overlapping.
|
|
@@ -2541,7 +2595,7 @@ export type AnalyticsSinglePostResponse = {
|
|
|
2541
2595
|
/**
|
|
2542
2596
|
* 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. A post with no published or failed platform (for example every platform cancelled) returns its own status with syncStatus unavailable and no platformAnalytics.
|
|
2543
2597
|
*/
|
|
2544
|
-
export type
|
|
2598
|
+
export type status5 = 'published' | 'failed' | 'partial' | 'scheduled' | 'publishing' | 'draft' | 'cancelled';
|
|
2545
2599
|
|
|
2546
2600
|
/**
|
|
2547
2601
|
* Overall sync state across all platforms
|
|
@@ -2614,7 +2668,7 @@ export type ApiChangelogEntry = {
|
|
|
2614
2668
|
/**
|
|
2615
2669
|
* When `impact` is set, `breaking_change` means exactly `impact: action_required`.
|
|
2616
2670
|
*/
|
|
2617
|
-
export type
|
|
2671
|
+
export type type4 = 'new_feature' | 'breaking_change' | 'improvement' | 'deprecation' | 'minor';
|
|
2618
2672
|
|
|
2619
2673
|
/**
|
|
2620
2674
|
* What an integrator has to do, computed from the OpenAPI diff rather than from the prose. `action_required`: an existing call or parser can break (an operation, parameter or field removed, a field newly required, a type narrowed, an enum value removed, or authentication changed). `additive`: only new or looser things, existing integrations keep working. `none`: descriptions or examples only. Null on entries published before October 2026.
|
|
@@ -2857,7 +2911,7 @@ export type BlogArticle = {
|
|
|
2857
2911
|
/**
|
|
2858
2912
|
* WordPress and Wix. Post status (`future` = scheduled, `pending` = in review on Wix); omitted for Shopify.
|
|
2859
2913
|
*/
|
|
2860
|
-
export type
|
|
2914
|
+
export type status6 = 'publish' | 'future' | 'draft' | 'pending' | 'private';
|
|
2861
2915
|
|
|
2862
2916
|
/**
|
|
2863
2917
|
* Bluesky post settings. Supports text posts with up to 4 images or a single video. threadItems creates a reply chain (Bluesky thread). Images exceeding 1MB are automatically compressed. Alt text supported via mediaItem properties. Use langs to tag post language for feed-generator filtering.
|
|
@@ -3005,7 +3059,7 @@ export type BrandedCallingIdentity = {
|
|
|
3005
3059
|
/**
|
|
3006
3060
|
* requested = in Zernio review; changes_requested = answer the review (PATCH); pending_email_verification = confirm the code emailed to the authorizer; in_review = with the carrier vetting team; verified = attach numbers; rejected = fix and PATCH to resubmit; suspended = an infringement claim is open; expired = the yearly verification lapsed; permanently_rejected = terminal.
|
|
3007
3061
|
*/
|
|
3008
|
-
export type
|
|
3062
|
+
export type status7 = 'requested' | 'changes_requested' | 'rejected' | 'pending_email_verification' | 'in_review' | 'verified' | 'suspended' | 'expired' | 'permanently_rejected';
|
|
3009
3063
|
|
|
3010
3064
|
export type BrandedCallingIdentityNumber = {
|
|
3011
3065
|
phoneNumberId?: string;
|
|
@@ -3027,7 +3081,7 @@ export type BrandedCallingIdentityNumber = {
|
|
|
3027
3081
|
/**
|
|
3028
3082
|
* verified = the identity shows on calls from this number. permanently_rejected cannot be attached again anywhere.
|
|
3029
3083
|
*/
|
|
3030
|
-
export type
|
|
3084
|
+
export type status8 = 'submitted' | 'in_review' | 'verified' | 'unsuccessful' | 'suspended' | 'expired' | 'permanently_rejected';
|
|
3031
3085
|
|
|
3032
3086
|
/**
|
|
3033
3087
|
* A person the carrier vetting team phones to confirm the business. Business references are senior contacts at a vendor, partner or client; the financial reference is a CPA or a bank contact. Calls are placed in the reference's local 8am-9pm window.
|
|
@@ -3259,7 +3313,7 @@ export type BusinessAgentEventStatus = {
|
|
|
3259
3313
|
updated_at: string;
|
|
3260
3314
|
};
|
|
3261
3315
|
|
|
3262
|
-
export type
|
|
3316
|
+
export type status9 = 'request_received' | 'processing' | 'sent' | 'failed' | 'skipped' | 'success';
|
|
3263
3317
|
|
|
3264
3318
|
export type BusinessAgentFaq = BusinessAgentFaqInput & {
|
|
3265
3319
|
id: string;
|
|
@@ -3356,7 +3410,7 @@ export type BusinessAgentSkill = BusinessAgentSkillInput & {
|
|
|
3356
3410
|
/**
|
|
3357
3411
|
* pending_review right after a write; blocked means Meta content review rejected it and the agent never applies it.
|
|
3358
3412
|
*/
|
|
3359
|
-
export type
|
|
3413
|
+
export type status10 = 'active' | 'pending_review' | 'blocked';
|
|
3360
3414
|
|
|
3361
3415
|
export type BusinessAgentSkillInput = {
|
|
3362
3416
|
/**
|
|
@@ -3458,7 +3512,7 @@ export type BusinessAgentUiSkillInput = {
|
|
|
3458
3512
|
|
|
3459
3513
|
export type component_type = 'carousel_quick_reply' | 'carousel_url' | 'cta_url' | 'flow' | 'image' | 'interactive_list' | 'interactive_reply_buttons' | 'location' | 'location_request';
|
|
3460
3514
|
|
|
3461
|
-
export type
|
|
3515
|
+
export type status11 = 'enabled' | 'disabled';
|
|
3462
3516
|
|
|
3463
3517
|
export type BusinessAgentWebsite = BusinessAgentWebsiteInput & {
|
|
3464
3518
|
id: string;
|
|
@@ -3583,7 +3637,7 @@ export type CalendarEvent = {
|
|
|
3583
3637
|
|
|
3584
3638
|
export type visibility = 'default' | 'public' | 'private';
|
|
3585
3639
|
|
|
3586
|
-
export type
|
|
3640
|
+
export type status12 = 'confirmed' | 'tentative' | 'cancelled';
|
|
3587
3641
|
|
|
3588
3642
|
export type CalendarEventFields = {
|
|
3589
3643
|
title?: string;
|
|
@@ -3757,7 +3811,7 @@ export type channel = 'whatsapp' | 'pstn';
|
|
|
3757
3811
|
|
|
3758
3812
|
export type direction2 = 'inbound' | 'outbound';
|
|
3759
3813
|
|
|
3760
|
-
export type
|
|
3814
|
+
export type status13 = 'ringing' | 'answered' | 'ended' | 'failed';
|
|
3761
3815
|
|
|
3762
3816
|
/**
|
|
3763
3817
|
* Caller ID presented on the forwarded leg.
|
|
@@ -4029,7 +4083,7 @@ export type CommentAutomationDmMedia = {
|
|
|
4029
4083
|
url: string;
|
|
4030
4084
|
};
|
|
4031
4085
|
|
|
4032
|
-
export type
|
|
4086
|
+
export type type5 = 'image' | 'video' | 'audio' | 'file';
|
|
4033
4087
|
|
|
4034
4088
|
/**
|
|
4035
4089
|
* Copy for the follow gate. Sensible defaults are used for any field left empty.
|
|
@@ -4147,7 +4201,7 @@ export type source = 'comment' | 'live_comment' | 'story_reply' | 'story_mention
|
|
|
4147
4201
|
/**
|
|
4148
4202
|
* DM outcome. 'pending' = the automation has a dmDelaySeconds and the response is queued but not sent yet. 'gated' = the follow-gate confirmation DM went out and we are waiting for the tap; it flips to 'sent' or 'skipped' when they tap. 'skipped' also covers repeatPolicy, cooldown and dedupeSameTextHours suppressions, with the reason in error.
|
|
4149
4203
|
*/
|
|
4150
|
-
export type
|
|
4204
|
+
export type status14 = 'pending' | 'sent' | 'failed' | 'skipped' | 'gated';
|
|
4151
4205
|
|
|
4152
4206
|
/**
|
|
4153
4207
|
* How the audience rule resolved. Null on automations without one.
|
|
@@ -4251,7 +4305,7 @@ export type CommentAutomationTemplate = {
|
|
|
4251
4305
|
elements: Array<CommentAutomationTemplateElement>;
|
|
4252
4306
|
};
|
|
4253
4307
|
|
|
4254
|
-
export type
|
|
4308
|
+
export type type6 = 'generic';
|
|
4255
4309
|
|
|
4256
4310
|
/**
|
|
4257
4311
|
* Facebook only. How Messenger renders each element imageUrl: horizontal (1.91:1, the default) or square (1:1). Instagram has no such setting, so an Instagram automation carrying it is a 400.
|
|
@@ -4439,9 +4493,9 @@ export type platform5 = 'shopify';
|
|
|
4439
4493
|
|
|
4440
4494
|
export type method = 'code' | 'automatic';
|
|
4441
4495
|
|
|
4442
|
-
export type
|
|
4496
|
+
export type type7 = 'percentage' | 'fixed_amount' | 'free_shipping' | 'buy_x_get_y' | 'app';
|
|
4443
4497
|
|
|
4444
|
-
export type
|
|
4498
|
+
export type status15 = 'active' | 'scheduled' | 'expired';
|
|
4445
4499
|
|
|
4446
4500
|
export type CommerceImage = {
|
|
4447
4501
|
/**
|
|
@@ -4496,7 +4550,7 @@ export type CommerceMarket = {
|
|
|
4496
4550
|
type?: string;
|
|
4497
4551
|
};
|
|
4498
4552
|
|
|
4499
|
-
export type
|
|
4553
|
+
export type status16 = 'active' | 'draft';
|
|
4500
4554
|
|
|
4501
4555
|
export type CommerceMenu = {
|
|
4502
4556
|
id?: string;
|
|
@@ -4517,7 +4571,7 @@ export type CommerceMenuItem = {
|
|
|
4517
4571
|
items?: Array<CommerceMenuItem>;
|
|
4518
4572
|
};
|
|
4519
4573
|
|
|
4520
|
-
export type
|
|
4574
|
+
export type type8 = 'frontpage' | 'collection' | 'collections' | 'product' | 'catalog' | 'page' | 'blog' | 'article' | 'search' | 'shop_policy' | 'http' | 'metaobject' | 'customer_account_page';
|
|
4521
4575
|
|
|
4522
4576
|
export type CommerceMenuItemInput = {
|
|
4523
4577
|
title: string;
|
|
@@ -5011,7 +5065,7 @@ export type ConnectHandoff = {
|
|
|
5011
5065
|
} | null;
|
|
5012
5066
|
};
|
|
5013
5067
|
|
|
5014
|
-
export type
|
|
5068
|
+
export type status17 = 'waiting' | 'opened' | 'connected' | 'failed' | 'expired';
|
|
5015
5069
|
|
|
5016
5070
|
/**
|
|
5017
5071
|
* Only with `handoff=true`: the link to show as a QR code.
|
|
@@ -5232,7 +5286,7 @@ export type ConversionDestination = {
|
|
|
5232
5286
|
* For LinkedIn, `inactive` means the rule is soft-deleted (`enabled: false`).
|
|
5233
5287
|
*
|
|
5234
5288
|
*/
|
|
5235
|
-
export type
|
|
5289
|
+
export type status18 = 'active' | 'inactive';
|
|
5236
5290
|
|
|
5237
5291
|
/**
|
|
5238
5292
|
* A single conversion event to relay to the ad platform. All PII fields
|
|
@@ -6377,7 +6431,7 @@ export type objective = 'OUTCOME_ENGAGEMENT' | 'OUTCOME_SALES' | 'OUTCOME_LEADS'
|
|
|
6377
6431
|
* `adSetId`, the new ads themselves.
|
|
6378
6432
|
*
|
|
6379
6433
|
*/
|
|
6380
|
-
export type
|
|
6434
|
+
export type status19 = 'ACTIVE' | 'PAUSED';
|
|
6381
6435
|
|
|
6382
6436
|
/**
|
|
6383
6437
|
* Campaign-level status, same semantics as `POST /v1/ads/create`. Defaults
|
|
@@ -6777,7 +6831,7 @@ export type privacy_level = 2;
|
|
|
6777
6831
|
/**
|
|
6778
6832
|
* 1=SCHEDULED, 2=ACTIVE, 3=COMPLETED, 4=CANCELED
|
|
6779
6833
|
*/
|
|
6780
|
-
export type
|
|
6834
|
+
export type status20 = 1 | 2 | 3 | 4;
|
|
6781
6835
|
|
|
6782
6836
|
/**
|
|
6783
6837
|
* 1=STAGE_INSTANCE, 2=VOICE, 3=EXTERNAL
|
|
@@ -6811,7 +6865,7 @@ export type DmButton = {
|
|
|
6811
6865
|
phone?: string;
|
|
6812
6866
|
};
|
|
6813
6867
|
|
|
6814
|
-
export type
|
|
6868
|
+
export type type9 = 'url' | 'postback' | 'phone';
|
|
6815
6869
|
|
|
6816
6870
|
export type EmailAddress = {
|
|
6817
6871
|
email: string;
|
|
@@ -7063,7 +7117,7 @@ export type ErrorResponse = {
|
|
|
7063
7117
|
/**
|
|
7064
7118
|
* Error class for programmatic handling.
|
|
7065
7119
|
*/
|
|
7066
|
-
export type
|
|
7120
|
+
export type type10 = 'invalid_request_error' | 'authentication_error' | 'permission_error' | 'not_found' | 'rate_limit_error' | 'platform_error' | 'api_error';
|
|
7067
7121
|
|
|
7068
7122
|
/**
|
|
7069
7123
|
* Meta ad create failures only. The step that failed: `media` (image/video download or upload), `campaign`, `adset`, `creative`, `ad` (the ad POST itself, where Meta's code 31 / 3858385 hold and 100 / 1359188 payment rejections land), `activation` (switching the created objects on; no longer returned, since a refused switch to ACTIVE now answers 201 with an `activation_failed:` warning and the objects kept PAUSED), or `other` (a read or check before any write).
|
|
@@ -7122,7 +7176,7 @@ export type ExternalPostMediaItem = {
|
|
|
7122
7176
|
unavailableReason?: 'platform_withheld';
|
|
7123
7177
|
};
|
|
7124
7178
|
|
|
7125
|
-
export type
|
|
7179
|
+
export type type11 = 'image' | 'video';
|
|
7126
7180
|
|
|
7127
7181
|
/**
|
|
7128
7182
|
* unavailable means the media file could not be retrieved (url is null or, for LinkedIn videos, a cover image standing in for the file). available or absent means the file is available at url (older synced items omit the field).
|
|
@@ -7555,7 +7609,7 @@ export type FeedbackReceipt = {
|
|
|
7555
7609
|
duplicate?: boolean;
|
|
7556
7610
|
};
|
|
7557
7611
|
|
|
7558
|
-
export type
|
|
7612
|
+
export type status21 = 'received';
|
|
7559
7613
|
|
|
7560
7614
|
/**
|
|
7561
7615
|
* A file or folder in a connected Google Drive or OneDrive. Ids are the provider's own.
|
|
@@ -7740,7 +7794,7 @@ export type GoogleAdLabel = {
|
|
|
7740
7794
|
description?: (string) | null;
|
|
7741
7795
|
};
|
|
7742
7796
|
|
|
7743
|
-
export type
|
|
7797
|
+
export type status22 = 'ENABLED' | 'REMOVED' | 'UNKNOWN';
|
|
7744
7798
|
|
|
7745
7799
|
/**
|
|
7746
7800
|
* At least one id across the four target lists. Up to 1000 ids per list.
|
|
@@ -7843,7 +7897,7 @@ export type GoogleAdsManagerLink = {
|
|
|
7843
7897
|
/**
|
|
7844
7898
|
* Status the link has after this call.
|
|
7845
7899
|
*/
|
|
7846
|
-
export type
|
|
7900
|
+
export type status23 = 'PENDING' | 'ACTIVE' | 'REFUSED' | 'CANCELED' | 'INACTIVE';
|
|
7847
7901
|
|
|
7848
7902
|
export type GoogleAdsUserAccessInvitation = {
|
|
7849
7903
|
invitationId?: string;
|
|
@@ -7858,7 +7912,7 @@ export type GoogleAdsUserAccessInvitation = {
|
|
|
7858
7912
|
|
|
7859
7913
|
export type accessRole = 'ADMIN' | 'STANDARD' | 'READ_ONLY' | 'EMAIL_ONLY' | 'UNKNOWN';
|
|
7860
7914
|
|
|
7861
|
-
export type
|
|
7915
|
+
export type status24 = 'PENDING' | 'DECLINED' | 'EXPIRED' | 'UNKNOWN';
|
|
7862
7916
|
|
|
7863
7917
|
export type GoogleAdsUserAccessInvitationResult = {
|
|
7864
7918
|
customerId?: string;
|
|
@@ -7882,7 +7936,7 @@ export type GoogleAdsUserAccessInvitationResult = {
|
|
|
7882
7936
|
/**
|
|
7883
7937
|
* PENDING once the email is sent; PENDING_APPROVAL while Google waits for a second admin's multi-party approval.
|
|
7884
7938
|
*/
|
|
7885
|
-
export type
|
|
7939
|
+
export type status25 = 'PENDING' | 'PENDING_APPROVAL';
|
|
7886
7940
|
|
|
7887
7941
|
export type GoogleAdsUserInvitationApproval = {
|
|
7888
7942
|
/**
|
|
@@ -8159,7 +8213,7 @@ export type topicType = 'STANDARD' | 'EVENT' | 'OFFER';
|
|
|
8159
8213
|
/**
|
|
8160
8214
|
* Button action type: LEARN_MORE, BOOK, ORDER, SHOP, SIGN_UP, CALL
|
|
8161
8215
|
*/
|
|
8162
|
-
export type
|
|
8216
|
+
export type type12 = 'LEARN_MORE' | 'BOOK' | 'ORDER' | 'SHOP' | 'SIGN_UP' | 'CALL';
|
|
8163
8217
|
|
|
8164
8218
|
/**
|
|
8165
8219
|
* A Google Business Profile review, as returned by every gmb-reviews read endpoint.
|
|
@@ -8449,7 +8503,7 @@ export type GoogleListingGroupDimension = {
|
|
|
8449
8503
|
};
|
|
8450
8504
|
};
|
|
8451
8505
|
|
|
8452
|
-
export type
|
|
8506
|
+
export type level3 = 'LEVEL1' | 'LEVEL2' | 'LEVEL3' | 'LEVEL4' | 'LEVEL5';
|
|
8453
8507
|
|
|
8454
8508
|
export type condition = 'NEW' | 'REFURBISHED' | 'USED';
|
|
8455
8509
|
|
|
@@ -8477,7 +8531,7 @@ export type GoogleListingGroupFilterNode = {
|
|
|
8477
8531
|
} | null;
|
|
8478
8532
|
};
|
|
8479
8533
|
|
|
8480
|
-
export type
|
|
8534
|
+
export type type13 = 'SUBDIVISION' | 'UNIT_INCLUDED' | 'UNIT_EXCLUDED';
|
|
8481
8535
|
|
|
8482
8536
|
export type GoogleListingGroupNode = {
|
|
8483
8537
|
dimension: GoogleListingGroupDimension;
|
|
@@ -8732,7 +8786,7 @@ export type GoogleRecommendationResult = {
|
|
|
8732
8786
|
error?: string;
|
|
8733
8787
|
};
|
|
8734
8788
|
|
|
8735
|
-
export type
|
|
8789
|
+
export type status26 = 'applied' | 'dismissed' | 'failed';
|
|
8736
8790
|
|
|
8737
8791
|
export type GoogleRsaDescription = {
|
|
8738
8792
|
text: string;
|
|
@@ -8867,7 +8921,7 @@ export type ImessageSandboxContact = {
|
|
|
8867
8921
|
createdAt?: string;
|
|
8868
8922
|
};
|
|
8869
8923
|
|
|
8870
|
-
export type
|
|
8924
|
+
export type status27 = 'pending' | 'active';
|
|
8871
8925
|
|
|
8872
8926
|
/**
|
|
8873
8927
|
* An iMessage sender registered as an account on a profile.
|
|
@@ -8942,7 +8996,7 @@ export type region = 'US' | 'GB';
|
|
|
8942
8996
|
/**
|
|
8943
8997
|
* `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.
|
|
8944
8998
|
*/
|
|
8945
|
-
export type
|
|
8999
|
+
export type status28 = 'ordering' | 'awaiting_payment' | 'activating' | 'active' | 'suspended' | 'canceled' | 'failed';
|
|
8946
9000
|
|
|
8947
9001
|
/**
|
|
8948
9002
|
* Click attribution for a conversation that started from a Meta ad or
|
|
@@ -9145,7 +9199,7 @@ export type InboxWebhookConversation = {
|
|
|
9145
9199
|
contactId?: string;
|
|
9146
9200
|
};
|
|
9147
9201
|
|
|
9148
|
-
export type
|
|
9202
|
+
export type status29 = 'active' | 'archived';
|
|
9149
9203
|
|
|
9150
9204
|
/**
|
|
9151
9205
|
* The conversation object included in conversation lifecycle webhook payloads (conversation.started, conversation.control_changed).
|
|
@@ -10490,7 +10544,7 @@ export type MediaItem = {
|
|
|
10490
10544
|
/**
|
|
10491
10545
|
* Optional when the item names a connected file (`fileId`): inferred from the file's MIME type.
|
|
10492
10546
|
*/
|
|
10493
|
-
export type
|
|
10547
|
+
export type type14 = 'image' | 'video' | 'gif' | 'document';
|
|
10494
10548
|
|
|
10495
10549
|
export type MediaSubtitle = {
|
|
10496
10550
|
/**
|
|
@@ -11282,7 +11336,7 @@ export type OwnedPhoneNumber = {
|
|
|
11282
11336
|
}>;
|
|
11283
11337
|
};
|
|
11284
11338
|
|
|
11285
|
-
export type
|
|
11339
|
+
export type status30 = 'pending_payment' | 'pending_regulatory' | 'regulatory_declined' | 'provisioning' | 'verifying' | 'active' | 'suspended' | 'releasing' | 'released';
|
|
11286
11340
|
|
|
11287
11341
|
export type metaVerificationStatus = 'pending' | 'code_requested' | 'verified' | 'expired';
|
|
11288
11342
|
|
|
@@ -11454,7 +11508,7 @@ export type PlatformAnalytics = {
|
|
|
11454
11508
|
isOwner?: (boolean) | null;
|
|
11455
11509
|
};
|
|
11456
11510
|
|
|
11457
|
-
export type
|
|
11511
|
+
export type status31 = 'published' | 'failed';
|
|
11458
11512
|
|
|
11459
11513
|
/**
|
|
11460
11514
|
* Sync state of analytics for this platform
|
|
@@ -11600,7 +11654,7 @@ export type PortfolioBidStrategy = {
|
|
|
11600
11654
|
targetImpressionShare?: (GoogleTargetImpressionShare | null);
|
|
11601
11655
|
};
|
|
11602
11656
|
|
|
11603
|
-
export type
|
|
11657
|
+
export type type15 = 'TARGET_CPA' | 'TARGET_ROAS' | 'MAXIMIZE_CONVERSIONS' | 'MAXIMIZE_CONVERSION_VALUE' | 'TARGET_IMPRESSION_SHARE';
|
|
11604
11658
|
|
|
11605
11659
|
export type Post = {
|
|
11606
11660
|
_id?: string;
|
|
@@ -11657,7 +11711,7 @@ export type Post = {
|
|
|
11657
11711
|
/**
|
|
11658
11712
|
* `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.
|
|
11659
11713
|
*/
|
|
11660
|
-
export type
|
|
11714
|
+
export type status32 = 'draft' | 'pending_approval' | 'scheduled' | 'publishing' | 'published' | 'partial' | 'failed' | 'cancelled';
|
|
11661
11715
|
|
|
11662
11716
|
export type visibility3 = 'public' | 'private' | 'unlisted';
|
|
11663
11717
|
|
|
@@ -11894,7 +11948,7 @@ export type Product = {
|
|
|
11894
11948
|
publishedAt?: (string) | null;
|
|
11895
11949
|
};
|
|
11896
11950
|
|
|
11897
|
-
export type
|
|
11951
|
+
export type status33 = 'active' | 'draft' | 'archived';
|
|
11898
11952
|
|
|
11899
11953
|
export type ProductImage = {
|
|
11900
11954
|
url?: string;
|
|
@@ -12113,7 +12167,7 @@ export type RcsAgent = {
|
|
|
12113
12167
|
createdAt?: string;
|
|
12114
12168
|
};
|
|
12115
12169
|
|
|
12116
|
-
export type
|
|
12170
|
+
export type status34 = 'requested' | 'changes_requested' | 'brand_vetting' | 'agent_review' | 'testing' | 'launch_review' | 'launching' | 'live' | 'rejected' | 'deactivated';
|
|
12117
12171
|
|
|
12118
12172
|
export type useCase = 'MULTI_USE' | 'PROMOTIONAL' | 'TRANSACTIONAL' | 'OTP';
|
|
12119
12173
|
|
|
@@ -12165,7 +12219,7 @@ export type RcsBrand = RcsBrandInput & {
|
|
|
12165
12219
|
/**
|
|
12166
12220
|
* draft = not filed yet (still editable).
|
|
12167
12221
|
*/
|
|
12168
|
-
export type
|
|
12222
|
+
export type status35 = 'draft' | 'vetting' | 'verified' | 'rejected';
|
|
12169
12223
|
|
|
12170
12224
|
export type RcsBrandInput = {
|
|
12171
12225
|
displayName: string;
|
|
@@ -12252,7 +12306,7 @@ export type RcsCarrierApproval = {
|
|
|
12252
12306
|
|
|
12253
12307
|
export type scope3 = 'carrier' | 'hub' | 'bot';
|
|
12254
12308
|
|
|
12255
|
-
export type
|
|
12309
|
+
export type status36 = 'PENDING' | 'SUBMITTED' | 'APPROVED' | 'REJECTED';
|
|
12256
12310
|
|
|
12257
12311
|
/**
|
|
12258
12312
|
* Message content. `suggestions` (max 11) render as chips under the message.
|
|
@@ -12278,7 +12332,7 @@ export type RcsContent = {
|
|
|
12278
12332
|
suggestions?: Array<RcsSuggestion>;
|
|
12279
12333
|
};
|
|
12280
12334
|
|
|
12281
|
-
export type
|
|
12335
|
+
export type type16 = 'text';
|
|
12282
12336
|
|
|
12283
12337
|
export type orientation = 'VERTICAL' | 'HORIZONTAL';
|
|
12284
12338
|
|
|
@@ -12391,7 +12445,7 @@ export type RcsSuggestion = {
|
|
|
12391
12445
|
postbackData?: string;
|
|
12392
12446
|
};
|
|
12393
12447
|
|
|
12394
|
-
export type
|
|
12448
|
+
export type type17 = 'reply';
|
|
12395
12449
|
|
|
12396
12450
|
export type application = 'BROWSER' | 'WEBVIEW';
|
|
12397
12451
|
|
|
@@ -13140,7 +13194,7 @@ export type SupportRun = {
|
|
|
13140
13194
|
/**
|
|
13141
13195
|
* 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.
|
|
13142
13196
|
*/
|
|
13143
|
-
export type
|
|
13197
|
+
export type status37 = 'queued' | 'running' | 'completed' | 'needs_human' | 'failed';
|
|
13144
13198
|
|
|
13145
13199
|
/**
|
|
13146
13200
|
* Why the run stopped. Null while it is in progress.
|
|
@@ -14098,7 +14152,7 @@ export type UploadedFile = {
|
|
|
14098
14152
|
mimeType?: string;
|
|
14099
14153
|
};
|
|
14100
14154
|
|
|
14101
|
-
export type
|
|
14155
|
+
export type type18 = 'image' | 'video' | 'document';
|
|
14102
14156
|
|
|
14103
14157
|
export type UploadTokenResponse = {
|
|
14104
14158
|
token?: string;
|
|
@@ -14107,7 +14161,7 @@ export type UploadTokenResponse = {
|
|
|
14107
14161
|
status?: 'pending' | 'completed' | 'expired';
|
|
14108
14162
|
};
|
|
14109
14163
|
|
|
14110
|
-
export type
|
|
14164
|
+
export type status38 = 'pending' | 'completed' | 'expired';
|
|
14111
14165
|
|
|
14112
14166
|
export type UploadTokenStatusResponse = {
|
|
14113
14167
|
token?: string;
|
|
@@ -14618,7 +14672,7 @@ export type Verification = {
|
|
|
14618
14672
|
resend?: boolean;
|
|
14619
14673
|
};
|
|
14620
14674
|
|
|
14621
|
-
export type
|
|
14675
|
+
export type status39 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
|
|
14622
14676
|
|
|
14623
14677
|
export type channel5 = 'sms' | 'whatsapp';
|
|
14624
14678
|
|
|
@@ -14796,7 +14850,7 @@ export type WebhookLog = {
|
|
|
14796
14850
|
/**
|
|
14797
14851
|
* Delivery outcome
|
|
14798
14852
|
*/
|
|
14799
|
-
export type
|
|
14853
|
+
export type status40 = 'success' | 'failed';
|
|
14800
14854
|
|
|
14801
14855
|
/**
|
|
14802
14856
|
* Webhook payload for `account.ads.initial_sync_completed` events.
|
|
@@ -14913,7 +14967,7 @@ export type event = 'account.ads.initial_sync_completed';
|
|
|
14913
14967
|
/**
|
|
14914
14968
|
* Overall outcome of the initial sync.
|
|
14915
14969
|
*/
|
|
14916
|
-
export type
|
|
14970
|
+
export type status41 = 'success' | 'failure';
|
|
14917
14971
|
|
|
14918
14972
|
/**
|
|
14919
14973
|
* Stable category for UX branching. New values may be added; existing ones are
|
|
@@ -15249,7 +15303,7 @@ export type event8 = 'ad.delivery_issue';
|
|
|
15249
15303
|
/**
|
|
15250
15304
|
* Always `AD`.
|
|
15251
15305
|
*/
|
|
15252
|
-
export type
|
|
15306
|
+
export type level4 = 'AD';
|
|
15253
15307
|
|
|
15254
15308
|
/**
|
|
15255
15309
|
* Webhook payload for the `ad.review.approved` and `ad.review.rejected` events.
|
|
@@ -15320,7 +15374,7 @@ export type WebhookPayloadAdReview = {
|
|
|
15320
15374
|
|
|
15321
15375
|
export type event9 = 'ad.review.approved' | 'ad.review.rejected';
|
|
15322
15376
|
|
|
15323
|
-
export type
|
|
15377
|
+
export type status42 = 'approved' | 'rejected';
|
|
15324
15378
|
|
|
15325
15379
|
/**
|
|
15326
15380
|
* Webhook payload for the `ad_rule.triggered` event.
|
|
@@ -15454,11 +15508,6 @@ export type WebhookPayloadAdRuleTriggered = {
|
|
|
15454
15508
|
|
|
15455
15509
|
export type event10 = 'ad_rule.triggered';
|
|
15456
15510
|
|
|
15457
|
-
/**
|
|
15458
|
-
* Whether the rule evaluates campaigns or ad sets.
|
|
15459
|
-
*/
|
|
15460
|
-
export type level4 = 'campaign' | 'adset';
|
|
15461
|
-
|
|
15462
15511
|
/**
|
|
15463
15512
|
* Webhook payload for the `ad.status_changed` event. Currently emitted
|
|
15464
15513
|
* only for Meta (`metaads`).
|
|
@@ -15660,7 +15709,7 @@ export type event12 = 'ad.video.processed';
|
|
|
15660
15709
|
/**
|
|
15661
15710
|
* `ready`: usable as `video.id` on the create endpoints. `error`: Meta could not process it; upload again.
|
|
15662
15711
|
*/
|
|
15663
|
-
export type
|
|
15712
|
+
export type status43 = 'ready' | 'error';
|
|
15664
15713
|
|
|
15665
15714
|
/**
|
|
15666
15715
|
* Webhook payload for `analytics.synced`. Fired once per connected account each
|
|
@@ -16282,7 +16331,7 @@ export type WebhookPayloadCommerceOrder = {
|
|
|
16282
16331
|
|
|
16283
16332
|
export type event22 = 'commerce.order.created' | 'commerce.order.updated' | 'commerce.order.refunded';
|
|
16284
16333
|
|
|
16285
|
-
export type
|
|
16334
|
+
export type type19 = 'order';
|
|
16286
16335
|
|
|
16287
16336
|
export type WebhookPayloadCommerceProduct = {
|
|
16288
16337
|
/**
|
|
@@ -16325,7 +16374,7 @@ export type WebhookPayloadCommerceProduct = {
|
|
|
16325
16374
|
|
|
16326
16375
|
export type event23 = 'commerce.product.created' | 'commerce.product.updated' | 'commerce.product.deleted';
|
|
16327
16376
|
|
|
16328
|
-
export type
|
|
16377
|
+
export type type20 = 'product';
|
|
16329
16378
|
|
|
16330
16379
|
/**
|
|
16331
16380
|
* Webhook payload for contact.updated and contact.deleted, fired after a provider contacts sync (Google Contacts, Outlook) changed a contact. Read the contact with `GET /v1/contacts/{id}`.
|
|
@@ -17976,7 +18025,7 @@ export type event40 = 'post.platform.published' | 'post.platform.failed' | 'post
|
|
|
17976
18025
|
/**
|
|
17977
18026
|
* Terminal status this event fires on. Matches the event suffix.
|
|
17978
18027
|
*/
|
|
17979
|
-
export type
|
|
18028
|
+
export type status44 = 'published' | 'failed' | 'deleted';
|
|
17980
18029
|
|
|
17981
18030
|
/**
|
|
17982
18031
|
* Webhook payload for reaction received events (WhatsApp, Telegram, Slack, Instagram, Facebook Messenger, TikTok)
|
|
@@ -18373,7 +18422,7 @@ export type event49 = 'whatsapp.account.name_status_updated';
|
|
|
18373
18422
|
/**
|
|
18374
18423
|
* Normalized from Meta's `decision` (REJECTED -> DECLINED, DEFERRED -> PENDING_REVIEW; the review is still open on DEFERRED, not a rejection).
|
|
18375
18424
|
*/
|
|
18376
|
-
export type
|
|
18425
|
+
export type status45 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
|
|
18377
18426
|
|
|
18378
18427
|
/**
|
|
18379
18428
|
* Webhook payload for `whatsapp.account.quality_updated`. Fired when a connected
|
|
@@ -18507,7 +18556,7 @@ export type event51 = 'whatsapp.account.status_updated';
|
|
|
18507
18556
|
/**
|
|
18508
18557
|
* `active` only on a reinstatement (DISABLED_UPDATE with ban state REINSTATE).
|
|
18509
18558
|
*/
|
|
18510
|
-
export type
|
|
18559
|
+
export type status46 = 'restricted' | 'active';
|
|
18511
18560
|
|
|
18512
18561
|
/**
|
|
18513
18562
|
* Webhook payload for the `whatsapp.contact.identity_changed` event. Fired when
|
|
@@ -18723,7 +18772,7 @@ export type event54 = 'whatsapp.template.status_updated';
|
|
|
18723
18772
|
* request before the template is actually removed.
|
|
18724
18773
|
*
|
|
18725
18774
|
*/
|
|
18726
|
-
export type
|
|
18775
|
+
export type status47 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
|
|
18727
18776
|
|
|
18728
18777
|
export type WebhookPayloadWorkflowRun = {
|
|
18729
18778
|
/**
|
|
@@ -18787,7 +18836,7 @@ export type event55 = 'workflow.run.started' | 'workflow.run.completed' | 'workf
|
|
|
18787
18836
|
/**
|
|
18788
18837
|
* 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.
|
|
18789
18838
|
*/
|
|
18790
|
-
export type
|
|
18839
|
+
export type status48 = 'running' | 'waiting' | 'completed' | 'exited' | 'failed';
|
|
18791
18840
|
|
|
18792
18841
|
/**
|
|
18793
18842
|
* The profiles this event belongs to, each with the externalId you set on it (null when none is set). Present on every event tied to a profile and absent on events that belong to none. Events spanning several profiles (a post published to accounts of different profiles) list each once. Use it to route the event to your tenant without storing Zernio profile ids.
|
|
@@ -19060,7 +19109,7 @@ export type WhatsAppTemplateButton = {
|
|
|
19060
19109
|
navigate_screen?: string;
|
|
19061
19110
|
};
|
|
19062
19111
|
|
|
19063
|
-
export type
|
|
19112
|
+
export type type21 = 'quick_reply' | 'url' | 'phone_number' | 'otp' | 'copy_code' | 'flow' | 'mpm' | 'catalog';
|
|
19064
19113
|
|
|
19065
19114
|
/**
|
|
19066
19115
|
* Required when type is otp
|
|
@@ -19102,7 +19151,7 @@ export type WhatsAppTemplateLookupError = {
|
|
|
19102
19151
|
};
|
|
19103
19152
|
};
|
|
19104
19153
|
|
|
19105
|
-
export type
|
|
19154
|
+
export type type22 = 'platform_error';
|
|
19106
19155
|
|
|
19107
19156
|
export type code2 = 'platform_api_error';
|
|
19108
19157
|
|
|
@@ -19185,7 +19234,7 @@ export type WorkflowExecutionEvent = {
|
|
|
19185
19234
|
|
|
19186
19235
|
export type action2 = 'execution_started' | 'execution_completed' | 'execution_exited' | 'execution_paused' | 'execution_resumed' | 'node_started' | 'node_completed' | 'node_failed' | 'node_skipped';
|
|
19187
19236
|
|
|
19188
|
-
export type
|
|
19237
|
+
export type status49 = 'success' | 'failed' | 'pending';
|
|
19189
19238
|
|
|
19190
19239
|
/**
|
|
19191
19240
|
* A node in a workflow graph. `config` shape depends on `type`.
|
|
@@ -19267,7 +19316,7 @@ export type WorkflowNode = {
|
|
|
19267
19316
|
* integrations (webhook, hubspot_upsert_contact, ai, handoff, start_call).
|
|
19268
19317
|
*
|
|
19269
19318
|
*/
|
|
19270
|
-
export type
|
|
19319
|
+
export type type23 = 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'hubspot_upsert_contact' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
|
|
19271
19320
|
|
|
19272
19321
|
/**
|
|
19273
19322
|
* A single X API operation with its per-call price and the Zernio platform methods that trigger it.
|
|
@@ -19403,7 +19452,7 @@ export type XArticleBlock = {
|
|
|
19403
19452
|
entity_ranges?: Array<XArticleEntityRange>;
|
|
19404
19453
|
};
|
|
19405
19454
|
|
|
19406
|
-
export type
|
|
19455
|
+
export type type24 = 'unstyled' | 'header-one' | 'header-two' | 'header-three' | 'unordered-list-item' | 'ordered-list-item' | 'blockquote' | 'atomic';
|
|
19407
19456
|
|
|
19408
19457
|
/**
|
|
19409
19458
|
* X's snake_case content-state shape. Standard DraftJS camelCase fields such as entityMap, inlineStyleRanges, and entityRanges are rejected.
|
|
@@ -19482,7 +19531,7 @@ export type XArticleEntity = {
|
|
|
19482
19531
|
|
|
19483
19532
|
export type mutability = 'immutable' | 'mutable' | 'segmented';
|
|
19484
19533
|
|
|
19485
|
-
export type
|
|
19534
|
+
export type type25 = 'divider' | 'latex';
|
|
19486
19535
|
|
|
19487
19536
|
/**
|
|
19488
19537
|
* The referenced entity must exist, and offset plus length must not exceed the containing block's text length.
|
|
@@ -22120,6 +22169,10 @@ export type ListPostsData = {
|
|
|
22120
22169
|
* Zero-padded YYYY-MM-DD, or a full ISO 8601 datetime. An empty value means no date filter; any other malformed value returns 400. The same name the other date-window filters use (ads, analytics).
|
|
22121
22170
|
*/
|
|
22122
22171
|
toDate?: string;
|
|
22172
|
+
/**
|
|
22173
|
+
* Only posts whose `updatedAt` is at or after this ISO 8601 timestamp, an offset or `Z` required. `updatedAt` moves when the post or any of its platforms changes (an edit, a status change, a platform publishing or failing), so to keep a copy in sync, send the time of your previous sync instead of reading every page again. Combines with the other filters and with `cursor`. Deleted posts are not returned. Not available with `source=external`.
|
|
22174
|
+
*/
|
|
22175
|
+
updatedSince?: string;
|
|
22123
22176
|
};
|
|
22124
22177
|
};
|
|
22125
22178
|
|
|
@@ -46183,6 +46236,37 @@ export type CreateAdRuleResponse = ({
|
|
|
46183
46236
|
|
|
46184
46237
|
export type CreateAdRuleError = (ErrorResponse);
|
|
46185
46238
|
|
|
46239
|
+
export type ListAdRuleActivityData = {
|
|
46240
|
+
query?: {
|
|
46241
|
+
/**
|
|
46242
|
+
* Only changes of rules on this ads connection.
|
|
46243
|
+
*/
|
|
46244
|
+
accountId?: string;
|
|
46245
|
+
/**
|
|
46246
|
+
* `nextCursor` from the previous page.
|
|
46247
|
+
*/
|
|
46248
|
+
cursor?: string;
|
|
46249
|
+
/**
|
|
46250
|
+
* ISO 8601 date-time, inclusive.
|
|
46251
|
+
*/
|
|
46252
|
+
from?: string;
|
|
46253
|
+
limit?: number;
|
|
46254
|
+
ruleId?: string;
|
|
46255
|
+
/**
|
|
46256
|
+
* ISO 8601 date-time, inclusive.
|
|
46257
|
+
*/
|
|
46258
|
+
to?: string;
|
|
46259
|
+
type?: 'pause' | 'activate' | 'adjust_budget';
|
|
46260
|
+
};
|
|
46261
|
+
};
|
|
46262
|
+
|
|
46263
|
+
export type ListAdRuleActivityResponse = ({
|
|
46264
|
+
activity: Array<AdRuleActivityEntry>;
|
|
46265
|
+
nextCursor: (string) | null;
|
|
46266
|
+
});
|
|
46267
|
+
|
|
46268
|
+
export type ListAdRuleActivityError = (ErrorResponse);
|
|
46269
|
+
|
|
46186
46270
|
export type GetAdRuleData = {
|
|
46187
46271
|
path: {
|
|
46188
46272
|
ruleId: string;
|