Expand description
Strict decoders and canonical encoders for every record’s FILE form
(ir.mjs). O-records refuse an unknown key by file and key; H-records
keep what they do not model in residue.
Structs§
- Load
Error - A load refusal naming the file and the key (
ir.mjs::LoadError).
Constants§
- CHAT_
TYPES dm|group|channel|thread.- EXECUTION_
COLUMNS - The column list
encode_fire_rowfills, in order. - HERMES_
JOB_ ORDER - Hermes 0.21.0’s canonical key order for a job record.
- OBLIGATION_
COLUMNS - The column list
encode_obligation_rowfills, in order.
Functions§
- credential_
ref_ name - The
.envname for a credential. - decode_
access access.yaml.- decode_
binding_ row - One
bindingsrow of our ownstate.db. - decode_
channel - One
platforms.<name>block; credential VALUES go to the vault, refs into the record. - decode_
context_ from context_from: a job id, a list of job ids, orself(cron/jobs.py:2486-2492).- decode_
env_ value - A worker env value: a string, or
{env}|{dotenv}. - decode_
expiry expiry:block of config.yaml.- decode_
fire_ row - Fire status words on the Hermes boundary.
- decode_
home home:block of config.yaml.- decode_
job - One job record of
cron/jobs.json. - decode_
obligation_ row - One
delivery_obligationsrow. - decode_
repeat - Hermes 0.21.0 stores
repeatas{times: N | null, completed: M}; older bool/number forms load. - decode_
route - One
profile_routes[]entry. - decode_
subscription - One
webhook_subscriptions.jsonentry; the secret’s value goes to the vault. - decode_
surface_ key - A surface key from the IR’s own JSON (
{platform, chat_type, chat_id, thread_id?, participant_id?}). - decode_
worker worker:block of config.yaml.- encode_
access access.yamlas a JSON value (YAML-rendered by the caller); the ttl only when set.- encode_
channel - A platform block; with a vault (a Hermes export) values are inlined, without one the refs are written.
- encode_
fire_ row - The
executionsrow of a fire (Hermes’s own status word; residue fills the process columns). - encode_
job - A job record in Hermes’s canonical key order, mapped fields then residue (
ir.mjs::encodeJob). Returned as an ordered key list becauseserde_json’s object order is a cargo feature. - encode_
obligation_ row - The
delivery_obligationsrow of an obligation, inOBLIGATION_COLUMNSorder. - encode_
route - A route back in Hermes’s form.
- encode_
subscription - A subscription back in Hermes’s form; the secret inlined when a vault is given, else a placeholder.
- encode_
surface_ key - The orchestration’s JSON of a surface key (
kind, as the ontology spells it; absent optionals omitted). - is_
credential_ key - Whether a config key names a credential (
ir.mjs::CREDENTIAL_KEY). - parse_
target - Hermes
deliverword → Target:origin | local | home | <platform>[:<chat_id>[:<thread_id>]]. - placeholder_
ref - The
.envname inside a${dotenv:NAME}/${env:NAME}placeholder. - surface_
key_ string - The map key of a binding:
<platform>|<chat_type>|<chat_id>|<thread_id>|<participant_id>.