SubjectEntry
Defined in: packages/core/src/access/types.ts:382
One entry in the subject registry: the action union, the data shape passed
to callbacks, and the index registry withIndex resolves against.
Properties
Section titled “Properties”action
Section titled “action”action:
string
Defined in: packages/core/src/access/types.ts:384
Union of actions this subject supports.
data:
unknown
Defined in: packages/core/src/access/types.ts:388
Document/context type; never for subjects without data.
indexes
Section titled “indexes”indexes:
string
Defined in: packages/core/src/access/types.ts:390
Union of access-index names declared on this resource; never for non-indexable subjects.
indexFields
Section titled “indexFields”indexFields:
Record<string, readonlystring[]>
Defined in: packages/core/src/access/types.ts:401
The resource’s declared indexes as name → field tuple, in declaration order.
{} for subjects with no table to index (custom resources, admin subjects),
which makes withIndex resolve to never there rather than absent.
Carries TUPLES, not just the names in indexes, because
AccessIndexSelection discriminates name to bind range to one
index’s real field order — that is what makes positional constraint typing
reachable.
queryAction
Section titled “queryAction”queryAction:
string
Defined in: packages/core/src/access/types.ts:386
Actions on this subject whose check carries a withIndex property. never when none do.