identityDevicenamespacenamespace identityDeviceThe typed tables of the identityDevice model, generated by IFC Data from the model. Do not edit: change the model and run bun tools/typed.ts --write.
Device identities: endpoints, servers and things
identityDevicenamespacenamespace identityDeviceidentityDevice.PlatformRowinterfaceno test imports itinterface PlatformRowWhat a device runs
| 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 |
identityDevice.PlatformInsertinterfaceno test imports itinterface PlatformInsertWhat an insert into platform takes: what the database fills may be left out.
| Member | Type | What it is |
|---|---|---|
code | string | |
label | string | |
description? | string | null |
identityDevice.PlatformKeytypeno test imports ittype PlatformKey = { readonly code: string };The key of a row of platform.
identityDevice.platformconstno test imports itconst platform: Table<PlatformRow, PlatformInsert, "platform">What a device runs
identityDevice.DeviceRowinterfaceno test imports itinterface DeviceRowHardware that has an identity and an owner: an endpoint, a server or a thing
| Member | Type | What it is |
|---|---|---|
principalId | string | The principal the device is |
deviceKind | "iot" | "laptop" | "other" | "phone" | "server" | "tablet" | What kind of device it is |
platformCode | string | What it runs |
hardwareHash | string | A hash of its serial number or hardware identifier |
label | string | null | What it is called |
managementState | "managed" | "registered" | "retired" | "unmanaged" | How far it is managed |
ownership | "corporate" | "personal" | "shared" | Whose it is |
enrolledAt | Timestamp | When it was enrolled |
lastSeenAt | Timestamp | null | When it was last seen |
trustedUntil | Timestamp | null | Until when it is trusted without a fresh attestation |
identityDevice.DeviceInsertinterfaceno test imports itinterface DeviceInsertWhat an insert into device takes: what the database fills may be left out.
| Member | Type | What it is |
|---|---|---|
principalId | string | |
deviceKind | "iot" | "laptop" | "other" | "phone" | "server" | "tablet" | |
platformCode | string | |
hardwareHash | string | |
label? | string | null | |
managementState | "managed" | "registered" | "retired" | "unmanaged" | |
ownership | "corporate" | "personal" | "shared" | |
enrolledAt | Timestamp | |
lastSeenAt? | Timestamp | null | |
trustedUntil? | Timestamp | null |
identityDevice.DeviceKeytypeno test imports ittype DeviceKey = { readonly principalId: string };The key of a row of device.
identityDevice.deviceconstno test imports itconst device: Table<DeviceRow, DeviceInsert, "device">Hardware that has an identity and an owner: an endpoint, a server or a thing
identityDevice.DeviceAttestationRowinterfaceno test imports itinterface DeviceAttestationRowWhat a device proved about itself, and how it was judged
| Member | Type | What it is |
|---|---|---|
deviceAttestationId | string | What identifies the attestation, made by the application |
kind | "cloud_instance" | "mdm_enrollment" | "platform_attestation" | "spiffe_node" | "tpm" | "webauthn_attestation" | What was proved |
evidenceHash | string | A hash of the evidence; the evidence is kept by the verifier |
verifier | string | What judged it |
result | "failed" | "passed" | "unknown" | How it was judged |
attestedAt | Timestamp | When it was judged |
expiresAt | Timestamp | When it stops counting |
nonceHash | string | A hash of the nonce the device was challenged with |
devicePrincipalId | string | The device |
identityDevice.DeviceAttestationInsertinterfaceno test imports itinterface DeviceAttestationInsertWhat an insert into device_attestation takes: what the database fills may be left out.
| Member | Type | What it is |
|---|---|---|
deviceAttestationId | string | |
kind | "cloud_instance" | "mdm_enrollment" | "platform_attestation" | "spiffe_node" | "tpm" | "webauthn_attestation" | |
evidenceHash | string | |
verifier | string | |
result | "failed" | "passed" | "unknown" | |
attestedAt | Timestamp | |
expiresAt | Timestamp | |
nonceHash | string | |
devicePrincipalId | string |
identityDevice.DeviceAttestationKeytypeno test imports ittype DeviceAttestationKey = { readonly deviceAttestationId: string };The key of a row of device_attestation.
identityDevice.deviceAttestationconstno test imports itconst deviceAttestation: Table<DeviceAttestationRow, DeviceAttestationInsert, "deviceAttestation">What a device proved about itself, and how it was judged
identityDevice.DevicePostureRowinterfaceno test imports itinterface DevicePostureRowHow a device was doing when it last reported; after its time is up it reads as unknown, never as compliant
| Member | Type | What it is |
|---|---|---|
devicePostureId | string | What identifies the report, made by the application |
source | "agent" | "edr" | "manual" | "mdm" | What reported it |
compliance | "compliant" | "noncompliant" | "unknown" | Whether the device meets what is asked of it |
osVersion | string | null | The version of what it runs |
diskEncrypted | boolean | null | Whether its storage is encrypted |
screenLock | boolean | null | Whether it locks its screen |
firewall | boolean | null | Whether its firewall is on |
jailbroken | boolean | null | Whether it has been broken out of its platform's protections |
edrActive | boolean | null | Whether endpoint detection is running |
patchAgeDays | number | null | How many days old its latest patch is |
riskScore | number | null | A score from its reporter |
details | unknown | What else was reported |
reportedAt | Timestamp | When it was reported |
validUntil | Timestamp | When the report stops counting |
devicePrincipalId | string | The device |
identityDevice.DevicePostureInsertinterfaceno test imports itinterface DevicePostureInsertWhat an insert into device_posture takes: what the database fills may be left out.
| Member | Type | What it is |
|---|---|---|
devicePostureId | string | |
source | "agent" | "edr" | "manual" | "mdm" | |
compliance | "compliant" | "noncompliant" | "unknown" | |
osVersion? | string | null | |
diskEncrypted? | boolean | null | |
screenLock? | boolean | null | |
firewall? | boolean | null | |
jailbroken? | boolean | null | |
edrActive? | boolean | null | |
patchAgeDays? | number | null | |
riskScore? | number | null | |
details? | unknown | |
reportedAt | Timestamp | |
validUntil | Timestamp | |
devicePrincipalId | string |
identityDevice.DevicePostureKeytypeno test imports ittype DevicePostureKey = { readonly devicePostureId: string };The key of a row of device_posture.
identityDevice.devicePostureconstno test imports itconst devicePosture: Table<DevicePostureRow, DevicePostureInsert, "devicePosture">How a device was doing when it last reported; after its time is up it reads as unknown, never as compliant
identityDevice.DeviceSessionRowinterfaceno test imports itinterface DeviceSessionRowA session of a person that is on a device, so that a decision about the person can use the device's posture
| Member | Type | What it is |
|---|---|---|
devicePrincipalId | string | The device |
sessionLoginSessionSessionId | string | The session |
boundAt | Timestamp | When the session was bound to the device |
identityDevice.DeviceSessionInsertinterfaceno test imports itinterface DeviceSessionInsertWhat an insert into device_session takes: what the database fills may be left out.
| Member | Type | What it is |
|---|---|---|
devicePrincipalId | string | |
sessionLoginSessionSessionId | string | |
boundAt | Timestamp |
identityDevice.DeviceSessionKeytypeno test imports ittype DeviceSessionKey = { readonly devicePrincipalId: string; readonly sessionLoginSessionSessionId: string };The key of a row of device_session.
identityDevice.deviceSessionconstno test imports itconst deviceSession: Table<DeviceSessionRow, DeviceSessionInsert, "deviceSession">A session of a person that is on a device, so that a decision about the person can use the device's posture