Skip to content
0

katanakit-js / AccessResourceSchema

Variable: AccessResourceSchema ​

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

Defined in: src/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.

Released under the MIT License.