identityAbacnamespacenamespace identityAbacThe typed tables of the identityAbac model, generated by IFC Data from the model. Do not edit: change the model and run bun tools/typed.ts --write.
Attribute-based access for every kind of principal
identityAbacnamespacenamespace identityAbacidentityAbac.ExpressionLanguageRowinterfaceno test imports itinterface ExpressionLanguageRowThe language a condition is written in
| Member | Type | What it is |
|---|---|---|
code | string | The code other tables point to: a short word that does not change |
label | string | What a person is shown for the code |
description | string | null | What the code means, where the label is not enough |
identityAbac.ExpressionLanguageInsertinterfaceno test imports itinterface ExpressionLanguageInsertWhat an insert into expression_language takes: what the database fills may be left out.
| Member | Type | What it is |
|---|---|---|
code | string | |
label | string | |
description? | string | null |
identityAbac.ExpressionLanguageKeytypeno test imports ittype ExpressionLanguageKey = { readonly code: string };The key of a row of expression_language.
identityAbac.expressionLanguageconstno test imports itconst expressionLanguage: Table<ExpressionLanguageRow, ExpressionLanguageInsert, "expressionLanguage">The language a condition is written in
identityAbac.AttributeDefinitionRowinterfaceno test imports itinterface AttributeDefinitionRowAn attribute that decisions may use, with its type, where its values come from and how old they may be
| Member | Type | What it is |
|---|---|---|
attributeDefinitionId | string | What identifies the attribute, made by the application |
attributeKey | string | The attribute as category.name, unique |
category | "action" | "environment" | "resource" | "subject" | What it is an attribute of |
valueType | "boolean" | "instant" | "integer" | "text" | "text_set" | The type of its values |
source | "derived" | "directory" | "posture" | "request" | "stored" | Where its values come from |
resourceType | string | null | The kind of resource it applies to |
sensitivity | "confidential" | "internal" | "public" | "restricted" | How sensitive its values are |
freshnessSeconds | number | null | How old a stored value may be before it reads as unknown |
definition | string | What the attribute means |
status | "active" | "retired" | Whether the attribute is in use |
tenantId | string | null | The tenant that defined it; empty for the platform's |
identityAbac.AttributeDefinitionInsertinterfaceno test imports itinterface AttributeDefinitionInsertWhat an insert into attribute_definition takes: what the database fills may be left out.
| Member | Type | What it is |
|---|---|---|
attributeDefinitionId | string | |
attributeKey | string | |
category | "action" | "environment" | "resource" | "subject" | |
valueType | "boolean" | "instant" | "integer" | "text" | "text_set" | |
source | "derived" | "directory" | "posture" | "request" | "stored" | |
resourceType? | string | null | |
sensitivity | "confidential" | "internal" | "public" | "restricted" | |
freshnessSeconds? | number | null | |
definition | string | |
status | "active" | "retired" | |
tenantId? | string | null |
identityAbac.AttributeDefinitionKeytypeno test imports ittype AttributeDefinitionKey = { readonly attributeDefinitionId: string };The key of a row of attribute_definition.
identityAbac.attributeDefinitionconstno test imports itconst attributeDefinition: Table<AttributeDefinitionRow, AttributeDefinitionInsert, "attributeDefinition">An attribute that decisions may use, with its type, where its values come from and how old they may be
identityAbac.AttributeDefinitionSubjectKindsRowinterfaceno test imports itinterface AttributeDefinitionSubjectKindsRowThe kinds of principal it applies to; every kind where none is said
| Member | Type | What it is |
|---|---|---|
attributeDefinitionId | string | An attribute that decisions may use, with its type, where its values come from and how old they may be |
subjectKinds | string | The kinds of principal it applies to; every kind where none is said |
identityAbac.AttributeDefinitionSubjectKindsInsertinterfaceno test imports itinterface AttributeDefinitionSubjectKindsInsertWhat an insert into attribute_definition_subject_kinds takes: what the database fills may be left out.
| Member | Type | What it is |
|---|---|---|
attributeDefinitionId | string | |
subjectKinds | string |
identityAbac.AttributeDefinitionSubjectKindsKeytypeno test imports ittype AttributeDefinitionSubjectKindsKey = { readonly attributeDefinitionId: string; readonly subjectKinds: string };The key of a row of attribute_definition_subject_kinds.
identityAbac.attributeDefinitionSubjectKindsconstno test imports itconst attributeDefinitionSubjectKinds: Table<AttributeDefinitionSubjectKindsRow, AttributeDefinitionSubjectKindsInsert, "attributeDefinitionSubjectKinds">The kinds of principal it applies to; every kind where none is said
identityAbac.PrincipalAttributeRowinterfaceno test imports itinterface PrincipalAttributeRowA value of an attribute for a principal of any kind
| Member | Type | What it is |
|---|---|---|
principalId | string | The principal |
definitionAttributeDefinitionId | string | The attribute |
value | unknown | The value, of the type the definition says |
validFrom | Timestamp | When the value starts to hold |
validTo | Timestamp | null | When it stops, where it does |
updatedAt | Timestamp | When it was last asserted |
assertedByPrincipalId | string | null | Who asserted it, where a principal did |
identityAbac.PrincipalAttributeInsertinterfaceno test imports itinterface PrincipalAttributeInsertWhat an insert into principal_attribute takes: what the database fills may be left out.
| Member | Type | What it is |
|---|---|---|
principalId | string | |
definitionAttributeDefinitionId | string | |
value | unknown | |
validFrom | Timestamp | |
validTo? | Timestamp | null | |
updatedAt | Timestamp | |
assertedByPrincipalId? | string | null |
identityAbac.PrincipalAttributeKeytypeno test imports ittype PrincipalAttributeKey = { readonly principalId: string; readonly definitionAttributeDefinitionId: string };The key of a row of principal_attribute.
identityAbac.principalAttributeconstno test imports itconst principalAttribute: Table<PrincipalAttributeRow, PrincipalAttributeInsert, "principalAttribute">A value of an attribute for a principal of any kind
identityAbac.ResourceAttributeRowinterfaceno test imports itinterface ResourceAttributeRowA value of an attribute for a resource
| Member | Type | What it is |
|---|---|---|
resourceAttributeId | string | What identifies the value, made by the application |
resourceType | string | The kind of resource |
resourceId | string | The resource |
value | unknown | The value, of the type the definition says |
updatedAt | Timestamp | When it was last asserted |
valueKey | string | A hash of the tenant, the resource and the attribute, unique, so that a resource has one value of an attribute |
tenantId | string | The tenant the resource is in |
definitionAttributeDefinitionId | string | The attribute |
identityAbac.ResourceAttributeInsertinterfaceno test imports itinterface ResourceAttributeInsertWhat an insert into resource_attribute takes: what the database fills may be left out.
| Member | Type | What it is |
|---|---|---|
resourceAttributeId | string | |
resourceType | string | |
resourceId | string | |
value | unknown | |
updatedAt | Timestamp | |
valueKey | string | |
tenantId | string | |
definitionAttributeDefinitionId | string |
identityAbac.ResourceAttributeKeytypeno test imports ittype ResourceAttributeKey = { readonly resourceAttributeId: string };The key of a row of resource_attribute.
identityAbac.resourceAttributeconstno test imports itconst resourceAttribute: Table<ResourceAttributeRow, ResourceAttributeInsert, "resourceAttribute">A value of an attribute for a resource
identityAbac.AccessPolicyRowinterfaceno test imports itinterface AccessPolicyRowA rule of attribute-based access: a condition over attributes that allows or refuses an action; a refusal always wins
| Member | Type | What it is |
|---|---|---|
accessPolicyId | string | What identifies the policy, made by the application |
name | string | What the policy is called |
definition | string | What the policy is for |
effect | "allow" | "deny" | What it decides |
appliesTo | "agent" | "device" | "group" | "machine" | "user" | null | The kind of principal it is about; every kind where it is empty |
actionPattern | string | The permission it is about: exact, or a prefix ending * |
resourceType | string | null | The kind of resource it is about |
expression | string | When it applies, written in its language |
expressionLanguageCode | string | The language of the condition |
obligation | "approval" | "none" | "step_up" | What must happen before an allowed action is done |
priority | number | The order policies are evaluated and explained in; a refusal wins whatever it is |
status | "active" | "retired" | Whether it is applied |
version | number | Which version of the policy this is |
validFrom | Timestamp | null | When it starts to apply |
validTo | Timestamp | null | When it stops |
policyKey | string | A hash of the tenant, the name and the version, unique |
tenantId | string | null | The tenant it is for; empty for the platform's |
scopePrincipalPrincipalId | string | null | The principal or group it is scoped to |
requiresRoleAccessRoleRoleId | string | null | A role a principal must also hold for the policy to allow |
permissionId | string | null | The permission it is about, where it is about exactly one |
identityAbac.AccessPolicyInsertinterfaceno test imports itinterface AccessPolicyInsertWhat an insert into access_policy takes: what the database fills may be left out.
| Member | Type | What it is |
|---|---|---|
accessPolicyId | string | |
name | string | |
definition | string | |
effect | "allow" | "deny" | |
appliesTo? | "agent" | "device" | "group" | "machine" | "user" | null | |
actionPattern | string | |
resourceType? | string | null | |
expression | string | |
expressionLanguageCode | string | |
obligation | "approval" | "none" | "step_up" | |
priority | number | |
status | "active" | "retired" | |
version | number | |
validFrom? | Timestamp | null | |
validTo? | Timestamp | null | |
policyKey | string | |
tenantId? | string | null | |
scopePrincipalPrincipalId? | string | null | |
requiresRoleAccessRoleRoleId? | string | null | |
permissionId? | string | null |
identityAbac.AccessPolicyKeytypeno test imports ittype AccessPolicyKey = { readonly accessPolicyId: string };The key of a row of access_policy.
identityAbac.accessPolicyconstno test imports itconst accessPolicy: Table<AccessPolicyRow, AccessPolicyInsert, "accessPolicy">A rule of attribute-based access: a condition over attributes that allows or refuses an action; a refusal always wins