@remnawave/backend-contract 2.6.1 → 2.6.2

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 +36 -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 +64 -0
  4. package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts.map +1 -1
  5. package/build/backend/commands/system/testers/test-srr-matcher.command.d.ts +37 -0
  6. package/build/backend/commands/system/testers/test-srr-matcher.command.d.ts.map +1 -1
  7. package/build/backend/models/response-rules/response-rule-modifications.schema.d.ts +3 -0
  8. package/build/backend/models/response-rules/response-rule-modifications.schema.d.ts.map +1 -1
  9. package/build/backend/models/response-rules/response-rule-modifications.schema.js +7 -0
  10. package/build/backend/models/response-rules/response-rule-settings.schema.d.ts +9 -0
  11. package/build/backend/models/response-rules/response-rule-settings.schema.d.ts.map +1 -0
  12. package/build/backend/models/response-rules/response-rule-settings.schema.js +20 -0
  13. package/build/backend/models/response-rules/response-rule.schema.d.ts +10 -0
  14. package/build/backend/models/response-rules/response-rule.schema.d.ts.map +1 -1
  15. package/build/backend/models/response-rules/response-rules-config.schema.d.ts +20 -0
  16. package/build/backend/models/response-rules/response-rules-config.schema.d.ts.map +1 -1
  17. package/build/backend/models/response-rules/response-rules-config.schema.js +2 -0
  18. package/build/backend/models/subscription-settings.schema.d.ts +28 -0
  19. package/build/backend/models/subscription-settings.schema.d.ts.map +1 -1
  20. package/build/frontend/models/response-rules/response-rule-modifications.schema.js +7 -0
  21. package/build/frontend/models/response-rules/response-rule-settings.schema.js +20 -0
  22. package/build/frontend/models/response-rules/response-rules-config.schema.js +2 -0
  23. package/package.json +1 -1
@@ -42,6 +42,13 @@ export declare namespace GetSubscriptionSettingsCommand {
42
42
  version: z.ZodNativeEnum<{
43
43
  readonly 1: "1";
44
44
  }>;
45
+ settings: z.ZodOptional<z.ZodObject<{
46
+ disableSubscriptionAccessByPath: z.ZodOptional<z.ZodBoolean>;
47
+ }, "strip", z.ZodTypeAny, {
48
+ disableSubscriptionAccessByPath?: boolean | undefined;
49
+ }, {
50
+ disableSubscriptionAccessByPath?: boolean | undefined;
51
+ }>>;
45
52
  rules: z.ZodArray<z.ZodObject<{
46
53
  name: z.ZodString;
47
54
  description: z.ZodOptional<z.ZodString>;
@@ -101,6 +108,7 @@ export declare namespace GetSubscriptionSettingsCommand {
101
108
  value: string;
102
109
  key: string;
103
110
  }>, "many">>;
111
+ applyHeadersToEnd: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
104
112
  subscriptionTemplate: z.ZodOptional<z.ZodString>;
105
113
  ignoreHostXrayJsonTemplate: z.ZodOptional<z.ZodBoolean>;
106
114
  }, "strip", z.ZodTypeAny, {
@@ -108,6 +116,7 @@ export declare namespace GetSubscriptionSettingsCommand {
108
116
  value: string;
109
117
  key: string;
110
118
  }[] | undefined;
119
+ applyHeadersToEnd?: boolean | undefined;
111
120
  subscriptionTemplate?: string | undefined;
112
121
  ignoreHostXrayJsonTemplate?: boolean | undefined;
113
122
  }, {
@@ -115,6 +124,7 @@ export declare namespace GetSubscriptionSettingsCommand {
115
124
  value: string;
116
125
  key: string;
117
126
  }[] | undefined;
127
+ applyHeadersToEnd?: boolean | undefined;
118
128
  subscriptionTemplate?: string | undefined;
119
129
  ignoreHostXrayJsonTemplate?: boolean | undefined;
120
130
  }>>;
@@ -135,6 +145,7 @@ export declare namespace GetSubscriptionSettingsCommand {
135
145
  value: string;
136
146
  key: string;
137
147
  }[] | undefined;
148
+ applyHeadersToEnd?: boolean | undefined;
138
149
  subscriptionTemplate?: string | undefined;
139
150
  ignoreHostXrayJsonTemplate?: boolean | undefined;
140
151
  } | undefined;
@@ -155,6 +166,7 @@ export declare namespace GetSubscriptionSettingsCommand {
155
166
  value: string;
156
167
  key: string;
157
168
  }[] | undefined;
169
+ applyHeadersToEnd?: boolean | undefined;
158
170
  subscriptionTemplate?: string | undefined;
159
171
  ignoreHostXrayJsonTemplate?: boolean | undefined;
160
172
  } | undefined;
@@ -178,10 +190,14 @@ export declare namespace GetSubscriptionSettingsCommand {
178
190
  value: string;
179
191
  key: string;
180
192
  }[] | undefined;
193
+ applyHeadersToEnd?: boolean | undefined;
181
194
  subscriptionTemplate?: string | undefined;
182
195
  ignoreHostXrayJsonTemplate?: boolean | undefined;
183
196
  } | undefined;
184
197
  }[];
198
+ settings?: {
199
+ disableSubscriptionAccessByPath?: boolean | undefined;
200
+ } | undefined;
185
201
  }, {
186
202
  version: "1";
187
203
  rules: {
@@ -201,10 +217,14 @@ export declare namespace GetSubscriptionSettingsCommand {
201
217
  value: string;
202
218
  key: string;
203
219
  }[] | undefined;
220
+ applyHeadersToEnd?: boolean | undefined;
204
221
  subscriptionTemplate?: string | undefined;
205
222
  ignoreHostXrayJsonTemplate?: boolean | undefined;
206
223
  } | undefined;
207
224
  }[];
225
+ settings?: {
226
+ disableSubscriptionAccessByPath?: boolean | undefined;
227
+ } | undefined;
208
228
  }>>;
209
229
  hwidSettings: z.ZodNullable<z.ZodObject<{
210
230
  enabled: z.ZodBoolean;
@@ -262,10 +282,14 @@ export declare namespace GetSubscriptionSettingsCommand {
262
282
  value: string;
263
283
  key: string;
264
284
  }[] | undefined;
285
+ applyHeadersToEnd?: boolean | undefined;
265
286
  subscriptionTemplate?: string | undefined;
266
287
  ignoreHostXrayJsonTemplate?: boolean | undefined;
267
288
  } | undefined;
268
289
  }[];
