@remnawave/backend-contract 0.7.16 → 0.7.18

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.
@@ -12,56 +12,89 @@ export declare namespace GetUserHwidDevicesCommand {
12
12
  }>;
13
13
  type Request = z.infer<typeof RequestSchema>;
14
14
  const ResponseSchema: z.ZodObject<{
15
- response: z.ZodArray<z.ZodObject<{
16
- hwid: z.ZodString;
17
- userUuid: z.ZodString;
18
- platform: z.ZodNullable<z.ZodString>;
19
- osVersion: z.ZodNullable<z.ZodString>;
20
- deviceModel: z.ZodNullable<z.ZodString>;
21
- userAgent: z.ZodNullable<z.ZodString>;
22
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
23
- updatedAt: z.ZodEffects<z.ZodString, Date, string>;
15
+ response: z.ZodObject<{
16
+ total: z.ZodNumber;
17
+ devices: z.ZodArray<z.ZodObject<{
18
+ hwid: z.ZodString;
19
+ userUuid: z.ZodString;
20
+ platform: z.ZodNullable<z.ZodString>;
21
+ osVersion: z.ZodNullable<z.ZodString>;
22
+ deviceModel: z.ZodNullable<z.ZodString>;
23
+ userAgent: z.ZodNullable<z.ZodString>;
24
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
25
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ hwid: string;
28
+ createdAt: Date;
29
+ updatedAt: Date;
30
+ userUuid: string;
31
+ platform: string | null;
32
+ osVersion: string | null;
33
+ deviceModel: string | null;
34
+ userAgent: string | null;
35
+ }, {
36
+ hwid: string;
37
+ createdAt: string;
38
+ updatedAt: string;
39
+ userUuid: string;
40
+ platform: string | null;
41
+ osVersion: string | null;
42
+ deviceModel: string | null;
43
+ userAgent: string | null;
44
+ }>, "many">;
24
45
  }, "strip", z.ZodTypeAny, {
25
- hwid: string;
26
- createdAt: Date;
27
- updatedAt: Date;
28
- userUuid: string;
29
- platform: string | null;
30
- osVersion: string | null;
31
- deviceModel: string | null;
32
- userAgent: string | null;
46
+ devices: {
47
+ hwid: string;
48
+ createdAt: Date;
49
+ updatedAt: Date;
50
+ userUuid: string;
51
+ platform: string | null;
52
+ osVersion: string | null;
53
+ deviceModel: string | null;
54
+ userAgent: string | null;
55
+ }[];
56
+ total: number;
33
57
  }, {
34
- hwid: string;
35
- createdAt: string;
36
- updatedAt: string;
37
- userUuid: string;
38
- platform: string | null;
39
- osVersion: string | null;
40
- deviceModel: string | null;
41
- userAgent: string | null;
42
- }>, "many">;
58
+ devices: {
59
+ hwid: string;
60
+ createdAt: string;
61
+ updatedAt: string;
62
+ userUuid: string;
63
+ platform: string | null;
64
+ osVersion: string | null;
65
+ deviceModel: string | null;
66
+ userAgent: string | null;
67
+ }[];
68
+ total: number;
69
+ }>;
43
70
  }, "strip", z.ZodTypeAny, {
44
71
  response: {
45
- hwid: string;
46
- createdAt: Date;
47
- updatedAt: Date;
48
- userUuid: string;
49
- platform: string | null;
50
- osVersion: string | null;
51
- deviceModel: string | null;
52
- userAgent: string | null;
53
- }[];
72
+ devices: {
73
+ hwid: string;
74
+ createdAt: Date;
75
+ updatedAt: Date;
76
+ userUuid: string;
77
+ platform: string | null;
78
+ osVersion: string | null;
79
+ deviceModel: string | null;
80
+ userAgent: string | null;
81
+ }[];
82
+ total: number;
83
+ };
54
84
  }, {
55
85
  response: {
56
- hwid: string;
57
- createdAt: string;
58
- updatedAt: string;
59
- userUuid: string;
60
- platform: string | null;
61
- osVersion: string | null;
62
- deviceModel: string | null;
63
- userAgent: string | null;
64
- }[];
86
+ devices: {
87
+ hwid: string;
88
+ createdAt: string;
89
+ updatedAt: string;
90
+ userUuid: string;
91
+ platform: string | null;
92
+ osVersion: string | null;
93
+ deviceModel: string | null;
94
+ userAgent: string | null;
95
+ }[];
96
+ total: number;
97
+ };
65
98
  }>;
66
99
  type Response = z.infer<typeof ResponseSchema>;
67
100
  }
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-hwid-devices.command.d.ts","sourceRoot":"","sources":["../../../../commands/hwid/get-user-hwid-devices.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,8BAAsC,CAAC;IAChD,MAAM,OAAO,QAAmB,CAAC;IAEjC,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-user-hwid-devices.command.d.ts","sourceRoot":"","sources":["../../../../commands/hwid/get-user-hwid-devices.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,8BAAsC,CAAC;IAChD,MAAM,OAAO,QAAmB,CAAC;IAEjC,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -14,6 +14,9 @@ var GetUserHwidDevicesCommand;
14
14
  userUuid: zod_1.z.string().uuid(),
