@remnawave/backend-contract 2.8.17 → 2.8.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.
Files changed (23) hide show
  1. package/build/backend/commands/subscription-settings/get-subscription-settings.command.d.ts +61 -0
  2. package/build/backend/commands/subscription-settings/get-subscription-settings.command.d.ts.map +1 -1
  3. package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts +112 -0
  4. package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts.map +1 -1
  5. package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts +12 -12
  6. package/build/backend/commands/system/testers/test-srr-matcher.command.d.ts +102 -0
  7. package/build/backend/commands/system/testers/test-srr-matcher.command.d.ts.map +1 -1
  8. package/build/backend/models/resolved-proxy-config.schema.d.ts +22 -22
  9. package/build/backend/models/response-rules/index.d.ts +1 -0
  10. package/build/backend/models/response-rules/index.d.ts.map +1 -1
  11. package/build/backend/models/response-rules/index.js +1 -0
  12. package/build/backend/models/response-rules/response-rule-modifications.schema.d.ts +31 -0
  13. package/build/backend/models/response-rules/response-rule-modifications.schema.d.ts.map +1 -1
  14. package/build/backend/models/response-rules/response-rule-modifications.schema.js +14 -1
  15. package/build/backend/models/response-rules/response-rule.schema.d.ts +62 -0
  16. package/build/backend/models/response-rules/response-rule.schema.d.ts.map +1 -1
  17. package/build/backend/models/response-rules/response-rules-config.schema.d.ts +41 -0
  18. package/build/backend/models/response-rules/response-rules-config.schema.d.ts.map +1 -1
  19. package/build/backend/models/subscription-settings.schema.d.ts +51 -0
  20. package/build/backend/models/subscription-settings.schema.d.ts.map +1 -1
  21. package/build/frontend/models/response-rules/index.js +1 -0
  22. package/build/frontend/models/response-rules/response-rule-modifications.schema.js +14 -1
  23. package/package.json +1 -1
