@ahoo-wang/fetcher-openapi 1.9.5 → 1.9.8
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/dist/base-types.d.ts +4 -3
- package/dist/base-types.d.ts.map +1 -1
- package/dist/components.d.ts +2 -1
- package/dist/components.d.ts.map +1 -1
- package/dist/extensions.d.ts +37 -0
- package/dist/extensions.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/info.d.ts +4 -6
- package/dist/info.d.ts.map +1 -1
- package/dist/openAPI.d.ts +2 -1
- package/dist/openAPI.d.ts.map +1 -1
- package/dist/parameters.d.ts +5 -4
- package/dist/parameters.d.ts.map +1 -1
- package/dist/paths.d.ts +4 -3
- package/dist/paths.d.ts.map +1 -1
- package/dist/responses.d.ts +5 -4
- package/dist/responses.d.ts.map +1 -1
- package/dist/schema.d.ts +4 -3
- package/dist/schema.d.ts.map +1 -1
- package/dist/security.d.ts +5 -4
- package/dist/security.d.ts.map +1 -1
- package/dist/server.d.ts +3 -5
- package/dist/server.d.ts.map +1 -1
- package/dist/tags.d.ts +2 -1
- package/dist/tags.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/base-types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Schema } from './schema';
|
|
2
2
|
import { Reference } from './reference';
|
|
3
3
|
import { MediaType } from './parameters';
|
|
4
|
+
import { Extensible } from './extensions';
|
|
4
5
|
/**
|
|
5
6
|
* HTTP methods as defined in the OpenAPI specification
|
|
6
7
|
*/
|
|
@@ -19,7 +20,7 @@ export type SchemaType = 'string' | 'number' | 'integer' | 'boolean' | 'array' |
|
|
|
19
20
|
* @property description - A description of the target documentation
|
|
20
21
|
* @property url - The URL for the target documentation
|
|
21
22
|
*/
|
|
22
|
-
export interface ExternalDocumentation {
|
|
23
|
+
export interface ExternalDocumentation extends Extensible {
|
|
23
24
|
description?: string;
|
|
24
25
|
url: string;
|
|
25
26
|
}
|
|
@@ -31,7 +32,7 @@ export interface ExternalDocumentation {
|
|
|
31
32
|
* @property value - Embedded literal example
|
|
32
33
|
* @property externalValue - A URL that points to the literal example
|
|
33
34
|
*/
|
|
34
|
-
export interface Example {
|
|
35
|
+
export interface Example extends Extensible {
|
|
35
36
|
summary?: string;
|
|
36
37
|
description?: string;
|
|
37
38
|
value?: any;
|
|
@@ -40,7 +41,7 @@ export interface Example {
|
|
|
40
41
|
/**
|
|
41
42
|
* The Header Object follows the structure of the Parameter Object
|
|
42
43
|
*/
|
|
43
|
-
export interface Header {
|
|
44
|
+
export interface Header extends Extensible {
|
|
44
45
|
description?: string;
|
|
45
46
|
required?: boolean;
|
|
46
47
|
deprecated?: boolean;
|
package/dist/base-types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-types.d.ts","sourceRoot":"","sources":["../src/base-types.ts"],"names":[],"mappings":"AAaA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"base-types.d.ts","sourceRoot":"","sources":["../src/base-types.ts"],"names":[],"mappings":"AAaA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,UAAU,GAClB,KAAK,GACL,KAAK,GACL,MAAM,GACN,QAAQ,GACR,SAAS,GACT,MAAM,GACN,OAAO,GACP,OAAO,CAAC;AAEZ;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEvE;;GAEG;AACH,MAAM,MAAM,UAAU,GAClB,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,SAAS,GACT,OAAO,GACP,QAAQ,GACR,MAAM,CAAC;AAEX;;;;;GAKG;AACH,MAAM,WAAW,qBAAsB,SAAQ,UAAU;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,OAAQ,SAAQ,UAAU;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,MAAO,SAAQ,UAAU;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC,CAAC;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACrC"}
|
package/dist/components.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { Response, Link, Callback } from './responses';
|
|
|
4
4
|
import { Parameter, RequestBody } from './parameters';
|
|
5
5
|
import { SecurityScheme } from './security';
|
|
6
6
|
import { Example, Header } from './base-types';
|
|
7
|
+
import { Extensible } from './extensions';
|
|
7
8
|
/**
|
|
8
9
|
* Holds a set of reusable objects for different aspects of the OAS
|
|
9
10
|
*
|
|
@@ -17,7 +18,7 @@ import { Example, Header } from './base-types';
|
|
|
17
18
|
* @property links - An object to hold reusable Link Objects
|
|
18
19
|
* @property callbacks - An object to hold reusable Callback Objects
|
|
19
20
|
*/
|
|
20
|
-
export interface Components {
|
|
21
|
+
export interface Components extends Extensible {
|
|
21
22
|
schemas?: Record<string, Schema | Reference>;
|
|
22
23
|
responses?: Record<string, Response | Reference>;
|
|
23
24
|
parameters?: Record<string, Parameter | Reference>;
|
package/dist/components.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../src/components.ts"],"names":[],"mappings":"AAaA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../src/components.ts"],"names":[],"mappings":"AAaA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW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IAClB,aAAa,EAAE,WAAW,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,cAAc,CAAC;IAChC,KAAK,EAAE,IAAI,CAAC;IACZ,SAAS,EAAE,QAAQ,CAAC;CACrB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extension support for OpenAPI Specification
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Base interface for all OpenAPI objects that support extensions
|
|
6
|
+
* Extensions are custom properties that start with "x-"
|
|
7
|
+
*/
|
|
8
|
+
export interface Extensible {
|
|
9
|
+
/**
|
|
10
|
+
* Extension properties that start with "x-"
|
|
11
|
+
* These can be used to add custom functionality to the OpenAPI document
|
|
12
|
+
*/
|
|
13
|
+
[extension: `x-${string}`]: any;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Common extensions used in OpenAPI specifications
|
|
17
|
+
*/
|
|
18
|
+
export interface CommonExtensions {
|
|
19
|
+
/** Marks an element as internal use only */
|
|
20
|
+
'x-internal'?: boolean;
|
|
21
|
+
/** Deprecation information with details */
|
|
22
|
+
'x-deprecated'?: {
|
|
23
|
+
message?: string;
|
|
24
|
+
since?: string;
|
|
25
|
+
removedIn?: string;
|
|
26
|
+
replacement?: string;
|
|
27
|
+
};
|
|
28
|
+
/** Tags for categorization beyond standard tags */
|
|
29
|
+
'x-tags'?: string[];
|
|
30
|
+
/** Example values for documentation */
|
|
31
|
+
'x-examples'?: any[];
|
|
32
|
+
/** Order of display in documentation */
|
|
33
|
+
'x-order'?: number;
|
|
34
|
+
/** Groups for organizing in UI */
|
|
35
|
+
'x-group'?: string;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=extensions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../src/extensions.ts"],"names":[],"mappings":"AAaA;;GAEG;AAEH;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,CAAC,SAAS,EAAE,KAAK,MAAM,EAAE,GAAG,GAAG,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,4CAA4C;IAC5C,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,2CAA2C;IAC3C,cAAc,CAAC,EAAE;QACf,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,mDAAmD;IACnD,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,uCAAuC;IACvC,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC;IACrB,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kCAAkC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA;;GAEG;AAGH,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA;;GAEG;AAGH,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC"}
|
package/dist/info.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* API metadata type definitions for OpenAPI Specification
|
|
3
|
-
*/
|
|
1
|
+
import { Extensible } from './extensions';
|
|
4
2
|
/**
|
|
5
3
|
* Contact information for the exposed API
|
|
6
4
|
*
|
|
@@ -8,7 +6,7 @@
|
|
|
8
6
|
* @property url - The URL pointing to the contact information
|
|
9
7
|
* @property email - The email address of the contact person/organization
|
|
10
8
|
*/
|
|
11
|
-
export interface Contact {
|
|
9
|
+
export interface Contact extends Extensible {
|
|
12
10
|
name?: string;
|
|
13
11
|
url?: string;
|
|
14
12
|
email?: string;
|
|
@@ -19,7 +17,7 @@ export interface Contact {
|
|
|
19
17
|
* @property name - The license name used for the API
|
|
20
18
|
* @property url - A URL to the license used for the API
|
|
21
19
|
*/
|
|
22
|
-
export interface License {
|
|
20
|
+
export interface License extends Extensible {
|
|
23
21
|
name: string;
|
|
24
22
|
url?: string;
|
|
25
23
|
}
|
|
@@ -33,7 +31,7 @@ export interface License {
|
|
|
33
31
|
* @property license - The license information for the exposed API
|
|
34
32
|
* @property version - The version of the OpenAPI document
|
|
35
33
|
*/
|
|
36
|
-
export interface Info {
|
|
34
|
+
export interface Info extends Extensible {
|
|
37
35
|
title?: string;
|
|
38
36
|
description?: string;
|
|
39
37
|
termsOfService?: string;
|
package/dist/info.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info.d.ts","sourceRoot":"","sources":["../src/info.ts"],"names":[],"mappings":"AAaA;;GAEG;AAEH;;;;;;GAMG;AACH,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"info.d.ts","sourceRoot":"","sources":["../src/info.ts"],"names":[],"mappings":"AAaA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C;;;;;;GAMG;AACH,MAAM,WAAW,OAAQ,SAAQ,UAAU;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;GAKG;AACH,MAAM,WAAW,OAAQ,SAAQ,UAAU;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,IAAK,SAAQ,UAAU;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
package/dist/openAPI.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { Components } from './components';
|
|
|
5
5
|
import { SecurityRequirement } from './security';
|
|
6
6
|
import { Tag } from './tags';
|
|
7
7
|
import { ExternalDocumentation } from './base-types';
|
|
8
|
+
import { Extensible } from './extensions';
|
|
8
9
|
/**
|
|
9
10
|
* Root document object for the OpenAPI specification
|
|
10
11
|
*
|
|
@@ -17,7 +18,7 @@ import { ExternalDocumentation } from './base-types';
|
|
|
17
18
|
* @property tags - A list of tags used by the specification with additional metadata
|
|
18
19
|
* @property externalDocs - Additional external documentation
|
|
19
20
|
*/
|
|
20
|
-
export interface OpenAPI {
|
|
21
|
+
export interface OpenAPI extends Extensible {
|
|
21
22
|
openapi: string;
|
|
22
23
|
info: Info;
|
|
23
24
|
servers?: Server[];
|
package/dist/openAPI.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openAPI.d.ts","sourceRoot":"","sources":["../src/openAPI.ts"],"names":[],"mappings":"AAaA;;GAEG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAC7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"openAPI.d.ts","sourceRoot":"","sources":["../src/openAPI.ts"],"names":[],"mappings":"AAaA;;GAEG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAC7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,OAAQ,SAAQ,UAAU;IACzC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,KAAK,EAAE,KAAK,CAAC;IACb,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACjC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACb,YAAY,CAAC,EAAE,qBAAqB,CAAC;CACtC"}
|
package/dist/parameters.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Example, Header, ParameterLocation } from './base-types';
|
|
2
2
|
import { Reference } from './reference';
|
|
3
3
|
import { Schema } from './schema';
|
|
4
|
+
import { Extensible } from './extensions';
|
|
4
5
|
/**
|
|
5
6
|
* Describes a single operation parameter
|
|
6
7
|
*
|
|
@@ -18,7 +19,7 @@ import { Schema } from './schema';
|
|
|
18
19
|
* @property examples - Examples of the parameter's potential value
|
|
19
20
|
* @property content - A map containing the representations for the parameter
|
|
20
21
|
*/
|
|
21
|
-
export interface Parameter {
|
|
22
|
+
export interface Parameter extends Extensible {
|
|
22
23
|
name: string;
|
|
23
24
|
in: ParameterLocation;
|
|
24
25
|
description?: string;
|
|
@@ -40,7 +41,7 @@ export interface Parameter {
|
|
|
40
41
|
* @property content - The content of the request body
|
|
41
42
|
* @property required - Determines if the request body is required in the request
|
|
42
43
|
*/
|
|
43
|
-
export interface RequestBody {
|
|
44
|
+
export interface RequestBody extends Extensible {
|
|
44
45
|
description?: string;
|
|
45
46
|
content: Record<string, MediaType>;
|
|
46
47
|
required?: boolean;
|
|
@@ -53,7 +54,7 @@ export interface RequestBody {
|
|
|
53
54
|
* @property examples - Examples of the media type
|
|
54
55
|
* @property encoding - A map between a property name and its encoding information
|
|
55
56
|
*/
|
|
56
|
-
export interface MediaType {
|
|
57
|
+
export interface MediaType extends Extensible {
|
|
57
58
|
schema?: Schema | Reference;
|
|
58
59
|
example?: any;
|
|
59
60
|
examples?: Record<string, Example | Reference>;
|
|
@@ -68,7 +69,7 @@ export interface MediaType {
|
|
|
68
69
|
* @property explode - When true, property values of type array or object generate separate parameters
|
|
69
70
|
* @property allowReserved - Determines whether the parameter value should allow reserved characters
|
|
70
71
|
*/
|
|
71
|
-
export interface Encoding {
|
|
72
|
+
export interface Encoding extends Extensible {
|
|
72
73
|
contentType?: string;
|
|
73
74
|
headers?: Record<string, Header | Reference>;
|
|
74
75
|
style?: string;
|
package/dist/parameters.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../src/parameters.ts"],"names":[],"mappings":"AAaA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../src/parameters.ts"],"names":[],"mappings":"AAaA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,SAAU,SAAQ,UAAU;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,iBAAiB,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC,CAAC;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACrC;AAED;;;;;;GAMG;AACH,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,SAAU,SAAQ,UAAU;IAC3C,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC,CAAC;IAC/C,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;CACrC;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,QAAS,SAAQ,UAAU;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB"}
|
package/dist/paths.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { Parameter, RequestBody } from './parameters';
|
|
|
4
4
|
import { Responses, Callback } from './responses';
|
|
5
5
|
import { SecurityRequirement } from './security';
|
|
6
6
|
import { ExternalDocumentation } from './base-types';
|
|
7
|
+
import { Extensible } from './extensions';
|
|
7
8
|
/**
|
|
8
9
|
* Describes a single API operation on a path
|
|
9
10
|
*
|
|
@@ -20,7 +21,7 @@ import { ExternalDocumentation } from './base-types';
|
|
|
20
21
|
* @property security - Declaration of which security mechanisms can be used for this operation
|
|
21
22
|
* @property servers - Alternative server array to service this operation
|
|
22
23
|
*/
|
|
23
|
-
export interface Operation {
|
|
24
|
+
export interface Operation extends Extensible {
|
|
24
25
|
tags?: string[];
|
|
25
26
|
summary?: string;
|
|
26
27
|
description?: string;
|
|
@@ -51,7 +52,7 @@ export interface Operation {
|
|
|
51
52
|
* @property servers - Alternative server array to service all operations in this path
|
|
52
53
|
* @property parameters - List of parameters that are applicable for all operations in this path
|
|
53
54
|
*/
|
|
54
|
-
export interface PathItem {
|
|
55
|
+
export interface PathItem extends Extensible {
|
|
55
56
|
$ref?: string;
|
|
56
57
|
summary?: string;
|
|
57
58
|
description?: string;
|
|
@@ -69,7 +70,7 @@ export interface PathItem {
|
|
|
69
70
|
/**
|
|
70
71
|
* Holds the relative paths to the individual endpoints and their operations
|
|
71
72
|
*/
|
|
72
|
-
export interface Paths {
|
|
73
|
+
export interface Paths extends Extensible {
|
|
73
74
|
[path: string]: PathItem;
|
|
74
75
|
}
|
|
75
76
|
//# sourceMappingURL=paths.d.ts.map
|
package/dist/paths.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../src/paths.ts"],"names":[],"mappings":"AAaA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../src/paths.ts"],"names":[],"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MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,CAAC,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC,EAAE,CAAC;CACxC;AAED;;GAEG;AACH,MAAM,WAAW,KAAM,SAAQ,UAAU;IACvC,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,CAAC;CAC1B"}
|
package/dist/responses.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { MediaType } from './parameters';
|
|
|
3
3
|
import { Server } from './server';
|
|
4
4
|
import { PathItem } from './paths';
|
|
5
5
|
import { Header } from './base-types';
|
|
6
|
+
import { Extensible } from './extensions';
|
|
6
7
|
/**
|
|
7
8
|
* The Link object represents a possible design-time link for a response
|
|
8
9
|
*
|
|
@@ -13,7 +14,7 @@ import { Header } from './base-types';
|
|
|
13
14
|
* @property description - A description of the link
|
|
14
15
|
* @property server - A server object to be used by the target operation
|
|
15
16
|
*/
|
|
16
|
-
export interface Link {
|
|
17
|
+
export interface Link extends Extensible {
|
|
17
18
|
operationRef?: string;
|
|
18
19
|
operationId?: string;
|
|
19
20
|
parameters?: Record<string, any>;
|
|
@@ -29,7 +30,7 @@ export interface Link {
|
|
|
29
30
|
* @property content - A map containing descriptions of potential response payloads
|
|
30
31
|
* @property links - A map of operations links that can be followed from the response
|
|
31
32
|
*/
|
|
32
|
-
export interface Response {
|
|
33
|
+
export interface Response extends Extensible {
|
|
33
34
|
description?: string;
|
|
34
35
|
headers?: Record<string, Header | Reference>;
|
|
35
36
|
content?: Record<string, MediaType>;
|
|
@@ -38,14 +39,14 @@ export interface Response {
|
|
|
38
39
|
/**
|
|
39
40
|
* A container for the expected responses of an operation
|
|
40
41
|
*/
|
|
41
|
-
export interface Responses {
|
|
42
|
+
export interface Responses extends Extensible {
|
|
42
43
|
default?: Response | Reference;
|
|
43
44
|
[httpCode: string]: Response | Reference | undefined;
|
|
44
45
|
}
|
|
45
46
|
/**
|
|
46
47
|
* A map of possible out-of-band callbacks related to the parent operation
|
|
47
48
|
*/
|
|
48
|
-
export interface Callback {
|
|
49
|
+
export interface Callback extends Extensible {
|
|
49
50
|
[expression: string]: PathItem;
|
|
50
51
|
}
|
|
51
52
|
//# sourceMappingURL=responses.d.ts.map
|
package/dist/responses.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../src/responses.ts"],"names":[],"mappings":"AAaA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../src/responses.ts"],"names":[],"mappings":"AAaA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C;;;;;;;;;GASG;AACH,MAAM,WAAW,IAAK,SAAQ,UAAU;IACtC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,QAAS,SAAQ,UAAU;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,GAAG,SAAS,CAAC,CAAC;CAC1C;AAED;;GAEG;AACH,MAAM,WAAW,SAAU,SAAQ,UAAU;IAC3C,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAE/B,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;CACtD;AAED;;GAEG;AACH,MAAM,WAAW,QAAS,SAAQ,UAAU;IAC1C,CAAC,UAAU,EAAE,MAAM,GAAG,QAAQ,CAAC;CAChC"}
|
package/dist/schema.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ExternalDocumentation, SchemaType } from './base-types';
|
|
2
2
|
import { Reference } from './reference';
|
|
3
|
+
import { Extensible } from './extensions';
|
|
3
4
|
/**
|
|
4
5
|
* Adds support for polymorphism using discriminator
|
|
5
6
|
*
|
|
6
7
|
* @property propertyName - The name of the property in the payload that will hold the discriminator value
|
|
7
8
|
* @property mapping - An object to hold mappings between payload values and schema names or references
|
|
8
9
|
*/
|
|
9
|
-
export interface Discriminator {
|
|
10
|
+
export interface Discriminator extends Extensible {
|
|
10
11
|
propertyName: string;
|
|
11
12
|
mapping?: Record<string, string>;
|
|
12
13
|
}
|
|
@@ -19,7 +20,7 @@ export interface Discriminator {
|
|
|
19
20
|
* @property attribute - Declares whether the property definition translates to an attribute instead of an element
|
|
20
21
|
* @property wrapped - MAY be used only for an array definition and signifies whether the array is wrapped
|
|
21
22
|
*/
|
|
22
|
-
export interface XML {
|
|
23
|
+
export interface XML extends Extensible {
|
|
23
24
|
name?: string;
|
|
24
25
|
namespace?: string;
|
|
25
26
|
prefix?: string;
|
|
@@ -67,7 +68,7 @@ export interface XML {
|
|
|
67
68
|
* @property xml - Additional metadata for XML formatting
|
|
68
69
|
* @property externalDocs - Additional external documentation for this schema
|
|
69
70
|
*/
|
|
70
|
-
export interface Schema {
|
|
71
|
+
export interface Schema extends Extensible {
|
|
71
72
|
$schema?: string;
|
|
72
73
|
title?: string;
|
|
73
74
|
description?: string;
|
package/dist/schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAaA;;GAEG;AAEH,OAAO,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAaA;;GAEG;AAEH,OAAO,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C;;;;;GAKG;AACH,MAAM,WAAW,aAAc,SAAQ,UAAU;IAC/C,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CA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AC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IAGtB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IAChD,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oBAAoB,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;IAGpD,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAClC,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAClC,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAClC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAGzB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IAGb,aAAa,CAAC,EAAE,aAAa,CAAC;IAG9B,GAAG,CAAC,EAAE,GAAG,CAAC;IAGV,YAAY,CAAC,EAAE,qBAAqB,CAAC;CACtC"}
|
package/dist/security.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ParameterLocation } from './base-types';
|
|
2
|
+
import { Extensible } from './extensions';
|
|
2
3
|
/**
|
|
3
4
|
* Configuration details for a supported OAuth Flow
|
|
4
5
|
*
|
|
@@ -7,7 +8,7 @@ import { ParameterLocation } from './base-types';
|
|
|
7
8
|
* @property refreshUrl - The URL to be used for obtaining refresh tokens
|
|
8
9
|
* @property scopes - The available scopes for the OAuth2 security scheme
|
|
9
10
|
*/
|
|
10
|
-
export interface OAuthFlow {
|
|
11
|
+
export interface OAuthFlow extends Extensible {
|
|
11
12
|
authorizationUrl?: string;
|
|
12
13
|
tokenUrl?: string;
|
|
13
14
|
refreshUrl?: string;
|
|
@@ -21,7 +22,7 @@ export interface OAuthFlow {
|
|
|
21
22
|
* @property clientCredentials - Configuration for the OAuth Client Credentials flow
|
|
22
23
|
* @property authorizationCode - Configuration for the OAuth Authorization Code flow
|
|
23
24
|
*/
|
|
24
|
-
export interface OAuthFlows {
|
|
25
|
+
export interface OAuthFlows extends Extensible {
|
|
25
26
|
implicit?: OAuthFlow;
|
|
26
27
|
password?: OAuthFlow;
|
|
27
28
|
clientCredentials?: OAuthFlow;
|
|
@@ -39,7 +40,7 @@ export interface OAuthFlows {
|
|
|
39
40
|
* @property flows - An object containing configuration information for the flow types supported
|
|
40
41
|
* @property openIdConnectUrl - OpenId Connect URL to discover OAuth2 configuration values
|
|
41
42
|
*/
|
|
42
|
-
export interface SecurityScheme {
|
|
43
|
+
export interface SecurityScheme extends Extensible {
|
|
43
44
|
type: 'apiKey' | 'http' | 'oauth2' | 'openIdConnect';
|
|
44
45
|
description?: string;
|
|
45
46
|
name?: string;
|
|
@@ -52,7 +53,7 @@ export interface SecurityScheme {
|
|
|
52
53
|
/**
|
|
53
54
|
* Lists the required security schemes to execute this operation
|
|
54
55
|
*/
|
|
55
|
-
export interface SecurityRequirement {
|
|
56
|
+
export interface SecurityRequirement extends Extensible {
|
|
56
57
|
[name: string]: string[];
|
|
57
58
|
}
|
|
58
59
|
//# sourceMappingURL=security.d.ts.map
|
package/dist/security.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security.d.ts","sourceRoot":"","sources":["../src/security.ts"],"names":[],"mappings":"AAaA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"security.d.ts","sourceRoot":"","sources":["../src/security.ts"],"names":[],"mappings":"AAaA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C;;;;;;;GAOG;AACH,MAAM,WAAW,SAAU,SAAQ,UAAU;IAC3C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,UAAW,SAAQ,UAAU;IAC5C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B,iBAAiB,CAAC,EAAE,SAAS,CAAC;CAC/B;AAED;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,cAAe,SAAQ,UAAU;IAChD,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,eAAe,CAAC;IACrD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,iBAAiB,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,UAAU;IACrD,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC1B"}
|
package/dist/server.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Server configuration type definitions for OpenAPI Specification
|
|
3
|
-
*/
|
|
1
|
+
import { Extensible } from './extensions';
|
|
4
2
|
/**
|
|
5
3
|
* Server variable for URL template substitution
|
|
6
4
|
*
|
|
@@ -8,7 +6,7 @@
|
|
|
8
6
|
* @property default - The default value to use for substitution
|
|
9
7
|
* @property description - An optional description for the server variable
|
|
10
8
|
*/
|
|
11
|
-
export interface ServerVariable {
|
|
9
|
+
export interface ServerVariable extends Extensible {
|
|
12
10
|
enum?: string[];
|
|
13
11
|
default: string;
|
|
14
12
|
description?: string;
|
|
@@ -20,7 +18,7 @@ export interface ServerVariable {
|
|
|
20
18
|
* @property description - An optional string describing the host designated by the URL
|
|
21
19
|
* @property variables - A map between a variable name and its value
|
|
22
20
|
*/
|
|
23
|
-
export interface Server {
|
|
21
|
+
export interface Server extends Extensible {
|
|
24
22
|
url: string;
|
|
25
23
|
description?: string;
|
|
26
24
|
variables?: Record<string, ServerVariable>;
|
package/dist/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAaA;;GAEG;AAEH;;;;;;GAMG;AACH,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAaA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C;;;;;;GAMG;AACH,MAAM,WAAW,cAAe,SAAQ,UAAU;IAChD,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,MAAO,SAAQ,UAAU;IACxC,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;CAC5C"}
|
package/dist/tags.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ExternalDocumentation } from './base-types';
|
|
2
|
+
import { Extensible } from './extensions';
|
|
2
3
|
/**
|
|
3
4
|
* Adds metadata to a single tag that is used by the Operation Object
|
|
4
5
|
*
|
|
@@ -6,7 +7,7 @@ import { ExternalDocumentation } from './base-types';
|
|
|
6
7
|
* @property description - A description for the tag
|
|
7
8
|
* @property externalDocs - Additional external documentation for this tag
|
|
8
9
|
*/
|
|
9
|
-
export interface Tag {
|
|
10
|
+
export interface Tag extends Extensible {
|
|
10
11
|
name: string;
|
|
11
12
|
description?: string;
|
|
12
13
|
externalDocs?: ExternalDocumentation;
|
package/dist/tags.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../src/tags.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../src/tags.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C;;;;;;GAMG;AACH,MAAM,WAAW,GAAI,SAAQ,UAAU;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,qBAAqB,CAAC;CACtC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ahoo-wang/fetcher-openapi",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.8",
|
|
4
4
|
"description": "OpenAPI Specification TypeScript types for Fetcher - A modern, ultra-lightweight HTTP client for browsers and Node.js. Provides complete TypeScript support with type inference for OpenAPI 3.x schemas.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fetch",
|
|
@@ -52,16 +52,16 @@
|
|
|
52
52
|
"README.zh-CN.md"
|
|
53
53
|
],
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@eslint/js": "^9.
|
|
55
|
+
"@eslint/js": "^9.36.0",
|
|
56
56
|
"@vitest/coverage-v8": "^3.2.4",
|
|
57
57
|
"@vitest/ui": "^3.2.4",
|
|
58
|
-
"eslint": "^9.
|
|
58
|
+
"eslint": "^9.36.0",
|
|
59
59
|
"globals": "^16.4.0",
|
|
60
60
|
"prettier": "^3.6.2",
|
|
61
61
|
"typescript": "^5.9.2",
|
|
62
|
-
"typescript-eslint": "^8.44.
|
|
62
|
+
"typescript-eslint": "^8.44.1",
|
|
63
63
|
"unplugin-dts": "1.0.0-beta.6",
|
|
64
|
-
"vite": "^7.1.
|
|
64
|
+
"vite": "^7.1.7",
|
|
65
65
|
"vite-bundle-analyzer": "^1.2.3",
|
|
66
66
|
"vitest": "^3.2.4"
|
|
67
67
|
},
|