15
15
  });
16
16
  GetUserHwidDevicesCommand.ResponseSchema = zod_1.z.object({
17
- response: zod_1.z.array(models_1.HwidUserDeviceSchema),
17
+ response: zod_1.z.object({
18
+ total: zod_1.z.number(),
19
+ devices: zod_1.z.array(models_1.HwidUserDeviceSchema),
20
+ }),
18
21
  });
19
22
  })(GetUserHwidDevicesCommand || (exports.GetUserHwidDevicesCommand = GetUserHwidDevicesCommand = {}));
@@ -33,30 +33,30 @@ export declare namespace GetNodeUserUsageByRangeCommand {
33
33
  date: Date;
34
34
  username: string;
35
35
  userUuid: string;
36
- nodeUuid: string;
37
36
  total: number;
37
+ nodeUuid: string;
38
38
  }, {
39
39
  date: string;
40
40
  username: string;
41
41
  userUuid: string;
42
- nodeUuid: string;
43
42
  total: number;
43
+ nodeUuid: string;
44
44
  }>, "many">;
45
45
  }, "strip", z.ZodTypeAny, {
46
46
  response: {
47
47
  date: Date;
48
48
  username: string;
49
49
  userUuid: string;
50
- nodeUuid: string;
51
50
  total: number;
51
+ nodeUuid: string;
52
52
  }[];
53
53
  }, {
54
54
  response: {
55
55
  date: string;
56
56
  username: string;
57
57
  userUuid: string;
58
- nodeUuid: string;
59
58
  total: number;
59
+ nodeUuid: string;
60
60
  }[];
61
61
  }>;
62
62
  type Response = z.infer<typeof ResponseSchema>;
@@ -28,8 +28,8 @@ export declare namespace GetNodesUsageByRangeCommand {
28
28
  }, "strip", z.ZodTypeAny, {
29
29
  date: Date;
30
30
  nodeName: string;
31
- nodeUuid: string;
32
31
  total: number;
32
+ nodeUuid: string;
33
33
  totalDownload: number;
34
34
  totalUpload: number;
35
35
  humanReadableTotal: string;
@@ -38,8 +38,8 @@ export declare namespace GetNodesUsageByRangeCommand {
38
38
  }, {
39
39
  date: string;
40
40
  nodeName: string;
41
- nodeUuid: string;
42
41
  total: number;
42
+ nodeUuid: string;
43
43
  totalDownload: number;
44
44
  totalUpload: number;
45
45
  humanReadableTotal: string;
@@ -50,8 +50,8 @@ export declare namespace GetNodesUsageByRangeCommand {
50
50
  response: {
51
51
  date: Date;
52
52
  nodeName: string;
53
- nodeUuid: string;
54
53
  total: number;
54
+ nodeUuid: string;
55
55
  totalDownload: number;
56
56
  totalUpload: number;
57
57
  humanReadableTotal: string;
@@ -62,8 +62,8 @@ export declare namespace GetNodesUsageByRangeCommand {
62
62
  response: {
63
63
  date: string;
64
64
  nodeName: string;
65
- nodeUuid: string;
66
65
  total: number;
66
+ nodeUuid: string;
67
67
  totalDownload: number;
68
68
  totalUpload: number;
69
69
  humanReadableTotal: string;
@@ -33,30 +33,30 @@ export declare namespace GetUserUsageByRangeCommand {
33
33
  date: Date;
34
34
  nodeName: string;
35
35
  userUuid: string;
36
- nodeUuid: string;
37
36
  total: number;
37
+ nodeUuid: string;
38
38
  }, {
39
39
  date: string;
40
40
  nodeName: string;
41
41
  userUuid: string;
42
- nodeUuid: string;
43
42
  total: number;
43
+ nodeUuid: string;
44
44
  }>, "many">;
45
45
  }, "strip", z.ZodTypeAny, {
46
46
  response: {
47
47
  date: Date;
48
48
  nodeName: string;
49
49
  userUuid: string;
50
- nodeUuid: string;
51
50
  total: number;
51
+ nodeUuid: string;
52
52
  }[];
53
53
  }, {
54
54
  response: {
55
55
  date: string;
56
56
  nodeName: string;
57
57
  userUuid: string;
58
- nodeUuid: string;
59
58
  total: number;
59
+ nodeUuid: string;
60
60
  }[];
61
61
  }>;
62
62
  type Response = z.infer<typeof ResponseSchema>;
@@ -14,6 +14,9 @@ var GetUserHwidDevicesCommand;
14
14
  userUuid: zod_1.z.string().uuid(),
15
15
  });
16
16
  GetUserHwidDevicesCommand.ResponseSchema = zod_1.z.object({
17
- response: zod_1.z.array(models_1.HwidUserDeviceSchema),
17
+ response: zod_1.z.object({
18
+ total: zod_1.z.number(),
19
+ devices: zod_1.z.array(models_1.HwidUserDeviceSchema),
20
+ }),
18
21
  });
19
22
  })(GetUserHwidDevicesCommand || (exports.GetUserHwidDevicesCommand = GetUserHwidDevicesCommand = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "0.7.16",
3
+ "version": "0.7.18",
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.",