mcp4openapi 0.2.4 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/README.md +14 -1
  2. package/dist/scripts/validate-profile.js +3 -1
  3. package/dist/scripts/validate-profile.js.map +1 -1
  4. package/dist/src/composite-executor.d.ts.map +1 -1
  5. package/dist/src/composite-executor.js +1 -3
  6. package/dist/src/composite-executor.js.map +1 -1
  7. package/dist/src/errors.js +0 -2
  8. package/dist/src/errors.js.map +1 -1
  9. package/dist/src/generated-schemas.d.ts +235 -30
  10. package/dist/src/generated-schemas.d.ts.map +1 -1
  11. package/dist/src/generated-schemas.js +16 -2
  12. package/dist/src/generated-schemas.js.map +1 -1
  13. package/dist/src/http-client-factory.js +3 -2
  14. package/dist/src/http-client-factory.js.map +1 -1
  15. package/dist/src/http-transport.d.ts +9 -2
  16. package/dist/src/http-transport.d.ts.map +1 -1
  17. package/dist/src/http-transport.js +133 -36
  18. package/dist/src/http-transport.js.map +1 -1
  19. package/dist/src/interceptors.d.ts +34 -0
  20. package/dist/src/interceptors.d.ts.map +1 -1
  21. package/dist/src/interceptors.js +90 -6
  22. package/dist/src/interceptors.js.map +1 -1
  23. package/dist/src/logger.js +0 -4
  24. package/dist/src/logger.js.map +1 -1
  25. package/dist/src/mcp-server.d.ts +7 -0
  26. package/dist/src/mcp-server.d.ts.map +1 -1
  27. package/dist/src/mcp-server.js +86 -20
  28. package/dist/src/mcp-server.js.map +1 -1
  29. package/dist/src/metrics.js +0 -17
  30. package/dist/src/metrics.js.map +1 -1
  31. package/dist/src/oauth-provider.d.ts +29 -0
  32. package/dist/src/oauth-provider.d.ts.map +1 -1
  33. package/dist/src/oauth-provider.js +177 -22
  34. package/dist/src/oauth-provider.js.map +1 -1
  35. package/dist/src/openapi-parser.d.ts.map +1 -1
  36. package/dist/src/openapi-parser.js +4 -3
  37. package/dist/src/openapi-parser.js.map +1 -1
  38. package/dist/src/profile-loader.d.ts.map +1 -1
  39. package/dist/src/profile-loader.js +8 -0
  40. package/dist/src/profile-loader.js.map +1 -1
  41. package/dist/src/proxy-executor.d.ts +71 -0
  42. package/dist/src/proxy-executor.d.ts.map +1 -0
  43. package/dist/src/proxy-executor.js +240 -0
  44. package/dist/src/proxy-executor.js.map +1 -0
  45. package/dist/src/testing/fixtures.d.ts +229 -2
  46. package/dist/src/testing/fixtures.d.ts.map +1 -1
  47. package/dist/src/testing/fixtures.js +175 -1
  48. package/dist/src/testing/fixtures.js.map +1 -1
  49. package/dist/src/testing/mock-gitlab-server.d.ts.map +1 -1
  50. package/dist/src/testing/mock-gitlab-server.js +356 -1
  51. package/dist/src/testing/mock-gitlab-server.js.map +1 -1
  52. package/dist/src/testing/mock-youtrack-server.d.ts +11 -0
  53. package/dist/src/testing/mock-youtrack-server.d.ts.map +1 -0
  54. package/dist/src/testing/mock-youtrack-server.js +138 -0
  55. package/dist/src/testing/mock-youtrack-server.js.map +1 -0
  56. package/dist/src/testing/test-http-utils.js +1 -3
  57. package/dist/src/testing/test-http-utils.js.map +1 -1
  58. package/dist/src/testing/test-types.d.ts +157 -2
  59. package/dist/src/testing/test-types.d.ts.map +1 -1
  60. package/dist/src/tool-generator.d.ts +23 -0
  61. package/dist/src/tool-generator.d.ts.map +1 -1
  62. package/dist/src/tool-generator.js +55 -5
  63. package/dist/src/tool-generator.js.map +1 -1
  64. package/dist/src/types/profile.d.ts +48 -3
  65. package/dist/src/types/profile.d.ts.map +1 -1
  66. package/package.json +1 -1
  67. package/profile-schema.json +90 -6
