@getlatedev/node 0.2.305 → 0.2.307
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 +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +12 -0
package/dist/index.d.mts
CHANGED
|
@@ -5642,6 +5642,10 @@ type WebhookPayloadPost = {
|
|
|
5642
5642
|
platforms: Array<{
|
|
5643
5643
|
platform: string;
|
|
5644
5644
|
status: string;
|
|
5645
|
+
/**
|
|
5646
|
+
* SocialAccount id this platform target published through. Use it to route events by connected account (e.g. separate staging vs production endpoints). A post can span multiple accounts.
|
|
5647
|
+
*/
|
|
5648
|
+
accountId?: string;
|
|
5645
5649
|
platformPostId?: string;
|
|
5646
5650
|
publishedUrl?: string;
|
|
5647
5651
|
error?: string;
|
|
@@ -5682,6 +5686,10 @@ type WebhookPayloadPostPlatform = {
|
|
|
5682
5686
|
platforms: Array<{
|
|
5683
5687
|
platform: string;
|
|
5684
5688
|
status: string;
|
|
5689
|
+
/**
|
|
5690
|
+
* SocialAccount id this platform target published through. On post.platform.* events see also the top-level `account` block.
|
|
5691
|
+
*/
|
|
5692
|
+
accountId?: string;
|
|
5685
5693
|
platformPostId?: string;
|
|
5686
5694
|
publishedUrl?: string;
|
|
5687
5695
|
error?: string;
|
|
@@ -15800,6 +15808,10 @@ type GetWhatsAppNumberKycFormResponse = ({
|
|
|
15800
15808
|
* ISO country the value must be local to
|
|
15801
15809
|
*/
|
|
15802
15810
|
localTo?: (string) | null;
|
|
15811
|
+
/**
|
|
15812
|
+
* When set, the requirement applies ONLY to this end-user type — provide it for that type and OMIT it for the other (e.g. Brazil: "Cartão CNPJ" is business-only, "CPF" and "ID/Passport Copy" are personal-only). Submitting both sets makes the regulator ask whether the number is for personal or business use and stalls the review. Pass `entityType` on POST so the server drops the inapplicable set.
|
|
15813
|
+
*/
|
|
15814
|
+
audience?: ('business' | 'individual') | null;
|
|
15803
15815
|
}>;
|
|
15804
15816
|
/**
|
|
15805
15817
|
* Present when this account already has an approved verification for the country that can be reused (skip the form). `fromPhoneNumber`/`details` mirror the newest option; `options` lists ALL approved verifications (agencies hold one per end client) — pass the chosen option's `fromPhoneNumber` as `reuseFrom` on POST.
|
package/dist/index.d.ts
CHANGED
|
@@ -5642,6 +5642,10 @@ type WebhookPayloadPost = {
|
|
|
5642
5642
|
platforms: Array<{
|
|
5643
5643
|
platform: string;
|
|
5644
5644
|
status: string;
|
|
5645
|
+
/**
|
|
5646
|
+
* SocialAccount id this platform target published through. Use it to route events by connected account (e.g. separate staging vs production endpoints). A post can span multiple accounts.
|
|
5647
|
+
*/
|
|
5648
|
+
accountId?: string;
|
|
5645
5649
|
platformPostId?: string;
|
|
5646
5650
|
publishedUrl?: string;
|
|
5647
5651
|
error?: string;
|
|
@@ -5682,6 +5686,10 @@ type WebhookPayloadPostPlatform = {
|
|
|
5682
5686
|
platforms: Array<{
|
|
5683
5687
|
platform: string;
|
|
5684
5688
|
status: string;
|
|
5689
|
+
/**
|
|
5690
|
+
* SocialAccount id this platform target published through. On post.platform.* events see also the top-level `account` block.
|
|
5691
|
+
*/
|
|
5692
|
+
accountId?: string;
|
|
5685
5693
|
platformPostId?: string;
|
|
5686
5694
|
publishedUrl?: string;
|
|
5687
5695
|
error?: string;
|
|
@@ -15800,6 +15808,10 @@ type GetWhatsAppNumberKycFormResponse = ({
|
|
|
15800
15808
|
* ISO country the value must be local to
|
|
15801
15809
|
*/
|
|
15802
15810
|
localTo?: (string) | null;
|
|
15811
|
+
/**
|
|
15812
|
+
* When set, the requirement applies ONLY to this end-user type — provide it for that type and OMIT it for the other (e.g. Brazil: "Cartão CNPJ" is business-only, "CPF" and "ID/Passport Copy" are personal-only). Submitting both sets makes the regulator ask whether the number is for personal or business use and stalls the review. Pass `entityType` on POST so the server drops the inapplicable set.
|
|
15813
|
+
*/
|
|
15814
|
+
audience?: ('business' | 'individual') | null;
|
|
15803
15815
|
}>;
|
|
15804
15816
|
/**
|
|
15805
15817
|
* Present when this account already has an approved verification for the country that can be reused (skip the form). `fromPhoneNumber`/`details` mirror the newest option; `options` lists ALL approved verifications (agencies hold one per end client) — pass the chosen option's `fromPhoneNumber` as `reuseFrom` on POST.
|
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.307",
|
|
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.307",
|
|
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
|
@@ -5075,6 +5075,10 @@ export type WebhookPayloadPost = {
|
|
|
5075
5075
|
platforms: Array<{
|
|
5076
5076
|
platform: string;
|
|
5077
5077
|
status: string;
|
|
5078
|
+
/**
|
|
5079
|
+
* SocialAccount id this platform target published through. Use it to route events by connected account (e.g. separate staging vs production endpoints). A post can span multiple accounts.
|
|
5080
|
+
*/
|
|
5081
|
+
accountId?: string;
|
|
5078
5082
|
platformPostId?: string;
|
|
5079
5083
|
publishedUrl?: string;
|
|
5080
5084
|
error?: string;
|
|
@@ -5117,6 +5121,10 @@ export type WebhookPayloadPostPlatform = {
|
|
|
5117
5121
|
platforms: Array<{
|
|
5118
5122
|
platform: string;
|
|
5119
5123
|
status: string;
|
|
5124
|
+
/**
|
|
5125
|
+
* SocialAccount id this platform target published through. On post.platform.* events see also the top-level `account` block.
|
|
5126
|
+
*/
|
|
5127
|
+
accountId?: string;
|
|
5120
5128
|
platformPostId?: string;
|
|
5121
5129
|
publishedUrl?: string;
|
|
5122
5130
|
error?: string;
|
|
@@ -15986,6 +15994,10 @@ export type GetWhatsAppNumberKycFormResponse = ({
|
|
|
15986
15994
|
* ISO country the value must be local to
|
|
15987
15995
|
*/
|
|
15988
15996
|
localTo?: (string) | null;
|
|
15997
|
+
/**
|
|
15998
|
+
* When set, the requirement applies ONLY to this end-user type — provide it for that type and OMIT it for the other (e.g. Brazil: "Cartão CNPJ" is business-only, "CPF" and "ID/Passport Copy" are personal-only). Submitting both sets makes the regulator ask whether the number is for personal or business use and stalls the review. Pass `entityType` on POST so the server drops the inapplicable set.
|
|
15999
|
+
*/
|
|
16000
|
+
audience?: ('business' | 'individual') | null;
|
|
15989
16001
|
}>;
|
|
15990
16002
|
/**
|
|
15991
16003
|
* Present when this account already has an approved verification for the country that can be reused (skip the form). `fromPhoneNumber`/`details` mirror the newest option; `options` lists ALL approved verifications (agencies hold one per end client) — pass the chosen option's `fromPhoneNumber` as `reuseFrom` on POST.
|