PigeonDocs

Kind registry and value conventions

Find the fixed Pigeon record schemas and rules for their fields.

Developer guideOpen Data & schemas
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 IDBodyWrite schemaRead schema
workout@1.0Reusable training template with blocks and prescriptions.WriterReader
workout_version@1.0An immutable workout body and its verified digest.WriterReader
program@1.0A training plan with phases, schedules and progression rules.WriterReader
program_run@1.0A person's execution of a training program.WriterReader
planned_workout@1.0A scheduled workout prescription.WriterReader
session@1.0Performed training, including individual sets.WriterReader
exercise@1.0Exercise definition, variants and catalog references.WriterReader
exercise_override@1.0Scoped changes to an exercise selection or prescription.WriterReader
modifier_assignment@1.0A scoped assignment of modifiers to training.WriterReader
modifier@1.0Exercise modifier definition.WriterReader
tag@1.0Training tag.WriterReader
category@1.0Training category with a symbol and title.WriterReader
chart@1.0Training chart definition.WriterReader
training_preferences@1.0Shared training settings such as units.WriterReader
app_preferences@1.0Account preferences for an app.WriterReader
device_preferences@1.0Preferences for one app installation.WriterReader
operation_log@1.0An immutable app journal record.WriterReader
place@1.0A saved place with location and venue details.WriterReader
event@1.0Event, schedule, venue and ticket information.WriterReader
recipe@1.0Recipe ingredients, quantities, steps and nutrition.WriterReader
note@1.0Structured note with sections, links and entities.WriterReader
link@1.0Saved page and its context.WriterReader
media@1.0Recommendation for a book, show, music or other media.WriterReader
tab@1.0Instrument tablature with chord voicings, measures and source timing.WriterReader
product@1.0A product recommendation with source price and seller observations.WriterReader
guide@1.0Itinerary or recommendations with days and stops.WriterReader
meal@1.0One planned meal and its ingredient snapshots.WriterReader
grocery_list@1.0Account grocery list with independently editable ingredient contributions.WriterReader
preferences@1.0Owner-only Pigeon account settings.WriterReader
send@1.0A submission and its extraction status and results.WriterReader
notice@1.0A notice about a source update or restore.WriterReader

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 and max at least value. Keep the source wording when a quantity cannot be represented. Grocery mapping carries only an opaque ingredient_id.
  • Use *_seconds for seconds. Training duration and distance fields use integer *_ms and distance_mm, including range bounds. The Hub derives mass_kg and 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 use HH: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 recipe total_seconds.
  • The schema's maxItems bounds 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.