@hey-api/openapi-ts 0.66.6 → 0.66.7

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-BMmln0DF.cjs';
3
- export { i as initConfigs } from './types.d-BMmln0DF.cjs';
2
+ import { c as Config, I as IR, W as WatchValues } from './types.d-QZmuYCzm.cjs';
3
+ export { i as initConfigs } from './types.d-QZmuYCzm.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-BMmln0DF.js';
3
- export { i as initConfigs } from './types.d-BMmln0DF.js';
2
+ import { c as Config, I as IR, W as WatchValues } from './types.d-QZmuYCzm.js';
3
+ export { i as initConfigs } from './types.d-QZmuYCzm.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-ZM64IWUT.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-AORBOYHR.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
2
2
  //# sourceMappingURL=internal.js.map
@@ -7554,6 +7554,7 @@ declare class TypeScriptFile {
7554
7554
  */
7555
7555
  private _exportFromIndex;
7556
7556
  private _headers;
7557
+ private _id;
7557
7558
  private _identifierCase;
7558
7559
  private _imports;
7559
7560
  private _items;
@@ -7563,13 +7564,19 @@ declare class TypeScriptFile {
7563
7564
  /**
7564
7565
  * Path relative to the client output root.
7565
7566
  */
7566
- constructor({ dir, exportFromIndex, header, identifierCase, name, }: {
7567
+ constructor({ dir, exportFromIndex, header, id, identifierCase, name, }: {
7567
7568
  dir: string;
7568
7569
  /**
7569
7570
  * Should the exports from this file be re-exported in the index barrel file?
7570
7571
  */
7571
7572
  exportFromIndex?: boolean;
7572
7573
  header?: boolean;
7574
+ /**
7575
+ * Unique file ID. Used to generate correct relative paths to the file.
7576
+ * This should be refactored later as it's basically the file name unless
7577
+ * nested inside another folder.
7578
+ */
7579
+ id: string;
7573
7580
  identifierCase?: StringCase;
7574
7581
  name: string;
7575
7582
  });
@@ -7583,6 +7590,7 @@ declare class TypeScriptFile {
7583
7590
  namespace: keyof Namespaces;
7584
7591
  }): Identifier;
7585
7592
  get exportFromIndex(): boolean;
7593
+ get id(): string;
7586
7594
  identifier({ namespace, ...args }: Omit<EnsureUniqueIdentifierData, 'case' | 'namespace'> & {
7587
7595
  namespace: keyof Namespaces;
7588
7596
  }): Identifier;
@@ -7870,7 +7878,7 @@ interface IRSchemaObject
7870
7878
  * contains any read-only or write-only fields. This value controls whether
7871
7879
  * we split the schema into individual schemas for payloads and responses.
7872
7880
  */
7873
- accessScopes?: ReadonlyArray<'read' | 'write'>;
7881
+ accessScopes?: ReadonlyArray<'both' | 'read' | 'write'>;
7874
7882
  /**
7875
7883
  * If type is `object`, `additionalProperties` can be used to either define
7876
7884
  * a schema for properties not included in `properties` or disallow such
@@ -7554,6 +7554,7 @@ declare class TypeScriptFile {
7554
7554
  */
7555
7555
  private _exportFromIndex;
7556
7556
  private _headers;
7557
+ private _id;
7557
7558
  private _identifierCase;
7558
7559
  private _imports;
7559
7560
  private _items;
@@ -7563,13 +7564,19 @@ declare class TypeScriptFile {
7563
7564
  /**
7564
7565
  * Path relative to the client output root.
7565
7566
  */
7566
- constructor({ dir, exportFromIndex, header, identifierCase, name, }: {
7567
+ constructor({ dir, exportFromIndex, header, id, identifierCase, name, }: {
7567
7568
  dir: string;
7568
7569
  /**
7569
7570
  * Should the exports from this file be re-exported in the index barrel file?
7570
7571
  */
7571
7572
  exportFromIndex?: boolean;
7572
7573
  header?: boolean;
7574
+ /**
7575
+ * Unique file ID. Used to generate correct relative paths to the file.
7576
+ * This should be refactored later as it's basically the file name unless
7577
+ * nested inside another folder.
7578
+ */
7579
+ id: string;
7573
7580
  identifierCase?: StringCase;
7574
7581
  name: string;
7575
7582
  });
@@ -7583,6 +7590,7 @@ declare class TypeScriptFile {
7583
7590
  namespace: keyof Namespaces;
7584
7591
  }): Identifier;
7585
7592
  get exportFromIndex(): boolean;
7593
+ get id(): string;
7586
7594
  identifier({ namespace, ...args }: Omit<EnsureUniqueIdentifierData, 'case' | 'namespace'> & {
7587
7595
  namespace: keyof Namespaces;
7588
7596
  }): Identifier;
@@ -7870,7 +7878,7 @@ interface IRSchemaObject
7870
7878
  * contains any read-only or write-only fields. This value controls whether
7871
7879
  * we split the schema into individual schemas for payloads and responses.
7872
7880
  */
7873
- accessScopes?: ReadonlyArray<'read' | 'write'>;
7881
+ accessScopes?: ReadonlyArray<'both' | 'read' | 'write'>;
7874
7882
  /**
7875
7883
  * If type is `object`, `additionalProperties` can be used to either define
7876
7884
  * a schema for properties not included in `properties` or disallow such
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hey-api/openapi-ts",
3
- "version": "0.66.6",
3
+ "version": "0.66.7",
4
4
  "description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.",
5
5
  "homepage": "https://heyapi.dev/",
6
6
  "repository": {