@zernio/node 0.2.426 → 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 CHANGED
@@ -10358,11 +10358,13 @@ type ListAccountsData = {
10358
10358
  */
10359
10359
  includeOverLimit?: boolean;
10360
10360
  /**
10361
- * Page size. Required alongside page for pagination.
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). When provided with limit, enables server-side pagination. Omit for all accounts.
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 = {
package/dist/index.d.ts CHANGED
@@ -10358,11 +10358,13 @@ type ListAccountsData = {
10358
10358
  */
10359
10359
  includeOverLimit?: boolean;
10360
10360
  /**
10361
- * Page size. Required alongside page for pagination.
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). When provided with limit, enables server-side pagination. Omit for all accounts.
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 = {
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.426",
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.426",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.426",
3
+ "version": "0.2.427",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -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. Required alongside page for pagination.
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). When provided with limit, enables server-side pagination. Omit for all accounts.
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