@getlatedev/node 0.2.1660 → 0.2.1661
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 +6 -0
- package/dist/index.d.mts +225 -29
- package/dist/index.d.ts +225 -29
- package/dist/index.js +55 -1
- package/dist/index.mjs +55 -1
- package/package.json +1 -1
- package/src/client.ts +24 -0
- package/src/generated/sdk.gen.ts +73 -1
- package/src/generated/types.gen.ts +229 -28
|
@@ -19493,6 +19493,80 @@ export type materialType = 'spark_post' | 'video' | 'carousel' | 'catalog_carous
|
|
|
19493
19493
|
*/
|
|
19494
19494
|
export type TikTokSmartPlusReviewStatus = 'approved' | 'partially_approved' | 'rejected' | 'unknown';
|
|
19495
19495
|
|
|
19496
|
+
export type TrackingSite = {
|
|
19497
|
+
id?: string;
|
|
19498
|
+
profileId?: string;
|
|
19499
|
+
name?: string;
|
|
19500
|
+
status?: 'active' | 'paused' | 'removing';
|
|
19501
|
+
install?: {
|
|
19502
|
+
/**
|
|
19503
|
+
* How the tag is installed. `snippet` means you paste it.
|
|
19504
|
+
*/
|
|
19505
|
+
method?: 'shopify' | 'wordpress' | 'wix' | 'webflow' | 'snippet';
|
|
19506
|
+
storeAccountId?: (string) | null;
|
|
19507
|
+
/**
|
|
19508
|
+
* The script tag to paste, already pointing at the custom subdomain once it is active.
|
|
19509
|
+
*/
|
|
19510
|
+
snippet?: string;
|
|
19511
|
+
};
|
|
19512
|
+
/**
|
|
19513
|
+
* True when the store's orders reach Zernio from the store itself, so website purchases are forwarded but not counted twice.
|
|
19514
|
+
*/
|
|
19515
|
+
storeOrders?: boolean;
|
|
19516
|
+
/**
|
|
19517
|
+
* Public key that names the site in the snippet, such as `zs_...`.
|
|
19518
|
+
*/
|
|
19519
|
+
siteKey?: string;
|
|
19520
|
+
domains?: Array<(string)>;
|
|
19521
|
+
customHostname?: {
|
|
19522
|
+
hostname?: string;
|
|
19523
|
+
status?: 'pending' | 'active' | 'failed';
|
|
19524
|
+
dnsRecord?: {
|
|
19525
|
+
type?: 'CNAME';
|
|
19526
|
+
/**
|
|
19527
|
+
* The record name relative to your domain, such as `t`.
|
|
19528
|
+
*/
|
|
19529
|
+
name?: string;
|
|
19530
|
+
target?: string;
|
|
19531
|
+
};
|
|
19532
|
+
} | null;
|
|
19533
|
+
consentMode?: TrackingSiteConsentMode;
|
|
19534
|
+
/**
|
|
19535
|
+
* One per setup step: `script` for the install, then one per ad account the site sends to, keyed by its platform and ids.
|
|
19536
|
+
*/
|
|
19537
|
+
checks?: Array<{
|
|
19538
|
+
key?: string;
|
|
19539
|
+
status?: 'pending' | 'passed' | 'failed';
|
|
19540
|
+
/**
|
|
19541
|
+
* What to do when the check has not passed.
|
|
19542
|
+
*/
|
|
19543
|
+
detail?: (string) | null;
|
|
19544
|
+
checkedAt?: string;
|
|
19545
|
+
}>;
|
|
19546
|
+
setup?: {
|
|
19547
|
+
/**
|
|
19548
|
+
* `failed` when any check failed, `ready` when all passed.
|
|
19549
|
+
*/
|
|
19550
|
+
status?: 'pending' | 'ready' | 'failed';
|
|
19551
|
+
};
|
|
19552
|
+
createdAt?: string;
|
|
19553
|
+
updatedAt?: string;
|
|
19554
|
+
};
|
|
19555
|
+
|
|
19556
|
+
export type status56 = 'active' | 'paused' | 'removing';
|
|
19557
|
+
|
|
19558
|
+
/**
|
|
19559
|
+
* How the tag is installed. `snippet` means you paste it.
|
|
19560
|
+
*/
|
|
19561
|
+
export type method4 = 'shopify' | 'wordpress' | 'wix' | 'webflow' | 'snippet';
|
|
19562
|
+
|
|
19563
|
+
export type type30 = 'CNAME';
|
|
19564
|
+
|
|
19565
|
+
/**
|
|
19566
|
+
* 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.
|
|
19567
|
+
*/
|
|
19568
|
+
export type TrackingSiteConsentMode = 'eu_opt_in' | 'opt_in' | 'opt_out';
|
|
19569
|
+
|
|
19496
19570
|
/**
|
|
19497
19571
|
* 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
19572
|
*
|
|
@@ -19762,7 +19836,7 @@ export type TrackingWindow = {
|
|
|
19762
19836
|
} | null;
|
|
19763
19837
|
};
|
|
19764
19838
|
|
|
19765
|
-
export type
|
|
19839
|
+
export type status57 = 'open' | 'completing' | 'completed' | 'cancelled';
|
|
19766
19840
|
|
|
19767
19841
|
/**
|
|
19768
19842
|
* How the window closed. Null while it is open.
|
|
@@ -19842,7 +19916,7 @@ export type TreasuryTopup = {
|
|
|
19842
19916
|
hasInvoice?: boolean;
|
|
19843
19917
|
};
|
|
19844
19918
|
|
|
19845
|
-
export type
|
|
19919
|
+
export type method5 = 'card' | 'bank_transfer';
|
|
19846
19920
|
|
|
19847
19921
|
/**
|
|
19848
19922
|
* `balance` funds your balance; `payout_batch` is the card payment of one payout batch, which pays its creators directly.
|
|
@@ -19852,7 +19926,7 @@ export type purpose = 'balance' | 'payout_batch';
|
|
|
19852
19926
|
/**
|
|
19853
19927
|
* `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
19928
|
*/
|
|
19855
|
-
export type
|
|
19929
|
+
export type status58 = 'pending' | 'succeeded' | 'failed' | 'expired';
|
|
19856
19930
|
|
|
19857
19931
|
export type TreasuryTransfer = {
|
|
19858
19932
|
id?: string;
|
|
@@ -19893,7 +19967,7 @@ export type TreasuryTransfer = {
|
|
|
19893
19967
|
|
|
19894
19968
|
export type destinationType = 'creator' | 'ad_account';
|
|
19895
19969
|
|
|
19896
|
-
export type
|
|
19970
|
+
export type status59 = 'pending' | 'paid' | 'failed' | 'reversed';
|
|
19897
19971
|
|
|
19898
19972
|
/**
|
|
19899
19973
|
* 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 +20149,7 @@ export type UploadedFile = {
|
|
|
20075
20149
|
mimeType?: string;
|
|
20076
20150
|
};
|
|
20077
20151
|
|
|
20078
|
-
export type
|
|
20152
|
+
export type type31 = 'image' | 'video' | 'document';
|
|
20079
20153
|
|
|
20080
20154
|
export type UploadTokenResponse = {
|
|
20081
20155
|
token?: string;
|
|
@@ -20084,7 +20158,7 @@ export type UploadTokenResponse = {
|
|
|
20084
20158
|
status?: 'pending' | 'completed' | 'expired';
|
|
20085
20159
|
};
|
|
20086
20160
|
|
|
20087
|
-
export type
|
|
20161
|
+
export type status60 = 'pending' | 'completed' | 'expired';
|
|
20088
20162
|
|
|
20089
20163
|
export type UploadTokenStatusResponse = {
|
|
20090
20164
|
token?: string;
|
|
@@ -20597,7 +20671,7 @@ export type Verification = {
|
|
|
20597
20671
|
resend?: boolean;
|
|
20598
20672
|
};
|
|
20599
20673
|
|
|
20600
|
-
export type
|
|
20674
|
+
export type status61 = 'pending' | 'approved' | 'expired' | 'max_attempts_reached' | 'canceled' | 'delivery_failed';
|
|
20601
20675
|
|
|
20602
20676
|
export type channel5 = 'sms' | 'whatsapp';
|
|
20603
20677
|
|
|
@@ -20827,7 +20901,7 @@ export type WebhookLog = {
|
|
|
20827
20901
|
/**
|
|
20828
20902
|
* Delivery outcome
|
|
20829
20903
|
*/
|
|
20830
|
-
export type
|
|
20904
|
+
export type status62 = 'success' | 'failed';
|
|
20831
20905
|
|
|
20832
20906
|
/**
|
|
20833
20907
|
* Webhook payload for `account.ads.initial_sync_completed` events.
|
|
@@ -20941,7 +21015,7 @@ export type event = 'account.ads.initial_sync_completed';
|
|
|
20941
21015
|
/**
|
|
20942
21016
|
* Overall outcome of the initial sync.
|
|
20943
21017
|
*/
|
|
20944
|
-
export type
|
|
21018
|
+
export type status63 = 'success' | 'failure';
|
|
20945
21019
|
|
|
20946
21020
|
/**
|
|
20947
21021
|
* Stable category for UX branching. New values may be added; existing ones are stable.
|
|
@@ -21472,7 +21546,7 @@ export type WebhookPayloadAdReview = {
|
|
|
21472
21546
|
|
|
21473
21547
|
export type event11 = 'ad.review.approved' | 'ad.review.rejected';
|
|
21474
21548
|
|
|
21475
|
-
export type
|
|
21549
|
+
export type status64 = 'approved' | 'rejected';
|
|
21476
21550
|
|
|
21477
21551
|
/**
|
|
21478
21552
|
* Webhook payload for the `ad_rule.triggered` event.
|
|
@@ -22048,7 +22122,7 @@ export type event17 = 'ad.video.processed';
|
|
|
22048
22122
|
/**
|
|
22049
22123
|
* `ready`: usable as `video.id` on the create endpoints. `error`: Meta could not process it; upload again.
|
|
22050
22124
|
*/
|
|
22051
|
-
export type
|
|
22125
|
+
export type status65 = 'ready' | 'error';
|
|
22052
22126
|
|
|
22053
22127
|
/**
|
|
22054
22128
|
* 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 +22263,7 @@ export type WebhookPayloadAutomationAction = {
|
|
|
22189
22263
|
|
|
22190
22264
|
export type event20 = 'automation.action.applied' | 'automation.action.failed' | 'automation.action.unknown';
|
|
22191
22265
|
|
|
22192
|
-
export type
|
|
22266
|
+
export type status66 = 'applied' | 'skipped' | 'failed' | 'unknown';
|
|
22193
22267
|
|
|
22194
22268
|
/**
|
|
22195
22269
|
* 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 +23623,7 @@ export type WebhookPayloadCommerceOrder = {
|
|
|
23549
23623
|
|
|
23550
23624
|
export type event43 = 'commerce.order.created' | 'commerce.order.updated' | 'commerce.order.refunded';
|
|
23551
23625
|
|
|
23552
|
-
export type
|
|
23626
|
+
export type type32 = 'order';
|
|
23553
23627
|
|
|
23554
23628
|
export type WebhookPayloadCommerceProduct = {
|
|
23555
23629
|
/**
|
|
@@ -23592,7 +23666,7 @@ export type WebhookPayloadCommerceProduct = {
|
|
|
23592
23666
|
|
|
23593
23667
|
export type event44 = 'commerce.product.created' | 'commerce.product.updated' | 'commerce.product.deleted';
|
|
23594
23668
|
|
|
23595
|
-
export type
|
|
23669
|
+
export type type33 = 'product';
|
|
23596
23670
|
|
|
23597
23671
|
/**
|
|
23598
23672
|
* 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 +24067,7 @@ export type event52 = 'email.bounced';
|
|
|
23993
24067
|
/**
|
|
23994
24068
|
* `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
24069
|
*/
|
|
23996
|
-
export type
|
|
24070
|
+
export type type34 = 'hard' | 'soft' | 'undetermined';
|
|
23997
24071
|
|
|
23998
24072
|
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
24073
|
|
|
@@ -24541,7 +24615,7 @@ export type platform21 = 'instagram' | 'facebook' | 'linkedin';
|
|
|
24541
24615
|
/**
|
|
24542
24616
|
* Null on LinkedIn.
|
|
24543
24617
|
*/
|
|
24544
|
-
export type
|
|
24618
|
+
export type type35 = 'caption' | 'post' | 'comment';
|
|
24545
24619
|
|
|
24546
24620
|
/**
|
|
24547
24621
|
* Webhook payload for message received events
|
|
@@ -25655,7 +25729,7 @@ export type event70 = 'notification.sent';
|
|
|
25655
25729
|
*/
|
|
25656
25730
|
export type category3 = 'postFailures' | 'accountIssues' | 'securityAlerts';
|
|
25657
25731
|
|
|
25658
|
-
export type
|
|
25732
|
+
export type type36 = 'post_failed' | 'account_disconnected' | 'api_key_handed_over';
|
|
25659
25733
|
|
|
25660
25734
|
/**
|
|
25661
25735
|
* Webhook payload for phone_number.stock_available events
|
|
@@ -25950,7 +26024,7 @@ export type event74 = 'post.platform.published' | 'post.platform.failed' | 'post
|
|
|
25950
26024
|
/**
|
|
25951
26025
|
* Terminal status this event fires on. Matches the event suffix.
|
|
25952
26026
|
*/
|
|
25953
|
-
export type
|
|
26027
|
+
export type status67 = 'published' | 'failed' | 'deleted';
|
|
25954
26028
|
|
|
25955
26029
|
/**
|
|
25956
26030
|
* Webhook payload for `post.tracking_completed`. Fired once when a post's tracking window ends and its final analytics read has run.
|
|
@@ -26516,7 +26590,7 @@ export type event86 = 'whatsapp.account.name_status_updated';
|
|
|
26516
26590
|
/**
|
|
26517
26591
|
* Normalized from Meta's `decision` (REJECTED -> DECLINED, DEFERRED -> PENDING_REVIEW; the review is still open on DEFERRED, not a rejection).
|
|
26518
26592
|
*/
|
|
26519
|
-
export type
|
|
26593
|
+
export type status68 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
|
|
26520
26594
|
|
|
26521
26595
|
/**
|
|
26522
26596
|
* Webhook payload for `whatsapp.account.quality_updated`. Fired when a connected
|
|
@@ -26650,7 +26724,7 @@ export type event88 = 'whatsapp.account.status_updated';
|
|
|
26650
26724
|
/**
|
|
26651
26725
|
* `active` only on a reinstatement (DISABLED_UPDATE with ban state REINSTATE).
|
|
26652
26726
|
*/
|
|
26653
|
-
export type
|
|
26727
|
+
export type status69 = 'restricted' | 'active';
|
|
26654
26728
|
|
|
26655
26729
|
/**
|
|
26656
26730
|
* Webhook payload for the `whatsapp.contact.identity_changed` event. Fired when
|
|
@@ -26866,7 +26940,7 @@ export type event91 = 'whatsapp.template.status_updated';
|
|
|
26866
26940
|
* request before the template is actually removed.
|
|
26867
26941
|
*
|
|
26868
26942
|
*/
|
|
26869
|
-
export type
|
|
26943
|
+
export type status70 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
|
|
26870
26944
|
|
|
26871
26945
|
export type WebhookPayloadWorkflowRun = {
|
|
26872
26946
|
/**
|
|
@@ -26930,7 +27004,7 @@ export type event92 = 'workflow.run.started' | 'workflow.run.completed' | 'workf
|
|
|
26930
27004
|
/**
|
|
26931
27005
|
* 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
27006
|
*/
|
|
26933
|
-
export type
|
|
27007
|
+
export type status71 = 'running' | 'waiting' | 'completed' | 'exited' | 'failed';
|
|
26934
27008
|
|
|
26935
27009
|
/**
|
|
26936
27010
|
* 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 +27280,7 @@ export type WhatsAppTemplateButton = {
|
|
|
27206
27280
|
navigate_screen?: string;
|
|
27207
27281
|
};
|
|
27208
27282
|
|
|
27209
|
-
export type
|
|
27283
|
+
export type type37 = 'quick_reply' | 'url' | 'phone_number' | 'otp' | 'copy_code' | 'flow' | 'mpm' | 'catalog';
|
|
27210
27284
|
|
|
27211
27285
|
/**
|
|
27212
27286
|
* Required when type is otp
|
|
@@ -27248,7 +27322,7 @@ export type WhatsAppTemplateLookupError = {
|
|
|
27248
27322
|
};
|
|
27249
27323
|
};
|
|
27250
27324
|
|
|
27251
|
-
export type
|
|
27325
|
+
export type type38 = 'platform_error';
|
|
27252
27326
|
|
|
27253
27327
|
export type code4 = 'platform_api_error';
|
|
27254
27328
|
|
|
@@ -27330,7 +27404,7 @@ export type WorkflowExecutionEvent = {
|
|
|
27330
27404
|
|
|
27331
27405
|
export type action2 = 'execution_started' | 'execution_completed' | 'execution_exited' | 'execution_paused' | 'execution_resumed' | 'node_started' | 'node_completed' | 'node_failed' | 'node_skipped';
|
|
27332
27406
|
|
|
27333
|
-
export type
|
|
27407
|
+
export type status72 = 'success' | 'failed' | 'pending';
|
|
27334
27408
|
|
|
27335
27409
|
/**
|
|
27336
27410
|
* A node in a workflow graph. `config` shape depends on `type`.
|
|
@@ -27476,7 +27550,7 @@ export type WorkflowNode = {
|
|
|
27476
27550
|
* integrations (webhook, hubspot_upsert_contact, ai, handoff, start_call).
|
|
27477
27551
|
*
|
|
27478
27552
|
*/
|
|
27479
|
-
export type
|
|
27553
|
+
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
27554
|
|
|
27481
27555
|
/**
|
|
27482
27556
|
* A single X API operation with its per-call price and the Zernio platform methods that trigger it.
|
|
@@ -27612,7 +27686,7 @@ export type XArticleBlock = {
|
|
|
27612
27686
|
entity_ranges?: Array<XArticleEntityRange>;
|
|
27613
27687
|
};
|
|
27614
27688
|
|
|
27615
|
-
export type
|
|
27689
|
+
export type type40 = 'unstyled' | 'header-one' | 'header-two' | 'header-three' | 'unordered-list-item' | 'ordered-list-item' | 'blockquote' | 'atomic';
|
|
27616
27690
|
|
|
27617
27691
|
/**
|
|
27618
27692
|
* X's snake_case content-state shape. Standard DraftJS camelCase fields such as entityMap, inlineStyleRanges, and entityRanges are rejected.
|
|
@@ -27691,7 +27765,7 @@ export type XArticleEntity = {
|
|
|
27691
27765
|
|
|
27692
27766
|
export type mutability = 'immutable' | 'mutable' | 'segmented';
|
|
27693
27767
|
|
|
27694
|
-
export type
|
|
27768
|
+
export type type41 = 'divider' | 'latex';
|
|
27695
27769
|
|
|
27696
27770
|
/**
|
|
27697
27771
|
* The referenced entity must exist, and offset plus length must not exceed the containing block's text length.
|
|
@@ -73683,6 +73757,133 @@ export type DeleteForwardingRuleError = (ErrorResponse | {
|
|
|
73683
73757
|
error?: string;
|
|
73684
73758
|
});
|
|
73685
73759
|
|
|
73760
|
+
export type ListTrackingSitesData = {
|
|
73761
|
+
query?: {
|
|
73762
|
+
/**
|
|
73763
|
+
* `pagination.nextCursor` from the previous page.
|
|
73764
|
+
*/
|
|
73765
|
+
cursor?: string;
|
|
73766
|
+
limit?: number;
|
|
73767
|
+
profileId?: string;
|
|
73768
|
+
};
|
|
73769
|
+
};
|
|
73770
|
+
|
|
73771
|
+
export type ListTrackingSitesResponse = ({
|
|
73772
|
+
sites?: Array<TrackingSite>;
|
|
73773
|
+
pagination?: {
|
|
73774
|
+
/**
|
|
73775
|
+
* Pass as `cursor` for the next page; null on the last page.
|
|
73776
|
+
*/
|
|
73777
|
+
nextCursor?: (string) | null;
|
|
73778
|
+
};
|
|
73779
|
+
});
|
|
73780
|
+
|
|
73781
|
+
export type ListTrackingSitesError = (ErrorResponse);
|
|
73782
|
+
|
|
73783
|
+
export type CreateTrackingSiteData = {
|
|
73784
|
+
body: ({
|
|
73785
|
+
profileId: string;
|
|
73786
|
+
/**
|
|
73787
|
+
* A Shopify, WordPress, Wix or Webflow account connected to the profile.
|
|
73788
|
+
*/
|
|
73789
|
+
storeAccountId: string;
|
|
73790
|
+
/**
|
|
73791
|
+
* The store's public address, when it differs from the one the store reports.
|
|
73792
|
+
*/
|
|
73793
|
+
url?: string;
|
|
73794
|
+
} | {
|
|
73795
|
+
profileId: string;
|
|
73796
|
+
/**
|
|
73797
|
+
* The website, such as `https://brand.com`. A bare domain also allows its `www.` host.
|
|
73798
|
+
*/
|
|
73799
|
+
url: string;
|
|
73800
|
+
});
|
|
73801
|
+
headers: {
|
|
73802
|
+
/**
|
|
73803
|
+
* A unique key per site you create, such as a UUID. A retry with the same key and body returns the same site.
|
|
73804
|
+
*/
|
|
73805
|
+
'Idempotency-Key': string;
|
|
73806
|
+
};
|
|
73807
|
+
};
|
|
73808
|
+
|
|
73809
|
+
export type CreateTrackingSiteResponse = ({
|
|
73810
|
+
site?: TrackingSite;
|
|
73811
|
+
});
|
|
73812
|
+
|
|
73813
|
+
export type CreateTrackingSiteError = (ErrorResponse | {
|
|
73814
|
+
error?: string;
|
|
73815
|
+
});
|
|
73816
|
+
|
|
73817
|
+
export type GetTrackingSiteData = {
|
|
73818
|
+
path: {
|
|
73819
|
+
siteId: string;
|
|
73820
|
+
};
|
|
73821
|
+
};
|
|
73822
|
+
|
|
73823
|
+
export type GetTrackingSiteResponse = ({
|
|
73824
|
+
site?: TrackingSite;
|
|
73825
|
+
});
|
|
73826
|
+
|
|
73827
|
+
export type GetTrackingSiteError = (ErrorResponse);
|
|
73828
|
+
|
|
73829
|
+
export type UpdateTrackingSiteData = {
|
|
73830
|
+
body: {
|
|
73831
|
+
name?: string;
|
|
73832
|
+
/**
|
|
73833
|
+
* Hosts allowed to send events, such as `brand.com`. Events from any other origin are dropped.
|
|
73834
|
+
*/
|
|
73835
|
+
domains?: Array<(string)>;
|
|
73836
|
+
consentMode?: TrackingSiteConsentMode;
|
|
73837
|
+
/**
|
|
73838
|
+
* A subdomain of one of the site's domains, never the domain itself. `null` removes it.
|
|
73839
|
+
*/
|
|
73840
|
+
customHostname?: (string) | null;
|
|
73841
|
+
};
|
|
73842
|
+
path: {
|
|
73843
|
+
siteId: string;
|
|
73844
|
+
};
|
|
73845
|
+
};
|
|
73846
|
+
|
|
73847
|
+
export type UpdateTrackingSiteResponse = ({
|
|
73848
|
+
site?: TrackingSite;
|
|
73849
|
+
});
|
|
73850
|
+
|
|
73851
|
+
export type UpdateTrackingSiteError = (ErrorResponse | {
|
|
73852
|
+
error?: string;
|
|
73853
|
+
});
|
|
73854
|
+
|
|
73855
|
+
export type DeleteTrackingSiteData = {
|
|
73856
|
+
path: {
|
|
73857
|
+
siteId: string;
|
|
73858
|
+
};
|
|
73859
|
+
};
|
|
73860
|
+
|
|
73861
|
+
export type DeleteTrackingSiteResponse = (void);
|
|
73862
|
+
|
|
73863
|
+
export type DeleteTrackingSiteError = (ErrorResponse | {
|
|
73864
|
+
error?: string;
|
|
73865
|
+
});
|
|
73866
|
+
|
|
73867
|
+
export type RotateTrackingSiteKeyData = {
|
|
73868
|
+
headers: {
|
|
73869
|
+
/**
|
|
73870
|
+
* A unique key per rotation, such as a UUID.
|
|
73871
|
+
*/
|
|
73872
|
+
'Idempotency-Key': string;
|
|
73873
|
+
};
|
|
73874
|
+
path: {
|
|
73875
|
+
siteId: string;
|
|
73876
|
+
};
|
|
73877
|
+
};
|
|
73878
|
+
|
|
73879
|
+
export type RotateTrackingSiteKeyResponse = ({
|
|
73880
|
+
site?: TrackingSite;
|
|
73881
|
+
});
|
|
73882
|
+
|
|
73883
|
+
export type RotateTrackingSiteKeyError = (ErrorResponse | {
|
|
73884
|
+
error?: string;
|
|
73885
|
+
});
|
|
73886
|
+
|
|
73686
73887
|
export type GetCampaignConversionGoalsData = {
|
|
73687
73888
|
path: {
|
|
73688
73889
|
/**
|