@getlatedev/node 0.2.1103 → 0.2.1104

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.
@@ -10288,7 +10288,7 @@ export type contentType3 = 'story' | 'saved_story' | 'spotlight';
10288
10288
 
10289
10289
  export type SocialAccount = {
10290
10290
  _id: string;
10291
- platform: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'slack' | 'whatsapp' | 'shopify' | 'wordpress' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads' | 'openaiads' | 'sms' | 'phone' | 'rcs';
10291
+ platform: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'slack' | 'whatsapp' | 'shopify' | 'wordpress' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads' | 'openaiads' | 'sms' | 'phone' | 'rcs' | 'whopads';
10292
10292
  profileId: (string | Profile);
10293
10293
  username?: string;
10294
10294
  displayName?: string;
@@ -10370,7 +10370,7 @@ export type SocialAccount = {
10370
10370
  };
10371
10371
  };
10372
10372
 
10373
- export type platform11 = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'slack' | 'whatsapp' | 'shopify' | 'wordpress' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads' | 'openaiads' | 'sms' | 'phone' | 'rcs';
10373
+ export type platform11 = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'slack' | 'whatsapp' | 'shopify' | 'wordpress' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads' | 'openaiads' | 'sms' | 'phone' | 'rcs' | 'whopads';
10374
10374
 
10375
10375
  /**
10376
10376
  * A tracking tag's install on a connected store: a Shopify web pixel, or a Custom HTML widget on a WordPress site. Fields marked Shopify or WordPress are present only for that platform.
@@ -10943,7 +10943,7 @@ export type TrackingTag = {
10943
10943
  */
10944
10944
  events?: Array<TrackingTagEvent>;
10945
10945
  name: string;
10946
- platform: 'metaads' | 'openaiads' | 'tiktokads' | 'googleads' | 'xads' | 'linkedinads' | 'pinterestads';
10946
+ platform: 'metaads' | 'openaiads' | 'tiktokads' | 'googleads' | 'xads' | 'linkedinads' | 'pinterestads' | 'whopads';
10947
10947
  /**
10948
10948
  * Platform-native flavor of the tag (Meta: `pixel`).
10949
10949
  */
@@ -10998,7 +10998,7 @@ export type TrackingTag = {
10998
10998
  autoTagging?: boolean;
10999
10999
  };
11000
11000
 
11001
- export type platform12 = 'metaads' | 'openaiads' | 'tiktokads' | 'googleads' | 'xads' | 'linkedinads' | 'pinterestads';
11001
+ export type platform12 = 'metaads' | 'openaiads' | 'tiktokads' | 'googleads' | 'xads' | 'linkedinads' | 'pinterestads' | 'whopads';
11002
11002
 
11003
11003
  /**
11004
11004
  * Platform-native flavor of the tag (Meta: `pixel`).
@@ -19013,7 +19013,7 @@ export type GetAllAccountsHealthData = {
19013
19013
  /**
19014
19014
  * Filter by platform
19015
19015
  */
19016
- platform?: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'tiktok' | 'youtube' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'slack' | 'whatsapp' | 'shopify' | 'wordpress' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads' | 'openaiads';
19016
+ platform?: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'tiktok' | 'youtube' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'discord' | 'slack' | 'whatsapp' | 'shopify' | 'wordpress' | 'linkedinads' | 'metaads' | 'pinterestads' | 'tiktokads' | 'xads' | 'googleads' | 'openaiads' | 'whopads';
19017
19017
  /**
19018
19018
  * Filter by profile ID
19019
19019
  */
@@ -23016,6 +23016,97 @@ export type ConnectOpenAiAdsCredentialsError = (ErrorResponse | unknown | {
23016
23016
  };
23017
23017
  });
23018
23018
 
