@getlatedev/node 0.2.1252 → 0.2.1254
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 +132 -21
- package/dist/index.d.ts +132 -21
- 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 +25 -1
- package/src/generated/types.gen.ts +134 -20
|
@@ -5543,21 +5543,27 @@ export type CtwaAdRequestBody = {
|
|
|
5543
5543
|
*/
|
|
5544
5544
|
dsaPayor?: string;
|
|
5545
5545
|
/**
|
|
5546
|
-
* Meta only. Regional regulation categories required when the ad set targets certain countries (e.g. BRAZIL_REGULATION,
|
|
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.
|
|
5547
5547
|
*/
|
|
5548
5548
|
regionalRegulatedCategories?: Array<(string)>;
|
|
5549
5549
|
/**
|
|
5550
|
-
* Meta only.
|
|
5551
|
-
*
|
|
5552
|
-
*
|
|
5553
|
-
*
|
|
5554
|
-
*
|
|
5555
|
-
*
|
|
5556
|
-
*
|
|
5557
|
-
*
|
|
5558
|
-
* india_finserv_beneficiary / india_finserv_payer
|
|
5559
|
-
*
|
|
5560
|
-
*
|
|
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.
|
|
5561
5567
|
*
|
|
5562
5568
|
*/
|
|
5563
5569
|
regionalRegulationIdentities?: {
|
|
@@ -8453,6 +8459,47 @@ export type contentType2 = 'story';
|
|
|
8453
8459
|
*/
|
|
8454
8460
|
export type graduationStrategy = 'MANUAL' | 'SS_PERFORMANCE';
|
|
8455
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
|
+
|
|
8456
8503
|
/**
|
|
8457
8504
|
* A Google Search keyword: a bare string (BROAD match), or an object naming the match type.
|
|
8458
8505
|
*/
|
|
@@ -26323,6 +26370,35 @@ export type ListInstagramLiveMediaResponse = ({
|
|
|
26323
26370
|
|
|
26324
26371
|
export type ListInstagramLiveMediaError = (ErrorResponse);
|
|
26325
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
|
+
|
|
26326
26402
|
export type GetInstagramStoryInsightsData = {
|
|
26327
26403
|
path: {
|
|
26328
26404
|
/**
|
|
@@ -29423,6 +29499,14 @@ export type SendInboxMessageData = {
|
|
|
29423
29499
|
* iMessage only (JSON body only). Overrides the delivery channel for this one send; the provider otherwise picks it automatically. The sender must carry the matching add-on (SMS, RCS or WhatsApp), or the send fails. Not a default to set on every request. Rejected with 400 on other platforms.
|
|
29424
29500
|
*/
|
|
29425
29501
|
channel?: 'imessage' | 'sms' | 'rcs' | 'whatsapp';
|
|
29502
|
+
/**
|
|
29503
|
+
* Instagram only (JSON body only). Shares one of the account's own published posts in the DM, by its Instagram media id (the `id` returned by the media endpoints, not a permalink). Meta only accepts media the account owns. Sent on its own: cannot be combined with `message`, attachments, `quickReplies`, `buttons`, `template` or `sticker` (400). `messageTag: HUMAN_AGENT` is allowed. Rejected with 400 on other platforms. Works on accounts connected with Instagram Login and with Facebook Login.
|
|
29504
|
+
*/
|
|
29505
|
+
sharedMediaId?: string;
|
|
29506
|
+
/**
|
|
29507
|
+
* Instagram only (JSON body only). Sends a sticker instead of text; `like_heart` is the heart sticker. Sent on its own: cannot be combined with `message`, attachments, `quickReplies`, `buttons`, `template` or `sharedMediaId` (400). `messageTag: HUMAN_AGENT` is allowed. Rejected with 400 on other platforms.
|
|
29508
|
+
*/
|
|
29509
|
+
sticker?: 'like_heart';
|
|
29426
29510
|
/**
|
|
29427
29511
|
* Quick reply buttons. Mutually exclusive with buttons. Max 13 items.
|
|
29428
29512
|
*/
|
|
@@ -48923,11 +49007,28 @@ export type BoostPostData = {
|
|
|
48923
49007
|
*/
|
|
48924
49008
|
specialAdCategoryCountry?: Array<(string)>;
|
|
48925
49009
|
/**
|
|
48926
|
-
* Meta only. Regional regulation categories required when the ad set targets certain countries (e.g. BRAZIL_REGULATION,
|
|
49010
|
+
* 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.
|
|
48927
49011
|
*/
|
|
48928
49012
|
regionalRegulatedCategories?: Array<(string)>;
|
|
48929
49013
|
/**
|
|
48930
|
-
* Meta only.
|
|
49014
|
+
* Meta only. Verified identity IDs of the beneficiary and payer for each declared
|
|
49015
|
+
* regionalRegulatedCategories value. Meta may require them on ad sets created through
|
|
49016
|
+
* the API even when a default beneficiary and payer are set in Ads Manager advertising
|
|
49017
|
+
* settings (seen on AUSTRALIA_FINSERV), so sending them explicitly is the reliable path.
|
|
49018
|
+
* The value is the Verified identity ID (Meta Business Settings > Verified identities),
|
|
49019
|
+
* not a Page or Business ID, and beneficiary and payer may be the same ID.
|
|
49020
|
+
* Keys by category: AUSTRALIA_FINSERV uses australia_finserv_beneficiary /
|
|
49021
|
+
* australia_finserv_payer; TAIWAN_FINSERV uses taiwan_finserv_beneficiary /
|
|
49022
|
+
* taiwan_finserv_payer; INDIA_FINSERV uses india_finserv_beneficiary / india_finserv_payer;
|
|
49023
|
+
* TAIWAN_UNIVERSAL uses taiwan_universal_beneficiary / taiwan_universal_payer;
|
|
49024
|
+
* SINGAPORE_UNIVERSAL uses singapore_universal_beneficiary / singapore_universal_payer;
|
|
49025
|
+
* AUSTRALIA_UNIVERSAL, BRAZIL_REGULATION, MALAYSIA_UNIVERSAL and THAILAND_UNIVERSAL use
|
|
49026
|
+
* universal_beneficiary / universal_payer. When Meta rejects the ad set for a missing verified
|
|
49027
|
+
* advertiser, the error carries param regionalRegulationIdentities, details.expectedIdentityKeys
|
|
49028
|
+
* (the keys the declared categories expect), details.suggestedCategories (the markets Meta
|
|
49029
|
+
* ties to that subcode) and Meta's metaCode, metaSubcode and fbtraceId.
|
|
49030
|
+
* Ignored when adSetId adds the ad to an existing ad set.
|
|
49031
|
+
*
|
|
48931
49032
|
*/
|
|
48932
49033
|
regionalRegulationIdentities?: {
|
|
48933
49034
|
[key: string]: (number);
|
|
@@ -49986,17 +50087,30 @@ export type CreateStandaloneAdData = {
|
|
|
49986
50087
|
specialAdCategoryCountry?: Array<(string)>;
|
|
49987
50088
|
/**
|
|
49988
50089
|
* Meta only. Regional regulation categories required when the ad set targets certain countries.
|
|
49989
|
-
* Known values:
|
|
49990
|
-
*
|
|
50090
|
+
* Known values: AUSTRALIA_FINSERV, AUSTRALIA_UNIVERSAL, BRAZIL_REGULATION, INDIA_FINSERV,
|
|
50091
|
+
* MALAYSIA_UNIVERSAL, SINGAPORE_UNIVERSAL, TAIWAN_FINSERV, TAIWAN_UNIVERSAL, THAILAND_UNIVERSAL. Meta rejects the ad set without this when
|
|
49991
50092
|
* the targeting geo includes the corresponding country.
|
|
49992
50093
|
*
|
|
49993
50094
|
*/
|
|
49994
50095
|
regionalRegulatedCategories?: Array<(string)>;
|
|
49995
50096
|
/**
|
|
49996
|
-
* Meta only.
|
|
49997
|
-
*
|
|
49998
|
-
*
|
|
49999
|
-
*
|
|
50097
|
+
* Meta only. Verified identity IDs of the beneficiary and payer for each declared
|
|
50098
|
+
* regionalRegulatedCategories value. Meta may require them on ad sets created through
|
|
50099
|
+
* the API even when a default beneficiary and payer are set in Ads Manager advertising
|
|
50100
|
+
* settings (seen on AUSTRALIA_FINSERV), so sending them explicitly is the reliable path.
|
|
50101
|
+
* The value is the Verified identity ID (Meta Business Settings > Verified identities),
|
|
50102
|
+
* not a Page or Business ID, and beneficiary and payer may be the same ID.
|
|
50103
|
+
* Keys by category: AUSTRALIA_FINSERV uses australia_finserv_beneficiary /
|
|
50104
|
+
* australia_finserv_payer; TAIWAN_FINSERV uses taiwan_finserv_beneficiary /
|
|
50105
|
+
* taiwan_finserv_payer; INDIA_FINSERV uses india_finserv_beneficiary / india_finserv_payer;
|
|
50106
|
+
* TAIWAN_UNIVERSAL uses taiwan_universal_beneficiary / taiwan_universal_payer;
|
|
50107
|
+
* SINGAPORE_UNIVERSAL uses singapore_universal_beneficiary / singapore_universal_payer;
|
|
50108
|
+
* AUSTRALIA_UNIVERSAL, BRAZIL_REGULATION, MALAYSIA_UNIVERSAL and THAILAND_UNIVERSAL use
|
|
50109
|
+
* universal_beneficiary / universal_payer. When Meta rejects the ad set for a missing verified
|
|
50110
|
+
* advertiser, the error carries param regionalRegulationIdentities, details.expectedIdentityKeys
|
|
50111
|
+
* (the keys the declared categories expect), details.suggestedCategories (the markets Meta
|
|
50112
|
+
* ties to that subcode) and Meta's metaCode, metaSubcode and fbtraceId.
|
|
50113
|
+
* Ignored when adSetId adds the ad to an existing ad set.
|
|
50000
50114
|
*
|
|
50001
50115
|
*/
|
|
50002
50116
|
regionalRegulationIdentities?: {
|