{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mailinapp-com/json-schema/mailinapp-com-pipeline-schema.json",
  "title": "Pipeline",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mailinapp-com-openapi.json#/components/schemas/Pipeline",
  "type": "object",
  "required": [
    "id",
    "name",
    "isDefault",
    "stages"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "isDefault": {
      "type": "boolean",
      "description": "Where a deal goes when no pipeline is named."
    },
    "stages": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "name",
          "kind"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "open",
              "won",
              "lost"
            ]
          }
        }
      }
    }
  }
}