@trayio/tray-openapi 5.34.0 → 5.35.0-unstable.fd7158a

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 (41) hide show
  1. package/dist/OpenApiCodecs.d.ts +207 -4
  2. package/dist/OpenApiCodecs.d.ts.map +1 -1
  3. package/dist/OpenApiCodecs.js +3 -3
  4. package/dist/OpenApiSchemaImporter.d.ts +2 -2
  5. package/dist/OpenApiSchemaImporter.d.ts.map +1 -1
  6. package/dist/OpenApiSchemaImporter.js +33 -55
  7. package/dist/OpenApiSchemaImporter.unit.test.js +24 -13
  8. package/dist/OpenApiSchemaTransformer.d.ts +2 -2
  9. package/dist/OpenApiSchemaTransformer.d.ts.map +1 -1
  10. package/dist/OpenApiSchemaTransformer.js +2 -25
  11. package/dist/OpenApiSchemaTransformer.unit.test.js +30 -44
  12. package/dist/OpenApiTypeDescriptors.d.ts +389 -32
  13. package/dist/OpenApiTypeDescriptors.d.ts.map +1 -1
  14. package/dist/OpenApiTypeDescriptors.js +80 -109
  15. package/dist/file-generators/GenerateHandler.d.ts +2 -2
  16. package/dist/file-generators/GenerateHandler.d.ts.map +1 -1
  17. package/dist/file-generators/GenerateHandler.js +75 -78
  18. package/dist/file-generators/GenerateHandler.unit.test.js +73 -97
  19. package/dist/file-generators/GenerateHandlerTest.d.ts +2 -2
  20. package/dist/file-generators/GenerateHandlerTest.d.ts.map +1 -1
  21. package/dist/file-generators/GenerateHandlerTest.js +69 -76
  22. package/dist/file-generators/GenerateHandlerTest.unit.test.js +206 -230
  23. package/dist/file-generators/GenerateOperationJson.d.ts +2 -2
  24. package/dist/file-generators/GenerateOperationJson.d.ts.map +1 -1
  25. package/dist/file-generators/GenerateOperationJson.js +4 -29
  26. package/dist/file-generators/GenerateOperationJson.unit.test.js +25 -49
  27. package/dist/file-generators/SchemaGenerator.d.ts.map +1 -1
  28. package/dist/file-generators/SchemaGenerator.js +14 -37
  29. package/dist/file-generators/types/GenerateInputSchema.d.ts +2 -2
  30. package/dist/file-generators/types/GenerateInputSchema.d.ts.map +1 -1
  31. package/dist/file-generators/types/GenerateInputSchema.js +88 -95
  32. package/dist/file-generators/types/GenerateInputSchema.test.js +60 -91
  33. package/dist/file-generators/types/GenerateInputType.test.js +143 -169
  34. package/dist/file-generators/types/GenerateInputTypes.d.ts +2 -2
  35. package/dist/file-generators/types/GenerateInputTypes.d.ts.map +1 -1
  36. package/dist/file-generators/types/GenerateInputTypes.js +7 -28
  37. package/dist/file-generators/types/GenerateOutput.d.ts +4 -6
  38. package/dist/file-generators/types/GenerateOutput.d.ts.map +1 -1
  39. package/dist/file-generators/types/GenerateOutput.js +46 -57
  40. package/dist/file-generators/types/GenerateOutput.test.js +35 -62
  41. package/package.json +6 -8
@@ -1,29 +1,6 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
2
  Object.defineProperty(exports, "__esModule", { value: true });
26
- const E = __importStar(require("fp-ts/Either"));
3
+ const effect_1 = require("effect");
27
4
  const OpenApiSchemaTransformer_1 = require("./OpenApiSchemaTransformer");
