identityRebacnamespacenamespace identityRebacThe typed tables of the identityRebac model, generated by IFC Data from the model. Do not edit: change the model and run bun tools/typed.ts --write.
Relationship-based access
identityRebacnamespacenamespace identityRebacidentityRebac.AuthorizationModelRowinterfaceno test imports itinterface AuthorizationModelRowThe definition of a relationship-based access model: its object types, relations, rewrites and caveats
| Member | Type | What it is |
|---|---|---|
authorizationModelId | string | What identifies the model, made by the application |
version | number | Which version of the model this is |
definition | unknown | The types, relations, rewrites and caveats |
status | "active" | "retired" | Whether it is in use |
tenantId | string | null | The tenant it is for; empty for the platform's |
identityRebac.AuthorizationModelInsertinterfaceno test imports itinterface AuthorizationModelInsertWhat an insert into authorization_model takes: what the database fills may be left out.
| Member | Type | What it is |
|---|---|---|
authorizationModelId | string | |
version | number | |
definition | unknown | |
status | "active" | "retired" | |
tenantId? | string | null |
identityRebac.AuthorizationModelKeytypeno test imports ittype AuthorizationModelKey = { readonly authorizationModelId: string };The key of a row of authorization_model.
identityRebac.authorizationModelconstno test imports itconst authorizationModel: Table<AuthorizationModelRow, AuthorizationModelInsert, "authorizationModel">The definition of a relationship-based access model: its object types, relations, rewrites and caveats
identityRebac.RelationTupleRowinterfaceno test imports itinterface RelationTupleRowA fact of relationship-based access: this subject has this relation to this object, perhaps under a caveat and until a time
| Member | Type | What it is |
|---|---|---|
relationTupleId | string | What identifies the fact, made by the application |
tupleKey | string | A hash of the tenant, the object, the relation and the subject, unique, so that a fact is not recorded twice |
objectType | string | The kind of the object |
objectId | string | The object |
relation | string | The relation |
subjectType | string | The kind of the subject: a kind of principal, or a kind of object |
subjectId | string | The subject |
subjectRelation | string | null | The relation of the subject that is meant, where a set is |
caveat | string | null | The name of a caveat of the model that must hold |
caveatContext | unknown | The values the caveat is given |
expiresAt | Timestamp | null | When the fact stops holding |
createdAt | Timestamp | When the fact was recorded |
tenantId | string | The tenant the fact is in |
identityRebac.RelationTupleInsertinterfaceno test imports itinterface RelationTupleInsertWhat an insert into relation_tuple takes: what the database fills may be left out.
| Member | Type | What it is |
|---|---|---|
relationTupleId | string | |
tupleKey | string | |
objectType | string | |
objectId | string | |
relation | string | |
subjectType | string | |
subjectId | string | |
subjectRelation? | string | null | |
caveat? | string | null | |
caveatContext? | unknown | |
expiresAt? | Timestamp | null | |
createdAt | Timestamp | |
tenantId | string |
identityRebac.RelationTupleKeytypeno test imports ittype RelationTupleKey = { readonly relationTupleId: string };The key of a row of relation_tuple.
identityRebac.relationTupleconstno test imports itconst relationTuple: Table<RelationTupleRow, RelationTupleInsert, "relationTuple">A fact of relationship-based access: this subject has this relation to this object, perhaps under a caveat and until a time
identityRebac.PermissionRelationRowinterfaceno test imports itinterface PermissionRelationRowWhat holding a relation on an object of a type grants: the join between relationships and the permissions every kind of access shares
| Member | Type | What it is |
|---|---|---|
permissionId | string | The permission granted |
objectType | string | The kind of object |
relation | string | The relation that grants the permission |
identityRebac.PermissionRelationInsertinterfaceno test imports itinterface PermissionRelationInsertWhat an insert into permission_relation takes: what the database fills may be left out.
| Member | Type | What it is |
|---|---|---|
permissionId | string | |
objectType | string | |
relation | string |
identityRebac.PermissionRelationKeytypeno test imports ittype PermissionRelationKey = { readonly permissionId: string; readonly objectType: string };The key of a row of permission_relation.
identityRebac.permissionRelationconstno test imports itconst permissionRelation: Table<PermissionRelationRow, PermissionRelationInsert, "permissionRelation">What holding a relation on an object of a type grants: the join between relationships and the permissions every kind of access shares