68 lines
2.2 KiB
Markdown
68 lines
2.2 KiB
Markdown
# 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
|