@visulima/jsdoc-open-api 3.0.0-alpha.11 → 3.0.0-alpha.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/LICENSE.md +34 -0
- package/dist/cli/commander/index.d.cts +1000 -2
- package/dist/cli/commander/index.d.mts +1000 -2
- package/dist/cli/commander/index.d.ts +1000 -2
- package/dist/cli/index.d.cts +8 -2
- package/dist/cli/index.d.mts +8 -2
- package/dist/cli/index.d.ts +8 -2
- package/dist/index.d.cts +247 -7
- package/dist/index.d.mts +247 -7
- package/dist/index.d.ts +247 -7
- package/package.json +10 -10
- package/dist/cli/command/generate-command.d.cts +0 -7
- package/dist/cli/command/generate-command.d.mts +0 -7
- package/dist/cli/command/generate-command.d.ts +0 -7
- package/dist/cli/command/init-command.d.cts +0 -2
- package/dist/cli/command/init-command.d.mts +0 -2
- package/dist/cli/command/init-command.d.ts +0 -2
- package/dist/cli/commander/command/generate-command.d.cts +0 -3
- package/dist/cli/commander/command/generate-command.d.mts +0 -3
- package/dist/cli/commander/command/generate-command.d.ts +0 -3
- package/dist/cli/commander/command/init-command.d.cts +0 -3
- package/dist/cli/commander/command/init-command.d.mts +0 -3
- package/dist/cli/commander/command/init-command.d.ts +0 -3
- package/dist/constants.d.cts +0 -1
- package/dist/constants.d.mts +0 -1
- package/dist/constants.d.ts +0 -1
- package/dist/exported.d.cts +0 -198
- package/dist/exported.d.mts +0 -198
- package/dist/exported.d.ts +0 -198
- package/dist/jsdoc/comments-to-open-api.d.cts +0 -6
- package/dist/jsdoc/comments-to-open-api.d.mts +0 -6
- package/dist/jsdoc/comments-to-open-api.d.ts +0 -6
- package/dist/parse-file.d.cts +0 -9
- package/dist/parse-file.d.mts +0 -9
- package/dist/parse-file.d.ts +0 -9
- package/dist/spec-builder.d.cts +0 -14
- package/dist/spec-builder.d.mts +0 -14
- package/dist/spec-builder.d.ts +0 -14
- package/dist/swagger-jsdoc/comments-to-open-api.d.cts +0 -6
- package/dist/swagger-jsdoc/comments-to-open-api.d.mts +0 -6
- package/dist/swagger-jsdoc/comments-to-open-api.d.ts +0 -6
- package/dist/swagger-jsdoc/organize-swagger-object.d.cts +0 -7
- package/dist/swagger-jsdoc/organize-swagger-object.d.mts +0 -7
- package/dist/swagger-jsdoc/organize-swagger-object.d.ts +0 -7
- package/dist/swagger-jsdoc/utils.d.cts +0 -22
- package/dist/swagger-jsdoc/utils.d.mts +0 -22
- package/dist/swagger-jsdoc/utils.d.ts +0 -22
- package/dist/util/customizer.d.cts +0 -2
- package/dist/util/customizer.d.mts +0 -2
- package/dist/util/customizer.d.ts +0 -2
- package/dist/util/object-merge.d.cts +0 -2
- package/dist/util/object-merge.d.mts +0 -2
- package/dist/util/object-merge.d.ts +0 -2
- package/dist/util/yaml-loc.d.cts +0 -2
- package/dist/util/yaml-loc.d.mts +0 -2
- package/dist/util/yaml-loc.d.ts +0 -2
- package/dist/validate.d.cts +0 -2
- package/dist/validate.d.mts +0 -2
- package/dist/validate.d.ts +0 -2
- package/dist/webpack/swagger-compiler-plugin.d.cts +0 -15
- package/dist/webpack/swagger-compiler-plugin.d.mts +0 -15
- package/dist/webpack/swagger-compiler-plugin.d.ts +0 -15
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,247 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import 'buffer';
|
|
2
|
+
import 'http';
|
|
3
|
+
import 'https';
|
|
4
|
+
import 'inspector';
|
|
5
|
+
import 'net';
|
|
6
|
+
import 'url';
|
|
7
|
+
import 'vm';
|
|
8
|
+
interface BaseDefinition {
|
|
9
|
+
components?: ComponentsObject;
|
|
10
|
+
externalDocs?: ExternalDocumentationObject;
|
|
11
|
+
info: InfoObject;
|
|
12
|
+
openapi: string;
|
|
13
|
+
paths?: PathsObject;
|
|
14
|
+
security?: SecurityRequirementObject[];
|
|
15
|
+
servers?: ServerObject[];
|
|
16
|
+
tags?: TagObject[];
|
|
17
|
+
}
|
|
18
|
+
interface OpenApiObject extends BaseDefinition {
|
|
19
|
+
paths?: PathsObject;
|
|
20
|
+
}
|
|
21
|
+
interface InfoObject {
|
|
22
|
+
contact?: ContactObject;
|
|
23
|
+
description?: string;
|
|
24
|
+
license?: LicenseObject;
|
|
25
|
+
termsOfService?: string;
|
|
26
|
+
title: string;
|
|
27
|
+
version: string;
|
|
28
|
+
}
|
|
29
|
+
interface ContactObject {
|
|
30
|
+
email?: string;
|
|
31
|
+
name?: string;
|
|
32
|
+
url?: string;
|
|
33
|
+
}
|
|
34
|
+
interface LicenseObject {
|
|
35
|
+
name: string;
|
|
36
|
+
url?: string;
|
|
37
|
+
}
|
|
38
|
+
interface ServerObject {
|
|
39
|
+
description?: string;
|
|
40
|
+
url: string;
|
|
41
|
+
variables?: Map<ServerVariable>;
|
|
42
|
+
}
|
|
43
|
+
interface ServerVariable {
|
|
44
|
+
default: string;
|
|
45
|
+
description?: string;
|
|
46
|
+
enum?: string[];
|
|
47
|
+
}
|
|
48
|
+
interface ComponentsObject {
|
|
49
|
+
callbacks?: Map<CallbackObject | ReferenceObject>;
|
|
50
|
+
examples?: Map<ExampleObject | ReferenceObject>;
|
|
51
|
+
headers?: Map<HeaderObject | ReferenceObject>;
|
|
52
|
+
links?: Map<LinkObject | ReferenceObject>;
|
|
53
|
+
parameters?: Map<ParameterObject | ReferenceObject>;
|
|
54
|
+
requestBodies?: Map<ReferenceObject | RequestBodyObject>;
|
|
55
|
+
responses?: Map<ReferenceObject | ResponseObject>;
|
|
56
|
+
schemas?: Map<ReferenceObject | SchemaObject>;
|
|
57
|
+
securitySchemes?: Map<ApiKeySecuritySchemeObject | HttpSecuritySchemeObject | Oauth2SecuritySchemeObject | OpenIdConnectSecuritySchemeObject | ReferenceObject>;
|
|
58
|
+
}
|
|
59
|
+
type PathsObject = Record<string, PathItemObject>;
|
|
60
|
+
interface PathItemObject {
|
|
61
|
+
$ref?: string;
|
|
62
|
+
delete?: OperationObject;
|
|
63
|
+
description?: string;
|
|
64
|
+
get?: OperationObject;
|
|
65
|
+
head?: OperationObject;
|
|
66
|
+
options?: OperationObject;
|
|
67
|
+
parameters?: (ParameterObject | ReferenceObject)[];
|
|
68
|
+
patch?: OperationObject;
|
|
69
|
+
post?: OperationObject;
|
|
70
|
+
put?: OperationObject;
|
|
71
|
+
servers?: ServerObject[];
|
|
72
|
+
summary?: string;
|
|
73
|
+
trace?: OperationObject;
|
|
74
|
+
}
|
|
75
|
+
interface OperationObject {
|
|
76
|
+
callbacks?: Map<CallbackObject | ReferenceObject>;
|
|
77
|
+
deprecated?: boolean;
|
|
78
|
+
description?: string;
|
|
79
|
+
externalDocs?: ExternalDocumentationObject;
|
|
80
|
+
operationId?: string;
|
|
81
|
+
parameters?: (ParameterObject | ReferenceObject)[];
|
|
82
|
+
requestBody?: ReferenceObject | RequestBodyObject;
|
|
83
|
+
responses: ResponsesObject;
|
|
84
|
+
security?: SecurityRequirementObject[];
|
|
85
|
+
servers?: ServerObject[];
|
|
86
|
+
summary?: string;
|
|
87
|
+
tags?: string[];
|
|
88
|
+
}
|
|
89
|
+
interface ExternalDocumentationObject {
|
|
90
|
+
description?: string;
|
|
91
|
+
url: string;
|
|
92
|
+
}
|
|
93
|
+
interface ParameterObject {
|
|
94
|
+
allowEmptyValue?: boolean;
|
|
95
|
+
allowReserved?: boolean;
|
|
96
|
+
content?: Map<MediaTypeObject>;
|
|
97
|
+
deprecated?: boolean;
|
|
98
|
+
description?: string;
|
|
99
|
+
example?: any;
|
|
100
|
+
examples?: Map<ExampleObject | ReferenceObject>;
|
|
101
|
+
explode?: string;
|
|
102
|
+
in: string;
|
|
103
|
+
name: string;
|
|
104
|
+
required?: boolean;
|
|
105
|
+
schema?: ReferenceObject | SchemaObject;
|
|
106
|
+
style?: string;
|
|
107
|
+
}
|
|
108
|
+
interface RequestBodyObject {
|
|
109
|
+
content: Map<MediaTypeObject>;
|
|
110
|
+
description?: string;
|
|
111
|
+
required?: boolean;
|
|
112
|
+
}
|
|
113
|
+
interface MediaTypeObject {
|
|
114
|
+
encoding?: Map<EncodingObject>;
|
|
115
|
+
example?: any;
|
|
116
|
+
examples?: Map<ExampleObject | ReferenceObject>;
|
|
117
|
+
schema?: ReferenceObject | SchemaObject;
|
|
118
|
+
}
|
|
119
|
+
interface EncodingObject {
|
|
120
|
+
allowReserved?: boolean;
|
|
121
|
+
contentType?: string;
|
|
122
|
+
explode?: boolean;
|
|
123
|
+
headers?: Map<HeaderObject | ReferenceObject>;
|
|
124
|
+
style?: string;
|
|
125
|
+
}
|
|
126
|
+
type ResponsesObject = Record<string, ReferenceObject | ResponseObject>;
|
|
127
|
+
interface ResponseObject {
|
|
128
|
+
content?: Map<MediaTypeObject>;
|
|
129
|
+
description: string;
|
|
130
|
+
headers?: Map<HeaderObject | ReferenceObject>;
|
|
131
|
+
links?: Map<LinkObject | ReferenceObject>;
|
|
132
|
+
}
|
|
133
|
+
type CallbackObject = Record<string, PathItemObject>;
|
|
134
|
+
interface ExampleObject {
|
|
135
|
+
description?: string;
|
|
136
|
+
externalValue?: string;
|
|
137
|
+
summary?: string;
|
|
138
|
+
value?: any;
|
|
139
|
+
}
|
|
140
|
+
interface LinkObject {
|
|
141
|
+
description?: string;
|
|
142
|
+
operationId?: string;
|
|
143
|
+
operationRef?: string;
|
|
144
|
+
parameters?: Map<any>;
|
|
145
|
+
requestBody?: any;
|
|
146
|
+
server?: ServerObject;
|
|
147
|
+
}
|
|
148
|
+
interface HeaderObject {
|
|
149
|
+
allowEmptyValue?: boolean;
|
|
150
|
+
allowReserved?: boolean;
|
|
151
|
+
content?: Map<MediaTypeObject>;
|
|
152
|
+
deprecated?: boolean;
|
|
153
|
+
description?: string;
|
|
154
|
+
example?: any;
|
|
155
|
+
examples?: Map<ExampleObject | ReferenceObject>;
|
|
156
|
+
explode?: string;
|
|
157
|
+
required?: boolean;
|
|
158
|
+
schema?: ReferenceObject | SchemaObject;
|
|
159
|
+
style?: string;
|
|
160
|
+
}
|
|
161
|
+
interface TagObject {
|
|
162
|
+
description?: string;
|
|
163
|
+
externalDocs?: ExternalDocumentationObject;
|
|
164
|
+
name: string;
|
|
165
|
+
}
|
|
166
|
+
interface ReferenceObject {
|
|
167
|
+
$ref: string;
|
|
168
|
+
}
|
|
169
|
+
type SchemaObject = Record<string, any>;
|
|
170
|
+
interface ApiKeySecuritySchemeObject {
|
|
171
|
+
description?: string;
|
|
172
|
+
in: string;
|
|
173
|
+
name: string;
|
|
174
|
+
type: string;
|
|
175
|
+
}
|
|
176
|
+
interface HttpSecuritySchemeObject {
|
|
177
|
+
bearerFormat?: string;
|
|
178
|
+
description?: string;
|
|
179
|
+
scheme: string;
|
|
180
|
+
type: string;
|
|
181
|
+
}
|
|
182
|
+
interface Oauth2SecuritySchemeObject {
|
|
183
|
+
description?: string;
|
|
184
|
+
flows: OAuthFlowsObject;
|
|
185
|
+
type: string;
|
|
186
|
+
}
|
|
187
|
+
interface OpenIdConnectSecuritySchemeObject {
|
|
188
|
+
description?: string;
|
|
189
|
+
openIdConnectUrl: string;
|
|
190
|
+
type: string;
|
|
191
|
+
}
|
|
192
|
+
interface OAuthFlowsObject {
|
|
193
|
+
authorizationCode?: OAuthFlowObject;
|
|
194
|
+
clientCredentials?: OAuthFlowObject;
|
|
195
|
+
implicit?: OAuthFlowObject;
|
|
196
|
+
password?: OAuthFlowObject;
|
|
197
|
+
}
|
|
198
|
+
interface OAuthFlowObject {
|
|
199
|
+
authorizationUrl?: string;
|
|
200
|
+
refreshUrl: string;
|
|
201
|
+
scopes: Map<string>;
|
|
202
|
+
tokenUrl?: string;
|
|
203
|
+
}
|
|
204
|
+
type SecurityRequirementObject = Record<string, string[]>;
|
|
205
|
+
type Map<T> = Record<string, T>;
|
|
206
|
+
declare const commentsToOpenApi$1: (fileContents: string, verbose?: boolean) => {
|
|
207
|
+
loc: number;
|
|
208
|
+
spec: OpenApiObject;
|
|
209
|
+
}[];
|
|
210
|
+
declare const parseFile: (file: string, commentsToOpenApi: (fileContent: string, verbose?: boolean) => {
|
|
211
|
+
loc: number;
|
|
212
|
+
spec: OpenApiObject;
|
|
213
|
+
}[], verbose?: boolean) => {
|
|
214
|
+
loc: number;
|
|
215
|
+
spec: OpenApiObject;
|
|
216
|
+
}[];
|
|
217
|
+
declare class SpecBuilder implements OpenApiObject {
|
|
218
|
+
components?: ComponentsObject;
|
|
219
|
+
externalDocs?: ExternalDocumentationObject;
|
|
220
|
+
info: InfoObject;
|
|
221
|
+
openapi: string;
|
|
222
|
+
paths: PathsObject;
|
|
223
|
+
security?: SecurityRequirementObject[];
|
|
224
|
+
servers?: ServerObject[];
|
|
225
|
+
tags?: TagObject[];
|
|
226
|
+
constructor(baseDefinition: BaseDefinition);
|
|
227
|
+
addData(parsedFile: OpenApiObject[]): void;
|
|
228
|
+
}
|
|
229
|
+
declare const commentsToOpenApi: (fileContents: string, verbose?: boolean) => {
|
|
230
|
+
loc: number;
|
|
231
|
+
spec: OpenApiObject;
|
|
232
|
+
}[];
|
|
233
|
+
declare const yamlLoc: (string: string) => number;
|
|
234
|
+
type WebpackCompiler = undefined;
|
|
235
|
+
declare class SwaggerCompilerPlugin {
|
|
236
|
+
private readonly assetsPath;
|
|
237
|
+
private readonly ignore;
|
|
238
|
+
private readonly sources;
|
|
239
|
+
private readonly swaggerDefinition;
|
|
240
|
+
private readonly verbose;
|
|
241
|
+
constructor(assetsPath: string, sources: string[], swaggerDefinition: BaseDefinition, options: {
|
|
242
|
+
ignore?: (RegExp | string)[];
|
|
243
|
+
verbose?: boolean;
|
|
244
|
+
});
|
|
245
|
+
apply(compiler: WebpackCompiler): void;
|
|
246
|
+
}
|
|
247
|
+
export { type BaseDefinition, type OpenApiObject, SpecBuilder, SwaggerCompilerPlugin, commentsToOpenApi$1 as jsDocumentCommentsToOpenApi, parseFile, commentsToOpenApi as swaggerJsDocumentCommentsToOpenApi, yamlLoc };
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/jsdoc-open-api",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.12",
|
|
4
4
|
"description": "Generates swagger doc based on JSDoc.",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"
|
|
6
|
+
"api",
|
|
7
|
+
"cli",
|
|
8
|
+
"command",
|
|
9
|
+
"comment",
|
|
7
10
|
"javascript",
|
|
11
|
+
"jsdoc",
|
|
8
12
|
"openapi",
|
|
9
13
|
"swagger",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"api",
|
|
13
|
-
"webpack",
|
|
14
|
-
"cli",
|
|
15
|
-
"command"
|
|
14
|
+
"visulima",
|
|
15
|
+
"webpack"
|
|
16
16
|
],
|
|
17
17
|
"homepage": "https://visulima.com/packages/jsdoc-open-api/",
|
|
18
18
|
"bugs": {
|
|
@@ -101,10 +101,10 @@
|
|
|
101
101
|
],
|
|
102
102
|
"dependencies": {
|
|
103
103
|
"@apidevtools/swagger-parser": "^12.1.0",
|
|
104
|
-
"@visulima/fs": "5.0.0-alpha.
|
|
104
|
+
"@visulima/fs": "5.0.0-alpha.13",
|
|
105
105
|
"comment-parser": "1.4.6",
|
|
106
106
|
"lodash.mergewith": "^4.6.2",
|
|
107
|
-
"yaml": "2.8.
|
|
107
|
+
"yaml": "2.8.4"
|
|
108
108
|
},
|
|
109
109
|
"optionalDependencies": {
|
|
110
110
|
"cli-progress": "^3.12.0",
|
package/dist/constants.d.cts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const DEFAULT_EXCLUDE: string[];
|
package/dist/constants.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const DEFAULT_EXCLUDE: string[];
|
package/dist/constants.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const DEFAULT_EXCLUDE: string[];
|
package/dist/exported.d.cts
DELETED
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
export interface BaseDefinition {
|
|
2
|
-
components?: ComponentsObject;
|
|
3
|
-
externalDocs?: ExternalDocumentationObject;
|
|
4
|
-
info: InfoObject;
|
|
5
|
-
openapi: string;
|
|
6
|
-
paths?: PathsObject;
|
|
7
|
-
security?: SecurityRequirementObject[];
|
|
8
|
-
servers?: ServerObject[];
|
|
9
|
-
tags?: TagObject[];
|
|
10
|
-
}
|
|
11
|
-
export interface OpenApiObject extends BaseDefinition {
|
|
12
|
-
paths?: PathsObject;
|
|
13
|
-
}
|
|
14
|
-
export interface InfoObject {
|
|
15
|
-
contact?: ContactObject;
|
|
16
|
-
description?: string;
|
|
17
|
-
license?: LicenseObject;
|
|
18
|
-
termsOfService?: string;
|
|
19
|
-
title: string;
|
|
20
|
-
version: string;
|
|
21
|
-
}
|
|
22
|
-
export interface ContactObject {
|
|
23
|
-
email?: string;
|
|
24
|
-
name?: string;
|
|
25
|
-
url?: string;
|
|
26
|
-
}
|
|
27
|
-
export interface LicenseObject {
|
|
28
|
-
name: string;
|
|
29
|
-
url?: string;
|
|
30
|
-
}
|
|
31
|
-
export interface ServerObject {
|
|
32
|
-
description?: string;
|
|
33
|
-
url: string;
|
|
34
|
-
variables?: Map<ServerVariable>;
|
|
35
|
-
}
|
|
36
|
-
export interface ServerVariable {
|
|
37
|
-
default: string;
|
|
38
|
-
description?: string;
|
|
39
|
-
enum?: string[];
|
|
40
|
-
}
|
|
41
|
-
export interface ComponentsObject {
|
|
42
|
-
callbacks?: Map<CallbackObject | ReferenceObject>;
|
|
43
|
-
examples?: Map<ExampleObject | ReferenceObject>;
|
|
44
|
-
headers?: Map<HeaderObject | ReferenceObject>;
|
|
45
|
-
links?: Map<LinkObject | ReferenceObject>;
|
|
46
|
-
parameters?: Map<ParameterObject | ReferenceObject>;
|
|
47
|
-
requestBodies?: Map<ReferenceObject | RequestBodyObject>;
|
|
48
|
-
responses?: Map<ReferenceObject | ResponseObject>;
|
|
49
|
-
schemas?: Map<ReferenceObject | SchemaObject>;
|
|
50
|
-
securitySchemes?: Map<ApiKeySecuritySchemeObject | HttpSecuritySchemeObject | Oauth2SecuritySchemeObject | OpenIdConnectSecuritySchemeObject | ReferenceObject>;
|
|
51
|
-
}
|
|
52
|
-
export type PathsObject = Record<string, PathItemObject>;
|
|
53
|
-
export interface PathItemObject {
|
|
54
|
-
$ref?: string;
|
|
55
|
-
delete?: OperationObject;
|
|
56
|
-
description?: string;
|
|
57
|
-
get?: OperationObject;
|
|
58
|
-
head?: OperationObject;
|
|
59
|
-
options?: OperationObject;
|
|
60
|
-
parameters?: (ParameterObject | ReferenceObject)[];
|
|
61
|
-
patch?: OperationObject;
|
|
62
|
-
post?: OperationObject;
|
|
63
|
-
put?: OperationObject;
|
|
64
|
-
servers?: ServerObject[];
|
|
65
|
-
summary?: string;
|
|
66
|
-
trace?: OperationObject;
|
|
67
|
-
}
|
|
68
|
-
export interface OperationObject {
|
|
69
|
-
callbacks?: Map<CallbackObject | ReferenceObject>;
|
|
70
|
-
deprecated?: boolean;
|
|
71
|
-
description?: string;
|
|
72
|
-
externalDocs?: ExternalDocumentationObject;
|
|
73
|
-
operationId?: string;
|
|
74
|
-
parameters?: (ParameterObject | ReferenceObject)[];
|
|
75
|
-
requestBody?: ReferenceObject | RequestBodyObject;
|
|
76
|
-
responses: ResponsesObject;
|
|
77
|
-
security?: SecurityRequirementObject[];
|
|
78
|
-
servers?: ServerObject[];
|
|
79
|
-
summary?: string;
|
|
80
|
-
tags?: string[];
|
|
81
|
-
}
|
|
82
|
-
export interface ExternalDocumentationObject {
|
|
83
|
-
description?: string;
|
|
84
|
-
url: string;
|
|
85
|
-
}
|
|
86
|
-
export interface ParameterObject {
|
|
87
|
-
allowEmptyValue?: boolean;
|
|
88
|
-
allowReserved?: boolean;
|
|
89
|
-
content?: Map<MediaTypeObject>;
|
|
90
|
-
deprecated?: boolean;
|
|
91
|
-
description?: string;
|
|
92
|
-
example?: any;
|
|
93
|
-
examples?: Map<ExampleObject | ReferenceObject>;
|
|
94
|
-
explode?: string;
|
|
95
|
-
in: string;
|
|
96
|
-
name: string;
|
|
97
|
-
required?: boolean;
|
|
98
|
-
schema?: ReferenceObject | SchemaObject;
|
|
99
|
-
style?: string;
|
|
100
|
-
}
|
|
101
|
-
export interface RequestBodyObject {
|
|
102
|
-
content: Map<MediaTypeObject>;
|
|
103
|
-
description?: string;
|
|
104
|
-
required?: boolean;
|
|
105
|
-
}
|
|
106
|
-
export interface MediaTypeObject {
|
|
107
|
-
encoding?: Map<EncodingObject>;
|
|
108
|
-
example?: any;
|
|
109
|
-
examples?: Map<ExampleObject | ReferenceObject>;
|
|
110
|
-
schema?: ReferenceObject | SchemaObject;
|
|
111
|
-
}
|
|
112
|
-
export interface EncodingObject {
|
|
113
|
-
allowReserved?: boolean;
|
|
114
|
-
contentType?: string;
|
|
115
|
-
explode?: boolean;
|
|
116
|
-
headers?: Map<HeaderObject | ReferenceObject>;
|
|
117
|
-
style?: string;
|
|
118
|
-
}
|
|
119
|
-
export type ResponsesObject = Record<string, ReferenceObject | ResponseObject>;
|
|
120
|
-
export interface ResponseObject {
|
|
121
|
-
content?: Map<MediaTypeObject>;
|
|
122
|
-
description: string;
|
|
123
|
-
headers?: Map<HeaderObject | ReferenceObject>;
|
|
124
|
-
links?: Map<LinkObject | ReferenceObject>;
|
|
125
|
-
}
|
|
126
|
-
export type CallbackObject = Record<string, PathItemObject>;
|
|
127
|
-
export interface ExampleObject {
|
|
128
|
-
description?: string;
|
|
129
|
-
externalValue?: string;
|
|
130
|
-
summary?: string;
|
|
131
|
-
value?: any;
|
|
132
|
-
}
|
|
133
|
-
export interface LinkObject {
|
|
134
|
-
description?: string;
|
|
135
|
-
operationId?: string;
|
|
136
|
-
operationRef?: string;
|
|
137
|
-
parameters?: Map<any>;
|
|
138
|
-
requestBody?: any;
|
|
139
|
-
server?: ServerObject;
|
|
140
|
-
}
|
|
141
|
-
export interface HeaderObject {
|
|
142
|
-
allowEmptyValue?: boolean;
|
|
143
|
-
allowReserved?: boolean;
|
|
144
|
-
content?: Map<MediaTypeObject>;
|
|
145
|
-
deprecated?: boolean;
|
|
146
|
-
description?: string;
|
|
147
|
-
example?: any;
|
|
148
|
-
examples?: Map<ExampleObject | ReferenceObject>;
|
|
149
|
-
explode?: string;
|
|
150
|
-
required?: boolean;
|
|
151
|
-
schema?: ReferenceObject | SchemaObject;
|
|
152
|
-
style?: string;
|
|
153
|
-
}
|
|
154
|
-
export interface TagObject {
|
|
155
|
-
description?: string;
|
|
156
|
-
externalDocs?: ExternalDocumentationObject;
|
|
157
|
-
name: string;
|
|
158
|
-
}
|
|
159
|
-
export interface ReferenceObject {
|
|
160
|
-
$ref: string;
|
|
161
|
-
}
|
|
162
|
-
export type SchemaObject = Record<string, any>;
|
|
163
|
-
export interface ApiKeySecuritySchemeObject {
|
|
164
|
-
description?: string;
|
|
165
|
-
in: string;
|
|
166
|
-
name: string;
|
|
167
|
-
type: string;
|
|
168
|
-
}
|
|
169
|
-
export interface HttpSecuritySchemeObject {
|
|
170
|
-
bearerFormat?: string;
|
|
171
|
-
description?: string;
|
|
172
|
-
scheme: string;
|
|
173
|
-
type: string;
|
|
174
|
-
}
|
|
175
|
-
export interface Oauth2SecuritySchemeObject {
|
|
176
|
-
description?: string;
|
|
177
|
-
flows: OAuthFlowsObject;
|
|
178
|
-
type: string;
|
|
179
|
-
}
|
|
180
|
-
export interface OpenIdConnectSecuritySchemeObject {
|
|
181
|
-
description?: string;
|
|
182
|
-
openIdConnectUrl: string;
|
|
183
|
-
type: string;
|
|
184
|
-
}
|
|
185
|
-
export interface OAuthFlowsObject {
|
|
186
|
-
authorizationCode?: OAuthFlowObject;
|
|
187
|
-
clientCredentials?: OAuthFlowObject;
|
|
188
|
-
implicit?: OAuthFlowObject;
|
|
189
|
-
password?: OAuthFlowObject;
|
|
190
|
-
}
|
|
191
|
-
export interface OAuthFlowObject {
|
|
192
|
-
authorizationUrl?: string;
|
|
193
|
-
refreshUrl: string;
|
|
194
|
-
scopes: Map<string>;
|
|
195
|
-
tokenUrl?: string;
|
|
196
|
-
}
|
|
197
|
-
export type SecurityRequirementObject = Record<string, string[]>;
|
|
198
|
-
export type Map<T> = Record<string, T>;
|