Files
hapi/GLOSSARY.md
T

3.9 KiB

hAPI

hAPI ("home API") is a personal, cloud-hosted API serving one household and its automations: finance, fitness, home maintenance, and smart home. Access is restricted to a small, known set of Principals.

Language

Access

Principal: Anything that authenticates to hAPI. Avoid: User, account, client

Person: A human Principal (the Owner, family, friends). Avoid: User, human user, member

Bot: A non-human Principal: a script, automation, or integration such as Home Assistant. Avoid: Service account, machine user, integration account

Owner: The single Person with administrative authority over hAPI and every other Principal. That authority covers Principals and the platform, not other Persons' Personal data. Avoid: Admin, root, superuser

Token: A Principal's secret credential for the API. Avoid: API key, password

Scope: A domain paired with read or write access: the unit of access that Household grants and Bindings carry. Avoid: Permission, privilege

Binding: A Person's consent letting a specific Bot act on that Person's Personal data in one domain, up to a given Scope. Avoid: Delegation, impersonation, link

Household grant: The Owner's permission for a specific Bot to act on one domain's Household data, up to a given Scope. Avoid: Permission, role

Ownership

Household: The single group of Persons that hAPI serves. There is exactly one. Avoid: Family, tenant, organization, group

Household member: A Person who belongs to the Household. A Person can be a Principal without being a Household member (e.g. a friend). Avoid: Family member, resident

Personal data: A record owned by one Person, visible only to that Person (and to Bots bound to them). Avoid: Private data, user data

Household data: A record owned by the Household, visible to every Household member. Avoid: Shared data, common data

Recorded by: The Principal that created or last changed a record, distinct from who owns it. Avoid: Author, owner, creator

Smart home

Job: A request, queued in hAPI, for Home Assistant to carry out an action in the house. Jobs are Household data. Domain code, Persons, and Bots can all create them. Avoid: Task, command, message

Finance

Financial Account: A bank, credit card, or cash account whose money hAPI tracks. It is owned by a Person or by the Household, and its Transactions share that owner. Avoid: Account (on its own), bank account, wallet

Transaction: A single posted movement of money into or out of one Financial Account. Avoid: Entry, charge, payment

Category: A named bucket that Transactions are sorted into, of kind expense, income, or transfer. Household Categories can be used by the Household and by every Household member; Personal Categories only by their Person. Avoid: Tag, label, envelope

Budget: One owner's zero-based monthly plan: expected income assigned across Categories, then rebalanced during the month with Moves. The Household has one, and each Person may have one. Avoid: Plan, envelope

Target: A Budget's standing amount for one Category over a period (monthly, quarterly, or annual), spread into even monthly shares. Avoid: Goal, limit

Allocation: What a Budget assigns to one Category in one month: the Target's monthly share, adjusted by Moves. Avoid: Budgeted amount, envelope

Move: A shift of money from one Category's Allocation to another's within one month of a Budget. It never changes the month's total. Avoid: Transfer (a kind of Category), reallocation

Banked: Said of a Category whose Target period is longer than a month. Its unspent Allocations carry forward as a banked balance until the bill draws it down. Avoid: Sinking fund, rollover, savings

Payee mapping: An owner's remembered link from a payee to a Category, learned from manual categorization and applied to newly ingested Transactions. Avoid: Rule, auto-categorization