@getlatedev/node 0.2.1271 → 0.2.1273
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 +21 -6
- package/dist/index.d.ts +21 -6
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +11 -6
- package/src/generated/types.gen.ts +21 -6
package/dist/index.d.mts
CHANGED
|
@@ -23081,6 +23081,9 @@ type GetConnectUrlError = (unknown | ErrorResponse | {
|
|
|
23081
23081
|
type HandleOAuthCallbackData = {
|
|
23082
23082
|
body: {
|
|
23083
23083
|
code: string;
|
|
23084
|
+
/**
|
|
23085
|
+
* For twitter, the state X returned on the redirect (the same as the state query parameter of authUrl, ending in its -cv_ PKCE verifier suffix), signed and under 1 hour old. The state field of the GET JSON response does not carry the verifier.
|
|
23086
|
+
*/
|
|
23084
23087
|
state: string;
|
|
23085
23088
|
profileId: string;
|
|
23086
23089
|
};
|
|
@@ -32694,19 +32697,31 @@ type ListInboxMentionsResponse = ({
|
|
|
32694
32697
|
* Mention document ID
|
|
32695
32698
|
*/
|
|
32696
32699
|
id?: string;
|
|
32697
|
-
platform?: 'linkedin';
|
|
32700
|
+
platform?: 'linkedin' | 'instagram';
|
|
32701
|
+
/**
|
|
32702
|
+
* Instagram only: `caption` when the account was tagged in a media caption, `comment` when it was tagged in a comment. Null for LinkedIn.
|
|
32703
|
+
*/
|
|
32704
|
+
type?: ('caption' | 'comment') | null;
|
|
32705
|
+
/**
|
|
32706
|
+
* Instagram only: ID of the media the account was mentioned in (or under). Null for LinkedIn.
|
|
32707
|
+
*/
|
|
32708
|
+
mediaId?: (string) | null;
|
|
32709
|
+
/**
|
|
32710
|
+
* Instagram only: ID of the comment that mentioned the account. Null for caption mentions and LinkedIn.
|
|
32711
|
+
*/
|
|
32712
|
+
commentId?: (string) | null;
|
|
32698
32713
|
accountId?: string;
|
|
32699
32714
|
accountUsername?: string;
|
|
32700
32715
|
/**
|
|
32701
|
-
* Text
|
|
32716
|
+
* Text that mentioned you: the post text on LinkedIn, the caption or comment text on Instagram. Empty until it has been read.
|
|
32702
32717
|
*/
|
|
32703
32718
|
content?: string;
|
|
32704
32719
|
/**
|
|
32705
|
-
* URL to the source post on LinkedIn
|
|
32720
|
+
* URL to the source post on LinkedIn. Null on Instagram.
|
|
32706
32721
|
*/
|
|
32707
32722
|
permalink?: (string) | null;
|
|
32708
32723
|
/**
|
|
32709
|
-
* LinkedIn URN of the person who mentioned you
|
|
32724
|
+
* LinkedIn URN of the person who mentioned you, or the Instagram-scoped ID of the commenter on an Instagram comment mention.
|
|
32710
32725
|
*/
|
|
32711
32726
|
authorUrn?: (string) | null;
|
|
32712
32727
|
/**
|
|
@@ -32714,7 +32729,7 @@ type ListInboxMentionsResponse = ({
|
|
|
32714
32729
|
*/
|
|
32715
32730
|
authorName?: (string) | null;
|
|
32716
32731
|
/**
|
|
32717
|
-
* LinkedIn vanity name of the author (the slug in their profile URL)
|
|
32732
|
+
* LinkedIn vanity name of the author (the slug in their profile URL), or the Instagram username of the commenter or media owner.
|
|
32718
32733
|
*/
|
|
32719
32734
|
authorUsername?: (string) | null;
|
|
32720
32735
|
/**
|
|
@@ -32722,7 +32737,7 @@ type ListInboxMentionsResponse = ({
|
|
|
32722
32737
|
*/
|
|
32723
32738
|
authorPicture?: (string) | null;
|
|
32724
32739
|
/**
|
|
32725
|
-
* URN of the organization that was mentioned
|
|
32740
|
+
* URN of the LinkedIn organization that was mentioned, or the Instagram user ID of the mentioned account.
|
|
32726
32741
|
*/
|
|
32727
32742
|
organizationalEntity?: string;
|
|
32728
32743
|
publishedAt?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -23081,6 +23081,9 @@ type GetConnectUrlError = (unknown | ErrorResponse | {
|
|
|
23081
23081
|
type HandleOAuthCallbackData = {
|
|
23082
23082
|
body: {
|
|
23083
23083
|
code: string;
|
|
23084
|
+
/**
|
|
23085
|
+
* For twitter, the state X returned on the redirect (the same as the state query parameter of authUrl, ending in its -cv_ PKCE verifier suffix), signed and under 1 hour old. The state field of the GET JSON response does not carry the verifier.
|
|
23086
|
+
*/
|
|
23084
23087
|
state: string;
|
|
23085
23088
|
profileId: string;
|
|
23086
23089
|
};
|
|
@@ -32694,19 +32697,31 @@ type ListInboxMentionsResponse = ({
|
|
|
32694
32697
|
* Mention document ID
|
|
32695
32698
|
*/
|
|
32696
32699
|
id?: string;
|
|
32697
|
-
platform?: 'linkedin';
|
|
32700
|
+
platform?: 'linkedin' | 'instagram';
|
|
32701
|
+
/**
|
|
32702
|
+
* Instagram only: `caption` when the account was tagged in a media caption, `comment` when it was tagged in a comment. Null for LinkedIn.
|
|
32703
|
+
*/
|
|
32704
|
+
type?: ('caption' | 'comment') | null;
|
|
32705
|
+
/**
|
|
32706
|
+
* Instagram only: ID of the media the account was mentioned in (or under). Null for LinkedIn.
|
|
32707
|
+
*/
|
|
32708
|
+
mediaId?: (string) | null;
|
|
32709
|
+
/**
|
|
32710
|
+
* Instagram only: ID of the comment that mentioned the account. Null for caption mentions and LinkedIn.
|
|
32711
|
+
*/
|
|
32712
|
+
commentId?: (string) | null;
|
|
32698
32713
|
accountId?: string;
|
|
32699
32714
|
accountUsername?: string;
|
|
32700
32715
|
/**
|
|
32701
|
-
* Text
|
|
32716
|
+
* Text that mentioned you: the post text on LinkedIn, the caption or comment text on Instagram. Empty until it has been read.
|
|
32702
32717
|
*/
|
|
32703
32718
|
content?: string;
|
|
32704
32719
|
/**
|
|
32705
|
-
* URL to the source post on LinkedIn
|
|
32720
|
+
* URL to the source post on LinkedIn. Null on Instagram.
|
|
32706
32721
|
*/
|
|
32707
32722
|
permalink?: (string) | null;
|
|
32708
32723
|
/**
|
|
32709
|
-
* LinkedIn URN of the person who mentioned you
|
|
32724
|
+
* LinkedIn URN of the person who mentioned you, or the Instagram-scoped ID of the commenter on an Instagram comment mention.
|
|
32710
32725
|
*/
|
|
32711
32726
|
authorUrn?: (string) | null;
|
|
32712
32727
|
/**
|
|
@@ -32714,7 +32729,7 @@ type ListInboxMentionsResponse = ({
|
|
|
32714
32729
|
*/
|
|
32715
32730
|
authorName?: (string) | null;
|
|
32716
32731
|
/**
|
|
32717
|
-
* LinkedIn vanity name of the author (the slug in their profile URL)
|
|
32732
|
+
* LinkedIn vanity name of the author (the slug in their profile URL), or the Instagram username of the commenter or media owner.
|
|
32718
32733
|
*/
|
|
32719
32734
|
authorUsername?: (string) | null;
|
|
32720
32735
|
/**
|
|
@@ -32722,7 +32737,7 @@ type ListInboxMentionsResponse = ({
|
|
|
32722
32737
|
*/
|
|
32723
32738
|
authorPicture?: (string) | null;
|
|
32724
32739
|
/**
|
|
32725
|
-
* URN of the organization that was mentioned
|
|
32740
|
+
* URN of the LinkedIn organization that was mentioned, or the Instagram user ID of the mentioned account.
|
|
32726
32741
|
*/
|
|
32727
32742
|
organizationalEntity?: string;
|
|
32728
32743
|
publishedAt?: string;
|
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.1273",
|
|
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.1273",
|
|
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
|
@@ -5429,8 +5429,15 @@ export const getTweet = <ThrowOnError extends boolean = false>(options: OptionsL
|
|
|
5429
5429
|
|
|
5430
5430
|
/**
|
|
5431
5431
|
* List mentions
|
|
5432
|
-
* Returns mentions of your connected
|
|
5433
|
-
*
|
|
5432
|
+
* Returns mentions of your connected accounts from the last 7 days.
|
|
5433
|
+
*
|
|
5434
|
+
* - **LinkedIn**: organization mentions, delivered by webhooks and a background pull.
|
|
5435
|
+
* - **Instagram**: comment mentions (someone tags the account in a comment) and caption mentions
|
|
5436
|
+
* (someone tags it in their media caption), delivered by Meta webhooks. Accounts connected through
|
|
5437
|
+
* Instagram Login receive comment mentions only. Accounts connected through Facebook Login receive
|
|
5438
|
+
* both; their text is read from Instagram in the background after the first request, so `content`
|
|
5439
|
+
* can be empty on the first read. Pass `mediaId` and `commentId` to `POST /v1/inbox/mentions/reply`
|
|
5440
|
+
* to answer one.
|
|
5434
5441
|
*
|
|
5435
5442
|
* Requires Inbox addon.
|
|
5436
5443
|
*
|
|
@@ -5455,10 +5462,8 @@ export const listInboxMentions = <ThrowOnError extends boolean = false>(options?
|
|
|
5455
5462
|
*
|
|
5456
5463
|
* Story mentions are not supported by Instagram's API.
|
|
5457
5464
|
*
|
|
5458
|
-
* `GET /v1/inbox/mentions`
|
|
5459
|
-
*
|
|
5460
|
-
* `comments` webhook, which is where mention notifications are delivered for accounts
|
|
5461
|
-
* connected through Instagram Login.
|
|
5465
|
+
* `GET /v1/inbox/mentions` returns Instagram mentions with the `mediaId` and `commentId`
|
|
5466
|
+
* to pass here.
|
|
5462
5467
|
*
|
|
5463
5468
|
*/
|
|
5464
5469
|
export const replyToMention = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ReplyToMentionData, ThrowOnError>) => {
|
|
@@ -22030,6 +22030,9 @@ export type GetConnectUrlError = (unknown | ErrorResponse | {
|
|
|
22030
22030
|
export type HandleOAuthCallbackData = {
|
|
22031
22031
|
body: {
|
|
22032
22032
|
code: string;
|
|
22033
|
+
/**
|
|
22034
|
+
* For twitter, the state X returned on the redirect (the same as the state query parameter of authUrl, ending in its -cv_ PKCE verifier suffix), signed and under 1 hour old. The state field of the GET JSON response does not carry the verifier.
|
|
22035
|
+
*/
|
|
22033
22036
|
state: string;
|
|
22034
22037
|
profileId: string;
|
|
22035
22038
|
};
|
|
@@ -32276,19 +32279,31 @@ export type ListInboxMentionsResponse = ({
|
|
|
32276
32279
|
* Mention document ID
|
|
32277
32280
|
*/
|
|
32278
32281
|
id?: string;
|
|
32279
|
-
platform?: 'linkedin';
|
|
32282
|
+
platform?: 'linkedin' | 'instagram';
|
|
32283
|
+
/**
|
|
32284
|
+
* Instagram only: `caption` when the account was tagged in a media caption, `comment` when it was tagged in a comment. Null for LinkedIn.
|
|
32285
|
+
*/
|
|
32286
|
+
type?: ('caption' | 'comment') | null;
|
|
32287
|
+
/**
|
|
32288
|
+
* Instagram only: ID of the media the account was mentioned in (or under). Null for LinkedIn.
|
|
32289
|
+
*/
|
|
32290
|
+
mediaId?: (string) | null;
|
|
32291
|
+
/**
|
|
32292
|
+
* Instagram only: ID of the comment that mentioned the account. Null for caption mentions and LinkedIn.
|
|
32293
|
+
*/
|
|
32294
|
+
commentId?: (string) | null;
|
|
32280
32295
|
accountId?: string;
|
|
32281
32296
|
accountUsername?: string;
|
|
32282
32297
|
/**
|
|
32283
|
-
* Text
|
|
32298
|
+
* Text that mentioned you: the post text on LinkedIn, the caption or comment text on Instagram. Empty until it has been read.
|
|
32284
32299
|
*/
|
|
32285
32300
|
content?: string;
|
|
32286
32301
|
/**
|
|
32287
|
-
* URL to the source post on LinkedIn
|
|
32302
|
+
* URL to the source post on LinkedIn. Null on Instagram.
|
|
32288
32303
|
*/
|
|
32289
32304
|
permalink?: (string) | null;
|
|
32290
32305
|
/**
|
|
32291
|
-
* LinkedIn URN of the person who mentioned you
|
|
32306
|
+
* LinkedIn URN of the person who mentioned you, or the Instagram-scoped ID of the commenter on an Instagram comment mention.
|
|
32292
32307
|
*/
|
|
32293
32308
|
authorUrn?: (string) | null;
|
|
32294
32309
|
/**
|
|
@@ -32296,7 +32311,7 @@ export type ListInboxMentionsResponse = ({
|
|
|
32296
32311
|
*/
|
|
32297
32312
|
authorName?: (string) | null;
|
|
32298
32313
|
/**
|
|
32299
|
-
* LinkedIn vanity name of the author (the slug in their profile URL)
|
|
32314
|
+
* LinkedIn vanity name of the author (the slug in their profile URL), or the Instagram username of the commenter or media owner.
|
|
32300
32315
|
*/
|
|
32301
32316
|
authorUsername?: (string) | null;
|
|
32302
32317
|
/**
|
|
@@ -32304,7 +32319,7 @@ export type ListInboxMentionsResponse = ({
|
|
|
32304
32319
|
*/
|
|
32305
32320
|
authorPicture?: (string) | null;
|
|
32306
32321
|
/**
|
|
32307
|
-
* URN of the organization that was mentioned
|
|
32322
|
+
* URN of the LinkedIn organization that was mentioned, or the Instagram user ID of the mentioned account.
|
|
32308
32323
|
*/
|
|
32309
32324
|
organizationalEntity?: string;
|
|
32310
32325
|
publishedAt?: string;
|