@remnawave/backend-contract 2.2.16 → 2.2.18

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.
@@ -7,24 +7,71 @@ export declare namespace GetStatusCommand {
7
7
  response: z.ZodObject<{
8
8
  isLoginAllowed: z.ZodBoolean;
9
9
  isRegisterAllowed: z.ZodBoolean;
10
- tgAuth: z.ZodNullable<z.ZodObject<{
11
- botId: z.ZodNumber;
10
+ authentication: z.ZodNullable<z.ZodObject<{
11
+ passkey: z.ZodObject<{
12
+ enabled: z.ZodBoolean;
13
+ }, "strip", z.ZodTypeAny, {
14
+ enabled: boolean;
15
+ }, {
16
+ enabled: boolean;
17
+ }>;
18
+ tgAuth: z.ZodObject<{
19
+ enabled: z.ZodBoolean;
20
+ botId: z.ZodNullable<z.ZodNumber>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ enabled: boolean;
23
+ botId: number | null;
24
+ }, {
25
+ enabled: boolean;
26
+ botId: number | null;
27
+ }>;
28
+ oauth2: z.ZodObject<{
29
+ providers: z.ZodRecord<z.ZodNativeEnum<{
30
+ readonly GITHUB: "github";
31
+ readonly POCKETID: "pocketid";
32
+ readonly YANDEX: "yandex";
33
+ }>, z.ZodBoolean>;
34
+ }, "strip", z.ZodTypeAny, {
35
+ providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
36
+ }, {
37
+ providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
38
+ }>;
39
+ password: z.ZodObject<{
40
+ enabled: z.ZodBoolean;
41
+ }, "strip", z.ZodTypeAny, {
42
+ enabled: boolean;
43
+ }, {
44
+ enabled: boolean;
45
+ }>;
12
46
  }, "strip", z.ZodTypeAny, {
13
- botId: number;
47
+ passkey: {
48
+ enabled: boolean;
49
+ };
50
+ tgAuth: {
51
+ enabled: boolean;
52
+ botId: number | null;
53
+ };
54
+ oauth2: {
55
+ providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
56
+ };
57
+ password: {
58
+ enabled: boolean;
59
+ };
14
60
  }, {
15
- botId: number;
61
+ passkey: {
62
+ enabled: boolean;
63
+ };
64
+ tgAuth: {
65
+ enabled: boolean;
66
+ botId: number | null;
67
+ };
68
+ oauth2: {
69
+ providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
70
+ };
71
+ password: {
72
+ enabled: boolean;
73
+ };
16
74
  }>>;
17
- oauth2: z.ZodObject<{
18
- providers: z.ZodRecord<z.ZodNativeEnum<{
19
- readonly GITHUB: "github";
20
- readonly POCKETID: "pocketid";
21
- readonly YANDEX: "yandex";
22
- }>, z.ZodBoolean>;
23
- }, "strip", z.ZodTypeAny, {
24
- providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
25
- }, {
26
- providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
27
- }>;
28
75
  branding: z.ZodObject<{
29
76
  title: z.ZodNullable<z.ZodString>;
30
77
  logoUrl: z.ZodNullable<z.ZodString>;
@@ -38,12 +85,21 @@ export declare namespace GetStatusCommand {
38
85
  }, "strip", z.ZodTypeAny, {
39
86
  isLoginAllowed: boolean;
40
87
  isRegisterAllowed: boolean;
41
- tgAuth: {
42
- botId: number;
88
+ authentication: {
89
+ passkey: {
90
+ enabled: boolean;
91
+ };
92
+ tgAuth: {
93
+ enabled: boolean;
94
+ botId: number | null;
95
+ };
96
+ oauth2: {
97
+ providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
98
+ };
99
+ password: {
100
+ enabled: boolean;
101
+ };
43
102
  } | null;
44
- oauth2: {
45
- providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
46
- };
47
103
  branding: {
48
104
  title: string | null;
49
105
  logoUrl: string | null;
@@ -51,12 +107,21 @@ export declare namespace GetStatusCommand {
51
107
  }, {
52
108
  isLoginAllowed: boolean;
53
109
  isRegisterAllowed: boolean;
54
- tgAuth: {
55
- botId: number;
110
+ authentication: {
111
+ passkey: {
112
+ enabled: boolean;
113
+ };
114
+ tgAuth: {
115
+ enabled: boolean;
116
+ botId: number | null;
117
+ };
118
+ oauth2: {
119
+ providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
120
+ };
121
+ password: {
122
+ enabled: boolean;
123
+ };
56
124
  } | null;
57
- oauth2: {
58
- providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
59
- };
60
125
  branding: {
61
126
  title: string | null;
62
127
  logoUrl: string | null;
@@ -66,12 +131,21 @@ export declare namespace GetStatusCommand {
66
131
  response: {
67
132
  isLoginAllowed: boolean;
68
133
  isRegisterAllowed: boolean;
69
- tgAuth: {
70
- botId: number;
134
+ authentication: {
135
+ passkey: {
136
+ enabled: boolean;
137
+ };
138
+ tgAuth: {
139
+ enabled: boolean;
140
+ botId: number | null;
141
+ };
142
+ oauth2: {
143
+ providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
144
+ };
145
+ password: {
146
+ enabled: boolean;
147
+ };
71
148
  } | null;
72
- oauth2: {
73
- providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
74
- };
75
149
  branding: {
76
150
  title: string | null;
77
151
  logoUrl: string | null;
@@ -81,12 +155,21 @@ export declare namespace GetStatusCommand {
81
155
  response: {
82
156
  isLoginAllowed: boolean;
83
157
  isRegisterAllowed: boolean;
84
- tgAuth: {
85
- botId: number;
158
+ authentication: {
159
+ passkey: {
160
+ enabled: boolean;
161
+ };
162
+ tgAuth: {
163
+ enabled: boolean;
164
+ botId: number | null;
165
+ };
166
+ oauth2: {
167
+ providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
168
+ };
169
+ password: {
170
+ enabled: boolean;
171
+ };
86
172
  } | null;
87
- oauth2: {
88
- providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
89
- };
90
173
  branding: {
91
174
  title: string | null;
92
175
  logoUrl: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"get-status.command.d.ts","sourceRoot":"","sources":["../../../../commands/auth/get-status.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,gBAAgB,CAAC;IACvB,MAAM,GAAG,oBAA2B,CAAC;IACrC,MAAM,OAAO,oBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiBzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-status.command.d.ts","sourceRoot":"","sources":["../../../../commands/auth/get-status.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,gBAAgB,CAAC;IACvB,MAAM,GAAG,oBAA2B,CAAC;IACrC,MAAM,OAAO,oBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA0BzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -13,14 +13,21 @@ var GetStatusCommand;
13
13
  response: zod_1.z.object({
14
14
  isLoginAllowed: zod_1.z.boolean(),
15
15
  isRegisterAllowed: zod_1.z.boolean(),
16
- tgAuth: zod_1.z
17
- .object({
18
- botId: zod_1.z.number(),
19
- })
20
- .nullable(),
21
- oauth2: zod_1.z.object({
22
- providers: zod_1.z.record(zod_1.z.nativeEnum(constants_1.OAUTH2_PROVIDERS), zod_1.z.boolean()),
23
- }),
16
+ authentication: zod_1.z.nullable(zod_1.z.object({
17
+ passkey: zod_1.z.object({
18
+ enabled: zod_1.z.boolean(),
19
+ }),
20
+ tgAuth: zod_1.z.object({
21
+ enabled: zod_1.z.boolean(),
22
+ botId: zod_1.z.number().nullable(),
23
+ }),
24
+ oauth2: zod_1.z.object({
25
+ providers: zod_1.z.record(zod_1.z.nativeEnum(constants_1.OAUTH2_PROVIDERS), zod_1.z.boolean()),
26
+ }),
27
+ password: zod_1.z.object({
28
+ enabled: zod_1.z.boolean(),
29
+ }),
30
+ })),
24
31
  branding: zod_1.z.object({
25
32
  title: zod_1.z.nullable(zod_1.z.string()),
26
33
  logoUrl: zod_1.z.nullable(zod_1.z.string()),
@@ -7,11 +7,11 @@ export declare namespace LoginCommand {
7
7
  username: z.ZodString;
8
8
  password: z.ZodString;
9
9
  }, "strip", z.ZodTypeAny, {
10
- username: string;
11
10
  password: string;
12
- }, {
13
11
  username: string;
12
+ }, {
14
13
  password: string;
14
+ username: string;
15
15
  }>;
16
16
  type Request = z.infer<typeof RequestSchema>;
17
17
  const ResponseSchema: z.ZodObject<{
@@ -7,11 +7,11 @@ export declare namespace RegisterCommand {
7
7
  username: z.ZodString;
8
8
  password: z.ZodString;
9
9
  }, "strip", z.ZodTypeAny, {
10
- username: string;
11
10
  password: string;
12
- }, {
13
11
  username: string;
12
+ }, {
14
13
  password: string;
14
+ username: string;
15
15
  }>;
16
16
  type Request = z.infer<typeof RequestSchema>;
17
17
  const ResponseSchema: z.ZodObject<{
@@ -98,9 +98,9 @@ export declare namespace GetSubscriptionSettingsCommand {
98
98
  subscriptionTemplate?: string | undefined;
99
99
  }>>;
100
100
  }, "strip", z.ZodTypeAny, {
101
+ enabled: boolean;
101
102
  name: string;
102
103
  operator: "AND" | "OR";
103
- enabled: boolean;
104
104
  conditions: {
105
105
  value: string;
106
106
  headerName: string;
@@ -117,9 +117,9 @@ export declare namespace GetSubscriptionSettingsCommand {
117
117
  subscriptionTemplate?: string | undefined;
118
118
  } | undefined;
119
119
  }, {
120
+ enabled: boolean;
120
121
  name: string;
121
122
  operator: "AND" | "OR";
122
- enabled: boolean;
123
123
  conditions: {
124
124
  value: string;
125
125
  headerName: string;
@@ -139,9 +139,9 @@ export declare namespace GetSubscriptionSettingsCommand {
139
139
  }, "strip", z.ZodTypeAny, {
140
140
  version: "1";
141
141
  rules: {
142
+ enabled: boolean;
142
143
  name: string;
143
144
  operator: "AND" | "OR";
144
- enabled: boolean;
145
145
  conditions: {
146
146
  value: string;
147
147
  headerName: string;
@@ -161,9 +161,9 @@ export declare namespace GetSubscriptionSettingsCommand {
161
161
  }, {
162
162
  version: "1";
163
163
  rules: {
164
+ enabled: boolean;
164
165
  name: string;
165
166
  operator: "AND" | "OR";
166
- enabled: boolean;
167
167
  conditions: {
168
168
  value: string;
169
169
  headerName: string;
@@ -204,9 +204,9 @@ export declare namespace GetSubscriptionSettingsCommand {
204
204
  responseRules: {
205
205
  version: "1";
206
206
  rules: {
207
+ enabled: boolean;
207
208
  name: string;
208
209
  operator: "AND" | "OR";
209
- enabled: boolean;
210
210
  conditions: {
211
211
  value: string;
212
212
  headerName: string;
@@ -245,9 +245,9 @@ export declare namespace GetSubscriptionSettingsCommand {
245
245
  responseRules: {
246
246
  version: "1";
247
247
  rules: {
248
+ enabled: boolean;
248
249
  name: string;
249
250
  operator: "AND" | "OR";
250
- enabled: boolean;
251
251
  conditions: {
252
252
  value: string;
253
253
  headerName: string;
@@ -288,9 +288,9 @@ export declare namespace GetSubscriptionSettingsCommand {
288
288
  responseRules: {
289
289
  version: "1";
290
290
  rules: {
291
+ enabled: boolean;
291
292
  name: string;
292
293
  operator: "AND" | "OR";
293
- enabled: boolean;
294
294
  conditions: {
295
295
  value: string;
296
296
  headerName: string;
@@ -331,9 +331,9 @@ export declare namespace GetSubscriptionSettingsCommand {
331
331
  responseRules: {
332
332
  version: "1";
333
333
  rules: {
334
+ enabled: boolean;
334
335
  name: string;
335
336
  operator: "AND" | "OR";
336
- enabled: boolean;
337
337
  conditions: {
338
338
  value: string;
339
339
  headerName: string;
@@ -97,9 +97,9 @@ export declare namespace UpdateSubscriptionSettingsCommand {
97
97
  subscriptionTemplate?: string | undefined;
98
98
  }>>;
99
99
  }, "strip", z.ZodTypeAny, {
100
+ enabled: boolean;
100
101
  name: string;
101
102
  operator: "AND" | "OR";
102
- enabled: boolean;
103
103
  conditions: {
104
104
  value: string;
105
105
  headerName: string;
@@ -116,9 +116,9 @@ export declare namespace UpdateSubscriptionSettingsCommand {
116
116
  subscriptionTemplate?: string | undefined;
117
117
  } | undefined;
118
118
  }, {
119
+ enabled: boolean;
119
120
  name: string;
120
121
  operator: "AND" | "OR";
121
- enabled: boolean;
122
122
  conditions: {
123
123
  value: string;
124
124
  headerName: string;
@@ -138,9 +138,9 @@ export declare namespace UpdateSubscriptionSettingsCommand {
138
138
  }, "strip", z.ZodTypeAny, {
139
139
  version: "1";
140
140
  rules: {
141
+ enabled: boolean;
141
142
  name: string;
142
143
  operator: "AND" | "OR";
143
- enabled: boolean;
144
144
  conditions: {
145
145
  value: string;
146
146
  headerName: string;
@@ -160,9 +160,9 @@ export declare namespace UpdateSubscriptionSettingsCommand {
160
160
  }, {
161
161
  version: "1";
162
162
  rules: {
163
+ enabled: boolean;
163
164
  name: string;
164
165
  operator: "AND" | "OR";
165
- enabled: boolean;
166
166
  conditions: {
167
167
  value: string;
168
168
  headerName: string;
@@ -199,9 +199,9 @@ export declare namespace UpdateSubscriptionSettingsCommand {
199
199
  responseRules?: {
200
200
  version: "1";
201
201
  rules: {
202
+ enabled: boolean;
202
203
  name: string;
203
204
  operator: "AND" | "OR";
204
- enabled: boolean;
205
205
  conditions: {
206
206
  value: string;
207
207
  headerName: string;
@@ -238,9 +238,9 @@ export declare namespace UpdateSubscriptionSettingsCommand {
238
238
  responseRules?: {
239
239
  version: "1";
240
240
  rules: {
241
+ enabled: boolean;
241
242
  name: string;
242
243
  operator: "AND" | "OR";
243
- enabled: boolean;
244
244
  conditions: {
245
245
  value: string;
246
246
  headerName: string;
@@ -355,9 +355,9 @@ export declare namespace UpdateSubscriptionSettingsCommand {
355
355
  subscriptionTemplate?: string | undefined;
356
356
  }>>;
357
357
  }, "strip", z.ZodTypeAny, {
358
+ enabled: boolean;
358
359
  name: string;
359
360
  operator: "AND" | "OR";
360
- enabled: boolean;
361
361
  conditions: {
362
362
  value: string;
363
363
  headerName: string;
@@ -374,9 +374,9 @@ export declare namespace UpdateSubscriptionSettingsCommand {
374
374
  subscriptionTemplate?: string | undefined;
375
375
  } | undefined;
376
376
  }, {
377
+ enabled: boolean;
377
378
  name: string;
378
379
  operator: "AND" | "OR";
379
- enabled: boolean;
380
380
  conditions: {
381
381
  value: string;
382
382
  headerName: string;
@@ -396,9 +396,9 @@ export declare namespace UpdateSubscriptionSettingsCommand {
396
396
  }, "strip", z.ZodTypeAny, {
397
397
  version: "1";
398
398
  rules: {
399
+ enabled: boolean;
399
400
  name: string;
400
401
  operator: "AND" | "OR";
401
- enabled: boolean;
402
402
  conditions: {
403
403
  value: string;
404
404
  headerName: string;
@@ -418,9 +418,9 @@ export declare namespace UpdateSubscriptionSettingsCommand {
418
418
  }, {
419
419
  version: "1";
420
420
  rules: {
421
+ enabled: boolean;
421
422
  name: string;
422
423
  operator: "AND" | "OR";
423
- enabled: boolean;
424
424
  conditions: {
425
425
  value: string;
426
426
  headerName: string;
@@ -461,9 +461,9 @@ export declare namespace UpdateSubscriptionSettingsCommand {
461
461
  responseRules: {
462
462
  version: "1";
463
463
  rules: {
464
+ enabled: boolean;
464
465
  name: string;
465
466
  operator: "AND" | "OR";
466
- enabled: boolean;
467
467
  conditions: {
468
468
  value: string;
469
469
  headerName: string;
@@ -502,9 +502,9 @@ export declare namespace UpdateSubscriptionSettingsCommand {
502
502
  responseRules: {
503
503
  version: "1";
504
504
  rules: {
505
+ enabled: boolean;
505
506
  name: string;
506
507
  operator: "AND" | "OR";
507
- enabled: boolean;
508
508
  conditions: {
509
509
  value: string;
510
510
  headerName: string;
@@ -545,9 +545,9 @@ export declare namespace UpdateSubscriptionSettingsCommand {
545
545
  responseRules: {
546
546
  version: "1";
547
547
  rules: {
548
+ enabled: boolean;
548
549
  name: string;
549
550
  operator: "AND" | "OR";
550
- enabled: boolean;
551
551
  conditions: {
552
552
  value: string;
553
553
  headerName: string;
@@ -588,9 +588,9 @@ export declare namespace UpdateSubscriptionSettingsCommand {
588
588
  responseRules: {
589
589
  version: "1";
590
590
  rules: {
591
+ enabled: boolean;
591
592
  name: string;
592
593
  operator: "AND" | "OR";
593
- enabled: boolean;
594
594
  conditions: {
595
595
  value: string;
596
596
  headerName: string;
@@ -82,9 +82,9 @@ export declare namespace TestSrrMatcherCommand {
82
82
  subscriptionTemplate?: string | undefined;
83
83
  }>>;
84
84
  }, "strip", z.ZodTypeAny, {
85
+ enabled: boolean;
85
86
  name: string;
86
87
  operator: "AND" | "OR";
87
- enabled: boolean;
88
88
  conditions: {
89
89
  value: string;
90
90
  headerName: string;
@@ -101,9 +101,9 @@ export declare namespace TestSrrMatcherCommand {
101
101
  subscriptionTemplate?: string | undefined;
102
102
  } | undefined;
103
103
  }, {
104
+ enabled: boolean;
104
105
  name: string;
105
106
  operator: "AND" | "OR";
106
- enabled: boolean;
107
107
  conditions: {
108
108
  value: string;
109
109
  headerName: string;
@@ -123,9 +123,9 @@ export declare namespace TestSrrMatcherCommand {
123
123
  }, "strip", z.ZodTypeAny, {
124
124
  version: "1";
125
125
  rules: {
126
+ enabled: boolean;
126
127
  name: string;
127
128
  operator: "AND" | "OR";
128
- enabled: boolean;
129
129
  conditions: {
130
130
  value: string;
131
131
  headerName: string;
@@ -145,9 +145,9 @@ export declare namespace TestSrrMatcherCommand {
145
145
  }, {
146
146
  version: "1";
147
147
  rules: {
148
+ enabled: boolean;
148
149
  name: string;
149
150
  operator: "AND" | "OR";
150
- enabled: boolean;
151
151
  conditions: {
152
152
  value: string;
153
153
  headerName: string;
@@ -169,9 +169,9 @@ export declare namespace TestSrrMatcherCommand {
169
169
  responseRules: {
170
170
  version: "1";
171
171
  rules: {
172
+ enabled: boolean;
172
173
  name: string;
173
174
  operator: "AND" | "OR";
174
- enabled: boolean;
175
175
  conditions: {
176
176
  value: string;
177
177
  headerName: string;
@@ -193,9 +193,9 @@ export declare namespace TestSrrMatcherCommand {
193
193
  responseRules: {
194
194
  version: "1";
195
195
  rules: {
196
+ enabled: boolean;
196
197
  name: string;
197
198
  operator: "AND" | "OR";
198
- enabled: boolean;
199
199
  conditions: {
200
200
  value: string;
201
201
  headerName: string;
@@ -305,9 +305,9 @@ export declare namespace TestSrrMatcherCommand {
305
305
  subscriptionTemplate?: string | undefined;
306
306
  }>>;
307
307
  }, "strip", z.ZodTypeAny, {
308
+ enabled: boolean;
308
309
  name: string;
309
310
  operator: "AND" | "OR";
310
- enabled: boolean;
311
311
  conditions: {
312
312
  value: string;
313
313
  headerName: string;
@@ -324,9 +324,9 @@ export declare namespace TestSrrMatcherCommand {
324
324
  subscriptionTemplate?: string | undefined;
325
325
  } | undefined;
326
326
  }, {
327
+ enabled: boolean;
327
328
  name: string;
328
329
  operator: "AND" | "OR";
329
- enabled: boolean;
330
330
  conditions: {
331
331
  value: string;
332
332
  headerName: string;
@@ -349,9 +349,9 @@ export declare namespace TestSrrMatcherCommand {
349
349
  responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
350
350
  matched: boolean;
351
351
  matchedRule: {
352
+ enabled: boolean;
352
353
  name: string;
353
354
  operator: "AND" | "OR";
354
- enabled: boolean;
355
355
  conditions: {
356
356
  value: string;
357
357
  headerName: string;
@@ -374,9 +374,9 @@ export declare namespace TestSrrMatcherCommand {
374
374
  responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
375
375
  matched: boolean;
376
376
  matchedRule: {
377
+ enabled: boolean;
377
378
  name: string;
378
379
  operator: "AND" | "OR";
379
- enabled: boolean;
380
380
  conditions: {
381
381
  value: string;
382
382
  headerName: string;
@@ -401,9 +401,9 @@ export declare namespace TestSrrMatcherCommand {
401
401
  responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
402
402
  matched: boolean;
403
403
  matchedRule: {
404
+ enabled: boolean;
404
405
  name: string;
405
406
  operator: "AND" | "OR";
406
- enabled: boolean;
407
407
  conditions: {
408
408
  value: string;
409
409
  headerName: string;
@@ -428,9 +428,9 @@ export declare namespace TestSrrMatcherCommand {
428
428
  responseType: "STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64" | "BROWSER" | "BLOCK" | "STATUS_CODE_404" | "STATUS_CODE_451" | "SOCKET_DROP";
429
429
  matched: boolean;
430
430
  matchedRule: {
431
+ enabled: boolean;
431
432
  name: string;
432
433
  operator: "AND" | "OR";
433
- enabled: boolean;
434
434
  conditions: {
435
435
  value: string;
436
436
  headerName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"passkey-settings.schema.d.ts","sourceRoot":"","sources":["../../../../models/remnawave-settings/passkey-settings.schema.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;EAyBhC,CAAC"}
1
+ {"version":3,"file":"passkey-settings.schema.d.ts","sourceRoot":"","sources":["../../../../models/remnawave-settings/passkey-settings.schema.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;EA2BhC,CAAC"}
@@ -9,15 +9,17 @@ const isURL_1 = __importDefault(require("validator/lib/isURL"));
9
9
  const zod_1 = __importDefault(require("zod"));
10
10
  exports.PasskeySettingsSchema = zod_1.default.object({
11
11
  enabled: zod_1.default.boolean(),
12
- rpId: zod_1.default.nullable(zod_1.default.string().refine((val) => (0, isFQDN_1.default)(val, {
13
- require_tld: true,
14
- }), 'Must me a valid fully qualified domain name (FQDN), e.g. "remnawave.com"')),
15
- origin: zod_1.default.nullable(zod_1.default.string().refine((val) => (0, isURL_1.default)(val, {
16
- protocols: ['http', 'https'],
17
- require_protocol: true,
18
- require_valid_protocol: true,
19
- allow_fragments: false,
20
- allow_query_components: false,
21
- allow_trailing_dot: false,
22
- }), 'Must me a valid URL, e.g. "https://remnawave.com"')),
12
+ rpId: zod_1.default.nullable(zod_1.default.string().refine((val) => val === 'localhost' ||
13
+ (0, isFQDN_1.default)(val, {
14
+ require_tld: true,
15
+ }), 'Must be a valid fully qualified domain name (FQDN), e.g. "remnawave.com" or "localhost"')),
16
+ origin: zod_1.default.nullable(zod_1.default.string().refine((val) => /^http[s]?:\/\/localhost:\d+$/.test(val) ||
17
+ (0, isURL_1.default)(val, {
18
+ protocols: ['http', 'https'],
19
+ require_protocol: true,
20
+ require_valid_protocol: true,
21
+ allow_fragments: false,
22
+ allow_query_components: false,
23
+ allow_trailing_dot: false,
24
+ }), 'Must be a valid URL, e.g. "https://remnawave.com"')),
23
25
  });
@@ -73,9 +73,9 @@ export declare const ResponseRuleSchemaBase: z.ZodObject<{
73
73
  subscriptionTemplate?: string | undefined;
74
74
  }>>;
75
75
  }, "strip", z.ZodTypeAny, {
76
+ enabled: boolean;
76
77
  name: string;
77
78
  operator: "AND" | "OR";
78
- enabled: boolean;
79
79
  conditions: {
80
80
  value: string;
81
81
  headerName: string;
@@ -92,9 +92,9 @@ export declare const ResponseRuleSchemaBase: z.ZodObject<{
92
92
  subscriptionTemplate?: string | undefined;
93
93
  } | undefined;
94
94
  }, {
95
+ enabled: boolean;
95
96
  name: string;
96
97
  operator: "AND" | "OR";
97
- enabled: boolean;
98
98
  conditions: {
99
99
  value: string;
100
100
  headerName: string;
@@ -185,9 +185,9 @@ export declare const ResponseRuleSchema: z.ZodObject<{
185
185
  subscriptionTemplate?: string | undefined;
186
186
  }>>;
187
187
  }, "strip", z.ZodTypeAny, {
188
+ enabled: boolean;
188
189
  name: string;
189
190
  operator: "AND" | "OR";
190
- enabled: boolean;
191
191
  conditions: {
192
192
  value: string;
193
193
  headerName: string;
@@ -204,9 +204,9 @@ export declare const ResponseRuleSchema: z.ZodObject<{
204
204
  subscriptionTemplate?: string | undefined;
205
205
  } | undefined;
206
206
  }, {
207
+ enabled: boolean;
207
208
  name: string;
208
209
  operator: "AND" | "OR";
209
- enabled: boolean;
210
210
  conditions: {
211
211
  value: string;
212
212
  headerName: string;
@@ -77,9 +77,9 @@ export declare const ResponseRulesConfigSchema: z.ZodObject<{
77
77
  subscriptionTemplate?: string | undefined;
78
78
  }>>;
79
79
  }, "strip", z.ZodTypeAny, {
80
+ enabled: boolean;
80
81
  name: string;
81
82
  operator: "AND" | "OR";
82
- enabled: boolean;
83
83
  conditions: {
84
84
  value: string;
85
85
  headerName: string;
@@ -96,9 +96,9 @@ export declare const ResponseRulesConfigSchema: z.ZodObject<{
96
96
  subscriptionTemplate?: string | undefined;
97
97
  } | undefined;
98
98
  }, {
99
+ enabled: boolean;
99
100
  name: string;
100
101
  operator: "AND" | "OR";
101
- enabled: boolean;
102
102
  conditions: {
103
103
  value: string;
104
104
  headerName: string;
@@ -118,9 +118,9 @@ export declare const ResponseRulesConfigSchema: z.ZodObject<{
118
118
  }, "strip", z.ZodTypeAny, {
119
119
  version: "1";
120
120
  rules: {
121
+ enabled: boolean;
121
122
  name: string;
122
123
  operator: "AND" | "OR";
123
- enabled: boolean;
124
124
  conditions: {
125
125
  value: string;
126
126
  headerName: string;
@@ -140,9 +140,9 @@ export declare const ResponseRulesConfigSchema: z.ZodObject<{
140
140
  }, {
141
141
  version: "1";
142
142
  rules: {
143
+ enabled: boolean;
143
144
  name: string;
144
145
  operator: "AND" | "OR";
145
- enabled: boolean;
146
146
  conditions: {
147
147
  value: string;
148
148
  headerName: string;
@@ -93,9 +93,9 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
93
93
  subscriptionTemplate?: string | undefined;
94
94
  }>>;
95
95
  }, "strip", z.ZodTypeAny, {
96
+ enabled: boolean;
96
97
  name: string;
97
98
  operator: "AND" | "OR";
98
- enabled: boolean;
99
99
  conditions: {
100
100
  value: string;
101
101
  headerName: string;
@@ -112,9 +112,9 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
112
112
  subscriptionTemplate?: string | undefined;
113
113
  } | undefined;
114
114
  }, {
115
+ enabled: boolean;
115
116
  name: string;
116
117
  operator: "AND" | "OR";
117
- enabled: boolean;
118
118
  conditions: {
119
119
  value: string;
120
120
  headerName: string;
@@ -134,9 +134,9 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
134
134
  }, "strip", z.ZodTypeAny, {
135
135
  version: "1";
136
136
  rules: {
137
+ enabled: boolean;
137
138
  name: string;
138
139
  operator: "AND" | "OR";
139
- enabled: boolean;
140
140
  conditions: {
141
141
  value: string;
142
142
  headerName: string;
@@ -156,9 +156,9 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
156
156
  }, {
157
157
  version: "1";
158
158
  rules: {
159
+ enabled: boolean;
159
160
  name: string;
160
161
  operator: "AND" | "OR";
161
- enabled: boolean;
162
162
  conditions: {
163
163
  value: string;
164
164
  headerName: string;
@@ -199,9 +199,9 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
199
199
  responseRules: {
200
200
  version: "1";
201
201
  rules: {
202
+ enabled: boolean;
202
203
  name: string;
203
204
  operator: "AND" | "OR";
204
- enabled: boolean;
205
205
  conditions: {
206
206
  value: string;
207
207
  headerName: string;
@@ -240,9 +240,9 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
240
240
  responseRules: {
241
241
  version: "1";
242
242
  rules: {
243
+ enabled: boolean;
243
244
  name: string;
244
245
  operator: "AND" | "OR";
245
- enabled: boolean;
246
246
  conditions: {
247
247
  value: string;
248
248
  headerName: string;
@@ -13,14 +13,21 @@ var GetStatusCommand;
13
13
  response: zod_1.z.object({
14
14
  isLoginAllowed: zod_1.z.boolean(),
15
15
  isRegisterAllowed: zod_1.z.boolean(),
16
- tgAuth: zod_1.z
17
- .object({
18
- botId: zod_1.z.number(),
19
- })
20
- .nullable(),
21
- oauth2: zod_1.z.object({
22
- providers: zod_1.z.record(zod_1.z.nativeEnum(constants_1.OAUTH2_PROVIDERS), zod_1.z.boolean()),
23
- }),
16
+ authentication: zod_1.z.nullable(zod_1.z.object({
17
+ passkey: zod_1.z.object({
18
+ enabled: zod_1.z.boolean(),
19
+ }),
20
+ tgAuth: zod_1.z.object({
21
+ enabled: zod_1.z.boolean(),
22
+ botId: zod_1.z.number().nullable(),
23
+ }),
24
+ oauth2: zod_1.z.object({
25
+ providers: zod_1.z.record(zod_1.z.nativeEnum(constants_1.OAUTH2_PROVIDERS), zod_1.z.boolean()),
26
+ }),
27
+ password: zod_1.z.object({
28
+ enabled: zod_1.z.boolean(),
29
+ }),
30
+ })),
24
31
  branding: zod_1.z.object({
25
32
  title: zod_1.z.nullable(zod_1.z.string()),
26
33
  logoUrl: zod_1.z.nullable(zod_1.z.string()),
@@ -9,15 +9,17 @@ const isURL_1 = __importDefault(require("validator/lib/isURL"));
9
9
  const zod_1 = __importDefault(require("zod"));
10
10
  exports.PasskeySettingsSchema = zod_1.default.object({
11
11
  enabled: zod_1.default.boolean(),
12
- rpId: zod_1.default.nullable(zod_1.default.string().refine((val) => (0, isFQDN_1.default)(val, {
13
- require_tld: true,
14
- }), 'Must me a valid fully qualified domain name (FQDN), e.g. "remnawave.com"')),
15
- origin: zod_1.default.nullable(zod_1.default.string().refine((val) => (0, isURL_1.default)(val, {
16
- protocols: ['http', 'https'],
17
- require_protocol: true,
18
- require_valid_protocol: true,
19
- allow_fragments: false,
20
- allow_query_components: false,
21
- allow_trailing_dot: false,
22
- }), 'Must me a valid URL, e.g. "https://remnawave.com"')),
12
+ rpId: zod_1.default.nullable(zod_1.default.string().refine((val) => val === 'localhost' ||
13
+ (0, isFQDN_1.default)(val, {
14
+ require_tld: true,
15
+ }), 'Must be a valid fully qualified domain name (FQDN), e.g. "remnawave.com" or "localhost"')),
16
+ origin: zod_1.default.nullable(zod_1.default.string().refine((val) => /^http[s]?:\/\/localhost:\d+$/.test(val) ||
17
+ (0, isURL_1.default)(val, {
18
+ protocols: ['http', 'https'],
19
+ require_protocol: true,
20
+ require_valid_protocol: true,
21
+ allow_fragments: false,
22
+ allow_query_components: false,
23
+ allow_trailing_dot: false,
24
+ }), 'Must be a valid URL, e.g. "https://remnawave.com"')),
23
25
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.2.16",
3
+ "version": "2.2.18",
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.",