290
+ settings?: {
291
+ disableSubscriptionAccessByPath?: boolean | undefined;
292
+ } | undefined;
269
293
  } | null;
270
294
  hwidSettings: {
271
295
  enabled: boolean;
@@ -313,10 +337,14 @@ export declare namespace GetSubscriptionSettingsCommand {
313
337
  value: string;
314
338
  key: string;
315
339
  }[] | undefined;
340
+ applyHeadersToEnd?: boolean | undefined;
316
341
  subscriptionTemplate?: string | undefined;
317
342
  ignoreHostXrayJsonTemplate?: boolean | undefined;
318
343
  } | undefined;
319
344
  }[];
345
+ settings?: {
346
+ disableSubscriptionAccessByPath?: boolean | undefined;
347
+ } | undefined;
320
348
  } | null;
321
349
  hwidSettings: {
322
350
  enabled: boolean;
@@ -366,10 +394,14 @@ export declare namespace GetSubscriptionSettingsCommand {
366
394
  value: string;
367
395
  key: string;
368
396
  }[] | undefined;
397
+ applyHeadersToEnd?: boolean | undefined;
369
398
  subscriptionTemplate?: string | undefined;
370
399
  ignoreHostXrayJsonTemplate?: boolean | undefined;
371
400
  } | undefined;
372
401
  }[];
402
+ settings?: {
403
+ disableSubscriptionAccessByPath?: boolean | undefined;
404
+ } | undefined;
373
405
  } | null;
374
406
  hwidSettings: {
375
407
  enabled: boolean;
@@ -419,10 +451,14 @@ export declare namespace GetSubscriptionSettingsCommand {
419
451
  value: string;
420
452
  key: string;
421
453
  }[] | undefined;
454
+ applyHeadersToEnd?: boolean | undefined;
422
455
  subscriptionTemplate?: string | undefined;
423
456
  ignoreHostXrayJsonTemplate?: boolean | undefined;
424
457
  } | undefined;
425
458
  }[];
459
+ settings?: {
460
+ disableSubscriptionAccessByPath?: boolean | undefined;
461
+ } | undefined;
426
462
  } | null;
427
463
  hwidSettings: {
428
464
  enabled: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"get-subscription-settings.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-settings/get-subscription-settings.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,8BAA8B,CAAC;IACrC,MAAM,GAAG,+BAAqC,CAAC;IAC/C,MAAM,OAAO,+BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-subscription-settings.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-settings/get-subscription-settings.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,8BAA8B,CAAC;IACrC,MAAM,GAAG,+BAAqC,CAAC;IAC/C,MAAM,OAAO,+BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -41,6 +41,13 @@ export declare namespace UpdateSubscriptionSettingsCommand {
41
41
  version: z.ZodNativeEnum<{
42
42
  readonly 1: "1";
43
43
  }>;
44
+ settings: z.ZodOptional<z.ZodObject<{
45
+ disableSubscriptionAccessByPath: z.ZodOptional<z.ZodBoolean>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ disableSubscriptionAccessByPath?: boolean | undefined;
48
+ }, {
49
+ disableSubscriptionAccessByPath?: boolean | undefined;
50
+ }>>;
44
51
  rules: z.ZodArray<z.ZodObject<{
45
52
  name: z.ZodString;
46
53
  description: z.ZodOptional<z.ZodString>;
@@ -100,6 +107,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
100
107
  value: string;
101
108
  key: string;
102
109
  }>, "many">>;
110
+ applyHeadersToEnd: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
103
111
  subscriptionTemplate: z.ZodOptional<z.ZodString>;
104
112
  ignoreHostXrayJsonTemplate: z.ZodOptional<z.ZodBoolean>;
105
113
  }, "strip", z.ZodTypeAny, {
@@ -107,6 +115,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
107
115
  value: string;
108
116
  key: string;
109
117
  }[] | undefined;
118
+ applyHeadersToEnd?: boolean | undefined;
110
119
  subscriptionTemplate?: string | undefined;
111
120
  ignoreHostXrayJsonTemplate?: boolean | undefined;
112
121
  }, {
@@ -114,6 +123,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
114
123
  value: string;
115
124
  key: string;
116
125
  }[] | undefined;
126
+ applyHeadersToEnd?: boolean | undefined;
117
127
  subscriptionTemplate?: string | undefined;
118
128
  ignoreHostXrayJsonTemplate?: boolean | undefined;
119
129
  }>>;
@@ -134,6 +144,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
134
144
  value: string;
135
145
  key: string;
136
146
  }[] | undefined;
147
+ applyHeadersToEnd?: boolean | undefined;
137
148
  subscriptionTemplate?: string | undefined;
138
149
  ignoreHostXrayJsonTemplate?: boolean | undefined;
139
150
  } | undefined;
@@ -154,6 +165,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
154
165
  value: string;
155
166
  key: string;
156
167
  }[] | undefined;
168
+ applyHeadersToEnd?: boolean | undefined;
157
169
  subscriptionTemplate?: string | undefined;
158
170
  ignoreHostXrayJsonTemplate?: boolean | undefined;
159
171
  } | undefined;
@@ -177,10 +189,14 @@ export declare namespace UpdateSubscriptionSettingsCommand {
177
189
  value: string;
178
190
  key: string;
179
191
  }[] | undefined;
192
+ applyHeadersToEnd?: boolean | undefined;
180
193
  subscriptionTemplate?: string | undefined;
181
194
  ignoreHostXrayJsonTemplate?: boolean | undefined;
182
195
  } | undefined;
183
196
  }[];
197
+ settings?: {
198
+ disableSubscriptionAccessByPath?: boolean | undefined;
199
+ } | undefined;
184
200
  }, {
185
201
  version: "1";
186
202
  rules: {
@@ -200,10 +216,14 @@ export declare namespace UpdateSubscriptionSettingsCommand {
200
216
  value: string;
201
217
  key: string;
202
218
  }[] | undefined;
219
+ applyHeadersToEnd?: boolean | undefined;
203
220
  subscriptionTemplate?: string | undefined;
204
221
  ignoreHostXrayJsonTemplate?: boolean | undefined;
205
222
  } | undefined;
206
223
  }[];
224
+ settings?: {
225
+ disableSubscriptionAccessByPath?: boolean | undefined;
226
+ } | undefined;
207
227
  }>>;
208
228
  hwidSettings: z.ZodOptional<z.ZodObject<{
209
229
  enabled: z.ZodBoolean;
@@ -257,10 +277,14 @@ export declare namespace UpdateSubscriptionSettingsCommand {
257
277
  value: string;
258
278
  key: string;
259
279
  }[] | undefined;
280
+ applyHeadersToEnd?: boolean | undefined;
260
281
  subscriptionTemplate?: string | undefined;
261
282
  ignoreHostXrayJsonTemplate?: boolean | undefined;
262
283
  } | undefined;
