@hey-api/openapi-ts 0.68.0 → 0.69.0

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.
@@ -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-D0iY8bQ2.cjs';
3
- export { i as initConfigs } from './types.d-D0iY8bQ2.cjs';
2
+ import { c as Config, I as IR, W as WatchValues } from './types.d-DaUN4Gwe.cjs';
3
+ export { i as initConfigs } from './types.d-DaUN4Gwe.cjs';
4
4
  import 'node:fs';
5
5
  import 'typescript';
6
6
 
@@ -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-D0iY8bQ2.js';
3
- export { i as initConfigs } from './types.d-D0iY8bQ2.js';
2
+ import { c as Config, I as IR, W as WatchValues } from './types.d-DaUN4Gwe.js';
3
+ export { i as initConfigs } from './types.d-DaUN4Gwe.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-PKFRS7FD.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
1
+ import {createRequire}from'module';export{o as getSpec,x as initConfigs,r as parseOpenApiSpec}from'./chunk-ALAAQACG.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
2
2
  //# sourceMappingURL=internal.js.map
@@ -7293,6 +7293,24 @@ interface Input {
7293
7293
  * @default false
7294
7294
  */
7295
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
+ };
7296
7314
  /**
7297
7315
  * Should we preserve the key order when overwriting your input? This
7298
7316
  * option is disabled by default to improve performance.
@@ -7318,6 +7336,24 @@ interface Input {
7318
7336
  */
7319
7337
  include?: ReadonlyArray<string>;
7320
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
+ };
7321
7357
  schemas?: {
7322
7358
  /**
7323
7359
  * Prevent schemas matching the `exclude` filters from being processed.
@@ -7853,6 +7889,12 @@ declare class IRContext<Spec extends Record<string, any> = any> {
7853
7889
  * to the newly created file.
7854
7890
  */
7855
7891
  createFile(file: ContextFile): TypeScriptFile;
7892
+ /**
7893
+ * Returns a resolved and dereferenced schema from `spec`.
7894
+ */
7895
+ dereference<T>(schema: {
7896
+ $ref: string;
7897
+ }): T;
7856
7898
  /**
7857
7899
  * Returns a specific file by ID from `files`.
7858
7900
  */
@@ -7293,6 +7293,24 @@ interface Input {
7293
7293
  * @default false
7294
7294
  */
7295
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
+ };
7296
7314
  /**
7297
7315
  * Should we preserve the key order when overwriting your input? This
7298
7316
  * option is disabled by default to improve performance.
@@ -7318,6 +7336,24 @@ interface Input {
7318
7336
  */
7319
7337
  include?: ReadonlyArray<string>;
7320
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
+ };
7321
7357
  schemas?: {
7322
7358
  /**
7323
7359
  * Prevent schemas matching the `exclude` filters from being processed.
@@ -7853,6 +7889,12 @@ declare class IRContext<Spec extends Record<string, any> = any> {
7853
7889
  * to the newly created file.
7854
7890
  */
7855
7891
  createFile(file: ContextFile): TypeScriptFile;
7892
+ /**
7893
+ * Returns a resolved and dereferenced schema from `spec`.
7894
+ */
7895
+ dereference<T>(schema: {
7896
+ $ref: string;
7897
+ }): T;
7856
7898
  /**
7857
7899
  * Returns a specific file by ID from `files`.
7858
7900
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hey-api/openapi-ts",
3
- "version": "0.68.0",
3
+ "version": "0.69.0",
4
4
  "description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.",
5
5
  "homepage": "https://heyapi.dev/",
6
6
  "repository": {