@remnawave/backend-contract 2.8.9 → 2.8.10

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.
@@ -28,17 +28,7 @@ export declare namespace CreateHostCommand {
28
28
  readonly H3_H2_H1_COMBINED: "h3,h2,http/1.1";
29
29
  readonly H3_H2_COMBINED: "h3,h2";
30
30
  }>>>;
31
- fingerprint: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<{
32
- readonly CHROME: "chrome";
33
- readonly FIREFOX: "firefox";
34
- readonly SAFARI: "safari";
35
- readonly IOS: "ios";
36
- readonly ANDROID: "android";
37
- readonly EDGE: "edge";
38
- readonly QQ: "qq";
39
- readonly RANDOM: "random";
40
- readonly RANDOMIZED: "randomized";
41
- }>>>;
31
+ fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
32
  isDisabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
43
33
  securityLayer: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<{
44
34
  readonly DEFAULT: "DEFAULT";
@@ -91,7 +81,7 @@ export declare namespace CreateHostCommand {
91
81
  sni?: string | undefined;
92
82
  host?: string | undefined;
93
83
  alpn?: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null | undefined;
94
- fingerprint?: "chrome" | "firefox" | "safari" | "ios" | "android" | "edge" | "qq" | "random" | "randomized" | null | undefined;
84
+ fingerprint?: string | null | undefined;
95
85
  isDisabled?: boolean | undefined;
96
86
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
97
87
  xHttpExtraParams?: unknown;
@@ -125,7 +115,7 @@ export declare namespace CreateHostCommand {
125
115
  sni?: string | undefined;
126
116
  host?: string | undefined;
127
117
  alpn?: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null | undefined;
128
- fingerprint?: "chrome" | "firefox" | "safari" | "ios" | "android" | "edge" | "qq" | "random" | "randomized" | null | undefined;
118
+ fingerprint?: string | null | undefined;
129
119
  isDisabled?: boolean | undefined;
130
120
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
131
121
  xHttpExtraParams?: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -37,7 +37,7 @@ var CreateHostCommand;
37
37
  sni: zod_1.z.string().optional(),
38
38
  host: zod_1.z.string().optional(),
39
39
  alpn: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.ALPN).nullable()),
40
- fingerprint: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.FINGERPRINTS).nullable()),
40
+ fingerprint: zod_1.z.optional(zod_1.z.string().nullable()),
41
41
  isDisabled: zod_1.z.optional(zod_1.z.boolean().default(false)),
42
42
  securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.SECURITY_LAYERS).default(constants_1.SECURITY_LAYERS.DEFAULT)),
43
43
  xHttpExtraParams: zod_1.z.optional(zod_1.z.nullable(zod_1.z.unknown())),
@@ -87,17 +87,7 @@ export declare namespace UpdateHostCommand {
87
87
  readonly H3_H2_H1_COMBINED: "h3,h2,http/1.1";
88
88
  readonly H3_H2_COMBINED: "h3,h2";
89
89
  }>>>;
90
- fingerprint: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<{
91
- readonly CHROME: "chrome";
92
- readonly FIREFOX: "firefox";
93
- readonly SAFARI: "safari";
94
- readonly IOS: "ios";
95
- readonly ANDROID: "android";
96
- readonly EDGE: "edge";
97
- readonly QQ: "qq";
98
- readonly RANDOM: "random";
99
- readonly RANDOMIZED: "randomized";
100
- }>>>;
90
+ fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
91
  isDisabled: z.ZodOptional<z.ZodBoolean>;
102
92
  securityLayer: z.ZodOptional<z.ZodNativeEnum<{
103
93
  readonly DEFAULT: "DEFAULT";
@@ -147,7 +137,7 @@ export declare namespace UpdateHostCommand {
147
137
  sni?: string | undefined;
148
138
  host?: string | undefined;
149
139
  alpn?: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null | undefined;
150
- fingerprint?: "chrome" | "firefox" | "safari" | "ios" | "android" | "edge" | "qq" | "random" | "randomized" | null | undefined;
140
+ fingerprint?: string | null | undefined;
151
141
  isDisabled?: boolean | undefined;
152
142
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
153
143
  xHttpExtraParams?: unknown;
@@ -182,7 +172,7 @@ export declare namespace UpdateHostCommand {
182
172
  sni?: string | undefined;
183
173
  host?: string | undefined;
184
174
  alpn?: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null | undefined;
185
- fingerprint?: "chrome" | "firefox" | "safari" | "ios" | "android" | "edge" | "qq" | "random" | "randomized" | null | undefined;
175
+ fingerprint?: string | null | undefined;
186
176
  isDisabled?: boolean | undefined;
187
177
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
188
178
  xHttpExtraParams?: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/update.command.ts"],"names":[],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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA6ExB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -42,7 +42,7 @@ var UpdateHostCommand;
42
42
  sni: zod_1.z.optional(zod_1.z.string()),
43
43
  host: zod_1.z.optional(zod_1.z.string()),
44
44
  alpn: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.ALPN).nullable()),
45
- fingerprint: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.FINGERPRINTS).nullable()),
45
+ fingerprint: zod_1.z.optional(zod_1.z.string().nullable()),
46
46
  isDisabled: zod_1.z.optional(zod_1.z.boolean()),
