@remnawave/node-contract 0.7.0 → 0.7.1

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.
@@ -36,23 +36,23 @@ export declare namespace AddUsersCommand {
36
36
  tag: string;
37
37
  }>]>, "many">;
38
38
  userData: z.ZodObject<{
39
- username: z.ZodString;
39
+ userId: z.ZodString;
40
40
  hashUuid: z.ZodString;
41
41
  vlessUuid: z.ZodString;
42
42
  trojanPassword: z.ZodString;
43
- shadowsocksPassword: z.ZodString;
43
+ ssPassword: z.ZodString;
44
44
  }, "strip", z.ZodTypeAny, {
45
- username: string;
46
45
  vlessUuid: string;
46
+ userId: string;
47
47
  hashUuid: string;
48
48
  trojanPassword: string;
49
- shadowsocksPassword: string;
49
+ ssPassword: string;
50
50
  }, {
51
- username: string;
52
51
  vlessUuid: string;
52
+ userId: string;
53
53
  hashUuid: string;
54
54
  trojanPassword: string;
55
- shadowsocksPassword: string;
55
+ ssPassword: string;
56
56
  }>;
57
57
  }, "strip", z.ZodTypeAny, {
58
58
  inboundData: ({
@@ -67,11 +67,11 @@ export declare namespace AddUsersCommand {
67
67
  tag: string;
68
68
  })[];
69
69
  userData: {
70
- username: string;
71
70
  vlessUuid: string;
71
+ userId: string;
72
72
  hashUuid: string;
73
73
  trojanPassword: string;
74
- shadowsocksPassword: string;
74
+ ssPassword: string;
75
75
  };
76
76
  }, {
77
77
  inboundData: ({
@@ -86,11 +86,11 @@ export declare namespace AddUsersCommand {
86
86
  tag: string;
87
87
  })[];
88
88
  userData: {
89
- username: string;
90
89
  vlessUuid: string;
90
+ userId: string;
91
91
  hashUuid: string;
92
92
  trojanPassword: string;
93
- shadowsocksPassword: string;
93
+ ssPassword: string;
94
94
  };
95
95
  }>, "many">;
96
96
  }, "strip", z.ZodTypeAny, {
@@ -108,11 +108,11 @@ export declare namespace AddUsersCommand {
108
108
  tag: string;
109
109
  })[];
110
110
  userData: {
111
- username: string;
112
111
  vlessUuid: string;
112
+ userId: string;
113
113
  hashUuid: string;
114
114
  trojanPassword: string;
115
- shadowsocksPassword: string;
115
+ ssPassword: string;
116
116
  };
117
117
  }[];
118
118
  }, {
@@ -130,11 +130,11 @@ export declare namespace AddUsersCommand {
130
130
  tag: string;
131
131
  })[];
132
132
  userData: {
133
- username: string;
134
133
  vlessUuid: string;
134
+ userId: string;
135
135
  hashUuid: string;
136
136
  trojanPassword: string;
137
- shadowsocksPassword: string;
137
+ ssPassword: string;
138
138
  };
139
139
  }[];
140
140
  }>;
@@ -28,11 +28,11 @@ var AddUsersCommand;
28
28
  BaseShadowsocksUser,
29
29
  ])),
30
30
  userData: zod_1.z.object({
31
- username: zod_1.z.string(),
31
+ userId: zod_1.z.string(),
32
32
  hashUuid: zod_1.z.string().uuid(),
33
33
  vlessUuid: zod_1.z.string().uuid(),
34
34
  trojanPassword: zod_1.z.string(),
35
- shadowsocksPassword: zod_1.z.string(),
35
+ ssPassword: zod_1.z.string(),
36
36
  }),
37
37
  })),
38
38
  });
@@ -1,16 +1,28 @@
1
1
  import { z } from 'zod';
2
2
  export declare namespace RemoveUsersCommand {
3
3
  const url: "/node/handler/remove-users";
4
- const RequestSchema: z.ZodArray<z.ZodObject<{
5
- username: z.ZodString;
6
- hashUuid: z.ZodString;
4
+ const RequestSchema: z.ZodObject<{
5
+ users: z.ZodArray<z.ZodObject<{
6
+ userId: z.ZodString;
7
+ hashUuid: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ userId: string;
10
+ hashUuid: string;
11
+ }, {
12
+ userId: string;
13
+ hashUuid: string;
14
+ }>, "many">;
7
15
  }, "strip", z.ZodTypeAny, {
8
- username: string;
9
- hashUuid: string;
16
+ users: {
17
+ userId: string;
18
+ hashUuid: string;
19
+ }[];
10
20
  }, {
11
- username: string;
12
- hashUuid: string;
13
- }>, "many">;
21
+ users: {
22
+ userId: string;
23
+ hashUuid: string;
24
+ }[];
25
+ }>;
14
26
  type Request = z.infer<typeof RequestSchema>;
15
27
  const ResponseSchema: z.ZodObject<{
16
28
  response: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"remove-users.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/remove-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,8BAAgC,CAAC;IAE1C,MAAM,aAAa;;;;;;;;;eAKzB,CAAC;IAEF,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"}
1
+ {"version":3,"file":"remove-users.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/remove-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,8BAAgC,CAAC;IAE1C,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;MAOxB,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"}
@@ -6,10 +6,12 @@ const api_1 = require("../../api");
6
6
  var RemoveUsersCommand;
7
7
  (function (RemoveUsersCommand) {
8
8
  RemoveUsersCommand.url = api_1.REST_API.HANDLER.REMOVE_USERS;
9
- RemoveUsersCommand.RequestSchema = zod_1.z.array(zod_1.z.object({
10
- username: zod_1.z.string(),
11
- hashUuid: zod_1.z.string().uuid(),
12
- }));
9
+ RemoveUsersCommand.RequestSchema = zod_1.z.object({
10
+ users: zod_1.z.array(zod_1.z.object({
11
+ userId: zod_1.z.string(),
12
+ hashUuid: zod_1.z.string().uuid(),
13
+ })),
14
+ });
13
15
  RemoveUsersCommand.ResponseSchema = zod_1.z.object({
14
16
  response: zod_1.z.object({
15
17
  success: zod_1.z.boolean(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/node-contract",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "A node-contract library for Remnawave Panel",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",