Skip to main content

Module dashboard_accounts

Module dashboard_accounts 

Source
Expand description

The operations dashboard’s account view: every account this deployment holds, and one account in full.

Part of crate::dashboard, behind the same operator session as every other control there, and answered whatever the [disclosure] table says: closing bot.did.listAccounts to the public does not close it to the operator. didbot account list and didbot account show call these same routes.

Every field is read from state the deployment already keeps. The last commit is the time in the repository head’s revision, which is a TID. The record count is the record store’s key index. Whether an account wrote is Wrote’s reading of the same two sources.

Structs§

AccountDetail 🔒
One account in full, as the detail shows it.
AccountFilter
What the listing narrows on. All empty lists everything.
AccountRow 🔒
One account, as the listing shows it.
CredentialView 🔒
One bot.did.credential record.
Keeping 🔒
What a conditional hard delete checks each account against: before it takes anything, and again for each account with that account’s writes held off. See Registry::hard_delete_if.
LedgerSummary 🔒
An account’s ledger: how long it is, and its most recent entries.
Narrowing 🔒
The filter, with its names resolved and its span parsed, or the refusal to answer with.
Roster 🔒
Everything the listing needs to know about the whole tree, read once.
Writers 🔒
What the write log says about who wrote.

Enums§

Wrote 🔒
Whether an account ever wrote a record of its own.

Constants§

NEVER_WROTE_MIN_IDLE
The shortest idleFor a neverWrote delete takes, unless [operator] never_wrote_min_idle_secs sets another. An agent’s account is created before its session makes its first write, and an hour is well past that.
RECENT_LEDGER 🔒
How many of an account’s most recent ledger entries the detail carries.

Functions§

authored 🔒
How many records sit in collections the server does not write itself.
credentials 🔒
What logs in as did: its bot.did.credential records.
last_commit 🔒
When did’s last commit was made: the head’s revision is a TID, and a TID carries the microseconds its minter’s clock read.
list 🔒
GET /dashboard/api/accounts
routes
Builds the account routes, merged into the dashboard’s own router.
show 🔒
GET /dashboard/api/accounts/{did}
span_before_now 🔒
The moment span, such as 7d, before now, or the refusal to answer with.
writers 🔒
What the write log says, or None when it cannot be read.
wrote_from 🔒
Wrote for account, given its record counts and writers.