@@ -79,6 +79,17 @@ export declare namespace TestSrrMatcherCommand {
79
79
  ignoreHostXrayJsonTemplate: z.ZodOptional<z.ZodBoolean>;
80
80
  ignoreServeJsonAtBaseSubscription: z.ZodOptional<z.ZodBoolean>;
81
81
  additionalExtendedClientsRegex: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
82
+ disableHwidCheck: z.ZodOptional<z.ZodBoolean>;
83
+ encryption: z.ZodOptional<z.ZodObject<{
84
+ method: z.ZodEnum<["age1", "age1pq1"]>;
85
+ key: z.ZodString;
86
+ }, "strip", z.ZodTypeAny, {
87
+ method: "age1" | "age1pq1";
88
+ key: string;
89
+ }, {
90
+ method: "age1" | "age1pq1";
91
+ key: string;
92
+ }>>;
82
93
  }, "strip", z.ZodTypeAny, {
83
94
  headers?: {
84
95
  value: string;
@@ -89,6 +100,11 @@ export declare namespace TestSrrMatcherCommand {
89
100
  ignoreHostXrayJsonTemplate?: boolean | undefined;
90
101
  ignoreServeJsonAtBaseSubscription?: boolean | undefined;
91
102
  additionalExtendedClientsRegex?: string[] | undefined;
103
+ disableHwidCheck?: boolean | undefined;
104
+ encryption?: {
105
+ method: "age1" | "age1pq1";
106
+ key: string;
107
+ } | undefined;
92
108
  }, {
93
109
  headers?: {
94
110
  value: string;
@@ -99,6 +115,11 @@ export declare namespace TestSrrMatcherCommand {
99
115
  ignoreHostXrayJsonTemplate?: boolean | undefined;
100
116
  ignoreServeJsonAtBaseSubscription?: boolean | undefined;
101
117
  additionalExtendedClientsRegex?: string[] | undefined;
118
+ disableHwidCheck?: boolean | undefined;
119
+ encryption?: {
120
+ method: "age1" | "age1pq1";
121
+ key: string;
122
+ } | undefined;
102
123
  }>>;
103
124
  }, "strip", z.ZodTypeAny, {
104
125
  enabled: boolean;
@@ -122,6 +143,11 @@ export declare namespace TestSrrMatcherCommand {
122
143
  ignoreHostXrayJsonTemplate?: boolean | undefined;
123
144
  ignoreServeJsonAtBaseSubscription?: boolean | undefined;
124
145
  additionalExtendedClientsRegex?: string[] | undefined;
146
+ disableHwidCheck?: boolean | undefined;
147
+ encryption?: {
148
+ method: "age1" | "age1pq1";
149
+ key: string;
150
+ } | undefined;
125
151
  } | undefined;
126
152
  }, {
127
153
  enabled: boolean;
@@ -145,6 +171,11 @@ export declare namespace TestSrrMatcherCommand {
145
171
  ignoreHostXrayJsonTemplate?: boolean | undefined;
146
172
  ignoreServeJsonAtBaseSubscription?: boolean | undefined;
147
173
  additionalExtendedClientsRegex?: string[] | undefined;
174
+ disableHwidCheck?: boolean | undefined;
175
+ encryption?: {
176
+ method: "age1" | "age1pq1";
177
+ key: string;
178
+ } | undefined;
148
179
  } | undefined;
149
180
  }>, "many">;
150
181
  }, "strip", z.ZodTypeAny, {
@@ -171,6 +202,11 @@ export declare namespace TestSrrMatcherCommand {
171
202
  ignoreHostXrayJsonTemplate?: boolean | undefined;
172
203
  ignoreServeJsonAtBaseSubscription?: boolean | undefined;
173
204
  additionalExtendedClientsRegex?: string[] | undefined;
205
+ disableHwidCheck?: boolean | undefined;
206
+ encryption?: {
207
+ method: "age1" | "age1pq1";
208
+ key: string;
209
+ } | undefined;
174
210
  } | undefined;
175
211
  }[];
176
212
  settings?: {
@@ -200,6 +236,11 @@ export declare namespace TestSrrMatcherCommand {
200
236
  ignoreHostXrayJsonTemplate?: boolean | undefined;
201
237
  ignoreServeJsonAtBaseSubscription?: boolean | undefined;
202
238
  additionalExtendedClientsRegex?: string[] | undefined;
239
+ disableHwidCheck?: boolean | undefined;
240
+ encryption?: {
241
+ method: "age1" | "age1pq1";
242
+ key: string;
243
+ } | undefined;
203
244
  } | undefined;
204
245
  }[];
205
246
  settings?: {
@@ -231,6 +272,11 @@ export declare namespace TestSrrMatcherCommand {
231
272
  ignoreHostXrayJsonTemplate?: boolean | undefined;
232
273
  ignoreServeJsonAtBaseSubscription?: boolean | undefined;
233
274
  additionalExtendedClientsRegex?: string[] | undefined;
275
+ disableHwidCheck?: boolean | undefined;
276
+ encryption?: {
277
+ method: "age1" | "age1pq1";
278
+ key: string;
279
+ } | undefined;
234
280
  } | undefined;
235
281
  }[];
236
282
  settings?: {
@@ -262,6 +308,11 @@ export declare namespace TestSrrMatcherCommand {
262
308
  ignoreHostXrayJsonTemplate?: boolean | undefined;
263
309
  ignoreServeJsonAtBaseSubscription?: boolean | undefined;
264
310
  additionalExtendedClientsRegex?: string[] | undefined;
311
+ disableHwidCheck?: boolean | undefined;
312
+ encryption?: {
313
+ method: "age1" | "age1pq1";
314
+ key: string;
315
+ } | undefined;
265
316
  } | undefined;
266
317
  }[];
267
318
  settings?: {
@@ -350,6 +401,17 @@ export declare namespace TestSrrMatcherCommand {
350
401
  ignoreHostXrayJsonTemplate: z.ZodOptional<z.ZodBoolean>;
351
402
  ignoreServeJsonAtBaseSubscription: z.ZodOptional<z.ZodBoolean>;
352
403
  additionalExtendedClientsRegex: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
404
+ disableHwidCheck: z.ZodOptional<z.ZodBoolean>;
405
+ encryption: z.ZodOptional<z.ZodObject<{
406
+ method: z.ZodEnum<["age1", "age1pq1"]>;
407
+ key: z.ZodString;
408
+ }, "strip", z.ZodTypeAny, {
409
+ method: "age1" | "age1pq1";
410
+ key: string;
411
+ }, {
412
+ method: "age1" | "age1pq1";
413
+ key: string;
414
+ }>>;
353
415
  }, "strip", z.ZodTypeAny, {
354
416
  headers?: {
355
417
  value: string;
@@ -360,6 +422,11 @@ export declare namespace TestSrrMatcherCommand {
360
422
  ignoreHostXrayJsonTemplate?: boolean | undefined;
361
423
  ignoreServeJsonAtBaseSubscription?: boolean | undefined;
362
424
  additionalExtendedClientsRegex?: string[] | undefined;
425
+ disableHwidCheck?: boolean | undefined;
426
+ encryption?: {
427
+ method: "age1" | "age1pq1";
428
+ key: string;
429
+ } | undefined;
363
430
  }, {
364
431
  headers?: {
365
432
  value: string;
@@ -370,6 +437,11 @@ export declare namespace TestSrrMatcherCommand {
370
437
  ignoreHostXrayJsonTemplate?: boolean | undefined;
371
438
  ignoreServeJsonAtBaseSubscription?: boolean | undefined;
372
439
  additionalExtendedClientsRegex?: string[] | undefined;
440
+ disableHwidCheck?: boolean | undefined;
441
+ encryption?: {
442
+ method: "age1" | "age1pq1";
443
+ key: string;
444
+ } | undefined;
373
445
  }>>;
374
446
  }, "strip", z.ZodTypeAny, {
375
447
  enabled: boolean;
@@ -393,6 +465,11 @@ export declare namespace TestSrrMatcherCommand {
393
465
  ignoreHostXrayJsonTemplate?: boolean | undefined;
394
466
  ignoreServeJsonAtBaseSubscription?: boolean | undefined;
395
467
  additionalExtendedClientsRegex?: string[] | undefined;
468
+ disableHwidCheck?: boolean | undefined;
469
+ encryption?: {
470
+ method: "age1" | "age1pq1";
471
+ key: string;
472
+ } | undefined;
396
473
  } | undefined;
397
474
  }, {
398
475
  enabled: boolean;
@@ -416,6 +493,11 @@ export declare namespace TestSrrMatcherCommand {
416
493
  ignoreHostXrayJsonTemplate?: boolean | undefined;
417
494
  ignoreServeJsonAtBaseSubscription?: boolean | undefined;
418
495
  additionalExtendedClientsRegex?: string[] | undefined;
496
+ disableHwidCheck?: boolean | undefined;
497
+ encryption?: {
498
+ method: "age1" | "age1pq1";
499
+ key: string;
500
+ } | undefined;
419
501
  } | undefined;
420
502
  }>>;
421
503
  inputHeaders: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -445,6 +527,11 @@ export declare namespace TestSrrMatcherCommand {
445
527
  ignoreHostXrayJsonTemplate?: boolean | undefined;
446
528
  ignoreServeJsonAtBaseSubscription?: boolean | undefined;
447
529
  additionalExtendedClientsRegex?: string[] | undefined;
530
+ disableHwidCheck?: boolean | undefined;
531
+ encryption?: {
532
+ method: "age1" | "age1pq1";
533
+ key: string;
534
+ } | undefined;
448
535
  } | undefined;
449
536
  } | null;
450
537
  inputHeaders: Record<string, string>;
@@ -474,6 +561,11 @@ export declare namespace TestSrrMatcherCommand {
474
561
  ignoreHostXrayJsonTemplate?: boolean | undefined;
475
562
  ignoreServeJsonAtBaseSubscription?: boolean | undefined;
476
563
  additionalExtendedClientsRegex?: string[] | undefined;
564
+ disableHwidCheck?: boolean | undefined;
565
+ encryption?: {
566
+ method: "age1" | "age1pq1";
567
+ key: string;
568
+ } | undefined;
477
569
  } | undefined;
478
570
  } | null;
479
571
  inputHeaders: Record<string, string>;
@@ -505,6 +597,11 @@ export declare namespace TestSrrMatcherCommand {
505
597
  ignoreHostXrayJsonTemplate?: boolean | undefined;
506
598
  ignoreServeJsonAtBaseSubscription?: boolean | undefined;
507
599
  additionalExtendedClientsRegex?: string[] | undefined;
600
+ disableHwidCheck?: boolean | undefined;
601
+ encryption?: {
602
+ method: "age1" | "age1pq1";
603
+ key: string;
604
+ } | undefined;
508
605
  } | undefined;
509
606
  } | null;
510
607
  inputHeaders: Record<string, string>;
@@ -536,6 +633,11 @@ export declare namespace TestSrrMatcherCommand {
536
633
  ignoreHostXrayJsonTemplate?: boolean | undefined;
537
634
  ignoreServeJsonAtBaseSubscription?: boolean | undefined;
538
635
  additionalExtendedClientsRegex?: string[] | undefined;
636
+ disableHwidCheck?: boolean | undefined;
637
+ encryption?: {
638
+ method: "age1" | "age1pq1";
639
+ key: string;
640
+ } | undefined;
539
641
  } | undefined;
540
642
  } | null;
541
643
  inputHeaders: Record<string, string>;
@@ -1 +1 @@
1
- {"version":3,"file":"test-srr-matcher.command.d.ts","sourceRoot":"","sources":["../../../../../commands/system/testers/test-srr-matcher.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,mCAAsC,CAAC;IAChD,MAAM,OAAO,mCAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IACK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"test-srr-matcher.command.d.ts","sourceRoot":"","sources":["../../../../../commands/system/testers/test-srr-matcher.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,mCAAsC,CAAC;IAChD,MAAM,OAAO,mCAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IACK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -51,14 +51,14 @@ export declare const TcpTransportOptionsSchema: z.ZodObject<{
51
51
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
52
52
  }, "strip", z.ZodTypeAny, {
53
53
  path?: string[] | undefined;
54
+ method?: string | undefined;
54
55
  headers?: Record<string, unknown> | undefined;
55
56
  version?: string | undefined;
56
- method?: string | undefined;
57
57
  }, {
58
58
  path?: string[] | undefined;
59
+ method?: string | undefined;
59
60
  headers?: Record<string, unknown> | undefined;
60
61
  version?: string | undefined;
61
- method?: string | undefined;
62
62
  }>>;
63
63
  response: z.ZodOptional<z.ZodObject<{
64
64
  version: z.ZodOptional<z.ZodString>;
@@ -86,9 +86,9 @@ export declare const TcpTransportOptionsSchema: z.ZodObject<{
86
86
  } | undefined;
87
87
  request?: {
88
88
  path?: string[] | undefined;
89
+ method?: string | undefined;
89
90
  headers?: Record<string, unknown> | undefined;
90
91
  version?: string | undefined;
91
- method?: string | undefined;
92
92
  } | undefined;
93
93
  }, {
94
94
  type: "http";
@@ -100,9 +100,9 @@ export declare const TcpTransportOptionsSchema: z.ZodObject<{
100
100
  } | undefined;
101
101
  request?: {
102
102
  path?: string[] | undefined;
103
+ method?: string | undefined;
103
104
  headers?: Record<string, unknown> | undefined;
104
105
  version?: string | undefined;
105
- method?: string | undefined;
106
106
  } | undefined;
107
107
  }>]>>;
108
108
  }, "strip", z.ZodTypeAny, {
@@ -118,9 +118,9 @@ export declare const TcpTransportOptionsSchema: z.ZodObject<{
118
118
  } | undefined;
119
119
  request?: {
120
120
  path?: string[] | undefined;
121
+ method?: string | undefined;
121
122
  headers?: Record<string, unknown> | undefined;
122
123
  version?: string | undefined;
123
- method?: string | undefined;
124
124
  } | undefined;
125
125
  } | null;
126
126
  }, {
@@ -136,9 +136,9 @@ export declare const TcpTransportOptionsSchema: z.ZodObject<{
136
136
  } | undefined;
137
137
  request?: {
138
138
  path?: string[] | undefined;
139
+ method?: string | undefined;
139
140
  headers?: Record<string, unknown> | undefined;
140
141
  version?: string | undefined;
141
- method?: string | undefined;
142
142
  } | undefined;
143
143
  } | null;
144
144
  }>;
