@getlatedev/node 0.2.1660 → 0.2.1662

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.
@@ -1157,6 +1157,10 @@ export type AdKeyword = {
1157
1157
  matchType?: 'exact' | 'phrase' | 'broad' | 'unknown';
1158
1158
  status?: 'active' | 'paused';
1159
1159
  negative?: boolean;
1160
+ /**
1161
+ * Max CPC bid set on this keyword, in the ad account currency. Null when the keyword uses its ad group bid. Takes effect only under Manual CPC bidding.
1162
+ */
1163
+ cpcBid?: (number) | null;
1160
1164
  /**
1161
1165
  * Deprecated, use `quality.score`. Google Quality Score, 1-10. Null when unrated.
1162
1166
  */
@@ -19493,6 +19497,80 @@ export type materialType = 'spark_post' | 'video' | 'carousel' | 'catalog_carous
19493
19497
  */
19494
19498
  export type TikTokSmartPlusReviewStatus = 'approved' | 'partially_approved' | 'rejected' | 'unknown';
19495
19499
 
19500
+ export type TrackingSite = {
19501
+ id?: string;
19502
+ profileId?: string;
19503
+ name?: string;
19504
+ status?: 'active' | 'paused' | 'removing';
19505
+ install?: {
19506
+ /**
19507
+ * How the tag is installed. `snippet` means you paste it.
19508
+ */
19509
+ method?: 'shopify' | 'wordpress' | 'wix' | 'webflow' | 'snippet';
19510
+ storeAccountId?: (string) | null;
19511
+ /**
19512
+ * The script tag to paste, already pointing at the custom subdomain once it is active.
19513
+ */
19514
+ snippet?: string;
19515
+ };
19516
+ /**
19517
+ * True when the store's orders reach Zernio from the store itself, so website purchases are forwarded but not counted twice.
19518
+ */
19519
+ storeOrders?: boolean;
19520
+ /**
19521
+ * Public key that names the site in the snippet, such as `zs_...`.
19522
+ */
19523
+ siteKey?: string;
19524
+ domains?: Array<(string)>;
19525
+ customHostname?: {
19526
+ hostname?: string;
19527
+ status?: 'pending' | 'active' | 'failed';
19528
+ dnsRecord?: {
19529
+ type?: 'CNAME';
19530
+ /**
19531
+ * The record name relative to your domain, such as `t`.
19532
+ */
19533
+ name?: string;
19534
+ target?: string;
19535
+ };
19536
+ } | null;
19537
+ consentMode?: TrackingSiteConsentMode;
19538
+ /**
19539
+ * One per setup step: `script` for the install, then one per ad account the site sends to, keyed by its platform and ids.
19540
+ */
19541
+ checks?: Array<{
19542
+ key?: string;
19543
+ status?: 'pending' | 'passed' | 'failed';
19544
+ /**
19545
+ * What to do when the check has not passed.
19546
+ */
19547
+ detail?: (string) | null;
19548
+ checkedAt?: string;
19549
+ }>;
19550
+ setup?: {
19551
+ /**
19552
+ * `failed` when any check failed, `ready` when all passed.
19553
+ */
19554
+ status?: 'pending' | 'ready' | 'failed';
19555
+ };
19556
+ createdAt?: string;
19557
+ updatedAt?: string;
19558
+ };
19559
+
19560
+ export type status56 = 'active' | 'paused' | 'removing';
19561
+
19562
+ /**
19563
+ * How the tag is installed. `snippet` means you paste it.
19564
+ */
19565
+ export type method4 = 'shopify' | 'wordpress' | 'wix' | 'webflow' | 'snippet';
19566
+
19567
+ export type type30 = 'CNAME';
19568
+
19569
+ /**
19570
+ * How a visitor with no consent signal is treated. `eu_opt_in` (default): no consent in the EU, UK and other countries that require it, consent elsewhere. `opt_in`: no consent anywhere. `opt_out`: consent everywhere.
19571
+ */
19572
+ export type TrackingSiteConsentMode = 'eu_opt_in' | 'opt_in' | 'opt_out';
19573
+
19496
19574
  /**
19497
19575
  * A platform measurement tag: the thing you create, install on a website, send events to, and target ads against. On Meta this is a Pixel (`kind: pixel`).
19498
19576
  *
@@ -19762,7 +19840,7 @@ export type TrackingWindow = {
19762
19840
  } | null;
19763
19841
  };
19764
19842
 
19765
- export type status56 = 'open' | 'completing' | 'completed' | 'cancelled';
19843
+ export type status57 = 'open' | 'completing' | 'completed' | 'cancelled';
19766
19844
 
19767
19845
  /**
19768
19846
  * How the window closed. Null while it is open.
@@ -19842,7 +19920,7 @@ export type TreasuryTopup = {
19842
19920
  hasInvoice?: boolean;
19843
19921
  };
19844
19922
 
19845
- export type method4 = 'card' | 'bank_transfer';
19923
+ export type method5 = 'card' | 'bank_transfer';
19846
19924
 
19847
19925
  /**
19848
19926
  * `balance` funds your balance; `payout_batch` is the card payment of one payout batch, which pays its creators directly.
@@ -19852,7 +19930,7 @@ export type purpose = 'balance' | 'payout_batch';
19852
19930
  /**
19853
19931
  * `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.
19854
19932
  */
19855
- export type status57 = 'pending' | 'succeeded' | 'failed' | 'expired';
19933
+ export type status58 = 'pending' | 'succeeded' | 'failed' | 'expired';
19856
19934
 
19857
19935
  export type TreasuryTransfer = {
19858
19936
  id?: string;
@@ -19893,7 +19971,7 @@ export type TreasuryTransfer = {
19893
19971
 
19894
19972
  export type destinationType = 'creator' | 'ad_account';
19895
19973
 
19896
- export type status58 = 'pending' | 'paid' | 'failed' | 'reversed';
19974
+ export type status59 = 'pending' | 'paid' | 'failed' | 'reversed';
19897
19975
 
19898
19976
  /**
19899
19977
  * 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.
@@ -20075,7 +20153,7 @@ export type UploadedFile = {
20075
20153
  mimeType?: string;
20076
20154
  };
20077
20155
 
20078
- export type type30 = 'image' | 'video' | 'document';
20156
+ export type type31 = 'image' | 'video' | 'document';
20079
20157
 
20080
20158
  export type UploadTokenResponse = {
20081
20159
  token?: string;
@@ -20084,7 +20162,7 @@ export type UploadTokenResponse = {
20084
20162
  status?: 'pending' | 'completed' | 'expired';
20085
20163
  };
20086
20164
 
20087
- export type status59 = 'pending' | 'completed' | 'expired';
20165
+ export type status60 = 'pending' | 'completed' | 'expired';
20088
20166
 
20089
20167
  export type UploadTokenStatusResponse = {
20090
20168
  token?: string;
@@ -20597,7 +20675,7 @@ export type Verification = {
20597
20675
  resend?: boolean;
20598
20676
  };
20599
20677
 
20600
- export type status60 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
20678
+ export type status61 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
20601
20679
 
20602
20680
  export type channel5 = 'sms' | 'whatsapp';
20603
20681
 
@@ -20827,7 +20905,7 @@ export type WebhookLog = {
20827
20905
  /**
20828
20906
  * Delivery outcome
20829
20907
  */
20830
- export type status61 = 'success' | 'failed';
20908
+ export type status62 = 'success' | 'failed';
20831
20909
 
20832
20910
  /**
20833
20911
  * Webhook payload for `account.ads.initial_sync_completed` events.
@@ -20941,7 +21019,7 @@ export type event = 'account.ads.initial_sync_completed';
20941
21019
  /**
20942
21020
  * Overall outcome of the initial sync.
20943
21021
  */
20944
- export type status62 = 'success' | 'failure';
21022
+ export type status63 = 'success' | 'failure';
20945
21023
 
20946
21024
  /**
20947
21025
  * Stable category for UX branching. New values may be added; existing ones are stable.
@@ -21472,7 +21550,7 @@ export type WebhookPayloadAdReview = {
21472
21550
 
21473
21551
  export type event11 = 'ad.review.approved' | 'ad.review.rejected';
21474
21552
 
21475
- export type status63 = 'approved' | 'rejected';
21553
+ export type status64 = 'approved' | 'rejected';
21476
21554
 
21477
21555
  /**
21478
21556
  * Webhook payload for the `ad_rule.triggered` event.
@@ -22048,7 +22126,7 @@ export type event17 = 'ad.video.processed';
22048
22126
  /**
22049
22127
  * `ready`: usable as `video.id` on the create endpoints. `error`: Meta could not process it; upload again.
22050
22128
  */
22051
- export type status64 = 'ready' | 'error';
22129
+ export type status65 = 'ready' | 'error';
22052
22130
 
22053
22131
  /**
22054
22132
  * 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.
@@ -22189,7 +22267,7 @@ export type WebhookPayloadAutomationAction = {
22189
22267
 
22190
22268
  export type event20 = 'automation.action.applied' | 'automation.action.failed' | 'automation.action.unknown';
22191
22269
 
22192
- export type status65 = 'applied' | 'skipped' | 'failed' | 'unknown';
22270
+ export type status66 = 'applied' | 'skipped' | 'failed' | 'unknown';
22193
22271
 
22194
22272
  /**
22195
22273
  * 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`).
@@ -23549,7 +23627,7 @@ export type WebhookPayloadCommerceOrder = {
23549
23627
 
23550
23628
  export type event43 = 'commerce.order.created' | 'commerce.order.updated' | 'commerce.order.refunded';
23551
23629
 
23552
- export type type31 = 'order';
23630
+ export type type32 = 'order';
23553
23631
 
23554
23632
  export type WebhookPayloadCommerceProduct = {
23555
23633
  /**
@@ -23592,7 +23670,7 @@ export type WebhookPayloadCommerceProduct = {
23592
23670
 
23593
23671
  export type event44 = 'commerce.product.created' | 'commerce.product.updated' | 'commerce.product.deleted';
23594
23672
 
23595
- export type type32 = 'product';
23673
+ export type type33 = 'product';
23596
23674
 
23597
23675
  /**
23598
23676
  * Webhook payload for contact.updated and contact.deleted, fired after a provider contacts sync (Google Contacts, Outlook) changed a contact. contact.updated also fires after a WhatsApp coexistence address-book change (WhatsApp never fires contact.deleted). Read the contact with `GET /v1/contacts/{id}`.
@@ -23993,7 +24071,7 @@ export type event52 = 'email.bounced';
23993
24071
  /**
23994
24072
  * `hard`: 5.x.x, the address does not take mail. `soft`: 4.x.x, a temporary refusal the sending server gave up on. `undetermined`: the report gave no status.
23995
24073
  */
23996
- export type type33 = 'hard' | 'soft' | 'undetermined';
24074
+ export type type34 = 'hard' | 'soft' | 'undetermined';
23997
24075
 
23998
24076
  export type category2 = 'user_unknown' | 'mailbox_full' | 'domain_not_found' | 'policy_blocked' | 'spam_blocked' | 'blocklisted' | 'message_too_large' | 'content_rejected' | 'auth_failure' | 'rate_limited' | 'other';
23999
24077
 
@@ -24541,7 +24619,7 @@ export type platform21 = 'instagram' | 'facebook' | 'linkedin';
24541
24619
  /**
24542
24620
  * Null on LinkedIn.
24543
24621
  */
24544
- export type type34 = 'caption' | 'post' | 'comment';
24622
+ export type type35 = 'caption' | 'post' | 'comment';
24545
24623
 
24546
24624
  /**
24547
24625
  * Webhook payload for message received events
@@ -25655,7 +25733,7 @@ export type event70 = 'notification.sent';
25655
25733
  */
25656
25734
  export type category3 = 'postFailures' | 'accountIssues' | 'securityAlerts';
25657
25735
 
25658
- export type type35 = 'post_failed' | 'account_disconnected' | 'api_key_handed_over';
25736
+ export type type36 = 'post_failed' | 'account_disconnected' | 'api_key_handed_over';
25659
25737
 
25660
25738
  /**
25661
25739
  * Webhook payload for phone_number.stock_available events
@@ -25950,7 +26028,7 @@ export type event74 = 'post.platform.published' | 'post.platform.failed' | 'post
25950
26028
  /**
25951
26029
  * Terminal status this event fires on. Matches the event suffix.
25952
26030
  */
25953
- export type status66 = 'published' | 'failed' | 'deleted';
26031
+ export type status67 = 'published' | 'failed' | 'deleted';
25954
26032
 
25955
26033
  /**
25956
26034
  * Webhook payload for `post.tracking_completed`. Fired once when a post's tracking window ends and its final analytics read has run.
@@ -26516,7 +26594,7 @@ export type event86 = 'whatsapp.account.name_status_updated';
26516
26594
  /**
26517
26595
  * Normalized from Meta's `decision` (REJECTED -> DECLINED, DEFERRED -> PENDING_REVIEW; the review is still open on DEFERRED, not a rejection).
26518
26596
  */
26519
- export type status67 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
26597
+ export type status68 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
26520
26598
 
26521
26599
  /**
26522
26600
  * Webhook payload for `whatsapp.account.quality_updated`. Fired when a connected
@@ -26650,7 +26728,7 @@ export type event88 = 'whatsapp.account.status_updated';
26650
26728
  /**
26651
26729
  * `active` only on a reinstatement (DISABLED_UPDATE with ban state REINSTATE).
26652
26730
  */
26653
- export type status68 = 'restricted' | 'active';
26731
+ export type status69 = 'restricted' | 'active';
26654
26732
 
26655
26733
  /**
26656
26734
  * Webhook payload for the `whatsapp.contact.identity_changed` event. Fired when
@@ -26866,7 +26944,7 @@ export type event91 = 'whatsapp.template.status_updated';
26866
26944
  * request before the template is actually removed.
26867
26945
  *
26868
26946
  */
26869
- export type status69 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
26947
+ export type status70 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
26870
26948
 
26871
26949
  export type WebhookPayloadWorkflowRun = {
26872
26950
  /**
@@ -26930,7 +27008,7 @@ export type event92 = 'workflow.run.started' | 'workflow.run.completed' | 'workf
26930
27008
  /**
26931
27009
  * 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.
26932
27010
  */
26933
- export type status70 = 'running' | 'waiting' | 'completed' | 'exited' | 'failed';
27011
+ export type status71 = 'running' | 'waiting' | 'completed' | 'exited' | 'failed';
26934
27012
 
26935
27013
  /**
26936
27014
  * 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.
@@ -27206,7 +27284,7 @@ export type WhatsAppTemplateButton = {
27206
27284
  navigate_screen?: string;
27207
27285
  };
27208
27286
 
27209
- export type type36 = 'quick_reply' | 'url' | 'phone_number' | 'otp' | 'copy_code' | 'flow' | 'mpm' | 'catalog';
27287
+ export type type37 = 'quick_reply' | 'url' | 'phone_number' | 'otp' | 'copy_code' | 'flow' | 'mpm' | 'catalog';
27210
27288
 
27211
27289
  /**
27212
27290
  * Required when type is otp
@@ -27248,7 +27326,7 @@ export type WhatsAppTemplateLookupError = {
27248
27326
  };
27249
27327
  };
27250
27328
 
27251
- export type type37 = 'platform_error';
27329
+ export type type38 = 'platform_error';
27252
27330
 
27253
27331
  export type code4 = 'platform_api_error';
27254
27332
 
@@ -27330,7 +27408,7 @@ export type WorkflowExecutionEvent = {
27330
27408
 
27331
27409
  export type action2 = 'execution_started' | 'execution_completed' | 'execution_exited' | 'execution_paused' | 'execution_resumed' | 'node_started' | 'node_completed' | 'node_failed' | 'node_skipped';
27332
27410
 
27333
- export type status71 = 'success' | 'failed' | 'pending';
27411
+ export type status72 = 'success' | 'failed' | 'pending';
27334
27412
 
27335
27413
  /**
27336
27414
  * A node in a workflow graph. `config` shape depends on `type`.
@@ -27476,7 +27554,7 @@ export type WorkflowNode = {
27476
27554
  * integrations (webhook, hubspot_upsert_contact, ai, handoff, start_call).
27477
27555
  *
27478
27556
  */
27479
- export type type38 = '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';
27557
+ export type type39 = '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';
27480
27558
 
27481
27559
  /**
27482
27560
  * A single X API operation with its per-call price and the Zernio platform methods that trigger it.
@@ -27612,7 +27690,7 @@ export type XArticleBlock = {
27612
27690
  entity_ranges?: Array<XArticleEntityRange>;
27613
27691
  };
27614
27692
 
27615
- export type type39 = 'unstyled' | 'header-one' | 'header-two' | 'header-three' | 'unordered-list-item' | 'ordered-list-item' | 'blockquote' | 'atomic';
27693
+ export type type40 = 'unstyled' | 'header-one' | 'header-two' | 'header-three' | 'unordered-list-item' | 'ordered-list-item' | 'blockquote' | 'atomic';
27616
27694
 
27617
27695
  /**
27618
27696
  * X's snake_case content-state shape. Standard DraftJS camelCase fields such as entityMap, inlineStyleRanges, and entityRanges are rejected.
@@ -27691,7 +27769,7 @@ export type XArticleEntity = {
27691
27769
 
27692
27770
  export type mutability = 'immutable' | 'mutable' | 'segmented';
27693
27771
 
27694
- export type type40 = 'divider' | 'latex';
27772
+ export type type41 = 'divider' | 'latex';
27695
27773
 
27696
27774
  /**
27697
27775
  * The referenced entity must exist, and offset plus length must not exceed the containing block's text length.
@@ -59329,7 +59407,11 @@ export type AddAdKeywordsError = (ErrorResponse | unknown);
59329
59407
 
59330
59408
  export type UpdateAdKeywordData = {
59331
59409
  body: {
59332
- status: 'active' | 'paused';
59410
+ status?: 'active' | 'paused';
59411
+ /**
59412
+ * Max CPC bid for this keyword, in the ad account currency. Takes effect only under Manual CPC bidding.
59413
+ */
59414
+ cpcBid?: number;
59333
59415
  };
59334
59416
  path: {
59335
59417
  /**
@@ -73683,6 +73765,133 @@ export type DeleteForwardingRuleError = (ErrorResponse | {
73683
73765
  error?: string;
73684
73766
  });
73685
73767
 
73768
+ export type ListTrackingSitesData = {
73769
+ query?: {
73770
+ /**
73771
+ * `pagination.nextCursor` from the previous page.
73772
+ */
73773
+ cursor?: string;
73774
+ limit?: number;
73775
+ profileId?: string;
73776
+ };
73777
+ };
73778
+
73779
+ export type ListTrackingSitesResponse = ({
73780
+ sites?: Array<TrackingSite>;
73781
+ pagination?: {
73782
+ /**
73783
+ * Pass as `cursor` for the next page; null on the last page.
73784
+ */
73785
+ nextCursor?: (string) | null;
73786
+ };
73787
+ });
73788
+
73789
+ export type ListTrackingSitesError = (ErrorResponse);
73790
+
73791
+ export type CreateTrackingSiteData = {
73792
+ body: ({
73793
+ profileId: string;
73794
+ /**
73795
+ * A Shopify, WordPress, Wix or Webflow account connected to the profile.
73796
+ */
73797
+ storeAccountId: string;
73798
+ /**
73799
+ * The store's public address, when it differs from the one the store reports.
73800
+ */
73801
+ url?: string;
73802
+ } | {
73803
+ profileId: string;
73804
+ /**
73805
+ * The website, such as `https://brand.com`. A bare domain also allows its `www.` host.
73806
+ */
73807
+ url: string;
73808
+ });
73809
+ headers: {
73810
+ /**
73811
+ * A unique key per site you create, such as a UUID. A retry with the same key and body returns the same site.
73812
+ */
73813
+ 'Idempotency-Key': string;
73814
+ };
73815
+ };
73816
+
73817
+ export type CreateTrackingSiteResponse = ({
73818
+ site?: TrackingSite;
73819
+ });
73820
+
73821
+ export type CreateTrackingSiteError = (ErrorResponse | {
73822
+ error?: string;
73823
+ });
73824
+
73825
+ export type GetTrackingSiteData = {
73826
+ path: {
73827
+ siteId: string;
73828
+ };
73829
+ };
73830
+
73831
+ export type GetTrackingSiteResponse = ({
73832
+ site?: TrackingSite;
73833
+ });
73834
+
73835
+ export type GetTrackingSiteError = (ErrorResponse);
73836
+
73837
+ export type UpdateTrackingSiteData = {
73838
+ body: {
73839
+ name?: string;
73840
+ /**
73841
+ * Hosts allowed to send events, such as `brand.com`. Events from any other origin are dropped.
73842
+ */
73843
+ domains?: Array<(string)>;
73844
+ consentMode?: TrackingSiteConsentMode;
73845
+ /**
73846
+ * A subdomain of one of the site's domains, never the domain itself. `null` removes it.
73847
+ */
73848
+ customHostname?: (string) | null;
73849
+ };
73850
+ path: {
73851
+ siteId: string;
73852
+ };
73853
+ };
73854
+
73855
+ export type UpdateTrackingSiteResponse = ({
73856
+ site?: TrackingSite;
73857
+ });
73858
+
73859
+ export type UpdateTrackingSiteError = (ErrorResponse | {
73860
+ error?: string;
73861
+ });
73862
+
73863
+ export type DeleteTrackingSiteData = {
73864
+ path: {
73865
+ siteId: string;
73866
+ };
73867
+ };
73868
+
73869
+ export type DeleteTrackingSiteResponse = (void);
73870
+
73871
+ export type DeleteTrackingSiteError = (ErrorResponse | {
73872
+ error?: string;
73873
+ });
73874
+
73875
+ export type RotateTrackingSiteKeyData = {
73876
+ headers: {
73877
+ /**
73878
+ * A unique key per rotation, such as a UUID.
73879
+ */
73880
+ 'Idempotency-Key': string;
73881
+ };
73882
+ path: {
73883
+ siteId: string;
73884
+ };
73885
+ };
73886
+
73887
+ export type RotateTrackingSiteKeyResponse = ({
73888
+ site?: TrackingSite;
73889
+ });
73890
+
73891
+ export type RotateTrackingSiteKeyError = (ErrorResponse | {
73892
+ error?: string;
73893
+ });
73894
+
73686
73895
  export type GetCampaignConversionGoalsData = {
73687
73896
  path: {
73688
73897
  /**