@getlatedev/node 0.2.1304 → 0.2.1306
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 +89 -6
- package/dist/index.d.ts +89 -6
- package/dist/index.js +9 -2
- package/dist/index.mjs +9 -2
- package/package.json +1 -1
- package/src/client.ts +2 -0
- package/src/generated/sdk.gen.ts +45 -8
- package/src/generated/types.gen.ts +93 -5
|
@@ -6797,6 +6797,37 @@ export type FacebookSettings = {
|
|
|
6797
6797
|
textFormatPresetId?: string;
|
|
6798
6798
|
};
|
|
6799
6799
|
|
|
6800
|
+
export type FacebookTaggedPost = {
|
|
6801
|
+
/**
|
|
6802
|
+
* Facebook post ID of the post that tags the Page.
|
|
6803
|
+
*/
|
|
6804
|
+
id: string;
|
|
6805
|
+
message: (string) | null;
|
|
6806
|
+
/**
|
|
6807
|
+
* Publication time as Meta returns it (ISO 8601).
|
|
6808
|
+
*/
|
|
6809
|
+
createdTime: (string) | null;
|
|
6810
|
+
/**
|
|
6811
|
+
* When the Page was tagged in the post (ISO 8601).
|
|
6812
|
+
*/
|
|
6813
|
+
taggedTime: (string) | null;
|
|
6814
|
+
/**
|
|
6815
|
+
* Public Facebook URL of the post.
|
|
6816
|
+
*/
|
|
6817
|
+
permalinkUrl: (string) | null;
|
|
6818
|
+
/**
|
|
6819
|
+
* Full-size picture attached to the post.
|
|
6820
|
+
*/
|
|
6821
|
+
pictureUrl: (string) | null;
|
|
6822
|
+
/**
|
|
6823
|
+
* Null when Meta does not return the author, which is common for posts by people.
|
|
6824
|
+
*/
|
|
6825
|
+
from: {
|
|
6826
|
+
id: string;
|
|
6827
|
+
name: (string) | null;
|
|
6828
|
+
} | null;
|
|
6829
|
+
};
|
|
6830
|
+
|
|
6800
6831
|
export type FeedbackReceipt = {
|
|
6801
6832
|
/**
|
|
6802
6833
|
* Feedback id. Quote it if you follow up with support.
|
|
@@ -9374,6 +9405,29 @@ export type LinkedInAggregateAnalyticsTotalResponse = {
|
|
|
9374
9405
|
|
|
9375
9406
|
export type aggregation2 = 'TOTAL';
|
|
9376
9407
|
|
|
9408
|
+
/**
|
|
9409
|
+
* One LinkedIn mention that could not be resolved, listed under `details.mentions[]` of the error.
|
|
9410
|
+
*/
|
|
9411
|
+
export type LinkedInMentionIssue = {
|
|
9412
|
+
/**
|
|
9413
|
+
* The mention exactly as written in the request, for example `@[https://www.linkedin.com/in/jane-doe]`.
|
|
9414
|
+
*/
|
|
9415
|
+
input: string;
|
|
9416
|
+
/**
|
|
9417
|
+
* Why it failed.
|
|
9418
|
+
*/
|
|
9419
|
+
code: 'linkedin_mention_unresolvable' | 'linkedin_mention_requires_page_admin' | 'linkedin_mention_name_unavailable' | 'linkedin_mentions_limit_exceeded' | 'rate_limited' | 'reconnect_required' | 'temporarily_unavailable';
|
|
9420
|
+
/**
|
|
9421
|
+
* Human-readable reason.
|
|
9422
|
+
*/
|
|
9423
|
+
message: string;
|
|
9424
|
+
};
|
|
9425
|
+
|
|
9426
|
+
/**
|
|
9427
|
+
* Why it failed.
|
|
9428
|
+
*/
|
|
9429
|
+
export type code = 'linkedin_mention_unresolvable' | 'linkedin_mention_requires_page_admin' | 'linkedin_mention_name_unavailable' | 'linkedin_mentions_limit_exceeded' | 'rate_limited' | 'reconnect_required' | 'temporarily_unavailable';
|
|
9430
|
+
|
|
9377
9431
|
/**
|
|
9378
9432
|
* Up to 20 images, no multi-video. Single PDF supported (max 100MB). Link previews auto-generated when no media attached. Use organizationUrn for multi-org posting. Geo-restriction only works for organization pages (not personal profiles) and requires the targeted audience to exceed 300 followers. Polls are supported via the poll object: 2-4 options, cannot be combined with media or reshareUrl, cannot be edited after publishing, and API-created polls are non-sponsored only.
|
|
9379
9433
|
*
|
|
@@ -10586,7 +10640,7 @@ export type Post = {
|
|
|
10586
10640
|
*/
|
|
10587
10641
|
hashtags?: Array<(string)>;
|
|
10588
10642
|
/**
|
|
10589
|
-
* Stored for reference only. This field does NOT automatically create @mentions when publishing. For LinkedIn @mentions,
|
|
10643
|
+
* Stored for reference only. This field does NOT automatically create @mentions when publishing. For LinkedIn @mentions, write them in the post content, for example @[https://www.linkedin.com/in/jane-doe] or @[https://www.linkedin.com/company/acme].
|
|
10590
10644
|
*/
|
|
10591
10645
|
mentions?: Array<(string)>;
|
|
10592
10646
|
visibility?: 'public' | 'private' | 'unlisted';
|
|
@@ -17718,7 +17772,7 @@ export type WhatsAppTemplateLookupError = {
|
|
|
17718
17772
|
|
|
17719
17773
|
export type type20 = 'platform_error';
|
|
17720
17774
|
|
|
17721
|
-
export type
|
|
17775
|
+
export type code2 = 'platform_api_error';
|
|
17722
17776
|
|
|
17723
17777
|
export type phase = 'template_lookup';
|
|
17724
17778
|
|
|
@@ -20665,7 +20719,7 @@ export type CreatePostData = {
|
|
|
20665
20719
|
*/
|
|
20666
20720
|
title?: string;
|
|
20667
20721
|
/**
|
|
20668
|
-
* Post caption/text. Optional when media is attached, all platforms have customContent, every platform entry is an X Article (platformSpecificData.article), or every platform entry is a LinkedIn text-free reshare (platformSpecificData.reshareUrl with no text). Required for other text-only posts.
|
|
20722
|
+
* Post caption/text. Optional when media is attached, all platforms have customContent, every platform entry is an X Article (platformSpecificData.article), or every platform entry is a LinkedIn text-free reshare (platformSpecificData.reshareUrl with no text). Required for other text-only posts. LinkedIn @mentions: write @[https://www.linkedin.com/in/jane-doe] or @[https://www.linkedin.com/company/acme] in the text (see the operation description).
|
|
20669
20723
|
*/
|
|
20670
20724
|
content?: string;
|
|
20671
20725
|
/**
|
|
@@ -20722,7 +20776,7 @@ export type CreatePostData = {
|
|
|
20722
20776
|
*/
|
|
20723
20777
|
hashtags?: Array<(string)>;
|
|
20724
20778
|
/**
|
|
20725
|
-
* Stored for reference only. This field does NOT automatically create @mentions when publishing. For LinkedIn @mentions,
|
|
20779
|
+
* Stored for reference only. This field does NOT automatically create @mentions when publishing. For LinkedIn @mentions, write them in the post content, for example @[https://www.linkedin.com/in/jane-doe] or @[https://www.linkedin.com/company/acme].
|
|
20726
20780
|
*/
|
|
20727
20781
|
mentions?: Array<(string)>;
|
|
20728
20782
|
/**
|
|
@@ -20774,6 +20828,10 @@ export type CreatePostResponse = ((TikTokDryRunVerdict | PostCreateResponse) | P
|
|
|
20774
20828
|
|
|
20775
20829
|
export type CreatePostError = ({
|
|
20776
20830
|
error?: string;
|
|
20831
|
+
code?: string;
|
|
20832
|
+
details?: {
|
|
20833
|
+
mentions?: Array<LinkedInMentionIssue>;
|
|
20834
|
+
};
|
|
20777
20835
|
} | ErrorResponse | {
|
|
20778
20836
|
error?: string;
|
|
20779
20837
|
/**
|
|
@@ -27241,7 +27299,8 @@ export type GetLinkedInMentionsData = {
|
|
|
27241
27299
|
};
|
|
27242
27300
|
query: {
|
|
27243
27301
|
/**
|
|
27244
|
-
*
|
|
27302
|
+
* Deprecated: omit it. When sent for a person it overrides the mention text, and LinkedIn renders the mention only if it is exactly the person's first name, last name or full name (case-sensitive). When omitted the real name is read from LinkedIn. Ignored for org mentions, which always use the organization's LinkedIn name.
|
|
27303
|
+
* @deprecated
|
|
27245
27304
|
*/
|
|
27246
27305
|
displayName?: string;
|
|
27247
27306
|
/**
|
|
@@ -27942,6 +28001,35 @@ export type GetFacebookPostReactionsResponse = ({
|
|
|
27942
28001
|
|
|
27943
28002
|
export type GetFacebookPostReactionsError = (unknown | ErrorResponse);
|
|
27944
28003
|
|
|
28004
|
+
export type ListFacebookTaggedPostsData = {
|
|
28005
|
+
path: {
|
|
28006
|
+
/**
|
|
28007
|
+
* The ID of a connected Facebook account.
|
|
28008
|
+
*/
|
|
28009
|
+
accountId: string;
|
|
28010
|
+
};
|
|
28011
|
+
query?: {
|
|
28012
|
+
/**
|
|
28013
|
+
* The `nextCursor` of the previous page.
|
|
28014
|
+
*/
|
|
28015
|
+
cursor?: string;
|
|
28016
|
+
/**
|
|
28017
|
+
* Page size.
|
|
28018
|
+
*/
|
|
28019
|
+
limit?: number;
|
|
28020
|
+
};
|
|
28021
|
+
};
|
|
28022
|
+
|
|
28023
|
+
export type ListFacebookTaggedPostsResponse = ({
|
|
28024
|
+
data: Array<FacebookTaggedPost>;
|
|
28025
|
+
/**
|
|
28026
|
+
* Pass as `cursor` to read the next page. Null when there are no more pages.
|
|
28027
|
+
*/
|
|
28028
|
+
nextCursor: (string) | null;
|
|
28029
|
+
});
|
|
28030
|
+
|
|
28031
|
+
export type ListFacebookTaggedPostsError = (ErrorResponse);
|
|
28032
|
+
|
|
27945
28033
|
export type GetRedditSubredditsData = {
|
|
27946
28034
|
path: {
|
|
27947
28035
|
accountId: string;
|