@remnawave/node-contract 2.6.14 → 2.6.16

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,15 @@ 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
+ }, "strip", z.ZodTypeAny, {
50
+ type: "hysteria";
51
+ tag: string;
52
+ }, {
53
+ type: "hysteria";
54
+ tag: string;
46
55
  }>]>, "many">;
47
56
  userData: z.ZodObject<{
48
57
  userId: z.ZodString;
@@ -77,6 +86,9 @@ export declare namespace AddUsersCommand {
77
86
  } | {
78
87
  type: "shadowsocks22";
79
88
  tag: string;
89
+ } | {
90
+ type: "hysteria";
91
+ tag: string;
80
92
  })[];
81
93
  userData: {
82
94
  vlessUuid: string;
@@ -99,6 +111,9 @@ export declare namespace AddUsersCommand {
99
111
  } | {
100
112
  type: "shadowsocks22";
101
113
  tag: string;
114
+ } | {
115
+ type: "hysteria";
116
+ tag: string;
102
117
  })[];
103
118
  userData: {
104
119
  vlessUuid: string;
@@ -124,6 +139,9 @@ export declare namespace AddUsersCommand {
124
139
  } | {
125
140
  type: "shadowsocks22";
126
141
  tag: string;
142
+ } | {
143
+ type: "hysteria";
144
+ tag: string;
127
145
  })[];
128
146
  userData: {
129
147
  vlessUuid: string;
@@ -149,6 +167,9 @@ export declare namespace AddUsersCommand {
149
167
  } | {
150
168
  type: "shadowsocks22";
151
169
  tag: string;
170
+ } | {
171
+ type: "hysteria";
172
+ tag: string;
152
173
  })[];
153
174
  userData: {
154
175
  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;IA4BvC,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,10 @@ 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
+ });
26
30
  AddUsersCommand.RequestSchema = zod_1.z.object({
27
31
  affectedInboundTags: zod_1.z.array(zod_1.z.string()),
28
32
  users: zod_1.z.array(zod_1.z.object({
@@ -31,6 +35,7 @@ var AddUsersCommand;
31
35
  BaseVlessUser,
32
36
  BaseShadowsocksUser,
33
37
  BaseShadowsocks22User,
38
+ BaseHysteriaUser,
34
39
  ])),
35
40
  userData: zod_1.z.object({
36
41
  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.16",
4
4
  "description": "A node-contract library for Remnawave Panel",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",