@hey-api/openapi-ts 0.61.1 → 0.61.3
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/bin/index.cjs +1 -1
- package/dist/index.cjs +53 -76
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -13
- package/dist/index.d.ts +5 -13
- package/dist/index.js +54 -66
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -640,7 +640,7 @@ interface ExternalDocumentationObject$2 {
|
|
|
640
640
|
* type: integer
|
|
641
641
|
* ```
|
|
642
642
|
*/
|
|
643
|
-
|
|
643
|
+
type HeaderObject$2 = Omit<ParameterObject$2, 'in' | 'name'>;
|
|
644
644
|
|
|
645
645
|
/**
|
|
646
646
|
* The object provides metadata about the API. The metadata MAY be used by the clients if needed, and MAY be presented in editing or documentation generation tools for convenience.
|
|
@@ -1676,7 +1676,7 @@ interface ResponsesObject$2 {
|
|
|
1676
1676
|
*
|
|
1677
1677
|
* This object MAY be extended with {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#specification-extensions Specification Extensions}, though as noted, additional properties MAY omit the `x-` prefix within this object.
|
|
1678
1678
|
*/
|
|
1679
|
-
|
|
1679
|
+
type SchemaObject$2 = JsonSchemaDraft2020_12;
|
|
1680
1680
|
|
|
1681
1681
|
/**
|
|
1682
1682
|
* Lists the required security schemes to execute this operation. The name used for each property MUST correspond to a security scheme declared in the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#componentsSecuritySchemes Security Schemes} under the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#components-object Components Object}.
|
|
@@ -2483,7 +2483,6 @@ type JsonSchemaFormats$2 =
|
|
|
2483
2483
|
| 'uri-reference'
|
|
2484
2484
|
| 'uri-template'
|
|
2485
2485
|
| 'uuid'
|
|
2486
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
2487
2486
|
| (string & {});
|
|
2488
2487
|
|
|
2489
2488
|
type JsonSchemaTypes$1 =
|
|
@@ -3444,7 +3443,6 @@ type JsonSchemaFormats$1 =
|
|
|
3444
3443
|
| 'ipv4'
|
|
3445
3444
|
| 'ipv6'
|
|
3446
3445
|
| 'uri'
|
|
3447
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
3448
3446
|
| (string & {});
|
|
3449
3447
|
|
|
3450
3448
|
type JsonSchemaTypes =
|
|
@@ -5307,7 +5305,7 @@ interface ExternalDocumentationObject {
|
|
|
5307
5305
|
*
|
|
5308
5306
|
* TODO: examples
|
|
5309
5307
|
*/
|
|
5310
|
-
|
|
5308
|
+
type HeaderObject = Omit<ParameterObject, 'in' | 'name'>;
|
|
5311
5309
|
|
|
5312
5310
|
/**
|
|
5313
5311
|
* The object provides metadata about the API. The metadata MAY be used by the clients if needed, and MAY be presented in editing or documentation generation tools for convenience.
|
|
@@ -6331,11 +6329,7 @@ type OpenApiSchemaFormats =
|
|
|
6331
6329
|
| 'date-time'
|
|
6332
6330
|
| 'password';
|
|
6333
6331
|
|
|
6334
|
-
type Format =
|
|
6335
|
-
| JsonSchemaFormats
|
|
6336
|
-
| OpenApiSchemaFormats
|
|
6337
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
6338
|
-
| (string & {});
|
|
6332
|
+
type Format = JsonSchemaFormats | OpenApiSchemaFormats | (string & {});
|
|
6339
6333
|
|
|
6340
6334
|
declare namespace OpenApi {
|
|
6341
6335
|
export type V2_0_X = OpenApiV2_0_X;
|
|
@@ -6389,7 +6383,6 @@ type PluginNames =
|
|
|
6389
6383
|
| 'fastify'
|
|
6390
6384
|
| 'zod';
|
|
6391
6385
|
|
|
6392
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
6393
6386
|
type AnyPluginName = PluginNames | (string & {});
|
|
6394
6387
|
|
|
6395
6388
|
type PluginTag = 'transformer' | 'validator';
|
|
@@ -7104,8 +7097,7 @@ interface ClientConfig {
|
|
|
7104
7097
|
interval?: number;
|
|
7105
7098
|
};
|
|
7106
7099
|
}
|
|
7107
|
-
|
|
7108
|
-
}
|
|
7100
|
+
type UserConfig = ClientConfig;
|
|
7109
7101
|
type Config = Omit<Required<ClientConfig>, 'base' | 'client' | 'input' | 'logs' | 'name' | 'output' | 'plugins' | 'request' | 'watch'> & Pick<ClientConfig, 'base' | 'name' | 'request'> & {
|
|
7110
7102
|
client: Extract<Required<ClientConfig>['client'], object>;
|
|
7111
7103
|
input: ExtractWithDiscriminator<ClientConfig['input'], {
|
package/dist/index.d.ts
CHANGED
|
@@ -640,7 +640,7 @@ interface ExternalDocumentationObject$2 {
|
|
|
640
640
|
* type: integer
|
|
641
641
|
* ```
|
|
642
642
|
*/
|
|
643
|
-
|
|
643
|
+
type HeaderObject$2 = Omit<ParameterObject$2, 'in' | 'name'>;
|
|
644
644
|
|
|
645
645
|
/**
|
|
646
646
|
* The object provides metadata about the API. The metadata MAY be used by the clients if needed, and MAY be presented in editing or documentation generation tools for convenience.
|
|
@@ -1676,7 +1676,7 @@ interface ResponsesObject$2 {
|
|
|
1676
1676
|
*
|
|
1677
1677
|
* This object MAY be extended with {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#specification-extensions Specification Extensions}, though as noted, additional properties MAY omit the `x-` prefix within this object.
|
|
1678
1678
|
*/
|
|
1679
|
-
|
|
1679
|
+
type SchemaObject$2 = JsonSchemaDraft2020_12;
|
|
1680
1680
|
|
|
1681
1681
|
/**
|
|
1682
1682
|
* Lists the required security schemes to execute this operation. The name used for each property MUST correspond to a security scheme declared in the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#componentsSecuritySchemes Security Schemes} under the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#components-object Components Object}.
|
|
@@ -2483,7 +2483,6 @@ type JsonSchemaFormats$2 =
|
|
|
2483
2483
|
| 'uri-reference'
|
|
2484
2484
|
| 'uri-template'
|
|
2485
2485
|
| 'uuid'
|
|
2486
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
2487
2486
|
| (string & {});
|
|
2488
2487
|
|
|
2489
2488
|
type JsonSchemaTypes$1 =
|
|
@@ -3444,7 +3443,6 @@ type JsonSchemaFormats$1 =
|
|
|
3444
3443
|
| 'ipv4'
|
|
3445
3444
|
| 'ipv6'
|
|
3446
3445
|
| 'uri'
|
|
3447
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
3448
3446
|
| (string & {});
|
|
3449
3447
|
|
|
3450
3448
|
type JsonSchemaTypes =
|
|
@@ -5307,7 +5305,7 @@ interface ExternalDocumentationObject {
|
|
|
5307
5305
|
*
|
|
5308
5306
|
* TODO: examples
|
|
5309
5307
|
*/
|
|
5310
|
-
|
|
5308
|
+
type HeaderObject = Omit<ParameterObject, 'in' | 'name'>;
|
|
5311
5309
|
|
|
5312
5310
|
/**
|
|
5313
5311
|
* The object provides metadata about the API. The metadata MAY be used by the clients if needed, and MAY be presented in editing or documentation generation tools for convenience.
|
|
@@ -6331,11 +6329,7 @@ type OpenApiSchemaFormats =
|
|
|
6331
6329
|
| 'date-time'
|
|
6332
6330
|
| 'password';
|
|
6333
6331
|
|
|
6334
|
-
type Format =
|
|
6335
|
-
| JsonSchemaFormats
|
|
6336
|
-
| OpenApiSchemaFormats
|
|
6337
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
6338
|
-
| (string & {});
|
|
6332
|
+
type Format = JsonSchemaFormats | OpenApiSchemaFormats | (string & {});
|
|
6339
6333
|
|
|
6340
6334
|
declare namespace OpenApi {
|
|
6341
6335
|
export type V2_0_X = OpenApiV2_0_X;
|
|
@@ -6389,7 +6383,6 @@ type PluginNames =
|
|
|
6389
6383
|
| 'fastify'
|
|
6390
6384
|
| 'zod';
|
|
6391
6385
|
|
|
6392
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
6393
6386
|
type AnyPluginName = PluginNames | (string & {});
|
|
6394
6387
|
|
|
6395
6388
|
type PluginTag = 'transformer' | 'validator';
|
|
@@ -7104,8 +7097,7 @@ interface ClientConfig {
|
|
|
7104
7097
|
interval?: number;
|
|
7105
7098
|
};
|
|
7106
7099
|
}
|
|
7107
|
-
|
|
7108
|
-
}
|
|
7100
|
+
type UserConfig = ClientConfig;
|
|
7109
7101
|
type Config = Omit<Required<ClientConfig>, 'base' | 'client' | 'input' | 'logs' | 'name' | 'output' | 'plugins' | 'request' | 'watch'> & Pick<ClientConfig, 'base' | 'name' | 'request'> & {
|
|
7110
7102
|
client: Extract<Required<ClientConfig>['client'], object>;
|
|
7111
7103
|
input: ExtractWithDiscriminator<ClientConfig['input'], {
|