@getlatedev/node 0.2.1306 → 0.2.1308
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 +22 -10
- package/dist/index.d.ts +22 -10
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +4 -0
- package/src/generated/types.gen.ts +22 -10
package/dist/index.d.mts
CHANGED
|
@@ -33315,35 +33315,39 @@ type ListInboxMentionsResponse = ({
|
|
|
33315
33315
|
* Mention document ID
|
|
33316
33316
|
*/
|
|
33317
33317
|
id?: string;
|
|
33318
|
-
platform?: 'linkedin' | 'instagram';
|
|
33318
|
+
platform?: 'linkedin' | 'instagram' | 'facebook';
|
|
33319
33319
|
/**
|
|
33320
|
-
* Instagram
|
|
33320
|
+
* Instagram and Facebook: `caption` when the Instagram account was tagged in a media caption, `post` when the Facebook Page was tagged in a post, `comment` when either was tagged in a comment. Null for LinkedIn.
|
|
33321
33321
|
*/
|
|
33322
|
-
type?: ('caption' | 'comment') | null;
|
|
33322
|
+
type?: ('caption' | 'post' | 'comment') | null;
|
|
33323
33323
|
/**
|
|
33324
|
-
* Instagram only: ID of the media the account was mentioned in (or under). Null for LinkedIn.
|
|
33324
|
+
* Instagram only: ID of the media the account was mentioned in (or under). Null for LinkedIn and Facebook.
|
|
33325
33325
|
*/
|
|
33326
33326
|
mediaId?: (string) | null;
|
|
33327
33327
|
/**
|
|
33328
|
-
*
|
|
33328
|
+
* Facebook only: ID of the post the Page was mentioned in (or under). Null for LinkedIn and Instagram.
|
|
33329
|
+
*/
|
|
33330
|
+
postId?: (string) | null;
|
|
33331
|
+
/**
|
|
33332
|
+
* Instagram and Facebook: ID of the comment that mentioned the account. Null for caption and post mentions and for LinkedIn.
|
|
33329
33333
|
*/
|
|
33330
33334
|
commentId?: (string) | null;
|
|
33331
33335
|
accountId?: string;
|
|
33332
33336
|
accountUsername?: string;
|
|
33333
33337
|
/**
|
|
33334
|
-
* Text that mentioned you: the post text on LinkedIn, the caption or comment text on Instagram. Empty until it has been read.
|
|
33338
|
+
* Text that mentioned you: the post text on LinkedIn, the caption or comment text on Instagram, the post or comment text on Facebook. Empty until it has been read.
|
|
33335
33339
|
*/
|
|
33336
33340
|
content?: string;
|
|
33337
33341
|
/**
|
|
33338
|
-
* URL to the source post on LinkedIn. Null on Instagram.
|
|
33342
|
+
* URL to the source post on LinkedIn. Null on Instagram and Facebook.
|
|
33339
33343
|
*/
|
|
33340
33344
|
permalink?: (string) | null;
|
|
33341
33345
|
/**
|
|
33342
|
-
* LinkedIn URN of the person who mentioned you,
|
|
33346
|
+
* LinkedIn URN of the person who mentioned you, the Instagram-scoped ID of the commenter on an Instagram comment mention, or the ID of the Facebook user or Page that mentioned your Page when Meta sends it.
|
|
33343
33347
|
*/
|
|
33344
33348
|
authorUrn?: (string) | null;
|
|
33345
33349
|
/**
|
|
33346
|
-
* Display name of the author, resolved from authorUrn
|
|
33350
|
+
* Display name of the author, resolved from authorUrn on LinkedIn (null when LinkedIn does not allow resolving the profile) and taken from the webhook on Facebook.
|
|
33347
33351
|
*/
|
|
33348
33352
|
authorName?: (string) | null;
|
|
33349
33353
|
/**
|
|
@@ -33355,7 +33359,7 @@ type ListInboxMentionsResponse = ({
|
|
|
33355
33359
|
*/
|
|
33356
33360
|
authorPicture?: (string) | null;
|
|
33357
33361
|
/**
|
|
33358
|
-
* URN of the LinkedIn organization that was mentioned,
|
|
33362
|
+
* URN of the LinkedIn organization that was mentioned, the Instagram user ID of the mentioned account, or the ID of the mentioned Facebook Page.
|
|
33359
33363
|
*/
|
|
33360
33364
|
organizationalEntity?: string;
|
|
33361
33365
|
publishedAt?: string;
|
|
@@ -37702,6 +37706,10 @@ type SubmitPhoneNumberKycData = {
|
|
|
37702
37706
|
* Area code (NDC) the number must be in. Hard constraint: an empty area pool fails with 409 code AREA_CODE_UNAVAILABLE instead of ordering from another area. Omit for any area. Options come from GET /v1/phone-numbers/availability (areaOptions); the purchase 202 kycUrl echoes the areaCode picked at purchase time so it can be passed here.
|
|
37703
37707
|
*/
|
|
37704
37708
|
areaCode?: string;
|
|
37709
|
+
/**
|
|
37710
|
+
* Exact number to order, in E.164, taken from GET /v1/phone-numbers/available. It is ordered as is or the request fails with 409 code phone_number_unavailable; another number is never substituted and a pre-order is never placed. Requires quantity 1 (or omitted). Omit to let the carrier pick a number in the area.
|
|
37711
|
+
*/
|
|
37712
|
+
phoneNumber?: string;
|
|
37705
37713
|
/**
|
|
37706
37714
|
* With areaCode: pre-order that area when it has no stock (an area listed in soldOutAreas with preOrderable true) instead of failing with AREA_CODE_UNAVAILABLE. The carrier sources a number in that area. Without areaCode it accepts the pre-order a previous submit offered with 409 code area_pre_order_available (a geographic-match country whose address area has no stock): resend the same body with preOrder true and the order is placed for that area. A whole pair with no stock is pre-ordered without either flag.
|
|
37707
37715
|
*/
|
|
@@ -38486,6 +38494,10 @@ type SubmitWhatsAppNumberKycData = {
|
|
|
38486
38494
|
* Area code (NDC) the number must be in. Hard constraint: an empty area pool fails with 409 code AREA_CODE_UNAVAILABLE instead of ordering from another area. Omit for any area. Options come from GET /v1/phone-numbers/availability (areaOptions); the purchase 202 kycUrl echoes the areaCode picked at purchase time so it can be passed here.
|
|
38487
38495
|
*/
|
|
38488
38496
|
areaCode?: string;
|
|
38497
|
+
/**
|
|
38498
|
+
* Exact number to order, in E.164, taken from GET /v1/whatsapp/phone-numbers/available. It is ordered as is or the request fails with 409 code phone_number_unavailable; another number is never substituted and a pre-order is never placed. Requires quantity 1 (or omitted). Omit to let the carrier pick a number in the area.
|
|
38499
|
+
*/
|
|
38500
|
+
phoneNumber?: string;
|
|
38489
38501
|
/**
|
|
38490
38502
|
* With areaCode: pre-order that area when it has no stock (an area listed in soldOutAreas with preOrderable true) instead of failing with AREA_CODE_UNAVAILABLE. The carrier sources a number in that area. Without areaCode it accepts the pre-order a previous submit offered with 409 code area_pre_order_available (a geographic-match country whose address area has no stock): resend the same body with preOrder true and the order is placed for that area. A whole pair with no stock is pre-ordered without either flag.
|
|
38491
38503
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -33315,35 +33315,39 @@ type ListInboxMentionsResponse = ({
|
|
|
33315
33315
|
* Mention document ID
|
|
33316
33316
|
*/
|
|
33317
33317
|
id?: string;
|
|
33318
|
-
platform?: 'linkedin' | 'instagram';
|
|
33318
|
+
platform?: 'linkedin' | 'instagram' | 'facebook';
|
|
33319
33319
|
/**
|
|
33320
|
-
* Instagram
|
|
33320
|
+
* Instagram and Facebook: `caption` when the Instagram account was tagged in a media caption, `post` when the Facebook Page was tagged in a post, `comment` when either was tagged in a comment. Null for LinkedIn.
|
|
33321
33321
|
*/
|
|
33322
|
-
type?: ('caption' | 'comment') | null;
|
|
33322
|
+
type?: ('caption' | 'post' | 'comment') | null;
|
|
33323
33323
|
/**
|
|
33324
|
-
* Instagram only: ID of the media the account was mentioned in (or under). Null for LinkedIn.
|
|
33324
|
+
* Instagram only: ID of the media the account was mentioned in (or under). Null for LinkedIn and Facebook.
|
|
33325
33325
|
*/
|
|
33326
33326
|
mediaId?: (string) | null;
|
|
33327
33327
|
/**
|
|
33328
|
-
*
|
|
33328
|
+
* Facebook only: ID of the post the Page was mentioned in (or under). Null for LinkedIn and Instagram.
|
|
33329
|
+
*/
|
|
33330
|
+
postId?: (string) | null;
|
|
33331
|
+
/**
|
|
33332
|
+
* Instagram and Facebook: ID of the comment that mentioned the account. Null for caption and post mentions and for LinkedIn.
|
|
33329
33333
|
*/
|
|
33330
33334
|
commentId?: (string) | null;
|
|
33331
33335
|
accountId?: string;
|
|
33332
33336
|
accountUsername?: string;
|
|
33333
33337
|
/**
|
|
33334
|
-
* Text that mentioned you: the post text on LinkedIn, the caption or comment text on Instagram. Empty until it has been read.
|
|
33338
|
+
* Text that mentioned you: the post text on LinkedIn, the caption or comment text on Instagram, the post or comment text on Facebook. Empty until it has been read.
|
|
33335
33339
|
*/
|
|
33336
33340
|
content?: string;
|
|
33337
33341
|
/**
|
|
33338
|
-
* URL to the source post on LinkedIn. Null on Instagram.
|
|
33342
|
+
* URL to the source post on LinkedIn. Null on Instagram and Facebook.
|
|
33339
33343
|
*/
|
|
33340
33344
|
permalink?: (string) | null;
|
|
33341
33345
|
/**
|
|
33342
|
-
* LinkedIn URN of the person who mentioned you,
|
|
33346
|
+
* LinkedIn URN of the person who mentioned you, the Instagram-scoped ID of the commenter on an Instagram comment mention, or the ID of the Facebook user or Page that mentioned your Page when Meta sends it.
|
|
33343
33347
|
*/
|
|
33344
33348
|
authorUrn?: (string) | null;
|
|
33345
33349
|
/**
|
|
33346
|
-
* Display name of the author, resolved from authorUrn
|
|
33350
|
+
* Display name of the author, resolved from authorUrn on LinkedIn (null when LinkedIn does not allow resolving the profile) and taken from the webhook on Facebook.
|
|
33347
33351
|
*/
|
|
33348
33352
|
authorName?: (string) | null;
|
|
33349
33353
|
/**
|
|
@@ -33355,7 +33359,7 @@ type ListInboxMentionsResponse = ({
|
|
|
33355
33359
|
*/
|
|
33356
33360
|
authorPicture?: (string) | null;
|
|
33357
33361
|
/**
|
|
33358
|
-
* URN of the LinkedIn organization that was mentioned,
|
|
33362
|
+
* URN of the LinkedIn organization that was mentioned, the Instagram user ID of the mentioned account, or the ID of the mentioned Facebook Page.
|
|
33359
33363
|
*/
|
|
33360
33364
|
organizationalEntity?: string;
|
|
33361
33365
|
publishedAt?: string;
|
|
@@ -37702,6 +37706,10 @@ type SubmitPhoneNumberKycData = {
|
|
|
37702
37706
|
* Area code (NDC) the number must be in. Hard constraint: an empty area pool fails with 409 code AREA_CODE_UNAVAILABLE instead of ordering from another area. Omit for any area. Options come from GET /v1/phone-numbers/availability (areaOptions); the purchase 202 kycUrl echoes the areaCode picked at purchase time so it can be passed here.
|
|
37703
37707
|
*/
|
|
37704
37708
|
areaCode?: string;
|
|
37709
|
+
/**
|
|
37710
|
+
* Exact number to order, in E.164, taken from GET /v1/phone-numbers/available. It is ordered as is or the request fails with 409 code phone_number_unavailable; another number is never substituted and a pre-order is never placed. Requires quantity 1 (or omitted). Omit to let the carrier pick a number in the area.
|
|
37711
|
+
*/
|
|
37712
|
+
phoneNumber?: string;
|
|
37705
37713
|
/**
|
|
37706
37714
|
* With areaCode: pre-order that area when it has no stock (an area listed in soldOutAreas with preOrderable true) instead of failing with AREA_CODE_UNAVAILABLE. The carrier sources a number in that area. Without areaCode it accepts the pre-order a previous submit offered with 409 code area_pre_order_available (a geographic-match country whose address area has no stock): resend the same body with preOrder true and the order is placed for that area. A whole pair with no stock is pre-ordered without either flag.
|
|
37707
37715
|
*/
|
|
@@ -38486,6 +38494,10 @@ type SubmitWhatsAppNumberKycData = {
|
|
|
38486
38494
|
* Area code (NDC) the number must be in. Hard constraint: an empty area pool fails with 409 code AREA_CODE_UNAVAILABLE instead of ordering from another area. Omit for any area. Options come from GET /v1/phone-numbers/availability (areaOptions); the purchase 202 kycUrl echoes the areaCode picked at purchase time so it can be passed here.
|
|
38487
38495
|
*/
|
|
38488
38496
|
areaCode?: string;
|
|
38497
|
+
/**
|
|
38498
|
+
* Exact number to order, in E.164, taken from GET /v1/whatsapp/phone-numbers/available. It is ordered as is or the request fails with 409 code phone_number_unavailable; another number is never substituted and a pre-order is never placed. Requires quantity 1 (or omitted). Omit to let the carrier pick a number in the area.
|
|
38499
|
+
*/
|
|
38500
|
+
phoneNumber?: string;
|
|
38489
38501
|
/**
|
|
38490
38502
|
* With areaCode: pre-order that area when it has no stock (an area listed in soldOutAreas with preOrderable true) instead of failing with AREA_CODE_UNAVAILABLE. The carrier sources a number in that area. Without areaCode it accepts the pre-order a previous submit offered with 409 code area_pre_order_available (a geographic-match country whose address area has no stock): resend the same body with preOrder true and the order is placed for that area. A whole pair with no stock is pre-ordered without either flag.
|
|
38491
38503
|
*/
|
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.1308",
|
|
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.1308",
|
|
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
|
@@ -5490,6 +5490,10 @@ export const getTweet = <ThrowOnError extends boolean = false>(options: OptionsL
|
|
|
5490
5490
|
* own posts are never listed, even when they contain its @handle. Their text is read from Instagram
|
|
5491
5491
|
* in the background after the first request, so `content` can be empty on the first read. Pass
|
|
5492
5492
|
* `mediaId` and `commentId` to `POST /v1/inbox/mentions/reply` to answer one.
|
|
5493
|
+
* - **Facebook**: post mentions (someone tags the Page in a post) and comment mentions (someone tags
|
|
5494
|
+
* it in a comment), delivered by the Page `mention` webhook with their text. Comments on the Page's
|
|
5495
|
+
* own posts and anything the Page wrote itself are never listed. Facebook mentions cannot be replied
|
|
5496
|
+
* to through `POST /v1/inbox/mentions/reply`.
|
|
5493
5497
|
*
|
|
5494
5498
|
* Requires Inbox addon.
|
|
5495
5499
|
*
|
|
@@ -32923,35 +32923,39 @@ export type ListInboxMentionsResponse = ({
|
|
|
32923
32923
|
* Mention document ID
|
|
32924
32924
|
*/
|
|
32925
32925
|
id?: string;
|
|
32926
|
-
platform?: 'linkedin' | 'instagram';
|
|
32926
|
+
platform?: 'linkedin' | 'instagram' | 'facebook';
|
|
32927
32927
|
/**
|
|
32928
|
-
* Instagram
|
|
32928
|
+
* Instagram and Facebook: `caption` when the Instagram account was tagged in a media caption, `post` when the Facebook Page was tagged in a post, `comment` when either was tagged in a comment. Null for LinkedIn.
|
|
32929
32929
|
*/
|
|
32930
|
-
type?: ('caption' | 'comment') | null;
|
|
32930
|
+
type?: ('caption' | 'post' | 'comment') | null;
|
|
32931
32931
|
/**
|
|
32932
|
-
* Instagram only: ID of the media the account was mentioned in (or under). Null for LinkedIn.
|
|
32932
|
+
* Instagram only: ID of the media the account was mentioned in (or under). Null for LinkedIn and Facebook.
|
|
32933
32933
|
*/
|
|
32934
32934
|
mediaId?: (string) | null;
|
|
32935
32935
|
/**
|
|
32936
|
-
*
|
|
32936
|
+
* Facebook only: ID of the post the Page was mentioned in (or under). Null for LinkedIn and Instagram.
|
|
32937
|
+
*/
|
|
32938
|
+
postId?: (string) | null;
|
|
32939
|
+
/**
|
|
32940
|
+
* Instagram and Facebook: ID of the comment that mentioned the account. Null for caption and post mentions and for LinkedIn.
|
|
32937
32941
|
*/
|
|
32938
32942
|
commentId?: (string) | null;
|
|
32939
32943
|
accountId?: string;
|
|
32940
32944
|
accountUsername?: string;
|
|
32941
32945
|
/**
|
|
32942
|
-
* Text that mentioned you: the post text on LinkedIn, the caption or comment text on Instagram. Empty until it has been read.
|
|
32946
|
+
* Text that mentioned you: the post text on LinkedIn, the caption or comment text on Instagram, the post or comment text on Facebook. Empty until it has been read.
|
|
32943
32947
|
*/
|
|
32944
32948
|
content?: string;
|
|
32945
32949
|
/**
|
|
32946
|
-
* URL to the source post on LinkedIn. Null on Instagram.
|
|
32950
|
+
* URL to the source post on LinkedIn. Null on Instagram and Facebook.
|
|
32947
32951
|
*/
|
|
32948
32952
|
permalink?: (string) | null;
|
|
32949
32953
|
/**
|
|
32950
|
-
* LinkedIn URN of the person who mentioned you,
|
|
32954
|
+
* LinkedIn URN of the person who mentioned you, the Instagram-scoped ID of the commenter on an Instagram comment mention, or the ID of the Facebook user or Page that mentioned your Page when Meta sends it.
|
|
32951
32955
|
*/
|
|
32952
32956
|
authorUrn?: (string) | null;
|
|
32953
32957
|
/**
|
|
32954
|
-
* Display name of the author, resolved from authorUrn
|
|
32958
|
+
* Display name of the author, resolved from authorUrn on LinkedIn (null when LinkedIn does not allow resolving the profile) and taken from the webhook on Facebook.
|
|
32955
32959
|
*/
|
|
32956
32960
|
authorName?: (string) | null;
|
|
32957
32961
|
/**
|
|
@@ -32963,7 +32967,7 @@ export type ListInboxMentionsResponse = ({
|
|
|
32963
32967
|
*/
|
|
32964
32968
|
authorPicture?: (string) | null;
|
|
32965
32969
|
/**
|
|
32966
|
-
* URN of the LinkedIn organization that was mentioned,
|
|
32970
|
+
* URN of the LinkedIn organization that was mentioned, the Instagram user ID of the mentioned account, or the ID of the mentioned Facebook Page.
|
|
32967
32971
|
*/
|
|
32968
32972
|
organizationalEntity?: string;
|
|
32969
32973
|
publishedAt?: string;
|
|
@@ -37734,6 +37738,10 @@ export type SubmitPhoneNumberKycData = {
|
|
|
37734
37738
|
* Area code (NDC) the number must be in. Hard constraint: an empty area pool fails with 409 code AREA_CODE_UNAVAILABLE instead of ordering from another area. Omit for any area. Options come from GET /v1/phone-numbers/availability (areaOptions); the purchase 202 kycUrl echoes the areaCode picked at purchase time so it can be passed here.
|
|
37735
37739
|
*/
|
|
37736
37740
|
areaCode?: string;
|
|
37741
|
+
/**
|
|
37742
|
+
* Exact number to order, in E.164, taken from GET /v1/phone-numbers/available. It is ordered as is or the request fails with 409 code phone_number_unavailable; another number is never substituted and a pre-order is never placed. Requires quantity 1 (or omitted). Omit to let the carrier pick a number in the area.
|
|
37743
|
+
*/
|
|
37744
|
+
phoneNumber?: string;
|
|
37737
37745
|
/**
|
|
37738
37746
|
* With areaCode: pre-order that area when it has no stock (an area listed in soldOutAreas with preOrderable true) instead of failing with AREA_CODE_UNAVAILABLE. The carrier sources a number in that area. Without areaCode it accepts the pre-order a previous submit offered with 409 code area_pre_order_available (a geographic-match country whose address area has no stock): resend the same body with preOrder true and the order is placed for that area. A whole pair with no stock is pre-ordered without either flag.
|
|
37739
37747
|
*/
|
|
@@ -38574,6 +38582,10 @@ export type SubmitWhatsAppNumberKycData = {
|
|
|
38574
38582
|
* Area code (NDC) the number must be in. Hard constraint: an empty area pool fails with 409 code AREA_CODE_UNAVAILABLE instead of ordering from another area. Omit for any area. Options come from GET /v1/phone-numbers/availability (areaOptions); the purchase 202 kycUrl echoes the areaCode picked at purchase time so it can be passed here.
|
|
38575
38583
|
*/
|
|
38576
38584
|
areaCode?: string;
|
|
38585
|
+
/**
|
|
38586
|
+
* Exact number to order, in E.164, taken from GET /v1/whatsapp/phone-numbers/available. It is ordered as is or the request fails with 409 code phone_number_unavailable; another number is never substituted and a pre-order is never placed. Requires quantity 1 (or omitted). Omit to let the carrier pick a number in the area.
|
|
38587
|
+
*/
|
|
38588
|
+
phoneNumber?: string;
|
|
38577
38589
|
/**
|
|
38578
38590
|
* With areaCode: pre-order that area when it has no stock (an area listed in soldOutAreas with preOrderable true) instead of failing with AREA_CODE_UNAVAILABLE. The carrier sources a number in that area. Without areaCode it accepts the pre-order a previous submit offered with 409 code area_pre_order_available (a geographic-match country whose address area has no stock): resend the same body with preOrder true and the order is placed for that area. A whole pair with no stock is pre-ordered without either flag.
|
|
38579
38591
|
*/
|