Import
import { Uuid5Namespace } from "@typed/id/Uuid5";Signatures
export type Uuid5Namespace = Uint8Array;export declare const Uuid5Namespace: {
readonly DNS: Uint8Array<ArrayBuffer>;
readonly URL: Uint8Array<ArrayBuffer>;
readonly OID: Uint8Array<ArrayBuffer>;
readonly X500: Uint8Array<ArrayBuffer>;
};Why
Namespace bytes are part of deterministic identity; caller canonicalization of names and namespace selection must remain explicit.
Ownership and lifetime
This type acquires no resources. Callers own and may mutate their byte array; generation reads exactly 16 bytes.
Property: DNS
Returns a fresh copy of the RFC DNS namespace bytes.
Property: DNS: Why
DNS names need a stable namespace distinct from URLs, OIDs, and X.500 names.
Property: DNS: Ownership and lifetime
Each access allocates a mutable byte array owned by the caller.
Property: OID
Returns a fresh copy of the RFC OID namespace bytes.
Property: OID: Why
Object identifiers need a stable namespace distinct from DNS, URL, and X.500 names.
Property: OID: Ownership and lifetime
Each access allocates a mutable byte array owned by the caller.
Property: URL
Returns a fresh copy of the RFC URL namespace bytes.
Property: URL: Why
URL names need a stable namespace distinct from DNS, OID, and X.500 names.
Property: URL: Ownership and lifetime
Each access allocates a mutable byte array owned by the caller.
Property: X500
Returns a fresh copy of the RFC X.500 namespace bytes.
Property: X500: Why
X.500 names need a stable namespace distinct from DNS, URL, and OID names.
Property: X500: Ownership and lifetime
Each access allocates a mutable byte array owned by the caller.
Examples
import { Uuid5Namespace } from "@typed/id/Uuid5"
const namespace = Uuid5Namespace.DNSOther public imports
These import paths expose the same declaration. Each page retains its own public name and signature.