@@ -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,75 @@ 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
+ download_endpoint: z.ZodOptional<z.ZodString>;
60
+ url_field: z.ZodOptional<z.ZodString>;
61
+ max_size_bytes: z.ZodOptional<z.ZodNumber>;
62
+ max_size_bytes_from_env: z.ZodOptional<z.ZodString>;
63
+ timeout_ms: z.ZodOptional<z.ZodNumber>;
64
+ allowed_mime_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
65
+ skip_auth: z.ZodOptional<z.ZodBoolean>;
66
+ }, "strip", z.ZodTypeAny, {
67
+ type: "proxy_download";
68
+ metadata_endpoint: string;
69
+ download_endpoint?: string | undefined;
70
+ url_field?: string | undefined;
71
+ max_size_bytes?: number | undefined;
72
+ max_size_bytes_from_env?: string | undefined;
73
+ timeout_ms?: number | undefined;
74
+ allowed_mime_types?: string[] | undefined;
75
+ skip_auth?: boolean | undefined;
76
+ }, {
77
+ type: "proxy_download";
78
+ metadata_endpoint: string;
79
+ download_endpoint?: string | undefined;
80
+ url_field?: string | undefined;
81
+ max_size_bytes?: number | undefined;
82
+ max_size_bytes_from_env?: string | undefined;
83
+ timeout_ms?: number | undefined;
84
+ allowed_mime_types?: string[] | undefined;
85
+ skip_auth?: boolean | undefined;
86
+ }>;
87
+ export declare const operationDefinitionSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
88
+ type: z.ZodLiteral<"proxy_download">;
89
+ metadata_endpoint: z.ZodString;
90
+ download_endpoint: z.ZodOptional<z.ZodString>;
91
+ url_field: z.ZodOptional<z.ZodString>;
92
+ max_size_bytes: z.ZodOptional<z.ZodNumber>;
93
+ max_size_bytes_from_env: z.ZodOptional<z.ZodString>;
94
+ timeout_ms: z.ZodOptional<z.ZodNumber>;
95
+ allowed_mime_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
96
+ skip_auth: z.ZodOptional<z.ZodBoolean>;
97
+ }, "strip", z.ZodTypeAny, {
98
+ type: "proxy_download";
99
+ metadata_endpoint: string;
100
+ download_endpoint?: string | undefined;
101
+ url_field?: string | undefined;
102
+ max_size_bytes?: number | undefined;
103
+ max_size_bytes_from_env?: string | undefined;
104
+ timeout_ms?: number | undefined;
105
+ allowed_mime_types?: string[] | undefined;
106
+ skip_auth?: boolean | undefined;
107
+ }, {
108
+ type: "proxy_download";
109
+ metadata_endpoint: string;
110
+ download_endpoint?: string | undefined;
111
+ url_field?: string | undefined;
112
+ max_size_bytes?: number | undefined;
113
+ max_size_bytes_from_env?: string | undefined;
114
+ timeout_ms?: number | undefined;
115
+ allowed_mime_types?: string[] | undefined;
116
+ skip_auth?: boolean | undefined;
117
+ }>]>;
53
118
  export declare const baseUrlConfigSchema: z.ZodObject<{
54
119
  value_from_env: z.ZodString;
55
120
  default: z.ZodOptional<z.ZodString>;
@@ -133,7 +198,37 @@ export declare const oAuthConfigSchema: z.ZodObject<{
133
198
  export declare const toolDefinitionSchema: z.ZodObject<{
134
199
  name: z.ZodString;
135
200
  description: z.ZodString;
136
- operations: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodRecord<z.ZodString, z.ZodString>]>>;
201
+ operations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
202
+ type: z.ZodLiteral<"proxy_download">;
203
+ metadata_endpoint: z.ZodString;
204
+ download_endpoint: z.ZodOptional<z.ZodString>;
205
+ url_field: z.ZodOptional<z.ZodString>;
206
+ max_size_bytes: z.ZodOptional<z.ZodNumber>;
207
+ max_size_bytes_from_env: z.ZodOptional<z.ZodString>;
208
+ timeout_ms: z.ZodOptional<z.ZodNumber>;
209
+ allowed_mime_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
210
+ skip_auth: z.ZodOptional<z.ZodBoolean>;
211
+ }, "strip", z.ZodTypeAny, {
212
+ type: "proxy_download";
213
+ metadata_endpoint: string;
214
+ download_endpoint?: string | undefined;
215
+ url_field?: string | undefined;
216
+ max_size_bytes?: number | undefined;
217
+ max_size_bytes_from_env?: string | undefined;
218
+ timeout_ms?: number | undefined;
219
+ allowed_mime_types?: string[] | undefined;
220
+ skip_auth?: boolean | undefined;
221
+ }, {
222
+ type: "proxy_download";
223
+ metadata_endpoint: string;
224
+ download_endpoint?: string | undefined;
225
+ url_field?: string | undefined;
226
+ max_size_bytes?: number | undefined;
227
+ max_size_bytes_from_env?: string | undefined;
228
+ timeout_ms?: number | undefined;
229
+ allowed_mime_types?: string[] | undefined;
230
+ skip_auth?: boolean | undefined;
231
+ }>]>>>;
137
232
  composite: z.ZodOptional<z.ZodBoolean>;
