@remnawave/node-contract
Advanced tools
@@ -83,2 +83,17 @@ import { z } from 'zod'; | ||
| password: string; | ||
| }>, z.ZodObject<{ | ||
| type: z.ZodLiteral<"hysteria">; | ||
| tag: z.ZodString; | ||
| username: z.ZodString; | ||
| password: z.ZodString; | ||
| }, "strip", z.ZodTypeAny, { | ||
| type: "hysteria"; | ||
| tag: string; | ||
| username: string; | ||
| password: string; | ||
| }, { | ||
| type: "hysteria"; | ||
| tag: string; | ||
| username: string; | ||
| password: string; | ||
| }>]>, "many">; | ||
@@ -119,2 +134,7 @@ hashData: z.ZodObject<{ | ||
| password: string; | ||
| } | { | ||
| type: "hysteria"; | ||
| tag: string; | ||
| username: string; | ||
| password: string; | ||
| })[]; | ||
@@ -149,2 +169,7 @@ hashData: { | ||
| password: string; | ||
| } | { | ||
| type: "hysteria"; | ||
| tag: string; | ||
| username: string; | ||
| password: string; | ||
| })[]; | ||
@@ -151,0 +176,0 @@ hashData: { |
@@ -1,1 +0,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"} | ||
| {"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"} |
@@ -46,2 +46,8 @@ "use strict"; | ||
| }); | ||
| const BaseHysteriaUser = zod_1.z.object({ | ||
| type: zod_1.z.literal('hysteria'), | ||
| tag: zod_1.z.string(), | ||
| username: zod_1.z.string(), | ||
| password: zod_1.z.string(), | ||
| }); | ||
| AddUserCommand.RequestSchema = zod_1.z.object({ | ||
@@ -53,2 +59,3 @@ data: zod_1.z.array(zod_1.z.discriminatedUnion('type', [ | ||
| BaseShadowsocks22User, | ||
| BaseHysteriaUser, | ||
| ])), | ||
@@ -55,0 +62,0 @@ hashData: zod_1.z.object({ |
@@ -46,2 +46,17 @@ import { z } from 'zod'; | ||
| tag: string; | ||
| }>, z.ZodObject<{ | ||
| type: z.ZodLiteral<"hysteria">; | ||
| tag: z.ZodString; | ||
| username: z.ZodString; | ||
| password: z.ZodString; | ||
| }, "strip", z.ZodTypeAny, { | ||
| type: "hysteria"; | ||
| tag: string; | ||
| username: string; | ||
| password: string; | ||
| }, { | ||
| type: "hysteria"; | ||
| tag: string; | ||
| username: string; | ||
| password: string; | ||
| }>]>, "many">; | ||
@@ -81,2 +96,7 @@ userData: z.ZodObject<{ | ||
| tag: string; | ||
| } | { | ||
| type: "hysteria"; | ||
| tag: string; | ||
| username: string; | ||
| password: string; | ||
| })[]; | ||
@@ -104,2 +124,7 @@ userData: { | ||
| tag: string; | ||
| } | { | ||
| type: "hysteria"; | ||
| tag: string; | ||
| username: string; | ||
| password: string; | ||
| })[]; | ||
@@ -130,2 +155,7 @@ userData: { | ||
| tag: string; | ||
| } | { | ||
| type: "hysteria"; | ||
| tag: string; | ||
| username: string; | ||
| password: string; | ||
| })[]; | ||
@@ -156,2 +186,7 @@ userData: { | ||
| tag: string; | ||
| } | { | ||
| type: "hysteria"; | ||
| tag: string; | ||
| username: string; | ||
| password: string; | ||
| })[]; | ||
@@ -158,0 +193,0 @@ userData: { |
@@ -1,1 +0,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"} | ||
| {"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"} |
@@ -26,2 +26,8 @@ "use strict"; | ||
| }); | ||
| const BaseHysteriaUser = zod_1.z.object({ | ||
| type: zod_1.z.literal('hysteria'), | ||
| tag: zod_1.z.string(), | ||
| username: zod_1.z.string(), | ||
| password: zod_1.z.string(), | ||
| }); | ||
| AddUsersCommand.RequestSchema = zod_1.z.object({ | ||
@@ -35,2 +41,3 @@ affectedInboundTags: zod_1.z.array(zod_1.z.string()), | ||
| BaseShadowsocks22User, | ||
| BaseHysteriaUser, | ||
| ])), | ||
@@ -37,0 +44,0 @@ userData: zod_1.z.object({ |
+1
-1
| { | ||
| "name": "@remnawave/node-contract", | ||
| "version": "2.6.14", | ||
| "version": "2.6.15", | ||
| "description": "A node-contract library for Remnawave Panel", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
179244
1.32%4454
1.69%