Skip to content
1 min read · 82 words

Variable: E_INVALID_INITIAL_RETRIEVABLE_VALUE

ts
const E_INVALID_INITIAL_RETRIEVABLE_VALUE: CreatedException<[]>;

Thrown when a @nhtio/adk!Retrievable is initialised with a value that fails schema validation.

Remarks

Retrievable requires id, content, trustTier, createdAt, and updatedAt to be present and of the correct type, and trustTier must be one of 'first-party', 'third-party-public', or 'third-party-private'. The trustTier decision must be made consciously by the retrieval middleware at construction time — there is no default. Passing an incomplete or incorrectly typed object signals a programming error in the caller, not a recoverable runtime condition.