You are reading the documentation for connect v1, which is no longer the latest version. Switch to connect v2
Metadata
Metadata is a record with string keys and arbitrary values.
export type Metadata = {
[key: string]: any;
alokai?: never;
};