@@ -400,14 +400,14 @@ export declare const TransportVariantSchema: z.ZodDiscriminatedUnion<"transport"
400
400
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
401
401
  }, "strip", z.ZodTypeAny, {
402
402
  path?: string[] | undefined;
403
+ method?: string | undefined;
403
404
  headers?: Record<string, unknown> | undefined;
404
405
  version?: string | undefined;
405
- method?: string | undefined;
406
406
  }, {
407
407
  path?: string[] | undefined;
408
+ method?: string | undefined;
408
409
  headers?: Record<string, unknown> | undefined;
409
410
  version?: string | undefined;
410
- method?: string | undefined;
411
411
  }>>;
412
412
  response: z.ZodOptional<z.ZodObject<{
413
413
  version: z.ZodOptional<z.ZodString>;
@@ -435,9 +435,9 @@ export declare const TransportVariantSchema: z.ZodDiscriminatedUnion<"transport"
435
435
  } | undefined;
436
436
  request?: {
437
437
  path?: string[] | undefined;
438
+ method?: string | undefined;
438
439
  headers?: Record<string, unknown> | undefined;
439
440
  version?: string | undefined;
440
- method?: string | undefined;
441
441
  } | undefined;
442
442
  }, {
443
443
  type: "http";
@@ -449,9 +449,9 @@ export declare const TransportVariantSchema: z.ZodDiscriminatedUnion<"transport"
449
449
  } | undefined;