23019
+ export type ConnectWhopAdsCredentialsData = {
23020
+ body: {
23021
+ /**
23022
+ * Account API key from the Whop dashboard.
23023
+ */
23024
+ apiKey: string;
23025
+ /**
23026
+ * Your Zernio profile ID
23027
+ */
23028
+ profileId: string;
23029
+ /**
23030
+ * Optional state passthrough for the connect flow.
23031
+ */
23032
+ state?: string;
23033
+ /**
23034
+ * Optional URL to redirect to after successful connection, echoed back as redirectUrl.
23035
+ */
23036
+ redirect_url?: string;
23037
+ };
23038
+ };
23039
+
23040
+ export type ConnectWhopAdsCredentialsResponse = ({
23041
+ /**
23042
+ * The Zernio account id (platform `whopads`) to use as `{accountId}` on the tracking-tags routes.
23043
+ */
23044
+ accountId?: string;
23045
+ /**
23046
+ * The Whop account id (`biz_...`), which is also the tracking tag id.
23047
+ */
23048
+ whopAccountId?: string;
23049
+ accountName?: string;
23050
+ redirectUrl?: string;
23051
+ });
23052
+
23053
+ export type ConnectWhopAdsCredentialsError = (ErrorResponse | unknown | {
23054
+ /**
23055
+ * Human-readable error message suitable for end-user display.
23056
+ */
23057
+ error: string;
23058
+ /**
23059
+ * Machine-readable error code. Stable across versions.
23060
+ */
23061
+ code: 'PAYMENT_REQUIRED';
23062
+ /**
23063
+ * Discriminator for which gate fired.
23064
+ */
23065
+ reason: 'free_tier_exceeded' | 'twitter_passthrough' | 'enterprise_required' | 'card_verification_required';
23066
+ /**
23067
+ * Link to the relevant documentation page.
23068
+ */
23069
+ documentation_url?: string;
23070
+ /**
23071
+ * Deep-link to send the end-user to. For
23072
+ * `free_tier_exceeded` and `twitter_passthrough` this opens
23073
+ * the add-payment-method drawer on the Zernio billing page.
23074
+ * For `enterprise_required` this is the Zernio enterprise
23075
+ * contact page.
23076
+ *
23077
+ */
23078
+ dashboard_url?: string;
23079
+ /**
23080
+ * Structured context for SDK clients that want to render their own UX. Keys vary by `reason`.
23081
+ */
23082
+ details?: {
23083
+ /**
23084
+ * How many accounts the free tier allows. Only set when reason=free_tier_exceeded.
23085
+ */
23086
+ free_tier_account_limit?: number;
23087
+ /**
23088
+ * How many accounts the team currently has connected. Set when reason=free_tier_exceeded or reason=enterprise_required.
23089
+ */
23090
+ current_account_count?: number;
23091
+ /**
23092
+ * Whether the team currently has a card on file in Stripe. Set when reason=free_tier_exceeded or reason=twitter_passthrough.
23093
+ */
23094
+ has_payment_method?: boolean;
23095
+ /**
23096
+ * One-time card verification charge in USD cents, credited to usage. Only set when reason=card_verification_required.
23097
+ */
23098
+ verification_amount_cents?: number;
23099
+ /**
23100
+ * The negotiated connected-account cap from the
23101
+ * team's enterprise contract. Self-service teams
23102
+ * have no cap and never receive this reason. Only
23103
+ * set when reason=enterprise_required.
23104
+ *
23105
+ */
23106
+ effective_account_limit?: number;
23107
+ };
23108
+ });
23109
+
23019
23110
  export type ConnectWhatsAppCredentialsData = {
23020
23111
  body: {
23021
23112
  /**
@@ -51860,7 +51951,7 @@ export type ListTrackingTagsData = {
51860
51951
  };
51861
51952
 
51862
51953
  export type ListTrackingTagsResponse = ({
51863
- platform?: 'metaads' | 'openaiads' | 'tiktokads' | 'googleads' | 'xads' | 'linkedinads' | 'pinterestads';
51954
+ platform?: 'metaads' | 'openaiads' | 'tiktokads' | 'googleads' | 'xads' | 'linkedinads' | 'pinterestads' | 'whopads';
51864
51955
  tags?: Array<TrackingTag>;
51865
51956
  });
51866
51957
 
@@ -51891,7 +51982,7 @@ export type CreateTrackingTagData = {
51891
51982
  };
51892
51983
 
51893
51984
  export type CreateTrackingTagResponse = ({
51894
- platform?: 'metaads' | 'openaiads' | 'tiktokads' | 'googleads' | 'xads' | 'linkedinads' | 'pinterestads';
51985
+ platform?: 'metaads' | 'openaiads' | 'tiktokads' | 'googleads' | 'xads' | 'linkedinads' | 'pinterestads' | 'whopads';
51895
51986
  tag?: TrackingTag;
51896
51987
  });
51897
51988
 
@@ -51914,7 +52005,7 @@ export type GetTrackingTagData = {
51914
52005
  };
51915
52006
 
51916
52007
  export type GetTrackingTagResponse = ({
51917
- platform?: 'metaads' | 'tiktokads' | 'googleads' | 'xads' | 'openaiads' | 'linkedinads' | 'pinterestads';
52008
+ platform?: 'metaads' | 'tiktokads' | 'googleads' | 'xads' | 'openaiads' | 'linkedinads' | 'pinterestads' | 'whopads';
51918
52009
  tag?: TrackingTag;
51919
52010
  });
51920
52011
 
@@ -51960,7 +52051,7 @@ export type UpdateTrackingTagData = {
51960
52051
  };
51961
52052
 
51962
52053
  export type UpdateTrackingTagResponse = ({
51963
- platform?: 'metaads' | 'tiktokads' | 'googleads' | 'xads' | 'openaiads' | 'linkedinads' | 'pinterestads';
52054
+ platform?: 'metaads' | 'tiktokads' | 'googleads' | 'xads' | 'openaiads' | 'linkedinads' | 'pinterestads' | 'whopads';
51964
52055
  tag?: TrackingTag;
51965
52056
  });
51966
52057
 
@@ -52055,7 +52146,7 @@ export type InstallTrackingTagOnStoreData = {
52055
52146
  };
52056
52147
 
52057
52148
  export type InstallTrackingTagOnStoreResponse = ({
52058
- platform?: 'metaads' | 'tiktokads' | 'googleads' | 'xads' | 'openaiads' | 'linkedinads' | 'pinterestads';
52149
+ platform?: 'metaads' | 'tiktokads' | 'googleads' | 'xads' | 'openaiads' | 'linkedinads' | 'pinterestads' | 'whopads';
52059
52150
  install?: (StorePixelInstall & {
52060
52151
  /**
52061
52152
  * Shopify only: the pixel this install replaced on the store, if any.
@@ -52108,7 +52199,7 @@ export type GetTrackingTagStoreInstallData = {
52108
52199
  };
52109
52200
 
52110
52201
  export type GetTrackingTagStoreInstallResponse = ({
52111
- platform?: 'metaads' | 'tiktokads' | 'googleads' | 'xads' | 'openaiads' | 'linkedinads' | 'pinterestads';
52202
+ platform?: 'metaads' | 'tiktokads' | 'googleads' | 'xads' | 'openaiads' | 'linkedinads' | 'pinterestads' | 'whopads';
52112
52203
  install?: (StorePixelInstall & {
52113
52204
  /**
52114
52205
  * WordPress only.
@@ -52156,7 +52247,7 @@ export type RemoveTrackingTagFromStoreData = {
52156
52247
  };
52157
52248
 
52158
52249
  export type RemoveTrackingTagFromStoreResponse = ({
52159
- platform?: 'metaads' | 'tiktokads' | 'googleads' | 'xads' | 'openaiads' | 'linkedinads' | 'pinterestads';
52250
+ platform?: 'metaads' | 'tiktokads' | 'googleads' | 'xads' | 'openaiads' | 'linkedinads' | 'pinterestads' | 'whopads';
52160
52251
  install?: (StorePixelInstall & {
52161
52252
  /**
52162
52253
  * WordPress only: number of Zernio widgets deleted.
@@ -52375,7 +52466,7 @@ export type GetTrackingTagStatsData = {
52375
52466
  };
52376
52467
 
52377
52468
  export type GetTrackingTagStatsResponse = ({
52378
- platform?: 'metaads' | 'tiktokads' | 'googleads' | 'xads' | 'openaiads' | 'linkedinads' | 'pinterestads';
52469
+ platform?: 'metaads' | 'tiktokads' | 'googleads' | 'xads' | 'openaiads' | 'linkedinads' | 'pinterestads' | 'whopads';
52379
52470
  stats?: {
52380
52471
  aggregation?: string;
52381
52472
  startTime?: number;