@getlatedev/node 0.2.1390 → 0.2.1392
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 +41 -3
- package/dist/index.d.ts +41 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +2 -2
- package/src/generated/types.gen.ts +41 -3
package/dist/index.d.mts
CHANGED
|
@@ -13142,7 +13142,7 @@ type LinkedInPlatformData = {
|
|
|
13142
13142
|
*/
|
|
13143
13143
|
organizationUrn?: string;
|
|
13144
13144
|
/**
|
|
13145
|
-
* Optional first comment to add after the post is created. Mention
|
|
13145
|
+
* Optional first comment to add after the post is created. Mention with @[https://www.linkedin.com/in/vanity] (resolved to LinkedIn's live name, same rules and errors as post content) or @[Name](urn:li:person|organization:ID); a hand-written name must match LinkedIn's exactly or it renders as plain text.
|
|
13146
13146
|
*/
|
|
13147
13147
|
firstComment?: string;
|
|
13148
13148
|
/**
|
|
@@ -27530,6 +27530,22 @@ type GetAllAccountsHealthResponse = ({
|
|
|
27530
27530
|
*/
|
|
27531
27531
|
needsReconnect?: boolean;
|
|
27532
27532
|
issues?: Array<(string)>;
|
|
27533
|
+
/**
|
|
27534
|
+
* User id of the profile owner, not necessarily the team member who connected the account.
|
|
27535
|
+
*/
|
|
27536
|
+
ownerUserId?: string;
|
|
27537
|
+
/**
|
|
27538
|
+
* Why the connection is broken or its token refresh is failing, from the most recent current cause. Null when the connection is healthy, including when the account is unhealthy for another reason (analytics, messaging restriction, missing analytics scopes), or when no cause is stored.
|
|
27539
|
+
*/
|
|
27540
|
+
disconnectReason?: (string) | null;
|
|
27541
|
+
/**
|
|
27542
|
+
* intentional: deliberately disconnected by the user or by Zernio (for example a plan downgrade), not a token failure. unintentional: token expired or revoked, or an auth failure. Null when disconnectReason is null.
|
|
27543
|
+
*/
|
|
27544
|
+
disconnectionType?: ('intentional' | 'unintentional') | null;
|
|
27545
|
+
/**
|
|
27546
|
+
* When the earliest current stored cause was recorded (the start of the outage); for an intentional disconnect, when it was disconnected. Null when the connection is healthy, including when the account is unhealthy for another reason (analytics, messaging restriction, missing analytics scopes), or when the time is unknown.
|
|
27547
|
+
*/
|
|
27548
|
+
unhealthySince?: (string) | null;
|
|
27533
27549
|
/**
|
|
27534
27550
|
* Absent on platforms without analytics sync. failing: several consecutive sync attempts failed. stalled: a sync was requested over 6 hours ago and never completed. never_synced: no sync has completed yet. Failing and stalled raise the account status to at least warning.
|
|
27535
27551
|
*/
|
|
@@ -27712,6 +27728,22 @@ type GetAccountHealthResponse = ({
|
|
|
27712
27728
|
* Actionable recommendations to fix issues
|
|
27713
27729
|
*/
|
|
27714
27730
|
recommendations?: Array<(string)>;
|
|
27731
|
+
/**
|
|
27732
|
+
* User id of the profile owner, not necessarily the team member who connected the account.
|
|
27733
|
+
*/
|
|
27734
|
+
ownerUserId?: string;
|
|
27735
|
+
/**
|
|
27736
|
+
* Why the connection is broken or its token refresh is failing, from the most recent current cause. Null when the connection is healthy, including when the account is unhealthy for another reason (analytics, messaging restriction, missing analytics scopes), or when no cause is stored.
|
|
27737
|
+
*/
|
|
27738
|
+
disconnectReason?: (string) | null;
|
|
27739
|
+
/**
|
|
27740
|
+
* intentional: deliberately disconnected by the user or by Zernio (for example a plan downgrade), not a token failure. unintentional: token expired or revoked, or an auth failure. Null when disconnectReason is null.
|
|
27741
|
+
*/
|
|
27742
|
+
disconnectionType?: ('intentional' | 'unintentional') | null;
|
|
27743
|
+
/**
|
|
27744
|
+
* When the earliest current stored cause was recorded (the start of the outage); for an intentional disconnect, when it was disconnected. Null when the connection is healthy, including when the account is unhealthy for another reason (analytics, messaging restriction, missing analytics scopes), or when the time is unknown.
|
|
27745
|
+
*/
|
|
27746
|
+
unhealthySince?: (string) | null;
|
|
27715
27747
|
/**
|
|
27716
27748
|
* Absent on platforms without analytics sync. failing: several consecutive sync attempts failed. stalled: a sync was requested over 6 hours ago and never completed. never_synced: no sync has completed yet. Failing and stalled raise the account status to at least warning.
|
|
27717
27749
|
*/
|
|
@@ -38798,7 +38830,7 @@ type ReplyToInboxPostData = {
|
|
|
38798
38830
|
body: {
|
|
38799
38831
|
accountId: string;
|
|
38800
38832
|
/**
|
|
38801
|
-
* Reply text. On LinkedIn, mention with @[
|
|
38833
|
+
* Reply text. On LinkedIn, mention with @[https://www.linkedin.com/in/vanity] (resolved to LinkedIn's live name, same rules and errors as post content) or @[Name](urn:li:person|organization:ID); a hand-written name must match LinkedIn's exactly or it renders as plain text.
|
|
38802
38834
|
*/
|
|
38803
38835
|
message: string;
|
|
38804
38836
|
/**
|
|
@@ -38853,7 +38885,13 @@ type ReplyToInboxPostResponse = ({
|
|
|
38853
38885
|
cid?: (string) | null;
|
|
38854
38886
|
};
|
|
38855
38887
|
});
|
|
38856
|
-
type ReplyToInboxPostError = (
|
|
38888
|
+
type ReplyToInboxPostError = ({
|
|
38889
|
+
error?: string;
|
|
38890
|
+
code?: string;
|
|
38891
|
+
details?: {
|
|
38892
|
+
mentions?: Array<LinkedInMentionIssue>;
|
|
38893
|
+
};
|
|
38894
|
+
} | ErrorResponse | unknown);
|
|
38857
38895
|
type DeleteInboxCommentData = {
|
|
38858
38896
|
path: {
|
|
38859
38897
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -13142,7 +13142,7 @@ type LinkedInPlatformData = {
|
|
|
13142
13142
|
*/
|
|
13143
13143
|
organizationUrn?: string;
|
|
13144
13144
|
/**
|
|
13145
|
-
* Optional first comment to add after the post is created. Mention
|
|
13145
|
+
* Optional first comment to add after the post is created. Mention with @[https://www.linkedin.com/in/vanity] (resolved to LinkedIn's live name, same rules and errors as post content) or @[Name](urn:li:person|organization:ID); a hand-written name must match LinkedIn's exactly or it renders as plain text.
|
|
13146
13146
|
*/
|
|
13147
13147
|
firstComment?: string;
|
|
13148
13148
|
/**
|
|
@@ -27530,6 +27530,22 @@ type GetAllAccountsHealthResponse = ({
|
|
|
27530
27530
|
*/
|
|
27531
27531
|
needsReconnect?: boolean;
|
|
27532
27532
|
issues?: Array<(string)>;
|
|
27533
|
+
/**
|
|
27534
|
+
* User id of the profile owner, not necessarily the team member who connected the account.
|
|
27535
|
+
*/
|
|
27536
|
+
ownerUserId?: string;
|
|
27537
|
+
/**
|
|
27538
|
+
* Why the connection is broken or its token refresh is failing, from the most recent current cause. Null when the connection is healthy, including when the account is unhealthy for another reason (analytics, messaging restriction, missing analytics scopes), or when no cause is stored.
|
|
27539
|
+
*/
|
|
27540
|
+
disconnectReason?: (string) | null;
|
|
27541
|
+
/**
|
|
27542
|
+
* intentional: deliberately disconnected by the user or by Zernio (for example a plan downgrade), not a token failure. unintentional: token expired or revoked, or an auth failure. Null when disconnectReason is null.
|
|
27543
|
+
*/
|
|
27544
|
+
disconnectionType?: ('intentional' | 'unintentional') | null;
|
|
27545
|
+
/**
|
|
27546
|
+
* When the earliest current stored cause was recorded (the start of the outage); for an intentional disconnect, when it was disconnected. Null when the connection is healthy, including when the account is unhealthy for another reason (analytics, messaging restriction, missing analytics scopes), or when the time is unknown.
|
|
27547
|
+
*/
|
|
27548
|
+
unhealthySince?: (string) | null;
|
|
27533
27549
|
/**
|
|
27534
27550
|
* Absent on platforms without analytics sync. failing: several consecutive sync attempts failed. stalled: a sync was requested over 6 hours ago and never completed. never_synced: no sync has completed yet. Failing and stalled raise the account status to at least warning.
|
|
27535
27551
|
*/
|
|
@@ -27712,6 +27728,22 @@ type GetAccountHealthResponse = ({
|
|
|
27712
27728
|
* Actionable recommendations to fix issues
|
|
27713
27729
|
*/
|
|
27714
27730
|
recommendations?: Array<(string)>;
|
|
27731
|
+
/**
|
|
27732
|
+
* User id of the profile owner, not necessarily the team member who connected the account.
|
|
27733
|
+
*/
|
|
27734
|
+
ownerUserId?: string;
|
|
27735
|
+
/**
|
|
27736
|
+
* Why the connection is broken or its token refresh is failing, from the most recent current cause. Null when the connection is healthy, including when the account is unhealthy for another reason (analytics, messaging restriction, missing analytics scopes), or when no cause is stored.
|
|
27737
|
+
*/
|
|
27738
|
+
disconnectReason?: (string) | null;
|
|
27739
|
+
/**
|
|
27740
|
+
* intentional: deliberately disconnected by the user or by Zernio (for example a plan downgrade), not a token failure. unintentional: token expired or revoked, or an auth failure. Null when disconnectReason is null.
|
|
27741
|
+
*/
|
|
27742
|
+
disconnectionType?: ('intentional' | 'unintentional') | null;
|
|
27743
|
+
/**
|
|
27744
|
+
* When the earliest current stored cause was recorded (the start of the outage); for an intentional disconnect, when it was disconnected. Null when the connection is healthy, including when the account is unhealthy for another reason (analytics, messaging restriction, missing analytics scopes), or when the time is unknown.
|
|
27745
|
+
*/
|
|
27746
|
+
unhealthySince?: (string) | null;
|
|
27715
27747
|
/**
|
|
27716
27748
|
* Absent on platforms without analytics sync. failing: several consecutive sync attempts failed. stalled: a sync was requested over 6 hours ago and never completed. never_synced: no sync has completed yet. Failing and stalled raise the account status to at least warning.
|
|
27717
27749
|
*/
|
|
@@ -38798,7 +38830,7 @@ type ReplyToInboxPostData = {
|
|
|
38798
38830
|
body: {
|
|
38799
38831
|
accountId: string;
|
|
38800
38832
|
/**
|
|
38801
|
-
* Reply text. On LinkedIn, mention with @[
|
|
38833
|
+
* Reply text. On LinkedIn, mention with @[https://www.linkedin.com/in/vanity] (resolved to LinkedIn's live name, same rules and errors as post content) or @[Name](urn:li:person|organization:ID); a hand-written name must match LinkedIn's exactly or it renders as plain text.
|
|
38802
38834
|
*/
|
|
38803
38835
|
message: string;
|
|
38804
38836
|
/**
|
|
@@ -38853,7 +38885,13 @@ type ReplyToInboxPostResponse = ({
|
|
|
38853
38885
|
cid?: (string) | null;
|
|
38854
38886
|
};
|
|
38855
38887
|
});
|
|
38856
|
-
type ReplyToInboxPostError = (
|
|
38888
|
+
type ReplyToInboxPostError = ({
|
|
38889
|
+
error?: string;
|
|
38890
|
+
code?: string;
|
|
38891
|
+
details?: {
|
|
38892
|
+
mentions?: Array<LinkedInMentionIssue>;
|
|
38893
|
+
};
|
|
38894
|
+
} | ErrorResponse | unknown);
|
|
38857
38895
|
type DeleteInboxCommentData = {
|
|
38858
38896
|
path: {
|
|
38859
38897
|
/**
|
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.
|
|
39
|
+
version: "0.2.1392",
|
|
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.
|
|
8
|
+
version: "0.2.1392",
|
|
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
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -1574,14 +1574,14 @@ export const listPosts = <ThrowOnError extends boolean = false>(options?: Option
|
|
|
1574
1574
|
*
|
|
1575
1575
|
* ## LinkedIn @mentions
|
|
1576
1576
|
*
|
|
1577
|
-
* Mention a person or company by putting its LinkedIn URL inside `@[...]`, in `content
|
|
1577
|
+
* 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.
|
|
1578
1578
|
*
|
|
1579
1579
|
* - Person: `@[https://www.linkedin.com/in/jane-doe]`
|
|
1580
1580
|
* - Company: `@[https://www.linkedin.com/company/acme]`
|
|
1581
1581
|
* - 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.
|
|
1582
1582
|
* - `@[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.
|
|
1583
1583
|
*
|
|
1584
|
-
* A post can resolve at most 10 profile or company URL mentions across its shared content and
|
|
1584
|
+
* 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.
|
|
1585
1585
|
*
|
|
1586
1586
|
* ### When a mention can't be resolved
|
|
1587
1587
|
*
|
|
@@ -11367,7 +11367,7 @@ export type LinkedInPlatformData = {
|
|
|
11367
11367
|
*/
|
|
11368
11368
|
organizationUrn?: string;
|
|
11369
11369
|
/**
|
|
11370
|
-
* Optional first comment to add after the post is created. Mention
|
|
11370
|
+
* Optional first comment to add after the post is created. Mention with @[https://www.linkedin.com/in/vanity] (resolved to LinkedIn's live name, same rules and errors as post content) or @[Name](urn:li:person|organization:ID); a hand-written name must match LinkedIn's exactly or it renders as plain text.
|
|
11371
11371
|
*/
|
|
11372
11372
|
firstComment?: string;
|
|
11373
11373
|
/**
|
|
@@ -26526,6 +26526,22 @@ export type GetAllAccountsHealthResponse = ({
|
|
|
26526
26526
|
*/
|
|
26527
26527
|
needsReconnect?: boolean;
|
|
26528
26528
|
issues?: Array<(string)>;
|
|
26529
|
+
/**
|
|
26530
|
+
* User id of the profile owner, not necessarily the team member who connected the account.
|
|
26531
|
+
*/
|
|
26532
|
+
ownerUserId?: string;
|
|
26533
|
+
/**
|
|
26534
|
+
* Why the connection is broken or its token refresh is failing, from the most recent current cause. Null when the connection is healthy, including when the account is unhealthy for another reason (analytics, messaging restriction, missing analytics scopes), or when no cause is stored.
|
|
26535
|
+
*/
|
|
26536
|
+
disconnectReason?: (string) | null;
|
|
26537
|
+
/**
|
|
26538
|
+
* intentional: deliberately disconnected by the user or by Zernio (for example a plan downgrade), not a token failure. unintentional: token expired or revoked, or an auth failure. Null when disconnectReason is null.
|
|
26539
|
+
*/
|
|
26540
|
+
disconnectionType?: ('intentional' | 'unintentional') | null;
|
|
26541
|
+
/**
|
|
26542
|
+
* When the earliest current stored cause was recorded (the start of the outage); for an intentional disconnect, when it was disconnected. Null when the connection is healthy, including when the account is unhealthy for another reason (analytics, messaging restriction, missing analytics scopes), or when the time is unknown.
|
|
26543
|
+
*/
|
|
26544
|
+
unhealthySince?: (string) | null;
|
|
26529
26545
|
/**
|
|
26530
26546
|
* Absent on platforms without analytics sync. failing: several consecutive sync attempts failed. stalled: a sync was requested over 6 hours ago and never completed. never_synced: no sync has completed yet. Failing and stalled raise the account status to at least warning.
|
|
26531
26547
|
*/
|
|
@@ -26720,6 +26736,22 @@ export type GetAccountHealthResponse = ({
|
|
|
26720
26736
|
* Actionable recommendations to fix issues
|
|
26721
26737
|
*/
|
|
26722
26738
|
recommendations?: Array<(string)>;
|
|
26739
|
+
/**
|
|
26740
|
+
* User id of the profile owner, not necessarily the team member who connected the account.
|
|
26741
|
+
*/
|
|
26742
|
+
ownerUserId?: string;
|
|
26743
|
+
/**
|
|
26744
|
+
* Why the connection is broken or its token refresh is failing, from the most recent current cause. Null when the connection is healthy, including when the account is unhealthy for another reason (analytics, messaging restriction, missing analytics scopes), or when no cause is stored.
|
|
26745
|
+
*/
|
|
26746
|
+
disconnectReason?: (string) | null;
|
|
26747
|
+
/**
|
|
26748
|
+
* intentional: deliberately disconnected by the user or by Zernio (for example a plan downgrade), not a token failure. unintentional: token expired or revoked, or an auth failure. Null when disconnectReason is null.
|
|
26749
|
+
*/
|
|
26750
|
+
disconnectionType?: ('intentional' | 'unintentional') | null;
|
|
26751
|
+
/**
|
|
26752
|
+
* When the earliest current stored cause was recorded (the start of the outage); for an intentional disconnect, when it was disconnected. Null when the connection is healthy, including when the account is unhealthy for another reason (analytics, messaging restriction, missing analytics scopes), or when the time is unknown.
|
|
26753
|
+
*/
|
|
26754
|
+
unhealthySince?: (string) | null;
|
|
26723
26755
|
/**
|
|
26724
26756
|
* Absent on platforms without analytics sync. failing: several consecutive sync attempts failed. stalled: a sync was requested over 6 hours ago and never completed. never_synced: no sync has completed yet. Failing and stalled raise the account status to at least warning.
|
|
26725
26757
|
*/
|
|
@@ -38566,7 +38598,7 @@ export type ReplyToInboxPostData = {
|
|
|
38566
38598
|
body: {
|
|
38567
38599
|
accountId: string;
|
|
38568
38600
|
/**
|
|
38569
|
-
* Reply text. On LinkedIn, mention with @[
|
|
38601
|
+
* Reply text. On LinkedIn, mention with @[https://www.linkedin.com/in/vanity] (resolved to LinkedIn's live name, same rules and errors as post content) or @[Name](urn:li:person|organization:ID); a hand-written name must match LinkedIn's exactly or it renders as plain text.
|
|
38570
38602
|
*/
|
|
38571
38603
|
message: string;
|
|
38572
38604
|
/**
|
|
@@ -38623,7 +38655,13 @@ export type ReplyToInboxPostResponse = ({
|
|
|
38623
38655
|
};
|
|
38624
38656
|
});
|
|
38625
38657
|
|
|
38626
|
-
export type ReplyToInboxPostError = (
|
|
38658
|
+
export type ReplyToInboxPostError = ({
|
|
38659
|
+
error?: string;
|
|
38660
|
+
code?: string;
|
|
38661
|
+
details?: {
|
|
38662
|
+
mentions?: Array<LinkedInMentionIssue>;
|
|
38663
|
+
};
|
|
38664
|
+
} | ErrorResponse | unknown);
|
|
38627
38665
|
|
|
38628
38666
|
export type DeleteInboxCommentData = {
|
|
38629
38667
|
path: {
|