263
284
  }[];
285
+ settings?: {
286
+ disableSubscriptionAccessByPath?: boolean | undefined;
287
+ } | undefined;
264
288
  } | undefined;
265
289
  hwidSettings?: {
266
290
  enabled: boolean;
@@ -306,10 +330,14 @@ export declare namespace UpdateSubscriptionSettingsCommand {
306
330
  value: string;
307
331
  key: string;
308
332
  }[] | undefined;
333
+ applyHeadersToEnd?: boolean | undefined;
309
334
  subscriptionTemplate?: string | undefined;
310
335
  ignoreHostXrayJsonTemplate?: boolean | undefined;
311
336
  } | undefined;
312
337
  }[];
338
+ settings?: {
339
+ disableSubscriptionAccessByPath?: boolean | undefined;
340
+ } | undefined;
313
341
  } | undefined;
314
342
  hwidSettings?: {
315
343
  enabled: boolean;
@@ -357,6 +385,13 @@ export declare namespace UpdateSubscriptionSettingsCommand {
357
385
  version: z.ZodNativeEnum<{
358
386
  readonly 1: "1";
359
387
  }>;
388
+ settings: z.ZodOptional<z.ZodObject<{
389
+ disableSubscriptionAccessByPath: z.ZodOptional<z.ZodBoolean>;
390
+ }, "strip", z.ZodTypeAny, {
391
+ disableSubscriptionAccessByPath?: boolean | undefined;
392
+ }, {
393
+ disableSubscriptionAccessByPath?: boolean | undefined;
394
+ }>>;
360
395
  rules: z.ZodArray<z.ZodObject<{
361
396
  name: z.ZodString;
362
397
  description: z.ZodOptional<z.ZodString>;
@@ -416,6 +451,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
416
451
  value: string;
417
452
  key: string;
418
453
  }>, "many">>;
454
+ applyHeadersToEnd: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
419
455
  subscriptionTemplate: z.ZodOptional<z.ZodString>;
420
456
  ignoreHostXrayJsonTemplate: z.ZodOptional<z.ZodBoolean>;
421
457
  }, "strip", z.ZodTypeAny, {
@@ -423,6 +459,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
423
459
  value: string;
424
460
  key: string;
425
461
  }[] | undefined;
462
+ applyHeadersToEnd?: boolean | undefined;
426
463
  subscriptionTemplate?: string | undefined;
427
464
  ignoreHostXrayJsonTemplate?: boolean | undefined;
428
465
  }, {
@@ -430,6 +467,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
430
467
  value: string;
431
468
  key: string;
432
469
  }[] | undefined;
470
+ applyHeadersToEnd?: boolean | undefined;
433
471
  subscriptionTemplate?: string | undefined;
434
472
  ignoreHostXrayJsonTemplate?: boolean | undefined;
435
473
  }>>;
@@ -450,6 +488,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
450
488
  value: string;
451
489
  key: string;
452
490
  }[] | undefined;
491
+ applyHeadersToEnd?: boolean | undefined;
453
492
  subscriptionTemplate?: string | undefined;
454
493
  ignoreHostXrayJsonTemplate?: boolean | undefined;
455
494
  } | undefined;
@@ -470,6 +509,7 @@ export declare namespace UpdateSubscriptionSettingsCommand {
470
509
  value: string;
471
510
  key: string;
472
511
  }[] | undefined;
512
+ applyHeadersToEnd?: boolean | undefined;
473
513
  subscriptionTemplate?: string | undefined;
474
514
  ignoreHostXrayJsonTemplate?: boolean | undefined;
475
515
  } | undefined;
@@ -493,10 +533,14 @@ export declare namespace UpdateSubscriptionSettingsCommand {
493
533
  value: string;
494
534
  key: string;
495
535
  }[] | undefined;
536
+ applyHeadersToEnd?: boolean | undefined;
496
537
  subscriptionTemplate?: string | undefined;
497
538
  ignoreHostXrayJsonTemplate?: boolean | undefined;
498
539
  } | undefined;
499
540
  }[];
541
+ settings?: {
542
+ disableSubscriptionAccessByPath?: boolean | undefined;
543
+ } | undefined;
500
544
  }, {
501
545
  version: "1";
502
546
  rules: {
@@ -516,10 +560,14 @@ export declare namespace UpdateSubscriptionSettingsCommand {
516
560
  value: string;
517
561
  key: string;
518
562
  }[] | undefined;
563
+ applyHeadersToEnd?: boolean | undefined;
519
564
  subscriptionTemplate?: string | undefined;
520
565
  ignoreHostXrayJsonTemplate?: boolean | undefined;
521
566
  } | undefined;
522
567
  }[];
568
+ settings?: {
569
+ disableSubscriptionAccessByPath?: boolean | undefined;
570
+ } | undefined;
523
571
  }>>;
524
572
  hwidSettings: z.ZodNullable<z.ZodObject<{
525
573
  enabled: z.ZodBoolean;
@@ -577,10 +625,14 @@ export declare namespace UpdateSubscriptionSettingsCommand {
577
625
  value: string;
578
626
  key: string;
579
627
  }[] | undefined;
628
+ applyHeadersToEnd?: boolean | undefined;
580
629
  subscriptionTemplate?: string | undefined;
581
630
  ignoreHostXrayJsonTemplate?: boolean | undefined;
582
631
  } | undefined;
583
632
  }[];
633
+ settings?: {
634
+ disableSubscriptionAccessByPath?: boolean | undefined;
635
+ } | undefined;
584
636
  } | null;
585
637
  hwidSettings: {
586
638
  enabled: boolean;
@@ -628,10 +680,14 @@ export declare namespace UpdateSubscriptionSettingsCommand {
628
680
  value: string;
629
681
  key: string;
630
682
  }[] | undefined;
683
+ applyHeadersToEnd?: boolean | undefined;
631
684
  subscriptionTemplate?: string | undefined;
632
685
  ignoreHostXrayJsonTemplate?: boolean | undefined;
633
686
  } | undefined;
634
687
  }[];
688
+ settings?: {
689
+ disableSubscriptionAccessByPath?: boolean | undefined;
690
+ } | undefined;
635
691
  } | null;
