mcp4openapi 0.2.3 → 0.2.5
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 +22 -3
- package/dist/scripts/validate-profile.js +3 -1
- package/dist/scripts/validate-profile.js.map +1 -1
- package/dist/src/composite-executor.d.ts.map +1 -1
- package/dist/src/composite-executor.js +1 -3
- package/dist/src/composite-executor.js.map +1 -1
- package/dist/src/errors.js +0 -2
- package/dist/src/errors.js.map +1 -1
- package/dist/src/generated-schemas.d.ts +217 -30
- package/dist/src/generated-schemas.d.ts.map +1 -1
- package/dist/src/generated-schemas.js +15 -2
- package/dist/src/generated-schemas.js.map +1 -1
- package/dist/src/http-client-factory.js +3 -2
- package/dist/src/http-client-factory.js.map +1 -1
- package/dist/src/http-transport.d.ts +9 -2
- package/dist/src/http-transport.d.ts.map +1 -1
- package/dist/src/http-transport.js +165 -47
- package/dist/src/http-transport.js.map +1 -1
- package/dist/src/interceptors.d.ts +34 -0
- package/dist/src/interceptors.d.ts.map +1 -1
- package/dist/src/interceptors.js +90 -6
- package/dist/src/interceptors.js.map +1 -1
- package/dist/src/logger.js +0 -4
- package/dist/src/logger.js.map +1 -1
- package/dist/src/mcp-server.d.ts +8 -1
- package/dist/src/mcp-server.d.ts.map +1 -1
- package/dist/src/mcp-server.js +94 -22
- package/dist/src/mcp-server.js.map +1 -1
- package/dist/src/metrics.js +0 -17
- package/dist/src/metrics.js.map +1 -1
- package/dist/src/oauth-provider.d.ts +29 -0
- package/dist/src/oauth-provider.d.ts.map +1 -1
- package/dist/src/oauth-provider.js +202 -20
- package/dist/src/oauth-provider.js.map +1 -1
- package/dist/src/openapi-parser.d.ts.map +1 -1
- package/dist/src/openapi-parser.js +4 -3
- package/dist/src/openapi-parser.js.map +1 -1
- package/dist/src/profile-loader.d.ts.map +1 -1
- package/dist/src/profile-loader.js +8 -0
- package/dist/src/profile-loader.js.map +1 -1
- package/dist/src/proxy-executor.d.ts +56 -0
- package/dist/src/proxy-executor.d.ts.map +1 -0
- package/dist/src/proxy-executor.js +155 -0
- package/dist/src/proxy-executor.js.map +1 -0
- package/dist/src/schema-validator.d.ts.map +1 -1
- package/dist/src/schema-validator.js +14 -1
- package/dist/src/schema-validator.js.map +1 -1
- package/dist/src/testing/mock-gitlab-server.d.ts.map +1 -1
- package/dist/src/testing/mock-gitlab-server.js +86 -29
- package/dist/src/testing/mock-gitlab-server.js.map +1 -1
- package/dist/src/testing/mock-semgrep-server.d.ts +32 -0
- package/dist/src/testing/mock-semgrep-server.d.ts.map +1 -0
- package/dist/src/testing/mock-semgrep-server.js +213 -0
- package/dist/src/testing/mock-semgrep-server.js.map +1 -0
- package/dist/src/testing/mock-youtrack-server.d.ts +11 -0
- package/dist/src/testing/mock-youtrack-server.d.ts.map +1 -0
- package/dist/src/testing/mock-youtrack-server.js +138 -0
- package/dist/src/testing/mock-youtrack-server.js.map +1 -0
- package/dist/src/testing/test-http-utils.js +1 -3
- package/dist/src/testing/test-http-utils.js.map +1 -1
- package/dist/src/testing/test-types.d.ts +26 -1
- package/dist/src/testing/test-types.d.ts.map +1 -1
- package/dist/src/tool-generator.d.ts +23 -0
- package/dist/src/tool-generator.d.ts.map +1 -1
- package/dist/src/tool-generator.js +55 -5
- package/dist/src/tool-generator.js.map +1 -1
- package/dist/src/types/profile.d.ts +41 -3
- package/dist/src/types/profile.d.ts.map +1 -1
- package/dist/src/validation-utils.d.ts.map +1 -1
- package/dist/src/validation-utils.js +24 -2
- package/dist/src/validation-utils.js.map +1 -1
- package/package.json +3 -3
- package/profile-schema.json +70 -2
|
@@ -25,6 +25,7 @@ export declare const parameterDefinitionSchema: z.ZodObject<{
|
|
|
25
25
|
}, {
|
|
26
26
|
type: string;
|
|
27
27
|
}>>;
|
|
28
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
28
29
|
default: z.ZodOptional<z.ZodUnknown>;
|
|
29
30
|
example: z.ZodOptional<z.ZodUnknown>;
|
|
30
31
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -33,6 +34,7 @@ export declare const parameterDefinitionSchema: z.ZodObject<{
|
|
|
33
34
|
items?: {
|
|
34
35
|
type: string;
|
|
35
36
|
} | undefined;
|
|
37
|
+
properties?: Record<string, unknown> | undefined;
|
|
36
38
|
required?: boolean | undefined;
|
|
37
39
|
required_for?: string[] | undefined;
|
|
38
40
|
enum?: string[] | undefined;
|
|
@@ -44,12 +46,69 @@ export declare const parameterDefinitionSchema: z.ZodObject<{
|
|
|
44
46
|
items?: {
|
|
45
47
|
type: string;
|
|
46
48
|
} | undefined;
|
|
49
|
+
properties?: Record<string, unknown> | undefined;
|
|
47
50
|
required?: boolean | undefined;
|
|
48
51
|
required_for?: string[] | undefined;
|
|
49
52
|
enum?: string[] | undefined;
|
|
50
53
|
default?: unknown;
|
|
51
54
|
example?: unknown;
|
|
52
55
|
}>;
|
|
56
|
+
export declare const proxyDownloadOperationSchema: z.ZodObject<{
|
|
57
|
+
type: z.ZodLiteral<"proxy_download">;
|
|
58
|
+
metadata_endpoint: z.ZodString;
|
|
59
|
+
url_field: z.ZodOptional<z.ZodString>;
|
|
60
|
+
max_size_bytes: z.ZodOptional<z.ZodNumber>;
|
|
61
|
+
max_size_bytes_from_env: z.ZodOptional<z.ZodString>;
|
|
62
|
+
timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
63
|
+
allowed_mime_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
64
|
+
skip_auth: z.ZodOptional<z.ZodBoolean>;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
type: "proxy_download";
|
|
67
|
+
metadata_endpoint: string;
|
|
68
|
+
url_field?: string | undefined;
|
|
69
|
+
max_size_bytes?: number | undefined;
|
|
70
|
+
max_size_bytes_from_env?: string | undefined;
|
|
71
|
+
timeout_ms?: number | undefined;
|
|
72
|
+
allowed_mime_types?: string[] | undefined;
|
|
73
|
+
skip_auth?: boolean | undefined;
|
|
74
|
+
}, {
|
|
75
|
+
type: "proxy_download";
|
|
76
|
+
metadata_endpoint: string;
|
|
77
|
+
url_field?: string | undefined;
|
|
78
|
+
max_size_bytes?: number | undefined;
|
|
79
|
+
max_size_bytes_from_env?: string | undefined;
|
|
80
|
+
timeout_ms?: number | undefined;
|
|
81
|
+
allowed_mime_types?: string[] | undefined;
|
|
82
|
+
skip_auth?: boolean | undefined;
|
|
83
|
+
}>;
|
|
84
|
+
export declare const operationDefinitionSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
85
|
+
type: z.ZodLiteral<"proxy_download">;
|
|
86
|
+
metadata_endpoint: z.ZodString;
|
|
87
|
+
url_field: z.ZodOptional<z.ZodString>;
|
|
88
|
+
max_size_bytes: z.ZodOptional<z.ZodNumber>;
|
|
89
|
+
max_size_bytes_from_env: z.ZodOptional<z.ZodString>;
|
|
90
|
+
timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
91
|
+
allowed_mime_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
92
|
+
skip_auth: z.ZodOptional<z.ZodBoolean>;
|
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
|
94
|
+
type: "proxy_download";
|
|
95
|
+
metadata_endpoint: string;
|
|
96
|
+
url_field?: string | undefined;
|
|
97
|
+
max_size_bytes?: number | undefined;
|
|
98
|
+
max_size_bytes_from_env?: string | undefined;
|
|
99
|
+
timeout_ms?: number | undefined;
|
|
100
|
+
allowed_mime_types?: string[] | undefined;
|
|
101
|
+
skip_auth?: boolean | undefined;
|
|
102
|
+
}, {
|
|
103
|
+
type: "proxy_download";
|
|
104
|
+
metadata_endpoint: string;
|
|
105
|
+
url_field?: string | undefined;
|
|
106
|
+
max_size_bytes?: number | undefined;
|
|
107
|
+
max_size_bytes_from_env?: string | undefined;
|
|
108
|
+
timeout_ms?: number | undefined;
|
|
109
|
+
allowed_mime_types?: string[] | undefined;
|
|
110
|
+
skip_auth?: boolean | undefined;
|
|
111
|
+
}>]>;
|
|
53
112
|
export declare const baseUrlConfigSchema: z.ZodObject<{
|
|
54
113
|
value_from_env: z.ZodString;
|
|
55
114
|
default: z.ZodOptional<z.ZodString>;
|
|
@@ -133,7 +192,34 @@ export declare const oAuthConfigSchema: z.ZodObject<{
|
|
|
133
192
|
export declare const toolDefinitionSchema: z.ZodObject<{
|
|
134
193
|
name: z.ZodString;
|
|
135
194
|
description: z.ZodString;
|
|
136
|
-
operations: z.ZodOptional<z.
|
|
195
|
+
operations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
196
|
+
type: z.ZodLiteral<"proxy_download">;
|
|
197
|
+
metadata_endpoint: z.ZodString;
|
|
198
|
+
url_field: z.ZodOptional<z.ZodString>;
|
|
199
|
+
max_size_bytes: z.ZodOptional<z.ZodNumber>;
|
|
200
|
+
max_size_bytes_from_env: z.ZodOptional<z.ZodString>;
|
|
201
|
+
timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
202
|
+
allowed_mime_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
203
|
+
skip_auth: z.ZodOptional<z.ZodBoolean>;
|
|
204
|
+
}, "strip", z.ZodTypeAny, {
|
|
205
|
+
type: "proxy_download";
|
|
206
|
+
metadata_endpoint: string;
|
|
207
|
+
url_field?: string | undefined;
|
|
208
|
+
max_size_bytes?: number | undefined;
|
|
209
|
+
max_size_bytes_from_env?: string | undefined;
|
|
210
|
+
timeout_ms?: number | undefined;
|
|
211
|
+
allowed_mime_types?: string[] | undefined;
|
|
212
|
+
skip_auth?: boolean | undefined;
|
|
213
|
+
}, {
|
|
214
|
+
type: "proxy_download";
|
|
215
|
+
metadata_endpoint: string;
|
|
216
|
+
url_field?: string | undefined;
|
|
217
|
+
max_size_bytes?: number | undefined;
|
|
218
|
+
max_size_bytes_from_env?: string | undefined;
|
|
219
|
+
timeout_ms?: number | undefined;
|
|
220
|
+
allowed_mime_types?: string[] | undefined;
|
|
221
|
+
skip_auth?: boolean | undefined;
|
|
222
|
+
}>]>>>;
|
|
137
223
|
composite: z.ZodOptional<z.ZodBoolean>;
|
|
138
224
|
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
139
225
|
call: z.ZodString;
|
|
@@ -162,6 +248,7 @@ export declare const toolDefinitionSchema: z.ZodObject<{
|
|
|
162
248
|
}, {
|
|
163
249
|
type: string;
|
|
164
250
|
}>>;
|
|
251
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
165
252
|
default: z.ZodOptional<z.ZodUnknown>;
|
|
166
253
|
example: z.ZodOptional<z.ZodUnknown>;
|
|
167
254
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -170,6 +257,7 @@ export declare const toolDefinitionSchema: z.ZodObject<{
|
|
|
170
257
|
items?: {
|
|
171
258
|
type: string;
|
|
172
259
|
} | undefined;
|
|
260
|
+
properties?: Record<string, unknown> | undefined;
|
|
173
261
|
required?: boolean | undefined;
|
|
174
262
|
required_for?: string[] | undefined;
|
|
175
263
|
enum?: string[] | undefined;
|
|
@@ -181,6 +269,7 @@ export declare const toolDefinitionSchema: z.ZodObject<{
|
|
|
181
269
|
items?: {
|
|
182
270
|
type: string;
|
|
183
271
|
} | undefined;
|
|
272
|
+
properties?: Record<string, unknown> | undefined;
|
|
184
273
|
required?: boolean | undefined;
|
|
185
274
|
required_for?: string[] | undefined;
|
|
186
275
|
enum?: string[] | undefined;
|
|
@@ -189,6 +278,7 @@ export declare const toolDefinitionSchema: z.ZodObject<{
|
|
|
189
278
|
}>>;
|
|
190
279
|
metadata_params: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
191
280
|
response_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
281
|
+
send_response_fields_as_param: z.ZodOptional<z.ZodBoolean>;
|
|
192
282
|
}, "strip", z.ZodTypeAny, {
|
|
193
283
|
name: string;
|
|
194
284
|
description: string;
|
|
@@ -198,13 +288,23 @@ export declare const toolDefinitionSchema: z.ZodObject<{
|
|
|
198
288
|
items?: {
|
|
199
289
|
type: string;
|
|
200
290
|
} | undefined;
|
|
291
|
+
properties?: Record<string, unknown> | undefined;
|
|
201
292
|
required?: boolean | undefined;
|
|
202
293
|
required_for?: string[] | undefined;
|
|
203
294
|
enum?: string[] | undefined;
|
|
204
295
|
default?: unknown;
|
|
205
296
|
example?: unknown;
|
|
206
297
|
}>;
|
|
207
|
-
operations?: Record<string, string
|
|
298
|
+
operations?: Record<string, string | {
|
|
299
|
+
type: "proxy_download";
|
|
300
|
+
metadata_endpoint: string;
|
|
301
|
+
url_field?: string | undefined;
|
|
302
|
+
max_size_bytes?: number | undefined;
|
|
303
|
+
max_size_bytes_from_env?: string | undefined;
|
|
304
|
+
timeout_ms?: number | undefined;
|
|
305
|
+
allowed_mime_types?: string[] | undefined;
|
|
306
|
+
skip_auth?: boolean | undefined;
|
|
307
|
+
}> | undefined;
|
|
208
308
|
composite?: boolean | undefined;
|
|
209
309
|
steps?: {
|
|
210
310
|
call: string;
|
|
@@ -214,6 +314,7 @@ export declare const toolDefinitionSchema: z.ZodObject<{
|
|
|
214
314
|
partial_results?: boolean | undefined;
|
|
215
315
|
metadata_params?: string[] | undefined;
|
|
216
316
|
response_fields?: Record<string, string[]> | undefined;
|
|
317
|
+
send_response_fields_as_param?: boolean | undefined;
|
|
217
318
|
}, {
|
|
218
319
|
name: string;
|
|
219
320
|
description: string;
|
|
@@ -223,13 +324,23 @@ export declare const toolDefinitionSchema: z.ZodObject<{
|
|
|
223
324
|
items?: {
|
|
224
325
|
type: string;
|
|
225
326
|
} | undefined;
|
|
327
|
+
properties?: Record<string, unknown> | undefined;
|
|
226
328
|
required?: boolean | undefined;
|
|
227
329
|
required_for?: string[] | undefined;
|
|
228
330
|
enum?: string[] | undefined;
|
|
229
331
|
default?: unknown;
|
|
230
332
|
example?: unknown;
|
|
231
333
|
}>;
|
|
232
|
-
operations?: Record<string, string
|
|
334
|
+
operations?: Record<string, string | {
|
|
335
|
+
type: "proxy_download";
|
|
336
|
+
metadata_endpoint: string;
|
|
337
|
+
url_field?: string | undefined;
|
|
338
|
+
max_size_bytes?: number | undefined;
|
|
339
|
+
max_size_bytes_from_env?: string | undefined;
|
|
340
|
+
timeout_ms?: number | undefined;
|
|
341
|
+
allowed_mime_types?: string[] | undefined;
|
|
342
|
+
skip_auth?: boolean | undefined;
|
|
343
|
+
}> | undefined;
|
|
233
344
|
composite?: boolean | undefined;
|
|
234
345
|
steps?: {
|
|
235
346
|
call: string;
|
|
@@ -239,6 +350,7 @@ export declare const toolDefinitionSchema: z.ZodObject<{
|
|
|
239
350
|
partial_results?: boolean | undefined;
|
|
240
351
|
metadata_params?: string[] | undefined;
|
|
241
352
|
response_fields?: Record<string, string[]> | undefined;
|
|
353
|
+
send_response_fields_as_param?: boolean | undefined;
|
|
242
354
|
}>;
|
|
243
355
|
export declare const authInterceptorSchema: z.ZodObject<{
|
|
244
356
|
type: z.ZodUnion<[z.ZodLiteral<"bearer">, z.ZodLiteral<"query">, z.ZodLiteral<"custom-header">, z.ZodLiteral<"oauth">]>;
|
|
@@ -299,8 +411,8 @@ export declare const authInterceptorSchema: z.ZodObject<{
|
|
|
299
411
|
}, "strip", z.ZodTypeAny, {
|
|
300
412
|
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
301
413
|
value_from_env?: string | undefined;
|
|
302
|
-
query_param?: string | undefined;
|
|
303
414
|
header_name?: string | undefined;
|
|
415
|
+
query_param?: string | undefined;
|
|
304
416
|
priority?: number | undefined;
|
|
305
417
|
oauth_config?: {
|
|
306
418
|
issuer?: string | undefined;
|
|
@@ -325,8 +437,8 @@ export declare const authInterceptorSchema: z.ZodObject<{
|
|
|
325
437
|
}, {
|
|
326
438
|
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
327
439
|
value_from_env?: string | undefined;
|
|
328
|
-
query_param?: string | undefined;
|
|
329
440
|
header_name?: string | undefined;
|
|
441
|
+
query_param?: string | undefined;
|
|
330
442
|
priority?: number | undefined;
|
|
331
443
|
oauth_config?: {
|
|
332
444
|
issuer?: string | undefined;
|
|
@@ -409,8 +521,8 @@ export declare const interceptorConfigSchema: z.ZodObject<{
|
|
|
409
521
|
}, "strip", z.ZodTypeAny, {
|
|
410
522
|
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
411
523
|
value_from_env?: string | undefined;
|
|
412
|
-
query_param?: string | undefined;
|
|
413
524
|
header_name?: string | undefined;
|
|
525
|
+
query_param?: string | undefined;
|
|
414
526
|
priority?: number | undefined;
|
|
415
527
|
oauth_config?: {
|
|
416
528
|
issuer?: string | undefined;
|
|
@@ -435,8 +547,8 @@ export declare const interceptorConfigSchema: z.ZodObject<{
|
|
|
435
547
|
}, {
|
|
436
548
|
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
437
549
|
value_from_env?: string | undefined;
|
|
438
|
-
query_param?: string | undefined;
|
|
439
550
|
header_name?: string | undefined;
|
|
551
|
+
query_param?: string | undefined;
|
|
440
552
|
priority?: number | undefined;
|
|
441
553
|
oauth_config?: {
|
|
442
554
|
issuer?: string | undefined;
|
|
@@ -517,8 +629,8 @@ export declare const interceptorConfigSchema: z.ZodObject<{
|
|
|
517
629
|
}, "strip", z.ZodTypeAny, {
|
|
518
630
|
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
519
631
|
value_from_env?: string | undefined;
|
|
520
|
-
query_param?: string | undefined;
|
|
521
632
|
header_name?: string | undefined;
|
|
633
|
+
query_param?: string | undefined;
|
|
522
634
|
priority?: number | undefined;
|
|
523
635
|
oauth_config?: {
|
|
524
636
|
issuer?: string | undefined;
|
|
@@ -543,8 +655,8 @@ export declare const interceptorConfigSchema: z.ZodObject<{
|
|
|
543
655
|
}, {
|
|
544
656
|
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
545
657
|
value_from_env?: string | undefined;
|
|
546
|
-
query_param?: string | undefined;
|
|
547
658
|
header_name?: string | undefined;
|
|
659
|
+
query_param?: string | undefined;
|
|
548
660
|
priority?: number | undefined;
|
|
549
661
|
oauth_config?: {
|
|
550
662
|
issuer?: string | undefined;
|
|
@@ -615,8 +727,8 @@ export declare const interceptorConfigSchema: z.ZodObject<{
|
|
|
615
727
|
auth?: {
|
|
616
728
|
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
617
729
|
value_from_env?: string | undefined;
|
|
618
|
-
query_param?: string | undefined;
|
|
619
730
|
header_name?: string | undefined;
|
|
731
|
+
query_param?: string | undefined;
|
|
620
732
|
priority?: number | undefined;
|
|
621
733
|
oauth_config?: {
|
|
622
734
|
issuer?: string | undefined;
|
|
@@ -641,8 +753,8 @@ export declare const interceptorConfigSchema: z.ZodObject<{
|
|
|
641
753
|
} | {
|
|
642
754
|
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
643
755
|
value_from_env?: string | undefined;
|
|
644
|
-
query_param?: string | undefined;
|
|
645
756
|
header_name?: string | undefined;
|
|
757
|
+
query_param?: string | undefined;
|
|
646
758
|
priority?: number | undefined;
|
|
647
759
|
oauth_config?: {
|
|
648
760
|
issuer?: string | undefined;
|
|
@@ -685,8 +797,8 @@ export declare const interceptorConfigSchema: z.ZodObject<{
|
|
|
685
797
|
auth?: {
|
|
686
798
|
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
687
799
|
value_from_env?: string | undefined;
|
|
688
|
-
query_param?: string | undefined;
|
|
689
800
|
header_name?: string | undefined;
|
|
801
|
+
query_param?: string | undefined;
|
|
690
802
|
priority?: number | undefined;
|
|
691
803
|
oauth_config?: {
|
|
692
804
|
issuer?: string | undefined;
|
|
@@ -711,8 +823,8 @@ export declare const interceptorConfigSchema: z.ZodObject<{
|
|
|
711
823
|
} | {
|
|
712
824
|
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
713
825
|
value_from_env?: string | undefined;
|
|
714
|
-
query_param?: string | undefined;
|
|
715
826
|
header_name?: string | undefined;
|
|
827
|
+
query_param?: string | undefined;
|
|
716
828
|
priority?: number | undefined;
|
|
717
829
|
oauth_config?: {
|
|
718
830
|
issuer?: string | undefined;
|
|
@@ -758,7 +870,34 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
758
870
|
tools: z.ZodArray<z.ZodObject<{
|
|
759
871
|
name: z.ZodString;
|
|
760
872
|
description: z.ZodString;
|
|
761
|
-
operations: z.ZodOptional<z.
|
|
873
|
+
operations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
874
|
+
type: z.ZodLiteral<"proxy_download">;
|
|
875
|
+
metadata_endpoint: z.ZodString;
|
|
876
|
+
url_field: z.ZodOptional<z.ZodString>;
|
|
877
|
+
max_size_bytes: z.ZodOptional<z.ZodNumber>;
|
|
878
|
+
max_size_bytes_from_env: z.ZodOptional<z.ZodString>;
|
|
879
|
+
timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
880
|
+
allowed_mime_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
881
|
+
skip_auth: z.ZodOptional<z.ZodBoolean>;
|
|
882
|
+
}, "strip", z.ZodTypeAny, {
|
|
883
|
+
type: "proxy_download";
|
|
884
|
+
metadata_endpoint: string;
|
|
885
|
+
url_field?: string | undefined;
|
|
886
|
+
max_size_bytes?: number | undefined;
|
|
887
|
+
max_size_bytes_from_env?: string | undefined;
|
|
888
|
+
timeout_ms?: number | undefined;
|
|
889
|
+
allowed_mime_types?: string[] | undefined;
|
|
890
|
+
skip_auth?: boolean | undefined;
|
|
891
|
+
}, {
|
|
892
|
+
type: "proxy_download";
|
|
893
|
+
metadata_endpoint: string;
|
|
894
|
+
url_field?: string | undefined;
|
|
895
|
+
max_size_bytes?: number | undefined;
|
|
896
|
+
max_size_bytes_from_env?: string | undefined;
|
|
897
|
+
timeout_ms?: number | undefined;
|
|
898
|
+
allowed_mime_types?: string[] | undefined;
|
|
899
|
+
skip_auth?: boolean | undefined;
|
|
900
|
+
}>]>>>;
|
|
762
901
|
composite: z.ZodOptional<z.ZodBoolean>;
|
|
763
902
|
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
764
903
|
call: z.ZodString;
|
|
@@ -787,6 +926,7 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
787
926
|
}, {
|
|
788
927
|
type: string;
|
|
789
928
|
}>>;
|
|
929
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
790
930
|
default: z.ZodOptional<z.ZodUnknown>;
|
|
791
931
|
example: z.ZodOptional<z.ZodUnknown>;
|
|
792
932
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -795,6 +935,7 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
795
935
|
items?: {
|
|
796
936
|
type: string;
|
|
797
937
|
} | undefined;
|
|
938
|
+
properties?: Record<string, unknown> | undefined;
|
|
798
939
|
required?: boolean | undefined;
|
|
799
940
|
required_for?: string[] | undefined;
|
|
800
941
|
enum?: string[] | undefined;
|
|
@@ -806,6 +947,7 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
806
947
|
items?: {
|
|
807
948
|
type: string;
|
|
808
949
|
} | undefined;
|
|
950
|
+
properties?: Record<string, unknown> | undefined;
|
|
809
951
|
required?: boolean | undefined;
|
|
810
952
|
required_for?: string[] | undefined;
|
|
811
953
|
enum?: string[] | undefined;
|
|
@@ -814,6 +956,7 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
814
956
|
}>>;
|
|
815
957
|
metadata_params: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
816
958
|
response_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
959
|
+
send_response_fields_as_param: z.ZodOptional<z.ZodBoolean>;
|
|
817
960
|
}, "strip", z.ZodTypeAny, {
|
|
818
961
|
name: string;
|
|
819
962
|
description: string;
|
|
@@ -823,13 +966,23 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
823
966
|
items?: {
|
|
824
967
|
type: string;
|
|
825
968
|
} | undefined;
|
|
969
|
+
properties?: Record<string, unknown> | undefined;
|
|
826
970
|
required?: boolean | undefined;
|
|
827
971
|
required_for?: string[] | undefined;
|
|
828
972
|
enum?: string[] | undefined;
|
|
829
973
|
default?: unknown;
|
|
830
974
|
example?: unknown;
|
|
831
975
|
}>;
|
|
832
|
-
operations?: Record<string, string
|
|
976
|
+
operations?: Record<string, string | {
|
|
977
|
+
type: "proxy_download";
|
|
978
|
+
metadata_endpoint: string;
|
|
979
|
+
url_field?: string | undefined;
|
|
980
|
+
max_size_bytes?: number | undefined;
|
|
981
|
+
max_size_bytes_from_env?: string | undefined;
|
|
982
|
+
timeout_ms?: number | undefined;
|
|
983
|
+
allowed_mime_types?: string[] | undefined;
|
|
984
|
+
skip_auth?: boolean | undefined;
|
|
985
|
+
}> | undefined;
|
|
833
986
|
composite?: boolean | undefined;
|
|
834
987
|
steps?: {
|
|
835
988
|
call: string;
|
|
@@ -839,6 +992,7 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
839
992
|
partial_results?: boolean | undefined;
|
|
840
993
|
metadata_params?: string[] | undefined;
|
|
841
994
|
response_fields?: Record<string, string[]> | undefined;
|
|
995
|
+
send_response_fields_as_param?: boolean | undefined;
|
|
842
996
|
}, {
|
|
843
997
|
name: string;
|
|
844
998
|
description: string;
|
|
@@ -848,13 +1002,23 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
848
1002
|
items?: {
|
|
849
1003
|
type: string;
|
|
850
1004
|
} | undefined;
|
|
1005
|
+
properties?: Record<string, unknown> | undefined;
|
|
851
1006
|
required?: boolean | undefined;
|
|
852
1007
|
required_for?: string[] | undefined;
|
|
853
1008
|
enum?: string[] | undefined;
|
|
854
1009
|
default?: unknown;
|
|
855
1010
|
example?: unknown;
|
|
856
1011
|
}>;
|
|
857
|
-
operations?: Record<string, string
|
|
1012
|
+
operations?: Record<string, string | {
|
|
1013
|
+
type: "proxy_download";
|
|
1014
|
+
metadata_endpoint: string;
|
|
1015
|
+
url_field?: string | undefined;
|
|
1016
|
+
max_size_bytes?: number | undefined;
|
|
1017
|
+
max_size_bytes_from_env?: string | undefined;
|
|
1018
|
+
timeout_ms?: number | undefined;
|
|
1019
|
+
allowed_mime_types?: string[] | undefined;
|
|
1020
|
+
skip_auth?: boolean | undefined;
|
|
1021
|
+
}> | undefined;
|
|
858
1022
|
composite?: boolean | undefined;
|
|
859
1023
|
steps?: {
|
|
860
1024
|
call: string;
|
|
@@ -864,6 +1028,7 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
864
1028
|
partial_results?: boolean | undefined;
|
|
865
1029
|
metadata_params?: string[] | undefined;
|
|
866
1030
|
response_fields?: Record<string, string[]> | undefined;
|
|
1031
|
+
send_response_fields_as_param?: boolean | undefined;
|
|
867
1032
|
}>, "many">;
|
|
868
1033
|
interceptors: z.ZodOptional<z.ZodObject<{
|
|
869
1034
|
auth: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
@@ -925,8 +1090,8 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
925
1090
|
}, "strip", z.ZodTypeAny, {
|
|
926
1091
|
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
927
1092
|
value_from_env?: string | undefined;
|
|
928
|
-
query_param?: string | undefined;
|
|
929
1093
|
header_name?: string | undefined;
|
|
1094
|
+
query_param?: string | undefined;
|
|
930
1095
|
priority?: number | undefined;
|
|
931
1096
|
oauth_config?: {
|
|
932
1097
|
issuer?: string | undefined;
|
|
@@ -951,8 +1116,8 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
951
1116
|
}, {
|
|
952
1117
|
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
953
1118
|
value_from_env?: string | undefined;
|
|
954
|
-
query_param?: string | undefined;
|
|
955
1119
|
header_name?: string | undefined;
|
|
1120
|
+
query_param?: string | undefined;
|
|
956
1121
|
priority?: number | undefined;
|
|
957
1122
|
oauth_config?: {
|
|
958
1123
|
issuer?: string | undefined;
|
|
@@ -1033,8 +1198,8 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
1033
1198
|
}, "strip", z.ZodTypeAny, {
|
|
1034
1199
|
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
1035
1200
|
value_from_env?: string | undefined;
|
|
1036
|
-
query_param?: string | undefined;
|
|
1037
1201
|
header_name?: string | undefined;
|
|
1202
|
+
query_param?: string | undefined;
|
|
1038
1203
|
priority?: number | undefined;
|
|
1039
1204
|
oauth_config?: {
|
|
1040
1205
|
issuer?: string | undefined;
|
|
@@ -1059,8 +1224,8 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
1059
1224
|
}, {
|
|
1060
1225
|
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
1061
1226
|
value_from_env?: string | undefined;
|
|
1062
|
-
query_param?: string | undefined;
|
|
1063
1227
|
header_name?: string | undefined;
|
|
1228
|
+
query_param?: string | undefined;
|
|
1064
1229
|
priority?: number | undefined;
|
|
1065
1230
|
oauth_config?: {
|
|
1066
1231
|
issuer?: string | undefined;
|
|
@@ -1131,8 +1296,8 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
1131
1296
|
auth?: {
|
|
1132
1297
|
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
1133
1298
|
value_from_env?: string | undefined;
|
|
1134
|
-
query_param?: string | undefined;
|
|
1135
1299
|
header_name?: string | undefined;
|
|
1300
|
+
query_param?: string | undefined;
|
|
1136
1301
|
priority?: number | undefined;
|
|
1137
1302
|
oauth_config?: {
|
|
1138
1303
|
issuer?: string | undefined;
|
|
@@ -1157,8 +1322,8 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
1157
1322
|
} | {
|
|
1158
1323
|
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
1159
1324
|
value_from_env?: string | undefined;
|
|
1160
|
-
query_param?: string | undefined;
|
|
1161
1325
|
header_name?: string | undefined;
|
|
1326
|
+
query_param?: string | undefined;
|
|
1162
1327
|
priority?: number | undefined;
|
|
1163
1328
|
oauth_config?: {
|
|
1164
1329
|
issuer?: string | undefined;
|
|
@@ -1201,8 +1366,8 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
1201
1366
|
auth?: {
|
|
1202
1367
|
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
1203
1368
|
value_from_env?: string | undefined;
|
|
1204
|
-
query_param?: string | undefined;
|
|
1205
1369
|
header_name?: string | undefined;
|
|
1370
|
+
query_param?: string | undefined;
|
|
1206
1371
|
priority?: number | undefined;
|
|
1207
1372
|
oauth_config?: {
|
|
1208
1373
|
issuer?: string | undefined;
|
|
@@ -1227,8 +1392,8 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
1227
1392
|
} | {
|
|
1228
1393
|
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
1229
1394
|
value_from_env?: string | undefined;
|
|
1230
|
-
query_param?: string | undefined;
|
|
1231
1395
|
header_name?: string | undefined;
|
|
1396
|
+
query_param?: string | undefined;
|
|
1232
1397
|
priority?: number | undefined;
|
|
1233
1398
|
oauth_config?: {
|
|
1234
1399
|
issuer?: string | undefined;
|
|
@@ -1282,13 +1447,23 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
1282
1447
|
items?: {
|
|
1283
1448
|
type: string;
|
|
1284
1449
|
} | undefined;
|
|
1450
|
+
properties?: Record<string, unknown> | undefined;
|
|
1285
1451
|
required?: boolean | undefined;
|
|
1286
1452
|
required_for?: string[] | undefined;
|
|
1287
1453
|
enum?: string[] | undefined;
|
|
1288
1454
|
default?: unknown;
|
|
1289
1455
|
example?: unknown;
|
|
1290
1456
|
}>;
|
|
1291
|
-
operations?: Record<string, string
|
|
1457
|
+
operations?: Record<string, string | {
|
|
1458
|
+
type: "proxy_download";
|
|
1459
|
+
metadata_endpoint: string;
|
|
1460
|
+
url_field?: string | undefined;
|
|
1461
|
+
max_size_bytes?: number | undefined;
|
|
1462
|
+
max_size_bytes_from_env?: string | undefined;
|
|
1463
|
+
timeout_ms?: number | undefined;
|
|
1464
|
+
allowed_mime_types?: string[] | undefined;
|
|
1465
|
+
skip_auth?: boolean | undefined;
|
|
1466
|
+
}> | undefined;
|
|
1292
1467
|
composite?: boolean | undefined;
|
|
1293
1468
|
steps?: {
|
|
1294
1469
|
call: string;
|
|
@@ -1298,14 +1473,15 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
1298
1473
|
partial_results?: boolean | undefined;
|
|
1299
1474
|
metadata_params?: string[] | undefined;
|
|
1300
1475
|
response_fields?: Record<string, string[]> | undefined;
|
|
1476
|
+
send_response_fields_as_param?: boolean | undefined;
|
|
1301
1477
|
}[];
|
|
1302
1478
|
description?: string | undefined;
|
|
1303
1479
|
interceptors?: {
|
|
1304
1480
|
auth?: {
|
|
1305
1481
|
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
1306
1482
|
value_from_env?: string | undefined;
|
|
1307
|
-
query_param?: string | undefined;
|
|
1308
1483
|
header_name?: string | undefined;
|
|
1484
|
+
query_param?: string | undefined;
|
|
1309
1485
|
priority?: number | undefined;
|
|
1310
1486
|
oauth_config?: {
|
|
1311
1487
|
issuer?: string | undefined;
|
|
@@ -1330,8 +1506,8 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
1330
1506
|
} | {
|
|
1331
1507
|
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
1332
1508
|
value_from_env?: string | undefined;
|
|
1333
|
-
query_param?: string | undefined;
|
|
1334
1509
|
header_name?: string | undefined;
|
|
1510
|
+
query_param?: string | undefined;
|
|
1335
1511
|
priority?: number | undefined;
|
|
1336
1512
|
oauth_config?: {
|
|
1337
1513
|
issuer?: string | undefined;
|
|
@@ -1385,13 +1561,23 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
1385
1561
|
items?: {
|
|
1386
1562
|
type: string;
|
|
1387
1563
|
} | undefined;
|
|
1564
|
+
properties?: Record<string, unknown> | undefined;
|
|
1388
1565
|
required?: boolean | undefined;
|
|
1389
1566
|
required_for?: string[] | undefined;
|
|
1390
1567
|
enum?: string[] | undefined;
|
|
1391
1568
|
default?: unknown;
|
|
1392
1569
|
example?: unknown;
|
|
1393
1570
|
}>;
|
|
1394
|
-
operations?: Record<string, string
|
|
1571
|
+
operations?: Record<string, string | {
|
|
1572
|
+
type: "proxy_download";
|
|
1573
|
+
metadata_endpoint: string;
|
|
1574
|
+
url_field?: string | undefined;
|
|
1575
|
+
max_size_bytes?: number | undefined;
|
|
1576
|
+
max_size_bytes_from_env?: string | undefined;
|
|
1577
|
+
timeout_ms?: number | undefined;
|
|
1578
|
+
allowed_mime_types?: string[] | undefined;
|
|
1579
|
+
skip_auth?: boolean | undefined;
|
|
1580
|
+
}> | undefined;
|
|
1395
1581
|
composite?: boolean | undefined;
|
|
1396
1582
|
steps?: {
|
|
1397
1583
|
call: string;
|
|
@@ -1401,14 +1587,15 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
1401
1587
|
partial_results?: boolean | undefined;
|
|
1402
1588
|
metadata_params?: string[] | undefined;
|
|
1403
1589
|
response_fields?: Record<string, string[]> | undefined;
|
|
1590
|
+
send_response_fields_as_param?: boolean | undefined;
|
|
1404
1591
|
}[];
|
|
1405
1592
|
description?: string | undefined;
|
|
1406
1593
|
interceptors?: {
|
|
1407
1594
|
auth?: {
|
|
1408
1595
|
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
1409
1596
|
value_from_env?: string | undefined;
|
|
1410
|
-
query_param?: string | undefined;
|
|
1411
1597
|
header_name?: string | undefined;
|
|
1598
|
+
query_param?: string | undefined;
|
|
1412
1599
|
priority?: number | undefined;
|
|
1413
1600
|
oauth_config?: {
|
|
1414
1601
|
issuer?: string | undefined;
|
|
@@ -1433,8 +1620,8 @@ export declare const profileSchema: z.ZodObject<{
|
|
|
1433
1620
|
} | {
|
|
1434
1621
|
type: "bearer" | "query" | "custom-header" | "oauth";
|
|
1435
1622
|
value_from_env?: string | undefined;
|
|
1436
|
-
query_param?: string | undefined;
|
|
1437
1623
|
header_name?: string | undefined;
|
|
1624
|
+
query_param?: string | undefined;
|
|
1438
1625
|
priority?: number | undefined;
|
|
1439
1626
|
oauth_config?: {
|
|
1440
1627
|
issuer?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generated-schemas.d.ts","sourceRoot":"","sources":["../../src/generated-schemas.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAI9B,CAAC;AAEH,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"generated-schemas.d.ts","sourceRoot":"","sources":["../../src/generated-schemas.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAI9B,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYpC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;EASvC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAsD,CAAC;AAE7F,eAAO,MAAM,mBAAmB;;;;;;;;;EAG9B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;EAKhC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;EAI5B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY5B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAchC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMlC,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQxB,CAAC"}
|
|
@@ -14,9 +14,21 @@ export const parameterDefinitionSchema = z.object({
|
|
|
14
14
|
items: z.object({
|
|
15
15
|
type: z.string()
|
|
16
16
|
}).optional(),
|
|
17
|
+
properties: z.record(z.string(), z.unknown()).optional(),
|
|
17
18
|
default: z.unknown().optional(),
|
|
18
19
|
example: z.unknown().optional()
|
|
19
20
|
});
|
|
21
|
+
export const proxyDownloadOperationSchema = z.object({
|
|
22
|
+
type: z.literal("proxy_download"),
|
|
23
|
+
metadata_endpoint: z.string(),
|
|
24
|
+
url_field: z.string().optional(),
|
|
25
|
+
max_size_bytes: z.number().optional(),
|
|
26
|
+
max_size_bytes_from_env: z.string().optional(),
|
|
27
|
+
timeout_ms: z.number().optional(),
|
|
28
|
+
allowed_mime_types: z.array(z.string()).optional(),
|
|
29
|
+
skip_auth: z.boolean().optional()
|
|
30
|
+
});
|
|
31
|
+
export const operationDefinitionSchema = z.union([z.string(), proxyDownloadOperationSchema]);
|
|
20
32
|
export const baseUrlConfigSchema = z.object({
|
|
21
33
|
value_from_env: z.string(),
|
|
22
34
|
default: z.string().optional()
|
|
@@ -48,13 +60,14 @@ export const oAuthConfigSchema = z.object({
|
|
|
48
60
|
export const toolDefinitionSchema = z.object({
|
|
49
61
|
name: z.string(),
|
|
50
62
|
description: z.string(),
|
|
51
|
-
operations: z.
|
|
63
|
+
operations: z.record(z.string(), operationDefinitionSchema).optional(),
|
|
52
64
|
composite: z.boolean().optional(),
|
|
53
65
|
steps: z.array(compositeStepSchema).optional(),
|
|
54
66
|
partial_results: z.boolean().optional(),
|
|
55
67
|
parameters: z.record(z.string(), parameterDefinitionSchema),
|
|
56
68
|
metadata_params: z.array(z.string()).optional(),
|
|
57
|
-
response_fields: z.record(z.string(), z.array(z.string())).optional()
|
|
69
|
+
response_fields: z.record(z.string(), z.array(z.string())).optional(),
|
|
70
|
+
send_response_fields_as_param: z.boolean().optional()
|
|
58
71
|
});
|
|
59
72
|
export const authInterceptorSchema = z.object({
|
|
60
73
|
type: z.union([z.literal("bearer"), z.literal("query"), z.literal("custom-header"), z.literal("oauth")]),
|