@remnawave/node-contract 2.6.14 → 2.6.15

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.
@@ -80,6 +80,21 @@ export declare namespace AddUserCommand {
80
80
  tag: string;
81
81
  username: string;
82
82
  password: string;
83
+ }>, z.ZodObject<{
84
+ type: z.ZodLiteral<"hysteria">;
85
+ tag: z.ZodString;
86
+ username: z.ZodString;
87
+ password: z.ZodString;
88
+ }, "strip", z.ZodTypeAny, {
89
+ type: "hysteria";
90
+ tag: string;
91
+ username: string;
92
+ password: string;
93
+ }, {
94
+ type: "hysteria";
95
+ tag: string;
96
+ username: string;
97
+ password: string;
83
98
  }>]>, "many">;
84
99
  hashData: z.ZodObject<{
85
100
  vlessUuid: z.ZodString;
@@ -115,6 +130,11 @@ export declare namespace AddUserCommand {
115
130
  tag: string;
116
131
  username: string;
117
132
  password: string;
133
+ } | {
134
+ type: "hysteria";
135
+ tag: string;
136
+ username: string;
137
+ password: string;
118
138
  })[];
119
139
  hashData: {
120
140
  vlessUuid: string;
@@ -144,6 +164,11 @@ export declare namespace AddUserCommand {
144
164
  tag: string;
145
165
  username: string;
146
166
  password: string;
167
+ } | {
168
+ type: "hysteria";
169
+ tag: string;
170
+ username: string;
171
+ password: string;
147
172
  })[];
148
173
  hashData: {
149
174
  vlessUuid: string;
@@ -1 +1 @@
1
- {"version":3,"file":"add-user.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/add-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,oBAAY,UAAU;IAClB,WAAW,IAAI;IACf,WAAW,IAAI;IACf,iBAAiB,IAAI;IACrB,IAAI,IAAI;IACR,OAAO,IAAI;IACX,YAAY,KAAK;IACjB,kBAAkB,IAAI;CACzB;AAED,yBAAiB,cAAc,CAAC;IACrB,MAAM,GAAG,0BAA4B,CAAC;IAiCtC,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAaxB,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"}
1
+ {"version":3,"file":"add-user.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/add-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,oBAAY,UAAU;IAClB,WAAW,IAAI;IACf,WAAW,IAAI;IACf,iBAAiB,IAAI;IACrB,IAAI,IAAI;IACR,OAAO,IAAI;IACX,YAAY,KAAK;IACjB,kBAAkB,IAAI;CACzB;AAED,yBAAiB,cAAc,CAAC;IACrB,MAAM,GAAG,0BAA4B,CAAC;IAwCtC,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAcxB,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"}
@@ -43,12 +43,19 @@ var AddUserCommand;
43
43
  username: zod_1.z.string(),
44
44
  password: zod_1.z.string(),
45
45
  });
46
+ const BaseHysteriaUser = zod_1.z.object({
47
+ type: zod_1.z.literal('hysteria'),
48
+ tag: zod_1.z.string(),
49
+ username: zod_1.z.string(),
50
+ password: zod_1.z.string(),
51
+ });
46
52
  AddUserCommand.RequestSchema = zod_1.z.object({
47
53
  data: zod_1.z.array(zod_1.z.discriminatedUnion('type', [
48
54
  BaseTrojanUser,
49
55
  BaseVlessUser,
50
56
  BaseShadowsocksUser,
51
57
  BaseShadowsocks22User,
58
+ BaseHysteriaUser,
52
59
  ])),
53
60
  hashData: zod_1.z.object({
54
61
  vlessUuid: zod_1.z.string().uuid(),
@@ -43,6 +43,21 @@ export declare namespace AddUsersCommand {
43
43
  }, {
44
44
  type: "shadowsocks22";
45
45
  tag: string;
46
+ }>, z.ZodObject<{
47
+ type: z.ZodLiteral<"hysteria">;
48
+ tag: z.ZodString;
49
+ username: z.ZodString;
50
+ password: z.ZodString;
51
+ }, "strip", z.ZodTypeAny, {
52
+ type: "hysteria";
53
+ tag: string;
54
+ username: string;
55
+ password: string;
56
+ }, {
57
+ type: "hysteria";
58
+ tag: string;
59
+ username: string;
60
+ password: string;
46
61
  }>]>, "many">;
47
62
  userData: z.ZodObject<{
48
63
  userId: z.ZodString;
@@ -77,6 +92,11 @@ export declare namespace AddUsersCommand {
77
92
  } | {
78
93
  type: "shadowsocks22";
79
94
  tag: string;
95
+ } | {
96
+ type: "hysteria";
97
+ tag: string;
98
+ username: string;
99
+ password: string;
80
100
  })[];
81
101
  userData: {
82
102
  vlessUuid: string;
@@ -99,6 +119,11 @@ export declare namespace AddUsersCommand {
99
119
  } | {
100
120
  type: "shadowsocks22";
101
121
  tag: string;
122
+ } | {
123
+ type: "hysteria";
124
+ tag: string;
125
+ username: string;
126
+ password: string;
102
127
  })[];
103
128
  userData: {
104
129
  vlessUuid: string;
@@ -124,6 +149,11 @@ export declare namespace AddUsersCommand {
124
149
  } | {
125
150
  type: "shadowsocks22";
126
151
  tag: string;
152
+ } | {
153
+ type: "hysteria";
154
+ tag: string;
155
+ username: string;
156
+ password: string;
127
157
  })[];
128
158
  userData: {
129
159
  vlessUuid: string;
@@ -149,6 +179,11 @@ export declare namespace AddUsersCommand {
149
179
  } | {
150
180
  type: "shadowsocks22";
151
181
  tag: string;
182
+ } | {
183
+ type: "hysteria";
184
+ tag: string;
185
+ username: string;
186
+ password: string;
152
187
  })[];
153
188
  userData: {
154
189
  vlessUuid: string;
@@ -1 +1 @@
1
- {"version":3,"file":"add-users.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/add-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,eAAe,CAAC;IACtB,MAAM,GAAG,2BAA6B,CAAC;IAuBvC,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsBxB,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"}
1
+ {"version":3,"file":"add-users.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/add-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,eAAe,CAAC;IACtB,MAAM,GAAG,2BAA6B,CAAC;IA8BvC,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuBxB,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"}
@@ -23,6 +23,12 @@ var AddUsersCommand;
23
23
  type: zod_1.z.literal('shadowsocks22'),
24
24
  tag: zod_1.z.string(),
25
25
  });
26
+ const BaseHysteriaUser = zod_1.z.object({
27
+ type: zod_1.z.literal('hysteria'),
28
+ tag: zod_1.z.string(),
29
+ username: zod_1.z.string(),
30
+ password: zod_1.z.string(),
31
+ });
26
32
  AddUsersCommand.RequestSchema = zod_1.z.object({
27
33
  affectedInboundTags: zod_1.z.array(zod_1.z.string()),
28
34
  users: zod_1.z.array(zod_1.z.object({
@@ -31,6 +37,7 @@ var AddUsersCommand;
31
37
  BaseVlessUser,
32
38
  BaseShadowsocksUser,
33
39
  BaseShadowsocks22User,
40
+ BaseHysteriaUser,
34
41
  ])),
35
42
  userData: zod_1.z.object({
36
43
  userId: zod_1.z.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/node-contract",
3
- "version": "2.6.14",
3
+ "version": "2.6.15",
4
4
  "description": "A node-contract library for Remnawave Panel",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",