636
692
  hwidSettings: {
637
693
  enabled: boolean;
@@ -681,10 +737,14 @@ export declare namespace UpdateSubscriptionSettingsCommand {
681
737
  value: string;
682
738
  key: string;
683
739
  }[] | undefined;
740
+ applyHeadersToEnd?: boolean | undefined;
684
741
  subscriptionTemplate?: string | undefined;
685
742
  ignoreHostXrayJsonTemplate?: boolean | undefined;
686
743
  } | undefined;
687
744
  }[];
745
+ settings?: {
746
+ disableSubscriptionAccessByPath?: boolean | undefined;
747
+ } | undefined;
688
748
  } | null;
689
749
  hwidSettings: {
690
750
  enabled: boolean;
@@ -734,10 +794,14 @@ export declare namespace UpdateSubscriptionSettingsCommand {
734
794
  value: string;
735
795
  key: string;
736
796
  }[] | undefined;
797
+ applyHeadersToEnd?: boolean | undefined;
737
798
  subscriptionTemplate?: string | undefined;
738
799
  ignoreHostXrayJsonTemplate?: boolean | undefined;
739
800
  } | undefined;
740
801
  }[];
802
+ settings?: {
803
+ disableSubscriptionAccessByPath?: boolean | undefined;
804
+ } | undefined;
741
805
  } | null;
742
806
  hwidSettings: {
743
807
  enabled: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"update-subscription-settings.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-settings/update-subscription-settings.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,yBAAiB,iCAAiC,CAAC;IACxC,MAAM,GAAG,+BAAwC,CAAC;IAClD,MAAM,OAAO,+BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAoCxB,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":"update-subscription-settings.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-settings/update-subscription-settings.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,yBAAiB,iCAAiC,CAAC;IACxC,MAAM,GAAG,+BAAwC,CAAC;IAClD,MAAM,OAAO,+BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAoCxB,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"}
@@ -8,6 +8,13 @@ export declare namespace TestSrrMatcherCommand {
8
8
  version: z.ZodNativeEnum<{
9
9
  readonly 1: "1";
10
10
  }>;
11
+ settings: z.ZodOptional<z.ZodObject<{
12
+ disableSubscriptionAccessByPath: z.ZodOptional<z.ZodBoolean>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ disableSubscriptionAccessByPath?: boolean | undefined;
15
+ }, {
16
+ disableSubscriptionAccessByPath?: boolean | undefined;
17
+ }>>;
11
18
  rules: z.ZodArray<z.ZodObject<{
12
19
  name: z.ZodString;
13
20
  description: z.ZodOptional<z.ZodString>;
@@ -67,6 +74,7 @@ export declare namespace TestSrrMatcherCommand {
67
74
  value: string;
68
75
  key: string;
69
76
  }>, "many">>;
77
+ applyHeadersToEnd: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
70
78
  subscriptionTemplate: z.ZodOptional<z.ZodString>;
71
79
  ignoreHostXrayJsonTemplate: z.ZodOptional<z.ZodBoolean>;
72
80
  }, "strip", z.ZodTypeAny, {
@@ -74,6 +82,7 @@ export declare namespace TestSrrMatcherCommand {
74
82
  value: string;
75
83
  key: string;
76
84
  }[] | undefined;
85
+ applyHeadersToEnd?: boolean | undefined;
77
86
  subscriptionTemplate?: string | undefined;
78
87
  ignoreHostXrayJsonTemplate?: boolean | undefined;
79
88
  }, {
@@ -81,6 +90,7 @@ export declare namespace TestSrrMatcherCommand {
81
90
  value: string;
82
91
  key: string;
83
92
  }[] | undefined;
93
+ applyHeadersToEnd?: boolean | undefined;
84
94
  subscriptionTemplate?: string | undefined;
85
95
  ignoreHostXrayJsonTemplate?: boolean | undefined;
86
96
  }>>;
@@ -101,6 +111,7 @@ export declare namespace TestSrrMatcherCommand {
101
111
  value: string;
102
112
  key: string;
103
113
  }[] | undefined;
114
+ applyHeadersToEnd?: boolean | undefined;
104
115
  subscriptionTemplate?: string | undefined;
105
116
  ignoreHostXrayJsonTemplate?: boolean | undefined;
106
117
  } | undefined;
@@ -121,6 +132,7 @@ export declare namespace TestSrrMatcherCommand {
121
132
  value: string;
122
133
  key: string;
123
134
  }[] | undefined;
135
+ applyHeadersToEnd?: boolean | undefined;
124
136
  subscriptionTemplate?: string | undefined;
125
137
  ignoreHostXrayJsonTemplate?: boolean | undefined;
126
138
  } | undefined;
@@ -144,10 +156,14 @@ export declare namespace TestSrrMatcherCommand {
144
156
  value: string;
145
157
  key: string;
146
158
  }[] | undefined;
159
+ applyHeadersToEnd?: boolean | undefined;
147
160
  subscriptionTemplate?: string | undefined;
148
161
  ignoreHostXrayJsonTemplate?: boolean | undefined;
149
162
  } | undefined;
150
163
  }[];
164
+ settings?: {
165
+ disableSubscriptionAccessByPath?: boolean | undefined;
166
+ } | undefined;
151
167
  }, {
152
168
  version: "1";
153
169
  rules: {
@@ -167,10 +183,14 @@ export declare namespace TestSrrMatcherCommand {
167
183
  value: string;
168
184
  key: string;
169
185
  }[] | undefined;
186
+ applyHeadersToEnd?: boolean | undefined;
170
187
  subscriptionTemplate?: string | undefined;
171
188
  ignoreHostXrayJsonTemplate?: boolean | undefined;
172
189
  } | undefined;
173
190
  }[];
191
+ settings?: {
192
+ disableSubscriptionAccessByPath?: boolean | undefined;
193
+ } | undefined;
174
194
  }>;
175
195
  }, "strip", z.ZodTypeAny, {
176
196
  responseRules: {
@@ -192,10 +212,14 @@ export declare namespace TestSrrMatcherCommand {
192
212
  value: string;
193
213
  key: string;
194
214
  }[] | undefined;
215
+ applyHeadersToEnd?: boolean | undefined;
195
216
  subscriptionTemplate?: string | undefined;
196
217
  ignoreHostXrayJsonTemplate?: boolean | undefined;
197
218
  } | undefined;
198
219
  }[];
220
+ settings?: {
221
+ disableSubscriptionAccessByPath?: boolean | undefined;
222
+ } | undefined;
199
223
  };
