Skip to content

AccessResourceSchema

katanakit-js / AccessResourceSchema

const AccessResourceSchema: ZodObject<
{
id: ZodUnion<readonly [ZodString, ZodNumber]>;
type: ZodString;
},
$strip
>;

Defined in: schemas/grant.schema.ts:13

The thing being acted on — enough for the authorization layer to route a check to the right table, and nothing more.

type is the storage’s partition key (document, expediente, invoice), not a capability domain. Keeping them separate stops the two vocabularies from silently drifting into each other.