@hey-api/openapi-ts 0.67.6 → 0.68.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.
- package/dist/chunk-TUGP7QO5.js +13 -0
- package/dist/chunk-TUGP7QO5.js.map +1 -0
- package/dist/index.cjs +156 -156
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/internal.cjs +10 -10
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +1 -1
- package/dist/{types.d-CdBjJneT.d.cts → types.d-Il3OF6kK.d.cts} +144 -22
- package/dist/{types.d-CdBjJneT.d.ts → types.d-Il3OF6kK.d.ts} +144 -22
- package/package.json +3 -3
- package/dist/chunk-7JZSF2LW.js +0 -13
- package/dist/chunk-7JZSF2LW.js.map +0 -1
package/dist/internal.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSONSchema } from '@hey-api/json-schema-ref-parser';
|
|
2
|
-
import { c as Config, I as IR, W as WatchValues } from './types.d-
|
|
3
|
-
export { i as initConfigs } from './types.d-
|
|
2
|
+
import { c as Config, I as IR, W as WatchValues } from './types.d-Il3OF6kK.cjs';
|
|
3
|
+
export { i as initConfigs } from './types.d-Il3OF6kK.cjs';
|
|
4
4
|
import 'node:fs';
|
|
5
5
|
import 'typescript';
|
|
6
6
|
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSONSchema } from '@hey-api/json-schema-ref-parser';
|
|
2
|
-
import { c as Config, I as IR, W as WatchValues } from './types.d-
|
|
3
|
-
export { i as initConfigs } from './types.d-
|
|
2
|
+
import { c as Config, I as IR, W as WatchValues } from './types.d-Il3OF6kK.js';
|
|
3
|
+
export { i as initConfigs } from './types.d-Il3OF6kK.js';
|
|
4
4
|
import 'node:fs';
|
|
5
5
|
import 'typescript';
|
|
6
6
|
|
package/dist/internal.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {createRequire}from'module';export{o as getSpec,x as initConfigs,r as parseOpenApiSpec}from'./chunk-
|
|
1
|
+
import {createRequire}from'module';export{o as getSpec,x as initConfigs,r as parseOpenApiSpec}from'./chunk-TUGP7QO5.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
|
|
2
2
|
//# sourceMappingURL=internal.js.map
|
|
@@ -7150,6 +7150,12 @@ interface Config$3 extends Plugin.Name<'fastify'> {
|
|
|
7150
7150
|
|
|
7151
7151
|
|
|
7152
7152
|
interface Config$2 extends Plugin.Name<'valibot'> {
|
|
7153
|
+
/**
|
|
7154
|
+
* Add comments from input to the generated Valibot schemas?
|
|
7155
|
+
*
|
|
7156
|
+
* @default true
|
|
7157
|
+
*/
|
|
7158
|
+
comments?: boolean;
|
|
7153
7159
|
/**
|
|
7154
7160
|
* Should the exports from the generated files be re-exported in the index
|
|
7155
7161
|
* barrel file?
|
|
@@ -7174,6 +7180,12 @@ interface Config$2 extends Plugin.Name<'valibot'> {
|
|
|
7174
7180
|
|
|
7175
7181
|
|
|
7176
7182
|
interface Config$1 extends Plugin.Name<'zod'> {
|
|
7183
|
+
/**
|
|
7184
|
+
* Add comments from input to the generated Zod schemas?
|
|
7185
|
+
*
|
|
7186
|
+
* @default true
|
|
7187
|
+
*/
|
|
7188
|
+
comments?: boolean;
|
|
7177
7189
|
/**
|
|
7178
7190
|
* Should the exports from the generated files be re-exported in the index
|
|
7179
7191
|
* barrel file?
|
|
@@ -7240,35 +7252,145 @@ interface Input {
|
|
|
7240
7252
|
* This will always return the same file.
|
|
7241
7253
|
*/
|
|
7242
7254
|
commit_sha?: string;
|
|
7243
|
-
/**
|
|
7244
|
-
* Prevent parts matching the regular expression(s) from being processed.
|
|
7245
|
-
* You can select both operations and components by reference within
|
|
7246
|
-
* the bundled input.
|
|
7247
|
-
*
|
|
7248
|
-
* In case of conflicts, `exclude` takes precedence over `include`.
|
|
7249
|
-
*
|
|
7250
|
-
* @example
|
|
7251
|
-
* operation: '^#/paths/api/v1/foo/get$'
|
|
7252
|
-
* schema: '^#/components/schemas/Foo$'
|
|
7253
|
-
* deprecated: '@deprecated'
|
|
7254
|
-
*/
|
|
7255
|
-
exclude?: ReadonlyArray<string> | string;
|
|
7256
7255
|
/**
|
|
7257
7256
|
* You pass any valid Fetch API options to the request for fetching your
|
|
7258
7257
|
* specification. This is useful if your file is behind auth for example.
|
|
7259
7258
|
*/
|
|
7260
7259
|
fetch?: RequestInit;
|
|
7261
7260
|
/**
|
|
7262
|
-
*
|
|
7263
|
-
*
|
|
7264
|
-
*
|
|
7265
|
-
* In case of conflicts, `exclude` takes precedence over `include`.
|
|
7266
|
-
*
|
|
7267
|
-
* @example
|
|
7268
|
-
* operation: '^#/paths/api/v1/foo/get$'
|
|
7269
|
-
* schema: '^#/components/schemas/Foo$'
|
|
7261
|
+
* Filters can be used to select a subset of your input before it's processed
|
|
7262
|
+
* by plugins.
|
|
7270
7263
|
*/
|
|
7271
|
-
|
|
7264
|
+
filters?: {
|
|
7265
|
+
/**
|
|
7266
|
+
* Include deprecated resources in the output?
|
|
7267
|
+
*
|
|
7268
|
+
* @default true
|
|
7269
|
+
*/
|
|
7270
|
+
deprecated?: boolean;
|
|
7271
|
+
operations?: {
|
|
7272
|
+
/**
|
|
7273
|
+
* Prevent operations matching the `exclude` filters from being processed.
|
|
7274
|
+
*
|
|
7275
|
+
* In case of conflicts, `exclude` takes precedence over `include`.
|
|
7276
|
+
*
|
|
7277
|
+
* @example ['GET /api/v1/foo']
|
|
7278
|
+
*/
|
|
7279
|
+
exclude?: ReadonlyArray<string>;
|
|
7280
|
+
/**
|
|
7281
|
+
* Process only operations matching the `include` filters.
|
|
7282
|
+
*
|
|
7283
|
+
* In case of conflicts, `exclude` takes precedence over `include`.
|
|
7284
|
+
*
|
|
7285
|
+
* @example ['GET /api/v1/foo']
|
|
7286
|
+
*/
|
|
7287
|
+
include?: ReadonlyArray<string>;
|
|
7288
|
+
};
|
|
7289
|
+
/**
|
|
7290
|
+
* Keep reusable components without any references in the output? By
|
|
7291
|
+
* default, we exclude orphaned resources.
|
|
7292
|
+
*
|
|
7293
|
+
* @default false
|
|
7294
|
+
*/
|
|
7295
|
+
orphans?: boolean;
|
|
7296
|
+
parameters?: {
|
|
7297
|
+
/**
|
|
7298
|
+
* Prevent parameters matching the `exclude` filters from being processed.
|
|
7299
|
+
*
|
|
7300
|
+
* In case of conflicts, `exclude` takes precedence over `include`.
|
|
7301
|
+
*
|
|
7302
|
+
* @example ['QueryParam']
|
|
7303
|
+
*/
|
|
7304
|
+
exclude?: ReadonlyArray<string>;
|
|
7305
|
+
/**
|
|
7306
|
+
* Process only parameters matching the `include` filters.
|
|
7307
|
+
*
|
|
7308
|
+
* In case of conflicts, `exclude` takes precedence over `include`.
|
|
7309
|
+
*
|
|
7310
|
+
* @example ['QueryParam']
|
|
7311
|
+
*/
|
|
7312
|
+
include?: ReadonlyArray<string>;
|
|
7313
|
+
};
|
|
7314
|
+
/**
|
|
7315
|
+
* Should we preserve the key order when overwriting your input? This
|
|
7316
|
+
* option is disabled by default to improve performance.
|
|
7317
|
+
*
|
|
7318
|
+
* @default false
|
|
7319
|
+
*/
|
|
7320
|
+
preserveOrder?: boolean;
|
|
7321
|
+
requestBodies?: {
|
|
7322
|
+
/**
|
|
7323
|
+
* Prevent request bodies matching the `exclude` filters from being processed.
|
|
7324
|
+
*
|
|
7325
|
+
* In case of conflicts, `exclude` takes precedence over `include`.
|
|
7326
|
+
*
|
|
7327
|
+
* @example ['Foo']
|
|
7328
|
+
*/
|
|
7329
|
+
exclude?: ReadonlyArray<string>;
|
|
7330
|
+
/**
|
|
7331
|
+
* Process only request bodies matching the `include` filters.
|
|
7332
|
+
*
|
|
7333
|
+
* In case of conflicts, `exclude` takes precedence over `include`.
|
|
7334
|
+
*
|
|
7335
|
+
* @example ['Foo']
|
|
7336
|
+
*/
|
|
7337
|
+
include?: ReadonlyArray<string>;
|
|
7338
|
+
};
|
|
7339
|
+
responses?: {
|
|
7340
|
+
/**
|
|
7341
|
+
* Prevent responses matching the `exclude` filters from being processed.
|
|
7342
|
+
*
|
|
7343
|
+
* In case of conflicts, `exclude` takes precedence over `include`.
|
|
7344
|
+
*
|
|
7345
|
+
* @example ['Foo']
|
|
7346
|
+
*/
|
|
7347
|
+
exclude?: ReadonlyArray<string>;
|
|
7348
|
+
/**
|
|
7349
|
+
* Process only responses matching the `include` filters.
|
|
7350
|
+
*
|
|
7351
|
+
* In case of conflicts, `exclude` takes precedence over `include`.
|
|
7352
|
+
*
|
|
7353
|
+
* @example ['Foo']
|
|
7354
|
+
*/
|
|
7355
|
+
include?: ReadonlyArray<string>;
|
|
7356
|
+
};
|
|
7357
|
+
schemas?: {
|
|
7358
|
+
/**
|
|
7359
|
+
* Prevent schemas matching the `exclude` filters from being processed.
|
|
7360
|
+
*
|
|
7361
|
+
* In case of conflicts, `exclude` takes precedence over `include`.
|
|
7362
|
+
*
|
|
7363
|
+
* @example ['Foo']
|
|
7364
|
+
*/
|
|
7365
|
+
exclude?: ReadonlyArray<string>;
|
|
7366
|
+
/**
|
|
7367
|
+
* Process only schemas matching the `include` filters.
|
|
7368
|
+
*
|
|
7369
|
+
* In case of conflicts, `exclude` takes precedence over `include`.
|
|
7370
|
+
*
|
|
7371
|
+
* @example ['Foo']
|
|
7372
|
+
*/
|
|
7373
|
+
include?: ReadonlyArray<string>;
|
|
7374
|
+
};
|
|
7375
|
+
tags?: {
|
|
7376
|
+
/**
|
|
7377
|
+
* Prevent tags matching the `exclude` filters from being processed.
|
|
7378
|
+
*
|
|
7379
|
+
* In case of conflicts, `exclude` takes precedence over `include`.
|
|
7380
|
+
*
|
|
7381
|
+
* @example ['foo']
|
|
7382
|
+
*/
|
|
7383
|
+
exclude?: ReadonlyArray<string>;
|
|
7384
|
+
/**
|
|
7385
|
+
* Process only tags matching the `include` filters.
|
|
7386
|
+
*
|
|
7387
|
+
* In case of conflicts, `exclude` takes precedence over `include`.
|
|
7388
|
+
*
|
|
7389
|
+
* @example ['foo']
|
|
7390
|
+
*/
|
|
7391
|
+
include?: ReadonlyArray<string>;
|
|
7392
|
+
};
|
|
7393
|
+
};
|
|
7272
7394
|
/**
|
|
7273
7395
|
* **Requires `path` to start with `https://get.heyapi.dev` or be undefined**
|
|
7274
7396
|
*
|
|
@@ -7150,6 +7150,12 @@ interface Config$3 extends Plugin.Name<'fastify'> {
|
|
|
7150
7150
|
|
|
7151
7151
|
|
|
7152
7152
|
interface Config$2 extends Plugin.Name<'valibot'> {
|
|
7153
|
+
/**
|
|
7154
|
+
* Add comments from input to the generated Valibot schemas?
|
|
7155
|
+
*
|
|
7156
|
+
* @default true
|
|
7157
|
+
*/
|
|
7158
|
+
comments?: boolean;
|
|
7153
7159
|
/**
|
|
7154
7160
|
* Should the exports from the generated files be re-exported in the index
|
|
7155
7161
|
* barrel file?
|
|
@@ -7174,6 +7180,12 @@ interface Config$2 extends Plugin.Name<'valibot'> {
|
|
|
7174
7180
|
|
|
7175
7181
|
|
|
7176
7182
|
interface Config$1 extends Plugin.Name<'zod'> {
|
|
7183
|
+
/**
|
|
7184
|
+
* Add comments from input to the generated Zod schemas?
|
|
7185
|
+
*
|
|
7186
|
+
* @default true
|
|
7187
|
+
*/
|
|
7188
|
+
comments?: boolean;
|
|
7177
7189
|
/**
|
|
7178
7190
|
* Should the exports from the generated files be re-exported in the index
|
|
7179
7191
|
* barrel file?
|
|
@@ -7240,35 +7252,145 @@ interface Input {
|
|
|
7240
7252
|
* This will always return the same file.
|
|
7241
7253
|
*/
|
|
7242
7254
|
commit_sha?: string;
|
|
7243
|
-
/**
|
|
7244
|
-
* Prevent parts matching the regular expression(s) from being processed.
|
|
7245
|
-
* You can select both operations and components by reference within
|
|
7246
|
-
* the bundled input.
|
|
7247
|
-
*
|
|
7248
|
-
* In case of conflicts, `exclude` takes precedence over `include`.
|
|
7249
|
-
*
|
|
7250
|
-
* @example
|
|
7251
|
-
* operation: '^#/paths/api/v1/foo/get$'
|
|
7252
|
-
* schema: '^#/components/schemas/Foo$'
|
|
7253
|
-
* deprecated: '@deprecated'
|
|
7254
|
-
*/
|
|
7255
|
-
exclude?: ReadonlyArray<string> | string;
|
|
7256
7255
|
/**
|
|
7257
7256
|
* You pass any valid Fetch API options to the request for fetching your
|
|
7258
7257
|
* specification. This is useful if your file is behind auth for example.
|
|
7259
7258
|
*/
|
|
7260
7259
|
fetch?: RequestInit;
|
|
7261
7260
|
/**
|
|
7262
|
-
*
|
|
7263
|
-
*
|
|
7264
|
-
*
|
|
7265
|
-
* In case of conflicts, `exclude` takes precedence over `include`.
|
|
7266
|
-
*
|
|
7267
|
-
* @example
|
|
7268
|
-
* operation: '^#/paths/api/v1/foo/get$'
|
|
7269
|
-
* schema: '^#/components/schemas/Foo$'
|
|
7261
|
+
* Filters can be used to select a subset of your input before it's processed
|
|
7262
|
+
* by plugins.
|
|
7270
7263
|
*/
|
|
7271
|
-
|
|
7264
|
+
filters?: {
|
|
7265
|
+
/**
|
|
7266
|
+
* Include deprecated resources in the output?
|
|
7267
|
+
*
|
|
7268
|
+
* @default true
|
|
7269
|
+
*/
|
|
7270
|
+
deprecated?: boolean;
|
|
7271
|
+
operations?: {
|
|
7272
|
+
/**
|
|
7273
|
+
* Prevent operations matching the `exclude` filters from being processed.
|
|
7274
|
+
*
|
|
7275
|
+
* In case of conflicts, `exclude` takes precedence over `include`.
|
|
7276
|
+
*
|
|
7277
|
+
* @example ['GET /api/v1/foo']
|
|
7278
|
+
*/
|
|
7279
|
+
exclude?: ReadonlyArray<string>;
|
|
7280
|
+
/**
|
|
7281
|
+
* Process only operations matching the `include` filters.
|
|
7282
|
+
*
|
|
7283
|
+
* In case of conflicts, `exclude` takes precedence over `include`.
|
|
7284
|
+
*
|
|
7285
|
+
* @example ['GET /api/v1/foo']
|
|
7286
|
+
*/
|
|
7287
|
+
include?: ReadonlyArray<string>;
|
|
7288
|
+
};
|
|
7289
|
+
/**
|
|
7290
|
+
* Keep reusable components without any references in the output? By
|
|
7291
|
+
* default, we exclude orphaned resources.
|
|
7292
|
+
*
|
|
7293
|
+
* @default false
|
|
7294
|
+
*/
|
|
7295
|
+
orphans?: boolean;
|
|
7296
|
+
parameters?: {
|
|
7297
|
+
/**
|
|
7298
|
+
* Prevent parameters matching the `exclude` filters from being processed.
|
|
7299
|
+
*
|
|
7300
|
+
* In case of conflicts, `exclude` takes precedence over `include`.
|
|
7301
|
+
*
|
|
7302
|
+
* @example ['QueryParam']
|
|
7303
|
+
*/
|
|
7304
|
+
exclude?: ReadonlyArray<string>;
|
|
7305
|
+
/**
|
|
7306
|
+
* Process only parameters matching the `include` filters.
|
|
7307
|
+
*
|
|
7308
|
+
* In case of conflicts, `exclude` takes precedence over `include`.
|
|
7309
|
+
*
|
|
7310
|
+
* @example ['QueryParam']
|
|
7311
|
+
*/
|
|
7312
|
+
include?: ReadonlyArray<string>;
|
|
7313
|
+
};
|
|
7314
|
+
/**
|
|
7315
|
+
* Should we preserve the key order when overwriting your input? This
|
|
7316
|
+
* option is disabled by default to improve performance.
|
|
7317
|
+
*
|
|
7318
|
+
* @default false
|
|
7319
|
+
*/
|
|
7320
|
+
preserveOrder?: boolean;
|
|
7321
|
+
requestBodies?: {
|
|
7322
|
+
/**
|
|
7323
|
+
* Prevent request bodies matching the `exclude` filters from being processed.
|
|
7324
|
+
*
|
|
7325
|
+
* In case of conflicts, `exclude` takes precedence over `include`.
|
|
7326
|
+
*
|
|
7327
|
+
* @example ['Foo']
|
|
7328
|
+
*/
|
|
7329
|
+
exclude?: ReadonlyArray<string>;
|
|
7330
|
+
/**
|
|
7331
|
+
* Process only request bodies matching the `include` filters.
|
|
7332
|
+
*
|
|
7333
|
+
* In case of conflicts, `exclude` takes precedence over `include`.
|
|
7334
|
+
*
|
|
7335
|
+
* @example ['Foo']
|
|
7336
|
+
*/
|
|
7337
|
+
include?: ReadonlyArray<string>;
|
|
7338
|
+
};
|
|
7339
|
+
responses?: {
|
|
7340
|
+
/**
|
|
7341
|
+
* Prevent responses matching the `exclude` filters from being processed.
|
|
7342
|
+
*
|
|
7343
|
+
* In case of conflicts, `exclude` takes precedence over `include`.
|
|
7344
|
+
*
|
|
7345
|
+
* @example ['Foo']
|
|
7346
|
+
*/
|
|
7347
|
+
exclude?: ReadonlyArray<string>;
|
|
7348
|
+
/**
|
|
7349
|
+
* Process only responses matching the `include` filters.
|
|
7350
|
+
*
|
|
7351
|
+
* In case of conflicts, `exclude` takes precedence over `include`.
|
|
7352
|
+
*
|
|
7353
|
+
* @example ['Foo']
|
|
7354
|
+
*/
|
|
7355
|
+
include?: ReadonlyArray<string>;
|
|
7356
|
+
};
|
|
7357
|
+
schemas?: {
|
|
7358
|
+
/**
|
|
7359
|
+
* Prevent schemas matching the `exclude` filters from being processed.
|
|
7360
|
+
*
|
|
7361
|
+
* In case of conflicts, `exclude` takes precedence over `include`.
|
|
7362
|
+
*
|
|
7363
|
+
* @example ['Foo']
|
|
7364
|
+
*/
|
|
7365
|
+
exclude?: ReadonlyArray<string>;
|
|
7366
|
+
/**
|
|
7367
|
+
* Process only schemas matching the `include` filters.
|
|
7368
|
+
*
|
|
7369
|
+
* In case of conflicts, `exclude` takes precedence over `include`.
|
|
7370
|
+
*
|
|
7371
|
+
* @example ['Foo']
|
|
7372
|
+
*/
|
|
7373
|
+
include?: ReadonlyArray<string>;
|
|
7374
|
+
};
|
|
7375
|
+
tags?: {
|
|
7376
|
+
/**
|
|
7377
|
+
* Prevent tags matching the `exclude` filters from being processed.
|
|
7378
|
+
*
|
|
7379
|
+
* In case of conflicts, `exclude` takes precedence over `include`.
|
|
7380
|
+
*
|
|
7381
|
+
* @example ['foo']
|
|
7382
|
+
*/
|
|
7383
|
+
exclude?: ReadonlyArray<string>;
|
|
7384
|
+
/**
|
|
7385
|
+
* Process only tags matching the `include` filters.
|
|
7386
|
+
*
|
|
7387
|
+
* In case of conflicts, `exclude` takes precedence over `include`.
|
|
7388
|
+
*
|
|
7389
|
+
* @example ['foo']
|
|
7390
|
+
*/
|
|
7391
|
+
include?: ReadonlyArray<string>;
|
|
7392
|
+
};
|
|
7393
|
+
};
|
|
7272
7394
|
/**
|
|
7273
7395
|
* **Requires `path` to start with `https://get.heyapi.dev` or be undefined**
|
|
7274
7396
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hey-api/openapi-ts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.68.1",
|
|
4
4
|
"description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.",
|
|
5
5
|
"homepage": "https://heyapi.dev/",
|
|
6
6
|
"repository": {
|
|
@@ -97,8 +97,8 @@
|
|
|
97
97
|
"ts-node": "10.9.2",
|
|
98
98
|
"tslib": "2.8.1",
|
|
99
99
|
"typescript": "5.8.3",
|
|
100
|
-
"@
|
|
101
|
-
"@
|
|
100
|
+
"@hey-api/client-core": "0.1.4",
|
|
101
|
+
"@config/vite-base": "0.0.1"
|
|
102
102
|
},
|
|
103
103
|
"scripts": {
|
|
104
104
|
"build": "tsup && pnpm check-exports",
|