# zidane-ui/models/headless

Import: `import { … } from 'zidane-ui/models/headless'`. Source: [ui/src/models/headless/index.ts](https://github.com/Tahul/zidane/blob/main/ui/src/models/headless/index.ts).

## Functions

### `compactWindow`

Function.

`zidane-ui/models/headless`: the model catalog, React-free. The rows a host
lists (`ModelCatalogRow`, `ComposerModelEntry`, `ImageModelRow`) and a pick
(`ModelPickRef`), what a host offers of its catalogs (`ComposerModels`), the
rules a picker lists, searches and edits a chain by, and the names a model
goes by (`modelNamesOf`). The composer's pickers and the model rows of
Settings both read it.

```ts
function compactWindow(tokens: number): string
```

**Parameters**

- `tokens` (`number`): A context window size in tokens.

**Returns** `string`

Source: [ui/src/models/headless/catalog.ts:41](https://github.com/Tahul/zidane/blob/main/ui/src/models/headless/catalog.ts#L41)

### `groupKeyOf`

Function.

`zidane-ui/models/headless`: the model catalog, React-free. The rows a host
lists (`ModelCatalogRow`, `ComposerModelEntry`, `ImageModelRow`) and a pick
(`ModelPickRef`), what a host offers of its catalogs (`ComposerModels`), the
rules a picker lists, searches and edits a chain by, and the names a model
goes by (`modelNamesOf`). The composer's pickers and the model rows of
Settings both read it.

```ts
function groupKeyOf(entry: Pick<ModelCatalogRow, 'providerKey' | 'account'>): string
```

**Parameters**

- `entry` (`Pick<ModelCatalogRow, 'providerKey' | 'account'>`): A row, or any object with its `providerKey` and `account`.

**Returns** `string`

Source: [ui/src/models/headless/catalog.ts:90](https://github.com/Tahul/zidane/blob/main/ui/src/models/headless/catalog.ts#L90)

### `lineupKeyOf`

Function.

`zidane-ui/models/headless`: the model catalog, React-free. The rows a host
lists (`ModelCatalogRow`, `ComposerModelEntry`, `ImageModelRow`) and a pick
(`ModelPickRef`), what a host offers of its catalogs (`ComposerModels`), the
rules a picker lists, searches and edits a chain by, and the names a model
goes by (`modelNamesOf`). The composer's pickers and the model rows of
Settings both read it.

```ts
function lineupKeyOf(entry: ModelCatalogRow): string
```

**Parameters**

- `entry` (`ModelCatalogRow`): The catalog row.

**Returns** `string`

Source: [ui/src/models/headless/catalog.ts:81](https://github.com/Tahul/zidane/blob/main/ui/src/models/headless/catalog.ts#L81)

### `modelLineup`

Function.

`zidane-ui/models/headless`: the model catalog, React-free. The rows a host
lists (`ModelCatalogRow`, `ComposerModelEntry`, `ImageModelRow`) and a pick
(`ModelPickRef`), what a host offers of its catalogs (`ComposerModels`), the
rules a picker lists, searches and edits a chain by, and the names a model
goes by (`modelNamesOf`). The composer's pickers and the model rows of
Settings both read it.

```ts
function modelLineup(catalog: readonly ModelCatalogRow[]): ReadonlySet<string>
```

**Parameters**

- `catalog` (`readonly ModelCatalogRow[]`): The catalog rows. The result is cached per array.

**Returns** `ReadonlySet<string>`

Source: [ui/src/models/headless/catalog.ts:28](https://github.com/Tahul/zidane/blob/main/ui/src/models/headless/catalog.ts#L28)

### `modelNameOf`

Function.

`zidane-ui/models/headless`: the model catalog, React-free. The rows a host
lists (`ModelCatalogRow`, `ComposerModelEntry`, `ImageModelRow`) and a pick
(`ModelPickRef`), what a host offers of its catalogs (`ComposerModels`), the
rules a picker lists, searches and edits a chain by, and the names a model
goes by (`modelNamesOf`). The composer's pickers and the model rows of
Settings both read it.

```ts
function modelNameOf(
  catalog: readonly ModelCatalogRow[] | null,
  modelId: string,
  providerKey?: string | null,
): string
```

**Parameters**

- `catalog` (`readonly ModelCatalogRow[] | null`): The catalog rows, or `null` while it loads.
- `modelId` (`string`): The model id to name.
- `providerKey?` (`string | null`, default `null`): Limits the lookup to one provider. Defaults to `null`, which matches any provider.

**Returns** `string`

Source: [ui/src/models/headless/catalog.ts:111](https://github.com/Tahul/zidane/blob/main/ui/src/models/headless/catalog.ts#L111)

### `modelNamesOf`

Function.

The one [`ModelNamesStore`](https://zidane.si/docs/reference/ui-models-headless.md#ModelNamesStore) over a host's `models` (this computer's catalog, and its providers when listed).
Without `models`, every model keeps its readable id.

```ts
function modelNamesOf(models: ComposerModels | undefined): ModelNamesStore
```

**Parameters**

- `models` (`ComposerModels | undefined`): The host's member.

**Returns** `ModelNamesStore`

Source: [ui/src/models/headless/names.ts:145](https://github.com/Tahul/zidane/blob/main/ui/src/models/headless/names.ts#L145)

### `modelSearchScore`

Function.

`zidane-ui/models/headless`: the model catalog, React-free. The rows a host
lists (`ModelCatalogRow`, `ComposerModelEntry`, `ImageModelRow`) and a pick
(`ModelPickRef`), what a host offers of its catalogs (`ComposerModels`), the
rules a picker lists, searches and edits a chain by, and the names a model
goes by (`modelNamesOf`). The composer's pickers and the model rows of
Settings both read it.

```ts
function modelSearchScore(
  entry: ModelCatalogRow,
  terms: readonly string[],
): number | null
```

**Parameters**

- `entry` (`ModelCatalogRow`): The catalog row.
- `terms` (`readonly string[]`): The lower-cased search terms. Every term must match.

**Returns** `number | null`

Source: [ui/src/models/headless/catalog.ts:273](https://github.com/Tahul/zidane/blob/main/ui/src/models/headless/catalog.ts#L273)

### `namerFor`

Function.

A namer reading `catalog`: the entry of that provider first, then any provider listing the id.

```ts
function namerFor(
  catalog: readonly Pick<ModelCatalogRow, 'providerKey' | 'modelId' | 'modelName'>[],
): ModelNamer
```

**Parameters**

- `catalog` (`readonly Pick<ModelCatalogRow, 'providerKey' | 'modelId' | 'modelName'>[]`): The catalog rows.

**Returns** `ModelNamer`

Source: [ui/src/models/headless/names.ts:45](https://github.com/Tahul/zidane/blob/main/ui/src/models/headless/names.ts#L45)

### `offCatalogRows`

Function.

`zidane-ui/models/headless`: the model catalog, React-free. The rows a host
lists (`ModelCatalogRow`, `ComposerModelEntry`, `ImageModelRow`) and a pick
(`ModelPickRef`), what a host offers of its catalogs (`ComposerModels`), the
rules a picker lists, searches and edits a chain by, and the names a model
goes by (`modelNamesOf`). The composer's pickers and the model rows of
Settings both read it.

```ts
function offCatalogRows(
  catalog: readonly ModelCatalogRow[],
  query: string,
  currentProviderKey: string | null,
  catalogMatched: boolean,
): ModelCatalogRow[]
```

**Parameters**

- `catalog` (`readonly ModelCatalogRow[]`): The catalog rows.
- `query` (`string`): What the user typed in the search field.
- `currentProviderKey` (`string | null`): Key of the provider in use, listed after the one the query names. `null` for none.
- `catalogMatched` (`boolean`): Whether the catalog already matched the query. If so, only an id-shaped query gets typed routes.

**Returns** `ModelCatalogRow[]`

Source: [ui/src/models/headless/catalog.ts:221](https://github.com/Tahul/zidane/blob/main/ui/src/models/headless/catalog.ts#L221)

### `pickerGroups`

Function.

`zidane-ui/models/headless`: the model catalog, React-free. The rows a host
lists (`ModelCatalogRow`, `ComposerModelEntry`, `ImageModelRow`) and a pick
(`ModelPickRef`), what a host offers of its catalogs (`ComposerModels`), the
rules a picker lists, searches and edits a chain by, and the names a model
goes by (`modelNamesOf`). The composer's pickers and the model rows of
Settings both read it.

```ts
function pickerGroups<E extends ModelCatalogRow>(
  catalog: readonly E[],
  query: string,
  chain: readonly ModelPickRef[],
  showLegacy: boolean,
  current: ReadonlySet<string>,
): PickerGroup<E>[]
```

**Type parameters**

- `E` (`extends ModelCatalogRow`)

**Parameters**

- `catalog` (`readonly E[]`): The catalog rows.
- `query` (`string`): What the user typed in the search field. Blank lists by provider.
- `chain` (`readonly ModelPickRef[]`): The chain in force. Its models lead the list as "In use".
- `showLegacy` (`boolean`): Lists every model instead of only the current ones.
- `current` (`ReadonlySet<string>`): The lineup keys of the current models, from [`modelLineup`](https://zidane.si/docs/reference/ui-models-headless.md#modelLineup).

**Returns** `PickerGroup<E>[]`

Source: [ui/src/models/headless/catalog.ts:322](https://github.com/Tahul/zidane/blob/main/ui/src/models/headless/catalog.ts#L322)

### `pickRefOf`

Function.

`zidane-ui/models/headless`: the model catalog, React-free. The rows a host
lists (`ModelCatalogRow`, `ComposerModelEntry`, `ImageModelRow`) and a pick
(`ModelPickRef`), what a host offers of its catalogs (`ComposerModels`), the
rules a picker lists, searches and edits a chain by, and the names a model
goes by (`modelNamesOf`). The composer's pickers and the model rows of
Settings both read it.

```ts
function pickRefOf(entry: ModelCatalogRow): ModelPickRef
```

**Parameters**

- `entry` (`ModelCatalogRow`): The catalog row.

**Returns** `ModelPickRef`

Source: [ui/src/models/headless/catalog.ts:59](https://github.com/Tahul/zidane/blob/main/ui/src/models/headless/catalog.ts#L59)

### `providerAccountLabel`

Function.

`zidane-ui/models/headless`: the model catalog, React-free. The rows a host
lists (`ModelCatalogRow`, `ComposerModelEntry`, `ImageModelRow`) and a pick
(`ModelPickRef`), what a host offers of its catalogs (`ComposerModels`), the
rules a picker lists, searches and edits a chain by, and the names a model
goes by (`modelNamesOf`). The composer's pickers and the model rows of
Settings both read it.

```ts
function providerAccountLabel(
  entry: Pick<ModelCatalogRow, 'providerLabel' | 'account'>,
): string
```

**Parameters**

- `entry` (`Pick<ModelCatalogRow, 'providerLabel' | 'account'>`): A row, or any object with its `providerLabel` and `account`.

**Returns** `string`

Source: [ui/src/models/headless/catalog.ts:100](https://github.com/Tahul/zidane/blob/main/ui/src/models/headless/catalog.ts#L100)

### `refKey`

Function.

`zidane-ui/models/headless`: the model catalog, React-free. The rows a host
lists (`ModelCatalogRow`, `ComposerModelEntry`, `ImageModelRow`) and a pick
(`ModelPickRef`), what a host offers of its catalogs (`ComposerModels`), the
rules a picker lists, searches and edits a chain by, and the names a model
goes by (`modelNamesOf`). The composer's pickers and the model rows of
Settings both read it.

```ts
function refKey(entry: ModelPickRef): string
```

**Parameters**

- `entry` (`ModelPickRef`): The pick.

**Returns** `string`

Source: [ui/src/models/headless/catalog.ts:50](https://github.com/Tahul/zidane/blob/main/ui/src/models/headless/catalog.ts#L50)

### `resolveChain`

Function.

`zidane-ui/models/headless`: the model catalog, React-free. The rows a host
lists (`ModelCatalogRow`, `ComposerModelEntry`, `ImageModelRow`) and a pick
(`ModelPickRef`), what a host offers of its catalogs (`ComposerModels`), the
rules a picker lists, searches and edits a chain by, and the names a model
goes by (`modelNamesOf`). The composer's pickers and the model rows of
Settings both read it.

```ts
function resolveChain(
  chain: readonly ModelPickRef[],
  catalog: readonly ModelCatalogRow[],
): readonly ModelPickRef[]
```

**Parameters**

- `chain` (`readonly ModelPickRef[]`): The chain: the primary, then its fallbacks.
- `catalog` (`readonly ModelCatalogRow[]`): The catalog rows.

**Returns** `readonly ModelPickRef[]`

Source: [ui/src/models/headless/catalog.ts:166](https://github.com/Tahul/zidane/blob/main/ui/src/models/headless/catalog.ts#L166)

### `resolvePick`

Function.

`zidane-ui/models/headless`: the model catalog, React-free. The rows a host
lists (`ModelCatalogRow`, `ComposerModelEntry`, `ImageModelRow`) and a pick
(`ModelPickRef`), what a host offers of its catalogs (`ComposerModels`), the
rules a picker lists, searches and edits a chain by, and the names a model
goes by (`modelNamesOf`). The composer's pickers and the model rows of
Settings both read it.

```ts
function resolvePick(
  pick: ModelPickRef,
  catalog: readonly ModelCatalogRow[],
): ModelPickRef
```

**Parameters**

- `pick` (`ModelPickRef`): A pick of the chain.
- `catalog` (`readonly ModelCatalogRow[]`): The catalog rows.

**Returns** `ModelPickRef`

Source: [ui/src/models/headless/catalog.ts:144](https://github.com/Tahul/zidane/blob/main/ui/src/models/headless/catalog.ts#L144)

### `rowKey`

Function.

`zidane-ui/models/headless`: the model catalog, React-free. The rows a host
lists (`ModelCatalogRow`, `ComposerModelEntry`, `ImageModelRow`) and a pick
(`ModelPickRef`), what a host offers of its catalogs (`ComposerModels`), the
rules a picker lists, searches and edits a chain by, and the names a model
goes by (`modelNamesOf`). The composer's pickers and the model rows of
Settings both read it.

```ts
function rowKey(entry: ModelCatalogRow): string
```

**Parameters**

- `entry` (`ModelCatalogRow`): The catalog row.

**Returns** `string`

Source: [ui/src/models/headless/catalog.ts:72](https://github.com/Tahul/zidane/blob/main/ui/src/models/headless/catalog.ts#L72)

### `unresolveChain`

Function.

`zidane-ui/models/headless`: the model catalog, React-free. The rows a host
lists (`ModelCatalogRow`, `ComposerModelEntry`, `ImageModelRow`) and a pick
(`ModelPickRef`), what a host offers of its catalogs (`ComposerModels`), the
rules a picker lists, searches and edits a chain by, and the names a model
goes by (`modelNamesOf`). The composer's pickers and the model rows of
Settings both read it.

```ts
function unresolveChain(
  next: readonly ModelPickRef[],
  chain: readonly ModelPickRef[],
  shown: readonly ModelPickRef[],
): ModelPickRef[]
```

**Parameters**

- `next` (`readonly ModelPickRef[]`): The edited resolved chain.
- `chain` (`readonly ModelPickRef[]`): The chain before the edit.
- `shown` (`readonly ModelPickRef[]`): `chain` resolved, as the edit saw it.

**Returns** `ModelPickRef[]`

Source: [ui/src/models/headless/catalog.ts:190](https://github.com/Tahul/zidane/blob/main/ui/src/models/headless/catalog.ts#L190)

### `withPrimary`

Function.

`zidane-ui/models/headless`: the model catalog, React-free. The rows a host
lists (`ModelCatalogRow`, `ComposerModelEntry`, `ImageModelRow`) and a pick
(`ModelPickRef`), what a host offers of its catalogs (`ComposerModels`), the
rules a picker lists, searches and edits a chain by, and the names a model
goes by (`modelNamesOf`). The composer's pickers and the model rows of
Settings both read it.

```ts
function withPrimary(chain: readonly ModelPickRef[], pick: ModelPickRef): ModelPickRef[]
```

**Parameters**

- `chain` (`readonly ModelPickRef[]`): The current chain: the primary, then its fallbacks.
- `pick` (`ModelPickRef`): The model to make the primary.

**Returns** `ModelPickRef[]`

Source: [ui/src/models/headless/catalog.ts:131](https://github.com/Tahul/zidane/blob/main/ui/src/models/headless/catalog.ts#L131)

## Interfaces

### `ComposerModelEntry`

Interface.

A catalog row with the options its model declares: what `ComposerModels.catalog` lists.

```ts
interface ComposerModelEntry extends ModelCatalogRow
```

**Properties**

- `account?` (`{ active?: boolean; id: string; label: string }`, from `ModelCatalogRow`): The provider's stored account this row runs on, when it has several. Absent: its only one.
- `contextWindow` (`number | null`, from `ModelCatalogRow`): Context window in tokens, or `null` when unknown.
- `details?` (`readonly string[]`, from `ModelCatalogRow`): Short facts shown beside the name, before the window (`ChatModel.details`).
- `isDefault?` (`boolean`, from `ModelCatalogRow`): The provider's default model: what a new chat falls back to on this provider.
- `modelId` (`string`, from `ModelCatalogRow`): Model id within the provider.
- `modelName` (`string`, from `ModelCatalogRow`): The catalog's display name (`Claude Opus 4.6`); the row shows its natural form (`Opus 4.6`).
- `modelProvider?` (`string`, from `ModelCatalogRow`): Attribution for an aggregator's row (`anthropic` on OpenRouter).
- `offCatalog?` (`boolean`, from `ModelCatalogRow`): A typed id the catalog does not know: used as typed, no metadata.
- `options?` (`readonly ComposerModelOption[]`): The feature toggles the model declares. Absent or empty: none.
- `providerKey` (`string`, from `ModelCatalogRow`): Key of the provider that serves the model.
- `providerLabel` (`string`, from `ModelCatalogRow`): Provider name shown as the group heading.
- `references?` (`boolean`, from `ModelCatalogRow`): An image model that takes reference images (to edit, or to match a style).
- `searchCorpus?` (`string`, from `ModelCatalogRow`): Pre-lowercased search text. Default: provider key and label, account, id, name, attribution.
- `supportsAdaptive?` (`boolean`, from `ModelCatalogRow`): The model's provider has an adaptive thinking mode, so the effort pickers offer `adaptive` (zidane's `thinkingLevelsFor`). Absent: it has none.
- `supportsReasoning` (`boolean`, from `ModelCatalogRow`): The model supports reasoning effort.
- `transparency?` (`boolean`, from `ModelCatalogRow`): An image model that can make a transparent background.
- `unavailable?` (`string`, from `ModelCatalogRow`): Why the row cannot be picked with the current credentials. The row shows, greyed out, and picking it does nothing.

Source: [ui/src/models/headless/rows.ts:87](https://github.com/Tahul/zidane/blob/main/ui/src/models/headless/rows.ts#L87)

### `ComposerModelOption`

Interface.

A feature toggle a model declares (fast mode, …).

```ts
interface ComposerModelOption
```

**Properties**

- `description?` (`string`): What it does.
- `id` (`string`): The option's id, a key of the session's enabled options.
- `label` (`string`): Its name.

Source: [ui/src/models/headless/rows.ts:77](https://github.com/Tahul/zidane/blob/main/ui/src/models/headless/rows.ts#L77)

### `ComposerModels`

Interface.

The model catalogs, kept current.

```ts
interface ComposerModels
```

**Properties**

- `catalog` (`(cwd: string | undefined, hostId: string | null) => Readable<ResourceSnapshot<readonly ComposerModelEntry[]>>`): The chat models a folder (`cwd`, `undefined`: the host's default) on a host (`null`: this one) can run.
- `images?` (`(cwd: string | null) => Readable<ResourceSnapshot<readonly ImageModelRow[]>>`): The image models for a folder. Absent: the picker has no Image tab.
- `providers?` (`() => Readable<ResourceSnapshot<readonly { key: string; label: string }[]>>`): Every provider this computer knows, signed in or not (labels for model names).

Source: [ui/src/models/headless/host.ts:11](https://github.com/Tahul/zidane/blob/main/ui/src/models/headless/host.ts#L11)

### `ImageModelRow`

Interface.

One image model, as the host lists it.

```ts
interface ImageModelRow
```

**Properties**

- `available` (`boolean`): The provider's credentials can generate with it.
- `isDefault?` (`boolean`): The model `generate_image` uses while no default is picked.
- `modelId` (`string`): The model's id at the provider.
- `modelName` (`string`): The model's display name.
- `providerKey` (`string`): The provider's key, for example `openai`.
- `providerLabel` (`string`): The provider's display name.
- `reason?` (`string`): Why it is not available.
- `references` (`boolean`): The model takes reference images.
- `transparency` (`boolean`): The model can return a transparent background.

Source: [ui/src/models/headless/rows.ts:55](https://github.com/Tahul/zidane/blob/main/ui/src/models/headless/rows.ts#L55)

### `ModelCatalogRow`

Interface.

One row of the catalog.

```ts
interface ModelCatalogRow
```

**Properties**

- `account?` (`{ active?: boolean; id: string; label: string }`): The provider's stored account this row runs on, when it has several. Absent: its only one.
- `contextWindow` (`number | null`): Context window in tokens, or `null` when unknown.
- `details?` (`readonly string[]`): Short facts shown beside the name, before the window (`ChatModel.details`).
- `isDefault?` (`boolean`): The provider's default model: what a new chat falls back to on this provider.
- `modelId` (`string`): Model id within the provider.
- `modelName` (`string`): The catalog's display name (`Claude Opus 4.6`); the row shows its natural form (`Opus 4.6`).
- `modelProvider?` (`string`): Attribution for an aggregator's row (`anthropic` on OpenRouter).
- `offCatalog?` (`boolean`): A typed id the catalog does not know: used as typed, no metadata.
- `providerKey` (`string`): Key of the provider that serves the model.
- `providerLabel` (`string`): Provider name shown as the group heading.
- `references?` (`boolean`): An image model that takes reference images (to edit, or to match a style).
- `searchCorpus?` (`string`): Pre-lowercased search text. Default: provider key and label, account, id, name, attribution.
- `supportsAdaptive?` (`boolean`): The model's provider has an adaptive thinking mode, so the effort pickers offer `adaptive` (zidane's `thinkingLevelsFor`). Absent: it has none.
- `supportsReasoning` (`boolean`): The model supports reasoning effort.
- `transparency?` (`boolean`): An image model that can make a transparent background.
- `unavailable?` (`string`): Why the row cannot be picked with the current credentials. The row shows, greyed out, and picking it does nothing.

Source: [ui/src/models/headless/rows.ts:19](https://github.com/Tahul/zidane/blob/main/ui/src/models/headless/rows.ts#L19)

### `ModelNames`

Interface.

How models and providers are named.

```ts
interface ModelNames
```

**Properties**

- `model` (`ModelNamer`): A model's name.
- `provider` (`(providerKey: string) => string`): A provider's label (`Anthropic`); its key when nothing names it.

Source: [ui/src/models/headless/names.ts:17](https://github.com/Tahul/zidane/blob/main/ui/src/models/headless/names.ts#L17)

### `ModelNamesProvider`

Interface.

A provider as the sign-in report lists it.

```ts
interface ModelNamesProvider
```

**Properties**

- `key` (`string`): The provider's key.
- `label` (`string`): Its label.

Source: [ui/src/models/headless/names.ts:25](https://github.com/Tahul/zidane/blob/main/ui/src/models/headless/names.ts#L25)

### `ModelNamesStore`

Interface.

The live names.

```ts
interface ModelNamesStore
```

**Properties**

- `get` (`() => ModelNames`): The names now (a new object when the catalog changes).
- `subscribe` (`(listener: () => void) => () => void`): Registers a listener (the first one starts reading). Returns the unsubscribe.

Source: [ui/src/models/headless/names.ts:33](https://github.com/Tahul/zidane/blob/main/ui/src/models/headless/names.ts#L33)

### `ModelPickRef`

Interface.

A model pick: provider, model and, when the provider has several, the stored account it runs on.

```ts
interface ModelPickRef
```

**Properties**

- `account?` (`string`): Id of the stored account the pick runs on. Only set when the provider has several.
- `modelId` (`string`): Model id within the provider.
- `providerKey` (`string`): Key of the provider, for example `anthropic`.

Source: [ui/src/models/headless/rows.ts:9](https://github.com/Tahul/zidane/blob/main/ui/src/models/headless/rows.ts#L9)

### `PickerGroup`

Interface.

One section of the model picker list.

```ts
interface PickerGroup<E extends ModelCatalogRow = ModelCatalogRow>
```

**Type parameters**

- `E` (`extends ModelCatalogRow`, default `ModelCatalogRow`)

**Properties**

- `detail?` (`string`): Shown after the label as typed (not uppercased): the typed id of the routes group.
- `key` (`string`): Provider key (`provider@account` for one of several accounts), `in-use` for the pinned chain, `typed` for a typed id's routes.
- `label` (`string`): Heading of the section.
- `providerKey` (`string | null`): Provider key for coloring; `null` for the in-use and typed groups.
- `rows` (`E[]`): The models listed in the section.
- `total` (`number`): Models of this provider in the catalog, before the lineup filter.

Source: [ui/src/models/headless/catalog.ts:294](https://github.com/Tahul/zidane/blob/main/ui/src/models/headless/catalog.ts#L294)