200
224
  }, {
201
225
  responseRules: {
@@ -217,10 +241,14 @@ export declare namespace TestSrrMatcherCommand {
217
241
  value: string;
218
242
  key: string;
219
243
  }[] | undefined;
244
+ applyHeadersToEnd?: boolean | undefined;
220
245
  subscriptionTemplate?: string | undefined;
221
246
  ignoreHostXrayJsonTemplate?: boolean | undefined;
222
247
  } | undefined;
223
248
  }[];
249
+ settings?: {
250
+ disableSubscriptionAccessByPath?: boolean | undefined;
251
+ } | undefined;
224
252
  };
225
253
  }>;
226
254
  type Request = z.infer<typeof RequestSchema>;
@@ -299,6 +327,7 @@ export declare namespace TestSrrMatcherCommand {
299
327
  value: string;
300
328
  key: string;
301
329
  }>, "many">>;
330
+ applyHeadersToEnd: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
302
331
  subscriptionTemplate: z.ZodOptional<z.ZodString>;
303
332
  ignoreHostXrayJsonTemplate: z.ZodOptional<z.ZodBoolean>;
304
333
  }, "strip", z.ZodTypeAny, {
@@ -306,6 +335,7 @@ export declare namespace TestSrrMatcherCommand {
306
335
  value: string;
307
336
  key: string;
308
337
  }[] | undefined;
338
+ applyHeadersToEnd?: boolean | undefined;
309
339
  subscriptionTemplate?: string | undefined;
310
340
  ignoreHostXrayJsonTemplate?: boolean | undefined;
311
341
  }, {
@@ -313,6 +343,7 @@ export declare namespace TestSrrMatcherCommand {
313
343
  value: string;
314
344
  key: string;
315
345
  }[] | undefined;
346
+ applyHeadersToEnd?: boolean | undefined;
316
347
  subscriptionTemplate?: string | undefined;
317
348
  ignoreHostXrayJsonTemplate?: boolean | undefined;
318
349
  }>>;
@@ -333,6 +364,7 @@ export declare namespace TestSrrMatcherCommand {
333
364
  value: string;
334
365
  key: string;
335
366
  }[] | undefined;
367
+ applyHeadersToEnd?: boolean | undefined;
336
368
  subscriptionTemplate?: string | undefined;
337
369
  ignoreHostXrayJsonTemplate?: boolean | undefined;
338
370
  } | undefined;
@@ -353,6 +385,7 @@ export declare namespace TestSrrMatcherCommand {
353
385
  value: string;
354
386
  key: string;
355
387
  }[] | undefined;
388
+ applyHeadersToEnd?: boolean | undefined;
356
389
  subscriptionTemplate?: string | undefined;
357
390
  ignoreHostXrayJsonTemplate?: boolean | undefined;
358
391
  } | undefined;
@@ -379,6 +412,7 @@ export declare namespace TestSrrMatcherCommand {
379
412
  value: string;
380
413
  key: string;
381
414
  }[] | undefined;
415
+ applyHeadersToEnd?: boolean | undefined;
382
416
  subscriptionTemplate?: string | undefined;
383
417
  ignoreHostXrayJsonTemplate?: boolean | undefined;
384
418
  } | undefined;
@@ -405,6 +439,7 @@ export declare namespace TestSrrMatcherCommand {
405
439
  value: string;
406
440
  key: string;
407
441
  }[] | undefined;
442
+ applyHeadersToEnd?: boolean | undefined;
408
443
  subscriptionTemplate?: string | undefined;
409
444
  ignoreHostXrayJsonTemplate?: boolean | undefined;
410
445
  } | undefined;
@@ -433,6 +468,7 @@ export declare namespace TestSrrMatcherCommand {
433
468
  value: string;
434
469
  key: string;
435
470
  }[] | undefined;
471
+ applyHeadersToEnd?: boolean | undefined;
436
472
  subscriptionTemplate?: string | undefined;
437
473
  ignoreHostXrayJsonTemplate?: boolean | undefined;
438
474
  } | undefined;
@@ -461,6 +497,7 @@ export declare namespace TestSrrMatcherCommand {
461
497
  value: string;
462
498
  key: string;
463
499
  }[] | undefined;
500
+ applyHeadersToEnd?: boolean | undefined;
464
501
  subscriptionTemplate?: string | undefined;
465
502
  ignoreHostXrayJsonTemplate?: boolean | undefined;
466
503
  } | undefined;
@@ -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"}
@@ -10,6 +10,7 @@ export declare const ResponseRuleModificationsSchema: z.ZodOptional<z.ZodObject<
10
10
  value: string;
11
11
  key: string;
12
12
  }>, "many">>;
13
+ applyHeadersToEnd: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
13
14
  subscriptionTemplate: z.ZodOptional<z.ZodString>;
14
15
  ignoreHostXrayJsonTemplate: z.ZodOptional<z.ZodBoolean>;
15
16
  }, "strip", z.ZodTypeAny, {
@@ -17,6 +18,7 @@ export declare const ResponseRuleModificationsSchema: z.ZodOptional<z.ZodObject<
17
18
  value: string;
18
19
  key: string;
19
20
  }[] | undefined;
21
+ applyHeadersToEnd?: boolean | undefined;
20
22
  subscriptionTemplate?: string | undefined;
21
23
  ignoreHostXrayJsonTemplate?: boolean | undefined;
22
24
  }, {
@@ -24,6 +26,7 @@ export declare const ResponseRuleModificationsSchema: z.ZodOptional<z.ZodObject<
24
26
  value: string;
25
27
  key: string;
26
28
  }[] | undefined;
29
+ applyHeadersToEnd?: boolean | undefined;
27
30
  subscriptionTemplate?: string | undefined;
28
31
  ignoreHostXrayJsonTemplate?: boolean | undefined;
29
32
  }>>;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwFvC,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,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkGvC,CAAC"}
@@ -42,6 +42,13 @@ exports.ResponseRuleModificationsSchema = zod_1.default
42
42
  markdownDescription: 'Array of headers to be added when the rule is matched.',
43
43
  }))
44
44
  .optional(),
45
+ applyHeadersToEnd: zod_1.default
46
+ .boolean()
47
+ .optional()
48
+ .describe(JSON.stringify({
49
+ markdownDescription: 'By default, headers are added when forming the response. In some cases, headers set in SRR may be overridden by headers from other parts of the system. If you set this flag to **true**, headers from SRR will be added at the very end, just before the response is sent. In this case, SRR headers may override headers from other sections.',
50
+ }))
51
+ .optional(),
45
52
  subscriptionTemplate: zod_1.default
46
53
  .string()
47
54
  .min(1, 'Subscription template name is required')
