@getlatedev/node 0.2.1744 → 0.2.1746

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.
@@ -21567,7 +21567,7 @@ export type contentType3 = 'story' | 'saved_story' | 'spotlight';
21567
21567
 
21568
21568
  export type SocialAccount = {
21569
21569
  _id: string;
21570
- 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' | 'amazonads' | 'gohighlevel';
21570
+ 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';
21571
21571
  profileId: (string | Profile);
21572
21572
  username?: string;
21573
21573
  displayName?: string;
@@ -21713,7 +21713,7 @@ export type SocialAccount = {
21713
21713
  };
21714
21714
  };
21715
21715
 
21716
- 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' | 'amazonads' | 'gohighlevel';
21716
+ 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';
21717
21717
 
21718
21718
  /**
21719
21719
  * TikTok accounts only. The account type TikTok reported when the account was connected.
@@ -38432,7 +38432,7 @@ export type GetAllAccountsHealthData = {
38432
38432
  /**
38433
38433
  * Filter by platform
38434
38434
  */
38435
- 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' | 'amazonads';
38435
+ 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';
38436
38436
  /**
38437
38437
  * Filter by profile ID
38438
38438
  */
@@ -45212,6 +45212,110 @@ export type ConnectTradeDeskAdsCredentialsError = (ErrorResponse | {
45212
45212
  };
45213
45213
  } | unknown);
45214
45214
 
