@getlatedev/node 0.2.1144 → 0.2.1146
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 +115 -7
- package/dist/index.d.ts +115 -7
- package/dist/index.js +10 -1
- package/dist/index.mjs +10 -1
- package/package.json +1 -1
- package/src/client.ts +4 -0
- package/src/generated/sdk.gen.ts +49 -1
- package/src/generated/types.gen.ts +162 -54
|
@@ -29496,62 +29496,100 @@ export type GetInboxPostCommentsResponse = ({
|
|
|
29496
29496
|
rootCid?: (string) | null;
|
|
29497
29497
|
}>;
|
|
29498
29498
|
/**
|
|
29499
|
-
* (Reddit
|
|
29500
|
-
*
|
|
29501
|
-
*
|
|
29502
|
-
*
|
|
29499
|
+
* (Reddit, Facebook and Instagram) Metadata for the target post, returned alongside the comments
|
|
29500
|
+
* so integrators can render a preview of the post being commented on without an additional request.
|
|
29501
|
+
*
|
|
29502
|
+
* Facebook and Instagram return the Meta shape: the post thumbnail, text and permalink, for any post
|
|
29503
|
+
* the account can read, including the hidden dark posts Meta publishes for each variant of an ad
|
|
29504
|
+
* (dynamic creative, placement asset customization, Advantage+). Facebook posts need the Facebook
|
|
29505
|
+
* Page connection and Instagram media the Instagram connection. `thumbnailUrl` and `mediaUrl` are
|
|
29506
|
+
* Meta CDN URLs that expire: store a copy if you render them later. On Instagram, `productType`
|
|
29507
|
+
* tells an ad (`AD`) from organic media (`FEED`, `REELS`, `STORY`).
|
|
29508
|
+
*
|
|
29509
|
+
* Absent on other platforms, when the post cannot be read with the connection's token, and on Reddit
|
|
29510
|
+
* when the upstream response is missing the post listing (deleted post, malformed response).
|
|
29503
29511
|
*
|
|
29504
29512
|
*/
|
|
29505
|
-
post?: {
|
|
29506
|
-
|
|
29507
|
-
|
|
29508
|
-
|
|
29509
|
-
|
|
29510
|
-
|
|
29511
|
-
|
|
29512
|
-
|
|
29513
|
-
|
|
29514
|
-
|
|
29515
|
-
|
|
29516
|
-
|
|
29517
|
-
|
|
29518
|
-
|
|
29519
|
-
|
|
29520
|
-
|
|
29521
|
-
|
|
29522
|
-
|
|
29523
|
-
|
|
29524
|
-
|
|
29525
|
-
|
|
29526
|
-
|
|
29527
|
-
|
|
29528
|
-
|
|
29529
|
-
|
|
29530
|
-
|
|
29531
|
-
|
|
29532
|
-
|
|
29533
|
-
|
|
29534
|
-
|
|
29535
|
-
|
|
29536
|
-
|
|
29537
|
-
|
|
29538
|
-
|
|
29539
|
-
|
|
29540
|
-
|
|
29541
|
-
|
|
29542
|
-
|
|
29543
|
-
|
|
29544
|
-
|
|
29545
|
-
|
|
29546
|
-
|
|
29547
|
-
|
|
29548
|
-
|
|
29549
|
-
|
|
29550
|
-
|
|
29551
|
-
|
|
29552
|
-
|
|
29553
|
-
|
|
29554
|
-
|
|
29513
|
+
post?: ({
|
|
29514
|
+
/**
|
|
29515
|
+
* Reddit post base36 id (e.g. "1tjtj26")
|
|
29516
|
+
*/
|
|
29517
|
+
id?: string;
|
|
29518
|
+
/**
|
|
29519
|
+
* Fullname with type prefix (e.g. "t3_1tjtj26")
|
|
29520
|
+
*/
|
|
29521
|
+
fullname?: string;
|
|
29522
|
+
title?: string;
|
|
29523
|
+
/**
|
|
29524
|
+
* Body text for self-posts (empty for link posts)
|
|
29525
|
+
*/
|
|
29526
|
+
selftext?: string;
|
|
29527
|
+
/**
|
|
29528
|
+
* Reddit username, without the u/ prefix
|
|
29529
|
+
*/
|
|
29530
|
+
author?: string;
|
|
29531
|
+
/**
|
|
29532
|
+
* Subreddit name, without the r/ prefix
|
|
29533
|
+
*/
|
|
29534
|
+
subreddit?: string;
|
|
29535
|
+
/**
|
|
29536
|
+
* Absolute URL to the post on reddit.com
|
|
29537
|
+
*/
|
|
29538
|
+
permalink?: string;
|
|
29539
|
+
/**
|
|
29540
|
+
* For link posts, the external URL; for self-posts, the Reddit permalink
|
|
29541
|
+
*/
|
|
29542
|
+
url?: string;
|
|
29543
|
+
/**
|
|
29544
|
+
* Net upvotes (upvotes minus downvotes)
|
|
29545
|
+
*/
|
|
29546
|
+
score?: number;
|
|
29547
|
+
numComments?: number;
|
|
29548
|
+
/**
|
|
29549
|
+
* Unix timestamp in seconds
|
|
29550
|
+
*/
|
|
29551
|
+
createdUtc?: number;
|
|
29552
|
+
over18?: boolean;
|
|
29553
|
+
stickied?: boolean;
|
|
29554
|
+
/**
|
|
29555
|
+
* Link flair text if any
|
|
29556
|
+
*/
|
|
29557
|
+
flairText?: (string) | null;
|
|
29558
|
+
/**
|
|
29559
|
+
* True if the post is a Reddit gallery (multiple images)
|
|
29560
|
+
*/
|
|
29561
|
+
isGallery?: boolean;
|
|
29562
|
+
} | {
|
|
29563
|
+
/**
|
|
29564
|
+
* Facebook post id ({pageId}_{postId}) or Instagram media id
|
|
29565
|
+
*/
|
|
29566
|
+
id: string;
|
|
29567
|
+
permalink: (string) | null;
|
|
29568
|
+
/**
|
|
29569
|
+
* Facebook post message or Instagram caption
|
|
29570
|
+
*/
|
|
29571
|
+
text: (string) | null;
|
|
29572
|
+
/**
|
|
29573
|
+
* Facebook `full_picture` (or the first attachment image); Instagram `thumbnail_url` for videos, `media_url` for images. Expiring Meta CDN URL.
|
|
29574
|
+
*/
|
|
29575
|
+
thumbnailUrl: (string) | null;
|
|
29576
|
+
/**
|
|
29577
|
+
* Instagram `media_url` (the video file for videos). Always null on Facebook. Expiring Meta CDN URL.
|
|
29578
|
+
*/
|
|
29579
|
+
mediaUrl: (string) | null;
|
|
29580
|
+
/**
|
|
29581
|
+
* Instagram `media_type` (IMAGE, VIDEO, CAROUSEL_ALBUM) or the Facebook attachment type (photo, video_inline, link, ...)
|
|
29582
|
+
*/
|
|
29583
|
+
mediaType: (string) | null;
|
|
29584
|
+
/**
|
|
29585
|
+
* Instagram `media_product_type`: AD, FEED, REELS or STORY. Always null on Facebook.
|
|
29586
|
+
*/
|
|
29587
|
+
productType: (string) | null;
|
|
29588
|
+
/**
|
|
29589
|
+
* Creation time as Meta returns it (e.g. 2026-05-27T17:15:51+0000)
|
|
29590
|
+
*/
|
|
29591
|
+
createdAt: (string) | null;
|
|
29592
|
+
} | null);
|
|
29555
29593
|
/**
|
|
29556
29594
|
* (Facebook and Instagram only) Present when `commentId` was passed: the requested
|
|
29557
29595
|
* comment itself, in the same shape as an entry in comments[]. comments[] then holds
|
|
@@ -49567,6 +49605,76 @@ export type SearchAdTargetingResponse = ({
|
|
|
49567
49605
|
|
|
49568
49606
|
export type SearchAdTargetingError = (unknown | ErrorResponse);
|
|
49569
49607
|
|
|
49608
|
+
export type BrowseAdTargetingData = {
|
|
49609
|
+
query: {
|
|
49610
|
+
/**
|
|
49611
|
+
* A connected Meta account (metaads, facebook or instagram). Any other ad platform returns 501 platform_not_supported.
|
|
49612
|
+
*/
|
|
49613
|
+
accountId: string;
|
|
49614
|
+
/**
|
|
49615
|
+
* The Meta ad account to browse as, in the form "act_<digits>".
|
|
49616
|
+
*/
|
|
49617
|
+
adAccountId: string;
|
|
49618
|
+
/**
|
|
49619
|
+
* Only the descendants (every depth) of this organizational node, e.g. `Demographics > Financial`. A nodeId that is not an organizational node of the catalog returns 400.
|
|
49620
|
+
*/
|
|
49621
|
+
parentNodeId?: string;
|
|
49622
|
+
/**
|
|
49623
|
+
* `true` for selectable entities only, `false` for organizational nodes only.
|
|
49624
|
+
*/
|
|
49625
|
+
selectable?: boolean;
|
|
49626
|
+
/**
|
|
49627
|
+
* Only the nodes of this Meta type (e.g. interests, behaviors, life_events, income), plus the organizational nodes leading to them. A type that is not in the catalog returns 400.
|
|
49628
|
+
*/
|
|
49629
|
+
type?: string;
|
|
49630
|
+
};
|
|
49631
|
+
};
|
|
49632
|
+
|
|
49633
|
+
export type BrowseAdTargetingResponse = ({
|
|
49634
|
+
adAccountId: string;
|
|
49635
|
+
nodes: Array<{
|
|
49636
|
+
/**
|
|
49637
|
+
* Identifies the node within this response. Not a Meta id: never put it in a targeting spec.
|
|
49638
|
+
*/
|
|
49639
|
+
nodeId: string;
|
|
49640
|
+
/**
|
|
49641
|
+
* nodeId of the parent organizational node, null for a root.
|
|
49642
|
+
*/
|
|
49643
|
+
parentNodeId: (string) | null;
|
|
49644
|
+
/**
|
|
49645
|
+
* Meta targeting id, null on organizational nodes.
|
|
49646
|
+
*/
|
|
49647
|
+
id: (string) | null;
|
|
49648
|
+
name: string;
|
|
49649
|
+
/**
|
|
49650
|
+
* Meta's targeting spec key (interests, behaviors, industries, life_events, education_statuses, relationship_statuses, family_statuses, income, ...). Null on most organizational nodes.
|
|
49651
|
+
*/
|
|
49652
|
+
type: (string) | null;
|
|
49653
|
+
/**
|
|
49654
|
+
* Labels of the ancestors, root first. Does not include the node itself.
|
|
49655
|
+
*/
|
|
49656
|
+
path: Array<(string)>;
|
|
49657
|
+
/**
|
|
49658
|
+
* True when the node can be targeted (it has a Meta id).
|
|
49659
|
+
*/
|
|
49660
|
+
selectable: boolean;
|
|
49661
|
+
/**
|
|
49662
|
+
* Meta's description, when it has one.
|
|
49663
|
+
*/
|
|
49664
|
+
description?: string;
|
|
49665
|
+
/**
|
|
49666
|
+
* Meta's estimated audience size, lower bound, when reported.
|
|
49667
|
+
*/
|
|
49668
|
+
audienceSizeLowerBound?: number;
|
|
49669
|
+
/**
|
|
49670
|
+
* Meta's estimated audience size, upper bound, when reported.
|
|
49671
|
+
*/
|
|
49672
|
+
audienceSizeUpperBound?: number;
|
|
49673
|
+
}>;
|
|
49674
|
+
});
|
|
49675
|
+
|
|
49676
|
+
export type BrowseAdTargetingError = (ErrorResponse | unknown);
|
|
49677
|
+
|
|
49570
49678
|
export type SearchAdLibraryData = {
|
|
49571
49679
|
query?: {
|
|
49572
49680
|
/**
|