28
5
  describe('mergePathLevelParamsIntoHttpMethod', () => {
29
6
  it('should merge path level parameters into HTTP methods', () => {
@@ -49,14 +26,17 @@ describe('mergePathLevelParamsIntoHttpMethod', () => {
49
26
  },
50
27
  };
51
28
  const result = (0, OpenApiSchemaTransformer_1.mergePathLevelParamsIntoHttpMethod)(openApiSpec);
52
- E.fold((error) => {
53
- throw new Error(`Test failed with error: ${error.message}`);
54
- }, (updatedOpenApiSpec) => {
55
- expect(updatedOpenApiSpec.paths['/path'].get.parameters).toEqual([
56
- { name: 'param2', in: 'query', required: true },
57
- { name: 'param1', in: 'query', required: false },
58
- ]);
59
- })(result);
29
+ effect_1.Either.match(result, {
30
+ onLeft: (error) => {
31
+ throw new Error(`Test failed with error: ${error.message}`);
32
+ },
33
+ onRight: (updatedOpenApiSpec) => {
34
+ expect(updatedOpenApiSpec.paths['/path'].get.parameters).toEqual([
35
+ { name: 'param2', in: 'query', required: true },
36
+ { name: 'param1', in: 'query', required: false },
37
+ ]);
38
+ },
39
+ });
60
40
  });
61
41
  it('should return the original spec if no top level parameters', () => {
62
42
  const openApiSpec = {
@@ -80,11 +60,14 @@ describe('mergePathLevelParamsIntoHttpMethod', () => {
80
60
  },
81
61
  };
82
62
  const result = (0, OpenApiSchemaTransformer_1.mergePathLevelParamsIntoHttpMethod)(openApiSpec);
83
- E.fold((error) => {
84
- throw new Error(`Test failed with error: ${error.message}`);
85
- }, (updatedOpenApiSpec) => {
86
- expect(updatedOpenApiSpec).toEqual(openApiSpec);
87
- })(result);
63
+ effect_1.Either.match(result, {
64
+ onLeft: (error) => {
65
+ throw new Error(`Test failed with error: ${error.message}`);
66
+ },
67
+ onRight: (updatedOpenApiSpec) => {
68
+ expect(updatedOpenApiSpec).toEqual(openApiSpec);
69
+ },
70
+ });
88
71
  });
89
72
  it('should add path level parameters into HTTP methods, if no method params already exist', () => {
90
73
  const openApiSpec = {
@@ -107,12 +90,15 @@ describe('mergePathLevelParamsIntoHttpMethod', () => {
107
90
  },
108
91
  };
109
92
  const result = (0, OpenApiSchemaTransformer_1.mergePathLevelParamsIntoHttpMethod)(openApiSpec);
110
- E.fold((error) => {
111
- throw new Error(`Test failed with error: ${error.message}`);
112
- }, (updatedOpenApiSpec) => {
113
- expect(updatedOpenApiSpec.paths['/path'].get.parameters).toEqual([
114
- { name: 'param1', in: 'query', required: false },
115
- ]);
116
- })(result);
93
+ effect_1.Either.match(result, {
94
+ onLeft: (error) => {
95
+ throw new Error(`Test failed with error: ${error.message}`);
96
+ },
97
+ onRight: (updatedOpenApiSpec) => {
98
+ expect(updatedOpenApiSpec.paths['/path'].get.parameters).toEqual([
99
+ { name: 'param1', in: 'query', required: false },
100
+ ]);
101
+ },
102
+ });
117
103
  });
118
104
  });
@@ -1,5 +1,4 @@
1
- import * as t from 'io-ts';
2
- import * as O from 'fp-ts/Option';
1
+ import { Option, Schema } from 'effect';
3
2
  export type FlatPath = {
4
3
  path: string;
5
4
  routes: {
@@ -37,35 +36,35 @@ export type BuildConnectorResponse = {
37
36
  errors: OperationError[];
38
37
  };
39
38
  export type Path = {
40
- description: O.Option<string>;
41
- summary: O.Option<string>;
42
- tags: O.Option<string[]>;
39
+ description: Option.Option<string>;
40
+ summary: Option.Option<string>;
41
+ tags: Option.Option<string[]>;
43
42
  operationId: string;
44
- parameters: O.Option<Parameter[]>;
45
- requestBody: O.Option<RequestBody>;
46
- responses: O.Option<Responses>;
43
+ parameters: Option.Option<Parameter[]>;
44
+ requestBody: Option.Option<RequestBody>;
45
+ responses: Option.Option<Responses>;
47
46
  };
48
47
  export type Parameter = {
49
48
  name: string;
50
49
  in: string;
51
- description: O.Option<string>;
52
- required: O.Option<boolean>;
50
+ description: Option.Option<string>;
51
+ required: Option.Option<boolean>;
53
52
  schema: SchemaObject;
54
53
  };
55
54
  export type RequestBody = {
56
55
  content: Record<string, MediaTypeObject>;
57
56
  };
58
57
  export interface MediaTypeObject {
59
- schema: O.Option<SchemaObject>;
58
+ schema: Option.Option<SchemaObject>;
60
59
  }
61
60
  export type Responses = Record<string, Response>;
62
61
  export type Response = {
63
62
  description: string;
64
- content: O.Option<Record<string, MediaTypeObject>>;
63
+ content: Option.Option<Record<string, MediaTypeObject>>;
65
64
  };
66
65
  export type OpenApiHttpMethod = 'get' | 'post' | 'put' | 'patch' | 'delete';
67
66
  type ComponentSchema = {
68
- schemas: O.Option<Record<string, SchemaObject>>;
67
+ schemas: Option.Option<Record<string, SchemaObject>>;
69
68
  };
70
69
  export type OpenAPISchema = {
71
70
  openapi: string;
@@ -82,33 +81,391 @@ export type OpenAPISchema = {
82
81
  };
83
82
  export type SchemaObject = ArraySchemaObject | NonArraySchemaObject;
84
83
  export interface ArraySchemaObject extends BaseSchemaObject {
85
- type: O.Option<'array'>;
84
+ type: Option.Option<'array'>;
86
85
  items: SchemaObject;
87
86
  }
88
87
  export type SchemaObjectType = 'array' | NonArraySchemaObjectType;
89
88
  export type NonArraySchemaObjectType = 'boolean' | 'object' | 'number' | 'string' | 'integer';
90
89
  export interface NonArraySchemaObject extends BaseSchemaObject {
91
- type: O.Option<NonArraySchemaObjectType>;
90
+ type: Option.Option<NonArraySchemaObjectType>;
92
91
  }
93
92
  export type BaseSchemaObject = {
94
- title: O.Option<string>;
95
- additionalProperties: O.Option<boolean | SchemaObject>;
96
- properties: O.Option<Record<string, SchemaObject>>;
97
- required: O.Option<string[]>;
98
- allOf: O.Option<SchemaObject[]>;
99
- oneOf: O.Option<SchemaObject[]>;
100
- anyOf: O.Option<SchemaObject[]>;
101
- not: O.Option<SchemaObject>;
102
- in: O.Option<string>;
103
- nullable: O.Option<boolean>;
104
- default: O.Option<string | number | boolean | Array<string | number | boolean>>;
105
- enum: O.Option<Array<string | number | boolean>>;
93
+ title: Option.Option<string>;
94
+ additionalProperties: Option.Option<boolean | SchemaObject>;
95
+ properties: Option.Option<Record<string, SchemaObject>>;
96
+ required: Option.Option<string[]>;
97
+ allOf: Option.Option<SchemaObject[]>;
98
+ oneOf: Option.Option<SchemaObject[]>;
99
+ anyOf: Option.Option<SchemaObject[]>;
100
+ not: Option.Option<SchemaObject>;
101
+ in: Option.Option<string>;
102
+ nullable: Option.Option<boolean>;
103
+ default: Option.Option<string | number | boolean | Array<string | number | boolean>>;
104
+ enum: Option.Option<Array<string | number | boolean>>;
106
105
  };
107
- export declare const baseSchemaObjectSchemaTypeDescriptor: t.Type<BaseSchemaObject, unknown>;
108
- export declare const schemaObjectTypeDescriptor: t.Type<SchemaObject, unknown>;
106
+ export declare const baseSchemaObjectSchema: Schema.Struct<{
107
+ title: Schema.OptionFromNullishOr<typeof Schema.String>;
108
+ additionalProperties: Schema.OptionFromNullishOr<Schema.Union<[typeof Schema.Boolean, Schema.suspend<SchemaObject, any, never>]>>;
109
+ properties: Schema.OptionFromNullishOr<Schema.mutable<Schema.Record$<typeof Schema.String, Schema.suspend<SchemaObject, any, never>>>>;
110
+ required: Schema.OptionFromNullishOr<Schema.mutable<Schema.Array$<typeof Schema.String>>>;
111
+ allOf: Schema.OptionFromNullishOr<Schema.mutable<Schema.Array$<Schema.suspend<SchemaObject, any, never>>>>;
112
+ oneOf: Schema.OptionFromNullishOr<Schema.mutable<Schema.Array$<Schema.suspend<SchemaObject, any, never>>>>;
113
+ anyOf: Schema.OptionFromNullishOr<Schema.mutable<Schema.Array$<Schema.suspend<SchemaObject, any, never>>>>;
114
+ not: Schema.OptionFromNullishOr<Schema.suspend<SchemaObject, any, never>>;
115
+ in: Schema.OptionFromNullishOr<typeof Schema.String>;
116
+ nullable: Schema.OptionFromNullishOr<typeof Schema.Boolean>;
117
+ default: Schema.OptionFromNullishOr<Schema.Union<[typeof Schema.String, typeof Schema.Number, typeof Schema.Boolean, Schema.mutable<Schema.Array$<Schema.Union<[typeof Schema.String, typeof Schema.Number, typeof Schema.Boolean]>>>]>>;
118
+ enum: Schema.OptionFromNullishOr<Schema.mutable<Schema.Array$<Schema.Union<[typeof Schema.String, typeof Schema.Number, typeof Schema.Boolean]>>>>;
119
+ }>;
120
+ export declare const schemaObjectSchema: Schema.Schema<SchemaObject, any>;
109
121
  export declare const schemaObjectTypeCodec: import("@trayio/commons/dist/codec/Codec").Codec<SchemaObject>;
110
- export declare const parameterSchemaTypeDescriptor: t.Type<Parameter, unknown>;
111
- export declare const openApiSpecPathTypeDescriptor: t.Type<Path, unknown>;
112
- export declare const openApiSpecTypeDescriptor: t.Type<OpenAPISchema, unknown>;
122
+ export declare const parameterSchemaSchema: Schema.Struct<{
123
+ name: typeof Schema.String;
124
+ in: typeof Schema.String;
125
+ description: Schema.OptionFromNullishOr<typeof Schema.String>;
126
+ required: Schema.OptionFromNullishOr<typeof Schema.Boolean>;
127
+ schema: Schema.Schema<SchemaObject, any, never>;
128
+ }>;
129
+ export declare const openApiSpecPathSchema: Schema.Struct<{
130
+ description: Schema.OptionFromNullishOr<typeof Schema.String>;
131
+ summary: Schema.OptionFromNullishOr<typeof Schema.String>;
132
+ tags: Schema.OptionFromNullishOr<Schema.mutable<Schema.Array$<typeof Schema.String>>>;
133
+ operationId: typeof Schema.String;
134
+ parameters: Schema.OptionFromNullishOr<Schema.mutable<Schema.Array$<Schema.Struct<{
135
+ name: typeof Schema.String;
136
+ in: typeof Schema.String;
137
+ description: Schema.OptionFromNullishOr<typeof Schema.String>;
138
+ required: Schema.OptionFromNullishOr<typeof Schema.Boolean>;
139
+ schema: Schema.Schema<SchemaObject, any, never>;
140
+ }>>>>;
141
+ requestBody: Schema.OptionFromNullishOr<Schema.Struct<{
142
+ content: Schema.mutable<Schema.Record$<typeof Schema.String, Schema.Struct<{
143
+ schema: Schema.OptionFromNullishOr<Schema.Schema<SchemaObject, any, never>>;
144
+ }>>>;
145
+ }>>;
146
+ responses: Schema.OptionFromNullishOr<Schema.mutable<Schema.Record$<typeof Schema.String, Schema.Struct<{
147
+ description: typeof Schema.String;
148
+ content: Schema.OptionFromNullishOr<Schema.mutable<Schema.Record$<typeof Schema.String, Schema.Struct<{
149
+ schema: Schema.OptionFromNullishOr<Schema.Schema<SchemaObject, any, never>>;
150
+ }>>>>;
151
+ }>>>>;
152
+ }>;
153
+ export declare const openApiSpecSchema: Schema.Struct<{
154
+ openapi: typeof Schema.String;
155
+ info: Schema.Struct<{
156
+ title: typeof Schema.String;
157
+ description: typeof Schema.String;
158
+ version: typeof Schema.String;
159
+ }>;
160
+ servers: Schema.mutable<Schema.Array$<Schema.Struct<{
161
+ url: typeof Schema.String;
162
+ }>>>;
163
+ paths: Schema.mutable<Schema.Record$<typeof Schema.String, Schema.SchemaClass<{
164
+ readonly get?: {
165
+ readonly description: Option.Option<string>;
166
+ readonly summary: Option.Option<string>;
167
+ readonly tags: Option.Option<string[]>;
168
+ readonly operationId: string;
169
+ readonly parameters: Option.Option<{
170
+ readonly required: Option.Option<boolean>;
171
+ readonly in: string;
172
+ readonly schema: SchemaObject;
173
+ readonly description: Option.Option<string>;
174
+ readonly name: string;
175
+ }[]>;
176
+ readonly requestBody: Option.Option<{
177
+ readonly content: {
178
+ [x: string]: {
179
+ readonly schema: Option.Option<SchemaObject>;
180
+ };
181
+ };
182
+ }>;
183
+ readonly responses: Option.Option<{
184
+ [x: string]: {
185
+ readonly content: Option.Option<{
186
+ [x: string]: {
187
+ readonly schema: Option.Option<SchemaObject>;
188
+ };
189
+ }>;
190
+ readonly description: string;
191
+ };
192
+ }>;
193
+ } | undefined;
194
+ readonly post?: {
195
+ readonly description: Option.Option<string>;
196
+ readonly summary: Option.Option<string>;
197
+ readonly tags: Option.Option<string[]>;
198
+ readonly operationId: string;
199
+ readonly parameters: Option.Option<{
200
+ readonly required: Option.Option<boolean>;
201
+ readonly in: string;
202
+ readonly schema: SchemaObject;
203
+ readonly description: Option.Option<string>;
204
+ readonly name: string;
205
+ }[]>;
206
+ readonly requestBody: Option.Option<{
207
+ readonly content: {
208
+ [x: string]: {
209
+ readonly schema: Option.Option<SchemaObject>;
210
+ };
211
+ };
212
+ }>;
213
+ readonly responses: Option.Option<{
214
+ [x: string]: {
215
+ readonly content: Option.Option<{
216
+ [x: string]: {
217
+ readonly schema: Option.Option<SchemaObject>;
218
+ };
219
+ }>;
220
+ readonly description: string;
221
+ };
222
+ }>;
223
+ } | undefined;
224
+ readonly put?: {
225
+ readonly description: Option.Option<string>;
226
+ readonly summary: Option.Option<string>;
227
+ readonly tags: Option.Option<string[]>;
228
+ readonly operationId: string;
229
+ readonly parameters: Option.Option<{
230
+ readonly required: Option.Option<boolean>;
231
+ readonly in: string;
232
+ readonly schema: SchemaObject;
233
+ readonly description: Option.Option<string>;
234
+ readonly name: string;
235
+ }[]>;
236
+ readonly requestBody: Option.Option<{
237
+ readonly content: {
238
+ [x: string]: {
239
+ readonly schema: Option.Option<SchemaObject>;
240
+ };
241
+ };
242
+ }>;
243
+ readonly responses: Option.Option<{
244
+ [x: string]: {
245
+ readonly content: Option.Option<{
246
+ [x: string]: {
247
+ readonly schema: Option.Option<SchemaObject>;
248
+ };
249
+ }>;
250
+ readonly description: string;
251
+ };
252
+ }>;
253
+ } | undefined;
254
+ readonly patch?: {
255
+ readonly description: Option.Option<string>;
256
+ readonly summary: Option.Option<string>;
257
+ readonly tags: Option.Option<string[]>;
258
+ readonly operationId: string;
259
+ readonly parameters: Option.Option<{
260
+ readonly required: Option.Option<boolean>;
261
+ readonly in: string;
262
+ readonly schema: SchemaObject;
263
+ readonly description: Option.Option<string>;
264
+ readonly name: string;
265
+ }[]>;
266
+ readonly requestBody: Option.Option<{
267
+ readonly content: {
268
+ [x: string]: {
269
+ readonly schema: Option.Option<SchemaObject>;
270
+ };
271
+ };
272
+ }>;
273
+ readonly responses: Option.Option<{
274
+ [x: string]: {
275
+ readonly content: Option.Option<{
276
+ [x: string]: {
277
+ readonly schema: Option.Option<SchemaObject>;
278
+ };
279
+ }>;
280
+ readonly description: string;
281
+ };
282
+ }>;
283
+ } | undefined;
284
+ readonly delete?: {
285
+ readonly description: Option.Option<string>;
286
+ readonly summary: Option.Option<string>;
287
+ readonly tags: Option.Option<string[]>;
288
+ readonly operationId: string;
289
+ readonly parameters: Option.Option<{
290
+ readonly required: Option.Option<boolean>;
291
+ readonly in: string;
292
+ readonly schema: SchemaObject;
293
+ readonly description: Option.Option<string>;
294
+ readonly name: string;
295
+ }[]>;
296
+ readonly requestBody: Option.Option<{
297
+ readonly content: {
298
+ [x: string]: {
299
+ readonly schema: Option.Option<SchemaObject>;
300
+ };
301
+ };
302
+ }>;
303
+ readonly responses: Option.Option<{
304
+ [x: string]: {
305
+ readonly content: Option.Option<{
306
+ [x: string]: {
307
+ readonly schema: Option.Option<SchemaObject>;
308
+ };
309
+ }>;
310
+ readonly description: string;
311
+ };
312
+ }>;
313
+ } | undefined;
314
+ }, {
315
+ readonly get?: {
316
+ readonly description: string | null | undefined;
317
+ readonly summary: string | null | undefined;
318
+ readonly tags: string[] | null | undefined;
319
+ readonly operationId: string;
320
+ readonly parameters: {
321
+ readonly required: boolean | null | undefined;
322
+ readonly in: string;
323
+ readonly schema: any;
324
+ readonly description: string | null | undefined;
325
+ readonly name: string;
326
+ }[] | null | undefined;
327
+ readonly requestBody: {
328
+ readonly content: {
329
+ [x: string]: {
330
+ readonly schema: any;
331
+ };
332
+ };
333
+ } | null | undefined;
334
+ readonly responses: {
335
+ [x: string]: {
336
+ readonly content: {
337
+ [x: string]: {
338
+ readonly schema: any;
339
+ };
340
+ } | null | undefined;
341
+ readonly description: string;
342
+ };
343
+ } | null | undefined;
344
+ } | undefined;
345
+ readonly post?: {
346
+ readonly description: string | null | undefined;
347
+ readonly summary: string | null | undefined;
348
+ readonly tags: string[] | null | undefined;
349
+ readonly operationId: string;
350
+ readonly parameters: {
351
+ readonly required: boolean | null | undefined;
352
+ readonly in: string;
353
+ readonly schema: any;
354
+ readonly description: string | null | undefined;
355
+ readonly name: string;
356
+ }[] | null | undefined;
357
+ readonly requestBody: {
358
+ readonly content: {
359
+ [x: string]: {
360
+ readonly schema: any;
361
+ };
362
+ };
363
+ } | null | undefined;
364
+ readonly responses: {
365
+ [x: string]: {
366
+ readonly content: {
367
+ [x: string]: {
368
+ readonly schema: any;
369
+ };
370
+ } | null | undefined;
371
+ readonly description: string;
372
+ };
373
+ } | null | undefined;
374
+ } | undefined;
375
+ readonly put?: {
376
+ readonly description: string | null | undefined;
377
+ readonly summary: string | null | undefined;
378
+ readonly tags: string[] | null | undefined;
379
+ readonly operationId: string;
380
+ readonly parameters: {
381
+ readonly required: boolean | null | undefined;
382
+ readonly in: string;
383
+ readonly schema: any;
384
+ readonly description: string | null | undefined;
385
+ readonly name: string;
386
+ }[] | null | undefined;
387
+ readonly requestBody: {
388
+ readonly content: {
389
+ [x: string]: {
390
+ readonly schema: any;
391
+ };
392
+ };
393
+ } | null | undefined;
394
+ readonly responses: {
395
+ [x: string]: {
396
+ readonly content: {
397
+ [x: string]: {
398
+ readonly schema: any;
399
+ };
400
+ } | null | undefined;
401
+ readonly description: string;
402
+ };
403
+ } | null | undefined;
404
+ } | undefined;
405
+ readonly patch?: {
406
+ readonly description: string | null | undefined;
407
+ readonly summary: string | null | undefined;
408
+ readonly tags: string[] | null | undefined;
409
+ readonly operationId: string;
410
+ readonly parameters: {
411
+ readonly required: boolean | null | undefined;
412
+ readonly in: string;
413
+ readonly schema: any;
414
+ readonly description: string | null | undefined;
415
+ readonly name: string;
416
+ }[] | null | undefined;
417
+ readonly requestBody: {
418
+ readonly content: {
419
+ [x: string]: {
420
+ readonly schema: any;
421
+ };
422
+ };
423
+ } | null | undefined;
424
+ readonly responses: {
425
+ [x: string]: {
426
+ readonly content: {
427
+ [x: string]: {
428
+ readonly schema: any;
429
+ };
430
+ } | null | undefined;
431
+ readonly description: string;
432
+ };
433
+ } | null | undefined;
434
+ } | undefined;
435
+ readonly delete?: {
436
+ readonly description: string | null | undefined;
437
+ readonly summary: string | null | undefined;
438
+ readonly tags: string[] | null | undefined;
439
+ readonly operationId: string;
440
+ readonly parameters: {
441
+ readonly required: boolean | null | undefined;
442
+ readonly in: string;
443
+ readonly schema: any;
444
+ readonly description: string | null | undefined;
445
+ readonly name: string;
446
+ }[] | null | undefined;
447
+ readonly requestBody: {
448
+ readonly content: {
449
+ [x: string]: {
450
+ readonly schema: any;
451
+ };
452
+ };
453
+ } | null | undefined;
454
+ readonly responses: {
455
+ [x: string]: {
456
+ readonly content: {
457
+ [x: string]: {
458
+ readonly schema: any;
459
+ };
460
+ } | null | undefined;
461
+ readonly description: string;
462
+ };
463
+ } | null | undefined;
464
+ } | undefined;
465
+ }, never>>>;
466
+ components: Schema.Struct<{
467
+ schemas: Schema.OptionFromNullishOr<Schema.mutable<Schema.Record$<typeof Schema.String, Schema.Schema<SchemaObject, any, never>>>>;
468
+ }>;
469
+ }>;
113
470
  export {};
114
471
  //# sourceMappingURL=OpenApiTypeDescriptors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OpenApiTypeDescriptors.d.ts","sourceRoot":"","sources":["../src/OpenApiTypeDescriptors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAE3B,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAKlC,MAAM,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE;QAAE,MAAM,EAAE,iBAAiB,CAAC;QAAC,IAAI,EAAE,OAAO,CAAA;KAAE,EAAE,CAAC;CACvD,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG;IACpB,GAAG,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE;QACL,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAC/C,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC3B,UA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