identityDelegationnamespacenamespace identityDelegationThe 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
identityDelegationnamespacenamespace identityDelegationidentityDelegation.DelegationRowinterfaceno test imports itinterface DelegationRowOne principal acting on behalf of another, for a time and for some permissions, never more than the one above it
| Member | Type | What it is |
|---|---|---|
delegationId | string | What identifies the delegation, made by the application |
depth | number | How many delegations are above it: none for the first |
purpose | string | What it is for |
resourceType | string | null | The kind of the one resource it is limited to |
resourceId | string | null | The resource it is limited to: exact, or a prefix ending * |
expression | string | null | An extra condition; the conditions of the delegations above it hold too, so a delegation can only add |
expressionLanguageCode | string | null | The language of the condition |
redelegable | boolean | Whether the delegate may pass it on |
maxDepth | number | How many more delegations may be added below it; less than the one above it |
validFrom | Timestamp | When it starts |
expiresAt | Timestamp | When it ends: a delegation always ends, and never after the one above it |
status | "active" | "expired" | "revoked" | Where it is |
revokedAt | Timestamp | null | When it was ended early |
revokeReason | string | null | Why it was ended early |
tenantId | string | The tenant it is in |
delegatorPrincipalId | string | Who passes on what they hold |
delegatePrincipalId | string | Who acts on their behalf |
parentDelegationId | string | null | The delegation it was made under, where it was made under one |
rootDelegationId | string | null | The first delegation of the chain, where it is not itself the first |
revokedByPrincipalId | string | null | Who ended it early |
identityDelegation.DelegationInsertinterfaceno test imports itinterface DelegationInsertWhat an insert into delegation takes: what the database fills may be left out.
| Member | Type | What it is |
|---|---|---|
delegationId | string | |
depth | number | |
purpose | string | |
resourceType? | string | null | |
resourceId? | string | null | |
expression? | string | null | |
expressionLanguageCode? | string | null | |
redelegable | boolean | |
maxDepth | number | |
validFrom | Timestamp | |
expiresAt | Timestamp | |
status | "active" | "expired" | "revoked" | |
revokedAt? | Timestamp | null | |
revokeReason? | string | null | |
tenantId | string | |
delegatorPrincipalId | string | |
delegatePrincipalId | string | |
parentDelegationId? | string | null | |
rootDelegationId? | string | null | |
revokedByPrincipalId? | string | null |
identityDelegation.DelegationKeytypeno test imports ittype DelegationKey = { readonly delegationId: string };The key of a row of delegation.
identityDelegation.delegationconstno test imports itconst 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 itinterface DelegationPermissionRowA permission that a delegation passes on: a subset of what the delegator held, and of what the delegation above it passed on
| Member | Type | What it is |
|---|---|---|
delegationId | string | The delegation |
permissionId | string | The permission |
identityDelegation.DelegationPermissionInsertinterfaceno test imports itinterface DelegationPermissionInsertWhat an insert into delegation_permission takes: what the database fills may be left out.
| Member | Type | What it is |
|---|---|---|
delegationId | string | |
permissionId | string |
identityDelegation.DelegationPermissionKeytypeno test imports ittype DelegationPermissionKey = { readonly delegationId: string; readonly permissionId: string };The key of a row of delegation_permission.
identityDelegation.delegationPermissionconstno test imports itconst 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