@scalar/openapi-parser 0.4.1 → 0.6.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.
Files changed (81) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +6 -6
  3. package/dist/configuration.d.ts +3907 -0
  4. package/dist/index.d.ts +29 -5889
  5. package/dist/lib/Validator/Validator.d.ts +33 -0
  6. package/dist/pipeline.d.ts +388 -0
  7. package/dist/schemas/v2.0/schema.json.js +1623 -0
  8. package/dist/schemas/v3.0/schema.json.js +1673 -0
  9. package/dist/schemas/v3.1/schema.json.js +1452 -0
  10. package/dist/src/configuration.js +22 -0
  11. package/dist/src/index.js +27 -0
  12. package/dist/src/lib/Validator/Validator.js +94 -0
  13. package/dist/src/pipeline.js +121 -0
  14. package/dist/src/polyfills/path.js +83 -0
  15. package/dist/src/utils/betterAjvErrors/helpers.js +89 -0
  16. package/dist/src/utils/betterAjvErrors/index.js +15 -0
  17. package/dist/src/utils/betterAjvErrors/utils.js +17 -0
  18. package/dist/src/utils/betterAjvErrors/validation-errors/additional-prop.js +18 -0
  19. package/dist/src/utils/betterAjvErrors/validation-errors/base.js +23 -0
  20. package/dist/src/utils/betterAjvErrors/validation-errors/default.js +18 -0
  21. package/dist/src/utils/betterAjvErrors/validation-errors/enum.js +41 -0
  22. package/dist/src/utils/betterAjvErrors/validation-errors/pattern.js +18 -0
  23. package/dist/src/utils/betterAjvErrors/validation-errors/required.js +17 -0
  24. package/dist/src/utils/betterAjvErrors/validation-errors/unevaluated-prop.js +18 -0
  25. package/dist/src/utils/dereference.js +18 -0
  26. package/dist/src/utils/details.js +22 -0
  27. package/dist/src/utils/escapeJsonPointer.js +5 -0
  28. package/dist/src/utils/filter.js +17 -0
  29. package/dist/src/utils/getEntrypoint.js +5 -0
  30. package/dist/src/utils/getListOfReferences.js +17 -0
  31. package/dist/src/utils/getSegmentsFromPath.js +10 -0
  32. package/dist/src/utils/isFilesystem.js +5 -0
  33. package/dist/src/utils/isJson.js +10 -0
  34. package/dist/src/utils/isObject.js +3 -0
  35. package/dist/src/utils/isYaml.js +17 -0
  36. package/dist/src/utils/load/load.js +59 -0
  37. package/dist/src/utils/load/plugins/fetchUrlsPlugin.js +38 -0
  38. package/dist/src/utils/load/plugins/readFilesPlugin.js +50 -0
  39. package/dist/src/utils/makeFilesystem.js +22 -0
  40. package/dist/src/utils/normalize.js +20 -0
  41. package/dist/src/utils/resolveReferences.js +106 -0
  42. package/dist/src/utils/toJson.js +3 -0
  43. package/dist/src/utils/toYaml.js +5 -0
  44. package/dist/src/utils/transformErrors.js +19 -0
  45. package/dist/src/utils/traverse.js +20 -0
  46. package/dist/src/utils/unescapeJsonPointer.js +5 -0
  47. package/dist/src/utils/upgrade.js +19 -0
  48. package/dist/src/utils/upgradeFromThreeToThreeOne.js +71 -0
  49. package/dist/src/utils/upgradeFromTwoToThree.js +5 -0
  50. package/dist/src/utils/validate.js +15 -0
  51. package/dist/src/utils/workThroughQueue.js +24 -0
  52. package/dist/types/index.d.ts +57 -0
  53. package/dist/types/openapi-types.d.ts +747 -0
  54. package/dist/utils/dereference.d.ts +8 -0
  55. package/dist/utils/details.d.ts +8 -0
  56. package/dist/utils/escapeJsonPointer.d.ts +8 -0
  57. package/dist/utils/filter.d.ts +8 -0
  58. package/dist/utils/getEntrypoint.d.ts +8 -0
  59. package/dist/utils/getListOfReferences.d.ts +10 -0
  60. package/dist/utils/getSegmentsFromPath.d.ts +6 -0
  61. package/dist/utils/isFilesystem.d.ts +6 -0
  62. package/dist/utils/isJson.d.ts +3 -0
  63. package/dist/utils/isObject.d.ts +6 -0
  64. package/dist/utils/isYaml.d.ts +3 -0
  65. package/dist/utils/load/load.d.ts +16 -0
  66. package/dist/utils/load/plugins/fetchUrlsPlugin.d.ts +17 -0
  67. package/dist/utils/load/plugins/readFilesPlugin.d.ts +5 -0
  68. package/dist/utils/normalize.d.ts +9 -0
  69. package/dist/utils/resolveReferences.d.ts +14 -0
  70. package/dist/utils/toJson.d.ts +5 -0
  71. package/dist/utils/toYaml.d.ts +5 -0
  72. package/dist/utils/transformErrors.d.ts +8 -0
  73. package/dist/utils/traverse.d.ts +8 -0
  74. package/dist/utils/unescapeJsonPointer.d.ts +9 -0
  75. package/dist/utils/upgrade.d.ts +8 -0
  76. package/dist/utils/upgradeFromThreeToThreeOne.d.ts +10 -0
  77. package/dist/utils/upgradeFromTwoToThree.d.ts +10 -0
  78. package/dist/utils/validate.d.ts +8 -0
  79. package/dist/webpack-stats.json +1 -1
  80. package/package.json +14 -9
  81. package/dist/index.js +0 -5521