47
47
  securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.SECURITY_LAYERS)),
48
48
  xHttpExtraParams: zod_1.z.optional(zod_1.z.nullable(zod_1.z.unknown())),
@@ -1,14 +1,2 @@
1
- export declare const FINGERPRINTS: {
2
- readonly CHROME: "chrome";
3
- readonly FIREFOX: "firefox";
4
- readonly SAFARI: "safari";
5
- readonly IOS: "ios";
6
- readonly ANDROID: "android";
7
- readonly EDGE: "edge";
8
- readonly QQ: "qq";
9
- readonly RANDOM: "random";
10
- readonly RANDOMIZED: "randomized";
11
- };
12
- export type TFingerprints = [keyof typeof FINGERPRINTS][number];
13
- export declare const FINGERPRINTS_VALUES: ("chrome" | "firefox" | "safari" | "ios" | "android" | "edge" | "qq" | "random" | "randomized")[];
1
+ export declare const FINGERPRINTS: readonly ["randomized", "android", "firefox", "chrome", "safari", "edge", "ios", "qq", "360", "random"];
14
2
  //# sourceMappingURL=fingerprints.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fingerprints.d.ts","sourceRoot":"","sources":["../../../../constants/hosts/fingerprints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;CAUf,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAChE,eAAO,MAAM,mBAAmB,mGAA8B,CAAC"}
1
+ {"version":3,"file":"fingerprints.d.ts","sourceRoot":"","sources":["../../../../constants/hosts/fingerprints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,yGAWf,CAAC"}
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FINGERPRINTS_VALUES = exports.FINGERPRINTS = void 0;
4
- exports.FINGERPRINTS = {
5
- CHROME: 'chrome',
6
- FIREFOX: 'firefox',
7
- SAFARI: 'safari',
8
- IOS: 'ios',
9
- ANDROID: 'android',
10
- EDGE: 'edge',
11
- QQ: 'qq',
12
- RANDOM: 'random',
13
- RANDOMIZED: 'randomized',
14
- };
15
- exports.FINGERPRINTS_VALUES = Object.values(exports.FINGERPRINTS);
3
+ exports.FINGERPRINTS = void 0;
4
+ exports.FINGERPRINTS = [
5
+ 'randomized',
6
+ 'android',
7
+ 'firefox',
8
+ 'chrome',
9
+ 'safari',
10
+ 'edge',
11
+ 'ios',
12
+ 'qq',
13
+ '360',
14
+ 'random',
15
+ ];
@@ -37,7 +37,7 @@ var CreateHostCommand;
37
37
  sni: zod_1.z.string().optional(),
38
38
  host: zod_1.z.string().optional(),
39
39
  alpn: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.ALPN).nullable()),
40
- fingerprint: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.FINGERPRINTS).nullable()),
40
+ fingerprint: zod_1.z.optional(zod_1.z.string().nullable()),
41
41
  isDisabled: zod_1.z.optional(zod_1.z.boolean().default(false)),
42
42
  securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.SECURITY_LAYERS).default(constants_1.SECURITY_LAYERS.DEFAULT)),
43
43
  xHttpExtraParams: zod_1.z.optional(zod_1.z.nullable(zod_1.z.unknown())),
@@ -42,7 +42,7 @@ var UpdateHostCommand;
42
42
  sni: zod_1.z.optional(zod_1.z.string()),
43
43
  host: zod_1.z.optional(zod_1.z.string()),
44
44
  alpn: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.ALPN).nullable()),
45
- fingerprint: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.FINGERPRINTS).nullable()),
45
+ fingerprint: zod_1.z.optional(zod_1.z.string().nullable()),
46
46
  isDisabled: zod_1.z.optional(zod_1.z.boolean()),
47
47
  securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.SECURITY_LAYERS)),
48
48
  xHttpExtraParams: zod_1.z.optional(zod_1.z.nullable(zod_1.z.unknown())),
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FINGERPRINTS_VALUES = exports.FINGERPRINTS = void 0;
4
- exports.FINGERPRINTS = {
5
- CHROME: 'chrome',
6
- FIREFOX: 'firefox',
7
- SAFARI: 'safari',
8
- IOS: 'ios',
9
- ANDROID: 'android',
10
- EDGE: 'edge',
11
- QQ: 'qq',
12
- RANDOM: 'random',
13
- RANDOMIZED: 'randomized',
14
- };
15
- exports.FINGERPRINTS_VALUES = Object.values(exports.FINGERPRINTS);
3
+ exports.FINGERPRINTS = void 0;
4
+ exports.FINGERPRINTS = [
5
+ 'randomized',
6
+ 'android',
7
+ 'firefox',
8
+ 'chrome',
9
+ 'safari',
10
+ 'edge',
11
+ 'ios',
12
+ 'qq',
13
+ '360',
14
+ 'random',
15
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.8.9",
3
+ "version": "2.8.10",
4
4
  "public": true,
5
5
  "license": "AGPL-3.0-only",
6
6
  "description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",