@remnawave/node-contract
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -14,3 +14,3 @@ import { z } from 'zod'; | ||
const RequestSchema: z.ZodObject<{ | ||
data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ | ||
data: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ | ||
type: z.ZodLiteral<"trojan">; | ||
@@ -138,5 +138,5 @@ tag: z.ZodString; | ||
level?: number | undefined; | ||
}>]>; | ||
}>]>, "many">; | ||
}, "strip", z.ZodTypeAny, { | ||
data: { | ||
data: ({ | ||
type: "trojan"; | ||
@@ -182,5 +182,5 @@ username: string; | ||
http_password: string; | ||
}; | ||
})[]; | ||
}, { | ||
data: { | ||
data: ({ | ||
type: "trojan"; | ||
@@ -226,3 +226,3 @@ username: string; | ||
level?: number | undefined; | ||
}; | ||
})[]; | ||
}>; | ||
@@ -229,0 +229,0 @@ type Request = z.infer<typeof RequestSchema>; |
@@ -67,3 +67,3 @@ "use strict"; | ||
AddUserCommand.RequestSchema = zod_1.z.object({ | ||
data: zod_1.z.discriminatedUnion('type', [ | ||
data: zod_1.z.array(zod_1.z.discriminatedUnion('type', [ | ||
BaseTrojanUser, | ||
@@ -75,3 +75,3 @@ BaseVlessUser, | ||
BaseHttpUser, | ||
]), | ||
])), | ||
}); | ||
@@ -78,0 +78,0 @@ AddUserCommand.ResponseSchema = zod_1.z.object({ |
{ | ||
"name": "@remnawave/node-contract", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "A node-contract library for Remnawave Panel", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
65808