@hey-api/openapi-ts 0.85.1 → 0.85.2

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 { m as Config, b as Logger, d as IR, U as UserConfig, n as Input, W as WatchValues } from './types.d-DIu3K5QP.cjs';
1
+ import { m as Config, b as Logger, d as IR, U as UserConfig, n as Input, W as WatchValues } from './types.d-CGoxqmT9.cjs';
2
2
  import { getResolvedInput } from '@hey-api/json-schema-ref-parser';
3
3
  import 'semver';
4
4
  import '@hey-api/codegen-core';
@@ -1,4 +1,4 @@
1
- import { m as Config, b as Logger, d as IR, U as UserConfig, n as Input, W as WatchValues } from './types.d-DIu3K5QP.js';
1
+ import { m as Config, b as Logger, d as IR, U as UserConfig, n as Input, W as WatchValues } from './types.d-CGoxqmT9.js';
2
2
  import { getResolvedInput } 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,D as parseOpenApiSpec}from'./chunk-SA4IKOSG.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
1
+ import {createRequire}from'module';export{L as getSpec,K as initConfigs,D as parseOpenApiSpec}from'./chunk-F2CVRHGI.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
2
2
  //# sourceMappingURL=internal.js.map
@@ -7773,6 +7773,7 @@ interface Client$1 extends Omit<Client$2, 'operations'> {
7773
7773
 
7774
7774
  type WalkEvents =
7775
7775
  | {
7776
+ _path: ReadonlyArray<string | number>;
7776
7777
  method: keyof IR$1.PathItemObject;
7777
7778
  operation: IR$1.OperationObject;
7778
7779
  path: string;
@@ -7780,27 +7781,32 @@ type WalkEvents =
7780
7781
  }
7781
7782
  | {
7782
7783
  $ref: string;
7784
+ _path: ReadonlyArray<string | number>;
7783
7785
  name: string;
7784
7786
  parameter: IR$1.ParameterObject;
7785
7787
  type: 'parameter';
7786
7788
  }
7787
7789
  | {
7788
7790
  $ref: string;
7791
+ _path: ReadonlyArray<string | number>;
7789
7792
  name: string;
7790
7793
  requestBody: IR$1.RequestBodyObject;
7791
7794
  type: 'requestBody';
7792
7795
  }
7793
7796
  | {
7794
7797
  $ref: string;
7798
+ _path: ReadonlyArray<string | number>;
7795
7799
  name: string;
7796
7800
  schema: IR$1.SchemaObject;
7797
7801
  type: 'schema';
7798
7802
  }
7799
7803
  | {
7804
+ _path: ReadonlyArray<string | number>;
7800
7805
  server: IR$1.ServerObject;
7801
7806
  type: 'server';
7802
7807
  }
7803
7808
  | {
7809
+ _path: ReadonlyArray<string | number>;
7804
7810
  key: string;
7805
7811
  method: keyof IR$1.PathItemObject;
7806
7812
  operation: IR$1.OperationObject;
@@ -8518,8 +8524,13 @@ type UserConfig$c = Plugin.Name<'@hey-api/schemas'> &
8518
8524
 
8519
8525
  type HeyApiSchemasPlugin = DefinePlugin<UserConfig$c, UserConfig$c, IApi$c>;
8520
8526
 
8527
+ declare const createOperationComment: ({ operation, }: {
8528
+ operation: IR$1.OperationObject;
8529
+ }) => Comments | undefined;
8530
+
8521
8531
  type SelectorType$b = 'buildClientParams' | 'class' | 'Client' | 'Composable' | 'formDataBodySerializer' | 'function' | 'Injectable' | 'Options' | 'urlSearchParamsBodySerializer';
8522
8532
  type IApi$b = {
8533
+ createOperationComment: typeof createOperationComment;
8523
8534
  /**
8524
8535
  * @param type Selector type.
8525
8536
  * @param value Depends on `type`:
@@ -7773,6 +7773,7 @@ interface Client$1 extends Omit<Client$2, 'operations'> {
7773
7773
 
7774
7774
  type WalkEvents =
7775
7775
  | {
7776
+ _path: ReadonlyArray<string | number>;
7776
7777
  method: keyof IR$1.PathItemObject;
7777
7778
  operation: IR$1.OperationObject;
7778
7779
  path: string;
@@ -7780,27 +7781,32 @@ type WalkEvents =
7780
7781
  }
7781
7782
  | {
7782
7783
  $ref: string;
7784
+ _path: ReadonlyArray<string | number>;
7783
7785
  name: string;
7784
7786
  parameter: IR$1.ParameterObject;
7785
7787
  type: 'parameter';
7786
7788
  }
7787
7789
  | {
7788
7790
  $ref: string;
7791
+ _path: ReadonlyArray<string | number>;
7789
7792
  name: string;
7790
7793
  requestBody: IR$1.RequestBodyObject;
7791
7794
  type: 'requestBody';
7792
7795
  }
7793
7796
  | {
7794
7797
  $ref: string;
7798
+ _path: ReadonlyArray<string | number>;
7795
7799
  name: string;
7796
7800
  schema: IR$1.SchemaObject;
7797
7801
  type: 'schema';
7798
7802
  }
7799
7803
  | {
7804
+ _path: ReadonlyArray<string | number>;
7800
7805
  server: IR$1.ServerObject;
7801
7806
  type: 'server';
7802
7807
  }
7803
7808
  | {
7809
+ _path: ReadonlyArray<string | number>;
7804
7810
  key: string;
7805
7811
  method: keyof IR$1.PathItemObject;
7806
7812
  operation: IR$1.OperationObject;
@@ -8518,8 +8524,13 @@ type UserConfig$c = Plugin.Name<'@hey-api/schemas'> &
8518
8524
 
8519
8525
  type HeyApiSchemasPlugin = DefinePlugin<UserConfig$c, UserConfig$c, IApi$c>;
8520
8526
 
8527
+ declare const createOperationComment: ({ operation, }: {
8528
+ operation: IR$1.OperationObject;
8529
+ }) => Comments | undefined;
8530
+
8521
8531
  type SelectorType$b = 'buildClientParams' | 'class' | 'Client' | 'Composable' | 'formDataBodySerializer' | 'function' | 'Injectable' | 'Options' | 'urlSearchParamsBodySerializer';
8522
8532
  type IApi$b = {
8533
+ createOperationComment: typeof createOperationComment;
8523
8534
  /**
8524
8535
  * @param type Selector type.
8525
8536
  * @param value Depends on `type`:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hey-api/openapi-ts",
3
- "version": "0.85.1",
3
+ "version": "0.85.2",
4
4
  "description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.",
5
5
  "homepage": "https://heyapi.dev/",
6
6
  "repository": {
@@ -75,7 +75,7 @@
75
75
  "README.md"
76
76
  ],
77
77
  "engines": {
78
- "node": "^18.18.0 || ^20.9.0 || >=22.10.0"
78
+ "node": ">=18.0.0"
79
79
  },
80
80
  "dependencies": {
81
81
  "@hey-api/codegen-core": "^0.2.0",
@@ -104,7 +104,7 @@
104
104
  "@types/express": "4.17.21",
105
105
  "@types/semver": "7.7.1",
106
106
  "axios": "1.8.2",
107
- "cross-spawn": "7.0.5",
107
+ "cross-spawn": "7.0.6",
108
108
  "eslint": "9.17.0",
109
109
  "express": "4.21.0",
110
110
  "glob": "10.4.3",