···11-# @hey-api/client-next
22-33-## 0.5.1
44-55-### Patch Changes
66-77-- [#2165](https://github.com/hey-api/openapi-ts/pull/2165) [`f23f3ae`](https://github.com/hey-api/openapi-ts/commit/f23f3ae874385e758eb8d43bb4e274c9858a4e40) Thanks [@mrlubos](https://github.com/mrlubos)! - fix(client): do not serialize path param name in url
88-99-## 0.5.0
1010-1111-### Minor Changes
1212-1313-- [#2148](https://github.com/hey-api/openapi-ts/pull/2148) [`10d2e03`](https://github.com/hey-api/openapi-ts/commit/10d2e03b8295e4e887fab8d023aa823699efbae8) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: export `buildClientParams` function
1414-1515-## 0.4.0
1616-1717-### Minor Changes
1818-1919-- [#2094](https://github.com/hey-api/openapi-ts/pull/2094) [`8152aaf`](https://github.com/hey-api/openapi-ts/commit/8152aaf4892c48b79fd3dc486eb3c0ea333dc3e6) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: accept responses/errors map instead of union
2020-2121- **BREAKING**: Update `@hey-api/openapi-ts` to the latest version.
2222-2323-## 0.3.2
2424-2525-### Patch Changes
2626-2727-- [#2029](https://github.com/hey-api/openapi-ts/pull/2029) [`1f99066`](https://github.com/hey-api/openapi-ts/commit/1f99066efbb2d0e6b9e3710c701293c2cc09d65e) Thanks [@henry-encord](https://github.com/henry-encord)! - feat: support referencing interceptors by index
2828-2929-## 0.3.1
3030-3131-### Patch Changes
3232-3333-- [#2039](https://github.com/hey-api/openapi-ts/pull/2039) [`565e0b8`](https://github.com/hey-api/openapi-ts/commit/565e0b89fbab4556ecdc63dfe08250942681140e) Thanks [@Le0Developer](https://github.com/Le0Developer)! - fix(clients): fix query string encoding with empty lists/objects
3434-3535-## 0.3.0
3636-3737-### Minor Changes
3838-3939-- [#1889](https://github.com/hey-api/openapi-ts/pull/1889) [`67c385b`](https://github.com/hey-api/openapi-ts/commit/67c385bf6289a79726b0cdd85fd81ca501cf2248) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: add @hey-api/openapi-ts to peer dependencies
4040-4141-## 0.2.4
4242-4343-### Patch Changes
4444-4545-- [#1850](https://github.com/hey-api/openapi-ts/pull/1850) [`fe43b88`](https://github.com/hey-api/openapi-ts/commit/fe43b889c20a2001f56e259f93f64851a1caa1d1) Thanks [@kelnos](https://github.com/kelnos)! - feat: add support for cookies auth
4646-4747-## 0.2.3
4848-4949-### Patch Changes
5050-5151-- [#1774](https://github.com/hey-api/openapi-ts/pull/1774) [`c0b36b9`](https://github.com/hey-api/openapi-ts/commit/c0b36b95645d484034c3af145c5554867568979b) Thanks [@mrlubos](https://github.com/mrlubos)! - docs: announce Hey API platform
5252-5353-## 0.2.2
5454-5555-### Patch Changes
5656-5757-- [#1753](https://github.com/hey-api/openapi-ts/pull/1753) [`b8cc9f8`](https://github.com/hey-api/openapi-ts/commit/b8cc9f8a5eaf4f4ff345abc49c14c6b96744c2ea) Thanks [@LinuCC](https://github.com/LinuCC)! - fix: dropping Content-Type header with falsey but valid json body
5858-5959-## 0.2.1
6060-6161-### Patch Changes
6262-6363-- [#1674](https://github.com/hey-api/openapi-ts/pull/1674) [`7f0f4a7`](https://github.com/hey-api/openapi-ts/commit/7f0f4a76b06c8fafb33581b522faf8efc6fd85ac) Thanks [@ale18V](https://github.com/ale18V)! - Return a string from urlSearchParamsBodySerializer instead of a URLSearchParams object.
6464- This is due to some runtimes not being able to handle the URLSearchParams object as fetch body.
6565-6666-## 0.2.0
6767-6868-### Minor Changes
6969-7070-- [#1661](https://github.com/hey-api/openapi-ts/pull/1661) [`bb6d46a`](https://github.com/hey-api/openapi-ts/commit/bb6d46ae119ce4e7e3a2ab3fded74ac4fb4cdff2) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: make createConfig, CreateClientConfig, and Config accept ClientOptions generic
7171-7272- ### Added `ClientOptions` interface
7373-7474- The `Config` interface now accepts an optional generic extending `ClientOptions` instead of `boolean` type `ThrowOnError`.
7575-7676- ```ts
7777- type Foo = Config<false>; // [!code --]
7878- type Foo = Config<{ throwOnError: false }>; // [!code ++]
7979- ```
8080-8181-## 0.1.0
8282-8383-### Minor Changes
8484-8585-- [#1637](https://github.com/hey-api/openapi-ts/pull/1637) [`2dc380e`](https://github.com/hey-api/openapi-ts/commit/2dc380eabc17c723654beb04ecd7bce6d33d3b49) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: initial release
-21
packages/client-next/LICENSE.md
···11-MIT License
22-33-Copyright (c) Hey API
44-55-Permission is hereby granted, free of charge, to any person obtaining a copy
66-of this software and associated documentation files (the "Software"), to deal
77-in the Software without restriction, including without limitation the rights
88-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99-copies of the Software, and to permit persons to whom the Software is
1010-furnished to do so, subject to the following conditions:
1111-1212-The above copyright notice and this permission notice shall be included in all
1313-copies or substantial portions of the Software.
1414-1515-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121-SOFTWARE.
-102
packages/client-next/README.md
···11-<div align="center">
22- <img alt="Hey API logo" height="150" src="https://heyapi.dev/images/logo-300w.png" width="150">
33- <h1 align="center"><b>Next.js Client</b></h1>
44- <p align="center">🚀 Next.js client for `@hey-api/openapi-ts` codegen.</p>
55-</div>
66-77-<!-- TODO: Add working Next.js example -->
88-<!-- [Live demo](https://stackblitz.com/edit/hey-api-client-fetch-example?file=openapi-ts.config.ts,src%2Fclient%2Fschemas.gen.ts,src%2Fclient%2Fsdk.gen.ts,src%2Fclient%2Ftypes.gen.ts,src%2FApp.tsx) -->
99-1010-## Features
1111-1212-- seamless integration with `@hey-api/openapi-ts` ecosystem
1313-- type-safe response data and errors
1414-- response data validation and transformation
1515-- access to the original request and response
1616-- granular request and response customization options
1717-- minimal learning curve thanks to extending the underlying technology
1818-- support bundling inside the generated output
1919-- [platform](https://heyapi.dev/openapi-ts/integrations) for automating codegen builds
2020-2121-## Dashboard
2222-2323-Hey API is an ecosystem of products helping you build better APIs. Superpower your codegen and APIs with our platform.
2424-2525-[Sign In](https://app.heyapi.dev) to Hey API platform.
2626-2727-## Documentation
2828-2929-Please visit our [website](https://heyapi.dev) for documentation, guides, migrating, and more.
3030-3131-## Sponsors
3232-3333-Love Hey API? Become our [sponsor](https://github.com/sponsors/hey-api).
3434-3535-<h3 align="center">Gold</h3>
3636-3737-<table align="center" style="justify-content: center;align-items: center;display: flex;">
3838- <tbody>
3939- <tr>
4040- <td align="center">
4141- <p></p>
4242- <p>
4343- <a href="https://kutt.it/pkEZyc" target="_blank">
4444- <picture height="50px">
4545- <source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/images/stainless-logo-wordmark-480w.jpeg">
4646- <img alt="Stainless logo" height="50px" src="https://heyapi.dev/images/stainless-logo-wordmark-480w.jpeg">
4747- </picture>
4848- </a>
4949- <br/>
5050- Generate best-in-class SDKs.
5151- <br/>
5252- <a href="https://kutt.it/pkEZyc" style="text-decoration:none;" target="_blank">
5353- stainless.com
5454- </a>
5555- </p>
5656- <p></p>
5757- </td>
5858- </tr>
5959- </tbody>
6060-</table>
6161-6262-<h3 align="center">Silver</h3>
6363-6464-<table align="center" style="justify-content: center;align-items: center;display: flex;">
6565- <tbody>
6666- <tr>
6767- <td align="center">
6868- <a href="https://kutt.it/skQUVd" target="_blank">
6969- <picture height="40px">
7070- <source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/images/scalar-logo-wordmark-480w.jpeg">
7171- <img alt="Scalar logo" height="40px" src="https://heyapi.dev/images/scalar-logo-wordmark-480w.jpeg">
7272- </picture>
7373- </a>
7474- <br/>
7575- <a href="https://kutt.it/skQUVd" style="text-decoration:none;" target="_blank">
7676- scalar.com
7777- </a>
7878- </td>
7979- </tr>
8080- </tbody>
8181-</table>
8282-8383-<h3 align="center">Bronze</h3>
8484-8585-<table align="center" style="justify-content: center;align-items: center;display: flex;">
8686- <tbody>
8787- <tr>
8888- <td align="center">
8989- <a href="https://kutt.it/YpaKsX" target="_blank">
9090- <picture height="34px">
9191- <source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/images/kinde-logo-wordmark-dark-480w.webp">
9292- <img alt="Kinde logo" height="34px" src="https://heyapi.dev/images/kinde-logo-wordmark-480w.jpeg">
9393- </picture>
9494- </a>
9595- </td>
9696- </tr>
9797- </tbody>
9898-</table>
9999-100100-## Migration Guides
101101-102102-[OpenAPI Typescript Codegen](https://heyapi.dev/openapi-ts/migrating#openapi-typescript-codegen)
···11+import type { Auth } from '../../client-core/bundle/auth';
12import type {
22- Auth,
33 Client as CoreClient,
44 Config as CoreConfig,
55-} from '@hey-api/client-core';
66-55+} from '../../client-core/bundle/types';
76import type { Middleware } from './utils';
8798export interface Config<T extends ClientOptions = ClientOptions>