Kind registry and value conventions
Find the fixed Pigeon record schemas and rules for their fields.
On this page
Registered kinds
The body schema ID on the wire is exactly kind@1.0. Select the kind from the record's kind and verify its schema. Each row below links to strict writer and tolerant reader JSON Schema. The schema index also lists the envelope, tombstone, requests and auxiliary formats.
| Kind schema ID | Body | Write schema | Read schema |
|---|---|---|---|
workout@1.0 | Reusable training template with blocks and prescriptions. | Writer | Reader |
workout_version@1.0 | An immutable workout body and its verified digest. | Writer | Reader |
program@1.0 | A training plan with phases, schedules and progression rules. | Writer | Reader |
program_run@1.0 | A person's execution of a training program. | Writer | Reader |
planned_workout@1.0 | A scheduled workout prescription. | Writer | Reader |
session@1.0 | Performed training, including individual sets. | Writer | Reader |
exercise@1.0 | Exercise definition, variants and catalog references. | Writer | Reader |
exercise_override@1.0 | Scoped changes to an exercise selection or prescription. | Writer | Reader |
modifier_assignment@1.0 | A scoped assignment of modifiers to training. | Writer | Reader |
modifier@1.0 | Exercise modifier definition. | Writer | Reader |
tag@1.0 | Training tag. | Writer | Reader |
category@1.0 | Training category with a symbol and title. | Writer | Reader |
chart@1.0 | Training chart definition. | Writer | Reader |
training_preferences@1.0 | Shared training settings such as units. | Writer | Reader |
app_preferences@1.0 | Account preferences for an app. | Writer | Reader |
device_preferences@1.0 | Preferences for one app installation. | Writer | Reader |
operation_log@1.0 | An immutable app journal record. | Writer | Reader |
place@1.0 | A saved place with location and venue details. | Writer | Reader |
event@1.0 | Event, schedule, venue and ticket information. | Writer | Reader |
recipe@1.0 | Recipe ingredients, quantities, steps and nutrition. | Writer | Reader |
note@1.0 | Structured note with sections, links and entities. | Writer | Reader |
link@1.0 | Saved page and its context. | Writer | Reader |
media@1.0 | Recommendation for a book, show, music or other media. | Writer | Reader |
tab@1.0 | Instrument tablature with chord voicings, measures and source timing. | Writer | Reader |
product@1.0 | A product recommendation with source price and seller observations. | Writer | Reader |
guide@1.0 | Itinerary or recommendations with days and stops. | Writer | Reader |
meal@1.0 | One planned meal and its ingredient snapshots. | Writer | Reader |
grocery_list@1.0 | Account grocery list with independently editable ingredient contributions. | Writer | Reader |
preferences@1.0 | Owner-only Pigeon account settings. | Writer | Reader |
send@1.0 | A submission and its extraction status and results. | Writer | Reader |
notice@1.0 | A notice about a source update or restore. | Writer | Reader |
Modeled values
- Modeled keys and known wire enum values use snake_case. Omit unknown or inapplicable modeled values. A patch can clear a modeled field with
null. State and verbatim journal payloads keep their JSON, including null. - Readers should tolerate unknown fields and enum strings, including inside nested objects. Writers must use declared modeled fields. A descriptive enum such as cuisine or media medium keeps an unfamiliar string as supplied. Lifecycle and status fields use their validated values on write.
- Money uses
{amount, currency}with a nonnegative decimal-string amount, up to four fractional digits, and an uppercase currency from the schema registry. An event price range uses one currency and ordered endpoints. Product root price is the source mention. Offers and observations retain their own seller provenance. - Quantities use
{value, max?, unit}with exact nonnegative decimal strings, an explicit unit andmaxat leastvalue. Keep the source wording when a quantity cannot be represented. Grocerymappingcarries only an opaqueingredient_id. - Use
*_secondsfor seconds. Training duration and distance fields use integer*_msanddistance_mm, including range bounds. The Hub derivesmass_kgand checks it against any supplied mass. - Modeled instants use ISO 8601 with a UTC designator or numeric offset. Local dates use
YYYY-MM-DD, zones are IANA names and wall clocks useHH:mm. A timed event with an instant requires a zone and a compatible offset. All-day events use dates and an exclusive end. Each schedule permits partial evidence. When both endpoints are present the end must follow the start. Derive an event's past phase from its schedule. Keep source-stated recipetotal_seconds. - The schema's
maxItemsbounds each list. The part-addressability map shows which lists have stable IDs and which replace as a whole. Part IDs are unique within the record. Extraction gaps live on the envelope.
Typed references
Use public record IDs in the fields listed in the reference inventory. Some fields take a plain ID, such as meal.recipe_id, grocery_list.items[].meal_id, grocery_list.items[].recipe_id and guide.days[].stops[].ref. Others, such as training pins, take a reference object with record and its schema-defined selectors. venue_id is an opaque venue identity for deduplication and has no public lookup.
On write the Hub checks new links against live targets in the account and the caller's links. It checks the expected kind, selected part and part type or parent, and a pinned hash where the field requires it. Links broken by later deletion can survive with flags. Other writers' protected exercise operation lineage survives edits. The Hub does not revalidate those preserved private targets under the editing connector's scope.
A recipe's step ingredient_ids name local ingredient parts. Removing an ingredient strips existing step links to it. Adding a link to a missing ingredient fails validation. See runtime error codes for rejected references.