@remnawave/backend-contract
Advanced tools
Comparing version 0.0.20 to 0.0.21
@@ -43,4 +43,4 @@ "use strict"; | ||
host: zod_1.z.optional(zod_1.z.string()), | ||
alpn: zod_1.z.optional(zod_1.z.nativeEnum(alpn_1.ALPN).nullable()), | ||
fingerprint: zod_1.z.optional(zod_1.z.nativeEnum(fingerprints_1.FINGERPRINTS).nullable()), | ||
alpn: zod_1.z.optional(zod_1.z.enum([alpn_1.ALPN_VALUES[0], ...alpn_1.ALPN_VALUES]).nullable()), | ||
fingerprint: zod_1.z.optional(zod_1.z.enum([fingerprints_1.FINGERPRINTS_VALUES[0], ...fingerprints_1.FINGERPRINTS_VALUES]).nullable()), | ||
allowInsecure: zod_1.z.optional(zod_1.z.boolean()), | ||
@@ -47,0 +47,0 @@ isDisabled: zod_1.z.optional(zod_1.z.boolean()), |
import { z } from 'zod'; | ||
import { REST_API } from '../../api'; | ||
import { ALPN } from '../../constants/hosts/alpn'; | ||
import { FINGERPRINTS } from '../../constants/hosts/fingerprints'; | ||
import { ALPN, ALPN_VALUES } from '../../constants/hosts/alpn'; | ||
import { FINGERPRINTS, FINGERPRINTS_VALUES } from '../../constants/hosts/fingerprints'; | ||
import { HostsSchema } from '../../models'; | ||
@@ -41,4 +41,6 @@ | ||
host: z.optional(z.string()), | ||
alpn: z.optional(z.nativeEnum(ALPN).nullable()), | ||
fingerprint: z.optional(z.nativeEnum(FINGERPRINTS).nullable()), | ||
alpn: z.optional(z.enum([ALPN_VALUES[0], ...ALPN_VALUES]).nullable()), | ||
fingerprint: z.optional( | ||
z.enum([FINGERPRINTS_VALUES[0], ...FINGERPRINTS_VALUES]).nullable(), | ||
), | ||
allowInsecure: z.optional(z.boolean()), | ||
@@ -45,0 +47,0 @@ isDisabled: z.optional(z.boolean()), |
{ | ||
"name": "@remnawave/backend-contract", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"description": "A contract library for Remnawave", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
140065
3466