@zernio/node 0.2.425 → 0.2.427
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 -10
- package/dist/index.d.ts +12 -10
- 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 +12 -10
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 = {
|
|
@@ -18514,7 +18516,7 @@ type StartSmsRegistrationResponse = ({
|
|
|
18514
18516
|
*/
|
|
18515
18517
|
awaitingOtp?: boolean;
|
|
18516
18518
|
});
|
|
18517
|
-
type StartSmsRegistrationError = ({
|
|
18519
|
+
type StartSmsRegistrationError = (ErrorResponse | {
|
|
18518
18520
|
error?: string;
|
|
18519
18521
|
} | unknown);
|
|
18520
18522
|
type ListSmsRegistrationsData = {
|
|
@@ -18571,7 +18573,7 @@ type ListSmsRegistrationsResponse = ({
|
|
|
18571
18573
|
};
|
|
18572
18574
|
}>;
|
|
18573
18575
|
});
|
|
18574
|
-
type ListSmsRegistrationsError = ({
|
|
18576
|
+
type ListSmsRegistrationsError = (ErrorResponse | {
|
|
18575
18577
|
error?: string;
|
|
18576
18578
|
});
|
|
18577
18579
|
type DeactivateSmsRegistrationData = {
|
|
@@ -18582,7 +18584,7 @@ type DeactivateSmsRegistrationData = {
|
|
|
18582
18584
|
type DeactivateSmsRegistrationResponse = ({
|
|
18583
18585
|
status?: 'deactivated';
|
|
18584
18586
|
});
|
|
18585
|
-
type DeactivateSmsRegistrationError = ({
|
|
18587
|
+
type DeactivateSmsRegistrationError = (ErrorResponse | {
|
|
18586
18588
|
error?: string;
|
|
18587
18589
|
} | unknown);
|
|
18588
18590
|
type GetSmsRegistrationData = {
|
|
@@ -18614,7 +18616,7 @@ type GetSmsRegistrationResponse = ({
|
|
|
18614
18616
|
sample2?: string;
|
|
18615
18617
|
};
|
|
18616
18618
|
});
|
|
18617
|
-
type GetSmsRegistrationError = ({
|
|
18619
|
+
type GetSmsRegistrationError = (ErrorResponse | {
|
|
18618
18620
|
error?: string;
|
|
18619
18621
|
} | unknown);
|
|
18620
18622
|
type VerifySmsRegistrationOtpData = {
|
|
@@ -18628,7 +18630,7 @@ type VerifySmsRegistrationOtpData = {
|
|
|
18628
18630
|
type VerifySmsRegistrationOtpResponse = ({
|
|
18629
18631
|
verified?: boolean;
|
|
18630
18632
|
});
|
|
18631
|
-
type VerifySmsRegistrationOtpError = ({
|
|
18633
|
+
type VerifySmsRegistrationOtpError = (ErrorResponse | {
|
|
18632
18634
|
error?: string;
|
|
18633
18635
|
} | unknown);
|
|
18634
18636
|
type ResendSmsRegistrationOtpData = {
|
|
@@ -18714,7 +18716,7 @@ type ShareSmsRegistrationResponse = ({
|
|
|
18714
18716
|
url?: string;
|
|
18715
18717
|
expiresAt?: string;
|
|
18716
18718
|
});
|
|
18717
|
-
type ShareSmsRegistrationError = ({
|
|
18719
|
+
type ShareSmsRegistrationError = (ErrorResponse | {
|
|
18718
18720
|
error?: string;
|
|
18719
18721
|
} | unknown);
|
|
18720
18722
|
type GetWhatsAppLibraryTemplateData = {
|
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 = {
|
|
@@ -18514,7 +18516,7 @@ type StartSmsRegistrationResponse = ({
|
|
|
18514
18516
|
*/
|
|
18515
18517
|
awaitingOtp?: boolean;
|
|
18516
18518
|
});
|
|
18517
|
-
type StartSmsRegistrationError = ({
|
|
18519
|
+
type StartSmsRegistrationError = (ErrorResponse | {
|
|
18518
18520
|
error?: string;
|
|
18519
18521
|
} | unknown);
|
|
18520
18522
|
type ListSmsRegistrationsData = {
|
|
@@ -18571,7 +18573,7 @@ type ListSmsRegistrationsResponse = ({
|
|
|
18571
18573
|
};
|
|
18572
18574
|
}>;
|
|
18573
18575
|
});
|
|
18574
|
-
type ListSmsRegistrationsError = ({
|
|
18576
|
+
type ListSmsRegistrationsError = (ErrorResponse | {
|
|
18575
18577
|
error?: string;
|
|
18576
18578
|
});
|
|
18577
18579
|
type DeactivateSmsRegistrationData = {
|
|
@@ -18582,7 +18584,7 @@ type DeactivateSmsRegistrationData = {
|
|
|
18582
18584
|
type DeactivateSmsRegistrationResponse = ({
|
|
18583
18585
|
status?: 'deactivated';
|
|
18584
18586
|
});
|
|
18585
|
-
type DeactivateSmsRegistrationError = ({
|
|
18587
|
+
type DeactivateSmsRegistrationError = (ErrorResponse | {
|
|
18586
18588
|
error?: string;
|
|
18587
18589
|
} | unknown);
|
|
18588
18590
|
type GetSmsRegistrationData = {
|
|
@@ -18614,7 +18616,7 @@ type GetSmsRegistrationResponse = ({
|
|
|
18614
18616
|
sample2?: string;
|
|
18615
18617
|
};
|
|
18616
18618
|
});
|
|
18617
|
-
type GetSmsRegistrationError = ({
|
|
18619
|
+
type GetSmsRegistrationError = (ErrorResponse | {
|
|
18618
18620
|
error?: string;
|
|
18619
18621
|
} | unknown);
|
|
18620
18622
|
type VerifySmsRegistrationOtpData = {
|
|
@@ -18628,7 +18630,7 @@ type VerifySmsRegistrationOtpData = {
|
|
|
18628
18630
|
type VerifySmsRegistrationOtpResponse = ({
|
|
18629
18631
|
verified?: boolean;
|
|
18630
18632
|
});
|
|
18631
|
-
type VerifySmsRegistrationOtpError = ({
|
|
18633
|
+
type VerifySmsRegistrationOtpError = (ErrorResponse | {
|
|
18632
18634
|
error?: string;
|
|
18633
18635
|
} | unknown);
|
|
18634
18636
|
type ResendSmsRegistrationOtpData = {
|
|
@@ -18714,7 +18716,7 @@ type ShareSmsRegistrationResponse = ({
|
|
|
18714
18716
|
url?: string;
|
|
18715
18717
|
expiresAt?: string;
|
|
18716
18718
|
});
|
|
18717
|
-
type ShareSmsRegistrationError = ({
|
|
18719
|
+
type ShareSmsRegistrationError = (ErrorResponse | {
|
|
18718
18720
|
error?: string;
|
|
18719
18721
|
} | unknown);
|
|
18720
18722
|
type GetWhatsAppLibraryTemplateData = {
|
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.427",
|
|
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.427",
|
|
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
|
|
|
@@ -18410,7 +18412,7 @@ export type StartSmsRegistrationResponse = ({
|
|
|
18410
18412
|
awaitingOtp?: boolean;
|
|
18411
18413
|
});
|
|
18412
18414
|
|
|
18413
|
-
export type StartSmsRegistrationError = ({
|
|
18415
|
+
export type StartSmsRegistrationError = (ErrorResponse | {
|
|
18414
18416
|
error?: string;
|
|
18415
18417
|
} | unknown);
|
|
18416
18418
|
|
|
@@ -18470,7 +18472,7 @@ export type ListSmsRegistrationsResponse = ({
|
|
|
18470
18472
|
}>;
|
|
18471
18473
|
});
|
|
18472
18474
|
|
|
18473
|
-
export type ListSmsRegistrationsError = ({
|
|
18475
|
+
export type ListSmsRegistrationsError = (ErrorResponse | {
|
|
18474
18476
|
error?: string;
|
|
18475
18477
|
});
|
|
18476
18478
|
|
|
@@ -18484,7 +18486,7 @@ export type DeactivateSmsRegistrationResponse = ({
|
|
|
18484
18486
|
status?: 'deactivated';
|
|
18485
18487
|
});
|
|
18486
18488
|
|
|
18487
|
-
export type DeactivateSmsRegistrationError = ({
|
|
18489
|
+
export type DeactivateSmsRegistrationError = (ErrorResponse | {
|
|
18488
18490
|
error?: string;
|
|
18489
18491
|
} | unknown);
|
|
18490
18492
|
|
|
@@ -18519,7 +18521,7 @@ export type GetSmsRegistrationResponse = ({
|
|
|
18519
18521
|
};
|
|
18520
18522
|
});
|
|
18521
18523
|
|
|
18522
|
-
export type GetSmsRegistrationError = ({
|
|
18524
|
+
export type GetSmsRegistrationError = (ErrorResponse | {
|
|
18523
18525
|
error?: string;
|
|
18524
18526
|
} | unknown);
|
|
18525
18527
|
|
|
@@ -18536,7 +18538,7 @@ export type VerifySmsRegistrationOtpResponse = ({
|
|
|
18536
18538
|
verified?: boolean;
|
|
18537
18539
|
});
|
|
18538
18540
|
|
|
18539
|
-
export type VerifySmsRegistrationOtpError = ({
|
|
18541
|
+
export type VerifySmsRegistrationOtpError = (ErrorResponse | {
|
|
18540
18542
|
error?: string;
|
|
18541
18543
|
} | unknown);
|
|
18542
18544
|
|
|
@@ -18637,7 +18639,7 @@ export type ShareSmsRegistrationResponse = ({
|
|
|
18637
18639
|
expiresAt?: string;
|
|
18638
18640
|
});
|
|
18639
18641
|
|
|
18640
|
-
export type ShareSmsRegistrationError = ({
|
|
18642
|
+
export type ShareSmsRegistrationError = (ErrorResponse | {
|
|
18641
18643
|
error?: string;
|
|
18642
18644
|
} | unknown);
|
|
18643
18645
|
|