{
  "components": {
    "schemas": {
      "Account": {
        "description": "`GET /v1/account`: the owning account.",
        "properties": {
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "AccountApiKey": {
        "description": "The key the request came with, as `GET /v1/account` reports it.",
        "properties": {
          "bounded_by": {
            "description": "What bounds the key: `scopes`, the grant every key type is held to.",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "scopes": {
            "description": "The scopes the key was granted. An empty grant reaches nothing.",
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "type": {
            "type": "string"
          },
          "user": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/AccountKeyUser"
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "type",
          "bounded_by"
        ],
        "type": "object"
      },
      "AccountKeyUser": {
        "description": "The person an API key acts as.",
        "properties": {
          "email": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "AccountShow": {
        "description": "`GET /v1/account`.",
        "properties": {
          "account": {
            "$ref": "#/components/schemas/Account"
          },
          "api_key": {
            "$ref": "#/components/schemas/AccountApiKey"
          }
        },
        "required": [
          "account",
          "api_key"
        ],
        "type": "object"
      },
      "ActionCall": {
        "additionalProperties": false,
        "description": "A write's request ID identifies its retries and its eventual review.",
        "properties": {
          "arguments": {
            "additionalProperties": {
              "$ref": "#/components/schemas/McpProtocolValue"
            },
            "description": "The selected action's named fields, validated by its owner and schema.",
            "propertyNames": {
              "type": "string"
            },
            "type": "object"
          },
          "file_ids": {
            "description": "Existing project Files the person makes available to the action.",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "type": "array"
          },
          "request_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "arguments"
        ],
        "type": "object"
      },
      "ActionCatalog": {
        "properties": {
          "actions": {
            "items": {
              "$ref": "#/components/schemas/ToolDefinition"
            },
            "type": "array"
          }
        },
        "required": [
          "actions"
        ],
        "type": "object"
      },
      "ActionChange": {
        "description": "One value an action changes, as the person reads it: what it holds now and\nwhat it will hold.",
        "properties": {
          "after": {
            "description": "The value after; null where it is cleared.",
            "type": [
              "string",
              "null"
            ]
          },
          "before": {
            "description": "The value now; null where it is empty.",
            "type": [
              "string",
              "null"
            ]
          },
          "label": {
            "description": "What is changed, in the type's own words (\"Title\", \"Priority\", \"Stage\").",
            "type": "string"
          }
        },
        "required": [
          "label",
          "before",
          "after"
        ],
        "type": "object"
      },
      "ActionRecord": {
        "description": "One record a write over many touches, as the conversation lists it.",
        "properties": {
          "changes": {
            "description": "What changes on this record, before and after.",
            "items": {
              "$ref": "#/components/schemas/ActionChange"
            },
            "type": "array"
          },
          "link": {
            "description": "The record's page; null for a record not yet raised.",
            "type": [
              "string",
              "null"
            ]
          },
          "summary": {
            "description": "The record named (\"Punch walk #12: Patch drywall\").",
            "type": "string"
          }
        },
        "required": [
          "summary",
          "link",
          "changes"
        ],
        "type": "object"
      },
      "ActionResult": {
        "properties": {
          "actions": {
            "items": {
              "$ref": "#/components/schemas/AgentAction"
            },
            "type": "array"
          },
          "file_ids": {
            "description": "Project Files supplied as source material for this request.",
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "type": "array"
          },
          "message": {
            "type": "string"
          },
          "refused": {
            "type": "boolean"
          },
          "request_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "review_url": {
            "description": "Opens the caller's review conversation at the Shotwell application origin.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "message",
          "file_ids",
          "actions",
          "refused"
        ],
        "type": "object"
      },
      "ActionStatus": {
        "description": "Where an action stands.",
        "enum": [
          "proposed",
          "applied",
          "discarded",
          "undone",
          "working",
          "failed"
        ],
        "type": "string"
      },
      "AgentAction": {
        "description": "An agent's write, as the conversation shows it.",
        "properties": {
          "changes": {
            "description": "What it changes, before and after; empty for a create or a comment.",
            "items": {
              "$ref": "#/components/schemas/ActionChange"
            },
            "type": "array"
          },
          "error": {
            "description": "Why the last Apply or Undo did not happen; null otherwise.",
            "type": [
              "string",
              "null"
            ]
          },
          "form": {
            "description": "The fields the person fills in before Apply: what a create needs and\nthe assistant was not told. Empty when nothing is missing.",
            "items": {
              "$ref": "#/components/schemas/FormField"
            },
            "type": "array"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "link": {
            "description": "The record's page; null when there is none to open.",
            "type": [
              "string",
              "null"
            ]
          },
          "records": {
            "description": "The records a write over many touches, each with its own changes;\nempty for a write of one record.",
            "items": {
              "$ref": "#/components/schemas/ActionRecord"
            },
            "type": "array"
          },
          "status": {
            "$ref": "#/components/schemas/ActionStatus"
          },
          "summary": {
            "description": "One line naming it (\"Change RFI #12: Leak at grid C/4\").",
            "type": "string"
          },
          "tool": {
            "description": "The tool that asked for it (`update_record`).",
            "type": "string"
          },
          "undoable": {
            "description": "Whether an applied action can still be reversed with Undo.",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "tool",
          "status",
          "summary",
          "link",
          "changes",
          "undoable",
          "error"
        ],
        "type": "object"
      },
      "BatchCreated": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/CreatedProject"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "BatchRequest": {
        "properties": {
          "projects": {
            "items": {
              "$ref": "#/components/schemas/ProjectSeed"
            },
            "maxItems": 250,
            "minItems": 1,
            "type": "array"
          },
          "template": {
            "$ref": "#/components/schemas/TemplatePin"
          }
        },
        "required": [
          "template",
          "projects"
        ],
        "type": "object"
      },
      "BoundedText256": {
        "maxLength": 256,
        "type": "string"
      },
      "CatalogState": {
        "description": "One stage as a list screen reads it.",
        "properties": {
          "ask_by_email": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "color": {
            "type": [
              "string",
              "null"
            ]
          },
          "deletable": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "duty": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/WorkflowDuty",
                "description": "The inbox duty the stage declares, when it does."
              }
            ]
          },
          "key": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "locks": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "on_device": {
            "type": [
              "string",
              "null"
            ]
          },
          "outside": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "resolved": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "terminal": {
            "description": "A stored type document need not say; a stage that says nothing is not the end.",
            "type": "boolean"
          },
          "tone": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "key",
          "label",
          "terminal"
        ],
        "type": "object"
      },
      "CatalogTransition": {
        "description": "One move as a list screen reads it.",
        "properties": {
          "action": {
            "type": [
              "string",
              "null"
            ]
          },
          "comment": {
            "type": [
              "string",
              "null"
            ]
          },
          "from": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "records_field": {
            "description": "Present-and-null is a stored move whose record names no field.",
            "type": [
              "string",
              "null"
            ]
          },
          "records_from": {
            "type": [
              "string",
              "null"
            ]
          },
          "records_value": {
            "$ref": "#/components/schemas/FieldValue"
          },
          "requires": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "revises": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "to": {
            "type": "string"
          },
          "within": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/WorkflowWithin"
              }
            ]
          }
        },
        "required": [
          "from",
          "to",
          "id",
          "label"
        ],
        "type": "object"
      },
      "ClientCapabilities": {
        "description": "The capabilities a client announces; every key the current MCP lifecycle\ndefines, each an object.",
        "properties": {
          "elicitation": {
            "additionalProperties": {
              "$ref": "#/components/schemas/McpProtocolValue"
            },
            "propertyNames": {
              "type": "string"
            },
            "type": [
              "object",
              "null"
            ]
          },
          "experimental": {
            "additionalProperties": {
              "$ref": "#/components/schemas/McpProtocolValue"
            },
            "propertyNames": {
              "type": "string"
            },
            "type": [
              "object",
              "null"
            ]
          },
          "roots": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ListChanged"
              }
            ]
          },
          "sampling": {
            "additionalProperties": {
              "$ref": "#/components/schemas/McpProtocolValue"
            },
            "propertyNames": {
              "type": "string"
            },
            "type": [
              "object",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "ClientInfo": {
        "description": "The client's own name and version, as `initialize` names it.",
        "properties": {
          "name": {
            "type": "string"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "version": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "version"
        ],
        "type": "object"
      },
      "ComparisonChange": {
        "description": "One row's move between two versions, as `Compare#change` writes it.",
        "properties": {
          "after": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ScheduleComparisonRow",
                "description": "The row as the newer version holds it."
              }
            ]
          },
          "before": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ScheduleComparisonRow",
                "description": "The row as the older version held it."
              }
            ]
          },
          "code": {
            "type": [
              "string",
              "null"
            ]
          },
          "finish_moved_min": {
            "description": "Wall-clock minutes the row's finish moved; later is positive.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "key": {
            "type": "string"
          },
          "kinds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "label": {
            "type": [
              "string",
              "null"
            ]
          },
          "start_moved_min": {
            "description": "Only when the row moved between two versions that both had it.",
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "key",
          "kinds"
        ],
        "type": "object"
      },
      "CompletionMetadata": {
        "description": "Optional defaults added only when the modern lifecycle stamps a result.",
        "properties": {
          "cacheScope": {
            "type": [
              "string",
              "null"
            ]
          },
          "resultType": {
            "type": [
              "string",
              "null"
            ]
          },
          "ttlMs": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "CreatedProject": {
        "properties": {
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "labels": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "started_on": {
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "labels"
        ],
        "type": "object"
      },
      "Deleted": {
        "description": "A transport DELETE's existing success body.",
        "properties": {
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "success"
        ],
        "type": "object"
      },
      "DirectUploadHeaders": {
        "additionalProperties": true,
        "description": "The headers a client sends the bytes with: ActiveStorage's own three, and\nthe blob's metadata as `x-amz-meta-*` keys, which the store reads back.",
        "properties": {
          "Content-Disposition": {
            "type": [
              "string",
              "null"
            ]
          },
          "Content-MD5": {
            "type": [
              "string",
              "null"
            ]
          },
          "Content-Type": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "Drawing": {
        "description": "`Api::Public::V1::DrawingSerializer`: one sheet of a reading.",
        "properties": {
          "building_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "drawing_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "elevation": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "navigable": {
            "type": "boolean"
          },
          "page_number": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "scale_factor": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "scale_string": {
            "type": [
              "string",
              "null"
            ]
          },
          "sheet_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "sheet_title": {
            "type": [
              "string",
              "null"
            ]
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "navigable"
        ],
        "type": "object"
      },
      "DrawingList": {
        "description": "`GET /v1/extractions/:extraction_id/drawings`.",
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/Drawing"
            },
            "type": "array"
          },
          "page": {
            "$ref": "#/components/schemas/PublicPage"
          }
        },
        "required": [
          "data",
          "page"
        ],
        "type": "object"
      },
      "DutyMarkup": {
        "additionalProperties": {
          "$ref": "#/components/schemas/FieldValue"
        },
        "description": "The markup document a move or a duty declares: the type's own overhead\npercentage and any other key its author wrote.",
        "properties": {
          "ohp_pct": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/JsonNumber"
              }
            ]
          }
        },
        "type": "object"
      },
      "EditableIn": {
        "description": "Where a field may be edited: every stage, or the stages it names.",
        "oneOf": [
          {
            "type": "string"
          },
          {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        ]
      },
      "Empty": {
        "additionalProperties": false,
        "type": "object"
      },
      "EmptyParams": {
        "additionalProperties": false,
        "description": "A method whose params are absent or an empty object.",
        "type": "object"
      },
      "EmptyResult": {
        "allOf": [
          {
            "$ref": "#/components/schemas/CompletionMetadata"
          }
        ],
        "description": "The empty result of ping or a successful logging-level change."
      },
      "Equipment": {
        "description": "`Api::Public::V1::EquipmentSerializer`: what a reading found.",
        "properties": {
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "display_name": {
            "type": "string"
          },
          "drawing_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "manufacturer": {
            "type": [
              "string",
              "null"
            ]
          },
          "model": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "properties": {
            "$ref": "#/components/schemas/EquipmentProperties"
          }
        },
        "required": [
          "id",
          "display_name",
          "properties"
        ],
        "type": "object"
      },
      "EquipmentBox": {
        "additionalProperties": true,
        "description": "One one-line element's box on its sheet, with an optional rotation.",
        "properties": {
          "h": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "rot": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "w": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "x": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "y": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "EquipmentElement": {
        "additionalProperties": true,
        "description": "One element of a one-line diagram, stored with its panel.",
        "properties": {
          "amps": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "box": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/EquipmentBox"
              }
            ]
          },
          "canonical_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "circuit_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "drawing_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "drawing_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "drawing_page": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "housed_in": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "id": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "kva": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "panel_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "parent_id": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "phase": {
            "type": [
              "string",
              "null"
            ]
          },
          "poles": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "polygon": {
            "items": {
              "$ref": "#/components/schemas/EquipmentPoint"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "polyline": {
            "items": {
              "$ref": "#/components/schemas/EquipmentPoint"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "score": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "source": {
            "type": [
              "string",
              "null"
            ]
          },
          "source_sheet": {
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "type": [
              "string",
              "null"
            ]
          },
          "voltage": {
            "type": [
              "string",
              "null"
            ]
          },
          "voltage_primary": {
            "type": [
              "string",
              "null"
            ]
          },
          "voltage_secondary": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "EquipmentGeometry": {
        "additionalProperties": true,
        "description": "A detection's geometry in its own drawing's coordinates.",
        "properties": {
          "centroid": {
            "items": {
              "format": "double",
              "type": "number"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "closed": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "coordinate_space": {
            "type": [
              "string",
              "null"
            ]
          },
          "filled": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "holes": {
            "items": {
              "items": {
                "items": {
                  "format": "double",
                  "type": "number"
                },
                "type": "array"
              },
              "type": "array"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "points": {
            "items": {
              "items": {
                "format": "double",
                "type": "number"
              },
              "type": "array"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "EquipmentList": {
        "description": "`GET /v1/extractions/:extraction_id/equipment`.",
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/Equipment"
            },
            "type": "array"
          },
          "page": {
            "$ref": "#/components/schemas/PublicPage"
          }
        },
        "required": [
          "data",
          "page"
        ],
        "type": "object"
      },
      "EquipmentPoint": {
        "additionalProperties": true,
        "description": "One point of a one-line element's polyline or polygon.",
        "properties": {
          "x": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "y": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "EquipmentProperties": {
        "additionalProperties": true,
        "description": "The properties stored on an equipment row.",
        "properties": {
          "aic_rating": {
            "type": [
              "string",
              "null"
            ]
          },
          "amps": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "annotation_owned": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "area_id": {
            "description": "The take-off area this mark is counted in, overriding the area its\ncentroid falls inside; on an area's outline, the area it draws.",
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "area_pixels": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "area_sqft": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "associated_text": {
            "type": [
              "string",
              "null"
            ]
          },
          "association_score": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "attributes": {
            "description": "The values of the attributes its catalogue item declares.",
            "items": {
              "$ref": "#/components/schemas/MarkAttribute"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "auto_created": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "bounding_box": {
            "items": {
              "format": "double",
              "type": "number"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "calibration_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "centroid": {
            "items": {
              "format": "double",
              "type": "number"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "circuit": {
            "type": [
              "string",
              "null"
            ]
          },
          "circuit_bbox": {
            "items": {
              "format": "double",
              "type": "number"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "circuit_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "color": {
            "type": [
              "string",
              "null"
            ]
          },
          "conduit_length": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "connection_order": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "coordinate_space": {
            "type": [
              "string",
              "null"
            ]
          },
          "debug_info": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "drawing_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "drawing_local_geometry": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/EquipmentGeometry"
              }
            ]
          },
          "drawing_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "drawing_page": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "element_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "elements": {
            "items": {
              "$ref": "#/components/schemas/EquipmentElement"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "elevation": {
            "type": [
              "string",
              "null"
            ]
          },
          "enclosure": {
            "type": [
              "string",
              "null"
            ]
          },
          "equipment_class_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "equipment_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "fed_from": {
            "type": [
              "string",
              "null"
            ]
          },
          "fed_from_canonical_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "full_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "height_feet": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "height_inches": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "is_annotation": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "is_exterior": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "is_merged": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "kva": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "label_id": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "layer_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "length_feet": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "load_kw": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "location_text": {
            "type": [
              "string",
              "null"
            ]
          },
          "main_breaker_size": {
            "type": [
              "string",
              "null"
            ]
          },
          "measurement_subtype": {
            "type": [
              "string",
              "null"
            ]
          },
          "model": {
            "type": [
              "string",
              "null"
            ]
          },
          "mounting": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "panel_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "perimeter_pixels": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "phase": {
            "type": [
              "string",
              "null"
            ]
          },
          "phases": {
            "type": [
              "string",
              "null"
            ]
          },
          "poles": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "rating": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "reviewed": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "room_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "room_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "schedule_mark": {
            "type": [
              "string",
              "null"
            ]
          },
          "score": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "segment_count": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "source": {
            "type": [
              "string",
              "null"
            ]
          },
          "source_drawings": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "source_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "spans_drawings": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "table_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "type": [
              "string",
              "null"
            ]
          },
          "voltage": {
            "type": [
              "string",
              "null"
            ]
          },
          "voltage_primary": {
            "type": [
              "string",
              "null"
            ]
          },
          "voltage_secondary": {
            "type": [
              "string",
              "null"
            ]
          },
          "volume_cuft": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "width_feet": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "width_inches": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "width_pixels": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "wire_size": {
            "type": [
              "string",
              "null"
            ]
          },
          "wires": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "ExperienceDocument": {
        "description": "`GET /v1/projects/:id/experience`: the persona document a key reads.",
        "properties": {
          "defaults": {
            "additionalProperties": {
              "$ref": "#/components/schemas/PersonaDefaults"
            },
            "propertyNames": {
              "type": "string"
            },
            "type": "object"
          },
          "interest": {
            "$ref": "#/components/schemas/PersonaInterest"
          },
          "notifications": {
            "$ref": "#/components/schemas/PersonaNotifications"
          },
          "profile": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PersonaProfile"
              }
            ]
          },
          "schema_version": {
            "format": "int32",
            "type": "integer"
          },
          "templates": {
            "items": {
              "$ref": "#/components/schemas/PersonaReference"
            },
            "type": "array"
          },
          "views": {
            "items": {
              "$ref": "#/components/schemas/PersonaView"
            },
            "type": "array"
          },
          "warnings": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "workflow_lenses": {
            "additionalProperties": {
              "$ref": "#/components/schemas/PersonaWorkflowLens"
            },
            "propertyNames": {
              "type": "string"
            },
            "type": "object"
          },
          "workflow_refs": {
            "additionalProperties": {
              "$ref": "#/components/schemas/PersonaReference"
            },
            "propertyNames": {
              "type": "string"
            },
            "type": "object"
          },
          "workflows": {
            "additionalProperties": {
              "$ref": "#/components/schemas/WorkflowProjection"
            },
            "propertyNames": {
              "type": "string"
            },
            "type": "object"
          }
        },
        "required": [
          "workflow_refs",
          "workflow_lenses",
          "views",
          "interest",
          "notifications",
          "templates",
          "defaults",
          "workflows",
          "schema_version",
          "warnings"
        ],
        "type": "object"
      },
      "Extraction": {
        "description": "`Api::Public::V1::ExtractionSerializer`: a run's curated fields.",
        "properties": {
          "capabilities": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "completed_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "project": {
            "$ref": "#/components/schemas/ExtractionProject"
          },
          "status": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "capabilities",
          "project",
          "created_at"
        ],
        "type": "object"
      },
      "ExtractionAccepted": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ExtractionSummary"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "ExtractionCapability": {
        "enum": [
          "sheet_index",
          "equipment",
          "schedule_tables",
          "specs",
          "review"
        ],
        "type": "string"
      },
      "ExtractionCreate": {
        "properties": {
          "capabilities": {
            "items": {
              "$ref": "#/components/schemas/ExtractionCapability"
            },
            "maxItems": 5,
            "minItems": 1,
            "type": "array"
          },
          "file_ids": {
            "items": {
              "format": "uuid",
              "type": "string"
            },
            "maxItems": 100,
            "minItems": 1,
            "type": "array"
          },
          "plan_set_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "project_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "project_id",
          "file_ids",
          "capabilities"
        ],
        "type": "object"
      },
      "ExtractionList": {
        "description": "`GET /v1/extractions`.",
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/Extraction"
            },
            "type": "array"
          },
          "page": {
            "$ref": "#/components/schemas/PublicPage"
          }
        },
        "required": [
          "data",
          "page"
        ],
        "type": "object"
      },
      "ExtractionProject": {
        "description": "The project an extraction belongs to, as its serializer reports it.",
        "properties": {
          "address": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "ExtractionShow": {
        "description": "`GET /v1/extractions/:id` and `POST /v1/extractions`.",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/Extraction"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "ExtractionSummary": {
        "description": "One extraction job's progress, without gating the project's document set.",
        "properties": {
          "capabilities": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "status": {
            "type": [
              "string",
              "null"
            ]
          },
          "status_url": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "status_url",
          "capabilities"
        ],
        "type": "object"
      },
      "FieldAdditionalProperties": {
        "description": "A schema's `additionalProperties`: closed/open, or the schema a value obeys.",
        "oneOf": [
          {
            "type": "boolean"
          },
          {
            "$ref": "#/components/schemas/FieldJsonSchema"
          }
        ]
      },
      "FieldCondition": {
        "description": "A condition on a field: the grammar `gink_eng_field_types_api::conditions` reads.",
        "properties": {
          "all": {
            "items": {
              "$ref": "#/components/schemas/FieldCondition"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "any": {
            "items": {
              "$ref": "#/components/schemas/FieldCondition"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "contains": {
            "$ref": "#/components/schemas/FieldValue"
          },
          "equals": {
            "$ref": "#/components/schemas/FieldValue"
          },
          "field": {
            "description": "The field path the condition reads, `item.<key>` included.",
            "type": [
              "string",
              "null"
            ]
          },
          "gt": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "gte": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "in": {
            "items": {
              "$ref": "#/components/schemas/FieldValue"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "lt": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "lte": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "not": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/FieldCondition"
              }
            ]
          },
          "not_equals": {
            "$ref": "#/components/schemas/FieldValue"
          },
          "not_in": {
            "items": {
              "$ref": "#/components/schemas/FieldValue"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "present": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "state_in": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "FieldJsonSchema": {
        "description": "A JSON Schema document a field type declares: a closed set of the keywords\nthe registry's schemas are written in.",
        "properties": {
          "additionalProperties": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/FieldAdditionalProperties"
              }
            ]
          },
          "allOf": {
            "items": {
              "$ref": "#/components/schemas/FieldJsonSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "anyOf": {
            "items": {
              "$ref": "#/components/schemas/FieldJsonSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "const": {
            "$ref": "#/components/schemas/FieldValue"
          },
          "default": {
            "$ref": "#/components/schemas/FieldValue"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "enum": {
            "items": {
              "$ref": "#/components/schemas/FieldValue"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "format": {
            "type": [
              "string",
              "null"
            ]
          },
          "items": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/FieldJsonSchema"
              }
            ]
          },
          "maxItems": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "maxLength": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "maximum": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "minItems": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "minLength": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "minimum": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "oneOf": {
            "items": {
              "$ref": "#/components/schemas/FieldJsonSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "pattern": {
            "type": [
              "string",
              "null"
            ]
          },
          "properties": {
            "additionalProperties": {
              "$ref": "#/components/schemas/FieldJsonSchema"
            },
            "propertyNames": {
              "type": "string"
            },
            "type": [
              "object",
              "null"
            ]
          },
          "propertyNames": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/FieldJsonSchema"
              }
            ]
          },
          "required": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/FieldSchemaType",
                "description": "`string`, or a list of types a value may take."
              }
            ]
          }
        },
        "type": "object"
      },
      "FieldSchemaType": {
        "description": "A schema's `type`: one name, or the names a value may take.",
        "oneOf": [
          {
            "type": "string"
          },
          {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        ]
      },
      "FieldValue": {
        "description": "A value one of the workflow field types stores.",
        "oneOf": [
          {
            "type": "null"
          },
          {
            "type": "boolean"
          },
          {
            "type": "number"
          },
          {
            "type": "string"
          },
          {
            "items": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "additionalProperties": {
                    "$ref": "#/components/schemas/FieldValue"
                  },
                  "type": "object"
                }
              ]
            },
            "type": "array"
          },
          {
            "additionalProperties": {
              "$ref": "#/components/schemas/FieldValue"
            },
            "type": "object"
          }
        ]
      },
      "FileCompleted": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/SourceFile"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "FileReserved": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/SourceFileUpload"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "FormField": {
        "description": "One field of the form a create asks the person to fill in.",
        "properties": {
          "currency_exponent": {
            "description": "Decimal places to shift when storing a displayed currency amount in minor units.",
            "format": "int32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "key": {
            "description": "The type's field key the value is written to.",
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/FormFieldKind"
          },
          "label": {
            "description": "The field as the type names it (\"Priority\").",
            "type": "string"
          },
          "options": {
            "description": "The choices of a select field; empty otherwise.",
            "items": {
              "$ref": "#/components/schemas/FormOption"
            },
            "type": "array"
          },
          "required": {
            "description": "Whether Apply waits for a value.",
            "type": "boolean"
          },
          "value": {
            "description": "What the person filled in; null until they do.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "key",
          "label",
          "kind",
          "value",
          "required"
        ],
        "type": "object"
      },
      "FormFieldKind": {
        "description": "How a form field takes its value.",
        "enum": [
          "text",
          "long_text",
          "select",
          "date",
          "number"
        ],
        "type": "string"
      },
      "FormOption": {
        "description": "One choice of a select field.",
        "properties": {
          "label": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "value",
          "label"
        ],
        "type": "object"
      },
      "InitializeParams": {
        "description": "`initialize`'s params: the version the client speaks, its capabilities and\nits own name and version.",
        "properties": {
          "capabilities": {
            "$ref": "#/components/schemas/ClientCapabilities"
          },
          "clientInfo": {
            "$ref": "#/components/schemas/ClientInfo"
          },
          "protocolVersion": {
            "type": "string"
          }
        },
        "required": [
          "protocolVersion",
          "capabilities",
          "clientInfo"
        ],
        "type": "object"
      },
      "InitializeResult": {
        "allOf": [
          {
            "$ref": "#/components/schemas/CompletionMetadata"
          },
          {
            "properties": {
              "capabilities": {
                "$ref": "#/components/schemas/ServerCapabilities"
              },
              "instructions": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "protocolVersion": {
                "type": "string"
              },
              "serverInfo": {
                "$ref": "#/components/schemas/ServerInfo"
              }
            },
            "required": [
              "protocolVersion",
              "capabilities",
              "serverInfo"
            ],
            "type": "object"
          }
        ],
        "description": "`initialize`: the version the server chose, its capabilities and its name."
      },
      "JsonNumber": {
        "type": "number"
      },
      "JsonRpcError": {
        "description": "A JSON-RPC error object: the code, its message, and any `data`.",
        "properties": {
          "code": {
            "format": "int64",
            "type": "integer"
          },
          "data": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/JsonRpcErrorData"
              }
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ],
        "type": "object"
      },
      "JsonRpcErrorData": {
        "description": "What our refusals put in JSON-RPC `error.data`: the detail line our handler\nwrote, or the protocol-version refusal naming what the server supports.",
        "oneOf": [
          {
            "description": "A refusal's detail, as the method or the envelope wrote it.",
            "type": "string"
          },
          {
            "description": "`-32022`: the versions the server speaks and the one the client asked for.",
            "properties": {
              "requested": {
                "type": "string"
              },
              "supported": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            },
            "required": [
              "supported",
              "requested"
            ],
            "type": "object"
          }
        ]
      },
      "JsonRpcId": {
        "oneOf": [
          {
            "minLength": 1,
            "pattern": "^[A-Za-z0-9_-]+$",
            "type": "string"
          },
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ]
      },
      "JsonRpcParams": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/ToolCallParams"
          },
          {
            "$ref": "#/components/schemas/InitializeParams"
          },
          {
            "$ref": "#/components/schemas/ListParams"
          },
          {
            "$ref": "#/components/schemas/ReadParams"
          },
          {
            "$ref": "#/components/schemas/PromptParams"
          },
          {
            "$ref": "#/components/schemas/SetLevelParams"
          },
          {
            "$ref": "#/components/schemas/EmptyParams"
          }
        ]
      },
      "JsonRpcRefusal": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "$ref": "#/components/schemas/JsonRpcError"
          },
          "id": {
            "$ref": "#/components/schemas/McpProtocolValue"
          },
          "jsonrpc": {
            "enum": [
              "2.0"
            ],
            "type": "string"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcRequest": {
        "description": "One JSON-RPC request: `initialize`, `tools/list`, `tools/call` and the rest\nof the handled methods. `id` is a number, a string or null; `params` is an\nobject, an array or null.",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/JsonRpcId",
            "description": "The request id, held as the exact bytes so a number too large for\n`f64` survives; the document names the string/number/null union."
          },
          "jsonrpc": {
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "method": {
            "type": "string"
          },
          "params": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/JsonRpcParams"
              }
            ]
          }
        },
        "required": [
          "jsonrpc",
          "method"
        ],
        "type": "object"
      },
      "JsonRpcResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "$ref": "#/components/schemas/JsonRpcId"
              },
              "jsonrpc": {
                "enum": [
                  "2.0"
                ],
                "type": "string"
              },
              "result": {
                "$ref": "#/components/schemas/JsonRpcResult"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "error": {
                "$ref": "#/components/schemas/JsonRpcError"
              },
              "id": {
                "$ref": "#/components/schemas/McpProtocolValue"
              },
              "jsonrpc": {
                "enum": [
                  "2.0"
                ],
                "type": "string"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "error"
            ],
            "type": "object"
          }
        ]
      },
      "JsonRpcResult": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/InitializeResult"
          },
          {
            "$ref": "#/components/schemas/ToolsListResult"
          },
          {
            "$ref": "#/components/schemas/ToolCallResult"
          },
          {
            "$ref": "#/components/schemas/ResourcesListResult"
          },
          {
            "$ref": "#/components/schemas/ResourceTemplatesListResult"
          },
          {
            "$ref": "#/components/schemas/PromptsListResult"
          },
          {
            "$ref": "#/components/schemas/ResourcesReadResult"
          },
          {
            "$ref": "#/components/schemas/ServerDiscoverResult"
          },
          {
            "$ref": "#/components/schemas/EmptyResult"
          }
        ]
      },
      "ListChanged": {
        "description": "A capability that announces when its list changes.",
        "properties": {
          "listChanged": {
            "type": "boolean"
          }
        },
        "required": [
          "listChanged"
        ],
        "type": "object"
      },
      "ListParams": {
        "description": "The params a list method takes: where the previous page ended.",
        "properties": {
          "cursor": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "MarkAttribute": {
        "description": "One attribute a mark of a catalogue item carries (finish, keynote, mix),\nby the name the item declares it under.",
        "properties": {
          "name": {
            "type": "string"
          },
          "value": {
            "$ref": "#/components/schemas/MarkAttributeValue"
          }
        },
        "required": [
          "name",
          "value"
        ],
        "type": "object"
      },
      "MarkAttributeValue": {
        "description": "An attribute's value as entered: a number for a `number` attribute, the\ntext (or the chosen value) otherwise.",
        "oneOf": [
          {
            "format": "double",
            "type": "number"
          },
          {
            "type": "string"
          }
        ]
      },
      "McpProtocolValue": {
        "oneOf": [
          {
            "type": "null"
          },
          {
            "type": "boolean"
          },
          {
            "type": "number"
          },
          {
            "type": "string"
          },
          {
            "items": {
              "$ref": "#/components/schemas/McpProtocolValue"
            },
            "type": "array"
          },
          {
            "additionalProperties": {
              "$ref": "#/components/schemas/McpProtocolValue"
            },
            "type": "object"
          }
        ]
      },
      "NonBlank120": {
        "maxLength": 120,
        "minLength": 1,
        "pattern": "\\S",
        "type": "string"
      },
      "NonBlank128": {
        "maxLength": 128,
        "minLength": 1,
        "pattern": "\\S",
        "type": "string"
      },
      "NonBlank255": {
        "maxLength": 255,
        "minLength": 1,
        "pattern": "\\S",
        "type": "string"
      },
      "NonBlank64": {
        "maxLength": 64,
        "minLength": 1,
        "pattern": "\\S",
        "type": "string"
      },
      "OAuthClient": {
        "properties": {
          "client_name": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/NonBlank120"
              }
            ]
          },
          "redirect_uris": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "token_endpoint_auth_method": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "redirect_uris"
        ],
        "type": "object"
      },
      "OAuthError": {
        "properties": {
          "error": {
            "type": "string"
          },
          "error_description": {
            "type": "string"
          }
        },
        "required": [
          "error",
          "error_description"
        ],
        "type": "object"
      },
      "OAuthExchange": {
        "properties": {
          "client_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "client_secret": {
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "type": [
              "string",
              "null"
            ]
          },
          "code_verifier": {
            "type": [
              "string",
              "null"
            ]
          },
          "grant_type": {
            "type": "string"
          },
          "redirect_uri": {
            "type": [
              "string",
              "null"
            ]
          },
          "refresh_token": {
            "type": [
              "string",
              "null"
            ]
          },
          "resource": {
            "type": [
              "string",
              "null"
            ]
          },
          "scope": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/BoundedText256"
              }
            ]
          }
        },
        "required": [
          "grant_type"
        ],
        "type": "object"
      },
      "OAuthRegistered": {
        "allOf": [
          {
            "$ref": "#/components/schemas/OAuthClient"
          },
          {
            "properties": {
              "client_id": {
                "type": "string"
              },
              "client_secret": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "client_secret_expires_at": {
                "description": "A zero expiration identifies a registered secret with no preset expiry.",
                "format": "int64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "grant_types": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "response_types": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            },
            "required": [
              "client_id",
              "grant_types",
              "response_types"
            ],
            "type": "object"
          }
        ]
      },
      "OAuthResource": {
        "properties": {
          "authorization_servers": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "bearer_methods_supported": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "resource": {
            "type": "string"
          },
          "scopes_supported": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "resource",
          "authorization_servers",
          "scopes_supported",
          "bearer_methods_supported"
        ],
        "type": "object"
      },
      "OAuthServer": {
        "properties": {
          "authorization_endpoint": {
            "type": "string"
          },
          "code_challenge_methods_supported": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "grant_types_supported": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "issuer": {
            "type": "string"
          },
          "registration_endpoint": {
            "type": "string"
          },
          "response_types_supported": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "scopes_supported": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "token_endpoint": {
            "type": "string"
          },
          "token_endpoint_auth_methods_supported": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "issuer",
          "authorization_endpoint",
          "token_endpoint",
          "registration_endpoint",
          "response_types_supported",
          "grant_types_supported",
          "code_challenge_methods_supported",
          "token_endpoint_auth_methods_supported",
          "scopes_supported"
        ],
        "type": "object"
      },
      "OAuthToken": {
        "properties": {
          "access_token": {
            "type": "string"
          },
          "expires_in": {
            "format": "int64",
            "type": "integer"
          },
          "refresh_token": {
            "type": "string"
          },
          "scope": {
            "type": "string"
          },
          "token_type": {
            "type": "string"
          }
        },
        "required": [
          "access_token",
          "token_type",
          "expires_in",
          "refresh_token",
          "scope"
        ],
        "type": "object"
      },
      "PersonaDefaults": {
        "description": "The answers a type's raised work starts with, and its visibility default.",
        "properties": {
          "fields": {
            "additionalProperties": {
              "$ref": "#/components/schemas/FieldValue"
            },
            "propertyNames": {
              "type": "string"
            },
            "type": [
              "object",
              "null"
            ]
          },
          "read_scope": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PersonaReadScope"
              }
            ]
          }
        },
        "type": "object"
      },
      "PersonaInterest": {
        "description": "Which types and stages a persona is interested in, and whose work.",
        "properties": {
          "assigned": {
            "description": "`all`, `self` or `self_and_groups`.",
            "type": [
              "string",
              "null"
            ]
          },
          "stages": {
            "additionalProperties": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "description": "Type key to the stages its holder follows.",
            "propertyNames": {
              "type": "string"
            },
            "type": [
              "object",
              "null"
            ]
          },
          "workflow_types": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "PersonaLibraryRef": {
        "description": "The library a persona profile is compiled from.",
        "properties": {
          "item_id": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "version": {
            "format": "int32",
            "type": "integer"
          }
        },
        "required": [
          "kind",
          "key",
          "item_id",
          "version"
        ],
        "type": "object"
      },
      "PersonaNotifications": {
        "description": "The notification preferences a persona sets: the catalog's cadence and\nthe email default each notification entry offers.",
        "properties": {
          "notify.assigned.email": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "notify.commented.email": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "notify.email.cadence": {
            "type": [
              "string",
              "null"
            ]
          },
          "notify.escalated.email": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "notify.late.email": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "notify.mentioned.email": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "notify.state_changed.email": {
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "PersonaProfile": {
        "description": "The persona a person reads a project through.",
        "properties": {
          "company_id": {
            "format": "uuid",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "library_ref": {
            "$ref": "#/components/schemas/PersonaLibraryRef"
          },
          "name": {
            "type": "string"
          },
          "revision": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "key",
          "name",
          "company_id",
          "library_ref",
          "revision"
        ],
        "type": "object"
      },
      "PersonaReadScope": {
        "description": "The visibility new work starts in.",
        "properties": {
          "group_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "kind": {
            "description": "`project`, `personal`, `company` or `group`.",
            "type": "string"
          }
        },
        "required": [
          "kind"
        ],
        "type": "object"
      },
      "PersonaReference": {
        "description": "A persona's versioned reference to a library item: a workflow type, a\nschedule template or a project type.",
        "properties": {
          "item_id": {
            "description": "The library item's id, as stored.",
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "version": {
            "format": "int32",
            "type": "integer"
          }
        },
        "required": [
          "kind",
          "key",
          "item_id",
          "version"
        ],
        "type": "object"
      },
      "PersonaView": {
        "description": "One curated view a persona carries for a workflow list: the views\ncontract's filter and layout, read by the parser a view door uses, so a\nretired v1 key (`stages`, `columns`, `shape`, …) is refused with its path.",
        "properties": {
          "filter": {
            "$ref": "#/components/schemas/ViewFilter"
          },
          "key": {
            "type": "string"
          },
          "layout": {
            "$ref": "#/components/schemas/ViewLayout"
          },
          "name": {
            "type": "string"
          },
          "subject": {
            "description": "The workflow list it opens: `workflow_items:<type key>`.",
            "type": "string"
          }
        },
        "required": [
          "key",
          "name",
          "subject",
          "filter",
          "layout"
        ],
        "type": "object"
      },
      "PersonaWorkflowLens": {
        "description": "One type's lens: which fields, stages and columns the persona leads with.",
        "properties": {
          "columns": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "fields": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "pinned": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "position": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "stages": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "PlanSet": {
        "description": "`Api::Public::V1::PlanSetSerializer`: an upload a project received.",
        "properties": {
          "created_at": {
            "type": "string"
          },
          "current": {
            "type": "boolean"
          },
          "extraction_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "issued_on": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "position": {
            "format": "int32",
            "type": "integer"
          },
          "sheet_count": {
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "name",
          "position",
          "current",
          "sheet_count",
          "created_at"
        ],
        "type": "object"
      },
      "PlanSetList": {
        "description": "`GET /v1/projects/:project_id/plan_sets`.",
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/PlanSet"
            },
            "type": "array"
          },
          "page": {
            "$ref": "#/components/schemas/PublicPage"
          }
        },
        "required": [
          "data",
          "page"
        ],
        "type": "object"
      },
      "Project": {
        "description": "`Api::Public::V1::ProjectSerializer`: a project and its counts.",
        "properties": {
          "address": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "type": "string"
          },
          "field_ready": {
            "type": "boolean"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "serves_field": {
            "type": "boolean"
          },
          "setup_state": {
            "type": "string"
          },
          "sheet_count": {
            "format": "int64",
            "type": "integer"
          },
          "sheet_version_count": {
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "created_at",
          "serves_field",
          "setup_state",
          "field_ready",
          "sheet_count",
          "sheet_version_count"
        ],
        "type": "object"
      },
      "ProjectCreateRequest": {
        "properties": {
          "name": {
            "$ref": "#/components/schemas/NonBlank255"
          },
          "template": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/TemplatePin",
                "description": "Omitted by ordinary creation, which inherits the company's staff-assigned setup."
              }
            ]
          },
          "time_zone": {
            "description": "The creator's IANA zone (the browser's). A company with no zone takes\nit as its own; an unknown zone is ignored, never refused.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "ProjectCreated": {
        "properties": {
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "open_path": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "open_path"
        ],
        "type": "object"
      },
      "ProjectList": {
        "description": "`GET /v1/projects`.",
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/Project"
            },
            "type": "array"
          },
          "page": {
            "$ref": "#/components/schemas/PublicPage"
          }
        },
        "required": [
          "data",
          "page"
        ],
        "type": "object"
      },
      "ProjectSeed": {
        "properties": {
          "labels": {
            "items": {
              "$ref": "#/components/schemas/NonBlank255"
            },
            "maxItems": 100,
            "type": "array"
          },
          "name": {
            "$ref": "#/components/schemas/NonBlank255"
          },
          "started_on": {
            "format": "date",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "ProjectShow": {
        "description": "`GET /v1/projects/:id` and `POST /v1/projects/:id/setup`.",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/Project"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "ProjectedField": {
        "description": "One field as `WorkflowCatalog::Type#field_spec` renders it for the web,\nthe phone and the builder.",
        "properties": {
          "add_label": {
            "type": [
              "string",
              "null"
            ]
          },
          "code_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "currency": {
            "type": [
              "string",
              "null"
            ]
          },
          "editable_in": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/EditableIn",
                "description": "The stages it may be edited in, or `any`."
              }
            ]
          },
          "exponent": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "field": {
            "type": [
              "string",
              "null"
            ]
          },
          "fields": {
            "description": "A `field_set`'s columns, declared in order.",
            "items": {
              "$ref": "#/components/schemas/ProjectedField"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "help": {
            "type": [
              "string",
              "null"
            ]
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/ProjectedItem"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "key": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "max": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "max_length": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "max_rows": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "min": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "multiline": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "multiple": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "options": {
            "items": {
              "$ref": "#/components/schemas/ProjectedOption"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "required": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "required_if": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/FieldCondition"
              }
            ]
          },
          "schedule_impact": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "shown_if": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/FieldCondition"
              }
            ]
          },
          "tab": {
            "description": "The tab of the form this field sits on; none when the form has no tabs.",
            "type": [
              "string",
              "null"
            ]
          },
          "target": {
            "type": [
              "string",
              "null"
            ]
          },
          "target_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "type": "string"
          },
          "unit": {
            "type": [
              "string",
              "null"
            ]
          },
          "units": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "key",
          "type",
          "label"
        ],
        "type": "object"
      },
      "ProjectedFieldSchema": {
        "description": "A resolved field schema: `{fields: […]}` with each code field's list read.",
        "properties": {
          "fields": {
            "items": {
              "$ref": "#/components/schemas/ProjectedField"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "ProjectedItem": {
        "description": "One line of a checklist field.",
        "properties": {
          "id": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "text"
        ],
        "type": "object"
      },
      "ProjectedOption": {
        "description": "One option a select field offers, as the projection resolves it.",
        "properties": {
          "aliases": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "label": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "value",
          "label"
        ],
        "type": "object"
      },
      "PromptDefinition": {
        "description": "One MCP prompt.",
        "properties": {
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "PromptParams": {
        "description": "`prompts/get`'s params.",
        "properties": {
          "arguments": {
            "additionalProperties": {
              "type": "string"
            },
            "propertyNames": {
              "type": "string"
            },
            "type": [
              "object",
              "null"
            ]
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "PromptsListResult": {
        "allOf": [
          {
            "$ref": "#/components/schemas/CompletionMetadata"
          },
          {
            "properties": {
              "prompts": {
                "items": {
                  "$ref": "#/components/schemas/PromptDefinition"
                },
                "type": "array"
              }
            },
            "required": [
              "prompts"
            ],
            "type": "object"
          }
        ],
        "description": "`prompts/list`: the prompts the server offers (none today)."
      },
      "ProposalCreate": {
        "description": "`POST /v1/schedules/:id/proposals`: the what-if change set made on a branch.",
        "properties": {
          "changes": {
            "items": {
              "$ref": "#/components/schemas/ProposedChange"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "links": {
            "items": {
              "$ref": "#/components/schemas/ProposedLink"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ProposalCreated": {
        "description": "`POST /v1/schedules/:id/proposals`: the branch and its comparison.",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ProposalCreatedData"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "ProposalCreatedData": {
        "description": "The branch a proposal made and how it compares with the live schedule.",
        "properties": {
          "branch_id": {
            "format": "uuid",
            "type": "string"
          },
          "comparison": {
            "$ref": "#/components/schemas/ScheduleComparison"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "branch_id",
          "name",
          "comparison"
        ],
        "type": "object"
      },
      "ProposalDays": {
        "description": "A proposal's day count as the door reads it: a number, or the text Rails'\n`to_f` parses.",
        "oneOf": [
          {
            "format": "double",
            "type": "number"
          },
          {
            "type": "string"
          },
          {
            "type": "boolean"
          }
        ]
      },
      "ProposedChange": {
        "description": "One row a proposal changes: the live activity and what moves on it.",
        "properties": {
          "activity_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "constraint_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "constraint_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "duration_days": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ProposalDays",
                "description": "The new duration in days; `null` clears it to zero, absent leaves it alone."
              }
            ]
          }
        },
        "type": "object"
      },
      "ProposedLink": {
        "description": "One new logic tie: the two live activities it joins.",
        "properties": {
          "lag_days": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ProposalDays"
              }
            ]
          },
          "predecessor_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "successor_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "PublicActivityPage": {
        "description": "The cursor page a public activities answer carries.",
        "properties": {
          "has_more": {
            "type": "boolean"
          },
          "limit": {
            "format": "int64",
            "type": "integer"
          },
          "next_after": {
            "type": [
              "string",
              "null"
            ]
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "has_more",
          "limit"
        ],
        "type": "object"
      },
      "PublicDirectUpload": {
        "description": "The presigned target the bytes go to directly.",
        "properties": {
          "expires_in": {
            "format": "int64",
            "type": "integer"
          },
          "headers": {
            "$ref": "#/components/schemas/DirectUploadHeaders"
          },
          "method": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "method",
          "url",
          "headers",
          "expires_in"
        ],
        "type": "object"
      },
      "PublicPage": {
        "description": "`{ next_cursor, has_more }`, the cursor page every public list carries.",
        "properties": {
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "has_more"
        ],
        "type": "object"
      },
      "PublicProjectCreated": {
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ProjectCreated"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "PublicScheduleActivity": {
        "description": "One row a public schedule's activities answer carries.",
        "properties": {
          "code": {
            "type": [
              "string",
              "null"
            ]
          },
          "critical": {
            "type": "boolean"
          },
          "duration_days": {
            "format": "double",
            "type": "number"
          },
          "finish": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "late": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "parent_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "ready": {
            "type": "boolean"
          },
          "start": {
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "type": [
              "string",
              "null"
            ]
          },
          "total_float_days": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "work_item_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "workflow_type": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "kind",
          "duration_days",
          "critical",
          "late",
          "ready"
        ],
        "type": "object"
      },
      "PublicScheduleSummary": {
        "description": "One schedule's public roll-up (`Schedule::PublicView#summary`).",
        "properties": {
          "activities": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "baseline_finish": {
            "type": [
              "string",
              "null"
            ]
          },
          "calculated_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "critical": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "data_date": {
            "type": [
              "string",
              "null"
            ]
          },
          "delay_driver_activity_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "forecast_finish": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "percent_complete": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "primary": {
            "type": "boolean"
          },
          "project_id": {
            "format": "uuid",
            "type": "string"
          },
          "published": {
            "type": "boolean"
          },
          "recalculating": {
            "type": "boolean"
          },
          "start": {
            "type": [
              "string",
              "null"
            ]
          },
          "variance_days": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "project_id",
          "name",
          "primary",
          "published",
          "recalculating"
        ],
        "type": "object"
      },
      "PublicSheetAlias": {
        "description": "One number a sheet's pages were printed, renamed or misread as.",
        "properties": {
          "number": {
            "type": "string"
          },
          "source": {
            "$ref": "#/components/schemas/SheetAliasSource"
          }
        },
        "required": [
          "number",
          "source"
        ],
        "type": "object"
      },
      "PublicSheetVersion": {
        "description": "One reading a sheet has had.",
        "properties": {
          "current": {
            "type": "boolean"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "issued_on": {
            "type": [
              "string",
              "null"
            ]
          },
          "plan_set_id": {
            "format": "uuid",
            "type": "string"
          },
          "plan_set_name": {
            "type": "string"
          },
          "position": {
            "format": "int32",
            "type": "integer"
          },
          "printed_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "printed_title": {
            "type": [
              "string",
              "null"
            ]
          },
          "rank": {
            "format": "int32",
            "type": "integer"
          },
          "superseded_at": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "plan_set_id",
          "plan_set_name",
          "position",
          "current",
          "rank"
        ],
        "type": "object"
      },
      "PublicUploadRequest": {
        "description": "`POST /v1/uploads`: the `upload` document naming the bytes to reserve.",
        "properties": {
          "upload": {
            "$ref": "#/components/schemas/UploadFields"
          }
        },
        "required": [
          "upload"
        ],
        "type": "object"
      },
      "ReadParams": {
        "description": "`resources/read`'s params.",
        "properties": {
          "uri": {
            "type": "string"
          }
        },
        "required": [
          "uri"
        ],
        "type": "object"
      },
      "Refusal": {
        "additionalProperties": true,
        "properties": {
          "code": {
            "type": "string"
          },
          "error": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "request_id": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "Resource": {
        "description": "One MCP resource.",
        "properties": {
          "name": {
            "type": "string"
          },
          "uri": {
            "type": "string"
          }
        },
        "required": [
          "uri",
          "name"
        ],
        "type": "object"
      },
      "ResourceContent": {
        "description": "One resource's content.",
        "properties": {
          "mimeType": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "uri": {
            "type": "string"
          }
        },
        "required": [
          "uri",
          "mimeType",
          "text"
        ],
        "type": "object"
      },
      "ResourceTemplate": {
        "description": "One MCP resource template.",
        "properties": {
          "name": {
            "type": "string"
          },
          "uriTemplate": {
            "type": "string"
          }
        },
        "required": [
          "uriTemplate",
          "name"
        ],
        "type": "object"
      },
      "ResourceTemplatesListResult": {
        "allOf": [
          {
            "$ref": "#/components/schemas/CompletionMetadata"
          },
          {
            "properties": {
              "resourceTemplates": {
                "items": {
                  "$ref": "#/components/schemas/ResourceTemplate"
                },
                "type": "array"
              }
            },
            "required": [
              "resourceTemplates"
            ],
            "type": "object"
          }
        ],
        "description": "`resources/templates/list`: the resource templates (none today)."
      },
      "ResourcesListResult": {
        "allOf": [
          {
            "$ref": "#/components/schemas/CompletionMetadata"
          },
          {
            "properties": {
              "resources": {
                "items": {
                  "$ref": "#/components/schemas/Resource"
                },
                "type": "array"
              }
            },
            "required": [
              "resources"
            ],
            "type": "object"
          }
        ],
        "description": "`resources/list`: the resources the server offers (none today)."
      },
      "ResourcesReadResult": {
        "allOf": [
          {
            "$ref": "#/components/schemas/CompletionMetadata"
          },
          {
            "properties": {
              "contents": {
                "items": {
                  "$ref": "#/components/schemas/ResourceContent"
                },
                "type": "array"
              }
            },
            "required": [
              "contents"
            ],
            "type": "object"
          }
        ],
        "description": "`resources/read`: the contents read (none today)."
      },
      "ScheduleActivities": {
        "description": "`GET /v1/schedules/:id/activities`.",
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/PublicScheduleActivity"
            },
            "type": "array"
          },
          "page": {
            "$ref": "#/components/schemas/PublicActivityPage"
          }
        },
        "required": [
          "data",
          "page"
        ],
        "type": "object"
      },
      "ScheduleCompare": {
        "description": "`GET /v1/schedules/:id/compare`.",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ScheduleComparison"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "ScheduleComparison": {
        "description": "`GET /api/v1/schedules/:id/compare`: two versions side by side with every\nrow's move sorted into kinds.",
        "properties": {
          "changes": {
            "items": {
              "$ref": "#/components/schemas/ComparisonChange"
            },
            "type": "array"
          },
          "counts": {
            "additionalProperties": {
              "format": "int64",
              "type": "integer"
            },
            "description": "How many rows each kind of move touched, by kind.",
            "propertyNames": {
              "type": "string"
            },
            "type": "object"
          },
          "finish_moved_min": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "from": {
            "$ref": "#/components/schemas/VersionHead"
          },
          "numbering": {
            "$ref": "#/components/schemas/ScheduleNumbering",
            "description": "How the schedule numbers its activities, for numbering each side by its\noutline; by row when left out."
          },
          "to": {
            "$ref": "#/components/schemas/VersionHead"
          }
        },
        "required": [
          "from",
          "to",
          "counts",
          "changes"
        ],
        "type": "object"
      },
      "ScheduleComparisonRow": {
        "description": "One row as a comparison reads it: the columns `Compare#change` compares,\nnot the Gantt's activity row.",
        "properties": {
          "code": {
            "type": [
              "string",
              "null"
            ]
          },
          "critical": {
            "type": "boolean"
          },
          "duration_min": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "finish": {
            "type": [
              "string",
              "null"
            ]
          },
          "kind": {
            "type": [
              "string",
              "null"
            ]
          },
          "label": {
            "type": [
              "string",
              "null"
            ]
          },
          "logic": {
            "description": "The row's logic links, as `predecessor:kind:lag` keys.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "percent_complete": {
            "description": "The row's % complete in this version; a group's is its work's, by duration.",
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "start": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "logic",
          "critical"
        ],
        "type": "object"
      },
      "ScheduleList": {
        "description": "`GET /v1/projects/:project_id/schedules`.",
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/PublicScheduleSummary"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "ScheduleNumbering": {
        "description": "How a schedule numbers its activities wherever one is named beside its\nnumber: by row (its place in the plan), by outline (1.2.3, its place in\nthe work breakdown) or by its Activity ID (the row's code).",
        "enum": [
          "row",
          "outline",
          "id"
        ],
        "type": "string"
      },
      "ScheduleOutlineRow": {
        "description": "One row of a version's outline: which row it is, the row it sits under,\nits code, and the role that keeps the schedule's own Start first and its\nFinish last.",
        "properties": {
          "code": {
            "type": [
              "string",
              "null"
            ]
          },
          "key": {
            "type": "string"
          },
          "parent_key": {
            "type": [
              "string",
              "null"
            ]
          },
          "role": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "key"
        ],
        "type": "object"
      },
      "ScheduleShow": {
        "description": "`GET /v1/schedules/:id`.",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/PublicScheduleSummary"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "ScheduleSpec": {
        "description": "The cadence a scheduled type comes round on: the schedule engine's\nnormalised document (`Recurrence::to_document`).",
        "properties": {
          "freq": {
            "description": "`daily`, `weekly` or `monthly`.",
            "type": [
              "string",
              "null"
            ]
          },
          "interval": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "monthday": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "starts_on": {
            "description": "The first day the cadence counts from, ISO 8601.",
            "type": [
              "string",
              "null"
            ]
          },
          "weekdays": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "working_days": {
            "description": "`true`: comes round on the job's working days (its calendar) rather\nthan `weekdays`, which stay the week for a job with no calendar.",
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "ServerCapabilities": {
        "description": "The capabilities every negotiated version has.",
        "properties": {
          "logging": {
            "$ref": "#/components/schemas/EmptyParams"
          },
          "prompts": {
            "$ref": "#/components/schemas/ListChanged"
          },
          "resources": {
            "$ref": "#/components/schemas/ListChanged"
          },
          "tools": {
            "$ref": "#/components/schemas/ListChanged"
          }
        },
        "required": [
          "tools",
          "prompts",
          "resources",
          "logging"
        ],
        "type": "object"
      },
      "ServerDiscoverResult": {
        "allOf": [
          {
            "$ref": "#/components/schemas/CompletionMetadata"
          },
          {
            "properties": {
              "_meta": {
                "$ref": "#/components/schemas/ServerMeta"
              },
              "capabilities": {
                "$ref": "#/components/schemas/ServerCapabilities"
              },
              "instructions": {
                "type": "string"
              },
              "supportedVersions": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            },
            "required": [
              "supportedVersions",
              "capabilities",
              "instructions",
              "_meta"
            ],
            "type": "object"
          }
        ],
        "description": "`server/discover`: the modern lifecycle's version and capability answer."
      },
      "ServerInfo": {
        "description": "The server's own name, title and version.",
        "properties": {
          "name": {
            "type": "string"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "version": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "version"
        ],
        "type": "object"
      },
      "ServerMeta": {
        "description": "The `_meta` a discovery answer carries: the server's own name and version.",
        "properties": {
          "io.modelcontextprotocol/serverInfo": {
            "$ref": "#/components/schemas/ServerInfo"
          }
        },
        "required": [
          "io.modelcontextprotocol/serverInfo"
        ],
        "type": "object"
      },
      "SetLevelParams": {
        "description": "`logging/setLevel`'s params.",
        "properties": {
          "level": {
            "type": "string"
          }
        },
        "required": [
          "level"
        ],
        "type": "object"
      },
      "Sheet": {
        "description": "`Api::Public::V1::SheetSerializer`: a sheet and every reading it has had.",
        "properties": {
          "aliases": {
            "items": {
              "$ref": "#/components/schemas/PublicSheetAlias"
            },
            "type": "array"
          },
          "current_version_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "discipline": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "merged_into_id": {
            "format": "uuid",
            "type": [
              "string",
              "null"
            ]
          },
          "number": {
            "type": "string"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "versions": {
            "items": {
              "$ref": "#/components/schemas/PublicSheetVersion"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "number",
          "aliases",
          "versions"
        ],
        "type": "object"
      },
      "SheetAliasSource": {
        "description": "How a sheet's number was found: printed, renamed, or misread.",
        "enum": [
          "printed",
          "renamed",
          "misread"
        ],
        "type": "string"
      },
      "SheetList": {
        "description": "`GET /v1/projects/:project_id/sheets`.",
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/Sheet"
            },
            "type": "array"
          },
          "page": {
            "$ref": "#/components/schemas/PublicPage"
          }
        },
        "required": [
          "data",
          "page"
        ],
        "type": "object"
      },
      "SourceFile": {
        "properties": {
          "blob_state": {
            "type": "string"
          },
          "byte_size": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "content_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "project_id": {
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "id",
          "project_id",
          "name",
          "blob_state"
        ],
        "type": "object"
      },
      "SourceFileCreateRequest": {
        "properties": {
          "byte_size": {
            "format": "int64",
            "type": "integer"
          },
          "content_type": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "\\S",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "\\S",
            "type": "string"
          },
          "sha256": {
            "maxLength": 64,
            "minLength": 1,
            "pattern": "\\S",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "content_type",
          "byte_size",
          "sha256"
        ],
        "type": "object"
      },
      "SourceFileUpload": {
        "properties": {
          "file": {
            "$ref": "#/components/schemas/SourceFile"
          },
          "upload": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/UploadTarget"
              }
            ]
          }
        },
        "required": [
          "file"
        ],
        "type": "object"
      },
      "StampPrefix": {
        "description": "The prefix a type's mark prints: the word a type names, or the number a\nnumbered form (an OSHA 300 log) prints. A stored document holds either.",
        "oneOf": [
          {
            "type": "string"
          },
          {
            "type": "number"
          }
        ]
      },
      "StructuredToolContent": {
        "oneOf": [
          {
            "description": "The structured detail of a tool refusal.",
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/ActionResult"
          }
        ]
      },
      "TemplatePin": {
        "properties": {
          "key": {
            "$ref": "#/components/schemas/NonBlank64"
          },
          "version": {
            "format": "int32",
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "key",
          "version"
        ],
        "type": "object"
      },
      "ToolCallParams": {
        "description": "`tools/call`'s params: the tool named, and the arguments its own type reads.",
        "properties": {
          "arguments": {
            "additionalProperties": {
              "$ref": "#/components/schemas/McpProtocolValue"
            },
            "description": "Absent for a tool whose arguments are all optional.",
            "propertyNames": {
              "type": "string"
            },
            "type": [
              "object",
              "null"
            ]
          },
          "name": {
            "$ref": "#/components/schemas/NonBlank128"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "ToolCallResult": {
        "allOf": [
          {
            "$ref": "#/components/schemas/CompletionMetadata"
          },
          {
            "properties": {
              "content": {
                "items": {
                  "$ref": "#/components/schemas/ToolContent"
                },
                "type": "array"
              },
              "isError": {
                "type": "boolean"
              },
              "structuredContent": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/StructuredToolContent"
                  }
                ]
              }
            },
            "required": [
              "content",
              "isError"
            ],
            "type": "object"
          }
        ],
        "description": "`tools/call`: one content block per answer, or a refusal's detail."
      },
      "ToolContent": {
        "description": "One block of a tool answer.",
        "properties": {
          "text": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "text"
        ],
        "type": "object"
      },
      "ToolDefinition": {
        "description": "One tool as `tools/list` advertises it.",
        "properties": {
          "description": {
            "type": "string"
          },
          "inputSchema": {
            "$ref": "#/components/schemas/ToolInputSchema"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "description",
          "inputSchema"
        ],
        "type": "object"
      },
      "ToolInputSchema": {
        "description": "A JSON Schema document a field type declares: a closed set of the keywords\nthe registry's schemas are written in.",
        "properties": {
          "additionalProperties": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/FieldAdditionalProperties"
              }
            ]
          },
          "allOf": {
            "items": {
              "$ref": "#/components/schemas/FieldJsonSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "anyOf": {
            "items": {
              "$ref": "#/components/schemas/FieldJsonSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "const": {
            "$ref": "#/components/schemas/FieldValue"
          },
          "default": {
            "$ref": "#/components/schemas/FieldValue"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "enum": {
            "items": {
              "$ref": "#/components/schemas/FieldValue"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "format": {
            "type": [
              "string",
              "null"
            ]
          },
          "items": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/FieldJsonSchema"
              }
            ]
          },
          "maxItems": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "maxLength": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "maximum": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "minItems": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "minLength": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "minimum": {
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "oneOf": {
            "items": {
              "$ref": "#/components/schemas/FieldJsonSchema"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "pattern": {
            "type": [
              "string",
              "null"
            ]
          },
          "properties": {
            "additionalProperties": {
              "$ref": "#/components/schemas/FieldJsonSchema"
            },
            "propertyNames": {
              "type": "string"
            },
            "type": [
              "object",
              "null"
            ]
          },
          "propertyNames": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/FieldJsonSchema"
              }
            ]
          },
          "required": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/FieldSchemaType",
                "description": "`string`, or a list of types a value may take."
              }
            ]
          }
        },
        "type": "object"
      },
      "ToolsListResult": {
        "allOf": [
          {
            "$ref": "#/components/schemas/CompletionMetadata"
          },
          {
            "properties": {
              "tools": {
                "items": {
                  "$ref": "#/components/schemas/ToolDefinition"
                },
                "type": "array"
              }
            },
            "required": [
              "tools"
            ],
            "type": "object"
          }
        ],
        "description": "`tools/list`: every tool, in the order the server offers them."
      },
      "TransportAccepted": {
        "type": "null"
      },
      "TransportResponse": {
        "description": "The shared transport door can return a JSON-RPC reply or acknowledge DELETE.\nMethod selection remains a transport rule rather than a schema discriminator.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/JsonRpcResponse"
          },
          {
            "$ref": "#/components/schemas/Deleted"
          }
        ]
      },
      "Unknown": {
        "additionalProperties": true,
        "description": "Keys a stored document carried that its type does not name, kept and sent back unchanged.",
        "type": "object"
      },
      "Upload": {
        "description": "`POST /v1/uploads`: the reserved blob and its direct-upload target.",
        "properties": {
          "byte_size": {
            "format": "int64",
            "type": "integer"
          },
          "content_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "direct_upload": {
            "$ref": "#/components/schemas/PublicDirectUpload"
          },
          "filename": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "filename",
          "byte_size",
          "direct_upload"
        ],
        "type": "object"
      },
      "UploadByteSize": {
        "oneOf": [
          {
            "type": "number"
          },
          {
            "type": "string"
          }
        ]
      },
      "UploadFields": {
        "description": "The permitted fields of the `upload` document. The size may be sent as a\nnumber or as its text, as Rails' string cast reads both.",
        "properties": {
          "byte_size": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/UploadByteSize"
              }
            ]
          },
          "checksum": {
            "type": [
              "string",
              "null"
            ]
          },
          "content_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "filename": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "UploadHeaders": {
        "description": "The headers a file's presigned PUT requires.",
        "properties": {
          "Content-Type": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "UploadShow": {
        "description": "`POST /v1/uploads`.",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/Upload"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "UploadTarget": {
        "description": "One presigned PUT a client sends bytes with.",
        "properties": {
          "headers": {
            "$ref": "#/components/schemas/UploadHeaders"
          },
          "method": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "method",
          "url",
          "headers"
        ],
        "type": "object"
      },
      "VersionHead": {
        "description": "The head of one side of a comparison.",
        "properties": {
          "finish": {
            "type": [
              "string",
              "null"
            ]
          },
          "label": {
            "type": "string"
          },
          "outline": {
            "description": "The version's rows in plan order among their siblings, for numbering\neach one as that version held it.",
            "items": {
              "$ref": "#/components/schemas/ScheduleOutlineRow"
            },
            "type": "array"
          }
        },
        "required": [
          "label"
        ],
        "type": "object"
      },
      "ViewBoard": {
        "description": "A board's columns and swimlanes: `state`, `assignee` or a single-choice `field:<key>`.",
        "properties": {
          "column_by": {
            "type": "string"
          },
          "hide_empty": {
            "type": "boolean"
          },
          "swimlane_by": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "column_by",
          "hide_empty"
        ],
        "type": "object"
      },
      "ViewCardSize": {
        "description": "How much a card or row says.",
        "enum": [
          "compact",
          "expanded"
        ],
        "type": "string"
      },
      "ViewDirection": {
        "enum": [
          "asc",
          "desc"
        ],
        "type": "string"
      },
      "ViewFilter": {
        "description": "Which items a view shows: a slice (workflow lists only; every other list\nis `all`), then rules combined by `match`.",
        "properties": {
          "match": {
            "$ref": "#/components/schemas/ViewMatch"
          },
          "rules": {
            "items": {
              "$ref": "#/components/schemas/ViewFilterNode"
            },
            "type": "array"
          },
          "scope": {
            "$ref": "#/components/schemas/ViewScope"
          }
        },
        "required": [
          "scope",
          "match",
          "rules"
        ],
        "type": "object"
      },
      "ViewFilterGroup": {
        "description": "Rules combined by their own `match`. Its members are plain rules, never groups.",
        "properties": {
          "match": {
            "$ref": "#/components/schemas/ViewMatch"
          },
          "rules": {
            "items": {
              "$ref": "#/components/schemas/ViewFilterRule"
            },
            "type": "array"
          }
        },
        "required": [
          "match",
          "rules"
        ],
        "type": "object"
      },
      "ViewFilterNode": {
        "description": "A top-level member of a filter: a rule, or a group of rules (one level).",
        "oneOf": [
          {
            "$ref": "#/components/schemas/ViewFilterRule"
          },
          {
            "$ref": "#/components/schemas/ViewFilterGroup"
          }
        ]
      },
      "ViewFilterRule": {
        "description": "field · op · value.",
        "properties": {
          "field": {
            "description": "A field the list's shape declares (`rule_fields`): a workflow\nbuilt-in or `field:<key>`, or another list's own field.",
            "type": "string"
          },
          "op": {
            "$ref": "#/components/schemas/ViewOp"
          },
          "value": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ViewFilterValue"
              }
            ]
          }
        },
        "required": [
          "field",
          "op"
        ],
        "type": "object"
      },
      "ViewFilterValue": {
        "anyOf": [
          {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          {
            "type": "string"
          },
          {
            "type": "number"
          },
          {
            "type": "boolean"
          },
          {
            "properties": {
              "from": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  }
                ]
              },
              "to": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  }
                ]
              }
            },
            "type": "object"
          },
          {
            "properties": {
              "n": {
                "format": "int32",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "rel": {
                "$ref": "#/components/schemas/ViewRel"
              }
            },
            "required": [
              "rel"
            ],
            "type": "object"
          }
        ]
      },
      "ViewGroupBy": {
        "description": "A list's sections, by one of its shape's group keys (a workflow list's\n`state`, `assignee`, `due` or a single-choice `field:<key>`).",
        "properties": {
          "by": {
            "type": "string"
          }
        },
        "required": [
          "by"
        ],
        "type": "object"
      },
      "ViewLabelSide": {
        "description": "Which side of a Gantt bar a label is written on, or off.",
        "enum": [
          "off",
          "left",
          "right",
          "above",
          "below"
        ],
        "type": "string"
      },
      "ViewLayout": {
        "description": "How a view reads. Which types, columns, sorts, groups, board keys,\ntimescales and windows a list takes is its shape's (`shape::ViewShape`).",
        "properties": {
          "bar_labels": {
            "description": "Which bars a schedule's Gantt labels: true is every bar, false none,\nabsent only the hovered or selected bar and the bars linked to it.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "board": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ViewBoard",
                "description": "A workflow board's columns and swimlanes; absent is columns by state."
              }
            ]
          },
          "card_size": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ViewCardSize",
                "description": "How much a workflow list's board card or row says: compact is the\ntitle over one line of its fields, expanded adds the description and\ngives the fields room; absent is compact."
              }
            ]
          },
          "data_date_line": {
            "description": "Whether a schedule's Gantt draws its data date, the latest version's\nline; absent is drawn.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "fields": {
            "description": "The columns after the list's fixed ones, in order (a board's or cards'\nfields). A fixed column appears only to keep its width: it is always\nshown, first, wherever it is listed.",
            "items": {
              "$ref": "#/components/schemas/ViewLayoutField"
            },
            "type": "array"
          },
          "group": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ViewGroupBy",
                "description": "Sections by this key; null for none."
              }
            ]
          },
          "name_label": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ViewLabelSide",
                "description": "Where a schedule's Gantt writes each activity's name beside its bar;\nabsent is right of it."
              }
            ]
          },
          "sort": {
            "description": "At most the shape's `max_sorts`; empty is the list's own order.",
            "items": {
              "$ref": "#/components/schemas/ViewSortKey"
            },
            "type": "array"
          },
          "split_width": {
            "description": "A schedule's split: how wide its grid is, in CSS pixels, where the\nperson dragged the line between the grid and the timeline; absent is\nas wide as its columns.",
            "format": "int32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "start_label": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ViewLabelSide",
                "description": "Where a schedule's Gantt writes each activity's start date beside its\nbar; absent is left of it."
              }
            ]
          },
          "timescale": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ViewTimescale",
                "description": "A schedule's split or gantt timescale."
              }
            ]
          },
          "type": {
            "$ref": "#/components/schemas/ViewLayoutType"
          },
          "window_weeks": {
            "description": "A lookahead's window from the data date, in weeks.",
            "format": "int32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "type",
          "fields",
          "sort"
        ],
        "type": "object"
      },
      "ViewLayoutField": {
        "description": "A column: one of the list's column ids (`state`, `due`, `field:<key>`, `status`, …).",
        "properties": {
          "id": {
            "type": "string"
          },
          "width": {
            "format": "int32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "ViewLayoutType": {
        "description": "How a list is drawn. Each list's shape names the ones it takes: a\nworkflow list `list`/`board` (`calendar` on a type that recurs, `groups`\non one that gathers); projects `list`/`cards`; a schedule\n`split`/`gantt`/`list`/`canvas`; a lookahead `board`/`list`; company\nactivities `list`/`timeline`.",
        "enum": [
          "list",
          "cards",
          "board",
          "calendar",
          "groups",
          "timeline",
          "split",
          "gantt",
          "canvas"
        ],
        "type": "string"
      },
      "ViewMatch": {
        "enum": [
          "all",
          "any"
        ],
        "type": "string"
      },
      "ViewOp": {
        "description": "A rule's condition. Which ones a field takes is its kind's (`Kind::ops`).",
        "enum": [
          "in",
          "not_in",
          "empty",
          "not_empty",
          "contains",
          "not_contains",
          "eq",
          "ne",
          "lt",
          "lte",
          "gt",
          "gte",
          "between",
          "on",
          "before",
          "after",
          "within",
          "overdue",
          "complete",
          "incomplete",
          "progress_gte",
          "is"
        ],
        "type": "string"
      },
      "ViewRel": {
        "description": "`today`; `this_week` (today … today+7); `next_days n` (today … today+n);\n`last_days n` (today−n … today).",
        "enum": [
          "today",
          "this_week",
          "next_days",
          "last_days"
        ],
        "type": "string"
      },
      "ViewScope": {
        "description": "`open`: not archived, in a state neither terminal nor resolved.\n`settled`: such a state, or archived. `all`: not archived.\nThese are workflow semantics; every other list is `all`.",
        "enum": [
          "open",
          "settled",
          "all"
        ],
        "type": "string"
      },
      "ViewSortKey": {
        "description": "A sort the list's shape offers (a workflow list's number, title, due,\nstate, period, created, updated or `field:<key>`).",
        "properties": {
          "by": {
            "type": "string"
          },
          "dir": {
            "$ref": "#/components/schemas/ViewDirection"
          }
        },
        "required": [
          "by",
          "dir"
        ],
        "type": "object"
      },
      "ViewTimescale": {
        "description": "A schedule's timescale on its split and gantt layouts; `Fit` draws the\nwhole plan across the screen, whatever its length.",
        "enum": [
          "day",
          "week",
          "month",
          "fit"
        ],
        "type": "string"
      },
      "ViewWithin": {
        "properties": {
          "n": {
            "format": "int32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "rel": {
            "$ref": "#/components/schemas/ViewRel"
          }
        },
        "required": [
          "rel"
        ],
        "type": "object"
      },
      "WorkflowDuty": {
        "additionalProperties": true,
        "description": "The duty a workflow stage declares: what its inbox page asks, shows and\noffers, in the workflow definition's own vocabulary.",
        "properties": {
          "ask": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "brief": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "decline": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "document": {
            "type": [
              "string",
              "null"
            ]
          },
          "kind": {
            "type": [
              "string",
              "null"
            ]
          },
          "markup": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/DutyMarkup"
              }
            ]
          },
          "outcomes": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "required": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "WorkflowGroups": {
        "description": "The packages a type files its work under (`{}` for a type with none).",
        "properties": {
          "defaults": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "label": {
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "WorkflowListDisplay": {
        "description": "How a type's log is organised (§13.11).",
        "properties": {
          "badges": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "citation": {
            "type": [
              "string",
              "null"
            ]
          },
          "columns": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "filter_by": {
            "type": [
              "string",
              "null"
            ]
          },
          "group_by": {
            "type": [
              "string",
              "null"
            ]
          },
          "number_by": {
            "type": [
              "string",
              "null"
            ]
          },
          "search_fields": {
            "items": {
              "type": "string"
            },
            "type": [
              "array",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "WorkflowProjection": {
        "description": "One type's projection as a persona document's `workflows` map carries it:\nthe catalog row the lists and the phone read.",
        "properties": {
          "color": {
            "type": [
              "string",
              "null"
            ]
          },
          "display_name": {
            "type": "string"
          },
          "field_schema": {
            "$ref": "#/components/schemas/ProjectedFieldSchema"
          },
          "fill": {
            "type": "boolean"
          },
          "groups": {
            "$ref": "#/components/schemas/WorkflowGroups"
          },
          "icon": {
            "type": [
              "string",
              "null"
            ]
          },
          "list_display": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/WorkflowListDisplay"
              }
            ]
          },
          "listed": {
            "type": "boolean"
          },
          "min_app_version": {
            "type": [
              "string",
              "null"
            ]
          },
          "number_by": {
            "type": [
              "string",
              "null"
            ]
          },
          "pinned": {
            "type": "boolean"
          },
          "position": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "prefix": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/StampPrefix",
                "description": "A word, or the number a numbered form prints (the OSHA 300 log's `300`)."
              }
            ]
          },
          "read_only": {
            "type": "boolean"
          },
          "references": {
            "items": {
              "$ref": "#/components/schemas/WorkflowReference"
            },
            "type": "array"
          },
          "schedule": {
            "$ref": "#/components/schemas/ScheduleSpec"
          },
          "shape": {
            "type": [
              "string",
              "null"
            ]
          },
          "states": {
            "items": {
              "$ref": "#/components/schemas/CatalogState"
            },
            "type": "array"
          },
          "transitions": {
            "items": {
              "$ref": "#/components/schemas/CatalogTransition"
            },
            "type": "array"
          },
          "type_key": {
            "type": "string"
          }
        },
        "required": [
          "type_key",
          "display_name",
          "fill",
          "states",
          "transitions",
          "field_schema",
          "references",
          "groups",
          "schedule",
          "pinned",
          "read_only",
          "listed"
        ],
        "type": "object"
      },
      "WorkflowReference": {
        "description": "One target a type may point at.",
        "properties": {
          "label": {
            "type": "string"
          },
          "target": {
            "type": "string"
          }
        },
        "required": [
          "target",
          "label"
        ],
        "type": "object"
      },
      "WorkflowWithin": {
        "additionalProperties": true,
        "description": "A move's stage clock: how many working days work may sit before it is late.",
        "properties": {
          "business_days": {
            "format": "int64",
            "type": "integer"
          },
          "chase_every": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          },
          "label": {
            "type": [
              "string",
              "null"
            ]
          },
          "warn_before": {
            "format": "int64",
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "business_days"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "description": "Use a Shotwell API key or an OAuth access token issued for the public REST API. Project actions require the corresponding personal grants.",
        "scheme": "bearer",
        "type": "http"
      },
      "OAuthClientBasic": {
        "description": "Client authentication for clients registered with client_secret_basic.",
        "scheme": "basic",
        "type": "http"
      }
    }
  },
  "info": {
    "title": "SHOTWELL API",
    "version": "1.0.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/.well-known/oauth-authorization-server": {
      "get": {
        "operationId": "oauth#server",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthServer"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "security": [],
        "summary": "Authorization server metadata",
        "tags": [
          "oauth#server"
        ],
        "x-gink-door": "oauth#server",
        "x-gink-requires": [
          "public"
        ]
      }
    },
    "/.well-known/oauth-protected-resource": {
      "get": {
        "operationId": "oauth#resource__GET_well_known_oauth_protected_resource",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthResource"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "security": [],
        "summary": "Protected resource metadata",
        "tags": [
          "oauth#resource"
        ],
        "x-gink-door": "oauth#resource",
        "x-gink-requires": [
          "public"
        ]
      }
    },
    "/.well-known/oauth-protected-resource/mcp": {
      "get": {
        "operationId": "oauth#resource__GET_well_known_oauth_protected_resource_mcp",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthResource"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "security": [],
        "summary": "Protected resource metadata",
        "tags": [
          "oauth#resource"
        ],
        "x-gink-door": "oauth#resource",
        "x-gink-requires": [
          "public"
        ]
      }
    },
    "/.well-known/oauth-protected-resource/v1": {
      "get": {
        "operationId": "oauth#resource__GET_well_known_oauth_protected_resource_v1",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthResource"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "security": [],
        "summary": "Protected resource metadata",
        "tags": [
          "oauth#resource"
        ],
        "x-gink-door": "oauth#resource",
        "x-gink-requires": [
          "public"
        ]
      }
    },
    "/mcp": {
      "delete": {
        "operationId": "api/public/mcp#handle__DELETE_mcp",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransportResponse"
                }
              }
            },
            "description": "OK"
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransportAccepted"
                }
              }
            },
            "description": "Accepted"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Refusal"
                    },
                    {
                      "$ref": "#/components/schemas/JsonRpcRefusal"
                    }
                  ]
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Refusal"
                    },
                    {
                      "$ref": "#/components/schemas/JsonRpcRefusal"
                    }
                  ]
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "summary": "The public API's MCP server (stateless streamable HTTP)",
        "tags": [
          "public"
        ],
        "x-gink-door": "api/public/mcp#handle",
        "x-gink-requires": [
          "handler: the public API, answered to an API key on the caller’s account"
        ]
      },
      "get": {
        "operationId": "api/public/mcp#handle__GET_mcp",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransportResponse"
                }
              }
            },
            "description": "OK"
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransportAccepted"
                }
              }
            },
            "description": "Accepted"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Refusal"
                    },
                    {
                      "$ref": "#/components/schemas/JsonRpcRefusal"
                    }
                  ]
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Refusal"
                    },
                    {
                      "$ref": "#/components/schemas/JsonRpcRefusal"
                    }
                  ]
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "summary": "The public API's MCP server (stateless streamable HTTP)",
        "tags": [
          "public"
        ],
        "x-gink-door": "api/public/mcp#handle",
        "x-gink-requires": [
          "handler: the public API, answered to an API key on the caller’s account"
        ]
      },
      "post": {
        "operationId": "api/public/mcp#handle__POST_mcp",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JsonRpcRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransportResponse"
                }
              }
            },
            "description": "OK"
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransportAccepted"
                }
              }
            },
            "description": "Accepted"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Refusal"
                    },
                    {
                      "$ref": "#/components/schemas/JsonRpcRefusal"
                    }
                  ]
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Refusal"
                    },
                    {
                      "$ref": "#/components/schemas/JsonRpcRefusal"
                    }
                  ]
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "summary": "The public API's MCP server (stateless streamable HTTP)",
        "tags": [
          "public"
        ],
        "x-gink-door": "api/public/mcp#handle",
        "x-gink-requires": [
          "handler: the public API, answered to an API key on the caller’s account"
        ]
      }
    },
    "/oauth/authorize": {
      "get": {
        "operationId": "oauth#authorize",
        "parameters": [
          {
            "in": "query",
            "name": "client_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "redirect_uri",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "response_type",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "code_challenge",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "code_challenge_method",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "resource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "scope",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "state",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "303": {
            "description": "No content"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "security": [],
        "summary": "Open the Shotwell consent screen for an authorization code with PKCE S256",
        "tags": [
          "oauth#authorize"
        ],
        "x-gink-door": "oauth#authorize",
        "x-gink-requires": [
          "public"
        ]
      }
    },
    "/oauth/register": {
      "post": {
        "operationId": "oauth#register",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OAuthClient"
              }
            }
          }
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthRegistered"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "security": [],
        "summary": "Register an OAuth client",
        "tags": [
          "oauth#register"
        ],
        "x-gink-door": "oauth#register",
        "x-gink-requires": [
          "public"
        ]
      }
    },
    "/oauth/token": {
      "post": {
        "operationId": "oauth#token",
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/OAuthExchange"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthToken"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "description": "Accepted"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError"
                }
              }
            },
            "description": "Accepted"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "security": [
          {},
          {
            "OAuthClientBasic": []
          }
        ],
        "summary": "Exchange a code or rotate a refresh token",
        "tags": [
          "oauth#token"
        ],
        "x-gink-door": "oauth#token",
        "x-gink-requires": [
          "public"
        ]
      }
    },
    "/v1/account": {
      "get": {
        "operationId": "api/public/v1/accounts#show",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountShow"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "summary": "The key the request came with and the account it belongs to",
        "tags": [
          "public"
        ],
        "x-gink-door": "api/public/v1/accounts#show",
        "x-gink-requires": [
          "handler: the public API, answered to an API key on the caller’s account"
        ]
      }
    },
    "/v1/extractions": {
      "get": {
        "operationId": "api/public/v1/extractions#index",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtractionList"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "summary": "List the extractions the key may read",
        "tags": [
          "public"
        ],
        "x-gink-door": "api/public/v1/extractions#index",
        "x-gink-requires": [
          "handler: the public API, answered to an API key on the caller’s account"
        ]
      },
      "post": {
        "operationId": "api/public/v1/extractions#create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExtractionCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtractionAccepted"
                }
              }
            },
            "description": "Accepted"
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtractionAccepted"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "summary": "Start selected capabilities on canonical project Files",
        "tags": [
          "public"
        ],
        "x-gink-door": "api/public/v1/extractions#create",
        "x-gink-requires": [
          "handler: the public API, answered to an API key on the caller’s account"
        ]
      }
    },
    "/v1/extractions/{extraction_id}/drawings": {
      "get": {
        "operationId": "api/public/v1/drawings#index",
        "parameters": [
          {
            "in": "path",
            "name": "extraction_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DrawingList"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "summary": "List a reading's drawings",
        "tags": [
          "public"
        ],
        "x-gink-door": "api/public/v1/drawings#index",
        "x-gink-requires": [
          "handler: the public API, answered to an API key on the caller’s account"
        ]
      }
    },
    "/v1/extractions/{extraction_id}/equipment": {
      "get": {
        "operationId": "api/public/v1/equipment#index",
        "parameters": [
          {
            "in": "path",
            "name": "extraction_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "category",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EquipmentList"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "summary": "List what a reading found on its drawings",
        "tags": [
          "public"
        ],
        "x-gink-door": "api/public/v1/equipment#index",
        "x-gink-requires": [
          "handler: the public API, answered to an API key on the caller’s account"
        ]
      }
    },
    "/v1/extractions/{id}": {
      "get": {
        "operationId": "api/public/v1/extractions#show",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtractionShow"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "summary": "One extraction the key may read",
        "tags": [
          "public"
        ],
        "x-gink-door": "api/public/v1/extractions#show",
        "x-gink-requires": [
          "handler: the public API, answered to an API key on the caller’s account"
        ]
      }
    },
    "/v1/projects": {
      "get": {
        "operationId": "api/public/v1/projects#index",
        "parameters": [
          {
            "in": "query",
            "name": "name",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectList"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "summary": "List the projects the key may read",
        "tags": [
          "public"
        ],
        "x-gink-door": "api/public/v1/projects#index",
        "x-gink-requires": [
          "handler: the public API, answered to an API key on the caller’s account"
        ]
      },
      "post": {
        "operationId": "api/public/v1/projects#create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectCreateRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicProjectCreated"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "summary": "Create a project from an exact published template pin",
        "tags": [
          "public"
        ],
        "x-gink-door": "api/public/v1/projects#create",
        "x-gink-requires": [
          "handler: an active projects:write key, with fresh own-company or account-key authority"
        ]
      }
    },
    "/v1/projects/batch": {
      "post": {
        "operationId": "api/public/v1/projects#batch",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchCreated"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "summary": "Create an atomic batch of named project starts from one exact template pin",
        "tags": [
          "public"
        ],
        "x-gink-door": "api/public/v1/projects#batch",
        "x-gink-requires": [
          "handler: an active projects:write key, with fresh own-company or account-key authority for an atomic pinned-template batch"
        ]
      }
    },
    "/v1/projects/{id}": {
      "get": {
        "operationId": "api/public/v1/projects#show",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectShow"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "summary": "One project the key may read",
        "tags": [
          "public"
        ],
        "x-gink-door": "api/public/v1/projects#show",
        "x-gink-requires": [
          "handler: the public API, answered to an API key on the caller’s account"
        ]
      }
    },
    "/v1/projects/{id}/experience": {
      "get": {
        "operationId": "api/public/v1/projects#experience",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "profile_id",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExperienceDocument"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "summary": "The persona a person's key reads a project through",
        "tags": [
          "public"
        ],
        "x-gink-door": "api/public/v1/projects#experience",
        "x-gink-requires": [
          "handler: the public API, answered to an API key on the caller’s account"
        ]
      }
    },
    "/v1/projects/{id}/setup": {
      "post": {
        "operationId": "api/public/v1/projects#setup",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Empty"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectShow"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "summary": "Set the project's defaults and put it on devices",
        "tags": [
          "public"
        ],
        "x-gink-door": "api/public/v1/projects#setup",
        "x-gink-requires": [
          "handler: the public API, answered to an API key on the caller’s account"
        ]
      }
    },
    "/v1/projects/{project_id}/action_requests/{request_id}": {
      "get": {
        "operationId": "api/public/v1/agent_actions#show",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionResult"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "summary": "Read a saved action result and its current approval status",
        "tags": [
          "public"
        ],
        "x-gink-door": "api/public/v1/agent_actions#show",
        "x-gink-requires": [
          "handler: the person's explicit agent action, project and record-type grants and current owner permissions"
        ]
      }
    },
    "/v1/projects/{project_id}/actions": {
      "get": {
        "operationId": "api/public/v1/agent_actions#index",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionCatalog"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "summary": "List enabled actions and their input schemas for this project",
        "tags": [
          "public"
        ],
        "x-gink-door": "api/public/v1/agent_actions#index",
        "x-gink-requires": [
          "handler: the person's explicit agent action, project and record-type grants and current owner permissions"
        ]
      }
    },
    "/v1/projects/{project_id}/actions/{name}": {
      "post": {
        "operationId": "api/public/v1/agent_actions#call",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActionCall"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionResult"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "summary": "Run an action as the connection's person",
        "tags": [
          "public"
        ],
        "x-gink-door": "api/public/v1/agent_actions#call",
        "x-gink-requires": [
          "handler: the person's explicit agent action, project and record-type grants and current owner permissions"
        ]
      }
    },
    "/v1/projects/{project_id}/plan_sets": {
      "get": {
        "operationId": "api/public/v1/plan_sets#index",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanSetList"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "summary": "List the sets a project received",
        "tags": [
          "public"
        ],
        "x-gink-door": "api/public/v1/plan_sets#index",
        "x-gink-requires": [
          "handler: the public API, answered to an API key on the caller’s account"
        ]
      }
    },
    "/v1/projects/{project_id}/schedules": {
      "get": {
        "operationId": "api/public/v1/schedules#index",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScheduleList"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "summary": "List the schedules a key may read on a project",
        "tags": [
          "public"
        ],
        "x-gink-door": "api/public/v1/schedules#index",
        "x-gink-requires": [
          "handler: the public API, answered to an API key on the caller’s account"
        ]
      }
    },
    "/v1/projects/{project_id}/sheets": {
      "get": {
        "operationId": "api/public/v1/sheets#index",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SheetList"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "summary": "List a project's sheets and every reading",
        "tags": [
          "public"
        ],
        "x-gink-door": "api/public/v1/sheets#index",
        "x-gink-requires": [
          "handler: the public API, answered to an API key on the caller’s account"
        ]
      }
    },
    "/v1/projects/{project_id}/source_files": {
      "post": {
        "operationId": "api/public/v1/source_files#create",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SourceFileCreateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileReserved"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "summary": "Reserve a canonical source File and signed upload target",
        "tags": [
          "public"
        ],
        "x-gink-door": "api/public/v1/source_files#create",
        "x-gink-requires": [
          "handler: an active extractions:write key or the personal project PDF reservation grant, with canonical project upload authority"
        ]
      }
    },
    "/v1/projects/{project_id}/source_files/{file_id}/complete": {
      "post": {
        "operationId": "api/public/v1/source_files#complete",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "file_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileCompleted"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "summary": "Verify uploaded source File bytes",
        "tags": [
          "public"
        ],
        "x-gink-door": "api/public/v1/source_files#complete",
        "x-gink-requires": [
          "handler: an active extractions:write key or the personal project PDF completion grant, with canonical project upload authority"
        ]
      }
    },
    "/v1/schedules/{id}": {
      "get": {
        "operationId": "api/public/v1/schedules#show",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScheduleShow"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "summary": "One schedule the key may read",
        "tags": [
          "public"
        ],
        "x-gink-door": "api/public/v1/schedules#show",
        "x-gink-requires": [
          "handler: the public API, answered to an API key on the caller’s account"
        ]
      }
    },
    "/v1/schedules/{id}/activities": {
      "get": {
        "operationId": "api/public/v1/schedules#activities",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "view",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScheduleActivities"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "summary": "The schedule's rows, in plan order",
        "tags": [
          "public"
        ],
        "x-gink-door": "api/public/v1/schedules#activities",
        "x-gink-requires": [
          "handler: the public API, answered to an API key on the caller’s account"
        ]
      }
    },
    "/v1/schedules/{id}/compare": {
      "get": {
        "operationId": "api/public/v1/schedules#compare",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScheduleCompare"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "summary": "Two versions of a schedule side by side",
        "tags": [
          "public"
        ],
        "x-gink-door": "api/public/v1/schedules#compare",
        "x-gink-requires": [
          "handler: the public API, answered to an API key on the caller’s account"
        ]
      }
    },
    "/v1/schedules/{id}/proposals": {
      "post": {
        "operationId": "api/public/v1/schedules#propose",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProposalCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProposalCreated"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "summary": "Make a what-if branch of changes and compare it",
        "tags": [
          "public"
        ],
        "x-gink-door": "api/public/v1/schedules#propose",
        "x-gink-requires": [
          "handler: the public API, answered to an API key on the caller’s account"
        ]
      }
    },
    "/v1/uploads": {
      "post": {
        "operationId": "api/public/v1/uploads#create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicUploadRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadShow"
                }
              }
            },
            "description": "OK"
          },
          "4XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          },
          "5XX": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Refusal"
                }
              }
            },
            "description": "A refusal: the error body this operation may answer"
          }
        },
        "summary": "Reserve a blob and sign a direct-upload PUT",
        "tags": [
          "public"
        ],
        "x-gink-door": "api/public/v1/uploads#create",
        "x-gink-requires": [
          "handler: the public API, answered to an API key on the caller’s account"
        ]
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://app.shotwellhq.com"
    }
  ]
}
