@getlatedev/node 0.2.1265 → 0.2.1266
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 +3 -2
- package/dist/index.d.mts +99 -20
- package/dist/index.d.ts +99 -20
- 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 +36 -7
- package/src/generated/types.gen.ts +100 -20
|
@@ -11510,14 +11510,14 @@ export type platform13 = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'link
|
|
|
11510
11510
|
export type tiktokAccountType = 'business' | 'personal' | 'unknown';
|
|
11511
11511
|
|
|
11512
11512
|
/**
|
|
11513
|
-
* A tracking tag's install on a connected store: a Shopify web pixel, a Custom HTML widget on a WordPress site,
|
|
11513
|
+
* A tracking tag's install on a connected store: a Shopify web pixel, a Custom HTML widget on a WordPress site, the Zernio embedded script on a Wix site, or the Zernio custom code script on a Webflow site. Fields marked with a platform are present only for it.
|
|
11514
11514
|
*/
|
|
11515
11515
|
export type StorePixelInstall = {
|
|
11516
11516
|
storeAccountId?: string;
|
|
11517
11517
|
/**
|
|
11518
11518
|
* The store platform.
|
|
11519
11519
|
*/
|
|
11520
|
-
platform?: 'shopify' | 'wordpress' | 'wix';
|
|
11520
|
+
platform?: 'shopify' | 'wordpress' | 'wix' | 'webflow';
|
|
11521
11521
|
/**
|
|
11522
11522
|
* Platform of the tag this install is about (e.g. `metaads`).
|
|
11523
11523
|
*/
|
|
@@ -11527,7 +11527,7 @@ export type StorePixelInstall = {
|
|
|
11527
11527
|
*/
|
|
11528
11528
|
siteTagId?: string;
|
|
11529
11529
|
/**
|
|
11530
|
-
* Shopify and
|
|
11530
|
+
* Shopify, Wix and Webflow: this tag is the one the store fires for its platform. WordPress: the Zernio widget for this tag is in an active widget area with its script intact.
|
|
11531
11531
|
*/
|
|
11532
11532
|
installed?: boolean;
|
|
11533
11533
|
/**
|
|
@@ -11535,11 +11535,11 @@ export type StorePixelInstall = {
|
|
|
11535
11535
|
*/
|
|
11536
11536
|
shopDomain?: string;
|
|
11537
11537
|
/**
|
|
11538
|
-
* Shopify and
|
|
11538
|
+
* Shopify, Wix and Webflow only: the tag of the same platform the store fires now (may be a different tag), or null.
|
|
11539
11539
|
*/
|
|
11540
11540
|
installedTagId?: (string) | null;
|
|
11541
11541
|
/**
|
|
11542
|
-
* GET only on WordPress, always on Shopify and
|
|
11542
|
+
* GET only on WordPress, always on Shopify, Wix and Webflow: every Zernio tag on the store, all platforms.
|
|
11543
11543
|
*/
|
|
11544
11544
|
tags?: Array<{
|
|
11545
11545
|
platform?: string;
|
|
@@ -11562,9 +11562,13 @@ export type StorePixelInstall = {
|
|
|
11562
11562
|
*/
|
|
11563
11563
|
webPixelId?: (string) | null;
|
|
11564
11564
|
/**
|
|
11565
|
-
* WordPress and
|
|
11565
|
+
* WordPress, Wix and Webflow only. Null on a Wix site that was never published.
|
|
11566
11566
|
*/
|
|
11567
11567
|
siteUrl?: (string) | null;
|
|
11568
|
+
/**
|
|
11569
|
+
* Webflow only, always true: the change reaches the live site on its next publish.
|
|
11570
|
+
*/
|
|
11571
|
+
publishRequired?: boolean;
|
|
11568
11572
|
/**
|
|
11569
11573
|
* WordPress only.
|
|
11570
11574
|
*/
|
|
@@ -11579,11 +11583,6 @@ export type StorePixelInstall = {
|
|
|
11579
11583
|
sidebarId?: (string) | null;
|
|
11580
11584
|
};
|
|
11581
11585
|
|
|
11582
|
-
/**
|
|
11583
|
-
* The store platform.
|
|
11584
|
-
*/
|
|
11585
|
-
export type platform14 = 'shopify' | 'wordpress' | 'wix';
|
|
11586
|
-
|
|
11587
11586
|
/**
|
|
11588
11587
|
* WordPress only.
|
|
11589
11588
|
*/
|
|
@@ -12295,7 +12294,7 @@ export type TrackingTag = {
|
|
|
12295
12294
|
autoTagging?: boolean;
|
|
12296
12295
|
};
|
|
12297
12296
|
|
|
12298
|
-
export type
|
|
12297
|
+
export type platform14 = 'metaads' | 'openaiads' | 'tiktokads' | 'googleads' | 'xads' | 'linkedinads' | 'pinterestads' | 'whopads';
|
|
12299
12298
|
|
|
12300
12299
|
/**
|
|
12301
12300
|
* Platform-native flavor of the tag (Meta: `pixel`).
|
|
@@ -14211,7 +14210,7 @@ export type WebhookPayloadComment = {
|
|
|
14211
14210
|
|
|
14212
14211
|
export type event14 = 'comment.received';
|
|
14213
14212
|
|
|
14214
|
-
export type
|
|
14213
|
+
export type platform15 = 'instagram' | 'facebook' | 'threads' | 'youtube' | 'linkedin' | 'bluesky' | 'reddit' | 'tiktok';
|
|
14215
14214
|
|
|
14216
14215
|
export type WebhookPayloadCommerceOrder = {
|
|
14217
14216
|
/**
|
|
@@ -14573,7 +14572,7 @@ export type WebhookPayloadLead = {
|
|
|
14573
14572
|
|
|
14574
14573
|
export type event22 = 'lead.received';
|
|
14575
14574
|
|
|
14576
|
-
export type
|
|
14575
|
+
export type platform16 = 'facebook';
|
|
14577
14576
|
|
|
14578
14577
|
/**
|
|
14579
14578
|
* Webhook payload for message received events
|
|
@@ -15590,7 +15589,7 @@ export type event27 = 'message.sent';
|
|
|
15590
15589
|
/**
|
|
15591
15590
|
* Every platform whose outgoing messages Zernio observes. sms is absent on purpose: its carrier receipts update delivery status and never raise message.sent.
|
|
15592
15591
|
*/
|
|
15593
|
-
export type
|
|
15592
|
+
export type platform17 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 'twitter' | 'reddit' | 'bluesky' | 'slack' | 'tiktok' | 'imessage';
|
|
15594
15593
|
|
|
15595
15594
|
/**
|
|
15596
15595
|
* WhatsApp send origin. whatsapp_business_app when sent from the WhatsApp Business phone app on a Coexistence number; cloud_api when sent through Zernio (dashboard, API, or broadcasts); meta_business_agent when Meta Business Agent answered on the number. Absent on non-WhatsApp platforms. Says where WhatsApp saw the send come from, not which Zernio surface produced it: read sentVia for that.
|
|
@@ -16165,7 +16164,7 @@ export type WebhookPayloadWhatsAppAccountAlertReceived = {
|
|
|
16165
16164
|
|
|
16166
16165
|
export type event38 = 'whatsapp.account.alert_received';
|
|
16167
16166
|
|
|
16168
|
-
export type
|
|
16167
|
+
export type platform18 = 'whatsapp';
|
|
16169
16168
|
|
|
16170
16169
|
/**
|
|
16171
16170
|
* Webhook payload for the `whatsapp.account.name_status_updated` event.
|
|
@@ -22599,6 +22598,87 @@ export type GetWixConnectUrlError = (unknown | ErrorResponse | {
|
|
|
22599
22598
|
};
|
|
22600
22599
|
});
|
|
22601
22600
|
|
|
22601
|
+
export type GetWebflowConnectUrlData = {
|
|
22602
|
+
query: {
|
|
22603
|
+
/**
|
|
22604
|
+
* Your Zernio profile ID (get from /v1/profiles).
|
|
22605
|
+
*/
|
|
22606
|
+
profileId: string;
|
|
22607
|
+
/**
|
|
22608
|
+
* Custom redirect after connection. Must be an absolute http(s) URL or custom app scheme such as `myapp://callback`; relative and unsafe URLs return 400.
|
|
22609
|
+
*/
|
|
22610
|
+
redirect_url?: string;
|
|
22611
|
+
};
|
|
22612
|
+
};
|
|
22613
|
+
|
|
22614
|
+
export type GetWebflowConnectUrlResponse = ({
|
|
22615
|
+
/**
|
|
22616
|
+
* Webflow consent URL to open in the user agent.
|
|
22617
|
+
*/
|
|
22618
|
+
authUrl: string;
|
|
22619
|
+
/**
|
|
22620
|
+
* Authenticated, expiring state handled by the callback.
|
|
22621
|
+
*/
|
|
22622
|
+
state: string;
|
|
22623
|
+
});
|
|
22624
|
+
|
|
22625
|
+
export type GetWebflowConnectUrlError = (unknown | ErrorResponse | {
|
|
22626
|
+
/**
|
|
22627
|
+
* Human-readable error message suitable for end-user display.
|
|
22628
|
+
*/
|
|
22629
|
+
error: string;
|
|
22630
|
+
/**
|
|
22631
|
+
* Machine-readable error code. Stable across versions.
|
|
22632
|
+
*/
|
|
22633
|
+
code: 'PAYMENT_REQUIRED';
|
|
22634
|
+
/**
|
|
22635
|
+
* Discriminator for which gate fired.
|
|
22636
|
+
*/
|
|
22637
|
+
reason: 'free_tier_exceeded' | 'twitter_passthrough' | 'enterprise_required' | 'card_verification_required';
|
|
22638
|
+
/**
|
|
22639
|
+
* Link to the relevant documentation page.
|
|
22640
|
+
*/
|
|
22641
|
+
documentation_url?: string;
|
|
22642
|
+
/**
|
|
22643
|
+
* Deep-link to send the end-user to. For
|
|
22644
|
+
* `free_tier_exceeded` and `twitter_passthrough` this opens
|
|
22645
|
+
* the add-payment-method drawer on the Zernio billing page.
|
|
22646
|
+
* For `enterprise_required` this is the Zernio enterprise
|
|
22647
|
+
* contact page.
|
|
22648
|
+
*
|
|
22649
|
+
*/
|
|
22650
|
+
dashboard_url?: string;
|
|
22651
|
+
/**
|
|
22652
|
+
* Structured context for SDK clients that want to render their own UX. Keys vary by `reason`.
|
|
22653
|
+
*/
|
|
22654
|
+
details?: {
|
|
22655
|
+
/**
|
|
22656
|
+
* How many accounts the free tier allows. Only set when reason=free_tier_exceeded.
|
|
22657
|
+
*/
|
|
22658
|
+
free_tier_account_limit?: number;
|
|
22659
|
+
/**
|
|
22660
|
+
* How many accounts the team currently has connected. Set when reason=free_tier_exceeded or reason=enterprise_required.
|
|
22661
|
+
*/
|
|
22662
|
+
current_account_count?: number;
|
|
22663
|
+
/**
|
|
22664
|
+
* Whether the team currently has a card on file in Stripe. Set when reason=free_tier_exceeded or reason=twitter_passthrough.
|
|
22665
|
+
*/
|
|
22666
|
+
has_payment_method?: boolean;
|
|
22667
|
+
/**
|
|
22668
|
+
* One-time card verification charge in USD cents, credited to usage. Only set when reason=card_verification_required.
|
|
22669
|
+
*/
|
|
22670
|
+
verification_amount_cents?: number;
|
|
22671
|
+
/**
|
|
22672
|
+
* The negotiated connected-account cap from the
|
|
22673
|
+
* team's enterprise contract. Self-service teams
|
|
22674
|
+
* have no cap and never receive this reason. Only
|
|
22675
|
+
* set when reason=enterprise_required.
|
|
22676
|
+
*
|
|
22677
|
+
*/
|
|
22678
|
+
effective_account_limit?: number;
|
|
22679
|
+
};
|
|
22680
|
+
});
|
|
22681
|
+
|
|
22602
22682
|
export type ConnectWebflowWithSiteTokenData = {
|
|
22603
22683
|
body: {
|
|
22604
22684
|
/**
|
|
@@ -55636,7 +55716,7 @@ export type RemoveTrackingTagSharedAccountError = (unknown | ErrorResponse);
|
|
|
55636
55716
|
export type InstallTrackingTagOnStoreData = {
|
|
55637
55717
|
body: {
|
|
55638
55718
|
/**
|
|
55639
|
-
* The connected Shopify (`shopify`), WordPress (`wordpress`)
|
|
55719
|
+
* The connected Shopify (`shopify`), WordPress (`wordpress`), Wix (`wix`) or Webflow (`webflow`) account id.
|
|
55640
55720
|
*/
|
|
55641
55721
|
storeAccountId: string;
|
|
55642
55722
|
/**
|
|
@@ -55665,7 +55745,7 @@ export type InstallTrackingTagOnStoreResponse = ({
|
|
|
55665
55745
|
platform?: 'metaads' | 'tiktokads' | 'googleads' | 'xads' | 'openaiads' | 'linkedinads' | 'pinterestads' | 'whopads';
|
|
55666
55746
|
install?: (StorePixelInstall & {
|
|
55667
55747
|
/**
|
|
55668
|
-
* Shopify and
|
|
55748
|
+
* Shopify, Wix and Webflow only: the pixel this install replaced on the store, if any.
|
|
55669
55749
|
*/
|
|
55670
55750
|
replacedTagId?: (string) | null;
|
|
55671
55751
|
/**
|
|
@@ -55708,7 +55788,7 @@ export type GetTrackingTagStoreInstallData = {
|
|
|
55708
55788
|
*/
|
|
55709
55789
|
adAccountId?: string;
|
|
55710
55790
|
/**
|
|
55711
|
-
* The connected Shopify, WordPress or
|
|
55791
|
+
* The connected Shopify, WordPress, Wix or Webflow account id.
|
|
55712
55792
|
*/
|
|
55713
55793
|
storeAccountId: string;
|
|
55714
55794
|
};
|
|
@@ -55756,7 +55836,7 @@ export type RemoveTrackingTagFromStoreData = {
|
|
|
55756
55836
|
*/
|
|
55757
55837
|
adAccountId?: string;
|
|
55758
55838
|
/**
|
|
55759
|
-
* The connected Shopify, WordPress or
|
|
55839
|
+
* The connected Shopify, WordPress, Wix or Webflow account id.
|
|
55760
55840
|
*/
|
|
55761
55841
|
storeAccountId: string;
|
|
55762
55842
|
};
|