@hey-api/openapi-ts 0.88.0 → 0.88.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.
- package/README.md +19 -2
- package/bin/run.js +2 -2
- package/dist/clients/core/serverSentEvents.ts +2 -0
- package/dist/{config-DUT764Db.d.cts → config-C5xWXzTz.d.cts} +1 -1
- package/dist/{config-DCoXG8pO.d.ts → config-eqVtXEeO.d.mts} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/{index.d.ts → index.d.mts} +2 -2
- package/dist/index.mjs +1 -0
- package/dist/internal.cjs +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/{internal.d.ts → internal.d.mts} +2 -2
- package/dist/internal.mjs +1 -0
- package/dist/{openApi-4Fl0M8gJ.js → openApi-DlyxIg9f.mjs} +6 -6
- package/dist/openApi-DlyxIg9f.mjs.map +1 -0
- package/dist/openApi-DszQAwQH.cjs +17 -0
- package/dist/openApi-DszQAwQH.cjs.map +1 -0
- package/dist/run.cjs +1 -1
- package/dist/run.cjs.map +1 -1
- package/dist/run.mjs +3 -0
- package/dist/run.mjs.map +1 -0
- package/dist/src-9qIIwEzI.cjs +19 -0
- package/dist/{src-D3LtFAXw.cjs.map → src-9qIIwEzI.cjs.map} +1 -1
- package/dist/src-BNSjnWaN.mjs +11 -0
- package/dist/src-BNSjnWaN.mjs.map +1 -0
- package/package.json +8 -8
- package/dist/index.js +0 -1
- package/dist/internal.js +0 -1
- package/dist/openApi-4Fl0M8gJ.js.map +0 -1
- package/dist/openApi-DGc8EfFq.cjs +0 -17
- package/dist/openApi-DGc8EfFq.cjs.map +0 -1
- package/dist/run.js +0 -3
- package/dist/run.js.map +0 -1
- package/dist/src-C88NdVoQ.js +0 -11
- package/dist/src-C88NdVoQ.js.map +0 -1
- package/dist/src-D3LtFAXw.cjs +0 -19
- /package/dist/{run.d.ts → run.d.mts} +0 -0
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<img alt="
|
|
2
|
+
<img alt="Hey API presents openapi-ts" height="214" src="https://heyapi.dev/images/openapi-ts-hero-640w.png" width="438">
|
|
3
3
|
<h1><b>OpenAPI TypeScript</b></h1>
|
|
4
4
|
<p><em>“OpenAPI codegen that just works.”</em><br/><sub>— Guillermo Rauch, CEO of Vercel</sub></p>
|
|
5
5
|
</div>
|
|
@@ -64,7 +64,7 @@ Help Hey API stay around for the long haul by becoming a [sponsor](https://githu
|
|
|
64
64
|
</picture>
|
|
65
65
|
</a>
|
|
66
66
|
<br/>
|
|
67
|
-
Best-in-class
|
|
67
|
+
Best-in-class developer interfaces for your API.
|
|
68
68
|
<br/>
|
|
69
69
|
<a href="https://kutt.it/pkEZyc" style="text-decoration:none;" target="_blank">
|
|
70
70
|
stainless.com
|
|
@@ -72,6 +72,23 @@ Help Hey API stay around for the long haul by becoming a [sponsor](https://githu
|
|
|
72
72
|
</p>
|
|
73
73
|
<p></p>
|
|
74
74
|
</td>
|
|
75
|
+
<td align="center">
|
|
76
|
+
<p></p>
|
|
77
|
+
<p>
|
|
78
|
+
<a href="https://kutt.it/QM9Q2N" target="_blank">
|
|
79
|
+
<picture height="50px">
|
|
80
|
+
<img alt="Opencode logo" height="50px" src="https://heyapi.dev/opencode-logo-wordmark.svg">
|
|
81
|
+
</picture>
|
|
82
|
+
</a>
|
|
83
|
+
<br/>
|
|
84
|
+
The open source coding agent.
|
|
85
|
+
<br/>
|
|
86
|
+
<a href="https://kutt.it/QM9Q2N" style="text-decoration:none;" target="_blank">
|
|
87
|
+
opencode.ai
|
|
88
|
+
</a>
|
|
89
|
+
</p>
|
|
90
|
+
<p></p>
|
|
91
|
+
</td>
|
|
75
92
|
</tr>
|
|
76
93
|
</tbody>
|
|
77
94
|
</table>
|
package/bin/run.js
CHANGED
|
@@ -5,10 +5,10 @@ import path from 'node:path';
|
|
|
5
5
|
import { fileURLToPath } from 'node:url';
|
|
6
6
|
|
|
7
7
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
8
|
-
const target = path.join(__dirname, '..', 'dist', 'run.
|
|
8
|
+
const target = path.join(__dirname, '..', 'dist', 'run.mjs');
|
|
9
9
|
|
|
10
10
|
if (!fs.existsSync(target)) {
|
|
11
|
-
console.error('openapi-ts not built (expect dist/run.
|
|
11
|
+
console.error('openapi-ts not built (expect dist/run.mjs)');
|
|
12
12
|
process.exit(1);
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -167,6 +167,8 @@ export const createSseClient = <TData = unknown>({
|
|
|
167
167
|
const { done, value } = await reader.read();
|
|
168
168
|
if (done) break;
|
|
169
169
|
buffer += value;
|
|
170
|
+
// Normalize line endings: CRLF -> LF, then CR -> LF
|
|
171
|
+
buffer = buffer.replace(/\r\n/g, '\n').replace(/\r/g, '\n');
|
|
170
172
|
|
|
171
173
|
const chunks = buffer.split('\n\n');
|
|
172
174
|
buffer = chunks.pop() ?? '';
|
|
@@ -15385,4 +15385,4 @@ type Config = Omit<Required<UserConfig>, 'input' | 'logs' | 'output' | 'parser'
|
|
|
15385
15385
|
};
|
|
15386
15386
|
//#endregion
|
|
15387
15387
|
export { PluginHandler as C, MaybeArray as D, LazyOrAsync as E, Client as S, IR$1 as T, $ as _, Plugin as a, TsDsl as b, OpenApiOperationObject as c, OpenApiResponseObject as d, OpenApiSchemaObject as f, ExpressionTransformer as g, TypeTransformer as h, DefinePlugin as i, OpenApiParameterObject as l, Logger as m, UserConfig as n, OpenApi as o, Context as p, Input as r, OpenApiMetaObject as s, Config as t, OpenApiRequestBodyObject as u, DollarTsDsl as v, StringCase as w, TypeTsDsl as x, MaybeTsDsl as y };
|
|
15388
|
-
//# sourceMappingURL=config-
|
|
15388
|
+
//# sourceMappingURL=config-C5xWXzTz.d.cts.map
|
|
@@ -16256,4 +16256,4 @@ type Config = Omit<Required<UserConfig>, 'input' | 'logs' | 'output' | 'parser'
|
|
|
16256
16256
|
};
|
|
16257
16257
|
//#endregion
|
|
16258
16258
|
export { StringCase as A, PluginHandler as C, Client$5 as D, Client$4 as E, LazyOrAsync as M, MaybeArray as N, Client$6 as O, Client as S, Client$3 as T, $ as _, Plugin as a, TsDsl as b, OpenApiOperationObject as c, OpenApiResponseObject as d, OpenApiSchemaObject as f, ExpressionTransformer as g, TypeTransformer as h, DefinePlugin as i, IR$1 as j, Client$7 as k, OpenApiParameterObject as l, Logger as m, UserConfig as n, OpenApi as o, Context as p, Input as r, OpenApiMetaObject as s, Config as t, OpenApiRequestBodyObject as u, DollarTsDsl as v, Client$2 as w, TypeTsDsl as x, MaybeTsDsl as y };
|
|
16259
|
-
//# sourceMappingURL=config-
|
|
16259
|
+
//# sourceMappingURL=config-eqVtXEeO.d.mts.map
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./openApi-
|
|
1
|
+
const e=require(`./openApi-DszQAwQH.cjs`),t=require(`./src-9qIIwEzI.cjs`);exports.$=e.u,exports.Logger=t.i,exports.TsDsl=e.d,exports.clientDefaultConfig=e.c,exports.clientDefaultMeta=e.l,exports.clientPluginHandler=e.o,exports.createClient=t.r,exports.defaultPaginationKeywords=e.h,exports.defaultPlugins=e.a,exports.defineConfig=t.t,exports.definePluginConfig=e.m,exports.utils=t.n;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as PluginHandler, D as MaybeArray, E as LazyOrAsync, S as Client$2, T as IR, _ as $, a as Plugin, b as TsDsl, c as OpenApiOperationObject, d as OpenApiResponseObject, f as OpenApiSchemaObject, g as ExpressionTransformer, h as TypeTransformer, i as DefinePlugin, l as OpenApiParameterObject, m as Logger, n as UserConfig, o as OpenApi, p as Context, s as OpenApiMetaObject, u as OpenApiRequestBodyObject, v as DollarTsDsl, w as StringCase, x as TypeTsDsl, y as MaybeTsDsl } from "./config-
|
|
1
|
+
import { C as PluginHandler, D as MaybeArray, E as LazyOrAsync, S as Client$2, T as IR, _ as $, a as Plugin, b as TsDsl, c as OpenApiOperationObject, d as OpenApiResponseObject, f as OpenApiSchemaObject, g as ExpressionTransformer, h as TypeTransformer, i as DefinePlugin, l as OpenApiParameterObject, m as Logger, n as UserConfig, o as OpenApi, p as Context, s as OpenApiMetaObject, u as OpenApiRequestBodyObject, v as DollarTsDsl, w as StringCase, x as TypeTsDsl, y as MaybeTsDsl } from "./config-C5xWXzTz.cjs";
|
|
2
2
|
import { HttpClient, HttpErrorResponse, HttpHeaders, HttpRequest, HttpResponse } from "@angular/common/http";
|
|
3
3
|
import { Injector } from "@angular/core";
|
|
4
4
|
import { AxiosError, AxiosInstance, AxiosRequestHeaders, AxiosResponse, AxiosStatic, CreateAxiosDefaults } from "axios";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as StringCase, C as PluginHandler, D as Client$3, E as Client$4, M as LazyOrAsync, N as MaybeArray, O as Client$1, S as Client$2, T as Client$5, _ as $, a as Plugin, b as TsDsl, c as OpenApiOperationObject, d as OpenApiResponseObject, f as OpenApiSchemaObject, g as ExpressionTransformer, h as TypeTransformer, i as DefinePlugin, j as IR, k as Client, l as OpenApiParameterObject, m as Logger, n as UserConfig, o as OpenApi, p as Context, s as OpenApiMetaObject, u as OpenApiRequestBodyObject, v as DollarTsDsl, w as Client$6, x as TypeTsDsl, y as MaybeTsDsl } from "./config-
|
|
1
|
+
import { A as StringCase, C as PluginHandler, D as Client$3, E as Client$4, M as LazyOrAsync, N as MaybeArray, O as Client$1, S as Client$2, T as Client$5, _ as $, a as Plugin, b as TsDsl, c as OpenApiOperationObject, d as OpenApiResponseObject, f as OpenApiSchemaObject, g as ExpressionTransformer, h as TypeTransformer, i as DefinePlugin, j as IR, k as Client, l as OpenApiParameterObject, m as Logger, n as UserConfig, o as OpenApi, p as Context, s as OpenApiMetaObject, u as OpenApiRequestBodyObject, v as DollarTsDsl, w as Client$6, x as TypeTsDsl, y as MaybeTsDsl } from "./config-eqVtXEeO.mjs";
|
|
2
2
|
import "@hey-api/codegen-core";
|
|
3
3
|
|
|
4
4
|
//#region src/generate.d.ts
|
|
@@ -98,4 +98,4 @@ declare module '@hey-api/codegen-core' {
|
|
|
98
98
|
declare const defineConfig: <T extends MaybeArray<UserConfig>>(config: LazyOrAsync<T>) => Promise<T>;
|
|
99
99
|
//#endregion
|
|
100
100
|
export { $, type Client as AngularClient, type Client$1 as AxiosClient, type Client$2 as Client, type DefinePlugin, DollarTsDsl, type ExpressionTransformer, type Client$3 as FetchClient, type IR, Logger, MaybeTsDsl, type Client$4 as NextClient, type Client$5 as NuxtClient, type Client$6 as OfetchClient, type OpenApi, type OpenApiMetaObject, type OpenApiOperationObject, type OpenApiParameterObject, type OpenApiRequestBodyObject, type OpenApiResponseObject, type OpenApiSchemaObject, type Plugin, TsDsl, type TypeTransformer, TypeTsDsl, type UserConfig, clientDefaultConfig, clientDefaultMeta, clientPluginHandler, createClient, defaultPaginationKeywords, defaultPlugins, defineConfig, definePluginConfig, utils };
|
|
101
|
-
//# sourceMappingURL=index.d.
|
|
101
|
+
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,c as t,d as n,h as r,l as i,m as a,o,u as s}from"./openApi-DlyxIg9f.mjs";import{i as c,n as l,r as u,t as d}from"./src-BNSjnWaN.mjs";export{s as $,c as Logger,n as TsDsl,t as clientDefaultConfig,i as clientDefaultMeta,o as clientPluginHandler,u as createClient,r as defaultPaginationKeywords,e as defaultPlugins,d as defineConfig,a as definePluginConfig,l as utils};
|
package/dist/internal.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./openApi-
|
|
1
|
+
const e=require(`./openApi-DszQAwQH.cjs`);exports.getSpec=e.r,exports.initConfigs=e.i,exports.parseOpenApiSpec=e.t;
|
package/dist/internal.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as Logger, n as UserConfig, p as Context, r as Input, t as Config } from "./config-
|
|
1
|
+
import { m as Logger, n as UserConfig, p as Context, r as Input, t as Config } from "./config-C5xWXzTz.cjs";
|
|
2
2
|
import { getResolvedInput } from "@hey-api/json-schema-ref-parser";
|
|
3
3
|
|
|
4
4
|
//#region src/config/init.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as Logger, n as UserConfig, p as Context, r as Input, t as Config } from "./config-
|
|
1
|
+
import { m as Logger, n as UserConfig, p as Context, r as Input, t as Config } from "./config-eqVtXEeO.mjs";
|
|
2
2
|
import { getResolvedInput } from "@hey-api/json-schema-ref-parser";
|
|
3
3
|
|
|
4
4
|
//#region src/config/init.d.ts
|
|
@@ -88,4 +88,4 @@ declare const parseOpenApiSpec: ({
|
|
|
88
88
|
}) => Context;
|
|
89
89
|
//#endregion
|
|
90
90
|
export { getSpec, initConfigs, parseOpenApiSpec };
|
|
91
|
-
//# sourceMappingURL=internal.d.
|
|
91
|
+
//# sourceMappingURL=internal.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,r as t,t as n}from"./openApi-DlyxIg9f.mjs";export{t as getSpec,e as initConfigs,n as parseOpenApiSpec};
|