@getlatedev/node 0.2.1448 → 0.2.1449

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/dist/index.d.mts CHANGED
@@ -27221,7 +27221,7 @@ type CreatePostData = {
27221
27221
  */
27222
27222
  title?: string;
27223
27223
  /**
27224
- * 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).
27224
+ * 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 [LinkedIn mentions](/platforms/linkedin#mentions).
27225
27225
  */
27226
27226
  content?: string;
27227
27227
  /**
package/dist/index.d.ts CHANGED
@@ -27221,7 +27221,7 @@ type CreatePostData = {
27221
27221
  */
27222
27222
  title?: string;
27223
27223
  /**
27224
- * 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).
27224
+ * 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 [LinkedIn mentions](/platforms/linkedin#mentions).
27225
27225
  */
27226
27226
  content?: string;
27227
27227
  /**
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
36
36
  // package.json
37
37
  var package_default = {
38
38
  name: "@getlatedev/node",
39
- version: "0.2.1448",
39
+ version: "0.2.1449",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@getlatedev/node",
8
- version: "0.2.1448",
8
+ version: "0.2.1449",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1448",
3
+ "version": "0.2.1449",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1694,39 +1694,6 @@ export const listPosts = <ThrowOnError extends boolean = false>(options?: Option
1694
1694
  *
1695
1695
  * See each platform's schema for media constraints.
1696
1696
  *
1697
- * ## LinkedIn @mentions
1698
- *
1699
- * Mention a person or company by putting its LinkedIn URL inside `@[...]`, in `content`, a LinkedIn entry's `customContent` or its `platformSpecificData.firstComment`. The post is published with LinkedIn's real name and link, with no lookup call first.
1700
- *
1701
- * - Person: `@[https://www.linkedin.com/in/jane-doe]`
1702
- * - Company: `@[https://www.linkedin.com/company/acme]`
1703
- * - Your own text: `@[Jane](https://www.linkedin.com/in/jane-doe)`. For a person it must be the first, last or full name, for a company the exact company name, both case-sensitive. Other text is replaced with LinkedIn's name and returns a `linkedin_mention_name_replaced` warning.
1704
- * - `@[Text](urn:li:person:ID)`, as returned by `GET /v1/accounts/{accountId}/linkedin-mentions`: published exactly as written, with no lookup, so its text must already be LinkedIn's name.
1705
- *
1706
- * A post can resolve at most 10 profile or company URL mentions across its shared content, LinkedIn entries and first comments. Resolving a person's profile URL needs one of your LinkedIn accounts to administer a Page; publishing does not.
1707
- *
1708
- * ### When a mention can't be resolved
1709
- *
1710
- * Only profile and company URLs can fail. A scheduled or published post is rejected with:
1711
- *
1712
- * - `400` `linkedin_mentions_invalid`: a URL could not be resolved
1713
- * - `400` `linkedin_mentions_limit_exceeded`: more than 10 URL mentions
1714
- * - `401` `reconnect_required`: the LinkedIn token expired
1715
- * - `429` `rate_limited`: LinkedIn is rate limiting
1716
- * - `503` `temporarily_unavailable` (retryable): LinkedIn did not answer within 8 seconds in total
1717
- *
1718
- * `details.mentions[]` (`LinkedInMentionIssue`) lists each failing mention with its own code:
1719
- *
1720
- * - `linkedin_mention_unresolvable`
1721
- * - `linkedin_mention_requires_page_admin`
1722
- * - `linkedin_mention_name_unavailable`: LinkedIn withheld the name and none was given
1723
- *
1724
- * Drafts never fail on a mention: unresolved ones (and more than 10) stay as written and come back as `warnings`. A draft is checked again when it is scheduled.
1725
- *
1726
- * ### On other platforms
1727
- *
1728
- * `@[linkedin.com/in/jane]` is posted as its text, or as the vanity (`jane`) when you wrote no text, and `@[Text](urn:li:...)` as `Text`.
1729
- *
1730
1697
  * ## Scheduling
1731
1698
  *
1732
1699
  * Pick one of:
@@ -1878,28 +1845,6 @@ export const getPost = <ThrowOnError extends boolean = false>(options: OptionsLe
1878
1845
  *
1879
1846
  * Non-draft updates run the same per-platform validation as post creation (media requirements, platform-specific field rules, etc.) against the resulting platforms, returning 400 on failure.
1880
1847
  *
1881
- * ## LinkedIn @mentions
1882
- *
1883
- * Profile and company URLs in the `content` or LinkedIn `customContent` you send are resolved to LinkedIn's name and link, exactly as on `POST /v1/posts` (see Create post for the rules). For example:
1884
- *
1885
- * - `@[https://www.linkedin.com/in/jane-doe]`
1886
- * - `@[Jane](https://www.linkedin.com/company/acme)`
1887
- *
1888
- * Only what the request sends is looked up: an update of the schedule, status or media makes no LinkedIn call, and `@[Text](urn:li:...)` markup is stored as written.
1889
- *
1890
- * Moving a draft out of draft also resolves the stored `content` and the stored `customContent` of its LinkedIn entries, and saves the result.
1891
- *
1892
- * ### When a mention can't be resolved
1893
- *
1894
- * On a non-draft, the request returns one of these, with each mention under `details.mentions[]` (`LinkedInMentionIssue`):
1895
- *
1896
- * - `400` `linkedin_mentions_invalid`
1897
- * - `429` `rate_limited`
1898
- * - `401` `reconnect_required`
1899
- * - `503` `temporarily_unavailable` (retryable)
1900
- *
1901
- * Drafts get `warnings` instead.
1902
- *
1903
1848
  */
1904
1849
  export const updatePost = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdatePostData, ThrowOnError>) => {
1905
1850
  return (options?.client ?? client).put<UpdatePostResponse, UpdatePostError, ThrowOnError>({
@@ -26150,7 +26150,7 @@ export type CreatePostData = {
26150
26150
  */
26151
26151
  title?: string;
26152
26152
  /**
26153
- * 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).
26153
+ * 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 [LinkedIn mentions](/platforms/linkedin#mentions).
26154
26154
  */
26155
26155
  content?: string;
26156
26156
  /**