138
233
  steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
139
234
  call: z.ZodString;
@@ -162,6 +257,7 @@ export declare const toolDefinitionSchema: z.ZodObject<{
162
257
  }, {
163
258
  type: string;
164
259
  }>>;
260
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
165
261
  default: z.ZodOptional<z.ZodUnknown>;
166
262
  example: z.ZodOptional<z.ZodUnknown>;
167
263
  }, "strip", z.ZodTypeAny, {
@@ -170,6 +266,7 @@ export declare const toolDefinitionSchema: z.ZodObject<{
170
266
  items?: {
171
267
  type: string;
172
268
  } | undefined;
269
+ properties?: Record<string, unknown> | undefined;
173
270
  required?: boolean | undefined;
174
271
  required_for?: string[] | undefined;
175
272
  enum?: string[] | undefined;
@@ -181,6 +278,7 @@ export declare const toolDefinitionSchema: z.ZodObject<{
181
278
  items?: {
182
279
  type: string;
183
280
  } | undefined;
281
+ properties?: Record<string, unknown> | undefined;
184
282
  required?: boolean | undefined;
185
283
  required_for?: string[] | undefined;
186
284
  enum?: string[] | undefined;
@@ -189,6 +287,7 @@ export declare const toolDefinitionSchema: z.ZodObject<{
189
287
  }>>;
190
288
  metadata_params: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
191
289
  response_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
290
+ send_response_fields_as_param: z.ZodOptional<z.ZodBoolean>;
192
291
  }, "strip", z.ZodTypeAny, {
193
292
  name: string;
194
293
  description: string;
@@ -198,13 +297,24 @@ export declare const toolDefinitionSchema: z.ZodObject<{
198
297
  items?: {
199
298
  type: string;
200
299
  } | undefined;
300
+ properties?: Record<string, unknown> | undefined;
201
301
  required?: boolean | undefined;
202
302
  required_for?: string[] | undefined;
203
303
  enum?: string[] | undefined;
204
304
  default?: unknown;
205
305
  example?: unknown;
206
306
  }>;
207
- operations?: Record<string, string> | undefined;
307
+ operations?: Record<string, string | {
308
+ type: "proxy_download";
309
+ metadata_endpoint: string;
310
+ download_endpoint?: string | undefined;
311
+ url_field?: string | undefined;
312
+ max_size_bytes?: number | undefined;
313
+ max_size_bytes_from_env?: string | undefined;
314
+ timeout_ms?: number | undefined;
315
+ allowed_mime_types?: string[] | undefined;
316
+ skip_auth?: boolean | undefined;
317
+ }> | undefined;
208
318
  composite?: boolean | undefined;
209
319
  steps?: {
210
320
  call: string;
@@ -214,6 +324,7 @@ export declare const toolDefinitionSchema: z.ZodObject<{
214
324
  partial_results?: boolean | undefined;
215
325
  metadata_params?: string[] | undefined;
216
326
  response_fields?: Record<string, string[]> | undefined;
327
+ send_response_fields_as_param?: boolean | undefined;
217
328
  }, {
218
329
  name: string;
219
330
  description: string;
@@ -223,13 +334,24 @@ export declare const toolDefinitionSchema: z.ZodObject<{
223
334
  items?: {
224
335
  type: string;
225
336
  } | undefined;
337
+ properties?: Record<string, unknown> | undefined;
226
338
  required?: boolean | undefined;
227
339
  required_for?: string[] | undefined;
228
340
  enum?: string[] | undefined;
229
341
  default?: unknown;
230
342
  example?: unknown;
231
343
  }>;
232
- operations?: Record<string, string> | undefined;
344
+ operations?: Record<string, string | {
345
+ type: "proxy_download";
346
+ metadata_endpoint: string;
347
+ download_endpoint?: string | undefined;
348
+ url_field?: string | undefined;
349
+ max_size_bytes?: number | undefined;
350
+ max_size_bytes_from_env?: string | undefined;
351
+ timeout_ms?: number | undefined;
352
+ allowed_mime_types?: string[] | undefined;
353
+ skip_auth?: boolean | undefined;
354
+ }> | undefined;
233
355
  composite?: boolean | undefined;
234
356
  steps?: {
235
357
  call: string;
@@ -239,6 +361,7 @@ export declare const toolDefinitionSchema: z.ZodObject<{
239
361
  partial_results?: boolean | undefined;
240
362
  metadata_params?: string[] | undefined;
241
363
  response_fields?: Record<string, string[]> | undefined;
364
+ send_response_fields_as_param?: boolean | undefined;
242
365
  }>;
243
366
  export declare const authInterceptorSchema: z.ZodObject<{
244
367
  type: z.ZodUnion<[z.ZodLiteral<"bearer">, z.ZodLiteral<"query">, z.ZodLiteral<"custom-header">, z.ZodLiteral<"oauth">]>;
@@ -299,8 +422,8 @@ export declare const authInterceptorSchema: z.ZodObject<{
299
422
  }, "strip", z.ZodTypeAny, {
300
423
  type: "bearer" | "query" | "custom-header" | "oauth";
301
424
  value_from_env?: string | undefined;
302
- query_param?: string | undefined;
303
425
  header_name?: string | undefined;
426
+ query_param?: string | undefined;
304
427
  priority?: number | undefined;
305
428
  oauth_config?: {
306
429
  issuer?: string | undefined;
@@ -325,8 +448,8 @@ export declare const authInterceptorSchema: z.ZodObject<{
325
448
  }, {
326
449
  type: "bearer" | "query" | "custom-header" | "oauth";
327
450
  value_from_env?: string | undefined;
328
- query_param?: string | undefined;
329
451
  header_name?: string | undefined;
452
+ query_param?: string | undefined;
330
453
  priority?: number | undefined;
331
454
  oauth_config?: {
332
455
  issuer?: string | undefined;
@@ -409,8 +532,8 @@ export declare const interceptorConfigSchema: z.ZodObject<{
409
532
  }, "strip", z.ZodTypeAny, {
410
533
  type: "bearer" | "query" | "custom-header" | "oauth";
411
534
  value_from_env?: string | undefined;
412
- query_param?: string | undefined;
413
535
  header_name?: string | undefined;
536
+ query_param?: string | undefined;
414
537
  priority?: number | undefined;
415
538
  oauth_config?: {
416
539
  issuer?: string | undefined;
@@ -435,8 +558,8 @@ export declare const interceptorConfigSchema: z.ZodObject<{
435
558
  }, {
436
559
  type: "bearer" | "query" | "custom-header" | "oauth";
437
560
  value_from_env?: string | undefined;
438
- query_param?: string | undefined;
439
561
  header_name?: string | undefined;
562
+ query_param?: string | undefined;
440
563
  priority?: number | undefined;
441
564
  oauth_config?: {
442
565
  issuer?: string | undefined;
@@ -517,8 +640,8 @@ export declare const interceptorConfigSchema: z.ZodObject<{
517
640
  }, "strip", z.ZodTypeAny, {
518
641
  type: "bearer" | "query" | "custom-header" | "oauth";
519
642
  value_from_env?: string | undefined;
520
- query_param?: string | undefined;
521
643
  header_name?: string | undefined;
644
+ query_param?: string | undefined;
522
645
  priority?: number | undefined;
523
646
  oauth_config?: {
524
647
  issuer?: string | undefined;
@@ -543,8 +666,8 @@ export declare const interceptorConfigSchema: z.ZodObject<{
543
666
  }, {
544
667
  type: "bearer" | "query" | "custom-header" | "oauth";
545
668
  value_from_env?: string | undefined;
546
- query_param?: string | undefined;
547
669
  header_name?: string | undefined;
670
+ query_param?: string | undefined;
548
671
  priority?: number | undefined;
549
672
  oauth_config?: {
550
673
  issuer?: string | undefined;
@@ -615,8 +738,8 @@ export declare const interceptorConfigSchema: z.ZodObject<{
615
738
  auth?: {
616
739
  type: "bearer" | "query" | "custom-header" | "oauth";
617
740
  value_from_env?: string | undefined;
618
- query_param?: string | undefined;
619
741
  header_name?: string | undefined;
742
+ query_param?: string | undefined;
620
743
  priority?: number | undefined;
621
744
  oauth_config?: {
622
745
  issuer?: string | undefined;
@@ -641,8 +764,8 @@ export declare const interceptorConfigSchema: z.ZodObject<{
641
764
  } | {
642
765
  type: "bearer" | "query" | "custom-header" | "oauth";
643
766
  value_from_env?: string | undefined;
644
- query_param?: string | undefined;
645
767
  header_name?: string | undefined;
768
+ query_param?: string | undefined;
646
769
  priority?: number | undefined;
647
770
  oauth_config?: {
648
771
  issuer?: string | undefined;
@@ -685,8 +808,8 @@ export declare const interceptorConfigSchema: z.ZodObject<{
685
808
  auth?: {
686
809
  type: "bearer" | "query" | "custom-header" | "oauth";
687
810
  value_from_env?: string | undefined;
688
- query_param?: string | undefined;
689
811
  header_name?: string | undefined;
812
+ query_param?: string | undefined;
690
813
  priority?: number | undefined;
691
814
  oauth_config?: {
692
815
  issuer?: string | undefined;
@@ -711,8 +834,8 @@ export declare const interceptorConfigSchema: z.ZodObject<{
711
834
  } | {
712
835
  type: "bearer" | "query" | "custom-header" | "oauth";
713
836
  value_from_env?: string | undefined;
714
- query_param?: string | undefined;
715
837
  header_name?: string | undefined;
838
+ query_param?: string | undefined;
716
839
  priority?: number | undefined;
717
840
  oauth_config?: {
718
841
  issuer?: string | undefined;
@@ -758,7 +881,37 @@ export declare const profileSchema: z.ZodObject<{
758
881
  tools: z.ZodArray<z.ZodObject<{
759
882
  name: z.ZodString;
760
883
  description: z.ZodString;
761
- operations: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodRecord<z.ZodString, z.ZodString>]>>;
884
+ operations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
885
+ type: z.ZodLiteral<"proxy_download">;
886
+ metadata_endpoint: z.ZodString;
887
+ download_endpoint: z.ZodOptional<z.ZodString>;
888
+ url_field: z.ZodOptional<z.ZodString>;
889
+ max_size_bytes: z.ZodOptional<z.ZodNumber>;
890
+ max_size_bytes_from_env: z.ZodOptional<z.ZodString>;
891
+ timeout_ms: z.ZodOptional<z.ZodNumber>;
892
+ allowed_mime_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
893
+ skip_auth: z.ZodOptional<z.ZodBoolean>;
894
+ }, "strip", z.ZodTypeAny, {
895
+ type: "proxy_download";
896
+ metadata_endpoint: string;
897
+ download_endpoint?: string | undefined;
898
+ url_field?: string | undefined;
899
+ max_size_bytes?: number | undefined;
900
+ max_size_bytes_from_env?: string | undefined;
901
+ timeout_ms?: number | undefined;
902
+ allowed_mime_types?: string[] | undefined;
903
+ skip_auth?: boolean | undefined;
904
+ }, {
905
+ type: "proxy_download";
906
+ metadata_endpoint: string;
907
+ download_endpoint?: string | undefined;
908
+ url_field?: string | undefined;
909
+ max_size_bytes?: number | undefined;
910
+ max_size_bytes_from_env?: string | undefined;
911
+ timeout_ms?: number | undefined;
912
+ allowed_mime_types?: string[] | undefined;
913
+ skip_auth?: boolean | undefined;
914
+ }>]>>>;
762
915
  composite: z.ZodOptional<z.ZodBoolean>;
763
916
  steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
764
917
  call: z.ZodString;
@@ -787,6 +940,7 @@ export declare const profileSchema: z.ZodObject<{
787
940
  }, {
788
941
  type: string;
789
942
  }>>;
943
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
790
944
  default: z.ZodOptional<z.ZodUnknown>;
791
945
  example: z.ZodOptional<z.ZodUnknown>;
792
946
  }, "strip", z.ZodTypeAny, {
@@ -795,6 +949,7 @@ export declare const profileSchema: z.ZodObject<{
795
949
  items?: {
796
950
  type: string;
797
951
  } | undefined;
952
+ properties?: Record<string, unknown> | undefined;
798
953
  required?: boolean | undefined;
799
954
  required_for?: string[] | undefined;
800
955
  enum?: string[] | undefined;
@@ -806,6 +961,7 @@ export declare const profileSchema: z.ZodObject<{
806
961
  items?: {
807
962
  type: string;
808
963
  } | undefined;
964
+ properties?: Record<string, unknown> | undefined;
809
965
  required?: boolean | undefined;
810
966
  required_for?: string[] | undefined;
811
967
  enum?: string[] | undefined;
@@ -814,6 +970,7 @@ export declare const profileSchema: z.ZodObject<{
814
970
  }>>;
815
971
  metadata_params: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
816
972
  response_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
973
+ send_response_fields_as_param: z.ZodOptional<z.ZodBoolean>;
817
974
  }, "strip", z.ZodTypeAny, {
818
975
  name: string;
819
976
  description: string;
@@ -823,13 +980,24 @@ export declare const profileSchema: z.ZodObject<{
823
980
  items?: {
824
981
  type: string;
825
982
  } | undefined;
983
+ properties?: Record<string, unknown> | undefined;
826
984
  required?: boolean | undefined;
827
985
  required_for?: string[] | undefined;
828
986
  enum?: string[] | undefined;
829
987
  default?: unknown;
830
988
  example?: unknown;
831
989
  }>;
832
- operations?: Record<string, string> | undefined;
990
+ operations?: Record<string, string | {
991
+ type: "proxy_download";
992
+ metadata_endpoint: string;
993
+ download_endpoint?: string | undefined;
994
+ url_field?: string | undefined;
995
+ max_size_bytes?: number | undefined;
996
+ max_size_bytes_from_env?: string | undefined;
997
+ timeout_ms?: number | undefined;
998
+ allowed_mime_types?: string[] | undefined;
999
+ skip_auth?: boolean | undefined;
1000
+ }> | undefined;
833
1001
  composite?: boolean | undefined;
834
1002
  steps?: {
835
1003
  call: string;
@@ -839,6 +1007,7 @@ export declare const profileSchema: z.ZodObject<{
839
1007
  partial_results?: boolean | undefined;
840
1008
  metadata_params?: string[] | undefined;
841
1009
  response_fields?: Record<string, string[]> | undefined;
1010
+ send_response_fields_as_param?: boolean | undefined;
842
1011
  }, {
843
1012
  name: string;
844
1013
  description: string;
@@ -848,13 +1017,24 @@ export declare const profileSchema: z.ZodObject<{
848
1017
  items?: {
849
1018
  type: string;
850
1019
  } | undefined;
1020
+ properties?: Record<string, unknown> | undefined;
851
1021
  required?: boolean | undefined;
852
1022
  required_for?: string[] | undefined;
853
1023
  enum?: string[] | undefined;
854
1024
  default?: unknown;
855
1025
  example?: unknown;
856
1026
  }>;
857
- operations?: Record<string, string> | undefined;
1027
+ operations?: Record<string, string | {
1028
+ type: "proxy_download";
1029
+ metadata_endpoint: string;
1030
+ download_endpoint?: string | undefined;
1031
+ url_field?: string | undefined;
1032
+ max_size_bytes?: number | undefined;
1033
+ max_size_bytes_from_env?: string | undefined;
1034
+ timeout_ms?: number | undefined;
1035
+ allowed_mime_types?: string[] | undefined;
1036
+ skip_auth?: boolean | undefined;
1037
+ }> | undefined;
858
1038
  composite?: boolean | undefined;
859
1039
  steps?: {
860
1040
  call: string;
@@ -864,6 +1044,7 @@ export declare const profileSchema: z.ZodObject<{
864
1044
  partial_results?: boolean | undefined;
865
1045
  metadata_params?: string[] | undefined;
866
1046
  response_fields?: Record<string, string[]> | undefined;
1047
+ send_response_fields_as_param?: boolean | undefined;
867
1048
  }>, "many">;
868
1049
  interceptors: z.ZodOptional<z.ZodObject<{
869
1050
  auth: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -925,8 +1106,8 @@ export declare const profileSchema: z.ZodObject<{
925
1106
  }, "strip", z.ZodTypeAny, {
926
1107
  type: "bearer" | "query" | "custom-header" | "oauth";
927
1108
  value_from_env?: string | undefined;
928
- query_param?: string | undefined;
929
1109
  header_name?: string | undefined;
1110
+ query_param?: string | undefined;
930
1111
  priority?: number | undefined;
931
1112
  oauth_config?: {
932
1113
  issuer?: string | undefined;
@@ -951,8 +1132,8 @@ export declare const profileSchema: z.ZodObject<{
951
1132
  }, {
952
1133
  type: "bearer" | "query" | "custom-header" | "oauth";
953
1134
  value_from_env?: string | undefined;
954
- query_param?: string | undefined;
955
1135
  header_name?: string | undefined;
1136
+ query_param?: string | undefined;
956
1137
  priority?: number | undefined;
957
1138
  oauth_config?: {
958
1139
  issuer?: string | undefined;
@@ -1033,8 +1214,8 @@ export declare const profileSchema: z.ZodObject<{
1033
1214
  }, "strip", z.ZodTypeAny, {
1034
1215
  type: "bearer" | "query" | "custom-header" | "oauth";
1035
1216
  value_from_env?: string | undefined;
1036
- query_param?: string | undefined;
1037
1217
  header_name?: string | undefined;
1218
+ query_param?: string | undefined;
1038
1219
  priority?: number | undefined;
1039
1220
  oauth_config?: {
1040
1221
  issuer?: string | undefined;
@@ -1059,8 +1240,8 @@ export declare const profileSchema: z.ZodObject<{
1059
1240
  }, {
1060
1241
  type: "bearer" | "query" | "custom-header" | "oauth";
1061
1242
  value_from_env?: string | undefined;
1062
- query_param?: string | undefined;
1063
1243
  header_name?: string | undefined;
1244
+ query_param?: string | undefined;
1064
1245
  priority?: number | undefined;
1065
1246
  oauth_config?: {
1066
1247
  issuer?: string | undefined;
@@ -1131,8 +1312,8 @@ export declare const profileSchema: z.ZodObject<{
1131
1312
  auth?: {
1132
1313
  type: "bearer" | "query" | "custom-header" | "oauth";
1133
1314
  value_from_env?: string | undefined;
1134
- query_param?: string | undefined;
1135
1315
  header_name?: string | undefined;
1316
+ query_param?: string | undefined;
1136
1317
  priority?: number | undefined;
1137
1318
  oauth_config?: {
1138
1319
  issuer?: string | undefined;
@@ -1157,8 +1338,8 @@ export declare const profileSchema: z.ZodObject<{
1157
1338
  } | {
1158
1339
  type: "bearer" | "query" | "custom-header" | "oauth";
1159
1340
  value_from_env?: string | undefined;
1160
- query_param?: string | undefined;
1161
1341
  header_name?: string | undefined;
1342
+ query_param?: string | undefined;
1162
1343
  priority?: number | undefined;
1163
1344
  oauth_config?: {
1164
1345
  issuer?: string | undefined;
@@ -1201,8 +1382,8 @@ export declare const profileSchema: z.ZodObject<{
1201
1382
  auth?: {
1202
1383
  type: "bearer" | "query" | "custom-header" | "oauth";
1203
1384
  value_from_env?: string | undefined;
1204
- query_param?: string | undefined;
1205
1385
  header_name?: string | undefined;
1386
+ query_param?: string | undefined;
1206
1387
  priority?: number | undefined;
1207
1388
  oauth_config?: {
1208
1389
  issuer?: string | undefined;
@@ -1227,8 +1408,8 @@ export declare const profileSchema: z.ZodObject<{
1227
1408
  } | {
1228
1409
  type: "bearer" | "query" | "custom-header" | "oauth";
1229
1410
  value_from_env?: string | undefined;
1230
- query_param?: string | undefined;
1231
1411
  header_name?: string | undefined;
1412
+ query_param?: string | undefined;
1232
1413
  priority?: number | undefined;
1233
1414
  oauth_config?: {
1234
1415
  issuer?: string | undefined;
@@ -1282,13 +1463,24 @@ export declare const profileSchema: z.ZodObject<{
1282
1463
  items?: {
1283
1464
  type: string;
1284
1465
  } | undefined;
1466
+ properties?: Record<string, unknown> | undefined;
1285
1467
  required?: boolean | undefined;
1286
1468
  required_for?: string[] | undefined;
1287
1469
  enum?: string[] | undefined;
1288
1470
  default?: unknown;
1289
1471
  example?: unknown;
1290
1472
  }>;
1291
- operations?: Record<string, string> | undefined;
1473
+ operations?: Record<string, string | {
1474
+ type: "proxy_download";
1475
+ metadata_endpoint: string;
1476
+ download_endpoint?: string | undefined;
1477
+ url_field?: string | undefined;
1478
+ max_size_bytes?: number | undefined;
1479
+ max_size_bytes_from_env?: string | undefined;
1480
+ timeout_ms?: number | undefined;
1481
+ allowed_mime_types?: string[] | undefined;
1482
+ skip_auth?: boolean | undefined;
1483
+ }> | undefined;
1292
1484
  composite?: boolean | undefined;
1293
1485
  steps?: {
1294
1486
  call: string;
@@ -1298,14 +1490,15 @@ export declare const profileSchema: z.ZodObject<{
1298
1490
  partial_results?: boolean | undefined;
1299
1491
  metadata_params?: string[] | undefined;
1300
1492
  response_fields?: Record<string, string[]> | undefined;
1493
+ send_response_fields_as_param?: boolean | undefined;
1301
1494
  }[];
1302
1495
  description?: string | undefined;
1303
1496
  interceptors?: {
1304
1497
  auth?: {
1305
1498
  type: "bearer" | "query" | "custom-header" | "oauth";
1306
1499
  value_from_env?: string | undefined;
1307
- query_param?: string | undefined;
1308
1500
  header_name?: string | undefined;
1501
+ query_param?: string | undefined;
1309
1502
  priority?: number | undefined;
1310
1503
  oauth_config?: {
1311
1504
  issuer?: string | undefined;
@@ -1330,8 +1523,8 @@ export declare const profileSchema: z.ZodObject<{
1330
1523
  } | {
1331
1524
  type: "bearer" | "query" | "custom-header" | "oauth";
1332
1525
  value_from_env?: string | undefined;
1333
- query_param?: string | undefined;
1334
1526
  header_name?: string | undefined;
1527
+ query_param?: string | undefined;
1335
1528
  priority?: number | undefined;
1336
1529
  oauth_config?: {
1337
1530
  issuer?: string | undefined;
@@ -1385,13 +1578,24 @@ export declare const profileSchema: z.ZodObject<{
1385
1578
  items?: {
1386
1579
  type: string;
1387
1580
  } | undefined;
1581
+ properties?: Record<string, unknown> | undefined;
1388
1582
  required?: boolean | undefined;
1389
1583
  required_for?: string[] | undefined;
1390
1584
  enum?: string[] | undefined;
1391
1585
  default?: unknown;
1392
1586
  example?: unknown;
1393
1587
  }>;
1394
- operations?: Record<string, string> | undefined;
1588
+ operations?: Record<string, string | {
1589
+ type: "proxy_download";
1590
+ metadata_endpoint: string;
1591
+ download_endpoint?: string | undefined;
1592
+ url_field?: string | undefined;
1593
+ max_size_bytes?: number | undefined;
1594
+ max_size_bytes_from_env?: string | undefined;
1595
+ timeout_ms?: number | undefined;
1596
+ allowed_mime_types?: string[] | undefined;
1597
+ skip_auth?: boolean | undefined;
1598
+ }> | undefined;
1395
1599
  composite?: boolean | undefined;
1396
1600
  steps?: {
1397
1601
  call: string;
@@ -1401,14 +1605,15 @@ export declare const profileSchema: z.ZodObject<{
1401
1605
  partial_results?: boolean | undefined;
1402
1606
  metadata_params?: string[] | undefined;
1403
1607
  response_fields?: Record<string, string[]> | undefined;
1608
+ send_response_fields_as_param?: boolean | undefined;
1404
1609
  }[];
1405
1610
  description?: string | undefined;
1406
1611
  interceptors?: {
1407
1612
  auth?: {
1408
1613
  type: "bearer" | "query" | "custom-header" | "oauth";
1409
1614
  value_from_env?: string | undefined;
1410
- query_param?: string | undefined;
1411
1615
  header_name?: string | undefined;
1616
+ query_param?: string | undefined;
1412
1617
  priority?: number | undefined;
1413
1618
  oauth_config?: {
1414
1619
  issuer?: string | undefined;
@@ -1433,8 +1638,8 @@ export declare const profileSchema: z.ZodObject<{
1433
1638
  } | {
1434
1639
  type: "bearer" | "query" | "custom-header" | "oauth";
1435
1640
  value_from_env?: string | undefined;
1436
- query_param?: string | undefined;
1437
1641
  header_name?: string | undefined;
1642
+ query_param?: string | undefined;
1438
1643
  priority?: number | undefined;
1439
1644
  oauth_config?: {
1440
1645
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWpC,CAAC;AAEH,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAchC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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