450
450
  request?: {
451
451
  path?: string[] | undefined;
452
+ method?: string | undefined;
452
453
  headers?: Record<string, unknown> | undefined;
453
454
  version?: string | undefined;
454
- method?: string | undefined;
455
455
  } | undefined;
456
456
  }>]>>;
457
457
  }, "strip", z.ZodTypeAny, {
@@ -467,9 +467,9 @@ export declare const TransportVariantSchema: z.ZodDiscriminatedUnion<"transport"
467
467
  } | undefined;
468
468
  request?: {
469
469
  path?: string[] | undefined;
470
+ method?: string | undefined;
470
471
  headers?: Record<string, unknown> | undefined;
471
472
  version?: string | undefined;
472
- method?: string | undefined;
473
473
  } | undefined;
474
474
  } | null;
475
475
  }, {
@@ -485,9 +485,9 @@ export declare const TransportVariantSchema: z.ZodDiscriminatedUnion<"transport"
485
485
  } | undefined;
486
486
  request?: {
487
487
  path?: string[] | undefined;
488
+ method?: string | undefined;
488
489
  headers?: Record<string, unknown> | undefined;
489
490
  version?: string | undefined;
490
- method?: string | undefined;
491
491
  } | undefined;
492
492
  } | null;
493
493
  }>;
