@hey-api/openapi-ts 0.80.14 → 0.80.16

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 { k as Config, l as Logger, c as IR, U as UserConfig, W as WatchValues } from './types.d-BzJA3GSb.cjs';
1
+ import { l as Config, L as Logger, c as IR, U as UserConfig, W as WatchValues } from './types.d-CFCN8diW.cjs';
2
2
  import { JSONSchema } from '@hey-api/json-schema-ref-parser';
3
3
  import 'semver';
4
4
  import 'node:fs';
@@ -1,4 +1,4 @@
1
- import { k as Config, l as Logger, c as IR, U as UserConfig, W as WatchValues } from './types.d-BzJA3GSb.js';
1
+ import { l as Config, L as Logger, c as IR, U as UserConfig, W as WatchValues } from './types.d-CFCN8diW.js';
2
2
  import { JSONSchema } from '@hey-api/json-schema-ref-parser';
3
3
  import 'semver';
4
4
  import 'node:fs';
package/dist/internal.js CHANGED
@@ -1,2 +1,2 @@
1
- import {createRequire}from'module';export{K as getSpec,J as initConfigs,E as parseOpenApiSpec}from'./chunk-FX46JMLR.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-X4P65NTE.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
2
2
  //# sourceMappingURL=internal.js.map
@@ -2860,12 +2860,20 @@ type Input = {
2860
2860
  */
2861
2861
  organization?: string;
2862
2862
  /**
2863
- * Path to the OpenAPI specification. This can be either local or remote path.
2863
+ * Path to the OpenAPI specification. This can be:
2864
+ * - path
2865
+ * - URL
2866
+ * - API registry shorthand
2867
+ *
2864
2868
  * Both JSON and YAML file formats are supported. You can also pass the parsed
2865
2869
  * object directly if you're fetching the file yourself.
2866
2870
  */
2867
2871
  path?:
2868
- | 'https://get.heyapi.dev/<organization>/<project>'
2872
+ | `https://get.heyapi.dev/${string}/${string}`
2873
+ | `${string}/${string}`
2874
+ | `readme:@${string}/${string}#${string}`
2875
+ | `readme:${string}`
2876
+ | `scalar:@${string}/${string}`
2869
2877
  | (string & {})
2870
2878
  | Record<string, unknown>;
2871
2879
  /**
@@ -6707,14 +6715,22 @@ interface UserConfig$n {
6707
6715
  */
6708
6716
  dryRun?: boolean;
6709
6717
  /**
6710
- * Path to the OpenAPI specification. This can be either local or remote path.
6718
+ * Path to the OpenAPI specification. This can be:
6719
+ * - path
6720
+ * - URL
6721
+ * - API registry shorthand
6722
+ *
6711
6723
  * Both JSON and YAML file formats are supported. You can also pass the parsed
6712
6724
  * object directly if you're fetching the file yourself.
6713
6725
  *
6714
6726
  * Alternatively, you can define a configuration object with more options.
6715
6727
  */
6716
6728
  input:
6717
- | 'https://get.heyapi.dev/<organization>/<project>'
6729
+ | `https://get.heyapi.dev/${string}/${string}`
6730
+ | `${string}/${string}`
6731
+ | `readme:@${string}/${string}#${string}`
6732
+ | `readme:${string}`
6733
+ | `scalar:@${string}/${string}`
6718
6734
  | (string & {})
6719
6735
  | (Record<string, unknown> & { path?: never })
6720
6736
  | Input;
@@ -6843,7 +6859,7 @@ type Config$a = Omit<
6843
6859
  declare class Logger {
6844
6860
  private events;
6845
6861
  private end;
6846
- report(): void;
6862
+ report(print?: boolean): PerformanceMeasure | undefined;
6847
6863
  private reportEvent;
6848
6864
  private start;
6849
6865
  private storeEvent;
@@ -13072,4 +13088,4 @@ interface WatchValues {
13072
13088
  lastValue?: string;
13073
13089
  }
13074
13090
 
13075
- export { type Comments as C, type DefinePlugin as D, type ExpressionTransformer as E, type ImportExportItemObject as I, LegacyIR as L, OpenApi$3 as O, type PluginHandler as P, type StringCase as S, type TypeTransformer as T, type UserConfig$n as U, type WatchValues as W, Plugin as a, type Client$1 as b, IR$1 as c, OpenApiMetaObject as d, OpenApiOperationObject as e, OpenApiParameterObject as f, OpenApiRequestBodyObject as g, OpenApiResponseObject as h, OpenApiSchemaObject as i, Client as j, type Config$a as k, Logger as l, tsNodeToString as t };
13091
+ export { type Comments as C, type DefinePlugin as D, type ExpressionTransformer as E, type ImportExportItemObject as I, Logger as L, OpenApi$3 as O, type PluginHandler as P, type StringCase as S, type TypeTransformer as T, type UserConfig$n as U, type WatchValues as W, Plugin as a, type Client$1 as b, IR$1 as c, OpenApiMetaObject as d, OpenApiOperationObject as e, OpenApiParameterObject as f, OpenApiRequestBodyObject as g, OpenApiResponseObject as h, OpenApiSchemaObject as i, Client as j, LegacyIR as k, type Config$a as l, tsNodeToString as t };
@@ -2860,12 +2860,20 @@ type Input = {
2860
2860
  */
2861
2861
  organization?: string;
2862
2862
  /**
2863
- * Path to the OpenAPI specification. This can be either local or remote path.
2863
+ * Path to the OpenAPI specification. This can be:
2864
+ * - path
2865
+ * - URL
2866
+ * - API registry shorthand
2867
+ *
2864
2868
  * Both JSON and YAML file formats are supported. You can also pass the parsed
2865
2869
  * object directly if you're fetching the file yourself.
2866
2870
  */
2867
2871
  path?:
2868
- | 'https://get.heyapi.dev/<organization>/<project>'
2872
+ | `https://get.heyapi.dev/${string}/${string}`
2873
+ | `${string}/${string}`
2874
+ | `readme:@${string}/${string}#${string}`
2875
+ | `readme:${string}`
2876
+ | `scalar:@${string}/${string}`
2869
2877
  | (string & {})
2870
2878
  | Record<string, unknown>;
2871
2879
  /**
@@ -6707,14 +6715,22 @@ interface UserConfig$n {
6707
6715
  */
6708
6716
  dryRun?: boolean;
6709
6717
  /**
6710
- * Path to the OpenAPI specification. This can be either local or remote path.
6718
+ * Path to the OpenAPI specification. This can be:
6719
+ * - path
6720
+ * - URL
6721
+ * - API registry shorthand
6722
+ *
6711
6723
  * Both JSON and YAML file formats are supported. You can also pass the parsed
6712
6724
  * object directly if you're fetching the file yourself.
6713
6725
  *
6714
6726
  * Alternatively, you can define a configuration object with more options.
6715
6727
  */
6716
6728
  input:
6717
- | 'https://get.heyapi.dev/<organization>/<project>'
6729
+ | `https://get.heyapi.dev/${string}/${string}`
6730
+ | `${string}/${string}`
6731
+ | `readme:@${string}/${string}#${string}`
6732
+ | `readme:${string}`
6733
+ | `scalar:@${string}/${string}`
6718
6734
  | (string & {})
6719
6735
  | (Record<string, unknown> & { path?: never })
6720
6736
  | Input;
@@ -6843,7 +6859,7 @@ type Config$a = Omit<
6843
6859
  declare class Logger {
6844
6860
  private events;
6845
6861
  private end;
6846
- report(): void;
6862
+ report(print?: boolean): PerformanceMeasure | undefined;
6847
6863
  private reportEvent;
6848
6864
  private start;
6849
6865
  private storeEvent;
@@ -13072,4 +13088,4 @@ interface WatchValues {
13072
13088
  lastValue?: string;
13073
13089
  }
13074
13090
 
13075
- export { type Comments as C, type DefinePlugin as D, type ExpressionTransformer as E, type ImportExportItemObject as I, LegacyIR as L, OpenApi$3 as O, type PluginHandler as P, type StringCase as S, type TypeTransformer as T, type UserConfig$n as U, type WatchValues as W, Plugin as a, type Client$1 as b, IR$1 as c, OpenApiMetaObject as d, OpenApiOperationObject as e, OpenApiParameterObject as f, OpenApiRequestBodyObject as g, OpenApiResponseObject as h, OpenApiSchemaObject as i, Client as j, type Config$a as k, Logger as l, tsNodeToString as t };
13091
+ export { type Comments as C, type DefinePlugin as D, type ExpressionTransformer as E, type ImportExportItemObject as I, Logger as L, OpenApi$3 as O, type PluginHandler as P, type StringCase as S, type TypeTransformer as T, type UserConfig$n as U, type WatchValues as W, Plugin as a, type Client$1 as b, IR$1 as c, OpenApiMetaObject as d, OpenApiOperationObject as e, OpenApiParameterObject as f, OpenApiRequestBodyObject as g, OpenApiResponseObject as h, OpenApiSchemaObject as i, Client as j, LegacyIR as k, type Config$a as l, tsNodeToString as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hey-api/openapi-ts",
3
- "version": "0.80.14",
3
+ "version": "0.80.16",
4
4
  "description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.",
5
5
  "homepage": "https://heyapi.dev/",
6
6
  "repository": {