mcp4openapi 0.1.0 → 0.2.0
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.
- package/README.md +134 -95
- package/dist/scripts/validate-profile.js +3 -3
- package/dist/scripts/validate-profile.js.map +1 -1
- package/dist/src/composite-executor.d.ts +3 -1
- package/dist/src/composite-executor.d.ts.map +1 -1
- package/dist/src/composite-executor.js +16 -5
- package/dist/src/composite-executor.js.map +1 -1
- package/dist/src/constants.d.ts +49 -0
- package/dist/src/constants.d.ts.map +1 -1
- package/dist/src/constants.js +49 -0
- package/dist/src/constants.js.map +1 -1
- package/dist/src/errors.d.ts +6 -0
- package/dist/src/errors.d.ts.map +1 -1
- package/dist/src/errors.js +13 -0
- package/dist/src/errors.js.map +1 -1
- package/dist/src/generated-schemas.d.ts +832 -52
- package/dist/src/generated-schemas.d.ts.map +1 -1
- package/dist/src/generated-schemas.js +31 -8
- package/dist/src/generated-schemas.js.map +1 -1
- package/dist/src/http-client-factory.d.ts.map +1 -1
- package/dist/src/http-client-factory.js +14 -3
- package/dist/src/http-client-factory.js.map +1 -1
- package/dist/src/http-transport.d.ts +65 -0
- package/dist/src/http-transport.d.ts.map +1 -1
- package/dist/src/http-transport.js +921 -77
- package/dist/src/http-transport.js.map +1 -1
- package/dist/src/index.js +108 -8
- package/dist/src/index.js.map +1 -1
- package/dist/src/interceptors.d.ts +3 -0
- package/dist/src/interceptors.d.ts.map +1 -1
- package/dist/src/interceptors.js +50 -8
- package/dist/src/interceptors.js.map +1 -1
- package/dist/src/logger.d.ts +1 -1
- package/dist/src/logger.js +3 -3
- package/dist/src/logger.js.map +1 -1
- package/dist/src/mcp-server.d.ts +33 -0
- package/dist/src/mcp-server.d.ts.map +1 -1
- package/dist/src/mcp-server.js +263 -54
- package/dist/src/mcp-server.js.map +1 -1
- package/dist/src/oauth-provider.d.ts +92 -0
- package/dist/src/oauth-provider.d.ts.map +1 -0
- package/dist/src/oauth-provider.js +588 -0
- package/dist/src/oauth-provider.js.map +1 -0
- package/dist/src/openapi-parser.d.ts +16 -0
- package/dist/src/openapi-parser.d.ts.map +1 -1
- package/dist/src/openapi-parser.js +141 -6
- package/dist/src/openapi-parser.js.map +1 -1
- package/dist/src/profile-loader.d.ts +2 -2
- package/dist/src/profile-loader.d.ts.map +1 -1
- package/dist/src/profile-loader.js +45 -24
- package/dist/src/profile-loader.js.map +1 -1
- package/dist/src/testing/fixtures.d.ts +32 -0
- package/dist/src/testing/fixtures.d.ts.map +1 -1
- package/dist/src/testing/fixtures.js +26 -0
- package/dist/src/testing/fixtures.js.map +1 -1
- package/dist/src/testing/mock-gitlab-server.d.ts.map +1 -1
- package/dist/src/testing/mock-gitlab-server.js +131 -1
- package/dist/src/testing/mock-gitlab-server.js.map +1 -1
- package/dist/src/types/http-transport.d.ts +16 -0
- package/dist/src/types/http-transport.d.ts.map +1 -1
- package/dist/src/types/openapi.d.ts +5 -0
- package/dist/src/types/openapi.d.ts.map +1 -1
- package/dist/src/types/profile.d.ts +112 -3
- package/dist/src/types/profile.d.ts.map +1 -1
- package/dist/src/validation-utils.d.ts +12 -0
- package/dist/src/validation-utils.d.ts.map +1 -1
- package/dist/src/validation-utils.js +17 -0
- package/dist/src/validation-utils.js.map +1 -1
- package/package.json +7 -3
- package/profile-schema.json +169 -7
- package/dist/composite-executor.d.ts +0 -65
- package/dist/composite-executor.d.ts.map +0 -1
- package/dist/composite-executor.js +0 -147
- package/dist/composite-executor.js.map +0 -1
- package/dist/constants.d.ts +0 -36
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js +0 -36
- package/dist/constants.js.map +0 -1
- package/dist/http-transport.d.ts +0 -195
- package/dist/http-transport.d.ts.map +0 -1
- package/dist/http-transport.js +0 -760
- package/dist/http-transport.js.map +0 -1
- package/dist/interceptors.d.ts +0 -74
- package/dist/interceptors.d.ts.map +0 -1
- package/dist/interceptors.js +0 -220
- package/dist/interceptors.js.map +0 -1
- package/dist/logger.d.ts +0 -81
- package/dist/logger.d.ts.map +0 -1
- package/dist/logger.js +0 -264
- package/dist/logger.js.map +0 -1
- package/dist/mcp-server.d.ts +0 -110
- package/dist/mcp-server.d.ts.map +0 -1
- package/dist/mcp-server.js +0 -568
- package/dist/mcp-server.js.map +0 -1
- package/dist/metrics.d.ts +0 -86
- package/dist/metrics.d.ts.map +0 -1
- package/dist/metrics.js +0 -229
- package/dist/metrics.js.map +0 -1
- package/dist/openapi-parser.d.ts +0 -35
- package/dist/openapi-parser.d.ts.map +0 -1
- package/dist/openapi-parser.js +0 -160
- package/dist/openapi-parser.js.map +0 -1
- package/dist/profile-loader.d.ts +0 -25
- package/dist/profile-loader.d.ts.map +0 -1
- package/dist/profile-loader.js +0 -134
- package/dist/profile-loader.js.map +0 -1
- package/dist/schema-validator.d.ts +0 -32
- package/dist/schema-validator.d.ts.map +0 -1
- package/dist/schema-validator.js +0 -126
- package/dist/schema-validator.js.map +0 -1
- package/dist/testing/fixtures.d.ts +0 -186
- package/dist/testing/fixtures.d.ts.map +0 -1
- package/dist/testing/fixtures.js +0 -135
- package/dist/testing/fixtures.js.map +0 -1
- package/dist/testing/http-integration.test.d.ts +0 -7
- package/dist/testing/http-integration.test.d.ts.map +0 -1
- package/dist/testing/http-integration.test.js +0 -383
- package/dist/testing/http-integration.test.js.map +0 -1
- package/dist/testing/http-multiuser.test.d.ts +0 -10
- package/dist/testing/http-multiuser.test.d.ts.map +0 -1
- package/dist/testing/http-multiuser.test.js +0 -255
- package/dist/testing/http-multiuser.test.js.map +0 -1
- package/dist/testing/integration.test.d.ts +0 -8
- package/dist/testing/integration.test.d.ts.map +0 -1
- package/dist/testing/integration.test.js +0 -247
- package/dist/testing/integration.test.js.map +0 -1
- package/dist/testing/mock-gitlab-server.d.ts +0 -34
- package/dist/testing/mock-gitlab-server.d.ts.map +0 -1
- package/dist/testing/mock-gitlab-server.js +0 -224
- package/dist/testing/mock-gitlab-server.js.map +0 -1
- package/dist/testing/test-types.d.ts +0 -59
- package/dist/testing/test-types.d.ts.map +0 -1
- package/dist/testing/test-types.js +0 -7
- package/dist/testing/test-types.js.map +0 -1
- package/dist/tool-generator.d.ts +0 -43
- package/dist/tool-generator.d.ts.map +0 -1
- package/dist/tool-generator.js +0 -123
- package/dist/tool-generator.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/types/http-transport.d.ts +0 -39
- package/dist/types/http-transport.d.ts.map +0 -1
- package/dist/types/http-transport.js +0 -8
- package/dist/types/http-transport.js.map +0 -1
- package/dist/types/openapi.d.ts +0 -50
- package/dist/types/openapi.d.ts.map +0 -1
- package/dist/types/openapi.js +0 -9
- package/dist/types/openapi.js.map +0 -1
- package/dist/types/profile.d.ts +0 -76
- package/dist/types/profile.d.ts.map +0 -1
- package/dist/types/profile.js +0 -9
- package/dist/types/profile.js.map +0 -1
|
@@ -50,22 +50,6 @@ export declare const parameterDefinitionSchema: z.ZodObject<{
|
|
|
50
50
|
default?: unknown;
|
|
51
51
|
example?: unknown;
|
|
52
52
|
}>;
|
|
53
|
-
export declare const authInterceptorSchema: z.ZodObject<{
|
|
54
|
-
type: z.ZodUnion<[z.ZodLiteral<"bearer">, z.ZodLiteral<"query">, z.ZodLiteral<"custom-header">]>;
|
|
55
|
-
header_name: z.ZodOptional<z.ZodString>;
|
|
56
|
-
query_param: z.ZodOptional<z.ZodString>;
|
|
57
|
-
value_from_env: z.ZodString;
|
|
58
|
-
}, "strip", z.ZodTypeAny, {
|
|
59
|
-
type: "bearer" | "query" | "custom-header";
|
|
60
|
-
value_from_env: string;
|
|
61
|
-
header_name?: string | undefined;
|
|
62
|
-
query_param?: string | undefined;
|
|
63
|
-
}, {
|
|
64
|
-
type: "bearer" | "query" | "custom-header";
|
|
65
|
-
value_from_env: string;
|
|
66
|
-
header_name?: string | undefined;
|
|
67
|
-
query_param?: string | undefined;
|
|
68
|
-
}>;
|
|
69
53
|
export declare const baseUrlConfigSchema: z.ZodObject<{
|
|
70
54
|
value_from_env: z.ZodString;
|
|
71
55
|
default: z.ZodOptional<z.ZodString>;
|
|
@@ -109,6 +93,40 @@ export declare const retryConfigSchema: z.ZodObject<{
|
|
|
109
93
|
backoff_ms: number[];
|
|
110
94
|
retry_on_status: number[];
|
|
111
95
|
}>;
|
|
96
|
+
export declare const oAuthConfigSchema: z.ZodObject<{
|
|
97
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
98
|
+
authorization_endpoint: z.ZodOptional<z.ZodString>;
|
|
99
|
+
token_endpoint: z.ZodOptional<z.ZodString>;
|
|
100
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
101
|
+
client_secret: z.ZodOptional<z.ZodString>;
|
|
102
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
103
|
+
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
104
|
+
registration_endpoint: z.ZodOptional<z.ZodString>;
|
|
105
|
+
introspection_endpoint: z.ZodOptional<z.ZodString>;
|
|
106
|
+
revocation_endpoint: z.ZodOptional<z.ZodString>;
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
issuer?: string | undefined;
|
|
109
|
+
authorization_endpoint?: string | undefined;
|
|
110
|
+
token_endpoint?: string | undefined;
|
|
111
|
+
client_id?: string | undefined;
|
|
112
|
+
client_secret?: string | undefined;
|
|
113
|
+
scopes?: string[] | undefined;
|
|
114
|
+
redirect_uri?: string | undefined;
|
|
115
|
+
registration_endpoint?: string | undefined;
|
|
116
|
+
introspection_endpoint?: string | undefined;
|
|
117
|
+
revocation_endpoint?: string | undefined;
|
|
118
|
+
}, {
|
|
119
|
+
issuer?: string | undefined;
|
|
120
|
+
authorization_endpoint?: string | undefined;
|
|
121
|
+
token_endpoint?: string | undefined;
|
|
122
|
+
client_id?: string | undefined;
|
|
123
|
+
client_secret?: string | undefined;
|
|
124
|
+
scopes?: string[] | undefined;
|
|
125
|
+
redirect_uri?: string | undefined;
|
|
126
|
+
registration_endpoint?: string | undefined;
|
|
127
|
+
introspection_endpoint?: string | undefined;
|
|
128
|
+
revocation_endpoint?: string | undefined;
|
|
129
|
+
}>;
|
|
112
130
|
export declare const toolDefinitionSchema: z.ZodObject<{
|
|
113
131
|
name: z.ZodString;
|
|
114
132
|
description: z.ZodString;
|
|
@@ -219,23 +237,318 @@ export declare const toolDefinitionSchema: z.ZodObject<{
|
|
|
219
237
|
metadata_params?: string[] | undefined;
|
|
220
238
|
response_fields?: Record<string, string[]> | undefined;
|
|
221
239
|
}>;
|
|
240
|
+
export declare const authInterceptorSchema: z.ZodObject<{
|
|
241
|
+
type: z.ZodUnion<[z.ZodLiteral<"bearer">, z.ZodLiteral<"query">, z.ZodLiteral<"custom-header">, z.ZodLiteral<"oauth">]>;
|
|
242
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
243
|
+
header_name: z.ZodOptional<z.ZodString>;
|
|
244
|
+
query_param: z.ZodOptional<z.ZodString>;
|
|
245
|
+
value_from_env: z.ZodOptional<z.ZodString>;
|
|
246
|
+
oauth_config: z.ZodOptional<z.ZodObject<{
|
|
247
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
248
|
+
authorization_endpoint: z.ZodOptional<z.ZodString>;
|
|
249
|
+
token_endpoint: z.ZodOptional<z.ZodString>;
|
|
250
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
251
|
+
client_secret: z.ZodOptional<z.ZodString>;
|
|
252
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
253
|
+
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
254
|
+
registration_endpoint: z.ZodOptional<z.ZodString>;
|
|
255
|
+
introspection_endpoint: z.ZodOptional<z.ZodString>;
|
|
256
|
+
revocation_endpoint: z.ZodOptional<z.ZodString>;
|
|
257
|
+
}, "strip", z.ZodTypeAny, {
|
|
258
|
+
issuer?: string | undefined;
|
|
259
|
+
authorization_endpoint?: string | undefined;
|
|
260
|
+
token_endpoint?: string | undefined;
|
|
261
|
+
client_id?: string | undefined;
|
|
262
|
+
client_secret?: string | undefined;
|
|
263
|
+
scopes?: string[] | undefined;
|
|
264
|
+
redirect_uri?: string | undefined;
|
|
265
|
+
registration_endpoint?: string | undefined;
|
|
266
|
+
introspection_endpoint?: string | undefined;
|
|
267
|
+
revocation_endpoint?: string | undefined;
|
|
268
|
+
}, {
|
|
269
|
+
issuer?: string | undefined;
|
|
270
|
+
authorization_endpoint?: string | undefined;
|
|
271
|
+
token_endpoint?: string | undefined;
|
|
272
|
+
client_id?: string | undefined;
|
|
273
|
+
client_secret?: string | undefined;
|
|
274
|
+
scopes?: string[] | undefined;
|
|
275
|
+
redirect_uri?: string | undefined;
|
|
276
|
+
registration_endpoint?: string | undefined;
|
|
277
|
+
introspection_endpoint?: string | undefined;
|
|
278
|
+
revocation_endpoint?: string | undefined;
|
|
279
|
+
}>>;
|
|
280
|
+
oauth_rate_limit: z.ZodOptional<z.ZodObject<{
|
|
281
|
+
max_requests: z.ZodNumber;
|
|
282
|
+
window_ms: z.ZodNumber;
|
|
283
|
+
}, "strip", z.ZodTypeAny, {
|
|
284
|
+
max_requests: number;
|
|
285
|
+
window_ms: number;
|
|
286
|
+
}, {
|
|
287
|
+
max_requests: number;
|
|
288
|
+
window_ms: number;
|
|
289
|
+
}>>;
|
|
290
|
+
validation_endpoint: z.ZodOptional<z.ZodString>;
|
|
291
|
+
validation_method: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"GET">, z.ZodLiteral<"HEAD">]>>;
|
|
292
|
+
validation_timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
293
|
+
}, "strip", z.ZodTypeAny, {
|
|
294
|
+
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
295
|
+
value_from_env?: string | undefined;
|
|
296
|
+
query_param?: string | undefined;
|
|
297
|
+
header_name?: string | undefined;
|
|
298
|
+
priority?: number | undefined;
|
|
299
|
+
oauth_config?: {
|
|
300
|
+
issuer?: string | undefined;
|
|
301
|
+
authorization_endpoint?: string | undefined;
|
|
302
|
+
token_endpoint?: string | undefined;
|
|
303
|
+
client_id?: string | undefined;
|
|
304
|
+
client_secret?: string | undefined;
|
|
305
|
+
scopes?: string[] | undefined;
|
|
306
|
+
redirect_uri?: string | undefined;
|
|
307
|
+
registration_endpoint?: string | undefined;
|
|
308
|
+
introspection_endpoint?: string | undefined;
|
|
309
|
+
revocation_endpoint?: string | undefined;
|
|
310
|
+
} | undefined;
|
|
311
|
+
oauth_rate_limit?: {
|
|
312
|
+
max_requests: number;
|
|
313
|
+
window_ms: number;
|
|
314
|
+
} | undefined;
|
|
315
|
+
validation_endpoint?: string | undefined;
|
|
316
|
+
validation_method?: "GET" | "HEAD" | undefined;
|
|
317
|
+
validation_timeout_ms?: number | undefined;
|
|
318
|
+
}, {
|
|
319
|
+
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
320
|
+
value_from_env?: string | undefined;
|
|
321
|
+
query_param?: string | undefined;
|
|
322
|
+
header_name?: string | undefined;
|
|
323
|
+
priority?: number | undefined;
|
|
324
|
+
oauth_config?: {
|
|
325
|
+
issuer?: string | undefined;
|
|
326
|
+
authorization_endpoint?: string | undefined;
|
|
327
|
+
token_endpoint?: string | undefined;
|
|
328
|
+
client_id?: string | undefined;
|
|
329
|
+
client_secret?: string | undefined;
|
|
330
|
+
scopes?: string[] | undefined;
|
|
331
|
+
redirect_uri?: string | undefined;
|
|
332
|
+
registration_endpoint?: string | undefined;
|
|
333
|
+
introspection_endpoint?: string | undefined;
|
|
334
|
+
revocation_endpoint?: string | undefined;
|
|
335
|
+
} | undefined;
|
|
336
|
+
oauth_rate_limit?: {
|
|
337
|
+
max_requests: number;
|
|
338
|
+
window_ms: number;
|
|
339
|
+
} | undefined;
|
|
340
|
+
validation_endpoint?: string | undefined;
|
|
341
|
+
validation_method?: "GET" | "HEAD" | undefined;
|
|
342
|
+
validation_timeout_ms?: number | undefined;
|
|
343
|
+
}>;
|
|
222
344
|
export declare const interceptorConfigSchema: z.ZodObject<{
|
|
223
|
-
auth: z.ZodOptional<z.ZodObject<{
|
|
224
|
-
type: z.ZodUnion<[z.ZodLiteral<"bearer">, z.ZodLiteral<"query">, z.ZodLiteral<"custom-header">]>;
|
|
345
|
+
auth: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
346
|
+
type: z.ZodUnion<[z.ZodLiteral<"bearer">, z.ZodLiteral<"query">, z.ZodLiteral<"custom-header">, z.ZodLiteral<"oauth">]>;
|
|
347
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
225
348
|
header_name: z.ZodOptional<z.ZodString>;
|
|
226
349
|
query_param: z.ZodOptional<z.ZodString>;
|
|
227
|
-
value_from_env: z.ZodString
|
|
350
|
+
value_from_env: z.ZodOptional<z.ZodString>;
|
|
351
|
+
oauth_config: z.ZodOptional<z.ZodObject<{
|
|
352
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
353
|
+
authorization_endpoint: z.ZodOptional<z.ZodString>;
|
|
354
|
+
token_endpoint: z.ZodOptional<z.ZodString>;
|
|
355
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
356
|
+
client_secret: z.ZodOptional<z.ZodString>;
|
|
357
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
358
|
+
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
359
|
+
registration_endpoint: z.ZodOptional<z.ZodString>;
|
|
360
|
+
introspection_endpoint: z.ZodOptional<z.ZodString>;
|
|
361
|
+
revocation_endpoint: z.ZodOptional<z.ZodString>;
|
|
362
|
+
}, "strip", z.ZodTypeAny, {
|
|
363
|
+
issuer?: string | undefined;
|
|
364
|
+
authorization_endpoint?: string | undefined;
|
|
365
|
+
token_endpoint?: string | undefined;
|
|
366
|
+
client_id?: string | undefined;
|
|
367
|
+
client_secret?: string | undefined;
|
|
368
|
+
scopes?: string[] | undefined;
|
|
369
|
+
redirect_uri?: string | undefined;
|
|
370
|
+
registration_endpoint?: string | undefined;
|
|
371
|
+
introspection_endpoint?: string | undefined;
|
|
372
|
+
revocation_endpoint?: string | undefined;
|
|
373
|
+
}, {
|
|
374
|
+
issuer?: string | undefined;
|
|
375
|
+
authorization_endpoint?: string | undefined;
|
|
376
|
+
token_endpoint?: string | undefined;
|
|
377
|
+
client_id?: string | undefined;
|
|
378
|
+
client_secret?: string | undefined;
|
|
379
|
+
scopes?: string[] | undefined;
|
|
380
|
+
redirect_uri?: string | undefined;
|
|
381
|
+
registration_endpoint?: string | undefined;
|
|
382
|
+
introspection_endpoint?: string | undefined;
|
|
383
|
+
revocation_endpoint?: string | undefined;
|
|
384
|
+
}>>;
|
|
385
|
+
oauth_rate_limit: z.ZodOptional<z.ZodObject<{
|
|
386
|
+
max_requests: z.ZodNumber;
|
|
387
|
+
window_ms: z.ZodNumber;
|
|
388
|
+
}, "strip", z.ZodTypeAny, {
|
|
389
|
+
max_requests: number;
|
|
390
|
+
window_ms: number;
|
|
391
|
+
}, {
|
|
392
|
+
max_requests: number;
|
|
393
|
+
window_ms: number;
|
|
394
|
+
}>>;
|
|
395
|
+
validation_endpoint: z.ZodOptional<z.ZodString>;
|
|
396
|
+
validation_method: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"GET">, z.ZodLiteral<"HEAD">]>>;
|
|
397
|
+
validation_timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
228
398
|
}, "strip", z.ZodTypeAny, {
|
|
229
|
-
type: "bearer" | "query" | "custom-header";
|
|
230
|
-
value_from_env
|
|
231
|
-
header_name?: string | undefined;
|
|
399
|
+
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
400
|
+
value_from_env?: string | undefined;
|
|
232
401
|
query_param?: string | undefined;
|
|
402
|
+
header_name?: string | undefined;
|
|
403
|
+
priority?: number | undefined;
|
|
404
|
+
oauth_config?: {
|
|
405
|
+
issuer?: string | undefined;
|
|
406
|
+
authorization_endpoint?: string | undefined;
|
|
407
|
+
token_endpoint?: string | undefined;
|
|
408
|
+
client_id?: string | undefined;
|
|
409
|
+
client_secret?: string | undefined;
|
|
410
|
+
scopes?: string[] | undefined;
|
|
411
|
+
redirect_uri?: string | undefined;
|
|
412
|
+
registration_endpoint?: string | undefined;
|
|
413
|
+
introspection_endpoint?: string | undefined;
|
|
414
|
+
revocation_endpoint?: string | undefined;
|
|
415
|
+
} | undefined;
|
|
416
|
+
oauth_rate_limit?: {
|
|
417
|
+
max_requests: number;
|
|
418
|
+
window_ms: number;
|
|
419
|
+
} | undefined;
|
|
420
|
+
validation_endpoint?: string | undefined;
|
|
421
|
+
validation_method?: "GET" | "HEAD" | undefined;
|
|
422
|
+
validation_timeout_ms?: number | undefined;
|
|
233
423
|
}, {
|
|
234
|
-
type: "bearer" | "query" | "custom-header";
|
|
235
|
-
value_from_env
|
|
424
|
+
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
425
|
+
value_from_env?: string | undefined;
|
|
426
|
+
query_param?: string | undefined;
|
|
236
427
|
header_name?: string | undefined;
|
|
428
|
+
priority?: number | undefined;
|
|
429
|
+
oauth_config?: {
|
|
430
|
+
issuer?: string | undefined;
|
|
431
|
+
authorization_endpoint?: string | undefined;
|
|
432
|
+
token_endpoint?: string | undefined;
|
|
433
|
+
client_id?: string | undefined;
|
|
434
|
+
client_secret?: string | undefined;
|
|
435
|
+
scopes?: string[] | undefined;
|
|
436
|
+
redirect_uri?: string | undefined;
|
|
437
|
+
registration_endpoint?: string | undefined;
|
|
438
|
+
introspection_endpoint?: string | undefined;
|
|
439
|
+
revocation_endpoint?: string | undefined;
|
|
440
|
+
} | undefined;
|
|
441
|
+
oauth_rate_limit?: {
|
|
442
|
+
max_requests: number;
|
|
443
|
+
window_ms: number;
|
|
444
|
+
} | undefined;
|
|
445
|
+
validation_endpoint?: string | undefined;
|
|
446
|
+
validation_method?: "GET" | "HEAD" | undefined;
|
|
447
|
+
validation_timeout_ms?: number | undefined;
|
|
448
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
449
|
+
type: z.ZodUnion<[z.ZodLiteral<"bearer">, z.ZodLiteral<"query">, z.ZodLiteral<"custom-header">, z.ZodLiteral<"oauth">]>;
|
|
450
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
451
|
+
header_name: z.ZodOptional<z.ZodString>;
|
|
452
|
+
query_param: z.ZodOptional<z.ZodString>;
|
|
453
|
+
value_from_env: z.ZodOptional<z.ZodString>;
|
|
454
|
+
oauth_config: z.ZodOptional<z.ZodObject<{
|
|
455
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
456
|
+
authorization_endpoint: z.ZodOptional<z.ZodString>;
|
|
457
|
+
token_endpoint: z.ZodOptional<z.ZodString>;
|
|
458
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
459
|
+
client_secret: z.ZodOptional<z.ZodString>;
|
|
460
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
461
|
+
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
462
|
+
registration_endpoint: z.ZodOptional<z.ZodString>;
|
|
463
|
+
introspection_endpoint: z.ZodOptional<z.ZodString>;
|
|
464
|
+
revocation_endpoint: z.ZodOptional<z.ZodString>;
|
|
465
|
+
}, "strip", z.ZodTypeAny, {
|
|
466
|
+
issuer?: string | undefined;
|
|
467
|
+
authorization_endpoint?: string | undefined;
|
|
468
|
+
token_endpoint?: string | undefined;
|
|
469
|
+
client_id?: string | undefined;
|
|
470
|
+
client_secret?: string | undefined;
|
|
471
|
+
scopes?: string[] | undefined;
|
|
472
|
+
redirect_uri?: string | undefined;
|
|
473
|
+
registration_endpoint?: string | undefined;
|
|
474
|
+
introspection_endpoint?: string | undefined;
|
|
475
|
+
revocation_endpoint?: string | undefined;
|
|
476
|
+
}, {
|
|
477
|
+
issuer?: string | undefined;
|
|
478
|
+
authorization_endpoint?: string | undefined;
|
|
479
|
+
token_endpoint?: string | undefined;
|
|
480
|
+
client_id?: string | undefined;
|
|
481
|
+
client_secret?: string | undefined;
|
|
482
|
+
scopes?: string[] | undefined;
|
|
483
|
+
redirect_uri?: string | undefined;
|
|
484
|
+
registration_endpoint?: string | undefined;
|
|
485
|
+
introspection_endpoint?: string | undefined;
|
|
486
|
+
revocation_endpoint?: string | undefined;
|
|
487
|
+
}>>;
|
|
488
|
+
oauth_rate_limit: z.ZodOptional<z.ZodObject<{
|
|
489
|
+
max_requests: z.ZodNumber;
|
|
490
|
+
window_ms: z.ZodNumber;
|
|
491
|
+
}, "strip", z.ZodTypeAny, {
|
|
492
|
+
max_requests: number;
|
|
493
|
+
window_ms: number;
|
|
494
|
+
}, {
|
|
495
|
+
max_requests: number;
|
|
496
|
+
window_ms: number;
|
|
497
|
+
}>>;
|
|
498
|
+
validation_endpoint: z.ZodOptional<z.ZodString>;
|
|
499
|
+
validation_method: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"GET">, z.ZodLiteral<"HEAD">]>>;
|
|
500
|
+
validation_timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
501
|
+
}, "strip", z.ZodTypeAny, {
|
|
502
|
+
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
503
|
+
value_from_env?: string | undefined;
|
|
237
504
|
query_param?: string | undefined;
|
|
238
|
-
|
|
505
|
+
header_name?: string | undefined;
|
|
506
|
+
priority?: number | undefined;
|
|
507
|
+
oauth_config?: {
|
|
508
|
+
issuer?: string | undefined;
|
|
509
|
+
authorization_endpoint?: string | undefined;
|
|
510
|
+
token_endpoint?: string | undefined;
|
|
511
|
+
client_id?: string | undefined;
|
|
512
|
+
client_secret?: string | undefined;
|
|
513
|
+
scopes?: string[] | undefined;
|
|
514
|
+
redirect_uri?: string | undefined;
|
|
515
|
+
registration_endpoint?: string | undefined;
|
|
516
|
+
introspection_endpoint?: string | undefined;
|
|
517
|
+
revocation_endpoint?: string | undefined;
|
|
518
|
+
} | undefined;
|
|
519
|
+
oauth_rate_limit?: {
|
|
520
|
+
max_requests: number;
|
|
521
|
+
window_ms: number;
|
|
522
|
+
} | undefined;
|
|
523
|
+
validation_endpoint?: string | undefined;
|
|
524
|
+
validation_method?: "GET" | "HEAD" | undefined;
|
|
525
|
+
validation_timeout_ms?: number | undefined;
|
|
526
|
+
}, {
|
|
527
|
+
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
528
|
+
value_from_env?: string | undefined;
|
|
529
|
+
query_param?: string | undefined;
|
|
530
|
+
header_name?: string | undefined;
|
|
531
|
+
priority?: number | undefined;
|
|
532
|
+
oauth_config?: {
|
|
533
|
+
issuer?: string | undefined;
|
|
534
|
+
authorization_endpoint?: string | undefined;
|
|
535
|
+
token_endpoint?: string | undefined;
|
|
536
|
+
client_id?: string | undefined;
|
|
537
|
+
client_secret?: string | undefined;
|
|
538
|
+
scopes?: string[] | undefined;
|
|
539
|
+
redirect_uri?: string | undefined;
|
|
540
|
+
registration_endpoint?: string | undefined;
|
|
541
|
+
introspection_endpoint?: string | undefined;
|
|
542
|
+
revocation_endpoint?: string | undefined;
|
|
543
|
+
} | undefined;
|
|
544
|
+
oauth_rate_limit?: {
|
|
545
|
+
max_requests: number;
|
|
546
|
+
window_ms: number;
|
|
547
|
+
} | undefined;
|
|
548
|
+
validation_endpoint?: string | undefined;
|
|
549
|
+
validation_method?: "GET" | "HEAD" | undefined;
|
|
550
|
+
validation_timeout_ms?: number | undefined;
|
|
551
|
+
}>, "many">]>>;
|
|
239
552
|
base_url: z.ZodOptional<z.ZodObject<{
|
|
240
553
|
value_from_env: z.ZodString;
|
|
241
554
|
default: z.ZodOptional<z.ZodString>;
|
|
@@ -282,11 +595,56 @@ export declare const interceptorConfigSchema: z.ZodObject<{
|
|
|
282
595
|
array_format: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"brackets">, z.ZodLiteral<"indices">, z.ZodLiteral<"repeat">, z.ZodLiteral<"comma">]>>;
|
|
283
596
|
}, "strip", z.ZodTypeAny, {
|
|
284
597
|
auth?: {
|
|
285
|
-
type: "bearer" | "query" | "custom-header";
|
|
286
|
-
value_from_env
|
|
598
|
+
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
599
|
+
value_from_env?: string | undefined;
|
|
600
|
+
query_param?: string | undefined;
|
|
287
601
|
header_name?: string | undefined;
|
|
602
|
+
priority?: number | undefined;
|
|
603
|
+
oauth_config?: {
|
|
604
|
+
issuer?: string | undefined;
|
|
605
|
+
authorization_endpoint?: string | undefined;
|
|
606
|
+
token_endpoint?: string | undefined;
|
|
607
|
+
client_id?: string | undefined;
|
|
608
|
+
client_secret?: string | undefined;
|
|
609
|
+
scopes?: string[] | undefined;
|
|
610
|
+
redirect_uri?: string | undefined;
|
|
611
|
+
registration_endpoint?: string | undefined;
|
|
612
|
+
introspection_endpoint?: string | undefined;
|
|
613
|
+
revocation_endpoint?: string | undefined;
|
|
614
|
+
} | undefined;
|
|
615
|
+
oauth_rate_limit?: {
|
|
616
|
+
max_requests: number;
|
|
617
|
+
window_ms: number;
|
|
618
|
+
} | undefined;
|
|
619
|
+
validation_endpoint?: string | undefined;
|
|
620
|
+
validation_method?: "GET" | "HEAD" | undefined;
|
|
621
|
+
validation_timeout_ms?: number | undefined;
|
|
622
|
+
} | {
|
|
623
|
+
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
624
|
+
value_from_env?: string | undefined;
|
|
288
625
|
query_param?: string | undefined;
|
|
289
|
-
|
|
626
|
+
header_name?: string | undefined;
|
|
627
|
+
priority?: number | undefined;
|
|
628
|
+
oauth_config?: {
|
|
629
|
+
issuer?: string | undefined;
|
|
630
|
+
authorization_endpoint?: string | undefined;
|
|
631
|
+
token_endpoint?: string | undefined;
|
|
632
|
+
client_id?: string | undefined;
|
|
633
|
+
client_secret?: string | undefined;
|
|
634
|
+
scopes?: string[] | undefined;
|
|
635
|
+
redirect_uri?: string | undefined;
|
|
636
|
+
registration_endpoint?: string | undefined;
|
|
637
|
+
introspection_endpoint?: string | undefined;
|
|
638
|
+
revocation_endpoint?: string | undefined;
|
|
639
|
+
} | undefined;
|
|
640
|
+
oauth_rate_limit?: {
|
|
641
|
+
max_requests: number;
|
|
642
|
+
window_ms: number;
|
|
643
|
+
} | undefined;
|
|
644
|
+
validation_endpoint?: string | undefined;
|
|
645
|
+
validation_method?: "GET" | "HEAD" | undefined;
|
|
646
|
+
validation_timeout_ms?: number | undefined;
|
|
647
|
+
}[] | undefined;
|
|
290
648
|
base_url?: {
|
|
291
649
|
value_from_env: string;
|
|
292
650
|
default?: string | undefined;
|
|
@@ -305,11 +663,56 @@ export declare const interceptorConfigSchema: z.ZodObject<{
|
|
|
305
663
|
array_format?: "brackets" | "indices" | "repeat" | "comma" | undefined;
|
|
306
664
|
}, {
|
|
307
665
|
auth?: {
|
|
308
|
-
type: "bearer" | "query" | "custom-header";
|
|
309
|
-
value_from_env
|
|
666
|
+
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
667
|
+
value_from_env?: string | undefined;
|
|
668
|
+
query_param?: string | undefined;
|
|
310
669
|
header_name?: string | undefined;
|
|
670
|
+
priority?: number | undefined;
|
|
671
|
+
oauth_config?: {
|
|
672
|
+
issuer?: string | undefined;
|
|
673
|
+
authorization_endpoint?: string | undefined;
|
|
674
|
+
token_endpoint?: string | undefined;
|
|
675
|
+
client_id?: string | undefined;
|
|
676
|
+
client_secret?: string | undefined;
|
|
677
|
+
scopes?: string[] | undefined;
|
|
678
|
+
redirect_uri?: string | undefined;
|
|
679
|
+
registration_endpoint?: string | undefined;
|
|
680
|
+
introspection_endpoint?: string | undefined;
|
|
681
|
+
revocation_endpoint?: string | undefined;
|
|
682
|
+
} | undefined;
|
|
683
|
+
oauth_rate_limit?: {
|
|
684
|
+
max_requests: number;
|
|
685
|
+
window_ms: number;
|
|
686
|
+
} | undefined;
|
|
687
|
+
validation_endpoint?: string | undefined;
|
|
688
|
+
validation_method?: "GET" | "HEAD" | undefined;
|
|
689
|
+
validation_timeout_ms?: number | undefined;
|
|
690
|
+
} | {
|
|
691
|
+
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
692
|
+
value_from_env?: string | undefined;
|
|
311
693
|
query_param?: string | undefined;
|
|
312
|
-
|
|
694
|
+
header_name?: string | undefined;
|
|
695
|
+
priority?: number | undefined;
|
|
696
|
+
oauth_config?: {
|
|
697
|
+
issuer?: string | undefined;
|
|
698
|
+
authorization_endpoint?: string | undefined;
|
|
699
|
+
token_endpoint?: string | undefined;
|
|
700
|
+
client_id?: string | undefined;
|
|
701
|
+
client_secret?: string | undefined;
|
|
702
|
+
scopes?: string[] | undefined;
|
|
703
|
+
redirect_uri?: string | undefined;
|
|
704
|
+
registration_endpoint?: string | undefined;
|
|
705
|
+
introspection_endpoint?: string | undefined;
|
|
706
|
+
revocation_endpoint?: string | undefined;
|
|
707
|
+
} | undefined;
|
|
708
|
+
oauth_rate_limit?: {
|
|
709
|
+
max_requests: number;
|
|
710
|
+
window_ms: number;
|
|
711
|
+
} | undefined;
|
|
712
|
+
validation_endpoint?: string | undefined;
|
|
713
|
+
validation_method?: "GET" | "HEAD" | undefined;
|
|
714
|
+
validation_timeout_ms?: number | undefined;
|
|
715
|
+
}[] | undefined;
|
|
313
716
|
base_url?: {
|
|
314
717
|
value_from_env: string;
|
|
315
718
|
default?: string | undefined;
|
|
@@ -441,22 +844,213 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
441
844
|
response_fields?: Record<string, string[]> | undefined;
|
|
442
845
|
}>, "many">;
|
|
443
846
|
interceptors: z.ZodOptional<z.ZodObject<{
|
|
444
|
-
auth: z.ZodOptional<z.ZodObject<{
|
|
445
|
-
type: z.ZodUnion<[z.ZodLiteral<"bearer">, z.ZodLiteral<"query">, z.ZodLiteral<"custom-header">]>;
|
|
847
|
+
auth: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
848
|
+
type: z.ZodUnion<[z.ZodLiteral<"bearer">, z.ZodLiteral<"query">, z.ZodLiteral<"custom-header">, z.ZodLiteral<"oauth">]>;
|
|
849
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
446
850
|
header_name: z.ZodOptional<z.ZodString>;
|
|
447
851
|
query_param: z.ZodOptional<z.ZodString>;
|
|
448
|
-
value_from_env: z.ZodString
|
|
852
|
+
value_from_env: z.ZodOptional<z.ZodString>;
|
|
853
|
+
oauth_config: z.ZodOptional<z.ZodObject<{
|
|
854
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
855
|
+
authorization_endpoint: z.ZodOptional<z.ZodString>;
|
|
856
|
+
token_endpoint: z.ZodOptional<z.ZodString>;
|
|
857
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
858
|
+
client_secret: z.ZodOptional<z.ZodString>;
|
|
859
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
860
|
+
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
861
|
+
registration_endpoint: z.ZodOptional<z.ZodString>;
|
|
862
|
+
introspection_endpoint: z.ZodOptional<z.ZodString>;
|
|
863
|
+
revocation_endpoint: z.ZodOptional<z.ZodString>;
|
|
864
|
+
}, "strip", z.ZodTypeAny, {
|
|
865
|
+
issuer?: string | undefined;
|
|
866
|
+
authorization_endpoint?: string | undefined;
|
|
867
|
+
token_endpoint?: string | undefined;
|
|
868
|
+
client_id?: string | undefined;
|
|
869
|
+
client_secret?: string | undefined;
|
|
870
|
+
scopes?: string[] | undefined;
|
|
871
|
+
redirect_uri?: string | undefined;
|
|
872
|
+
registration_endpoint?: string | undefined;
|
|
873
|
+
introspection_endpoint?: string | undefined;
|
|
874
|
+
revocation_endpoint?: string | undefined;
|
|
875
|
+
}, {
|
|
876
|
+
issuer?: string | undefined;
|
|
877
|
+
authorization_endpoint?: string | undefined;
|
|
878
|
+
token_endpoint?: string | undefined;
|
|
879
|
+
client_id?: string | undefined;
|
|
880
|
+
client_secret?: string | undefined;
|
|
881
|
+
scopes?: string[] | undefined;
|
|
882
|
+
redirect_uri?: string | undefined;
|
|
883
|
+
registration_endpoint?: string | undefined;
|
|
884
|
+
introspection_endpoint?: string | undefined;
|
|
885
|
+
revocation_endpoint?: string | undefined;
|
|
886
|
+
}>>;
|
|
887
|
+
oauth_rate_limit: z.ZodOptional<z.ZodObject<{
|
|
888
|
+
max_requests: z.ZodNumber;
|
|
889
|
+
window_ms: z.ZodNumber;
|
|
890
|
+
}, "strip", z.ZodTypeAny, {
|
|
891
|
+
max_requests: number;
|
|
892
|
+
window_ms: number;
|
|
893
|
+
}, {
|
|
894
|
+
max_requests: number;
|
|
895
|
+
window_ms: number;
|
|
896
|
+
}>>;
|
|
897
|
+
validation_endpoint: z.ZodOptional<z.ZodString>;
|
|
898
|
+
validation_method: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"GET">, z.ZodLiteral<"HEAD">]>>;
|
|
899
|
+
validation_timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
449
900
|
}, "strip", z.ZodTypeAny, {
|
|
450
|
-
type: "bearer" | "query" | "custom-header";
|
|
451
|
-
value_from_env
|
|
452
|
-
header_name?: string | undefined;
|
|
901
|
+
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
902
|
+
value_from_env?: string | undefined;
|
|
453
903
|
query_param?: string | undefined;
|
|
904
|
+
header_name?: string | undefined;
|
|
905
|
+
priority?: number | undefined;
|
|
906
|
+
oauth_config?: {
|
|
907
|
+
issuer?: string | undefined;
|
|
908
|
+
authorization_endpoint?: string | undefined;
|
|
909
|
+
token_endpoint?: string | undefined;
|
|
910
|
+
client_id?: string | undefined;
|
|
911
|
+
client_secret?: string | undefined;
|
|
912
|
+
scopes?: string[] | undefined;
|
|
913
|
+
redirect_uri?: string | undefined;
|
|
914
|
+
registration_endpoint?: string | undefined;
|
|
915
|
+
introspection_endpoint?: string | undefined;
|
|
916
|
+
revocation_endpoint?: string | undefined;
|
|
917
|
+
} | undefined;
|
|
918
|
+
oauth_rate_limit?: {
|
|
919
|
+
max_requests: number;
|
|
920
|
+
window_ms: number;
|
|
921
|
+
} | undefined;
|
|
922
|
+
validation_endpoint?: string | undefined;
|
|
923
|
+
validation_method?: "GET" | "HEAD" | undefined;
|
|
924
|
+
validation_timeout_ms?: number | undefined;
|
|
454
925
|
}, {
|
|
455
|
-
type: "bearer" | "query" | "custom-header";
|
|
456
|
-
value_from_env
|
|
926
|
+
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
927
|
+
value_from_env?: string | undefined;
|
|
928
|
+
query_param?: string | undefined;
|
|
929
|
+
header_name?: string | undefined;
|
|
930
|
+
priority?: number | undefined;
|
|
931
|
+
oauth_config?: {
|
|
932
|
+
issuer?: string | undefined;
|
|
933
|
+
authorization_endpoint?: string | undefined;
|
|
934
|
+
token_endpoint?: string | undefined;
|
|
935
|
+
client_id?: string | undefined;
|
|
936
|
+
client_secret?: string | undefined;
|
|
937
|
+
scopes?: string[] | undefined;
|
|
938
|
+
redirect_uri?: string | undefined;
|
|
939
|
+
registration_endpoint?: string | undefined;
|
|
940
|
+
introspection_endpoint?: string | undefined;
|
|
941
|
+
revocation_endpoint?: string | undefined;
|
|
942
|
+
} | undefined;
|
|
943
|
+
oauth_rate_limit?: {
|
|
944
|
+
max_requests: number;
|
|
945
|
+
window_ms: number;
|
|
946
|
+
} | undefined;
|
|
947
|
+
validation_endpoint?: string | undefined;
|
|
948
|
+
validation_method?: "GET" | "HEAD" | undefined;
|
|
949
|
+
validation_timeout_ms?: number | undefined;
|
|
950
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
951
|
+
type: z.ZodUnion<[z.ZodLiteral<"bearer">, z.ZodLiteral<"query">, z.ZodLiteral<"custom-header">, z.ZodLiteral<"oauth">]>;
|
|
952
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
953
|
+
header_name: z.ZodOptional<z.ZodString>;
|
|
954
|
+
query_param: z.ZodOptional<z.ZodString>;
|
|
955
|
+
value_from_env: z.ZodOptional<z.ZodString>;
|
|
956
|
+
oauth_config: z.ZodOptional<z.ZodObject<{
|
|
957
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
958
|
+
authorization_endpoint: z.ZodOptional<z.ZodString>;
|
|
959
|
+
token_endpoint: z.ZodOptional<z.ZodString>;
|
|
960
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
961
|
+
client_secret: z.ZodOptional<z.ZodString>;
|
|
962
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
963
|
+
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
964
|
+
registration_endpoint: z.ZodOptional<z.ZodString>;
|
|
965
|
+
introspection_endpoint: z.ZodOptional<z.ZodString>;
|
|
966
|
+
revocation_endpoint: z.ZodOptional<z.ZodString>;
|
|
967
|
+
}, "strip", z.ZodTypeAny, {
|
|
968
|
+
issuer?: string | undefined;
|
|
969
|
+
authorization_endpoint?: string | undefined;
|
|
970
|
+
token_endpoint?: string | undefined;
|
|
971
|
+
client_id?: string | undefined;
|
|
972
|
+
client_secret?: string | undefined;
|
|
973
|
+
scopes?: string[] | undefined;
|
|
974
|
+
redirect_uri?: string | undefined;
|
|
975
|
+
registration_endpoint?: string | undefined;
|
|
976
|
+
introspection_endpoint?: string | undefined;
|
|
977
|
+
revocation_endpoint?: string | undefined;
|
|
978
|
+
}, {
|
|
979
|
+
issuer?: string | undefined;
|
|
980
|
+
authorization_endpoint?: string | undefined;
|
|
981
|
+
token_endpoint?: string | undefined;
|
|
982
|
+
client_id?: string | undefined;
|
|
983
|
+
client_secret?: string | undefined;
|
|
984
|
+
scopes?: string[] | undefined;
|
|
985
|
+
redirect_uri?: string | undefined;
|
|
986
|
+
registration_endpoint?: string | undefined;
|
|
987
|
+
introspection_endpoint?: string | undefined;
|
|
988
|
+
revocation_endpoint?: string | undefined;
|
|
989
|
+
}>>;
|
|
990
|
+
oauth_rate_limit: z.ZodOptional<z.ZodObject<{
|
|
991
|
+
max_requests: z.ZodNumber;
|
|
992
|
+
window_ms: z.ZodNumber;
|
|
993
|
+
}, "strip", z.ZodTypeAny, {
|
|
994
|
+
max_requests: number;
|
|
995
|
+
window_ms: number;
|
|
996
|
+
}, {
|
|
997
|
+
max_requests: number;
|
|
998
|
+
window_ms: number;
|
|
999
|
+
}>>;
|
|
1000
|
+
validation_endpoint: z.ZodOptional<z.ZodString>;
|
|
1001
|
+
validation_method: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"GET">, z.ZodLiteral<"HEAD">]>>;
|
|
1002
|
+
validation_timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
1003
|
+
}, "strip", z.ZodTypeAny, {
|
|
1004
|
+
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
1005
|
+
value_from_env?: string | undefined;
|
|
1006
|
+
query_param?: string | undefined;
|
|
457
1007
|
header_name?: string | undefined;
|
|
1008
|
+
priority?: number | undefined;
|
|
1009
|
+
oauth_config?: {
|
|
1010
|
+
issuer?: string | undefined;
|
|
1011
|
+
authorization_endpoint?: string | undefined;
|
|
1012
|
+
token_endpoint?: string | undefined;
|
|
1013
|
+
client_id?: string | undefined;
|
|
1014
|
+
client_secret?: string | undefined;
|
|
1015
|
+
scopes?: string[] | undefined;
|
|
1016
|
+
redirect_uri?: string | undefined;
|
|
1017
|
+
registration_endpoint?: string | undefined;
|
|
1018
|
+
introspection_endpoint?: string | undefined;
|
|
1019
|
+
revocation_endpoint?: string | undefined;
|
|
1020
|
+
} | undefined;
|
|
1021
|
+
oauth_rate_limit?: {
|
|
1022
|
+
max_requests: number;
|
|
1023
|
+
window_ms: number;
|
|
1024
|
+
} | undefined;
|
|
1025
|
+
validation_endpoint?: string | undefined;
|
|
1026
|
+
validation_method?: "GET" | "HEAD" | undefined;
|
|
1027
|
+
validation_timeout_ms?: number | undefined;
|
|
1028
|
+
}, {
|
|
1029
|
+
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
1030
|
+
value_from_env?: string | undefined;
|
|
458
1031
|
query_param?: string | undefined;
|
|
459
|
-
|
|
1032
|
+
header_name?: string | undefined;
|
|
1033
|
+
priority?: number | undefined;
|
|
1034
|
+
oauth_config?: {
|
|
1035
|
+
issuer?: string | undefined;
|
|
1036
|
+
authorization_endpoint?: string | undefined;
|
|
1037
|
+
token_endpoint?: string | undefined;
|
|
1038
|
+
client_id?: string | undefined;
|
|
1039
|
+
client_secret?: string | undefined;
|
|
1040
|
+
scopes?: string[] | undefined;
|
|
1041
|
+
redirect_uri?: string | undefined;
|
|
1042
|
+
registration_endpoint?: string | undefined;
|
|
1043
|
+
introspection_endpoint?: string | undefined;
|
|
1044
|
+
revocation_endpoint?: string | undefined;
|
|
1045
|
+
} | undefined;
|
|
1046
|
+
oauth_rate_limit?: {
|
|
1047
|
+
max_requests: number;
|
|
1048
|
+
window_ms: number;
|
|
1049
|
+
} | undefined;
|
|
1050
|
+
validation_endpoint?: string | undefined;
|
|
1051
|
+
validation_method?: "GET" | "HEAD" | undefined;
|
|
1052
|
+
validation_timeout_ms?: number | undefined;
|
|
1053
|
+
}>, "many">]>>;
|
|
460
1054
|
base_url: z.ZodOptional<z.ZodObject<{
|
|
461
1055
|
value_from_env: z.ZodString;
|
|
462
1056
|
default: z.ZodOptional<z.ZodString>;
|
|
@@ -503,11 +1097,56 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
503
1097
|
array_format: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"brackets">, z.ZodLiteral<"indices">, z.ZodLiteral<"repeat">, z.ZodLiteral<"comma">]>>;
|
|
504
1098
|
}, "strip", z.ZodTypeAny, {
|
|
505
1099
|
auth?: {
|
|
506
|
-
type: "bearer" | "query" | "custom-header";
|
|
507
|
-
value_from_env
|
|
1100
|
+
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
1101
|
+
value_from_env?: string | undefined;
|
|
1102
|
+
query_param?: string | undefined;
|
|
508
1103
|
header_name?: string | undefined;
|
|
1104
|
+
priority?: number | undefined;
|
|
1105
|
+
oauth_config?: {
|
|
1106
|
+
issuer?: string | undefined;
|
|
1107
|
+
authorization_endpoint?: string | undefined;
|
|
1108
|
+
token_endpoint?: string | undefined;
|
|
1109
|
+
client_id?: string | undefined;
|
|
1110
|
+
client_secret?: string | undefined;
|
|
1111
|
+
scopes?: string[] | undefined;
|
|
1112
|
+
redirect_uri?: string | undefined;
|
|
1113
|
+
registration_endpoint?: string | undefined;
|
|
1114
|
+
introspection_endpoint?: string | undefined;
|
|
1115
|
+
revocation_endpoint?: string | undefined;
|
|
1116
|
+
} | undefined;
|
|
1117
|
+
oauth_rate_limit?: {
|
|
1118
|
+
max_requests: number;
|
|
1119
|
+
window_ms: number;
|
|
1120
|
+
} | undefined;
|
|
1121
|
+
validation_endpoint?: string | undefined;
|
|
1122
|
+
validation_method?: "GET" | "HEAD" | undefined;
|
|
1123
|
+
validation_timeout_ms?: number | undefined;
|
|
1124
|
+
} | {
|
|
1125
|
+
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
1126
|
+
value_from_env?: string | undefined;
|
|
509
1127
|
query_param?: string | undefined;
|
|
510
|
-
|
|
1128
|
+
header_name?: string | undefined;
|
|
1129
|
+
priority?: number | undefined;
|
|
1130
|
+
oauth_config?: {
|
|
1131
|
+
issuer?: string | undefined;
|
|
1132
|
+
authorization_endpoint?: string | undefined;
|
|
1133
|
+
token_endpoint?: string | undefined;
|
|
1134
|
+
client_id?: string | undefined;
|
|
1135
|
+
client_secret?: string | undefined;
|
|
1136
|
+
scopes?: string[] | undefined;
|
|
1137
|
+
redirect_uri?: string | undefined;
|
|
1138
|
+
registration_endpoint?: string | undefined;
|
|
1139
|
+
introspection_endpoint?: string | undefined;
|
|
1140
|
+
revocation_endpoint?: string | undefined;
|
|
1141
|
+
} | undefined;
|
|
1142
|
+
oauth_rate_limit?: {
|
|
1143
|
+
max_requests: number;
|
|
1144
|
+
window_ms: number;
|
|
1145
|
+
} | undefined;
|
|
1146
|
+
validation_endpoint?: string | undefined;
|
|
1147
|
+
validation_method?: "GET" | "HEAD" | undefined;
|
|
1148
|
+
validation_timeout_ms?: number | undefined;
|
|
1149
|
+
}[] | undefined;
|
|
511
1150
|
base_url?: {
|
|
512
1151
|
value_from_env: string;
|
|
513
1152
|
default?: string | undefined;
|
|
@@ -526,11 +1165,56 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
526
1165
|
array_format?: "brackets" | "indices" | "repeat" | "comma" | undefined;
|
|
527
1166
|
}, {
|
|
528
1167
|
auth?: {
|
|
529
|
-
type: "bearer" | "query" | "custom-header";
|
|
530
|
-
value_from_env
|
|
1168
|
+
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
1169
|
+
value_from_env?: string | undefined;
|
|
1170
|
+
query_param?: string | undefined;
|
|
531
1171
|
header_name?: string | undefined;
|
|
1172
|
+
priority?: number | undefined;
|
|
1173
|
+
oauth_config?: {
|
|
1174
|
+
issuer?: string | undefined;
|
|
1175
|
+
authorization_endpoint?: string | undefined;
|
|
1176
|
+
token_endpoint?: string | undefined;
|
|
1177
|
+
client_id?: string | undefined;
|
|
1178
|
+
client_secret?: string | undefined;
|
|
1179
|
+
scopes?: string[] | undefined;
|
|
1180
|
+
redirect_uri?: string | undefined;
|
|
1181
|
+
registration_endpoint?: string | undefined;
|
|
1182
|
+
introspection_endpoint?: string | undefined;
|
|
1183
|
+
revocation_endpoint?: string | undefined;
|
|
1184
|
+
} | undefined;
|
|
1185
|
+
oauth_rate_limit?: {
|
|
1186
|
+
max_requests: number;
|
|
1187
|
+
window_ms: number;
|
|
1188
|
+
} | undefined;
|
|
1189
|
+
validation_endpoint?: string | undefined;
|
|
1190
|
+
validation_method?: "GET" | "HEAD" | undefined;
|
|
1191
|
+
validation_timeout_ms?: number | undefined;
|
|
1192
|
+
} | {
|
|
1193
|
+
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
1194
|
+
value_from_env?: string | undefined;
|
|
532
1195
|
query_param?: string | undefined;
|
|
533
|
-
|
|
1196
|
+
header_name?: string | undefined;
|
|
1197
|
+
priority?: number | undefined;
|
|
1198
|
+
oauth_config?: {
|
|
1199
|
+
issuer?: string | undefined;
|
|
1200
|
+
authorization_endpoint?: string | undefined;
|
|
1201
|
+
token_endpoint?: string | undefined;
|
|
1202
|
+
client_id?: string | undefined;
|
|
1203
|
+
client_secret?: string | undefined;
|
|
1204
|
+
scopes?: string[] | undefined;
|
|
1205
|
+
redirect_uri?: string | undefined;
|
|
1206
|
+
registration_endpoint?: string | undefined;
|
|
1207
|
+
introspection_endpoint?: string | undefined;
|
|
1208
|
+
revocation_endpoint?: string | undefined;
|
|
1209
|
+
} | undefined;
|
|
1210
|
+
oauth_rate_limit?: {
|
|
1211
|
+
max_requests: number;
|
|
1212
|
+
window_ms: number;
|
|
1213
|
+
} | undefined;
|
|
1214
|
+
validation_endpoint?: string | undefined;
|
|
1215
|
+
validation_method?: "GET" | "HEAD" | undefined;
|
|
1216
|
+
validation_timeout_ms?: number | undefined;
|
|
1217
|
+
}[] | undefined;
|
|
534
1218
|
base_url?: {
|
|
535
1219
|
value_from_env: string;
|
|
536
1220
|
default?: string | undefined;
|
|
@@ -549,6 +1233,8 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
549
1233
|
array_format?: "brackets" | "indices" | "repeat" | "comma" | undefined;
|
|
550
1234
|
}>>;
|
|
551
1235
|
parameter_aliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
1236
|
+
resource_name: z.ZodOptional<z.ZodString>;
|
|
1237
|
+
resource_documentation: z.ZodOptional<z.ZodString>;
|
|
552
1238
|
}, "strip", z.ZodTypeAny, {
|
|
553
1239
|
profile_name: string;
|
|
554
1240
|
tools: {
|
|
@@ -580,11 +1266,56 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
580
1266
|
description?: string | undefined;
|
|
581
1267
|
interceptors?: {
|
|
582
1268
|
auth?: {
|
|
583
|
-
type: "bearer" | "query" | "custom-header";
|
|
584
|
-
value_from_env
|
|
1269
|
+
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
1270
|
+
value_from_env?: string | undefined;
|
|
1271
|
+
query_param?: string | undefined;
|
|
585
1272
|
header_name?: string | undefined;
|
|
1273
|
+
priority?: number | undefined;
|
|
1274
|
+
oauth_config?: {
|
|
1275
|
+
issuer?: string | undefined;
|
|
1276
|
+
authorization_endpoint?: string | undefined;
|
|
1277
|
+
token_endpoint?: string | undefined;
|
|
1278
|
+
client_id?: string | undefined;
|
|
1279
|
+
client_secret?: string | undefined;
|
|
1280
|
+
scopes?: string[] | undefined;
|
|
1281
|
+
redirect_uri?: string | undefined;
|
|
1282
|
+
registration_endpoint?: string | undefined;
|
|
1283
|
+
introspection_endpoint?: string | undefined;
|
|
1284
|
+
revocation_endpoint?: string | undefined;
|
|
1285
|
+
} | undefined;
|
|
1286
|
+
oauth_rate_limit?: {
|
|
1287
|
+
max_requests: number;
|
|
1288
|
+
window_ms: number;
|
|
1289
|
+
} | undefined;
|
|
1290
|
+
validation_endpoint?: string | undefined;
|
|
1291
|
+
validation_method?: "GET" | "HEAD" | undefined;
|
|
1292
|
+
validation_timeout_ms?: number | undefined;
|
|
1293
|
+
} | {
|
|
1294
|
+
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
1295
|
+
value_from_env?: string | undefined;
|
|
586
1296
|
query_param?: string | undefined;
|
|
587
|
-
|
|
1297
|
+
header_name?: string | undefined;
|
|
1298
|
+
priority?: number | undefined;
|
|
1299
|
+
oauth_config?: {
|
|
1300
|
+
issuer?: string | undefined;
|
|
1301
|
+
authorization_endpoint?: string | undefined;
|
|
1302
|
+
token_endpoint?: string | undefined;
|
|
1303
|
+
client_id?: string | undefined;
|
|
1304
|
+
client_secret?: string | undefined;
|
|
1305
|
+
scopes?: string[] | undefined;
|
|
1306
|
+
redirect_uri?: string | undefined;
|
|
1307
|
+
registration_endpoint?: string | undefined;
|
|
1308
|
+
introspection_endpoint?: string | undefined;
|
|
1309
|
+
revocation_endpoint?: string | undefined;
|
|
1310
|
+
} | undefined;
|
|
1311
|
+
oauth_rate_limit?: {
|
|
1312
|
+
max_requests: number;
|
|
1313
|
+
window_ms: number;
|
|
1314
|
+
} | undefined;
|
|
1315
|
+
validation_endpoint?: string | undefined;
|
|
1316
|
+
validation_method?: "GET" | "HEAD" | undefined;
|
|
1317
|
+
validation_timeout_ms?: number | undefined;
|
|
1318
|
+
}[] | undefined;
|
|
588
1319
|
base_url?: {
|
|
589
1320
|
value_from_env: string;
|
|
590
1321
|
default?: string | undefined;
|
|
@@ -603,6 +1334,8 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
603
1334
|
array_format?: "brackets" | "indices" | "repeat" | "comma" | undefined;
|
|
604
1335
|
} | undefined;
|
|
605
1336
|
parameter_aliases?: Record<string, string[]> | undefined;
|
|
1337
|
+
resource_name?: string | undefined;
|
|
1338
|
+
resource_documentation?: string | undefined;
|
|
606
1339
|
}, {
|
|
607
1340
|
profile_name: string;
|
|
608
1341
|
tools: {
|
|
@@ -634,11 +1367,56 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
634
1367
|
description?: string | undefined;
|
|
635
1368
|
interceptors?: {
|
|
636
1369
|
auth?: {
|
|
637
|
-
type: "bearer" | "query" | "custom-header";
|
|
638
|
-
value_from_env
|
|
1370
|
+
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
1371
|
+
value_from_env?: string | undefined;
|
|
1372
|
+
query_param?: string | undefined;
|
|
639
1373
|
header_name?: string | undefined;
|
|
1374
|
+
priority?: number | undefined;
|
|
1375
|
+
oauth_config?: {
|
|
1376
|
+
issuer?: string | undefined;
|
|
1377
|
+
authorization_endpoint?: string | undefined;
|
|
1378
|
+
token_endpoint?: string | undefined;
|
|
1379
|
+
client_id?: string | undefined;
|
|
1380
|
+
client_secret?: string | undefined;
|
|
1381
|
+
scopes?: string[] | undefined;
|
|
1382
|
+
redirect_uri?: string | undefined;
|
|
1383
|
+
registration_endpoint?: string | undefined;
|
|
1384
|
+
introspection_endpoint?: string | undefined;
|
|
1385
|
+
revocation_endpoint?: string | undefined;
|
|
1386
|
+
} | undefined;
|
|
1387
|
+
oauth_rate_limit?: {
|
|
1388
|
+
max_requests: number;
|
|
1389
|
+
window_ms: number;
|
|
1390
|
+
} | undefined;
|
|
1391
|
+
validation_endpoint?: string | undefined;
|
|
1392
|
+
validation_method?: "GET" | "HEAD" | undefined;
|
|
1393
|
+
validation_timeout_ms?: number | undefined;
|
|
1394
|
+
} | {
|
|
1395
|
+
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
1396
|
+
value_from_env?: string | undefined;
|
|
640
1397
|
query_param?: string | undefined;
|
|
641
|
-
|
|
1398
|
+
header_name?: string | undefined;
|
|
1399
|
+
priority?: number | undefined;
|
|
1400
|
+
oauth_config?: {
|
|
1401
|
+
issuer?: string | undefined;
|
|
1402
|
+
authorization_endpoint?: string | undefined;
|
|
1403
|
+
token_endpoint?: string | undefined;
|
|
1404
|
+
client_id?: string | undefined;
|
|
1405
|
+
client_secret?: string | undefined;
|
|
1406
|
+
scopes?: string[] | undefined;
|
|
1407
|
+
redirect_uri?: string | undefined;
|
|
1408
|
+
registration_endpoint?: string | undefined;
|
|
1409
|
+
introspection_endpoint?: string | undefined;
|
|
1410
|
+
revocation_endpoint?: string | undefined;
|
|
1411
|
+
} | undefined;
|
|
1412
|
+
oauth_rate_limit?: {
|
|
1413
|
+
max_requests: number;
|
|
1414
|
+
window_ms: number;
|
|
1415
|
+
} | undefined;
|
|
1416
|
+
validation_endpoint?: string | undefined;
|
|
1417
|
+
validation_method?: "GET" | "HEAD" | undefined;
|
|
1418
|
+
validation_timeout_ms?: number | undefined;
|
|
1419
|
+
}[] | undefined;
|
|
642
1420
|
base_url?: {
|
|
643
1421
|
value_from_env: string;
|
|
644
1422
|
default?: string | undefined;
|
|
@@ -657,5 +1435,7 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
657
1435
|
array_format?: "brackets" | "indices" | "repeat" | "comma" | undefined;
|
|
658
1436
|
} | undefined;
|
|
659
1437
|
parameter_aliases?: Record<string, string[]> | undefined;
|
|
1438
|
+
resource_name?: string | undefined;
|
|
1439
|
+
resource_documentation?: string | undefined;
|
|
660
1440
|
}>;
|
|
661
1441
|
//# sourceMappingURL=generated-schemas.d.ts.map
|