variable / @typed/id

Uuid7

Effect Schema and branded string type for RFC UUID version 7 values.

Package version
1.0.0-beta.13
Category
ID schemas
Since
1.0.0

Import

import { Uuid7 } from "@typed/id";

Signatures

export declare const Uuid7: Schema.brand<Schema.String, "@typed/id/UUID7">;
export type Uuid7 = typeof Uuid7.Type;

Why

The schema verifies version and variant at transport boundaries; generated ordering is local to one Uuid7State, not a distributed total order.

Ownership and lifetime

This module-level schema value acquires no resources and is shared; no runtime freezing guarantee is implied.

Examples

import { Uuid7 } from "@typed/id/Uuid7"
import { Schema } from "effect"
const id = Schema.decodeUnknownSync(Uuid7)("01890f2e-7d6c-7cc0-98c4-dc0c0c07398f")

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source