@getlatedev/node 0.2.1448 → 0.2.1450

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.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.1450",
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.1450",
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.1450",
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>({
@@ -9,7 +9,7 @@ export type AccountCursorPagination = {
9
9
  };
10
10
 
11
11
  export type AccountsListResponse = {
12
- accounts: Array<SocialAccount>;
12
+ accounts: Array<ListedAccount>;
13
13
  /**
14
14
  * Whether user has analytics add-on access
15
15
  */
@@ -10261,6 +10261,28 @@ export type region = 'US' | 'GB';
10261
10261
  */
10262
10262
  export type status32 = 'ordering' | 'awaiting_payment' | 'activating' | 'active' | 'suspended' | 'canceled' | 'failed';
10263
10263
 
10264
+ /**
10265
+ * When inbound messages and comments were first and last seen for the account. Only events matched to this account count. WhatsApp delivery statuses for outbound messages do not count, so the stamps of a number that only sends stay null. The stamps reset on every connect.
10266
+ */
10267
+ export type InboundActivity = {
10268
+ /**
10269
+ * First inbound message since the latest connect, or since tracking began for an account connected before it. Null when none yet.
10270
+ */
10271
+ firstMessageAt: (string) | null;
10272
+ /**
10273
+ * Latest inbound message, precise to about one hour. Null when none yet.
10274
+ */
10275
+ lastMessageAt: (string) | null;
10276
+ /**
10277
+ * First inbound comment since the latest connect, or since tracking began for an account connected before it. Null when none yet.
10278
+ */
10279
+ firstCommentAt: (string) | null;
10280
+ /**
10281
+ * Latest inbound comment, precise to about one hour. Null when none yet.
10282
+ */
10283
+ lastCommentAt: (string) | null;
10284
+ };
10285
+
10264
10286
  /**
10265
10287
  * Click attribution for a conversation that started from a Meta ad or a ref-tagged ig.me / m.me link, as Meta sent it. Absent when the conversation did not come from an attributable click. For the ad name, campaign and ad set, read `adAttribution`.
10266
10288
  *
@@ -11780,6 +11802,13 @@ export type LinkedInPlatformData = {
11780
11802
  */
11781
11803
  export type duration = 'ONE_DAY' | 'THREE_DAYS' | 'SEVEN_DAYS' | 'FOURTEEN_DAYS';
11782
11804
 
11805
+ export type ListedAccount = SocialAccount & {
11806
+ /**
11807
+ * Present only on WhatsApp, Instagram and Facebook accounts. All four stamps are null when no inbound event has been seen since the latest connect. Null for an account connected before tracking shipped until its first inbound event or its next connect.
11808
+ */
11809
+ inboundActivity?: (InboundActivity | null);
11810
+ };
11811
+
11783
11812
  /**
11784
11813
  * MIME type of the file to upload. Rejected with a 400 (INVALID_FIELD_VALUE on contentType) when it is not one of these values, so generic types such as application/octet-stream are not accepted here.
11785
11814
  */
@@ -26150,7 +26179,7 @@ export type CreatePostData = {
26150
26179
  */
26151
26180
  title?: string;
26152
26181
  /**
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).
26182
+ * 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
26183
  */
26155
26184
  content?: string;
26156
26185
  /**
@@ -27234,6 +27263,10 @@ export type GetAllAccountsHealthResponse = ({
27234
27263
  */
27235
27264
  lastSyncedAt?: (string) | null;
27236
27265
  };
27266
+ /**
27267
+ * Present on WhatsApp, Instagram and Facebook accounts. An active WhatsApp number with no inbound message or comment 24 hours after its latest connect gets an entry in issues, which never changes status. Null for accounts connected before tracking shipped, until their first inbound event or next connect.
27268
+ */
27269
+ inboundActivity?: (InboundActivity | null);
27237
27270
  /**
27238
27271
  * Observed from Meta's own errors on our sends, not a live probe. It lags reality by one message in each direction.
27239
27272
  *
@@ -27447,6 +27480,10 @@ export type GetAccountHealthResponse = ({
27447
27480
  */
27448
27481
  lastSyncedAt?: (string) | null;
27449
27482
  };
27483
+ /**
27484
+ * Present on WhatsApp, Instagram and Facebook accounts. An active WhatsApp number with no inbound message or comment 24 hours after its latest connect gets an entry in issues, which never changes status. Null for accounts connected before tracking shipped, until their first inbound event or next connect.
27485
+ */
27486
+ inboundActivity?: (InboundActivity | null);
27450
27487
  /**
27451
27488
  * Observed from Meta's own errors on our sends, not a live probe. It lags reality by one message in each direction.
27452
27489
  *