@remnawave/backend-contract 2.3.36 → 2.3.37

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.
@@ -2,39 +2,11 @@ import { z } from 'zod';
2
2
  export declare namespace GetTopUsersByHwidDevicesCommand {
3
3
  const url: "/api/hwid/devices/top-users";
4
4
  const TSQ_url: "/api/hwid/devices/top-users";
5
- const endpointDetails: import("../..").EndpointDetails;
6
- const RequestQuerySchema: z.ZodObject<Pick<{
5
+ const endpointDetails: import("../../constants").EndpointDetails;
6
+ const RequestQuerySchema: z.ZodObject<{
7
7
  start: z.ZodDefault<z.ZodNumber>;
8
8
  size: z.ZodDefault<z.ZodNumber>;
9
- filters: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
10
- id: z.ZodString;
11
- value: z.ZodUnknown;
12
- }, "strip", z.ZodTypeAny, {
13
- id: string;
14
- value?: unknown;
15
- }, {
16
- id: string;
17
- value?: unknown;
18
- }>, "many">, {
19
- id: string;
20
- value?: unknown;
21
- }[], unknown>>;
22
- filterModes: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, unknown>>;
23
- globalFilterMode: z.ZodOptional<z.ZodString>;
24
- sorting: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
25
- id: z.ZodString;
26
- desc: z.ZodBoolean;
27
- }, "strip", z.ZodTypeAny, {
28
- id: string;
29
- desc: boolean;
30
- }, {
31
- id: string;
32
- desc: boolean;
33
- }>, "many">, {
34
- id: string;
35
- desc: boolean;
36
- }[], unknown>>;
37
- }, "start" | "size">, "strip", z.ZodTypeAny, {
9
+ }, "strip", z.ZodTypeAny, {
38
10
  start: number;
39
11
  size: number;
40
12
  }, {
@@ -1 +1 @@
1
- {"version":3,"file":"get-top-users-by-hwid-devices.command.d.ts","sourceRoot":"","sources":["../../../../commands/hwid/get-top-users-by-hwid-devices.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,+BAA+B,CAAC;IACtC,MAAM,GAAG,+BAAqC,CAAC;IAC/C,MAAM,OAAO,+BAAM,CAAC;IAEpB,MAAM,eAAe,iCAI3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAG7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAYzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-top-users-by-hwid-devices.command.d.ts","sourceRoot":"","sources":["../../../../commands/hwid/get-top-users-by-hwid-devices.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,+BAA+B,CAAC;IACtC,MAAM,GAAG,+BAAqC,CAAC;IAC/C,MAAM,OAAO,+BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;;;;MAW7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAYzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetTopUsersByHwidDevicesCommand = void 0;
4
4
  const zod_1 = require("zod");
5
- const __1 = require("../..");
6
5
  const constants_1 = require("../../constants");
7
6
  const api_1 = require("../../api");
8
7
  var GetTopUsersByHwidDevicesCommand;
@@ -10,9 +9,17 @@ var GetTopUsersByHwidDevicesCommand;
10
9
  GetTopUsersByHwidDevicesCommand.url = api_1.REST_API.HWID.TOP_USERS_BY_DEVICES;
11
10
  GetTopUsersByHwidDevicesCommand.TSQ_url = GetTopUsersByHwidDevicesCommand.url;
12
11
  GetTopUsersByHwidDevicesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HWID_ROUTES.TOP_USERS_BY_DEVICES, 'get', 'Get top users by HWID devices');
13
- GetTopUsersByHwidDevicesCommand.RequestQuerySchema = __1.TanstackQueryRequestQuerySchema.pick({
14
- start: true,
15
- size: true,
12
+ GetTopUsersByHwidDevicesCommand.RequestQuerySchema = zod_1.z.object({
13
+ start: zod_1.z.coerce
14
+ .number()
15
+ .default(0)
16
+ .describe('Start index (offset) of the results to return, default is 0'),
17
+ size: zod_1.z.coerce
18
+ .number()
19
+ .min(1, 'Size (limit) must be greater than 0')
20
+ .max(100, 'Size (limit) must be less than 100')
21
+ .describe('Number of results to return, no more than 100')
22
+ .default(25),
16
23
  });
17
24
  GetTopUsersByHwidDevicesCommand.ResponseSchema = zod_1.z.object({
18
25
  response: zod_1.z.object({
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetTopUsersByHwidDevicesCommand = void 0;
4
4
  const zod_1 = require("zod");
5
- const __1 = require("../..");
6
5
  const constants_1 = require("../../constants");
7
6
  const api_1 = require("../../api");
8
7
  var GetTopUsersByHwidDevicesCommand;
@@ -10,9 +9,17 @@ var GetTopUsersByHwidDevicesCommand;
10
9
  GetTopUsersByHwidDevicesCommand.url = api_1.REST_API.HWID.TOP_USERS_BY_DEVICES;
11
10
  GetTopUsersByHwidDevicesCommand.TSQ_url = GetTopUsersByHwidDevicesCommand.url;
12
11
  GetTopUsersByHwidDevicesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HWID_ROUTES.TOP_USERS_BY_DEVICES, 'get', 'Get top users by HWID devices');
13
- GetTopUsersByHwidDevicesCommand.RequestQuerySchema = __1.TanstackQueryRequestQuerySchema.pick({
14
- start: true,
15
- size: true,
12
+ GetTopUsersByHwidDevicesCommand.RequestQuerySchema = zod_1.z.object({
13
+ start: zod_1.z.coerce
14
+ .number()
15
+ .default(0)
16
+ .describe('Start index (offset) of the results to return, default is 0'),
17
+ size: zod_1.z.coerce
18
+ .number()
19
+ .min(1, 'Size (limit) must be greater than 0')
20
+ .max(100, 'Size (limit) must be less than 100')
21
+ .describe('Number of results to return, no more than 100')
22
+ .default(25),
16
23
  });
17
24
  GetTopUsersByHwidDevicesCommand.ResponseSchema = zod_1.z.object({
18
25
  response: zod_1.z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.3.36",
3
+ "version": "2.3.37",
4
4
  "public": true,
5
5
  "license": "AGPL-3.0-only",
6
6
  "description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",