@getlatedev/node 0.2.1077 → 0.2.1079

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.
@@ -16045,6 +16045,59 @@ export type GetInstagramFollowerHistoryResponse = (InstagramAccountInsightsRespo
16045
16045
 
16046
16046
  export type GetInstagramFollowerHistoryError = (unknown | ErrorResponse);
16047
16047
 
16048
+ export type GetFacebookDemographicsData = {
16049
+ query: {
16050
+ /**
16051
+ * The Zernio SocialAccount ID for the Facebook account
16052
+ */
16053
+ accountId: string;
16054
+ /**
16055
+ * Comma-separated list of demographic dimensions: country, city.
16056
+ * Defaults to both if omitted.
16057
+ *
16058
+ */
16059
+ breakdown?: string;
16060
+ };
16061
+ };
16062
+
16063
+ export type GetFacebookDemographicsResponse = ({
16064
+ success?: boolean;
16065
+ accountId?: string;
16066
+ platform?: 'facebook';
16067
+ metric?: 'follower_demographics';
16068
+ /**
16069
+ * Date of Meta's snapshot (YYYY-MM-DD), or null when Meta has no snapshot yet.
16070
+ */
16071
+ snapshotDate?: (string) | null;
16072
+ /**
16073
+ * Only the requested breakdowns are present. Entries are sorted by value, largest first.
16074
+ */
16075
+ demographics?: {
16076
+ country?: Array<{
16077
+ dimension?: string;
16078
+ /**
16079
+ * Followers
16080
+ */
16081
+ value?: number;
16082
+ }>;
16083
+ city?: Array<{
16084
+ dimension?: string;
16085
+ /**
16086
+ * Followers
16087
+ */
16088
+ value?: number;
16089
+ }>;
16090
+ };
16091
+ note?: string;
16092
+ });
16093
+
16094
+ export type GetFacebookDemographicsError = (ErrorResponse | {
16095
+ error?: string;
16096
+ code?: string;
16097
+ } | {
16098
+ error?: string;
16099
+ });
16100
+
16048
16101
  export type GetInstagramDemographicsData = {
16049
16102
  query: {
16050
16103
  /**
@@ -47983,7 +48036,7 @@ export type ListAdAudiencesResponse = ({
47983
48036
  platformAudienceId?: string;
47984
48037
  name?: string;
47985
48038
  description?: string;
47986
- type?: 'customer_list' | 'company_list' | 'engagement' | 'meta_engagement' | 'website' | 'website_retargeting' | 'lookalike' | 'saved_targeting';
48039
+ type?: 'customer_list' | 'company_list' | 'engagement' | 'meta_engagement' | 'tiktok_engagement' | 'pinterest_engagement' | 'website' | 'website_retargeting' | 'lookalike' | 'saved_targeting';
47987
48040
  /**
47988
48041
  * Present (and the only meaningful payload) when `type` is `saved_targeting`. Null for uploaded/derived audience types.
47989
48042
  */
@@ -48005,7 +48058,7 @@ export type CreateAdAudienceData = {
48005
48058
  adAccountId: string;
48006
48059
  name: string;
48007
48060
  description?: string;
48008
- type: 'customer_list' | 'company_list' | 'engagement' | 'meta_engagement' | 'website' | 'website_retargeting' | 'lookalike';
48061
+ type: 'customer_list' | 'company_list' | 'engagement' | 'meta_engagement' | 'tiktok_engagement' | 'pinterest_engagement' | 'website' | 'website_retargeting' | 'lookalike';
48009
48062
  /**
48010
48063
  * Required for website_retargeting audiences (LinkedIn only).
48011
48064
  * Each rule is a URL pattern; a member who visits any
@@ -48068,11 +48121,11 @@ export type CreateAdAudienceData = {
48068
48121
  linkedinPageUrl?: string;
48069
48122
  }>;
48070
48123
  /**
48071
- * Required for website audiences
48124
+ * website: the Meta pixel, TikTok pixel or Pinterest tag id. Required on those three, rejected on Google.
48072
48125
  */
48073
48126
  pixelId?: string;
48074
48127
  /**
48075
- * Required for website (max 180) and meta_engagement (max 365) audiences.
48128
+ * Required for website (Meta max 180, TikTok 7/14/30/60/90/180, Pinterest and Google max 540), meta_engagement (max 365) and tiktok_engagement (7/14/30/60/90/180; organic and live video and most business-account events only 7/14/30).
48076
48129
  */
48077
48130
  retentionDays?: number;
48078
48131
  /**
@@ -48087,10 +48140,26 @@ export type CreateAdAudienceData = {
48087
48140
  */
48088
48141
  sourceId?: string;
48089
48142
  /**
48090
- * meta_engagement only. The engagement event; defaults per source
48143
+ * meta_engagement: the engagement event; defaults per source
48091
48144
  * (page → page_engaged, instagram → ig_business_profile_all,
48092
48145
  * video → video_watched). Ignored when `rule` is provided.
48093
48146
  *
48147
+ * website on TikTok: the pixel event (default `PAGE BROWSE`). website
48148
+ * on Pinterest: the tag event (`pagevisit`, `signup`, `checkout`, `viewcategory`, `search`, `addtocart`, `watchvideo`, `lead`, `custom` or a partner-defined event).
48149
+ *
48150
+ * tiktok_engagement (required): the TikTok engagement event, validated
48151
+ * per `source` (TikTok's filter values, spaces included):
48152
+ * - ads: `CLICK`, `IMPRESSION`, `PLAY 2S`, `PLAY 6S`, `PLAY 25`, `PLAY 50`, `PLAY 75`,
48153
+ * `PLAY OVER`, and the `ENGAGEMENT APP PROFILE` / `ENGAGEMENT TIKTOK INSTANT` /
48154
+ * `ENGAGEMENT COLLECTION ADS` `CLICK` and `IMPRESSION` events.
48155
+ * - organic_video: `ORGANIC VIDEO PLAY 2S`, `ORGANIC VIDEO PLAY 6S`,
48156
+ * `ORGANIC VIDEO PLAY OVER`, `ORGANIC VIDEO ENGAGEMENT`.
48157
+ * - live_video: `LIVE VIDEO VIEW`, `LIVE VIDEO ENGAGEMENT`.
48158
+ * - business_account: `BUSINESS ACCOUNT PROFILE FOLLOW`, `BUSINESS ACCOUNT PROFILE VISIT`,
48159
+ * `BUSINESS ACCOUNT ENGAGEMENT`, `BUSINESS ACCOUNT PLAY 2S`, `BUSINESS ACCOUNT PLAY 6S`,
48160
+ * `BUSINESS ACCOUNT PLAY OVER` and the rest of TikTok's business-account events.
48161
+ * An unknown value is a 400 that lists the valid ones.
48162
+ *
48094
48163
  */
48095
48164
  event?: string;
48096
48165
  /**
@@ -48102,17 +48171,66 @@ export type CreateAdAudienceData = {
48102
48171
  */
48103
48172
  country?: string;
48104
48173
  /**
48105
- * Required for lookalike audiences
48174
+ * lookalike on Meta (0.01-0.20) and Pinterest (0.01-0.10, whole percents). Rejected on TikTok and Google.
48106
48175
  */
48107
48176
  ratio?: number;
48108
48177
  /**
48109
- * website only. Narrows the audience from all visitors to visitors of
48110
- * URLs containing this substring. Ignored when `rule` is supplied.
48178
+ * lookalike on TikTok and Google: audience breadth. Rejected on Meta and Pinterest.
48179
+ */
48180
+ size?: 'narrow' | 'balanced' | 'broad';
48181
+ /**
48182
+ * Required for tiktok_engagement: what people engaged with.
48183
+ */
48184
+ source?: 'ads' | 'organic_video' | 'live_video' | 'business_account';
48185
+ /**
48186
+ * tiktok_engagement: ad group / campaign ids for `ads`, video ids for `organic_video` and `live_video` (max 10). Required except for `business_account`.
48187
+ */
48188
+ sourceIds?: Array<(string)>;
48189
+ /**
48190
+ * tiktok_engagement: the TikTok identity that owns the videos or business account. Required for organic_video, live_video and business_account.
48191
+ */
48192
+ identityId?: string;
48193
+ /**
48194
+ * tiktok_engagement: type of `identityId`.
48195
+ */
48196
+ identityType?: 'TT_USER' | 'BC_AUTH_TT';
48197
+ /**
48198
+ * tiktok_engagement: required when identityType is BC_AUTH_TT.
48199
+ */
48200
+ identityAuthorizedBcId?: string;
48201
+ /**
48202
+ * pinterest_engagement: Pinterest's `engager_type`, passed through when set.
48203
+ */
48204
+ engagerType?: 1 | 2;
48205
+ /**
48206
+ * pinterest_engagement: limit to one engagement action.
48207
+ */
48208
+ engagementType?: 'click' | 'save' | 'closeup' | 'comment' | 'like';
48209
+ /**
48210
+ * pinterest_engagement: people who engaged with Pins from these domains. The domain must be claimed on the Pinterest account or Pinterest rejects it.
48211
+ */
48212
+ engagementDomains?: Array<(string)>;
48213
+ /**
48214
+ * pinterest_engagement: people who engaged with these campaigns' ads.
48215
+ */
48216
+ campaignIds?: Array<(string)>;
48217
+ /**
48218
+ * pinterest_engagement: people who engaged with these ads.
48219
+ */
48220
+ adIds?: Array<(string)>;
48221
+ /**
48222
+ * pinterest_engagement: people who engaged with these Pins. At least one of engagementDomains, campaignIds, adIds or pinIds is required.
48223
+ */
48224
+ pinIds?: Array<(string)>;
48225
+ /**
48226
+ * website on Meta, TikTok and Google. Narrows the audience from all visitors
48227
+ * to visitors of URLs containing this substring. Ignored when `rule` is
48228
+ * supplied. A 400 on Pinterest, which only matches exact URLs.
48111
48229
  *
48112
48230
  */
48113
48231
  urlContains?: string;
48114
48232
  /**
48115
- * Optional raw Meta rule, replacing the one we build. Omit it for all
48233
+ * Meta only (a 400 elsewhere). Optional raw Meta rule, replacing the one we build. Omit it for all
48116
48234
  * visitors of `pixelId`, or use `urlContains` for the common page-match
48117
48235
  * case.
48118
48236
  *