@hey-api/openapi-ts 0.83.0 → 0.83.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.
@@ -1,4 +1,4 @@
1
- import { l as Config, L as Logger, c as IR, U as UserConfig, W as WatchValues } from './types.d-CcDC5oij.cjs';
1
+ import { l as Config, L as Logger, c as IR, U as UserConfig, W as WatchValues } from './types.d-CRtO-Prt.cjs';
2
2
  import { JSONSchema } from '@hey-api/json-schema-ref-parser';
3
3
  import 'semver';
4
4
  import '@hey-api/codegen-core';
@@ -1,4 +1,4 @@
1
- import { l as Config, L as Logger, c as IR, U as UserConfig, W as WatchValues } from './types.d-CcDC5oij.js';
1
+ import { l as Config, L as Logger, c as IR, U as UserConfig, W as WatchValues } from './types.d-CRtO-Prt.js';
2
2
  import { JSONSchema } from '@hey-api/json-schema-ref-parser';
3
3
  import 'semver';
4
4
  import '@hey-api/codegen-core';
package/dist/internal.js CHANGED
@@ -1,2 +1,2 @@
1
- import {createRequire}from'module';export{L as getSpec,K as initConfigs,F as parseOpenApiSpec}from'./chunk-XDXACE7V.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
1
+ import {createRequire}from'module';export{L as getSpec,K as initConfigs,F as parseOpenApiSpec}from'./chunk-3AYBIZLR.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
2
2
  //# sourceMappingURL=internal.js.map
@@ -8880,6 +8880,16 @@ type UserConfig$9 = Plugin.Name<'@hey-api/typescript'> & {
8880
8880
  */
8881
8881
  response?: StringName;
8882
8882
  };
8883
+ /**
8884
+ * The top type to use for untyped or unspecified schema values.
8885
+ *
8886
+ * Can be:
8887
+ * - `unknown` (default): safe top type, you must narrow before use
8888
+ * - `any`: disables type checking, can be used anywhere
8889
+ *
8890
+ * @default 'unknown'
8891
+ */
8892
+ topType?: 'any' | 'unknown';
8883
8893
  /**
8884
8894
  * Configuration for webhook-specific types.
8885
8895
  *
@@ -9110,6 +9120,12 @@ type Config$8 = Plugin.Name<'@hey-api/typescript'> & {
9110
9120
  */
9111
9121
  response: StringName;
9112
9122
  };
9123
+ /**
9124
+ * The top type to use for untyped or unspecified schema values.
9125
+ *
9126
+ * @default 'unknown'
9127
+ */
9128
+ topType: 'any' | 'unknown';
9113
9129
  /**
9114
9130
  * Configuration for webhook-specific types.
9115
9131
  *
@@ -8880,6 +8880,16 @@ type UserConfig$9 = Plugin.Name<'@hey-api/typescript'> & {
8880
8880
  */
8881
8881
  response?: StringName;
8882
8882
  };
8883
+ /**
8884
+ * The top type to use for untyped or unspecified schema values.
8885
+ *
8886
+ * Can be:
8887
+ * - `unknown` (default): safe top type, you must narrow before use
8888
+ * - `any`: disables type checking, can be used anywhere
8889
+ *
8890
+ * @default 'unknown'
8891
+ */
8892
+ topType?: 'any' | 'unknown';
8883
8893
  /**
8884
8894
  * Configuration for webhook-specific types.
8885
8895
  *
@@ -9110,6 +9120,12 @@ type Config$8 = Plugin.Name<'@hey-api/typescript'> & {
9110
9120
  */
9111
9121
  response: StringName;
9112
9122
  };
9123
+ /**
9124
+ * The top type to use for untyped or unspecified schema values.
9125
+ *
9126
+ * @default 'unknown'
9127
+ */
9128
+ topType: 'any' | 'unknown';
9113
9129
  /**
9114
9130
  * Configuration for webhook-specific types.
9115
9131
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hey-api/openapi-ts",
3
- "version": "0.83.0",
3
+ "version": "0.83.1",
4
4
  "description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.",
5
5
  "homepage": "https://heyapi.dev/",
6
6
  "repository": {
@@ -70,7 +70,8 @@
70
70
  "files": [
71
71
  "bin",
72
72
  "dist",
73
- "LICENSE.md"
73
+ "LICENSE.md",
74
+ "README.md"
74
75
  ],
75
76
  "engines": {
76
77
  "node": "^18.18.0 || ^20.9.0 || >=22.10.0"