zod-openapi 2.18.0 → 2.19.0-beta.1

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 (70) hide show
  1. package/dist/extend.cjs +4 -0
  2. package/dist/extend.d.mts +1 -0
  3. package/dist/extend.d.ts +1 -0
  4. package/dist/extend.mjs +3 -0
  5. package/{lib-esm/extend.mjs → dist/extendZod.chunk.cjs} +2 -7
  6. package/{lib-commonjs/extend.js → dist/extendZod.chunk.mjs} +3 -24
  7. package/{lib-commonjs/index.js → dist/index.cjs} +247 -365
  8. package/dist/index.d.mts +938 -0
  9. package/dist/index.d.ts +938 -0
  10. package/{lib-esm → dist}/index.mjs +243 -336
  11. package/extend/index.d.ts +1 -0
  12. package/extend/package.json +5 -0
  13. package/package.json +30 -32
  14. package/lib-types/api.d.ts +0 -3
  15. package/lib-types/create/callbacks.d.ts +0 -5
  16. package/lib-types/create/components.d.ts +0 -125
  17. package/lib-types/create/content.d.ts +0 -6
  18. package/lib-types/create/document.d.ts +0 -73
  19. package/lib-types/create/parameters.d.ts +0 -10
  20. package/lib-types/create/paths.d.ts +0 -6
  21. package/lib-types/create/responses.d.ts +0 -10
  22. package/lib-types/create/schema/index.d.ts +0 -29
  23. package/lib-types/create/schema/metadata.d.ts +0 -3
  24. package/lib-types/create/schema/parsers/array.d.ts +0 -3
  25. package/lib-types/create/schema/parsers/boolean.d.ts +0 -3
  26. package/lib-types/create/schema/parsers/brand.d.ts +0 -3
  27. package/lib-types/create/schema/parsers/catch.d.ts +0 -3
  28. package/lib-types/create/schema/parsers/date.d.ts +0 -3
  29. package/lib-types/create/schema/parsers/default.d.ts +0 -3
  30. package/lib-types/create/schema/parsers/discriminatedUnion.d.ts +0 -5
  31. package/lib-types/create/schema/parsers/enum.d.ts +0 -3
  32. package/lib-types/create/schema/parsers/index.d.ts +0 -3
  33. package/lib-types/create/schema/parsers/intersection.d.ts +0 -3
  34. package/lib-types/create/schema/parsers/lazy.d.ts +0 -3
  35. package/lib-types/create/schema/parsers/literal.d.ts +0 -3
  36. package/lib-types/create/schema/parsers/manual.d.ts +0 -3
  37. package/lib-types/create/schema/parsers/nativeEnum.d.ts +0 -10
  38. package/lib-types/create/schema/parsers/null.d.ts +0 -2
  39. package/lib-types/create/schema/parsers/nullable.d.ts +0 -3
  40. package/lib-types/create/schema/parsers/number.d.ts +0 -13
  41. package/lib-types/create/schema/parsers/object.d.ts +0 -21
  42. package/lib-types/create/schema/parsers/optional.d.ts +0 -10
  43. package/lib-types/create/schema/parsers/pipeline.d.ts +0 -3
  44. package/lib-types/create/schema/parsers/preprocess.d.ts +0 -3
  45. package/lib-types/create/schema/parsers/readonly.d.ts +0 -3
  46. package/lib-types/create/schema/parsers/record.d.ts +0 -3
  47. package/lib-types/create/schema/parsers/refine.d.ts +0 -3
  48. package/lib-types/create/schema/parsers/set.d.ts +0 -3
  49. package/lib-types/create/schema/parsers/string.d.ts +0 -3
  50. package/lib-types/create/schema/parsers/transform.d.ts +0 -10
  51. package/lib-types/create/schema/parsers/tuple.d.ts +0 -3
  52. package/lib-types/create/schema/parsers/union.d.ts +0 -3
  53. package/lib-types/create/schema/parsers/unknown.d.ts +0 -3
  54. package/lib-types/create/specificationExtension.d.ts +0 -1
  55. package/lib-types/extend.d.ts +0 -1
  56. package/lib-types/extendZod.d.ts +0 -3
  57. package/lib-types/extendZodTypes.d.ts +0 -75
  58. package/lib-types/index.d.ts +0 -4
  59. package/lib-types/openapi.d.ts +0 -5
  60. package/lib-types/openapi3-ts/dist/dsl/openapi-builder30.d.ts +0 -31
  61. package/lib-types/openapi3-ts/dist/dsl/openapi-builder31.d.ts +0 -32
  62. package/lib-types/openapi3-ts/dist/index.d.ts +0 -3
  63. package/lib-types/openapi3-ts/dist/model/oas-common.d.ts +0 -15
  64. package/lib-types/openapi3-ts/dist/model/openapi30.d.ts +0 -291
  65. package/lib-types/openapi3-ts/dist/model/openapi31.d.ts +0 -298
  66. package/lib-types/openapi3-ts/dist/model/server.d.ts +0 -19
  67. package/lib-types/openapi3-ts/dist/model/specification-extension.d.ts +0 -12
  68. package/lib-types/openapi3-ts/dist/oas30.d.ts +0 -4
  69. package/lib-types/openapi3-ts/dist/oas31.d.ts +0 -4
  70. package/lib-types/zodType.d.ts +0 -42
