# September 15, 2025

## 2.11.1

**`(fix):`** The `_getAuthorizationHeader` method now returns `Promise<string | undefined>` when oauth is enabled.
This prevents compilation errors in the TypeScript SDK.

## 2.11.0

**`(feat):`** Generate `Request` and `Response` types variations for types that have readonly and/or writeonly properties.
For example, a type `User` will have a `User.Request` type that omits readonly properties and a `User.Response` type that omits writeonly properties.

Set `experimentalGenerateReadWriteOnlyTypes` to `true` in the `config` of your generator configuration to enable this feature.

```ts
import { User, FooClient } from "foo";

const client = new FooClient(...);
const createUser: User.Request = {
  name: "Jon",
  // id: "123", // Error: id is read-only and thus omitted
};
const createdUser: User.Response = await client.createUser(createUser);
// createdUser.id is available here
```