Skip to content

Commit b5cbc18

Browse files
author
David Ruzicka
committed
chore(schema): regenerate schemas after auth token config extraction
1 parent 5de082e commit b5cbc18

2 files changed

Lines changed: 29 additions & 12 deletions

File tree

profile-schema.json

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,14 +1419,14 @@
14191419
]
14201420
},
14211421
"overrides": {
1422-
"$ref": "#/definitions/Record%3Cstring%2Cstructure-1535101595-20918-20954-1535101595-20903-20955-1535101595-20889-20956-1535101595-20818-20958-1535101595-0-21098%3E"
1422+
"$ref": "#/definitions/Record%3Cstring%2Cstructure-1535101595-21073-21109-1535101595-21058-21110-1535101595-21044-21111-1535101595-20973-21113-1535101595-0-21253%3E"
14231423
}
14241424
},
14251425
"required": [
14261426
"max_requests_per_minute"
14271427
]
14281428
},
1429-
"Record<string,structure-1535101595-20918-20954-1535101595-20903-20955-1535101595-20889-20956-1535101595-20818-20958-1535101595-0-21098>": {
1429+
"Record<string,structure-1535101595-21073-21109-1535101595-21058-21110-1535101595-21044-21111-1535101595-20973-21113-1535101595-0-21253>": {
14301430
"type": "object",
14311431
"additionalProperties": {
14321432
"type": "object",
@@ -1831,14 +1831,14 @@
18311831
"custom-header"
18321832
]
18331833
},
1834-
"value_from_env": {
1835-
"type": "string"
1836-
},
18371834
"header_name": {
18381835
"type": "string"
18391836
},
18401837
"query_param": {
18411838
"type": "string"
1839+
},
1840+
"value_from_env": {
1841+
"type": "string"
18421842
}
18431843
},
18441844
"required": [
@@ -1864,6 +1864,20 @@
18641864
}
18651865
}
18661866
},
1867+
"Record<string,structure-1535101595-20918-20954-1535101595-20903-20955-1535101595-20889-20956-1535101595-20818-20958-1535101595-0-21098>": {
1868+
"type": "object",
1869+
"additionalProperties": {
1870+
"type": "object",
1871+
"properties": {
1872+
"max_requests_per_minute": {
1873+
"type": "number"
1874+
}
1875+
},
1876+
"required": [
1877+
"max_requests_per_minute"
1878+
]
1879+
}
1880+
},
18671881
"Record<string,structure-1535101595-20409-20445-1535101595-20394-20446-1535101595-20380-20447-1535101595-20309-20449-1535101595-0-20589>": {
18681882
"type": "object",
18691883
"additionalProperties": {

src/generated-schemas.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
// Generated by ts-to-zod
22
import { z } from "zod";
33

4-
export const upstreamMcpAuthConfigSchema = z.object({
5-
type: z.union([z.literal("bearer"), z.literal("query"), z.literal("custom-header")]),
6-
value_from_env: z.string(),
7-
header_name: z.string().optional(),
8-
query_param: z.string().optional()
9-
});
10-
114
export const upstreamMcpToolPolicySchema = z.object({
125
allow: z.array(z.string()).optional(),
136
deny: z.array(z.string()).optional()
@@ -18,6 +11,16 @@ export const upstreamMcpHttpStreamableTransportConfigSchema = z.object({
1811
url: z.string()
1912
});
2013

14+
export const authTokenConfigSchema = z.object({
15+
type: z.union([z.literal("bearer"), z.literal("query"), z.literal("custom-header")]),
16+
header_name: z.string().optional(),
17+
query_param: z.string().optional()
18+
});
19+
20+
export const upstreamMcpAuthConfigSchema = authTokenConfigSchema.extend({
21+
value_from_env: z.string()
22+
});
23+
2124
export const resourceFetchDefinitionSchema = z.object({
2225
source: z.union([z.literal("operation"), z.literal("composite")]),
2326
operation: z.string().optional(),

0 commit comments

Comments
 (0)