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.

1import { User, FooClient } from "foo";
2
3const client = new FooClient(...);
4const createUser: User.Request = {
5 name: "Jon",
6 // id: "123", // Error: id is read-only and thus omitted
7};
8const createdUser: User.Response = await client.createUser(createUser);
9// createdUser.id is available here