45215
+ export type ConnectTradeDeskAdsPartnerData = {
45216
+ body: {
45217
+ /**
45218
+ * Trade Desk Partner ID, a short code such as `ptn1234`. Stored and echoed lowercased.
45219
+ */
45220
+ partnerId: string;
45221
+ /**
45222
+ * API token of a Trade Desk user with API access to the partner.
45223
+ */
45224
+ apiToken: string;
45225
+ /**
45226
+ * Advertiser ids to keep. Left out or empty, a new connection keeps every advertiser and a reconnect keeps its saved selection.
45227
+ */
45228
+ adAccountIds?: Array<(string)>;
45229
+ /**
45230
+ * Optional display name for the account.
45231
+ */
45232
+ name?: string;
45233
+ /**
45234
+ * Your Zernio profile ID
45235
+ */
45236
+ profileId: string;
45237
+ /**
45238
+ * Optional state passthrough for the connect flow.
45239
+ */
45240
+ state?: string;
45241
+ /**
45242
+ * Optional URL to redirect to after a successful connection, echoed back as redirectUrl.
45243
+ */
45244
+ redirect_url?: string;
45245
+ };
45246
+ };
45247
+
45248
+ export type ConnectTradeDeskAdsPartnerResponse = ({
45249
+ accountId?: string;
45250
+ partnerId?: string;
45251
+ accountName?: string;
45252
+ /**
45253
+ * Every advertiser the token reaches under the partner, whatever adAccountIds keeps.
45254
+ */
45255
+ advertisers?: Array<{
45256
+ id?: string;
45257
+ name?: string;
45258
+ }>;
45259
+ redirectUrl?: string;
45260
+ });
45261
+
45262
+ export type ConnectTradeDeskAdsPartnerError = (ErrorResponse | unknown | {
45263
+ /**
45264
+ * Human-readable error message suitable for end-user display.
45265
+ */
45266
+ error: string;
45267
+ /**
45268
+ * Machine-readable error code. Stable across versions.
45269
+ */
45270
+ code: 'PAYMENT_REQUIRED';
45271
+ /**
45272
+ * Discriminator for which gate fired.
45273
+ */
45274
+ reason: 'free_tier_exceeded' | 'twitter_passthrough' | 'enterprise_required' | 'card_verification_required';
45275
+ /**
45276
+ * Link to the relevant documentation page.
45277
+ */
45278
+ documentation_url?: string;
45279
+ /**
45280
+ * Deep-link to send the end-user to. For
45281
+ * `free_tier_exceeded` and `twitter_passthrough` this opens
45282
+ * the add-payment-method drawer on the Zernio billing page.
45283
+ * For `enterprise_required` this is the Zernio enterprise
45284
+ * contact page.
45285
+ *
45286
+ */
45287
+ dashboard_url?: string;
45288
+ /**
45289
+ * Structured context for SDK clients that want to render their own UX. Keys vary by `reason`.
45290
+ */
45291
+ details?: {
45292
+ /**
45293
+ * How many accounts the free tier allows. Only set when reason=free_tier_exceeded.
45294
+ */
45295
+ free_tier_account_limit?: number;
45296
+ /**
45297
+ * How many accounts the team currently has connected. Set when reason=free_tier_exceeded or reason=enterprise_required.
45298
+ */
45299
+ current_account_count?: number;
45300
+ /**
45301
+ * Whether the team currently has a card on file in Stripe. Set when reason=free_tier_exceeded or reason=twitter_passthrough.
45302
+ */
45303
+ has_payment_method?: boolean;
45304
+ /**
45305
+ * One-time card verification charge in USD cents, credited to usage. Only set when reason=card_verification_required.
45306
+ */
45307
+ verification_amount_cents?: number;
45308
+ /**
45309
+ * The negotiated connected-account cap from the
45310
+ * team's enterprise contract. Self-service teams
45311
+ * have no cap and never receive this reason. Only
45312
+ * set when reason=enterprise_required.
45313
+ *
45314
+ */
45315
+ effective_account_limit?: number;
45316
+ };
45317
+ });
45318
+
45215
45319
  export type ConnectTaboolaAdsCredentialsData = {
45216
45320
  body: {
45217
45321
  /**
@@ -65804,7 +65908,7 @@ export type ListAdsData = {
65804
65908
  * Meta only: Facebook Page ID. Returns only ads whose creative is backed by this Page (a Meta ad account serves ads for every Page in the Business Manager). Matches each ad's `creative.pageId`; ads with no page signal (rare IG-only creatives) never match. Mirrors the same filter on /v1/ads/campaigns and /v1/ads/tree.
65805
65909
  */
65806
65910
  pageId?: string;
65807
- platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
65911
+ platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk';
65808
65912
  /**
65809
65913
  * Meta ad ID. Returns the ad with this platform-side ad ID.
65810
65914
  */
@@ -68020,7 +68124,7 @@ export type ListAdCampaignsData = {
68020
68124
  * Meta only: Facebook Page ID. Campaigns have no Page of their own, so this keeps campaigns having at least one ad backed by this Page, with adCount and metrics computed over those ads only. Mirrors the same filter on /v1/ads and /v1/ads/tree.
68021
68125
  */
68022
68126
  pageId?: string;
68023
- platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
68127
+ platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk';
68024
68128
  /**
68025
68129
  * Profile ID
68026
68130
  */
@@ -68194,7 +68298,7 @@ export type CreateAdCampaignError = (unknown | ErrorResponse);
68194
68298
  export type UpdateAdCampaignStatusData = {
68195
68299
  body: {
68196
68300
  status: 'active' | 'paused';
68197
- platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
68301
+ platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk';
68198
68302
  };
68199
68303
  headers?: {
68200
68304
  /**
@@ -68443,7 +68547,7 @@ export type UpdateAdCampaignData = {
68443
68547
  /**
68444
68548
  * Required: platform campaign IDs are not globally unique.
68445
68549
  */
68446
- platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
68550
+ platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk';
68447
68551
  /**
68448
68552
  * **Meta only.** Zernio SocialAccount id owning the ad account. Needed only for an EMPTY campaign (zero ads); ignored otherwise.
68449
68553
  */
@@ -68570,7 +68674,7 @@ export type UpdateAdCampaignError = (unknown | ErrorResponse);
68570
68674
 
68571
68675
  export type DeleteAdCampaignData = {
68572
68676
  body: {
68573
- platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
68677
+ platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk';
68574
68678
  /**
68575
68679
  * Zernio SocialAccount id owning the ad account. Required only to delete an EMPTY campaign (zero ads), which has no local Ad documents to resolve a token from.
68576
68680
  */
@@ -70034,7 +70138,7 @@ export type GetAdSetTargetingError = (ErrorResponse | unknown);
70034
70138
  export type UpdateAdSetStatusData = {
70035
70139
  body: {
70036
70140
  status: 'active' | 'paused';
70037
- platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
70141
+ platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk';
70038
70142
  };
70039
70143
  headers?: {
70040
70144
  /**
@@ -70169,7 +70273,7 @@ export type GetAdTreeData = {
70169
70273
  * Meta only: Facebook Page ID. Prunes the tree to ads whose creative is backed by this Page: campaigns and ad sets with no ad on the Page drop out, and rolled-up metrics cover only the Page's ads. Mirrors the same filter on /v1/ads and /v1/ads/campaigns.
70170
70274
  */
70171
70275
  pageId?: string;
70172
- platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon';
70276
+ platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk';
70173
70277
  /**
70174
70278
  * Profile ID
70175
70279
  */