# uuid7

Generates one UUID version 7 from the current Uuid7State.

## Signatures

```ts
export declare const uuid7: Effect.Effect<Uuid7, Cause.IllegalArgumentError, Uuid7State>;
```

## Why

Effectful generation makes the state boundary explicit and preserves `IllegalArgumentError` for invalid or exhausted timestamp space.

## Ownership and lifetime

The Effect acquires no persistent resource and uses state owned by the provided Uuid7State Layer.

## Examples

```ts
import { uuid7, Uuid7State } from "@typed/id/Uuid7"
import { Effect } from "effect"
const id = Effect.provide(uuid7, Uuid7State.Default)
```
