# Models: K

> API models starting with K.

## `KeptItem`

- `key: str`
- `rank_before: int | None` (`rankBefore` on the wire) (optional)
- `rank: int | None` (optional)

## `KeptRepoErasurePage`

- `data: list[kindgi.client.KeptRepoOpenErasure]`
- `next_cursor: str | None` (`nextCursor` on the wire) (optional)

## `KeptRepoId`

A project's kept repo, by its tenant and project ids.

- `tenant_id: uuid.UUID` (`tenantId` on the wire)
- `project_id: uuid.UUID` (`projectId` on the wire)

## `KeptRepoOpenErasure`

An unfinished erasure of a project's kept repo.

- `tenant_id: uuid.UUID` (`tenantId` on the wire)
- `project_id: uuid.UUID` (`projectId` on the wire)
- `since: AwareDatetime`

## `KeptRepoPurgedBody`

- `reason: Literal['erasure', 'retention', 'tenant-purged', 'no-record']`

## `KeptRepoRuling`

What the store does with a kept repo it holds: `keep` it, with its `mark`, or `purge` it, for `reason`.

- `tenant_id: uuid.UUID` (`tenantId` on the wire)
- `project_id: uuid.UUID` (`projectId` on the wire)
- `ruling: Union[Literal['keep', 'purge'], str]`
- `mark: Optional[Annotated[Union[Literal['none', 'deleted', 'moved', 'held'], str], <kindgi.client._open.OpenEnum object at 0x10b1cda10>]]` (optional)
- `since: AwareDatetime | None` (optional)
- `reason: Optional[Annotated[Union[Literal['erasure', 'retention', 'tenant-purged', 'no-record'], str], <kindgi.client._open.OpenEnum object at 0x10b1cda10>]]` (optional)
- `recorded: Optional[Literal[True]]` (optional)

## `KeptRepoRulings`

- `rulings: list[kindgi.client.KeptRepoRuling]`

## `KeptRepoRulingsBody`

- `ids: list[kindgi.client.KeptRepoId]`

## `KeptRepoState`

A kept repo's state, as the runtime records it.

- `state: Union[Literal['live', 'deleted', 'moved', 'held', 'erasure-requested', 'purged'], str]`
- `since: AwareDatetime`
