@remnawave/backend-contract 2.1.79 → 2.1.80
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.
|
@@ -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;
|
|
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;AA0BpB,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;GAyCvC,CAAC"}
|
|
@@ -13,6 +13,12 @@ const exampleJson = JSON.stringify({
|
|
|
13
13
|
},
|
|
14
14
|
],
|
|
15
15
|
}, null, 2);
|
|
16
|
+
const exampleHeaderJson = JSON.stringify([
|
|
17
|
+
{
|
|
18
|
+
key: 'X-Custom-Header',
|
|
19
|
+
value: 'Custom Value',
|
|
20
|
+
},
|
|
21
|
+
], null, 2);
|
|
16
22
|
exports.ResponseRuleModificationsSchema = zod_1.default
|
|
17
23
|
.object({
|
|
18
24
|
headers: zod_1.default
|
|
@@ -33,7 +39,7 @@ exports.ResponseRuleModificationsSchema = zod_1.default
|
|
|
33
39
|
})),
|
|
34
40
|
}))
|
|
35
41
|
.describe(JSON.stringify({
|
|
36
|
-
markdownDescription:
|
|
42
|
+
markdownDescription: `Array of headers to be added when the rule is matched.\n\nExample:\n\`\`\`json\n${exampleHeaderJson}\n\`\`\``,
|
|
37
43
|
})),
|
|
38
44
|
})
|
|
39
45
|
.optional()
|
|
@@ -13,6 +13,12 @@ const exampleJson = JSON.stringify({
|
|
|
13
13
|
},
|
|
14
14
|
],
|
|
15
15
|
}, null, 2);
|
|
16
|
+
const exampleHeaderJson = JSON.stringify([
|
|
17
|
+
{
|
|
18
|
+
key: 'X-Custom-Header',
|
|
19
|
+
value: 'Custom Value',
|
|
20
|
+
},
|
|
21
|
+
], null, 2);
|
|
16
22
|
exports.ResponseRuleModificationsSchema = zod_1.default
|
|
17
23
|
.object({
|
|
18
24
|
headers: zod_1.default
|
|
@@ -33,7 +39,7 @@ exports.ResponseRuleModificationsSchema = zod_1.default
|
|
|
33
39
|
})),
|
|
34
40
|
}))
|
|
35
41
|
.describe(JSON.stringify({
|
|
36
|
-
markdownDescription:
|
|
42
|
+
markdownDescription: `Array of headers to be added when the rule is matched.\n\nExample:\n\`\`\`json\n${exampleHeaderJson}\n\`\`\``,
|
|
37
43
|
})),
|
|
38
44
|
})
|
|
39
45
|
.optional()
|