@@ -0,0 +1,9 @@
1
+ import z from 'zod';
2
+ export declare const ResponseRuleSettingsSchema: z.ZodOptional<z.ZodObject<{
3
+ disableSubscriptionAccessByPath: z.ZodOptional<z.ZodBoolean>;
4
+ }, "strip", z.ZodTypeAny, {
5
+ disableSubscriptionAccessByPath?: boolean | undefined;
6
+ }, {
7
+ disableSubscriptionAccessByPath?: boolean | undefined;
8
+ }>>;
9
+ //# sourceMappingURL=response-rule-settings.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response-rule-settings.schema.d.ts","sourceRoot":"","sources":["../../../../models/response-rules/response-rule-settings.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,0BAA0B;;;;;;GAiBlC,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ResponseRuleSettingsSchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ exports.ResponseRuleSettingsSchema = zod_1.default
9
+ .object({
10
+ disableSubscriptionAccessByPath: zod_1.default
11
+ .boolean()
12
+ .optional()
13
+ .describe(JSON.stringify({
14
+ markdownDescription: "Usually, a user's subscription may also be available via additional paths such as **/json**, **/stash**, or **/mihomo**. If this flag is set to **true**, access via these additional paths will be disabled.",
15
+ })),
16
+ })
17
+ .optional()
18
+ .describe(JSON.stringify({
19
+ markdownDescription: 'Settings for the **response rules** config. Optional.',
20
+ }));
@@ -58,6 +58,7 @@ export declare const ResponseRuleSchemaBase: z.ZodObject<{
58
58
  value: string;
59
59
  key: string;
60
60
  }>, "many">>;
61
+ applyHeadersToEnd: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
61
62
  subscriptionTemplate: z.ZodOptional<z.ZodString>;
62
63
  ignoreHostXrayJsonTemplate: z.ZodOptional<z.ZodBoolean>;
63
64
  }, "strip", z.ZodTypeAny, {
@@ -65,6 +66,7 @@ export declare const ResponseRuleSchemaBase: z.ZodObject<{
65
66
  value: string;
66
67
  key: string;
67
68
  }[] | undefined;
69
+ applyHeadersToEnd?: boolean | undefined;
68
70
  subscriptionTemplate?: string | undefined;
69
71
  ignoreHostXrayJsonTemplate?: boolean | undefined;
70
72
  }, {
@@ -72,6 +74,7 @@ export declare const ResponseRuleSchemaBase: z.ZodObject<{
72
74
  value: string;
73
75
  key: string;
74
76
  }[] | undefined;
77
+ applyHeadersToEnd?: boolean | undefined;
75
78
  subscriptionTemplate?: string | undefined;
76
79
  ignoreHostXrayJsonTemplate?: boolean | undefined;
77
80
  }>>;
@@ -92,6 +95,7 @@ export declare const ResponseRuleSchemaBase: z.ZodObject<{
92
95
  value: string;
93
96
  key: string;
94
97
  }[] | undefined;
98
+ applyHeadersToEnd?: boolean | undefined;
95
99
  subscriptionTemplate?: string | undefined;
96
100
  ignoreHostXrayJsonTemplate?: boolean | undefined;
97
101
  } | undefined;
@@ -112,6 +116,7 @@ export declare const ResponseRuleSchemaBase: z.ZodObject<{
112
116
  value: string;
113
117
  key: string;
114
118
  }[] | undefined;
119
+ applyHeadersToEnd?: boolean | undefined;
115
120
  subscriptionTemplate?: string | undefined;
116
121
  ignoreHostXrayJsonTemplate?: boolean | undefined;
117
122
  } | undefined;
@@ -175,6 +180,7 @@ export declare const ResponseRuleSchema: z.ZodObject<{
175
180
  value: string;
176
181
  key: string;
177
182
  }>, "many">>;
183
+ applyHeadersToEnd: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
178
184
  subscriptionTemplate: z.ZodOptional<z.ZodString>;
179
185
  ignoreHostXrayJsonTemplate: z.ZodOptional<z.ZodBoolean>;
180
186
  }, "strip", z.ZodTypeAny, {
@@ -182,6 +188,7 @@ export declare const ResponseRuleSchema: z.ZodObject<{
182
188
  value: string;
183
189
  key: string;
184
190
  }[] | undefined;
191
+ applyHeadersToEnd?: boolean | undefined;
185
192
  subscriptionTemplate?: string | undefined;
186
193
  ignoreHostXrayJsonTemplate?: boolean | undefined;
187
194
  }, {
@@ -189,6 +196,7 @@ export declare const ResponseRuleSchema: z.ZodObject<{
189
196
  value: string;
190
197
  key: string;
191
198
  }[] | undefined;
199
+ applyHeadersToEnd?: boolean | undefined;
192
200
  subscriptionTemplate?: string | undefined;
193
201
  ignoreHostXrayJsonTemplate?: boolean | undefined;
194
202
  }>>;
@@ -209,6 +217,7 @@ export declare const ResponseRuleSchema: z.ZodObject<{
209
217
  value: string;
210
218
  key: string;
211
219
  }[] | undefined;
220
+ applyHeadersToEnd?: boolean | undefined;
212
221
  subscriptionTemplate?: string | undefined;
213
222
  ignoreHostXrayJsonTemplate?: boolean | undefined;
214
223
  } | undefined;
@@ -229,6 +238,7 @@ export declare const ResponseRuleSchema: z.ZodObject<{
229
238
  value: string;
230
239
  key: string;
231
240
  }[] | undefined;
241
+ applyHeadersToEnd?: boolean | undefined;
232
242
  subscriptionTemplate?: string | undefined;
233
243
  ignoreHostXrayJsonTemplate?: boolean | undefined;
234
244
  } | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"response-rule.schema.d.ts","sourceRoot":"","sources":["../../../../models/response-rules/response-rule.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgDjC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB9B,CAAC"}
