Skip to main content

resolveCreateId()

function resolveCreateId(id: string | undefined): string;

Resolve the id for a create-style API call: validate the caller-supplied value (throwing UuidV7Error before the request leaves the SDK) or mint a fresh one via generateId.

Parameters

ParameterType
idstring | undefined

Returns

string