@getlatedev/node 0.2.1251 → 0.2.1253

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.
@@ -4681,9 +4681,13 @@ export type ConversionEvent = {
4681
4681
  */
4682
4682
  ctwaClid?: string;
4683
4683
  /**
4684
- * Messenger and Instagram Direct. Facebook Page id, sent as `page_id`.
4684
+ * Messenger: Facebook Page id, sent as `page_id`. Instagram Direct: when `instagramBusinessAccountId` is absent, Zernio reads the Instagram professional account linked to this Page and sends its id as `instagram_business_account_id`; if none is linked or the lookup fails, `page_id` is sent instead.
4685
4685
  */
4686
4686
  pageId?: string;
4687
+ /**
4688
+ * Instagram Direct only. Instagram professional account id (`instagram_business_account` on the Page), sent as `instagram_business_account_id` next to `ig_sid`.
4689
+ */
4690
+ instagramBusinessAccountId?: string;
4687
4691
  /**
4688
4692
  * Messenger only. The page-scoped user id (PSID) your Messenger webhook gives for the person, sent as `page_scoped_user_id` next to `page_id`.
4689
4693
  */
@@ -5539,21 +5543,27 @@ export type CtwaAdRequestBody = {
5539
5543
  */
5540
5544
  dsaPayor?: string;
5541
5545
  /**
5542
- * Meta only. Regional regulation categories required when the ad set targets certain countries (e.g. BRAZIL_REGULATION, SINGAPORE_UNIVERSAL, TAIWAN_UNIVERSAL, THAILAND_UNIVERSAL, AUSTRALIA_FINSERV, INDIA_FINSERV, TAIWAN_FINSERV). Forwarded to the ad set.
5546
+ * Meta only. Regional regulation categories required when the ad set targets certain countries (e.g. AUSTRALIA_FINSERV, AUSTRALIA_UNIVERSAL, BRAZIL_REGULATION, INDIA_FINSERV, MALAYSIA_UNIVERSAL, SINGAPORE_UNIVERSAL, TAIWAN_FINSERV, TAIWAN_UNIVERSAL, THAILAND_UNIVERSAL). Forwarded to the ad set.
5543
5547
  */
5544
5548
  regionalRegulatedCategories?: Array<(string)>;
5545
5549
  /**
5546
- * Meta only. Beneficiary/payer entity IDs required alongside regionalRegulatedCategories.
5547
- * Values are numeric IDs from the advertiser's Meta verification/authorization setup.
5548
- * Keys depend on the declared category: BRAZIL_REGULATION and THAILAND_UNIVERSAL use
5549
- * universal_beneficiary / universal_payer; SINGAPORE_UNIVERSAL uses
5550
- * singapore_universal_beneficiary / singapore_universal_payer; TAIWAN_UNIVERSAL uses
5551
- * taiwan_universal_beneficiary / taiwan_universal_payer; TAIWAN_FINSERV uses
5552
- * taiwan_finserv_beneficiary / taiwan_finserv_payer; AUSTRALIA_FINSERV uses
5553
- * australia_finserv_beneficiary / australia_finserv_payer; INDIA_FINSERV uses
5554
- * india_finserv_beneficiary / india_finserv_payer.
5555
- * Both beneficiary and payer must be included. If omitted and the advertiser has
5556
- * set defaults in Meta Ads Manager advertising settings, Meta auto-fills them.
5550
+ * Meta only. Verified identity IDs of the beneficiary and payer for each declared
5551
+ * regionalRegulatedCategories value. Meta may require them on ad sets created through
5552
+ * the API even when a default beneficiary and payer are set in Ads Manager advertising
5553
+ * settings (seen on AUSTRALIA_FINSERV), so sending them explicitly is the reliable path.
5554
+ * The value is the Verified identity ID (Meta Business Settings > Verified identities),
5555
+ * not a Page or Business ID, and beneficiary and payer may be the same ID.
5556
+ * Keys by category: AUSTRALIA_FINSERV uses australia_finserv_beneficiary /
5557
+ * australia_finserv_payer; TAIWAN_FINSERV uses taiwan_finserv_beneficiary /
5558
+ * taiwan_finserv_payer; INDIA_FINSERV uses india_finserv_beneficiary / india_finserv_payer;
5559
+ * TAIWAN_UNIVERSAL uses taiwan_universal_beneficiary / taiwan_universal_payer;
5560
+ * SINGAPORE_UNIVERSAL uses singapore_universal_beneficiary / singapore_universal_payer;
5561
+ * AUSTRALIA_UNIVERSAL, BRAZIL_REGULATION, MALAYSIA_UNIVERSAL and THAILAND_UNIVERSAL use
5562
+ * universal_beneficiary / universal_payer. When Meta rejects the ad set for a missing verified
5563
+ * advertiser, the error carries param regionalRegulationIdentities, details.expectedIdentityKeys
5564
+ * (the keys the declared categories expect), details.suggestedCategories (the markets Meta
5565
+ * ties to that subcode) and Meta's metaCode, metaSubcode and fbtraceId.
5566
+ * Ignored when adSetId adds the ad to an existing ad set.
5557
5567
  *
5558
5568
  */
5559
5569
  regionalRegulationIdentities?: {
@@ -8449,6 +8459,47 @@ export type contentType2 = 'story';
8449
8459
  */
8450
8460
  export type graduationStrategy = 'MANUAL' | 'SS_PERFORMANCE';
8451
8461
 
8462
+ export type InstagramTaggedMedia = {
8463
+ /**
8464
+ * Instagram media ID of the post the account is tagged in.
8465
+ */
8466
+ id: string;
8467
+ caption: (string) | null;
8468
+ /**
8469
+ * IMAGE, VIDEO or CAROUSEL_ALBUM.
8470
+ */
8471
+ mediaType: (string) | null;
8472
+ /**
8473
+ * FEED or REELS.
8474
+ */
8475
+ mediaProductType: (string) | null;
8476
+ /**
8477
+ * Temporary CDN URL. Meta omits it for videos with copyrighted audio, flagged videos and reels whose owner disabled downloads.
8478
+ */
8479
+ mediaUrl: (string) | null;
8480
+ /**
8481
+ * Cover image of a video or reel.
8482
+ */
8483
+ thumbnailUrl: (string) | null;
8484
+ /**
8485
+ * Public Instagram URL of the post.
8486
+ */
8487
+ permalink: (string) | null;
8488
+ /**
8489
+ * Publication time as Meta returns it (ISO 8601).
8490
+ */
8491
+ timestamp: (string) | null;
8492
+ /**
8493
+ * Instagram handle of the account that posted the media and tagged yours.
8494
+ */
8495
+ username: (string) | null;
8496
+ /**
8497
+ * Null when the owner hides like counts.
8498
+ */
8499
+ likeCount: (number) | null;
8500
+ commentsCount: (number) | null;
8501
+ };
8502
+
8452
8503
  /**
8453
8504
  * A Google Search keyword: a bare string (BROAD match), or an object naming the match type.
8454
8505
  */
@@ -26319,6 +26370,35 @@ export type ListInstagramLiveMediaResponse = ({
26319
26370
 
26320
26371
  export type ListInstagramLiveMediaError = (ErrorResponse);
26321
26372
 
26373
+ export type ListInstagramTaggedMediaData = {
26374
+ path: {
26375
+ /**
26376
+ * The ID of a connected Instagram account (Facebook Login).
26377
+ */
26378
+ accountId: string;
26379
+ };
26380
+ query?: {
26381
+ /**
26382
+ * The `nextCursor` of the previous page.
26383
+ */
26384
+ cursor?: string;
26385
+ /**
26386
+ * Page size.
26387
+ */
26388
+ limit?: number;
26389
+ };
26390
+ };
26391
+
26392
+ export type ListInstagramTaggedMediaResponse = ({
26393
+ data: Array<InstagramTaggedMedia>;
26394
+ /**
26395
+ * Pass as `cursor` to read the next page. Null when there are no more pages.
26396
+ */
26397
+ nextCursor: (string) | null;
26398
+ });
26399
+
26400
+ export type ListInstagramTaggedMediaError = (ErrorResponse);
26401
+
26322
26402
  export type GetInstagramStoryInsightsData = {
26323
26403
  path: {
26324
26404
  /**
@@ -48919,11 +48999,28 @@ export type BoostPostData = {
48919
48999
  */
48920
49000
  specialAdCategoryCountry?: Array<(string)>;
48921
49001
  /**
48922
- * Meta only. Regional regulation categories required when the ad set targets certain countries (e.g. BRAZIL_REGULATION, SINGAPORE_UNIVERSAL, TAIWAN_UNIVERSAL, THAILAND_UNIVERSAL, AUSTRALIA_FINSERV, INDIA_FINSERV, TAIWAN_FINSERV). Forwarded to the ad set.
49002
+ * Meta only. Regional regulation categories required when the ad set targets certain countries (e.g. AUSTRALIA_FINSERV, AUSTRALIA_UNIVERSAL, BRAZIL_REGULATION, INDIA_FINSERV, MALAYSIA_UNIVERSAL, SINGAPORE_UNIVERSAL, TAIWAN_FINSERV, TAIWAN_UNIVERSAL, THAILAND_UNIVERSAL). Forwarded to the ad set.
48923
49003
  */
48924
49004
  regionalRegulatedCategories?: Array<(string)>;
48925
49005
  /**
48926
- * Meta only. Beneficiary/payer entity IDs for regionalRegulatedCategories. Values are numeric IDs from Meta verification. Keys vary by category (e.g. universal_beneficiary / universal_payer for BRAZIL_REGULATION and THAILAND_UNIVERSAL). If omitted, Meta uses Ads Manager defaults when configured.
49006
+ * Meta only. Verified identity IDs of the beneficiary and payer for each declared
49007
+ * regionalRegulatedCategories value. Meta may require them on ad sets created through
49008
+ * the API even when a default beneficiary and payer are set in Ads Manager advertising
49009
+ * settings (seen on AUSTRALIA_FINSERV), so sending them explicitly is the reliable path.
49010
+ * The value is the Verified identity ID (Meta Business Settings > Verified identities),
49011
+ * not a Page or Business ID, and beneficiary and payer may be the same ID.
49012
+ * Keys by category: AUSTRALIA_FINSERV uses australia_finserv_beneficiary /
49013
+ * australia_finserv_payer; TAIWAN_FINSERV uses taiwan_finserv_beneficiary /
49014
+ * taiwan_finserv_payer; INDIA_FINSERV uses india_finserv_beneficiary / india_finserv_payer;
49015
+ * TAIWAN_UNIVERSAL uses taiwan_universal_beneficiary / taiwan_universal_payer;
49016
+ * SINGAPORE_UNIVERSAL uses singapore_universal_beneficiary / singapore_universal_payer;
49017
+ * AUSTRALIA_UNIVERSAL, BRAZIL_REGULATION, MALAYSIA_UNIVERSAL and THAILAND_UNIVERSAL use
49018
+ * universal_beneficiary / universal_payer. When Meta rejects the ad set for a missing verified
49019
+ * advertiser, the error carries param regionalRegulationIdentities, details.expectedIdentityKeys
49020
+ * (the keys the declared categories expect), details.suggestedCategories (the markets Meta
49021
+ * ties to that subcode) and Meta's metaCode, metaSubcode and fbtraceId.
49022
+ * Ignored when adSetId adds the ad to an existing ad set.
49023
+ *
48927
49024
  */
48928
49025
  regionalRegulationIdentities?: {
48929
49026
  [key: string]: (number);
@@ -49982,17 +50079,30 @@ export type CreateStandaloneAdData = {
49982
50079
  specialAdCategoryCountry?: Array<(string)>;
49983
50080
  /**
49984
50081
  * Meta only. Regional regulation categories required when the ad set targets certain countries.
49985
- * Known values: BRAZIL_REGULATION, SINGAPORE_UNIVERSAL, TAIWAN_UNIVERSAL, THAILAND_UNIVERSAL,
49986
- * AUSTRALIA_FINSERV, INDIA_FINSERV, TAIWAN_FINSERV. Meta rejects the ad set without this when
50082
+ * Known values: AUSTRALIA_FINSERV, AUSTRALIA_UNIVERSAL, BRAZIL_REGULATION, INDIA_FINSERV,
50083
+ * MALAYSIA_UNIVERSAL, SINGAPORE_UNIVERSAL, TAIWAN_FINSERV, TAIWAN_UNIVERSAL, THAILAND_UNIVERSAL. Meta rejects the ad set without this when
49987
50084
  * the targeting geo includes the corresponding country.
49988
50085
  *
49989
50086
  */
49990
50087
  regionalRegulatedCategories?: Array<(string)>;
49991
50088
  /**
49992
- * Meta only. Beneficiary/payer entity IDs for regionalRegulatedCategories. Values are
49993
- * numeric IDs from Meta verification. Keys vary by category (e.g. universal_beneficiary /
49994
- * universal_payer for BRAZIL_REGULATION and THAILAND_UNIVERSAL). If omitted, Meta uses
49995
- * Ads Manager defaults when configured.
50089
+ * Meta only. Verified identity IDs of the beneficiary and payer for each declared
50090
+ * regionalRegulatedCategories value. Meta may require them on ad sets created through
50091
+ * the API even when a default beneficiary and payer are set in Ads Manager advertising
50092
+ * settings (seen on AUSTRALIA_FINSERV), so sending them explicitly is the reliable path.
50093
+ * The value is the Verified identity ID (Meta Business Settings > Verified identities),
50094
+ * not a Page or Business ID, and beneficiary and payer may be the same ID.
50095
+ * Keys by category: AUSTRALIA_FINSERV uses australia_finserv_beneficiary /
50096
+ * australia_finserv_payer; TAIWAN_FINSERV uses taiwan_finserv_beneficiary /
50097
+ * taiwan_finserv_payer; INDIA_FINSERV uses india_finserv_beneficiary / india_finserv_payer;
50098
+ * TAIWAN_UNIVERSAL uses taiwan_universal_beneficiary / taiwan_universal_payer;
50099
+ * SINGAPORE_UNIVERSAL uses singapore_universal_beneficiary / singapore_universal_payer;
50100
+ * AUSTRALIA_UNIVERSAL, BRAZIL_REGULATION, MALAYSIA_UNIVERSAL and THAILAND_UNIVERSAL use
50101
+ * universal_beneficiary / universal_payer. When Meta rejects the ad set for a missing verified
50102
+ * advertiser, the error carries param regionalRegulationIdentities, details.expectedIdentityKeys
50103
+ * (the keys the declared categories expect), details.suggestedCategories (the markets Meta
50104
+ * ties to that subcode) and Meta's metaCode, metaSubcode and fbtraceId.
50105
+ * Ignored when adSetId adds the ad to an existing ad set.
49996
50106
  *
49997
50107
  */
49998
50108
  regionalRegulationIdentities?: {
@@ -52782,6 +52892,16 @@ export type SendConversionsResponse = ({
52782
52892
  eventId?: string;
52783
52893
  message?: string;
52784
52894
  code?: (string | number);
52895
+ /**
52896
+ * Meta only. Meta's own error for the rejected chunk, with credentials
52897
+ * redacted: `message`, `type`, `code`, `error_subcode`, `error_user_title`,
52898
+ * `error_user_msg` and `fbtrace_id` when Meta sends them. `message` above
52899
+ * already ends with `error_user_msg`. Absent when Meta returned no error body.
52900
+ *
52901
+ */
52902
+ platformError?: {
52903
+ [key: string]: unknown;
52904
+ };
52785
52905
  }>;
52786
52906
  /**
52787
52907
  * Platform trace ID for debugging. fbtrace_id for Meta,
@@ -53788,6 +53908,16 @@ export type SendWhatsAppConversionResponse = ({
53788
53908
  eventId?: string;
53789
53909
  message?: string;
53790
53910
  code?: (string | number);
53911
+ /**
53912
+ * Meta's own error for the rejected event, with credentials redacted:
53913
+ * `message`, `type`, `code`, `error_subcode`, `error_user_title`,
53914
+ * `error_user_msg` and `fbtrace_id` when Meta sends them. `message` above
53915
+ * already ends with `error_user_msg`. Absent when Meta returned no error body.
53916
+ *
53917
+ */
53918
+ platformError?: {
53919
+ [key: string]: unknown;
53920
+ };
53791
53921
  }>;
53792
53922
  /**
53793
53923
  * Meta `fbtrace_id` for debugging. Surface in support