1
+ {"version":3,"file":"response-rule.schema.d.ts","sourceRoot":"","sources":["../../../../models/response-rules/response-rule.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgDjC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB9B,CAAC"}
@@ -3,6 +3,13 @@ export declare const ResponseRulesConfigSchema: z.ZodObject<{
3
3
  version: z.ZodNativeEnum<{
4
4
  readonly 1: "1";
5
5
  }>;
6
+ settings: z.ZodOptional<z.ZodObject<{
7
+ disableSubscriptionAccessByPath: z.ZodOptional<z.ZodBoolean>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ disableSubscriptionAccessByPath?: boolean | undefined;
10
+ }, {
11
+ disableSubscriptionAccessByPath?: boolean | undefined;
12
+ }>>;
6
13
  rules: z.ZodArray<z.ZodObject<{
7
14
  name: z.ZodString;
8
15
  description: z.ZodOptional<z.ZodString>;
@@ -62,6 +69,7 @@ export declare const ResponseRulesConfigSchema: z.ZodObject<{
62
69
  value: string;
63
70
  key: string;
64
71
  }>, "many">>;
72
+ applyHeadersToEnd: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
65
73
  subscriptionTemplate: z.ZodOptional<z.ZodString>;
66
74
  ignoreHostXrayJsonTemplate: z.ZodOptional<z.ZodBoolean>;
67
75
  }, "strip", z.ZodTypeAny, {
@@ -69,6 +77,7 @@ export declare const ResponseRulesConfigSchema: z.ZodObject<{
69
77
  value: string;
70
78
  key: string;
71
79
  }[] | undefined;
80
+ applyHeadersToEnd?: boolean | undefined;
72
81
  subscriptionTemplate?: string | undefined;
73
82
  ignoreHostXrayJsonTemplate?: boolean | undefined;
74
83
  }, {
@@ -76,6 +85,7 @@ export declare const ResponseRulesConfigSchema: z.ZodObject<{
76
85
  value: string;
77
86
  key: string;
78
87
  }[] | undefined;
88
+ applyHeadersToEnd?: boolean | undefined;
79
89
  subscriptionTemplate?: string | undefined;
80
90
  ignoreHostXrayJsonTemplate?: boolean | undefined;
81
91
  }>>;
@@ -96,6 +106,7 @@ export declare const ResponseRulesConfigSchema: z.ZodObject<{
96
106
  value: string;
97
107
  key: string;
98
108
  }[] | undefined;
109
+ applyHeadersToEnd?: boolean | undefined;
99
110
  subscriptionTemplate?: string | undefined;
100
111
  ignoreHostXrayJsonTemplate?: boolean | undefined;
101
112
  } | undefined;
@@ -116,6 +127,7 @@ export declare const ResponseRulesConfigSchema: z.ZodObject<{
116
127
  value: string;
117
128
  key: string;
118
129
  }[] | undefined;
130
+ applyHeadersToEnd?: boolean | undefined;
119
131
  subscriptionTemplate?: string | undefined;
120
132
  ignoreHostXrayJsonTemplate?: boolean | undefined;
121
133
  } | undefined;
@@ -139,10 +151,14 @@ export declare const ResponseRulesConfigSchema: z.ZodObject<{
139
151
  value: string;
140
152
  key: string;
141
153
  }[] | undefined;
154
+ applyHeadersToEnd?: boolean | undefined;
142
155
  subscriptionTemplate?: string | undefined;
143
156
  ignoreHostXrayJsonTemplate?: boolean | undefined;
144
157
  } | undefined;
145
158
  }[];
159
+ settings?: {
160
+ disableSubscriptionAccessByPath?: boolean | undefined;
161
+ } | undefined;
146
162
  }, {
147
163
  version: "1";
148
164
  rules: {
@@ -162,9 +178,13 @@ export declare const ResponseRulesConfigSchema: z.ZodObject<{
162
178
  value: string;
163
179
  key: string;
164
180
  }[] | undefined;
181
+ applyHeadersToEnd?: boolean | undefined;
165
182
  subscriptionTemplate?: string | undefined;
166
183
  ignoreHostXrayJsonTemplate?: boolean | undefined;
167
184
  } | undefined;
168
185
  }[];
186
+ settings?: {
187
+ disableSubscriptionAccessByPath?: boolean | undefined;
188
+ } | undefined;
169
189
  }>;
170
190
  //# sourceMappingURL=response-rules-config.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"response-rules-config.schema.d.ts","sourceRoot":"","sources":["../../../../models/response-rules/response-rules-config.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAepC,CAAC"}
1
+ {"version":3,"file":"response-rules-config.schema.d.ts","sourceRoot":"","sources":["../../../../models/response-rules/response-rules-config.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBpC,CAAC"}
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ResponseRulesConfigSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ const response_rule_settings_schema_1 = require("./response-rule-settings.schema");
5
6
  const response_rules_examples_1 = require("./response-rules-examples");
6
7
  const constants_1 = require("../../constants");
7
8
  const response_rule_schema_1 = require("./response-rule.schema");
@@ -10,6 +11,7 @@ exports.ResponseRulesConfigSchema = zod_1.z.object({
10
11
  title: 'Response Rules Config Version',
11
12
  markdownDescription: 'Version of the **response rules** config. Currently supported version is **1**.',
12
13
  })),
14
+ settings: response_rule_settings_schema_1.ResponseRuleSettingsSchema,
13
15
  rules: zod_1.z.array(response_rule_schema_1.ResponseRuleSchema).describe(JSON.stringify({
14
16
  title: 'Response Rules',
15
17
  markdownDescription: `Array of **response rules**. Rules are evaluated in order and the first rule that matches is applied. If no rule matches, request will be blocked by default.\n\n**Example:**\n\`\`\`json\n${JSON.stringify([response_rules_examples_1.EXAMPLES_SRR_BLANK_RULE], null, 2)}\n\`\`\``,
@@ -37,6 +37,13 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
37
37
  version: z.ZodNativeEnum<{
38
38
  readonly 1: "1";
39
39
  }>;
40
+ settings: z.ZodOptional<z.ZodObject<{
41
+ disableSubscriptionAccessByPath: z.ZodOptional<z.ZodBoolean>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ disableSubscriptionAccessByPath?: boolean | undefined;
44
+ }, {
45
+ disableSubscriptionAccessByPath?: boolean | undefined;
46
+ }>>;
40
47
  rules: z.ZodArray<z.ZodObject<{
41
48
  name: z.ZodString;
42
49
  description: z.ZodOptional<z.ZodString>;
@@ -96,6 +103,7 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
96
103
  value: string;
97
104
  key: string;
98
105
  }>, "many">>;
106
+ applyHeadersToEnd: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
99
107
  subscriptionTemplate: z.ZodOptional<z.ZodString>;
100
108
  ignoreHostXrayJsonTemplate: z.ZodOptional<z.ZodBoolean>;
101
109
  }, "strip", z.ZodTypeAny, {
@@ -103,6 +111,7 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
103
111
  value: string;
104
112
  key: string;
105
113
  }[] | undefined;
114
+ applyHeadersToEnd?: boolean | undefined;
106
115
  subscriptionTemplate?: string | undefined;
107
116
  ignoreHostXrayJsonTemplate?: boolean | undefined;
108
117
  }, {
@@ -110,6 +119,7 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
110
119
  value: string;
111
120
  key: string;
112
121
  }[] | undefined;
122
+ applyHeadersToEnd?: boolean | undefined;
113
123
  subscriptionTemplate?: string | undefined;
114
124
  ignoreHostXrayJsonTemplate?: boolean | undefined;
115
125
  }>>;
