Skip to content

worklist

client.worklist shows the person what is theirs to work on. The Seald Healthcare Cloud holds the worklist. An offline lease covers it where the tenant enabled one for the role.

get

get(): Promise<WorklistItem[]>

Returns: Every item waiting for this person, across every kind below.

Records: Nothing. Not a decision.

Errors: locked, no-session, unreachable where no offline lease covers it.

Types

WorklistItem

The union has fourteen kinds, told apart by kind. Each kind carries what your application needs to render it and act on it.

type WorklistItem =
| { kind: 'recent'; ref: ObjectRef; dataset: string; at: Date }
| { kind: 'shared'; ref: ObjectRef; dataset: string; by: RecipientId; at: Date }
| { kind: 'enrollment-request'; requestId: string; person: Person; lapsesAt: Date }
| { kind: 'policy-version'; versionId: string; author: RecipientId; submittedAt: Date }
| { kind: 'custodian-share'; registrationId: string }
| { kind: 'proof-overdue'; custodian: Person; due: Date }
| { kind: 'ceremony'; ceremonyId: string }
| { kind: 'pending-version'; ref: Required<ObjectRef>; agent: RecipientId; expiresAt: Date }
| { kind: 'backfill-waiting'; person: Person; since: Date }
| { kind: 'member-without-device'; person: Person; since: Date }
| { kind: 'ownerless-domain'; root: Locator; dataset: string }
| { kind: 'journal-review'; recipientId: RecipientId; person: Person }
| { kind: 'support-grant'; grantId: string; until: Date }
| { kind: 'hold-lift'; holdId: string };
KindFieldsDescription
recentref, dataset, atAn object this person opened recently.
sharedref, dataset, by, atAn object shared with this person by another device.
enrollment-requestrequestId, person, lapsesAtAnother device of this person asked to enroll, or an Admin has a request to review.
policy-versionversionId, author, submittedAtAn overlay version submitted, waiting on this person’s approval.
custodian-shareregistrationIdA backup key share waiting for this custodian to collect with backupKey.receiveShare.
proof-overduecustodian, dueA custodian’s yearly proveShare is overdue.
ceremonyceremonyIdA break-glass ceremony this person may take part in.
pending-versionref, agent, expiresAtAn AI agent’s version waiting on this delegator’s acceptPending or rejectPending.
backfill-waitingperson, sinceA key domain or record that still waits to give a member’s new device access.
member-without-deviceperson, sinceA member of a key domain with no enrolled device yet.
ownerless-domainroot, datasetA key domain left with no domain owner, waiting for break-glass recovery.
journal-reviewrecipientId, personA device whose offline activity record the Seald Healthcare Cloud refused. It waits for an Owner’s review.
support-grantgrantId, untilCustomer operator access, active until the date given.
hold-liftholdIdA legal hold with one Owner’s signature, waiting for a second to lift it.

Worklist

interface Worklist {
get(): Promise<WorklistItem[]>;
}

Worklist groups the one method above into the namespace client.worklist. See Worklist and events for how to render each kind and refresh on the worklist event.