@@ -1,75 +0,0 @@
1
- import type { ZodDate, ZodObject, ZodTypeAny, z } from 'zod';
2
- import type { CreationType } from './create/components';
3
- import type { oas30, oas31 } from './openapi3-ts/dist';
4
- type SchemaObject = oas30.SchemaObject & oas31.SchemaObject;
5
- /**
6
- * zod-openapi metadata
7
- */
8
- interface ZodOpenApiMetadata<T extends ZodTypeAny, TInferred = z.input<T> | z.output<T>> extends SchemaObject {
9
- example?: TInferred;
10
- examples?: [TInferred, ...TInferred[]];
11
- default?: T extends ZodDate ? string : TInferred;
12
- /**
13
- * Used to set the output of a ZodUnion to be `oneOf` instead of `allOf`
14
- */
15
- unionOneOf?: boolean;
16
- /**
17
- * Used to output this Zod Schema in the components schemas section. Any usage of this Zod Schema will then be transformed into a $ref.
18
- */
19
- ref?: string;
20
- /**
21
- * Used when you are manually adding a Zod Schema to the components section. This controls whether this should be rendered as request (`input`) or response (`output`). Defaults to `output`
22
- */
23
- refType?: CreationType;
24
- /**
25
- * Used to set the created type of an effect.
26
- */
27
- effectType?: CreationType | (z.input<T> extends z.output<T> ? z.output<T> extends z.input<T> ? 'same' : never : never);
28
- /**
29
- * Used to set metadata for a parameter, request header or cookie
30
- */
31
- param?: Partial<oas31.ParameterObject> & {
32
- example?: TInferred;
33
- examples?: Record<string, (oas31.ExampleObject & {
34
- value: TInferred;
35
- }) | oas31.ReferenceObject>;
36
- /**
37
- * Used to output this Zod Schema in the components parameters section. Any usage of this Zod Schema will then be transformed into a $ref.
38
- */
39
- ref?: string;
40
- };
41
- /**
42
- * Used to set data for a response header
43
- */
44
- header?: Partial<oas31.HeaderObject & oas30.HeaderObject> & {
45
- /**
46
- * Used to output this Zod Schema in the components headers section. Any usage of this Zod Schema will then be transformed into a $ref.
47
- */
48
- ref?: string;
49
- };
50
- /**
51
- * Used to override the generated type. If this is provided no metadata will be generated.
52
- */
53
- type?: SchemaObject['type'];
54
- }
55
- interface ZodOpenApiExtendMetadata {
56
- extends: ZodObject<any, any, any, any, any>;
57
- }
58
- declare module 'zod' {
59
- interface ZodType {
60
- /**
61
- * Add OpenAPI metadata to a Zod Type
62
- */
63
- openapi<T extends ZodTypeAny>(this: T, metadata: ZodOpenApiMetadata<T>): T;
64
- }
65
- interface ZodTypeDef {
66
- /**
67
- * OpenAPI metadata
68
- */
69
- openapi?: ZodOpenApiMetadata<ZodTypeAny>;
70
- }
71
- interface ZodObjectDef {
72
- extendMetadata?: ZodOpenApiExtendMetadata;
73
- }
74
- }
75
- export {};
@@ -1,4 +0,0 @@
1
- export * from './create/document';
2
- export * from './extendZod';
3
- export * from './openapi3-ts/dist';
4
- export * as api from './api';
@@ -1,5 +0,0 @@
1
- import type { oas31 } from './openapi3-ts/dist';
2
- export declare const openApiVersions: readonly ["3.0.0", "3.0.1", "3.0.2", "3.0.3", "3.1.0"];
3
- export type OpenApiVersion = (typeof openApiVersions)[number];
4
- export declare const satisfiesVersion: (test: OpenApiVersion, against: OpenApiVersion) => boolean;
5
- export declare const isReferenceObject: (schemaOrRef: oas31.SchemaObject | oas31.ReferenceObject) => schemaOrRef is oas31.ReferenceObject;
@@ -1,31 +0,0 @@
1
- import * as oa from '../model/openapi30';
2
- export declare class OpenApiBuilder {
3
- rootDoc: oa.OpenAPIObject;
4
- static create(doc?: oa.OpenAPIObject): OpenApiBuilder;
5
- constructor(doc?: oa.OpenAPIObject);
6
- getSpec(): oa.OpenAPIObject;
7
- getSpecAsJson(replacer?: (key: string, value: unknown) => unknown, space?: string | number): string;
8
- getSpecAsYaml(): string;
9
- private static isValidOpenApiVersion;
10
- addOpenApiVersion(openApiVersion: string): OpenApiBuilder;
11
- addInfo(info: oa.InfoObject): OpenApiBuilder;
12
- addContact(contact: oa.ContactObject): OpenApiBuilder;
13
- addLicense(license: oa.LicenseObject): OpenApiBuilder;
14
- addTitle(title: string): OpenApiBuilder;
15
- addDescription(description: string): OpenApiBuilder;
16
- addTermsOfService(termsOfService: string): OpenApiBuilder;
17
- addVersion(version: string): OpenApiBuilder;
18
- addPath(path: string, pathItem: oa.PathItemObject): OpenApiBuilder;
19
- addSchema(name: string, schema: oa.SchemaObject | oa.ReferenceObject): OpenApiBuilder;
20
- addResponse(name: string, response: oa.ResponseObject | oa.ReferenceObject): OpenApiBuilder;
21
- addParameter(name: string, parameter: oa.ParameterObject | oa.ReferenceObject): OpenApiBuilder;
22
- addExample(name: string, example: oa.ExampleObject | oa.ReferenceObject): OpenApiBuilder;
23
- addRequestBody(name: string, reqBody: oa.RequestBodyObject | oa.ReferenceObject): OpenApiBuilder;
24
- addHeader(name: string, header: oa.HeaderObject | oa.ReferenceObject): OpenApiBuilder;
25
- addSecurityScheme(name: string, secScheme: oa.SecuritySchemeObject | oa.ReferenceObject): OpenApiBuilder;
26
- addLink(name: string, link: oa.LinkObject | oa.ReferenceObject): OpenApiBuilder;
27
- addCallback(name: string, callback: oa.CallbackObject | oa.ReferenceObject): OpenApiBuilder;
28
- addServer(server: oa.ServerObject): OpenApiBuilder;
29
- addTag(tag: oa.TagObject): OpenApiBuilder;
30
- addExternalDocs(extDoc: oa.ExternalDocumentationObject): OpenApiBuilder;
31
- }
@@ -1,32 +0,0 @@
1
- import * as oa from '../model/openapi31';
2
- export declare class OpenApiBuilder {
3
- rootDoc: oa.OpenAPIObject;
4
- static create(doc?: oa.OpenAPIObject): OpenApiBuilder;
5
- constructor(doc?: oa.OpenAPIObject);
6
- getSpec(): oa.OpenAPIObject;
7
- getSpecAsJson(replacer?: (key: string, value: unknown) => unknown, space?: string | number): string;
8
- getSpecAsYaml(): string;
9
- private static isValidOpenApiVersion;
10
- addOpenApiVersion(openApiVersion: string): OpenApiBuilder;
11
- addInfo(info: oa.InfoObject): OpenApiBuilder;
12
- addContact(contact: oa.ContactObject): OpenApiBuilder;
13
- addLicense(license: oa.LicenseObject): OpenApiBuilder;
14
- addTitle(title: string): OpenApiBuilder;
15
- addDescription(description: string): OpenApiBuilder;
16
- addTermsOfService(termsOfService: string): OpenApiBuilder;
17
- addVersion(version: string): OpenApiBuilder;
18
- addPath(path: string, pathItem: oa.PathItemObject): OpenApiBuilder;
19
- addSchema(name: string, schema: oa.SchemaObject | oa.ReferenceObject): OpenApiBuilder;
20
- addResponse(name: string, response: oa.ResponseObject | oa.ReferenceObject): OpenApiBuilder;
21
- addParameter(name: string, parameter: oa.ParameterObject | oa.ReferenceObject): OpenApiBuilder;
22
- addExample(name: string, example: oa.ExampleObject | oa.ReferenceObject): OpenApiBuilder;
23
- addRequestBody(name: string, reqBody: oa.RequestBodyObject | oa.ReferenceObject): OpenApiBuilder;
24
- addHeader(name: string, header: oa.HeaderObject | oa.ReferenceObject): OpenApiBuilder;
25
- addSecurityScheme(name: string, secScheme: oa.SecuritySchemeObject | oa.ReferenceObject): OpenApiBuilder;
26
- addLink(name: string, link: oa.LinkObject | oa.ReferenceObject): OpenApiBuilder;
27
- addCallback(name: string, callback: oa.CallbackObject | oa.ReferenceObject): OpenApiBuilder;
28
- addServer(server: oa.ServerObject): OpenApiBuilder;
29
- addTag(tag: oa.TagObject): OpenApiBuilder;
30
- addExternalDocs(extDoc: oa.ExternalDocumentationObject): OpenApiBuilder;
31
- addWebhook(webhook: string, webhookItem: oa.PathItemObject): OpenApiBuilder;
32
- }
@@ -1,3 +0,0 @@
1
- export * as oas30 from "./oas30";
2
- export * as oas31 from "./oas31";
3
- export type { Server, ServerVariable } from "./model/server";
@@ -1,15 +0,0 @@
1
- import { ISpecificationExtension } from './specification-extension';
2
- export interface ServerObject extends ISpecificationExtension {
3
- url: string;
4
- description?: string;
5
- variables?: {
6
- [v: string]: ServerVariableObject;
7
- };
8
- }
9
- export interface ServerVariableObject extends ISpecificationExtension {
10
- enum?: string[] | boolean[] | number[];
11
- default: string | boolean | number;
12
- description?: string;
13
- }
14
- export declare function getExtension(obj: ISpecificationExtension | undefined, extensionName: string): any;
15
- export declare function addExtension(obj: ISpecificationExtension | undefined, extensionName: string, extension: any): void;
@@ -1,291 +0,0 @@
1
- import { ServerObject } from './oas-common';
2
- import { ISpecificationExtension } from './specification-extension';
3
- export * from './oas-common';
4
- export type { ISpecificationExtension, SpecificationExtension } from './specification-extension';
5
- export interface OpenAPIObject extends ISpecificationExtension {
6
- openapi: string;
7
- info: InfoObject;
8
- servers?: ServerObject[];
9
- paths: PathsObject;
10
- components?: ComponentsObject;
11
- security?: SecurityRequirementObject[];
12
- tags?: TagObject[];
13
- externalDocs?: ExternalDocumentationObject;
14
- }
15
- export interface InfoObject extends ISpecificationExtension {
16
- title: string;
17
- description?: string;
18
- termsOfService?: string;
19
- contact?: ContactObject;
20
- license?: LicenseObject;
21
- version: string;
22
- }
23
- export interface ContactObject extends ISpecificationExtension {
24
- name?: string;
25
- url?: string;
26
- email?: string;
27
- }
28
- export interface LicenseObject extends ISpecificationExtension {
29
- name: string;
30
- url?: string;
31
- }
32
- export interface ComponentsObject extends ISpecificationExtension {
33
- schemas?: {
34
- [schema: string]: SchemaObject | ReferenceObject;
35
- };
36
- responses?: {
37
- [response: string]: ResponseObject | ReferenceObject;
38
- };
39
- parameters?: {
40
- [parameter: string]: ParameterObject | ReferenceObject;
41
- };
42
- examples?: {
43
- [example: string]: ExampleObject | ReferenceObject;
44
- };
45
- requestBodies?: {
46
- [request: string]: RequestBodyObject | ReferenceObject;
47
- };
48
- headers?: {
49
- [header: string]: HeaderObject | ReferenceObject;
50
- };
51
- securitySchemes?: {
52
- [securityScheme: string]: SecuritySchemeObject | ReferenceObject;
53
- };
54
- links?: {
55
- [link: string]: LinkObject | ReferenceObject;
56
- };
57
- callbacks?: {
58
- [callback: string]: CallbackObject | ReferenceObject;
59
- };
60
- }
61
- export interface PathsObject extends ISpecificationExtension {
62
- [path: string]: PathItemObject;
63
- }
64
- export type PathObject = PathsObject;
65
- export declare function getPath(pathsObject: PathsObject, path: string): PathItemObject | undefined;
66
- export interface PathItemObject extends ISpecificationExtension {
67
- $ref?: string;
68
- summary?: string;
69
- description?: string;
70
- get?: OperationObject;
71
- put?: OperationObject;
72
- post?: OperationObject;
73
- delete?: OperationObject;
74
- options?: OperationObject;
75
- head?: OperationObject;
76
- patch?: OperationObject;
77
- trace?: OperationObject;
78
- servers?: ServerObject[];
79
- parameters?: (ParameterObject | ReferenceObject)[];
80
- }
81
- export interface OperationObject extends ISpecificationExtension {
82
- tags?: string[];
83
- summary?: string;
84
- description?: string;
85
- externalDocs?: ExternalDocumentationObject;
86
- operationId?: string;
87
- parameters?: (ParameterObject | ReferenceObject)[];
88
- requestBody?: RequestBodyObject | ReferenceObject;
89
- responses: ResponsesObject;
90
- callbacks?: CallbacksObject;
91
- deprecated?: boolean;
92
- security?: SecurityRequirementObject[];
93
- servers?: ServerObject[];
94
- }
95
- export interface ExternalDocumentationObject extends ISpecificationExtension {
96
- description?: string;
97
- url: string;
98
- }
99
- export type ParameterLocation = 'query' | 'header' | 'path' | 'cookie';
100
- export type ParameterStyle = 'matrix' | 'label' | 'form' | 'simple' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject';
101
- export interface BaseParameterObject extends ISpecificationExtension {
102
- description?: string;
103
- required?: boolean;
104
- deprecated?: boolean;
105
- allowEmptyValue?: boolean;
106
- style?: ParameterStyle;
107
- explode?: boolean;
108
- allowReserved?: boolean;
109
- schema?: SchemaObject | ReferenceObject;
110
- examples?: {
111
- [param: string]: ExampleObject | ReferenceObject;
112
- };
113
- example?: any;
114
- content?: ContentObject;
115
- }
116
- export interface ParameterObject extends BaseParameterObject {
117
- name: string;
118
- in: ParameterLocation;
119
- }
120
- export interface RequestBodyObject extends ISpecificationExtension {
121
- description?: string;
122
- content: ContentObject;
123
- required?: boolean;
124
- }
125
- export interface ContentObject {
126
- [mediatype: string]: MediaTypeObject;
127
- }
128
- export interface MediaTypeObject extends ISpecificationExtension {
129
- schema?: SchemaObject | ReferenceObject;
130
- examples?: ExamplesObject;
131
- example?: any;
132
- encoding?: EncodingObject;
133
- }
134
- export interface EncodingObject extends ISpecificationExtension {
135
- [property: string]: EncodingPropertyObject | any;
136
- }
137
- export interface EncodingPropertyObject {
138
- contentType?: string;
139
- headers?: {
140
- [key: string]: HeaderObject | ReferenceObject;
141
- };
142
- style?: string;
143
- explode?: boolean;
144
- allowReserved?: boolean;
145
- [key: string]: any;
146
- }
147
- export interface ResponsesObject extends ISpecificationExtension {
148
- default?: ResponseObject | ReferenceObject;
149
- [statuscode: string]: ResponseObject | ReferenceObject | any;
150
- }
151
- export interface ResponseObject extends ISpecificationExtension {
152
- description: string;
153
- headers?: HeadersObject;
154
- content?: ContentObject;
155
- links?: LinksObject;
156
- }
157
- export interface CallbacksObject extends ISpecificationExtension {
158
- [name: string]: CallbackObject | ReferenceObject | any;
159
- }
160
- export interface CallbackObject extends ISpecificationExtension {
161
- [name: string]: PathItemObject | any;
162
- }
163
- export interface HeadersObject {
164
- [name: string]: HeaderObject | ReferenceObject;
165
- }
166
- export interface ExampleObject {
167
- summary?: string;
168
- description?: string;
169
- value?: any;
170
- externalValue?: string;
171
- [property: string]: any;
172
- }
173
- export interface LinksObject {
174
- [name: string]: LinkObject | ReferenceObject;
175
- }
176
- export interface LinkObject extends ISpecificationExtension {
177
- operationRef?: string;
178
- operationId?: string;
179
- parameters?: LinkParametersObject;
180
- requestBody?: any | string;
181
- description?: string;
182
- server?: ServerObject;
183
- [property: string]: any;
184
- }
185
- export interface LinkParametersObject {
186
- [name: string]: any | string;
187
- }
188
- export interface HeaderObject extends BaseParameterObject {
189
- $ref?: string;
190
- }
191
- export interface TagObject extends ISpecificationExtension {
192
- name: string;
193
- description?: string;
194
- externalDocs?: ExternalDocumentationObject;
195
- [extension: string]: any;
196
- }
197
- export interface ExamplesObject {
198
- [name: string]: ExampleObject | ReferenceObject;
199
- }
200
- export interface ReferenceObject {
201
- $ref: string;
202
- }
203
- export declare function isReferenceObject(obj: any): obj is ReferenceObject;
204
- export type SchemaObjectType = 'integer' | 'number' | 'string' | 'boolean' | 'object' | 'null' | 'array';
205
- export type SchemaObjectFormat = 'int32' | 'int64' | 'float' | 'double' | 'byte' | 'binary' | 'date' | 'date-time' | 'password' | string;
206
- export interface SchemaObject extends ISpecificationExtension {
207
- nullable?: boolean;
208
- discriminator?: DiscriminatorObject;
209
- readOnly?: boolean;
210
- writeOnly?: boolean;
211
- xml?: XmlObject;
212
- externalDocs?: ExternalDocumentationObject;
213
- example?: any;
214
- examples?: any[];
215
- deprecated?: boolean;
216
- type?: SchemaObjectType | SchemaObjectType[];
217
- format?: SchemaObjectFormat;
218
- allOf?: (SchemaObject | ReferenceObject)[];
219
- oneOf?: (SchemaObject | ReferenceObject)[];
220
- anyOf?: (SchemaObject | ReferenceObject)[];
221
- not?: SchemaObject | ReferenceObject;
222
- items?: SchemaObject | ReferenceObject;
223
- properties?: {
224
- [propertyName: string]: SchemaObject | ReferenceObject;
225
- };
226
- additionalProperties?: SchemaObject | ReferenceObject | boolean;
227
- description?: string;
228
- default?: any;
229
- title?: string;
230
- multipleOf?: number;
231
- maximum?: number;
232
- exclusiveMaximum?: boolean;
233
- minimum?: number;
234
- exclusiveMinimum?: boolean;
235
- maxLength?: number;
236
- minLength?: number;
237
- pattern?: string;
238
- maxItems?: number;
239
- minItems?: number;
240
- uniqueItems?: boolean;
241
- maxProperties?: number;
242
- minProperties?: number;
243
- required?: string[];
244
- enum?: any[];
245
- }
246
- export declare function isSchemaObject(schema: SchemaObject | ReferenceObject): schema is SchemaObject;
247
- export interface SchemasObject {
248
- [schema: string]: SchemaObject;
249
- }
250
- export interface DiscriminatorObject {
251
- propertyName: string;
252
- mapping?: {
253
- [key: string]: string;
254
- };
255
- }
256
- export interface XmlObject extends ISpecificationExtension {
257
- name?: string;
258
- namespace?: string;
259
- prefix?: string;
260
- attribute?: boolean;
261
- wrapped?: boolean;
262
- }
263
- export type SecuritySchemeType = 'apiKey' | 'http' | 'oauth2' | 'openIdConnect';
264
- export interface SecuritySchemeObject extends ISpecificationExtension {
265
- type: SecuritySchemeType;
266
- description?: string;
267
- name?: string;
268
- in?: string;
269
- scheme?: string;
270
- bearerFormat?: string;
271
- flows?: OAuthFlowsObject;
272
- openIdConnectUrl?: string;
273
- }
274
- export interface OAuthFlowsObject extends ISpecificationExtension {
275
- implicit?: OAuthFlowObject;
276
- password?: OAuthFlowObject;
277
- clientCredentials?: OAuthFlowObject;
278
- authorizationCode?: OAuthFlowObject;
279
- }
280
- export interface OAuthFlowObject extends ISpecificationExtension {
281
- authorizationUrl?: string;
282
- tokenUrl?: string;
283
- refreshUrl?: string;
284
- scopes: ScopesObject;
285
- }
286
- export interface ScopesObject extends ISpecificationExtension {
287
- [scope: string]: any;
288
- }
289
- export interface SecurityRequirementObject {
290
- [name: string]: string[];
291
- }