@@ -130,6 +140,7 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
130
140
  value: string;
131
141
  key: string;
132
142
  }[] | undefined;
143
+ applyHeadersToEnd?: boolean | undefined;
133
144
  subscriptionTemplate?: string | undefined;
134
145
  ignoreHostXrayJsonTemplate?: boolean | undefined;
135
146
  } | undefined;
@@ -150,6 +161,7 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
150
161
  value: string;
151
162
  key: string;
152
163
  }[] | undefined;
164
+ applyHeadersToEnd?: boolean | undefined;
153
165
  subscriptionTemplate?: string | undefined;
154
166
  ignoreHostXrayJsonTemplate?: boolean | undefined;
155
167
  } | undefined;
@@ -173,10 +185,14 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
173
185
  value: string;
174
186
  key: string;
175
187
  }[] | undefined;
188
+ applyHeadersToEnd?: boolean | undefined;
176
189
  subscriptionTemplate?: string | undefined;
177
190
  ignoreHostXrayJsonTemplate?: boolean | undefined;
178
191
  } | undefined;
179
192
  }[];
193
+ settings?: {
194
+ disableSubscriptionAccessByPath?: boolean | undefined;
195
+ } | undefined;
180
196
  }, {
181
197
  version: "1";
182
198
  rules: {
@@ -196,10 +212,14 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
196
212
  value: string;
197
213
  key: string;
198
214
  }[] | undefined;
215
+ applyHeadersToEnd?: boolean | undefined;
199
216
  subscriptionTemplate?: string | undefined;
200
217
  ignoreHostXrayJsonTemplate?: boolean | undefined;
201
218
  } | undefined;
202
219
  }[];
220
+ settings?: {
221
+ disableSubscriptionAccessByPath?: boolean | undefined;
222
+ } | undefined;
203
223
  }>>;
204
224
  hwidSettings: z.ZodNullable<z.ZodObject<{
205
225
  enabled: z.ZodBoolean;
@@ -257,10 +277,14 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
257
277
  value: string;
258
278
  key: string;
259
279
  }[] | undefined;
280
+ applyHeadersToEnd?: boolean | undefined;
260
281
  subscriptionTemplate?: string | undefined;
261
282
  ignoreHostXrayJsonTemplate?: boolean | undefined;
262
283
  } | undefined;
263
284
  }[];
285
+ settings?: {
286
+ disableSubscriptionAccessByPath?: boolean | undefined;
287
+ } | undefined;
264
288
  } | null;
265
289
  hwidSettings: {
266
290
  enabled: boolean;
@@ -308,10 +332,14 @@ export declare const SubscriptionSettingsSchema: z.ZodObject<{
308
332
  value: string;
309
333
  key: string;
310
334
  }[] | undefined;
335
+ applyHeadersToEnd?: boolean | undefined;
311
336
  subscriptionTemplate?: string | undefined;
312
337
  ignoreHostXrayJsonTemplate?: boolean | undefined;
313
338
  } | undefined;
314
339
  }[];
340
+ settings?: {
341
+ disableSubscriptionAccessByPath?: boolean | undefined;
342
+ } | undefined;
315
343
  } | null;
316
344
  hwidSettings: {
317
345
  enabled: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"subscription-settings.schema.d.ts","sourceRoot":"","sources":["../../../models/subscription-settings.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmCrC,CAAC"}
1
+ {"version":3,"file":"subscription-settings.schema.d.ts","sourceRoot":"","sources":["../../../models/subscription-settings.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmCrC,CAAC"}
@@ -42,6 +42,13 @@ exports.ResponseRuleModificationsSchema = zod_1.default
42
42
  markdownDescription: 'Array of headers to be added when the rule is matched.',
43
43
  }))
44
44
  .optional(),
45
+ applyHeadersToEnd: zod_1.default
46
+ .boolean()
47
+ .optional()
48
+ .describe(JSON.stringify({
49
+ markdownDescription: 'By default, headers are added when forming the response. In some cases, headers set in SRR may be overridden by headers from other parts of the system. If you set this flag to **true**, headers from SRR will be added at the very end, just before the response is sent. In this case, SRR headers may override headers from other sections.',
50
+ }))
51
+ .optional(),
45
52
  subscriptionTemplate: zod_1.default
46
53
  .string()
47
54
  .min(1, 'Subscription template name is required')
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ResponseRuleSettingsSchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ exports.ResponseRuleSettingsSchema = zod_1.default
9
+ .object({
10
+ disableSubscriptionAccessByPath: zod_1.default
11
+ .boolean()
12
+ .optional()
13
+ .describe(JSON.stringify({
14
+ markdownDescription: "Usually, a user's subscription may also be available via additional paths such as **/json**, **/stash**, or **/mihomo**. If this flag is set to **true**, access via these additional paths will be disabled.",
15
+ })),
16
+ })
17
+ .optional()
18
+ .describe(JSON.stringify({
19
+ markdownDescription: 'Settings for the **response rules** config. Optional.',
20
+ }));
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ResponseRulesConfigSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ const response_rule_settings_schema_1 = require("./response-rule-settings.schema");
5
6
  const response_rules_examples_1 = require("./response-rules-examples");
6
7
  const constants_1 = require("../../constants");
7
8
  const response_rule_schema_1 = require("./response-rule.schema");
@@ -10,6 +11,7 @@ exports.ResponseRulesConfigSchema = zod_1.z.object({
10
11
  title: 'Response Rules Config Version',
11
12
  markdownDescription: 'Version of the **response rules** config. Currently supported version is **1**.',
12
13
  })),
14
+ settings: response_rule_settings_schema_1.ResponseRuleSettingsSchema,
13
15
  rules: zod_1.z.array(response_rule_schema_1.ResponseRuleSchema).describe(JSON.stringify({
14
16
  title: 'Response Rules',
15
17
  markdownDescription: `Array of **response rules**. Rules are evaluated in order and the first rule that matches is applied. If no rule matches, request will be blocked by default.\n\n**Example:**\n\`\`\`json\n${JSON.stringify([response_rules_examples_1.EXAMPLES_SRR_BLANK_RULE], null, 2)}\n\`\`\``,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.6.1",
3
+ "version": "2.6.2",
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.",