@@ -506,9 +506,9 @@ export declare const TransportVariantSchema: z.ZodDiscriminatedUnion<"transport"
506
506
  } | undefined;
507
507
  request?: {
508
508
  path?: string[] | undefined;
509
+ method?: string | undefined;
509
510
  headers?: Record<string, unknown> | undefined;
510
511
  version?: string | undefined;
511
- method?: string | undefined;
512
512
  } | undefined;
513
513
  } | null;
514
514
  };
@@ -527,9 +527,9 @@ export declare const TransportVariantSchema: z.ZodDiscriminatedUnion<"transport"
527
527
  } | undefined;
528
528
  request?: {
529
529
  path?: string[] | undefined;
530
+ method?: string | undefined;
530
531
  headers?: Record<string, unknown> | undefined;
531
532
  version?: string | undefined;
532
- method?: string | undefined;
533
533
  } | undefined;
534
534
  } | null;
535
535
  };
@@ -927,14 +927,14 @@ export declare const ResolvedProxyConfigSchema: z.ZodObject<{
927
927
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
928
928
  }, "strip", z.ZodTypeAny, {
929
929
  path?: string[] | undefined;
930
+ method?: string | undefined;
930
931
  headers?: Record<string, unknown> | undefined;
931
932
  version?: string | undefined;
932
- method?: string | undefined;
933
933
  }, {
934
934
  path?: string[] | undefined;
935
+ method?: string | undefined;
935
936
  headers?: Record<string, unknown> | undefined;
936
937
  version?: string | undefined;
937
- method?: string | undefined;
938
938
  }>>;
