0.43.1

(fix): When noSerdeLayer is enabled, streaming endpoints were failing to compile because they assumed that the serialization layer existed. This is now fixed.

0.43.0

(feat): Generate inline types for inline schemas by setting enableInlineTypes to true in the generator config. When enabled, the inline schemas will be generated as nested types in TypeScript. This results in cleaner type names and a more intuitive developer experience.

Before:

1// MyRootType.ts
2import * as MySdk from "...";
3
4export interface MyRootType {
5 foo: MySdk.MyRootTypeFoo;
6}
7
8// MyRootTypeFoo.ts
9import * as MySdk from "...";
10
11export interface MyRootTypeFoo {
12 bar: MySdk.MyRootTypeFooBar;
13}
14
15// MyRootTypeFooBar.ts
16import * as MySdk from "...";
17
18export interface MyRootTypeFooBar {}

After:

1// MyRootType.ts
2import * as MySdk from "...";
3
4export interface MyRootType {
5 foo: MyRootType.Foo;
6}
7
8export namespace MyRootType {
9 export interface Foo {
10 bar: Foo.Bar;
11 }
12
13 export namespace Foo {
14 export interface Bar {}
15 }
16}

Now users can get the deep nested Bar type as follows:

1import { MyRootType } from MySdk;
2
3const bar: MyRootType.Foo.Bar = {};