Skip to main content

Type Alias: CheckRequest<S>

CheckRequest<S> = object

Defined in: packages/polizy/src/polizy.ts:128

A request to check a single authorization query.

Type Parameters

S

S extends AuthSchema<any, any, any, any, any>

Properties

canThey

canThey: TypedAction<S>

Defined in: packages/polizy/src/polizy.ts:132

The action to check authorization for.


context?

optional context?: Record<string, unknown>

Defined in: packages/polizy/src/polizy.ts:136

Optional custom attributes for dynamic policy conditions.


onWhat

onWhat: AnyObject<SchemaObjectTypes<S>>

Defined in: packages/polizy/src/polizy.ts:134

The resource being accessed.


who

who: Subject<SchemaSubjectTypes<S>> | AnyObject<SchemaObjectTypes<S>>

Defined in: packages/polizy/src/polizy.ts:130

The subject or object attempting to perform the action.