@@ -0,0 +1,33 @@
1
+ import Ajv04 from 'ajv-draft-04';
2
+ import Ajv2020 from 'ajv/dist/2020';
3
+ import { OpenApiVersion } from '../../configuration.js';
4
+ import { AnyObject, Filesystem, ValidateResult } from '../../types/index.js';
5
+
6
+ /**
7
+ * Configure available JSON Schema versions
8
+ */
9
+ declare const jsonSchemaVersions: {
10
+ 'http://json-schema.org/draft-04/schema#': typeof Ajv04;
11
+ 'https://json-schema.org/draft/2020-12/schema': typeof Ajv2020;
12
+ };
13
+ declare class Validator {
14
+ version: string;
15
+ static supportedVersions: ("2.0" | "3.0" | "3.1")[];
16
+ protected ajvValidators: Record<string, ((specification: AnyObject) => boolean) & {
17
+ errors: string;
18
+ }>;
19
+ protected errors: string;
20
+ protected specificationVersion: string;
21
+ protected specificationType: string;
22
+ specification: AnyObject;
23
+ /**
24
+ * Checks whether a specification is valid and all references can be resolved.
25
+ */
26
+ validate(filesystem: Filesystem): Promise<ValidateResult>;
27
+ /**
28
+ * Ajv JSON schema validator
29
+ */
30
+ getAjvValidator(version: OpenApiVersion): Promise<any>;
31
+ }
32
+
33
+ export { Validator, jsonSchemaVersions };
@@ -0,0 +1,388 @@
1
+ import { AnyObject, LoadResult, DereferenceResult, ValidateResult, UpgradeResult, FilterResult, Filesystem, DetailsResult } from './types/index.js';
2
+ import { dereference } from './utils/dereference.js';
3
+ import { filter } from './utils/filter.js';
4
+ import { load, LoadPlugin } from './utils/load/load.js';
5
+ import { upgrade } from './utils/upgrade.js';
6
+ import { validate } from './utils/validate.js';
7
+
8
+ /**
9
+ * A queuable action for the pipeline
10
+ */
11
+ type Action = {
12
+ action: typeof load | typeof upgrade | typeof filter | typeof dereference | typeof validate;
13
+ options?: AnyObject;
14
+ };
15
+ /**
16
+ * A queue of tasks to run on an OpenAPI specification
17
+ */
18
+ type Queue = {
19
+ specification: AnyApiDefinitionFormat;
20
+ tasks: Action[];
21
+ };
22
+ /**
23
+ * JSON, YAML or object representation of an OpenAPI API definition
24
+ */
25
+ type AnyApiDefinitionFormat = string | AnyObject;
26
+ /**
27
+ * Creates a new pipeline
28
+ */
29
+ declare function openapi(): {
30
+ load: typeof loadAction;
31
+ };
32
+ /**
33
+ * Load an OpenAPI specification.
34
+ *
35
+ * Example: await openapi().load({ openapi: '3.0.0' })
36
+ */
37
+ declare function loadAction(specification: AnyApiDefinitionFormat, options?: {
38
+ plugins: LoadPlugin[];
39
+ }): {
40
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
41
+ filesystem: Filesystem;
42
+ }>>;
43
+ files: () => Promise<Filesystem>;
44
+ details: () => Promise<DetailsResult>;
45
+ filter: (callback: (Specification: AnyObject) => boolean) => {
46
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
47
+ filesystem: Filesystem;
48
+ }>>;
49
+ files: () => Promise<Filesystem>;
50
+ details: () => Promise<DetailsResult>;
51
+ filter: () => any;
52
+ upgrade: () => {
53
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
54
+ filesystem: Filesystem;
55
+ }>>;
56
+ files: () => Promise<Filesystem>;
57
+ details: () => Promise<DetailsResult>;
58
+ filter: (callback: (Specification: AnyObject) => boolean) => any;
59
+ validate: () => {
60
+ filter: (callback: (Specification: AnyObject) => boolean) => any;
61
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
62
+ filesystem: Filesystem;
63
+ }>>;
64
+ files: () => Promise<Filesystem>;
65
+ details: () => Promise<DetailsResult>;
66
+ dereference: () => {
67
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
68
+ filesystem: Filesystem;
69
+ }>>;
70
+ files: () => Promise<Filesystem>;
71
+ filter: (callback: (Specification: AnyObject) => boolean) => any;
72
+ toJson: () => Promise<string>;
73
+ toYaml: () => Promise<string>;
74
+ };
75
+ toJson: () => Promise<string>;
76
+ toYaml: () => Promise<string>;
77
+ };
78
+ dereference: () => {
79
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
80
+ filesystem: Filesystem;
81
+ }>>;
82
+ files: () => Promise<Filesystem>;
83
+ filter: (callback: (Specification: AnyObject) => boolean) => any;
84
+ toJson: () => Promise<string>;
85
+ toYaml: () => Promise<string>;
86
+ };
87
+ toJson: () => Promise<string>;
88
+ toYaml: () => Promise<string>;
89
+ };
90
+ validate: () => {
91
+ filter: (callback: (Specification: AnyObject) => boolean) => any;
92
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
93
+ filesystem: Filesystem;
94
+ }>>;
95
+ files: () => Promise<Filesystem>;
96
+ details: () => Promise<DetailsResult>;
97
+ dereference: () => {
98
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
99
+ filesystem: Filesystem;
100
+ }>>;
101
+ files: () => Promise<Filesystem>;
102
+ filter: (callback: (Specification: AnyObject) => boolean) => any;
103
+ toJson: () => Promise<string>;
104
+ toYaml: () => Promise<string>;
105
+ };
106
+ toJson: () => Promise<string>;
107
+ toYaml: () => Promise<string>;
108
+ };
109
+ dereference: () => {
110
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
111
+ filesystem: Filesystem;
112
+ }>>;
113
+ files: () => Promise<Filesystem>;
114
+ filter: (callback: (Specification: AnyObject) => boolean) => any;
115
+ toJson: () => Promise<string>;
116
+ toYaml: () => Promise<string>;
117
+ };
118
+ toJson: () => Promise<string>;
119
+ toYaml: () => Promise<string>;
120
+ };
121
+ upgrade: () => {
122
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
123
+ filesystem: Filesystem;
124
+ }>>;
125
+ files: () => Promise<Filesystem>;
126
+ details: () => Promise<DetailsResult>;
127
+ filter: (callback: (Specification: AnyObject) => boolean) => {
128
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
129
+ filesystem: Filesystem;
130
+ }>>;
131
+ files: () => Promise<Filesystem>;
132
+ details: () => Promise<DetailsResult>;
133
+ filter: () => any;
134
+ upgrade: () => any;
135
+ validate: () => {
136
+ filter: (callback: (Specification: AnyObject) => boolean) => any;
137
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
138
+ filesystem: Filesystem;
139
+ }>>;
140
+ files: () => Promise<Filesystem>;
141
+ details: () => Promise<DetailsResult>;
142
+ dereference: () => {
143
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
144
+ filesystem: Filesystem;
145
+ }>>;
146
+ files: () => Promise<Filesystem>;
147
+ filter: (callback: (Specification: AnyObject) => boolean) => any;
148
+ toJson: () => Promise<string>;
149
+ toYaml: () => Promise<string>;
150
+ };
151
+ toJson: () => Promise<string>;
152
+ toYaml: () => Promise<string>;
153
+ };
154
+ dereference: () => {
155
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
156
+ filesystem: Filesystem;
157
+ }>>;
158
+ files: () => Promise<Filesystem>;
159
+ filter: (callback: (Specification: AnyObject) => boolean) => any;
160
+ toJson: () => Promise<string>;
161
+ toYaml: () => Promise<string>;
162
+ };
163
+ toJson: () => Promise<string>;
164
+ toYaml: () => Promise<string>;
165
+ };
166
+ validate: () => {
167
+ filter: (callback: (Specification: AnyObject) => boolean) => {
168
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
169
+ filesystem: Filesystem;
170
+ }>>;
171
+ files: () => Promise<Filesystem>;
172
+ details: () => Promise<DetailsResult>;
173
+ filter: () => any;
174
+ upgrade: () => any;
175
+ validate: () => any;
176
+ dereference: () => {
177
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
178
+ filesystem: Filesystem;
179
+ }>>;
180
+ files: () => Promise<Filesystem>;
181
+ filter: (callback: (Specification: AnyObject) => boolean) => any;
182
+ toJson: () => Promise<string>;
183
+ toYaml: () => Promise<string>;
184
+ };
185
+ toJson: () => Promise<string>;
186
+ toYaml: () => Promise<string>;
187
+ };
188
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
189
+ filesystem: Filesystem;
190
+ }>>;
191
+ files: () => Promise<Filesystem>;
192
+ details: () => Promise<DetailsResult>;
193
+ dereference: () => {
194
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
195
+ filesystem: Filesystem;
196
+ }>>;
197
+ files: () => Promise<Filesystem>;
198
+ filter: (callback: (Specification: AnyObject) => boolean) => {
199
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
200
+ filesystem: Filesystem;
201
+ }>>;
202
+ files: () => Promise<Filesystem>;
203
+ details: () => Promise<DetailsResult>;
204
+ filter: () => any;
205
+ upgrade: () => any;
206
+ validate: () => any;
207
+ dereference: () => any;
208
+ toJson: () => Promise<string>;
209
+ toYaml: () => Promise<string>;
210
+ };
211
+ toJson: () => Promise<string>;
212
+ toYaml: () => Promise<string>;
213
+ };
214
+ toJson: () => Promise<string>;
215
+ toYaml: () => Promise<string>;
216
+ };
217
+ dereference: () => {
218
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
219
+ filesystem: Filesystem;
220
+ }>>;
221
+ files: () => Promise<Filesystem>;
222
+ filter: (callback: (Specification: AnyObject) => boolean) => {
223
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
224
+ filesystem: Filesystem;
225
+ }>>;
226
+ files: () => Promise<Filesystem>;
227
+ details: () => Promise<DetailsResult>;
228
+ filter: () => any;
229
+ upgrade: () => any;
230
+ validate: () => {
231
+ filter: (callback: (Specification: AnyObject) => boolean) => any;
232
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
233
+ filesystem: Filesystem;
234
+ }>>;
235
+ files: () => Promise<Filesystem>;
236
+ details: () => Promise<DetailsResult>;
237
+ dereference: () => any;
238
+ toJson: () => Promise<string>;
239
+ toYaml: () => Promise<string>;
240
+ };
241
+ dereference: () => any;
242
+ toJson: () => Promise<string>;
243
+ toYaml: () => Promise<string>;
244
+ };
245
+ toJson: () => Promise<string>;
246
+ toYaml: () => Promise<string>;
247
+ };
248
+ toJson: () => Promise<string>;
249
+ toYaml: () => Promise<string>;
250
+ };
251
+ validate: () => {
252
+ filter: (callback: (Specification: AnyObject) => boolean) => {
253
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
254
+ filesystem: Filesystem;
255
+ }>>;
256
+ files: () => Promise<Filesystem>;
257
+ details: () => Promise<DetailsResult>;
258
+ filter: () => any;
259
+ upgrade: () => {
260
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
261
+ filesystem: Filesystem;
262
+ }>>;
263
+ files: () => Promise<Filesystem>;
264
+ details: () => Promise<DetailsResult>;
265
+ filter: (callback: (Specification: AnyObject) => boolean) => any;
266
+ validate: () => any;
267
+ dereference: () => {
268
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
269
+ filesystem: Filesystem;
270
+ }>>;
271
+ files: () => Promise<Filesystem>;
272
+ filter: (callback: (Specification: AnyObject) => boolean) => any;
273
+ toJson: () => Promise<string>;
274
+ toYaml: () => Promise<string>;
275
+ };
276
+ toJson: () => Promise<string>;
277
+ toYaml: () => Promise<string>;
278
+ };
279
+ validate: () => any;
280
+ dereference: () => {
281
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
282
+ filesystem: Filesystem;
283
+ }>>;
284
+ files: () => Promise<Filesystem>;
285
+ filter: (callback: (Specification: AnyObject) => boolean) => any;
286
+ toJson: () => Promise<string>;
287
+ toYaml: () => Promise<string>;
288
+ };
289
+ toJson: () => Promise<string>;
290
+ toYaml: () => Promise<string>;
291
+ };
292
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
293
+ filesystem: Filesystem;
294
+ }>>;
295
+ files: () => Promise<Filesystem>;
296
+ details: () => Promise<DetailsResult>;
297
+ dereference: () => {
298
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
299
+ filesystem: Filesystem;
300
+ }>>;
301
+ files: () => Promise<Filesystem>;
302
+ filter: (callback: (Specification: AnyObject) => boolean) => {
303
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
304
+ filesystem: Filesystem;
305
+ }>>;
306
+ files: () => Promise<Filesystem>;
307
+ details: () => Promise<DetailsResult>;
308
+ filter: () => any;
309
+ upgrade: () => {
310
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
311
+ filesystem: Filesystem;
312
+ }>>;
313
+ files: () => Promise<Filesystem>;
314
+ details: () => Promise<DetailsResult>;
315
+ filter: (callback: (Specification: AnyObject) => boolean) => any;
316
+ validate: () => any;
317
+ dereference: () => any;
318
+ toJson: () => Promise<string>;
319
+ toYaml: () => Promise<string>;
320
+ };
321
+ validate: () => any;
322
+ dereference: () => any;
323
+ toJson: () => Promise<string>;
324
+ toYaml: () => Promise<string>;
325
+ };
326
+ toJson: () => Promise<string>;
327
+ toYaml: () => Promise<string>;
328
+ };
329
+ toJson: () => Promise<string>;
330
+ toYaml: () => Promise<string>;
331
+ };
332
+ dereference: () => {
333
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
334
+ filesystem: Filesystem;
335
+ }>>;
336
+ files: () => Promise<Filesystem>;
337
+ filter: (callback: (Specification: AnyObject) => boolean) => {
338
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
339
+ filesystem: Filesystem;
340
+ }>>;
341
+ files: () => Promise<Filesystem>;
342
+ details: () => Promise<DetailsResult>;
343
+ filter: () => any;
344
+ upgrade: () => {
345
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
346
+ filesystem: Filesystem;
347
+ }>>;
348
+ files: () => Promise<Filesystem>;
349
+ details: () => Promise<DetailsResult>;
350
+ filter: (callback: (Specification: AnyObject) => boolean) => any;
351
+ validate: () => {
352
+ filter: (callback: (Specification: AnyObject) => boolean) => any;
353
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
354
+ filesystem: Filesystem;
355
+ }>>;
356
+ files: () => Promise<Filesystem>;
357
+ details: () => Promise<DetailsResult>;
358
+ dereference: () => any;
359
+ toJson: () => Promise<string>;
360
+ toYaml: () => Promise<string>;
361
+ };
362
+ dereference: () => any;
363
+ toJson: () => Promise<string>;
364
+ toYaml: () => Promise<string>;
365
+ };
366
+ validate: () => {
367
+ filter: (callback: (Specification: AnyObject) => boolean) => any;
368
+ get: () => Promise<Partial<LoadResult & DereferenceResult & ValidateResult & UpgradeResult & FilterResult & {
369
+ filesystem: Filesystem;
370
+ }>>;
371
+ files: () => Promise<Filesystem>;
372
+ details: () => Promise<DetailsResult>;
373
+ dereference: () => any;
374
+ toJson: () => Promise<string>;
375
+ toYaml: () => Promise<string>;
376
+ };
377
+ dereference: () => any;
378
+ toJson: () => Promise<string>;
379
+ toYaml: () => Promise<string>;
380
+ };
381
+ toJson: () => Promise<string>;
382
+ toYaml: () => Promise<string>;
383
+ };
384
+ toJson: () => Promise<string>;
385
+ toYaml: () => Promise<string>;
386
+ };
387
+
388
+ export { type Action, type AnyApiDefinitionFormat, type Queue, openapi };