@getlatedev/node 0.2.1261 → 0.2.1262
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 +122 -26
- package/dist/index.d.ts +122 -26
- 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 +48 -15
- package/src/generated/types.gen.ts +123 -25
|
@@ -2322,32 +2322,32 @@ export type billingSystem = 'metronome' | 'stripe' | 'shopify';
|
|
|
2322
2322
|
*/
|
|
2323
2323
|
export type Blog = {
|
|
2324
2324
|
/**
|
|
2325
|
-
* Platform-native blog id. Shopify uses a numeric blog id. WordPress.com uses the numeric site id; self-hosted WordPress and Wix use `1`, scoped to the connected account.
|
|
2325
|
+
* Platform-native blog id. Shopify uses a numeric blog id. WordPress.com uses the numeric site id; self-hosted WordPress and Wix use `1`, scoped to the connected account. Webflow uses the CMS collection id.
|
|
2326
2326
|
*/
|
|
2327
2327
|
id?: string;
|
|
2328
|
-
platform?: 'shopify' | 'wordpress' | 'wix';
|
|
2328
|
+
platform?: 'shopify' | 'wordpress' | 'wix' | 'webflow';
|
|
2329
2329
|
title?: string;
|
|
2330
2330
|
/**
|
|
2331
|
-
* URL slug on Shopify; site hostname on WordPress and Wix.
|
|
2331
|
+
* URL slug on Shopify and Webflow (the collection slug); site hostname on WordPress and Wix.
|
|
2332
2332
|
*/
|
|
2333
2333
|
handle?: string;
|
|
2334
2334
|
};
|
|
2335
2335
|
|
|
2336
|
-
export type platform3 = 'shopify' | 'wordpress' | 'wix';
|
|
2336
|
+
export type platform3 = 'shopify' | 'wordpress' | 'wix' | 'webflow';
|
|
2337
2337
|
|
|
2338
2338
|
/**
|
|
2339
2339
|
* An article inside a blog on the connected platform.
|
|
2340
2340
|
*/
|
|
2341
2341
|
export type BlogArticle = {
|
|
2342
2342
|
/**
|
|
2343
|
-
* Platform-native article/post id: numeric on Shopify and WordPress, a GUID on Wix.
|
|
2343
|
+
* Platform-native article/post id: numeric on Shopify and WordPress, a GUID on Wix, a hex item id on Webflow.
|
|
2344
2344
|
*/
|
|
2345
2345
|
id?: string;
|
|
2346
2346
|
/**
|
|
2347
2347
|
* Platform-native id of the blog the article belongs to.
|
|
2348
2348
|
*/
|
|
2349
2349
|
blogId?: string;
|
|
2350
|
-
platform?: 'shopify' | 'wordpress' | 'wix';
|
|
2350
|
+
platform?: 'shopify' | 'wordpress' | 'wix' | 'webflow';
|
|
2351
2351
|
title?: string;
|
|
2352
2352
|
/**
|
|
2353
2353
|
* Article body as HTML. Wix stores rich content, converted from and to HTML; Wix lists return null (get the article for its body).
|
|
@@ -11335,7 +11335,7 @@ export type contentType3 = 'story' | 'saved_story' | 'spotlight';
|
|
|
11335
11335
|
|
|
11336
11336
|
export type SocialAccount = {
|
|
11337
11337
|
_id: string;
|
|
11338
|
-
platform: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'slack' | 'whatsapp' | 'shopify' | 'wordpress' | 'wix' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads' | 'openaiads' | 'redditads' | 'sms' | 'phone' | 'rcs' | 'whopads' | 'hubspot';
|
|
11338
|
+
platform: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'slack' | 'whatsapp' | 'shopify' | 'wordpress' | 'wix' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads' | 'openaiads' | 'redditads' | 'sms' | 'phone' | 'rcs' | 'whopads' | 'hubspot' | 'webflow';
|
|
11339
11339
|
profileId: (string | Profile);
|
|
11340
11340
|
username?: string;
|
|
11341
11341
|
displayName?: string;
|
|
@@ -11445,7 +11445,7 @@ export type SocialAccount = {
|
|
|
11445
11445
|
};
|
|
11446
11446
|
};
|
|
11447
11447
|
|
|
11448
|
-
export type platform13 = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'slack' | 'whatsapp' | 'shopify' | 'wordpress' | 'wix' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads' | 'openaiads' | 'redditads' | 'sms' | 'phone' | 'rcs' | 'whopads' | 'hubspot';
|
|
11448
|
+
export type platform13 = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'slack' | 'whatsapp' | 'shopify' | 'wordpress' | 'wix' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads' | 'openaiads' | 'redditads' | 'sms' | 'phone' | 'rcs' | 'whopads' | 'hubspot' | 'webflow';
|
|
11449
11449
|
|
|
11450
11450
|
/**
|
|
11451
11451
|
* TikTok accounts only. The account type TikTok reported when the account was connected. `personal` accounts cannot use TikTok direct messages through the API (TikTok limits Business Messaging to Business Accounts): skip the inbox for them and tell the user to switch to a Business Account in the TikTok app, then reconnect. `business` is the prerequisite, not a guarantee; messaging also needs the messaging scopes granted and TikTok's regional availability. `unknown` on accounts connected before this was captured or whose grant left out the account-type scope.
|
|
@@ -20718,7 +20718,7 @@ export type GetAllAccountsHealthData = {
|
|
|
20718
20718
|
/**
|
|
20719
20719
|
* Filter by platform
|
|
20720
20720
|
*/
|
|
20721
|
-
platform?: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'tiktok' | 'youtube' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'slack' | 'whatsapp' | 'shopify' | 'wordpress' | 'wix' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads' | 'openaiads' | 'redditads' | 'whopads' | 'hubspot';
|
|
20721
|
+
platform?: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'tiktok' | 'youtube' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'slack' | 'whatsapp' | 'shopify' | 'wordpress' | 'wix' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads' | 'openaiads' | 'redditads' | 'whopads' | 'hubspot' | 'webflow';
|
|
20722
20722
|
/**
|
|
20723
20723
|
* Filter by profile ID
|
|
20724
20724
|
*/
|
|
@@ -22542,6 +22542,92 @@ export type GetWixConnectUrlError = (unknown | ErrorResponse | {
|
|
|
22542
22542
|
};
|
|
22543
22543
|
});
|
|
22544
22544
|
|
|
22545
|
+
export type ConnectWebflowWithSiteTokenData = {
|
|
22546
|
+
body: {
|
|
22547
|
+
/**
|
|
22548
|
+
* Your Zernio profile ID (get from /v1/profiles).
|
|
22549
|
+
*/
|
|
22550
|
+
profileId: string;
|
|
22551
|
+
/**
|
|
22552
|
+
* Webflow site API token with Sites read and CMS read and write access.
|
|
22553
|
+
*/
|
|
22554
|
+
siteToken: string;
|
|
22555
|
+
};
|
|
22556
|
+
};
|
|
22557
|
+
|
|
22558
|
+
export type ConnectWebflowWithSiteTokenResponse = ({
|
|
22559
|
+
account: {
|
|
22560
|
+
_id: string;
|
|
22561
|
+
platform: 'webflow';
|
|
22562
|
+
/**
|
|
22563
|
+
* Hostname of the connected Webflow site.
|
|
22564
|
+
*/
|
|
22565
|
+
username: string;
|
|
22566
|
+
/**
|
|
22567
|
+
* Webflow site name.
|
|
22568
|
+
*/
|
|
22569
|
+
displayName: string;
|
|
22570
|
+
profileId: string;
|
|
22571
|
+
};
|
|
22572
|
+
});
|
|
22573
|
+
|
|
22574
|
+
export type ConnectWebflowWithSiteTokenError = (unknown | ErrorResponse | {
|
|
22575
|
+
/**
|
|
22576
|
+
* Human-readable error message suitable for end-user display.
|
|
22577
|
+
*/
|
|
22578
|
+
error: string;
|
|
22579
|
+
/**
|
|
22580
|
+
* Machine-readable error code. Stable across versions.
|
|
22581
|
+
*/
|
|
22582
|
+
code: 'PAYMENT_REQUIRED';
|
|
22583
|
+
/**
|
|
22584
|
+
* Discriminator for which gate fired.
|
|
22585
|
+
*/
|
|
22586
|
+
reason: 'free_tier_exceeded' | 'twitter_passthrough' | 'enterprise_required' | 'card_verification_required';
|
|
22587
|
+
/**
|
|
22588
|
+
* Link to the relevant documentation page.
|
|
22589
|
+
*/
|
|
22590
|
+
documentation_url?: string;
|
|
22591
|
+
/**
|
|
22592
|
+
* Deep-link to send the end-user to. For
|
|
22593
|
+
* `free_tier_exceeded` and `twitter_passthrough` this opens
|
|
22594
|
+
* the add-payment-method drawer on the Zernio billing page.
|
|
22595
|
+
* For `enterprise_required` this is the Zernio enterprise
|
|
22596
|
+
* contact page.
|
|
22597
|
+
*
|
|
22598
|
+
*/
|
|
22599
|
+
dashboard_url?: string;
|
|
22600
|
+
/**
|
|
22601
|
+
* Structured context for SDK clients that want to render their own UX. Keys vary by `reason`.
|
|
22602
|
+
*/
|
|
22603
|
+
details?: {
|
|
22604
|
+
/**
|
|
22605
|
+
* How many accounts the free tier allows. Only set when reason=free_tier_exceeded.
|
|
22606
|
+
*/
|
|
22607
|
+
free_tier_account_limit?: number;
|
|
22608
|
+
/**
|
|
22609
|
+
* How many accounts the team currently has connected. Set when reason=free_tier_exceeded or reason=enterprise_required.
|
|
22610
|
+
*/
|
|
22611
|
+
current_account_count?: number;
|
|
22612
|
+
/**
|
|
22613
|
+
* Whether the team currently has a card on file in Stripe. Set when reason=free_tier_exceeded or reason=twitter_passthrough.
|
|
22614
|
+
*/
|
|
22615
|
+
has_payment_method?: boolean;
|
|
22616
|
+
/**
|
|
22617
|
+
* One-time card verification charge in USD cents, credited to usage. Only set when reason=card_verification_required.
|
|
22618
|
+
*/
|
|
22619
|
+
verification_amount_cents?: number;
|
|
22620
|
+
/**
|
|
22621
|
+
* The negotiated connected-account cap from the
|
|
22622
|
+
* team's enterprise contract. Self-service teams
|
|
22623
|
+
* have no cap and never receive this reason. Only
|
|
22624
|
+
* set when reason=enterprise_required.
|
|
22625
|
+
*
|
|
22626
|
+
*/
|
|
22627
|
+
effective_account_limit?: number;
|
|
22628
|
+
};
|
|
22629
|
+
});
|
|
22630
|
+
|
|
22545
22631
|
export type ConnectWordPressWithApplicationPasswordData = {
|
|
22546
22632
|
body: {
|
|
22547
22633
|
/**
|
|
@@ -55707,7 +55793,7 @@ export type GetTrackingTagStatsError = (unknown | ErrorResponse);
|
|
|
55707
55793
|
export type ListBlogsData = {
|
|
55708
55794
|
path: {
|
|
55709
55795
|
/**
|
|
55710
|
-
* Connected Shopify, WordPress or
|
|
55796
|
+
* Connected Shopify, WordPress, Wix or Webflow account id.
|
|
55711
55797
|
*/
|
|
55712
55798
|
accountId: string;
|
|
55713
55799
|
};
|
|
@@ -55724,7 +55810,7 @@ export type ListBlogsData = {
|
|
|
55724
55810
|
};
|
|
55725
55811
|
|
|
55726
55812
|
export type ListBlogsResponse = ({
|
|
55727
|
-
platform?: 'shopify' | 'wordpress' | 'wix';
|
|
55813
|
+
platform?: 'shopify' | 'wordpress' | 'wix' | 'webflow';
|
|
55728
55814
|
blogs?: Array<Blog>;
|
|
55729
55815
|
/**
|
|
55730
55816
|
* Cursor for the next page; null when there are no more pages.
|
|
@@ -55760,7 +55846,7 @@ export type CreateBlogError = (ErrorResponse | unknown);
|
|
|
55760
55846
|
export type GetBlogData = {
|
|
55761
55847
|
path: {
|
|
55762
55848
|
/**
|
|
55763
|
-
* Connected Shopify, WordPress or
|
|
55849
|
+
* Connected Shopify, WordPress, Wix or Webflow account id.
|
|
55764
55850
|
*/
|
|
55765
55851
|
accountId: string;
|
|
55766
55852
|
/**
|
|
@@ -55771,7 +55857,7 @@ export type GetBlogData = {
|
|
|
55771
55857
|
};
|
|
55772
55858
|
|
|
55773
55859
|
export type GetBlogResponse = ({
|
|
55774
|
-
platform?: 'shopify' | 'wordpress' | 'wix';
|
|
55860
|
+
platform?: 'shopify' | 'wordpress' | 'wix' | 'webflow';
|
|
55775
55861
|
blog?: Blog;
|
|
55776
55862
|
});
|
|
55777
55863
|
|
|
@@ -55824,7 +55910,7 @@ export type DeleteBlogError = (ErrorResponse | unknown);
|
|
|
55824
55910
|
export type ListBlogArticlesData = {
|
|
55825
55911
|
path: {
|
|
55826
55912
|
/**
|
|
55827
|
-
* Connected Shopify, WordPress or
|
|
55913
|
+
* Connected Shopify, WordPress, Wix or Webflow account id.
|
|
55828
55914
|
*/
|
|
55829
55915
|
accountId: string;
|
|
55830
55916
|
/**
|
|
@@ -55845,7 +55931,7 @@ export type ListBlogArticlesData = {
|
|
|
55845
55931
|
};
|
|
55846
55932
|
|
|
55847
55933
|
export type ListBlogArticlesResponse = ({
|
|
55848
|
-
platform?: 'shopify' | 'wordpress' | 'wix';
|
|
55934
|
+
platform?: 'shopify' | 'wordpress' | 'wix' | 'webflow';
|
|
55849
55935
|
articles?: Array<BlogArticle>;
|
|
55850
55936
|
/**
|
|
55851
55937
|
* Cursor for the next page; null when there are no more pages.
|
|
@@ -55900,10 +55986,16 @@ export type CreateBlogArticleData = {
|
|
|
55900
55986
|
* ISO 8601 datetime with offset (or Z). A future date schedules publication natively on the platform.
|
|
55901
55987
|
*/
|
|
55902
55988
|
publishDate?: string;
|
|
55989
|
+
/**
|
|
55990
|
+
* Webflow only. The collection's own fields that the Blogs API does not map, keyed by field slug, in Webflow's value format (a Reference is an item id, an Image is { url, alt }). Required by collections with required fields of their own; a create that leaves one empty answers 400 listing them. A slug the API already fills (name, slug, body, summary, image, tags, author, date) or one the collection lacks answers 400. Other platforms answer 400.
|
|
55991
|
+
*/
|
|
55992
|
+
fieldData?: {
|
|
55993
|
+
[key: string]: unknown;
|
|
55994
|
+
};
|
|
55903
55995
|
};
|
|
55904
55996
|
path: {
|
|
55905
55997
|
/**
|
|
55906
|
-
* Connected Shopify, WordPress or
|
|
55998
|
+
* Connected Shopify, WordPress, Wix or Webflow account id.
|
|
55907
55999
|
*/
|
|
55908
56000
|
accountId: string;
|
|
55909
56001
|
/**
|
|
@@ -55914,7 +56006,7 @@ export type CreateBlogArticleData = {
|
|
|
55914
56006
|
};
|
|
55915
56007
|
|
|
55916
56008
|
export type CreateBlogArticleResponse = ({
|
|
55917
|
-
platform?: 'shopify' | 'wordpress' | 'wix';
|
|
56009
|
+
platform?: 'shopify' | 'wordpress' | 'wix' | 'webflow';
|
|
55918
56010
|
article?: BlogArticle;
|
|
55919
56011
|
});
|
|
55920
56012
|
|
|
@@ -55923,11 +56015,11 @@ export type CreateBlogArticleError = (ErrorResponse | unknown);
|
|
|
55923
56015
|
export type GetBlogArticleData = {
|
|
55924
56016
|
path: {
|
|
55925
56017
|
/**
|
|
55926
|
-
* Connected Shopify, WordPress or
|
|
56018
|
+
* Connected Shopify, WordPress, Wix or Webflow account id.
|
|
55927
56019
|
*/
|
|
55928
56020
|
accountId: string;
|
|
55929
56021
|
/**
|
|
55930
|
-
* Platform-native article id: numeric on Shopify and WordPress, a GUID on Wix. Other formats return 400.
|
|
56022
|
+
* Platform-native article id: numeric on Shopify and WordPress, a GUID on Wix, a 24-character hex item id on Webflow. Other formats return 400.
|
|
55931
56023
|
*/
|
|
55932
56024
|
articleId: string;
|
|
55933
56025
|
/**
|
|
@@ -55938,7 +56030,7 @@ export type GetBlogArticleData = {
|
|
|
55938
56030
|
};
|
|
55939
56031
|
|
|
55940
56032
|
export type GetBlogArticleResponse = ({
|
|
55941
|
-
platform?: 'shopify' | 'wordpress' | 'wix';
|
|
56033
|
+
platform?: 'shopify' | 'wordpress' | 'wix' | 'webflow';
|
|
55942
56034
|
article?: BlogArticle;
|
|
55943
56035
|
});
|
|
55944
56036
|
|
|
@@ -55989,14 +56081,20 @@ export type UpdateBlogArticleData = {
|
|
|
55989
56081
|
* ISO 8601 datetime with offset (or Z). A future date schedules publication natively on the platform.
|
|
55990
56082
|
*/
|
|
55991
56083
|
publishDate?: string;
|
|
56084
|
+
/**
|
|
56085
|
+
* Webflow only. The collection's own fields that the Blogs API does not map, keyed by field slug, in Webflow's value format (a Reference is an item id, an Image is { url, alt }). Required by collections with required fields of their own; a create that leaves one empty answers 400 listing them. A slug the API already fills (name, slug, body, summary, image, tags, author, date) or one the collection lacks answers 400. Other platforms answer 400.
|
|
56086
|
+
*/
|
|
56087
|
+
fieldData?: {
|
|
56088
|
+
[key: string]: unknown;
|
|
56089
|
+
};
|
|
55992
56090
|
};
|
|
55993
56091
|
path: {
|
|
55994
56092
|
/**
|
|
55995
|
-
* Connected Shopify, WordPress or
|
|
56093
|
+
* Connected Shopify, WordPress, Wix or Webflow account id.
|
|
55996
56094
|
*/
|
|
55997
56095
|
accountId: string;
|
|
55998
56096
|
/**
|
|
55999
|
-
* Platform-native article id: numeric on Shopify and WordPress, a GUID on Wix. Other formats return 400.
|
|
56097
|
+
* Platform-native article id: numeric on Shopify and WordPress, a GUID on Wix, a 24-character hex item id on Webflow. Other formats return 400.
|
|
56000
56098
|
*/
|
|
56001
56099
|
articleId: string;
|
|
56002
56100
|
/**
|
|
@@ -56007,7 +56105,7 @@ export type UpdateBlogArticleData = {
|
|
|
56007
56105
|
};
|
|
56008
56106
|
|
|
56009
56107
|
export type UpdateBlogArticleResponse = ({
|
|
56010
|
-
platform?: 'shopify' | 'wordpress' | 'wix';
|
|
56108
|
+
platform?: 'shopify' | 'wordpress' | 'wix' | 'webflow';
|
|
56011
56109
|
article?: BlogArticle;
|
|
56012
56110
|
});
|
|
56013
56111
|
|
|
@@ -56016,11 +56114,11 @@ export type UpdateBlogArticleError = (ErrorResponse | unknown);
|
|
|
56016
56114
|
export type DeleteBlogArticleData = {
|
|
56017
56115
|
path: {
|
|
56018
56116
|
/**
|
|
56019
|
-
* Connected Shopify, WordPress or
|
|
56117
|
+
* Connected Shopify, WordPress, Wix or Webflow account id.
|
|
56020
56118
|
*/
|
|
56021
56119
|
accountId: string;
|
|
56022
56120
|
/**
|
|
56023
|
-
* Platform-native article id: numeric on Shopify and WordPress, a GUID on Wix. Other formats return 400.
|
|
56121
|
+
* Platform-native article id: numeric on Shopify and WordPress, a GUID on Wix, a 24-character hex item id on Webflow. Other formats return 400.
|
|
56024
56122
|
*/
|
|
56025
56123
|
articleId: string;
|
|
56026
56124
|
/**
|