app.starrysky.streak.inventory

A ledger record tracking the accumulation and expenditure of streak freezes. Forms a linked chain via the 'prev' field.

Repository @starrysky.app did:plc:pdftantb2wpnczkhusrixbpy namespace authority
Details · record, key tid
Kindrecord
Record keytid
Authoritystreak.starrysky.app
Indexed

Record

record · key tid

Properties

action

requiredstring

The transaction type occurring in this ledger entry.

  • knownValues: earn | spend | initialize | claim | spend_and_earn

balance

requiredinteger

The total number of freezes available *after* this action is applied.

createdAt

requiredstring · datetime

Timestamp of when this inventory ledger entry was created.

originService

requiredstring

The NSID of the service this inventory applies to.

policy

requiredstring · at-uri

The URI of the policy governing this streak's rules.

prev

string · cid

Link to the previous inventory record in the ledger chain. Null if initializing.

relatedCheckin

string · cid

The CID of the checkin record that earned or spent these freezes.

relatedFreezeGrant

string · cid

The CID of the freezegrant record being claimed.

subject

requiredstring

The name of the habit this inventory ledger belongs to (e.g., 'Daily Coding').

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.