939
939
  response: z.ZodOptional<z.ZodObject<{
940
940
  version: z.ZodOptional<z.ZodString>;
@@ -962,9 +962,9 @@ export declare const ResolvedProxyConfigSchema: z.ZodObject<{
962
962
  } | undefined;
963
963
  request?: {
964
964
  path?: string[] | undefined;
965
+ method?: string | undefined;
965
966
  headers?: Record<string, unknown> | undefined;
966
967
  version?: string | undefined;
967
- method?: string | undefined;
968
968
  } | undefined;
969
969
  }, {
970
970
  type: "http";
@@ -976,9 +976,9 @@ export declare const ResolvedProxyConfigSchema: z.ZodObject<{
976
976
  } | undefined;
977
977
  request?: {
978
978
  path?: string[] | undefined;
979
+ method?: string | undefined;
979
980
  headers?: Record<string, unknown> | undefined;
980
981
  version?: string | undefined;
981
- method?: string | undefined;
982
982
  } | undefined;
983
983
  }>]>>;
984
984
  }, "strip", z.ZodTypeAny, {
@@ -994,9 +994,9 @@ export declare const ResolvedProxyConfigSchema: z.ZodObject<{
994
994
  } | undefined;
995
995
  request?: {
996
996
  path?: string[] | undefined;
997
+ method?: string | undefined;
997
998
  headers?: Record<string, unknown> | undefined;
998
999
  version?: string | undefined;
999
- method?: string | undefined;
1000
1000
  } | undefined;
1001
1001
  } | null;
1002
1002
  }, {
@@ -1012,9 +1012,9 @@ export declare const ResolvedProxyConfigSchema: z.ZodObject<{
1012
1012
  } | undefined;
1013
1013
  request?: {
1014
1014
  path?: string[] | undefined;
1015
+ method?: string | undefined;
1015
1016
  headers?: Record<string, unknown> | undefined;
1016
1017
  version?: string | undefined;
1017
- method?: string | undefined;
1018
1018
  } | undefined;
1019
1019
  } | null;
1020
1020
  }>, z.ZodObject<{
@@ -1273,9 +1273,9 @@ export declare const ResolvedProxyConfigSchema: z.ZodObject<{
1273
1273
  } | undefined;
1274
1274
  request?: {
1275
1275
  path?: string[] | undefined;
1276
+ method?: string | undefined;
1276
1277
  headers?: Record<string, unknown> | undefined;
1277
1278
  version?: string | undefined;
1278
- method?: string | undefined;
1279
1279
  } | undefined;
1280
1280
  } | null;
1281
1281
  } | {
@@ -1381,9 +1381,9 @@ export declare const ResolvedProxyConfigSchema: z.ZodObject<{
1381
1381
  } | undefined;
1382
1382
  request?: {
1383
1383
  path?: string[] | undefined;
1384
+ method?: string | undefined;
1384
1385
  headers?: Record<string, unknown> | undefined;
1385
1386
  version?: string | undefined;
1386
- method?: string | undefined;
1387
1387
  } | undefined;
1388
1388
  } | null;
