UNPKG

noa-receipt

Version:

NOA Agent Action Receipt — open, offline-verifiable provenance for AI-agent actions. The governance/receipt organ only; the NOA brain is separate and proprietary.

22 lines (21 loc) • 684 B
export type OptionKind = "boolean" | "count" | "document" | "nested"; export interface OptionField { readonly kind: OptionKind; readonly max?: number; readonly schema?: OptionSchema; } export type OptionSchema = { readonly [key: string]: OptionField; }; export type OptionsResult<T> = { readonly ok: true; readonly value: T; } | { readonly ok: false; readonly reason: string; }; export type OptionRecord = { readonly [key: string]: string | number | boolean | object | undefined; }; export type InertRecord = object; export declare function inertOptions<T extends InertRecord>(schema: OptionSchema, input: unknown, what: string): OptionsResult<T>;