@zernio/node 0.2.426 → 0.2.428
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 +8 -6
- package/dist/index.d.ts +8 -6
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +1 -0
- package/src/generated/types.gen.ts +8 -6
package/dist/index.d.mts
CHANGED
|
@@ -10358,11 +10358,13 @@ type ListAccountsData = {
|
|
|
10358
10358
|
*/
|
|
10359
10359
|
includeOverLimit?: boolean;
|
|
10360
10360
|
/**
|
|
10361
|
-
* Page size.
|
|
10361
|
+
* Page size. Must be provided together with page; sending only one of the two returns 400.
|
|
10362
|
+
*
|
|
10362
10363
|
*/
|
|
10363
10364
|
limit?: number;
|
|
10364
10365
|
/**
|
|
10365
|
-
* Page number (1-based).
|
|
10366
|
+
* Page number (1-based). Must be provided together with limit to enable server-side pagination; sending only one of the two returns 400. Omit both for all accounts.
|
|
10367
|
+
*
|
|
10366
10368
|
*/
|
|
10367
10369
|
page?: number;
|
|
10368
10370
|
/**
|
|
@@ -10370,7 +10372,7 @@ type ListAccountsData = {
|
|
|
10370
10372
|
*/
|
|
10371
10373
|
platform?: string;
|
|
10372
10374
|
/**
|
|
10373
|
-
* Filter accounts by profile ID
|
|
10375
|
+
* Filter accounts by profile ID. Must be a valid ObjectId.
|
|
10374
10376
|
*/
|
|
10375
10377
|
profileId?: string;
|
|
10376
10378
|
/**
|
|
@@ -10381,7 +10383,7 @@ type ListAccountsData = {
|
|
|
10381
10383
|
};
|
|
10382
10384
|
};
|
|
10383
10385
|
type ListAccountsResponse = (AccountsListResponse);
|
|
10384
|
-
type ListAccountsError = ({
|
|
10386
|
+
type ListAccountsError = (ErrorResponse | {
|
|
10385
10387
|
error?: string;
|
|
10386
10388
|
});
|
|
10387
10389
|
type GetFollowerStatsData = {
|
|
@@ -19904,7 +19906,7 @@ type SubmitPhoneNumberKycData = {
|
|
|
19904
19906
|
*/
|
|
19905
19907
|
submissionId?: string;
|
|
19906
19908
|
/**
|
|
19907
|
-
* Provision several same-country numbers from one submission (1-5). The single verification covers all of them; each number is billed only when it activates. Numbers that fail to order are skipped (best-effort).
|
|
19909
|
+
* Provision several same-country numbers from one submission (1-5). The single verification covers all of them; each number is billed only when it activates. Numbers that fail to order are skipped (best-effort). With `areaCode`, a quantity above that area's live stock is rejected with a 400.
|
|
19908
19910
|
*/
|
|
19909
19911
|
quantity?: number;
|
|
19910
19912
|
/**
|
|
@@ -20652,7 +20654,7 @@ type SubmitWhatsAppNumberKycData = {
|
|
|
20652
20654
|
*/
|
|
20653
20655
|
submissionId?: string;
|
|
20654
20656
|
/**
|
|
20655
|
-
* Provision several same-country numbers from one submission (1-5). The single verification covers all of them; each number is billed only when it activates. Numbers that fail to order are skipped (best-effort).
|
|
20657
|
+
* Provision several same-country numbers from one submission (1-5). The single verification covers all of them; each number is billed only when it activates. Numbers that fail to order are skipped (best-effort). With `areaCode`, a quantity above that area's live stock is rejected with a 400.
|
|
20656
20658
|
*/
|
|
20657
20659
|
quantity?: number;
|
|
20658
20660
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -10358,11 +10358,13 @@ type ListAccountsData = {
|
|
|
10358
10358
|
*/
|
|
10359
10359
|
includeOverLimit?: boolean;
|
|
10360
10360
|
/**
|
|
10361
|
-
* Page size.
|
|
10361
|
+
* Page size. Must be provided together with page; sending only one of the two returns 400.
|
|
10362
|
+
*
|
|
10362
10363
|
*/
|
|
10363
10364
|
limit?: number;
|
|
10364
10365
|
/**
|
|
10365
|
-
* Page number (1-based).
|
|
10366
|
+
* Page number (1-based). Must be provided together with limit to enable server-side pagination; sending only one of the two returns 400. Omit both for all accounts.
|
|
10367
|
+
*
|
|
10366
10368
|
*/
|
|
10367
10369
|
page?: number;
|
|
10368
10370
|
/**
|
|
@@ -10370,7 +10372,7 @@ type ListAccountsData = {
|
|
|
10370
10372
|
*/
|
|
10371
10373
|
platform?: string;
|
|
10372
10374
|
/**
|
|
10373
|
-
* Filter accounts by profile ID
|
|
10375
|
+
* Filter accounts by profile ID. Must be a valid ObjectId.
|
|
10374
10376
|
*/
|
|
10375
10377
|
profileId?: string;
|
|
10376
10378
|
/**
|
|
@@ -10381,7 +10383,7 @@ type ListAccountsData = {
|
|
|
10381
10383
|
};
|
|
10382
10384
|
};
|
|
10383
10385
|
type ListAccountsResponse = (AccountsListResponse);
|
|
10384
|
-
type ListAccountsError = ({
|
|
10386
|
+
type ListAccountsError = (ErrorResponse | {
|
|
10385
10387
|
error?: string;
|
|
10386
10388
|
});
|
|
10387
10389
|
type GetFollowerStatsData = {
|
|
@@ -19904,7 +19906,7 @@ type SubmitPhoneNumberKycData = {
|
|
|
19904
19906
|
*/
|
|
19905
19907
|
submissionId?: string;
|
|
19906
19908
|
/**
|
|
19907
|
-
* Provision several same-country numbers from one submission (1-5). The single verification covers all of them; each number is billed only when it activates. Numbers that fail to order are skipped (best-effort).
|
|
19909
|
+
* Provision several same-country numbers from one submission (1-5). The single verification covers all of them; each number is billed only when it activates. Numbers that fail to order are skipped (best-effort). With `areaCode`, a quantity above that area's live stock is rejected with a 400.
|
|
19908
19910
|
*/
|
|
19909
19911
|
quantity?: number;
|
|
19910
19912
|
/**
|
|
@@ -20652,7 +20654,7 @@ type SubmitWhatsAppNumberKycData = {
|
|
|
20652
20654
|
*/
|
|
20653
20655
|
submissionId?: string;
|
|
20654
20656
|
/**
|
|
20655
|
-
* Provision several same-country numbers from one submission (1-5). The single verification covers all of them; each number is billed only when it activates. Numbers that fail to order are skipped (best-effort).
|
|
20657
|
+
* Provision several same-country numbers from one submission (1-5). The single verification covers all of them; each number is billed only when it activates. Numbers that fail to order are skipped (best-effort). With `areaCode`, a quantity above that area's live stock is rejected with a 400.
|
|
20656
20658
|
*/
|
|
20657
20659
|
quantity?: number;
|
|
20658
20660
|
/**
|
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: "@zernio/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.428",
|
|
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: "@zernio/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.428",
|
|
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
|
@@ -1035,6 +1035,7 @@ export const deleteProfile = <ThrowOnError extends boolean = false>(options: Opt
|
|
|
1035
1035
|
* List accounts
|
|
1036
1036
|
* Returns connected social accounts. Only includes accounts within the plan limit by default. Follower data requires analytics add-on.
|
|
1037
1037
|
* Supports optional server-side pagination via page/limit params. When omitted, returns all accounts (backward-compatible).
|
|
1038
|
+
* page and limit must be supplied together; out-of-range page/limit values are rejected with 400 rather than silently clamped.
|
|
1038
1039
|
*
|
|
1039
1040
|
*/
|
|
1040
1041
|
export const listAccounts = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListAccountsData, ThrowOnError>) => {
|
|
@@ -9650,11 +9650,13 @@ export type ListAccountsData = {
|
|
|
9650
9650
|
*/
|
|
9651
9651
|
includeOverLimit?: boolean;
|
|
9652
9652
|
/**
|
|
9653
|
-
* Page size.
|
|
9653
|
+
* Page size. Must be provided together with page; sending only one of the two returns 400.
|
|
9654
|
+
*
|
|
9654
9655
|
*/
|
|
9655
9656
|
limit?: number;
|
|
9656
9657
|
/**
|
|
9657
|
-
* Page number (1-based).
|
|
9658
|
+
* Page number (1-based). Must be provided together with limit to enable server-side pagination; sending only one of the two returns 400. Omit both for all accounts.
|
|
9659
|
+
*
|
|
9658
9660
|
*/
|
|
9659
9661
|
page?: number;
|
|
9660
9662
|
/**
|
|
@@ -9662,7 +9664,7 @@ export type ListAccountsData = {
|
|
|
9662
9664
|
*/
|
|
9663
9665
|
platform?: string;
|
|
9664
9666
|
/**
|
|
9665
|
-
* Filter accounts by profile ID
|
|
9667
|
+
* Filter accounts by profile ID. Must be a valid ObjectId.
|
|
9666
9668
|
*/
|
|
9667
9669
|
profileId?: string;
|
|
9668
9670
|
/**
|
|
@@ -9675,7 +9677,7 @@ export type ListAccountsData = {
|
|
|
9675
9677
|
|
|
9676
9678
|
export type ListAccountsResponse = (AccountsListResponse);
|
|
9677
9679
|
|
|
9678
|
-
export type ListAccountsError = ({
|
|
9680
|
+
export type ListAccountsError = (ErrorResponse | {
|
|
9679
9681
|
error?: string;
|
|
9680
9682
|
});
|
|
9681
9683
|
|
|
@@ -19916,7 +19918,7 @@ export type SubmitPhoneNumberKycData = {
|
|
|
19916
19918
|
*/
|
|
19917
19919
|
submissionId?: string;
|
|
19918
19920
|
/**
|
|
19919
|
-
* Provision several same-country numbers from one submission (1-5). The single verification covers all of them; each number is billed only when it activates. Numbers that fail to order are skipped (best-effort).
|
|
19921
|
+
* Provision several same-country numbers from one submission (1-5). The single verification covers all of them; each number is billed only when it activates. Numbers that fail to order are skipped (best-effort). With `areaCode`, a quantity above that area's live stock is rejected with a 400.
|
|
19920
19922
|
*/
|
|
19921
19923
|
quantity?: number;
|
|
19922
19924
|
/**
|
|
@@ -20717,7 +20719,7 @@ export type SubmitWhatsAppNumberKycData = {
|
|
|
20717
20719
|
*/
|
|
20718
20720
|
submissionId?: string;
|
|
20719
20721
|
/**
|
|
20720
|
-
* Provision several same-country numbers from one submission (1-5). The single verification covers all of them; each number is billed only when it activates. Numbers that fail to order are skipped (best-effort).
|
|
20722
|
+
* Provision several same-country numbers from one submission (1-5). The single verification covers all of them; each number is billed only when it activates. Numbers that fail to order are skipped (best-effort). With `areaCode`, a quantity above that area's live stock is rejected with a 400.
|
|
20721
20723
|
*/
|
|
20722
20724
|
quantity?: number;
|
|
20723
20725
|
/**
|