1389
1389
  } | {
@@ -1,4 +1,5 @@
1
1
  export * from './response-rule-condition.schema';
2
+ export * from './response-rule-modifications.schema';
2
3
  export * from './response-rule.schema';
3
4
  export * from './response-rules-config.schema';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../models/response-rules/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../models/response-rules/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC"}
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./response-rule-condition.schema"), exports);
18
+ __exportStar(require("./response-rule-modifications.schema"), exports);
18
19
  __exportStar(require("./response-rule.schema"), exports);
19
20
  __exportStar(require("./response-rules-config.schema"), exports);
@@ -1,4 +1,14 @@
1
1
  import z from 'zod';
2
+ export declare const ResponseRuleEncryptionSchema: z.ZodObject<{
3
+ method: z.ZodEnum<["age1", "age1pq1"]>;
4
+ key: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ method: "age1" | "age1pq1";
7
+ key: string;
8
+ }, {
9
+ method: "age1" | "age1pq1";
10
+ key: string;
11
+ }>;
2
12
  export declare const ResponseRuleModificationsSchema: z.ZodOptional<z.ZodObject<{
3
13
  headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
4
14
  key: z.ZodString;
@@ -15,6 +25,17 @@ export declare const ResponseRuleModificationsSchema: z.ZodOptional<z.ZodObject<
15
25
  ignoreHostXrayJsonTemplate: z.ZodOptional<z.ZodBoolean>;
16
26
  ignoreServeJsonAtBaseSubscription: z.ZodOptional<z.ZodBoolean>;
17
27
  additionalExtendedClientsRegex: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
28
+ disableHwidCheck: z.ZodOptional<z.ZodBoolean>;
29
+ encryption: z.ZodOptional<z.ZodObject<{
30
+ method: z.ZodEnum<["age1", "age1pq1"]>;
31
+ key: z.ZodString;
32
+ }, "strip", z.ZodTypeAny, {
33
+ method: "age1" | "age1pq1";
34
+ key: string;
35
+ }, {
36
+ method: "age1" | "age1pq1";
37
+ key: string;
38
+ }>>;
18
39
  }, "strip", z.ZodTypeAny, {
19
40
  headers?: {
20
41
  value: string;
@@ -25,6 +46,11 @@ export declare const ResponseRuleModificationsSchema: z.ZodOptional<z.ZodObject<
25
46
  ignoreHostXrayJsonTemplate?: boolean | undefined;
26
47
  ignoreServeJsonAtBaseSubscription?: boolean | undefined;
27
48
  additionalExtendedClientsRegex?: string[] | undefined;
49
+ disableHwidCheck?: boolean | undefined;
50
+ encryption?: {
51
+ method: "age1" | "age1pq1";
52
+ key: string;
53
+ } | undefined;
28
54
  }, {
29
55
  headers?: {
30
56
  value: string;
@@ -35,5 +61,10 @@ export declare const ResponseRuleModificationsSchema: z.ZodOptional<z.ZodObject<
35
61
  ignoreHostXrayJsonTemplate?: boolean | undefined;
36
62
  ignoreServeJsonAtBaseSubscription?: boolean | undefined;
37
63
  additionalExtendedClientsRegex?: string[] | undefined;
64
+ disableHwidCheck?: boolean | undefined;
65
+ encryption?: {
66
+ method: "age1" | "age1pq1";
67
+ key: string;
68
+ } | undefined;
38
69
  }>>;
39
70
  //# sourceMappingURL=response-rule-modifications.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"response-rule-modifications.schema.d.ts","sourceRoot":"","sources":["../../../../models/response-rules/response-rule-modifications.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6HvC,CAAC"}
1
+ {"version":3,"file":"response-rule-modifications.schema.d.ts","sourceRoot":"","sources":["../../../../models/response-rules/response-rule-modifications.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,4BAA4B;;;;;;;;;EAGvC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4IvC,CAAC"}
@@ -3,8 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ResponseRuleModificationsSchema = void 0;
6
+ exports.ResponseRuleModificationsSchema = exports.ResponseRuleEncryptionSchema = void 0;
7
7
  const zod_1 = __importDefault(require("zod"));
8
+ exports.ResponseRuleEncryptionSchema = zod_1.default.object({
9
+ method: zod_1.default.enum(['age1', 'age1pq1']),
10
+ key: zod_1.default.string(),
11
+ });
8
12
  exports.ResponseRuleModificationsSchema = zod_1.default
9
13
  .object({
10
14
  headers: zod_1.default
@@ -83,6 +87,15 @@ exports.ResponseRuleModificationsSchema = zod_1.default
83
87
  '- `^INCY/`\n\n' +
84
88
  '**Example:** `["^MyClient/", "^CustomApp\\\\/v2"]`',
85
89
  })),
90
+ disableHwidCheck: zod_1.default
91
+ .boolean()
92
+ .optional()
93
+ .describe(JSON.stringify({
94
+ markdownDescription: 'If you set this flag to **true**, the HWID check will be disabled. **This modification have higher priority than settings from Subscription Settings.**',
95
+ })),
96
+ encryption: exports.ResponseRuleEncryptionSchema.optional().describe(JSON.stringify({
97
+ markdownDescription: 'Encrypt response body with given parameters. Generate keypairs with Rescue CLI: `docker exec -it remnawave cli`, select "Generate keypairs".',
98
+ })),
86
99
  })
87
100
  .optional()
88
101
  .describe(JSON.stringify({