IF Commons GitHub

sql/typed/models/identity-delegation.auto

The typed tables of the identityDelegation model, generated by IFC Data from the model. Do not edit: change the model and run bun tools/typed.ts --write.

One principal acting on behalf of another, with attenuation

Source: commons/data/sql/typed/models/identity-delegation.auto.ts

0 of 8 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

identityDelegationnamespace
namespace identityDelegation
identityDelegation.DelegationRowinterfaceno test imports it
interface DelegationRow

One principal acting on behalf of another, for a time and for some permissions, never more than the one above it

MemberTypeWhat it is
delegationIdstringWhat identifies the delegation, made by the application
depthnumberHow many delegations are above it: none for the first
purposestringWhat it is for
resourceTypestring | nullThe kind of the one resource it is limited to
resourceIdstring | nullThe resource it is limited to: exact, or a prefix ending *
expressionstring | nullAn extra condition; the conditions of the delegations above it hold too, so a delegation can only add
expressionLanguageCodestring | nullThe language of the condition
redelegablebooleanWhether the delegate may pass it on
maxDepthnumberHow many more delegations may be added below it; less than the one above it
validFromTimestampWhen it starts
expiresAtTimestampWhen it ends: a delegation always ends, and never after the one above it
status"active" | "expired" | "revoked"Where it is
revokedAtTimestamp | nullWhen it was ended early
revokeReasonstring | nullWhy it was ended early
tenantIdstringThe tenant it is in
delegatorPrincipalIdstringWho passes on what they hold
delegatePrincipalIdstringWho acts on their behalf
parentDelegationIdstring | nullThe delegation it was made under, where it was made under one
rootDelegationIdstring | nullThe first delegation of the chain, where it is not itself the first
revokedByPrincipalIdstring | nullWho ended it early
identityDelegation.DelegationInsertinterfaceno test imports it
interface DelegationInsert

What an insert into delegation takes: what the database fills may be left out.

MemberTypeWhat it is
delegationIdstring
depthnumber
purposestring
resourceType?string | null
resourceId?string | null
expression?string | null
expressionLanguageCode?string | null
redelegableboolean
maxDepthnumber
validFromTimestamp
expiresAtTimestamp
status"active" | "expired" | "revoked"
revokedAt?Timestamp | null
revokeReason?string | null
tenantIdstring
delegatorPrincipalIdstring
delegatePrincipalIdstring
parentDelegationId?string | null
rootDelegationId?string | null
revokedByPrincipalId?string | null
identityDelegation.DelegationKeytypeno test imports it
type DelegationKey = { readonly delegationId: string };

The key of a row of delegation.

identityDelegation.delegationconstno test imports it
const delegation: Table<DelegationRow, DelegationInsert, "delegation">

One principal acting on behalf of another, for a time and for some permissions, never more than the one above it

identityDelegation.DelegationPermissionRowinterfaceno test imports it
interface DelegationPermissionRow

A permission that a delegation passes on: a subset of what the delegator held, and of what the delegation above it passed on

MemberTypeWhat it is
delegationIdstringThe delegation
permissionIdstringThe permission
identityDelegation.DelegationPermissionInsertinterfaceno test imports it
interface DelegationPermissionInsert

What an insert into delegation_permission takes: what the database fills may be left out.

MemberTypeWhat it is
delegationIdstring
permissionIdstring
identityDelegation.DelegationPermissionKeytypeno test imports it
type DelegationPermissionKey = { readonly delegationId: string; readonly permissionId: string };

The key of a row of delegation_permission.

identityDelegation.delegationPermissionconstno test imports it
const delegationPermission: Table<DelegationPermissionRow, DelegationPermissionInsert, "delegationPermission">

A permission that a delegation passes on: a subset of what the delegator held, and of what the delegation above it passed on

Titles, headings, exports, tables, columns and requirements. Esc closes.