@getlatedev/node 0.2.1771 → 0.2.1773
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 +109 -15
- package/dist/index.d.ts +109 -15
- 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 +21 -1
- package/src/generated/types.gen.ts +110 -14
|
@@ -10111,6 +10111,10 @@ export type ConversionEvent = {
|
|
|
10111
10111
|
* Taboola click ID (the `tblci` URL param Taboola adds to ad clicks with its `{click_id}` macro). Sent to Taboola as `click-id`, not hashed.
|
|
10112
10112
|
*/
|
|
10113
10113
|
tblci?: string;
|
|
10114
|
+
/**
|
|
10115
|
+
* Outbrain click ID (the `ob_click_id` URL param, filled by the `{{ob_click_id}}` macro you add to the campaign's Track box). Sent to Outbrain as `ob_click_id`, not hashed.
|
|
10116
|
+
*/
|
|
10117
|
+
ob_click_id?: string;
|
|
10114
10118
|
/**
|
|
10115
10119
|
* Impact partner click id (the `irclickid` URL param Impact adds to partner links). Sent to Impact as `ClickId`.
|
|
10116
10120
|
*/
|
|
@@ -21850,7 +21854,7 @@ export type contentType3 = 'story' | 'saved_story' | 'spotlight';
|
|
|
21850
21854
|
|
|
21851
21855
|
export type SocialAccount = {
|
|
21852
21856
|
_id: string;
|
|
21853
|
-
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' | 'applovinads' | 'snapchatads' | 'taboolaads' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'google' | 'microsoft' | 'imap' | 'hubspot' | 'salesforce' | 'webflow' | 'googleanalytics' | 'imessage' | 'tiktokshop' | 'microsoftads' | 'line' | 'wechat' | 'googletagmanager' | 'stripe' | 'googlesearchconsole' | 'campaignmanager360' | 'tradedeskads' | 'tradedeskdsp' | 'amazonads' | 'gohighlevel';
|
|
21857
|
+
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' | 'applovinads' | 'snapchatads' | 'taboolaads' | 'outbrainads' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'google' | 'microsoft' | 'imap' | 'hubspot' | 'salesforce' | 'webflow' | 'googleanalytics' | 'imessage' | 'tiktokshop' | 'microsoftads' | 'line' | 'wechat' | 'googletagmanager' | 'stripe' | 'googlesearchconsole' | 'campaignmanager360' | 'tradedeskads' | 'tradedeskdsp' | 'amazonads' | 'gohighlevel';
|
|
21854
21858
|
profileId: (string | Profile);
|
|
21855
21859
|
username?: string;
|
|
21856
21860
|
displayName?: string;
|
|
@@ -21996,7 +22000,7 @@ export type SocialAccount = {
|
|
|
21996
22000
|
};
|
|
21997
22001
|
};
|
|
21998
22002
|
|
|
21999
|
-
export type platform18 = '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' | 'applovinads' | 'snapchatads' | 'taboolaads' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'google' | 'microsoft' | 'imap' | 'hubspot' | 'salesforce' | 'webflow' | 'googleanalytics' | 'imessage' | 'tiktokshop' | 'microsoftads' | 'line' | 'wechat' | 'googletagmanager' | 'stripe' | 'googlesearchconsole' | 'campaignmanager360' | 'tradedeskads' | 'tradedeskdsp' | 'amazonads' | 'gohighlevel';
|
|
22003
|
+
export type platform18 = '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' | 'applovinads' | 'snapchatads' | 'taboolaads' | 'outbrainads' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'google' | 'microsoft' | 'imap' | 'hubspot' | 'salesforce' | 'webflow' | 'googleanalytics' | 'imessage' | 'tiktokshop' | 'microsoftads' | 'line' | 'wechat' | 'googletagmanager' | 'stripe' | 'googlesearchconsole' | 'campaignmanager360' | 'tradedeskads' | 'tradedeskdsp' | 'amazonads' | 'gohighlevel';
|
|
22000
22004
|
|
|
22001
22005
|
/**
|
|
22002
22006
|
* TikTok accounts only. The account type TikTok reported when the account was connected.
|
|
@@ -38791,7 +38795,7 @@ export type GetAllAccountsHealthData = {
|
|
|
38791
38795
|
/**
|
|
38792
38796
|
* Filter by platform
|
|
38793
38797
|
*/
|
|
38794
|
-
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' | 'microsoftads' | 'whopads' | 'applovinads' | 'snapchatads' | 'taboolaads' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'hubspot' | 'salesforce' | 'gohighlevel' | 'webflow' | 'googleanalytics' | 'line' | 'wechat' | 'googletagmanager' | 'googlesearchconsole' | 'stripe' | 'campaignmanager360' | 'tradedeskads' | 'tradedeskdsp' | 'amazonads';
|
|
38798
|
+
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' | 'microsoftads' | 'whopads' | 'applovinads' | 'snapchatads' | 'taboolaads' | 'outbrainads' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'hubspot' | 'salesforce' | 'gohighlevel' | 'webflow' | 'googleanalytics' | 'line' | 'wechat' | 'googletagmanager' | 'googlesearchconsole' | 'stripe' | 'campaignmanager360' | 'tradedeskads' | 'tradedeskdsp' | 'amazonads';
|
|
38795
38799
|
/**
|
|
38796
38800
|
* Filter by profile ID
|
|
38797
38801
|
*/
|
|
@@ -45821,6 +45825,95 @@ export type ConnectTaboolaAdsCredentialsError = (ErrorResponse | {
|
|
|
45821
45825
|
};
|
|
45822
45826
|
} | unknown);
|
|
45823
45827
|
|
|
45828
|
+
export type ConnectOutbrainAdsCredentialsData = {
|
|
45829
|
+
body: {
|
|
45830
|
+
/**
|
|
45831
|
+
* Outbrain marketer id from Amplify, letters and digits.
|
|
45832
|
+
*/
|
|
45833
|
+
outbrainMarketerId: string;
|
|
45834
|
+
/**
|
|
45835
|
+
* Optional display name for the marketer.
|
|
45836
|
+
*/
|
|
45837
|
+
name?: string;
|
|
45838
|
+
/**
|
|
45839
|
+
* Your Zernio profile ID
|
|
45840
|
+
*/
|
|
45841
|
+
profileId: string;
|
|
45842
|
+
/**
|
|
45843
|
+
* Optional state passthrough for the connect flow.
|
|
45844
|
+
*/
|
|
45845
|
+
state?: string;
|
|
45846
|
+
/**
|
|
45847
|
+
* Optional URL to redirect to after a successful connection, echoed back as redirectUrl.
|
|
45848
|
+
*/
|
|
45849
|
+
redirect_url?: string;
|
|
45850
|
+
};
|
|
45851
|
+
};
|
|
45852
|
+
|
|
45853
|
+
export type ConnectOutbrainAdsCredentialsResponse = ({
|
|
45854
|
+
accountId?: string;
|
|
45855
|
+
outbrainMarketerId?: string;
|
|
45856
|
+
accountName?: string;
|
|
45857
|
+
redirectUrl?: string;
|
|
45858
|
+
});
|
|
45859
|
+
|
|
45860
|
+
export type ConnectOutbrainAdsCredentialsError = (ErrorResponse | {
|
|
45861
|
+
/**
|
|
45862
|
+
* Human-readable error message suitable for end-user display.
|
|
45863
|
+
*/
|
|
45864
|
+
error: string;
|
|
45865
|
+
/**
|
|
45866
|
+
* Machine-readable error code. Stable across versions.
|
|
45867
|
+
*/
|
|
45868
|
+
code: 'PAYMENT_REQUIRED';
|
|
45869
|
+
/**
|
|
45870
|
+
* Discriminator for which gate fired.
|
|
45871
|
+
*/
|
|
45872
|
+
reason: 'free_tier_exceeded' | 'twitter_passthrough' | 'enterprise_required' | 'card_verification_required';
|
|
45873
|
+
/**
|
|
45874
|
+
* Link to the relevant documentation page.
|
|
45875
|
+
*/
|
|
45876
|
+
documentation_url?: string;
|
|
45877
|
+
/**
|
|
45878
|
+
* Deep-link to send the end-user to. For
|
|
45879
|
+
* `free_tier_exceeded` and `twitter_passthrough` this opens
|
|
45880
|
+
* the add-payment-method drawer on the Zernio billing page.
|
|
45881
|
+
* For `enterprise_required` this is the Zernio enterprise
|
|
45882
|
+
* contact page.
|
|
45883
|
+
*
|
|
45884
|
+
*/
|
|
45885
|
+
dashboard_url?: string;
|
|
45886
|
+
/**
|
|
45887
|
+
* Structured context for SDK clients that want to render their own UX. Keys vary by `reason`.
|
|
45888
|
+
*/
|
|
45889
|
+
details?: {
|
|
45890
|
+
/**
|
|
45891
|
+
* How many accounts the free tier allows. Only set when reason=free_tier_exceeded.
|
|
45892
|
+
*/
|
|
45893
|
+
free_tier_account_limit?: number;
|
|
45894
|
+
/**
|
|
45895
|
+
* How many accounts the team currently has connected. Set when reason=free_tier_exceeded or reason=enterprise_required.
|
|
45896
|
+
*/
|
|
45897
|
+
current_account_count?: number;
|
|
45898
|
+
/**
|
|
45899
|
+
* Whether the team currently has a card on file in Stripe. Set when reason=free_tier_exceeded or reason=twitter_passthrough.
|
|
45900
|
+
*/
|
|
45901
|
+
has_payment_method?: boolean;
|
|
45902
|
+
/**
|
|
45903
|
+
* One-time card verification charge in USD cents, credited to usage. Only set when reason=card_verification_required.
|
|
45904
|
+
*/
|
|
45905
|
+
verification_amount_cents?: number;
|
|
45906
|
+
/**
|
|
45907
|
+
* The negotiated connected-account cap from the
|
|
45908
|
+
* team's enterprise contract. Self-service teams
|
|
45909
|
+
* have no cap and never receive this reason. Only
|
|
45910
|
+
* set when reason=enterprise_required.
|
|
45911
|
+
*
|
|
45912
|
+
*/
|
|
45913
|
+
effective_account_limit?: number;
|
|
45914
|
+
};
|
|
45915
|
+
} | unknown);
|
|
45916
|
+
|
|
45824
45917
|
export type ConnectWhopAdsCredentialsData = {
|
|
45825
45918
|
body: {
|
|
45826
45919
|
/**
|
|
@@ -55153,17 +55246,20 @@ export type ReplyToInboxPostData = {
|
|
|
55153
55246
|
*/
|
|
55154
55247
|
message: string;
|
|
55155
55248
|
/**
|
|
55156
|
-
* (Facebook, Bluesky, LinkedIn and
|
|
55249
|
+
* (Facebook, Bluesky, LinkedIn, Threads and X) URL of an image to attach to the comment or reply. The URL must be publicly fetchable. Returns 400 for other platforms.
|
|
55157
55250
|
*/
|
|
55158
55251
|
attachmentUrl?: string;
|
|
55159
55252
|
/**
|
|
55160
|
-
* (Facebook and
|
|
55253
|
+
* (Facebook, Threads and X, optional) How `attachmentUrl` is published. Requires `attachmentUrl`; returns 400 on other platforms.
|
|
55161
55254
|
*
|
|
55162
|
-
* - Omitted: a GIF is detected and posted animated. Detection uses GIPHY links (page, media, embed, sticker; `gph.is` on Threads), `.gif` paths, and an `image/gif` response on Threads.
|
|
55255
|
+
* - Omitted: a GIF is detected and posted animated. Detection uses GIPHY links (page, media, embed, sticker; `gph.is` on Threads and X), `.gif` paths, and an `image/gif` response on Threads and X.
|
|
55163
55256
|
* - `image`: forces a still photo. Threads converts a GIF or WebP to JPEG or PNG.
|
|
55164
55257
|
* - `gif`: forces an animated GIF.
|
|
55165
55258
|
* - Threads GIFs must come from GIPHY, otherwise the request returns 400 `invalid_field_value`.
|
|
55166
|
-
* - Facebook
|
|
55259
|
+
* - Facebook and X get a GIPHY link as their direct GIF.
|
|
55260
|
+
* - X takes one image or GIF from any host, and returns 400 for video or HTML URLs.
|
|
55261
|
+
* - On X, images over 5 MB are compressed and a GIF over 15 MB posts as a still image.
|
|
55262
|
+
* - On X, a GIF always posts animated, even with `attachmentType: image`.
|
|
55167
55263
|
*
|
|
55168
55264
|
*/
|
|
55169
55265
|
attachmentType?: 'image' | 'gif';
|
|
@@ -81287,7 +81383,7 @@ export type SendConversionsData = {
|
|
|
81287
81383
|
};
|
|
81288
81384
|
|
|
81289
81385
|
export type SendConversionsResponse = ({
|
|
81290
|
-
platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads' | 'applovinads' | 'microsoftads' | 'xads' | 'snapchatads' | 'taboolaads' | 'googleanalytics' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'campaignmanager360' | 'tradedeskads' | 'amazonads';
|
|
81386
|
+
platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads' | 'applovinads' | 'microsoftads' | 'xads' | 'snapchatads' | 'taboolaads' | 'outbrainads' | 'googleanalytics' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'campaignmanager360' | 'tradedeskads' | 'amazonads';
|
|
81291
81387
|
/**
|
|
81292
81388
|
* Events accepted by the platform.
|
|
81293
81389
|
*/
|
|
@@ -81916,7 +82012,7 @@ export type SendEventsResponse = ({
|
|
|
81916
82012
|
destinations?: Array<{
|
|
81917
82013
|
accountId?: string;
|
|
81918
82014
|
destinationId?: string;
|
|
81919
|
-
platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads' | 'applovinads' | 'microsoftads' | 'xads' | 'snapchatads' | 'taboolaads' | 'googleanalytics' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'campaignmanager360' | 'tradedeskads' | 'amazonads';
|
|
82015
|
+
platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads' | 'applovinads' | 'microsoftads' | 'xads' | 'snapchatads' | 'taboolaads' | 'outbrainads' | 'googleanalytics' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'campaignmanager360' | 'tradedeskads' | 'amazonads';
|
|
81920
82016
|
/**
|
|
81921
82017
|
* Events the platform accepted.
|
|
81922
82018
|
*/
|
|
@@ -82670,7 +82766,7 @@ export type GetEventResponse = ({
|
|
|
82670
82766
|
deliveries?: Array<{
|
|
82671
82767
|
accountId?: string;
|
|
82672
82768
|
destinationId?: string;
|
|
82673
|
-
platform?: ('metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads' | 'applovinads' | 'microsoftads' | 'xads' | 'snapchatads' | 'taboolaads' | 'googleanalytics' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'campaignmanager360' | 'tradedeskads' | 'amazonads') | null;
|
|
82769
|
+
platform?: ('metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads' | 'applovinads' | 'microsoftads' | 'xads' | 'snapchatads' | 'taboolaads' | 'outbrainads' | 'googleanalytics' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'campaignmanager360' | 'tradedeskads' | 'amazonads') | null;
|
|
82674
82770
|
/**
|
|
82675
82771
|
* `dropped`: not sent because the visitor did not consent; `errorCode` says why (`consent_denied` or `consent_missing`).
|
|
82676
82772
|
*/
|
|
@@ -83290,7 +83386,7 @@ export type ListAdConversionDestinationsData = {
|
|
|
83290
83386
|
};
|
|
83291
83387
|
|
|
83292
83388
|
export type ListAdConversionDestinationsResponse = ({
|
|
83293
|
-
platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads' | 'applovinads' | 'microsoftads' | 'xads' | 'snapchatads' | 'taboolaads' | 'googleanalytics' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'campaignmanager360' | 'tradedeskads' | 'amazonads';
|
|
83389
|
+
platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads' | 'applovinads' | 'microsoftads' | 'xads' | 'snapchatads' | 'taboolaads' | 'outbrainads' | 'googleanalytics' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'campaignmanager360' | 'tradedeskads' | 'amazonads';
|
|
83294
83390
|
destinations?: Array<{
|
|
83295
83391
|
/**
|
|
83296
83392
|
* Destination identifier. Meta: pixel ID. Google:
|
|
@@ -83301,7 +83397,7 @@ export type ListAdConversionDestinationsResponse = ({
|
|
|
83301
83397
|
* or `accounts/{id}/uetTags/{id}`.
|
|
83302
83398
|
* X Ads: pixel event id (`tw-...`). Snapchat:
|
|
83303
83399
|
* Snap Pixel ID (a UUID). Taboola: numeric
|
|
83304
|
-
* Account ID.
|
|
83400
|
+
* Account ID. Outbrain: marketer id.
|
|
83305
83401
|
*
|
|
83306
83402
|
*/
|
|
83307
83403
|
id?: string;
|
|
@@ -83732,7 +83828,7 @@ export type ListConversionDestinationsData = {
|
|
|
83732
83828
|
};
|
|
83733
83829
|
|
|
83734
83830
|
export type ListConversionDestinationsResponse = ({
|
|
83735
|
-
platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads' | 'applovinads' | 'microsoftads' | 'xads' | 'snapchatads' | 'taboolaads' | 'googleanalytics' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'campaignmanager360' | 'tradedeskads' | 'amazonads';
|
|
83831
|
+
platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads' | 'applovinads' | 'microsoftads' | 'xads' | 'snapchatads' | 'taboolaads' | 'outbrainads' | 'googleanalytics' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'campaignmanager360' | 'tradedeskads' | 'amazonads';
|
|
83736
83832
|
destinations?: Array<{
|
|
83737
83833
|
/**
|
|
83738
83834
|
* Destination identifier. Meta: pixel ID. Google:
|
|
@@ -83743,7 +83839,7 @@ export type ListConversionDestinationsResponse = ({
|
|
|
83743
83839
|
* or `accounts/{id}/uetTags/{id}`.
|
|
83744
83840
|
* X Ads: pixel event id (`tw-...`). Snapchat:
|
|
83745
83841
|
* Snap Pixel ID (a UUID). Taboola: numeric
|
|
83746
|
-
* Account ID.
|
|
83842
|
+
* Account ID. Outbrain: marketer id.
|
|
83747
83843
|
*
|
|
83748
83844
|
*/
|
|
83749
83845
|
id?: string;
|