{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://atlas.spekir.com/schemas/atlas-workspace.v1.json",
  "title": "Atlas workspace v1",
  "definitions": {
    "relationAttributes": {
      "type": "object",
      "properties": {
        "role": {
          "type": [
            "string",
            "null"
          ]
        },
        "priority": {
          "type": [
            "string",
            "null"
          ]
        },
        "usage": {
          "type": [
            "string",
            "null"
          ]
        },
        "notes": {
          "type": [
            "string",
            "null"
          ]
        },
        "ownership_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "impact_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "link_kind": {
          "type": [
            "string",
            "null"
          ]
        },
        "impact_score": {
          "type": [
            "string",
            "null"
          ]
        },
        "impact_reasoning": {
          "type": [
            "string",
            "null"
          ]
        },
        "change_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "from_state": {
          "type": [
            "string",
            "null"
          ]
        },
        "to_state": {
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": [
            "string",
            "null"
          ]
        },
        "dependency_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "planned_date": {
          "type": [
            "string",
            "null"
          ]
        },
        "valid_from": {
          "type": [
            "string",
            "null"
          ]
        },
        "valid_to": {
          "type": [
            "string",
            "null"
          ]
        },
        "active_from": {
          "type": [
            "string",
            "null"
          ]
        },
        "active_until": {
          "type": [
            "string",
            "null"
          ]
        },
        "type": {
          "type": [
            "string",
            "null"
          ]
        },
        "data_flow": {
          "type": [
            "string",
            "null"
          ]
        },
        "protocol": {
          "type": [
            "string",
            "null"
          ]
        },
        "format": {
          "type": [
            "string",
            "null"
          ]
        },
        "frequency": {
          "type": [
            "string",
            "null"
          ]
        },
        "sla": {
          "type": [
            "string",
            "null"
          ]
        },
        "suitability": {
          "type": [
            "string",
            "null"
          ]
        },
        "support_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "allocation_pct": {
          "type": [
            "integer",
            "null"
          ]
        },
        "annual_cost": {
          "type": [
            "string",
            "null"
          ]
        },
        "currency": {
          "type": [
            "string",
            "null"
          ]
        },
        "obsolescence_risk_status": {
          "type": [
            "string",
            "null"
          ]
        },
        "usage_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "endpoint": {
          "type": [
            "string",
            "null"
          ]
        },
        "stage_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "touchpoint_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "access": {
          "type": [
            "string",
            "null"
          ]
        },
        "financialsMasked": {
          "type": "boolean"
        },
        "is_critical": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "sla_availability_percent": {
          "type": [
            "string",
            "null"
          ]
        },
        "crud": {
          "type": [
            "string",
            "null"
          ]
        },
        "validity": {
          "type": "object",
          "properties": {
            "from": {
              "type": [
                "string",
                "null"
              ]
            },
            "to": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "from",
            "to"
          ],
          "additionalProperties": false
        },
        "temporal_state": {
          "enum": [
            "current",
            "planned",
            "planned_overdue",
            "ended"
          ]
        }
      },
      "required": [],
      "additionalProperties": false
    }
  },
  "type": "object",
  "properties": {
    "schema": {
      "const": "atlas.workspace.v1"
    },
    "workspace_id": {
      "type": "string"
    },
    "workspace_revision": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "generated_at": {
      "type": "string",
      "format": "date-time"
    },
    "elements": {
      "type": "object",
      "properties": {
        "theme": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "strategy_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "sort_order": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "created_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "updated_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "financialsMasked": {
                "type": "boolean"
              },
              "owner": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "value"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "lifecycle_phases": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "phase": {
                      "type": "string"
                    },
                    "phase_date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "note": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "phase",
                    "phase_date",
                    "note"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "id",
              "name",
              "description",
              "owner"
            ],
            "additionalProperties": false
          }
        },
        "objective": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "theme_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "target_metric": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "target_value": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "current_value": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "unit": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "deadline": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "owner_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "updated_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "financialsMasked": {
                "type": "boolean"
              },
              "owner": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "value"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "lifecycle_phases": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "phase": {
                      "type": "string"
                    },
                    "phase_date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "note": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "phase",
                    "phase_date",
                    "note"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "id",
              "name",
              "description",
              "owner"
            ],
            "additionalProperties": false
          }
        },
        "initiative": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "theme_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "objective_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "initiative_type": {
                "enum": [
                  "idea",
                  "program",
                  "project",
                  "epic",
                  null
                ]
              },
              "change_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "start_date": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "end_date": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "budget": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "capex_amount": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "opex_amount": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "owner_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "updated_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "financialsMasked": {
                "type": "boolean"
              },
              "owner": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "value"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "lifecycle_phases": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "phase": {
                      "type": "string"
                    },
                    "phase_date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "note": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "phase",
                    "phase_date",
                    "note"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "id",
              "name",
              "description",
              "owner"
            ],
            "additionalProperties": false
          }
        },
        "transformation": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "objective_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "target_date": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "updated_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "financialsMasked": {
                "type": "boolean"
              },
              "owner": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "value"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "lifecycle_phases": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "phase": {
                      "type": "string"
                    },
                    "phase_date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "note": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "phase",
                    "phase_date",
                    "note"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "id",
              "name",
              "description",
              "owner"
            ],
            "additionalProperties": false
          }
        },
        "requirement": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "title": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "statement": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "rationale": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "source": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "priority": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "updated_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "financialsMasked": {
                "type": "boolean"
              },
              "owner": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "value"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "lifecycle_phases": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "phase": {
                      "type": "string"
                    },
                    "phase_date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "note": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "phase",
                    "phase_date",
                    "note"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "id",
              "name",
              "description",
              "owner"
            ],
            "additionalProperties": false
          }
        },
        "organization": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "parent_team_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "topology": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "mission": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "lead_user_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "size": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "location": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "cost_center": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "department": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "updated_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "financialsMasked": {
                "type": "boolean"
              },
              "owner": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "value"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "lifecycle_phases": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "phase": {
                      "type": "string"
                    },
                    "phase_date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "note": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "phase",
                    "phase_date",
                    "note"
                  ],
                  "additionalProperties": false
                }
              },
              "organization_kind": {
                "enum": [
                  "team",
                  "user_group"
                ]
              }
            },
            "required": [
              "id",
              "name",
              "description",
              "owner",
              "organization_kind"
            ],
            "additionalProperties": false
          }
        },
        "person": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "full_name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "email": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "title": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "department": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "location": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "team_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "updated_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "financialsMasked": {
                "type": "boolean"
              },
              "owner": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "value"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "lifecycle_phases": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "phase": {
                      "type": "string"
                    },
                    "phase_date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "note": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "phase",
                    "phase_date",
                    "note"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "id",
              "name",
              "description",
              "owner"
            ],
            "additionalProperties": false
          }
        },
        "capability": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "level": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "parent_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "maturity_score": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "target_maturity": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "strategic_importance": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "investment_priority": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "tier": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "owner_person_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "apqc_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "apqc_name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "source": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "sort_order": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "created_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "updated_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "financialsMasked": {
                "type": "boolean"
              },
              "owner": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "value"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "lifecycle_phases": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "phase": {
                      "type": "string"
                    },
                    "phase_date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "note": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "phase",
                    "phase_date",
                    "note"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "id",
              "name",
              "description",
              "owner"
            ],
            "additionalProperties": false
          }
        },
        "process": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "category": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "owner": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "value"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "owner_person_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "criticality": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "automation_level": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "frequency": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "sla": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "parent_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "sort_order": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "created_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "updated_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "financialsMasked": {
                "type": "boolean"
              },
              "lifecycle_phases": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "phase": {
                      "type": "string"
                    },
                    "phase_date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "note": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "phase",
                    "phase_date",
                    "note"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "id",
              "name",
              "description",
              "owner"
            ],
            "additionalProperties": false
          }
        },
        "valuestream": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "stream_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "trigger_event": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "value_proposition": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "customer_segments": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {}
              },
              "owner_user_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "maturity_level": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "kpis": {},
              "trigger_stakeholder_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "value_item": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "updated_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "financialsMasked": {
                "type": "boolean"
              },
              "owner": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "value"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "lifecycle_phases": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "phase": {
                      "type": "string"
                    },
                    "phase_date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "note": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "phase",
                    "phase_date",
                    "note"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "id",
              "name",
              "description",
              "owner"
            ],
            "additionalProperties": false
          }
        },
        "journey": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "persona": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "scenario_context": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "value_stream_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "outcome_goal": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "owner_user_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "nps_score": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "satisfaction_score": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "updated_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "financialsMasked": {
                "type": "boolean"
              },
              "owner": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "value"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "lifecycle_phases": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "phase": {
                      "type": "string"
                    },
                    "phase_date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "note": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "phase",
                    "phase_date",
                    "note"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "id",
              "name",
              "description",
              "owner"
            ],
            "additionalProperties": false
          }
        },
        "dataobject": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "domain_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "asset_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "physical_location": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "owner_application_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "steward_user_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "data_classification": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "pii_flag": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "retention_days": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "refresh_frequency": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "quality_score": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "tags": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {}
              },
              "created_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "updated_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "financialsMasked": {
                "type": "boolean"
              },
              "owner": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "value"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "lifecycle_phases": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "phase": {
                      "type": "string"
                    },
                    "phase_date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "note": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "phase",
                    "phase_date",
                    "note"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "id",
              "name",
              "description",
              "owner"
            ],
            "additionalProperties": false
          }
        },
        "application": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "vendor": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "provider_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "lifecycle_stage": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "time_classification": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "deployment_model": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "data_classification": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "business_criticality": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "cost_license": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "cost_hosting": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "cost_support": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "cost_fte": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "tags": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {}
              },
              "owner_email": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "owner_person_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "business_fit_score": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "technical_fit_score": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "updated_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "financialsMasked": {
                "type": "boolean"
              },
              "owner": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "value"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "lifecycle_phases": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "phase": {
                      "type": "string"
                    },
                    "phase_date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "note": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "phase",
                    "phase_date",
                    "note"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "id",
              "name",
              "description",
              "owner"
            ],
            "additionalProperties": false
          }
        },
        "interface": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "source_application_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "target_application_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "interface_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "protocol": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "auth_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "direction": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "data_sensitivity": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "sla_tier": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "data_format": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "source_port_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "target_port_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "lifecycle_plan": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "lifecycle_phase_in": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "lifecycle_active": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "lifecycle_phase_out": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "lifecycle_end_of_life": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "frequency": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "delivery_pattern": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "initiator": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "owner_person_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "updated_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "financialsMasked": {
                "type": "boolean"
              },
              "owner": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "value"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "lifecycle_phases": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "phase": {
                      "type": "string"
                    },
                    "phase_date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "note": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "phase",
                    "phase_date",
                    "note"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "id",
              "name",
              "description",
              "owner"
            ],
            "additionalProperties": false
          }
        },
        "aisystem": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "business_purpose": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "owner_user_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "owner_person_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "owner_email": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "deployment_application_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "human_in_loop": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "autonomy_level": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "impacted_users": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "expected_value_annual": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "estimated_cost_annual": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "system_kind": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "publisher": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "updated_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "financialsMasked": {
                "type": "boolean"
              },
              "owner": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "value"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "lifecycle_phases": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "phase": {
                      "type": "string"
                    },
                    "phase_date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "note": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "phase",
                    "phase_date",
                    "note"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "id",
              "name",
              "description",
              "owner"
            ],
            "additionalProperties": false
          }
        },
        "provider": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "website": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "contact_name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "contact_email": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "contract_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "contract_start": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "contract_end": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "annual_spend": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "tier": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "risk_level": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "updated_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "financialsMasked": {
                "type": "boolean"
              },
              "owner": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "value"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "lifecycle_phases": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "phase": {
                      "type": "string"
                    },
                    "phase_date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "note": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "phase",
                    "phase_date",
                    "note"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "id",
              "name",
              "description",
              "owner"
            ],
            "additionalProperties": false
          }
        },
        "technology": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "category": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "vendor": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "provider_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "version": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "radar_status": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "lifecycle_stage": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "licensing_model": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "annual_cost": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "contract_expiry": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "support_tier": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "owner_email": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "owner_person_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "updated_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "financialsMasked": {
                "type": "boolean"
              },
              "owner": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "value"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "lifecycle_phases": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "phase": {
                      "type": "string"
                    },
                    "phase_date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "note": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "phase",
                    "phase_date",
                    "note"
                  ],
                  "additionalProperties": false
                }
              },
              "technology_details": {
                "type": "object",
                "properties": {
                  "technology_id": {
                    "type": "string"
                  },
                  "subtype": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "parent_technology_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "category_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "end_of_support": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "release_date": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "technology_id",
                  "subtype",
                  "parent_technology_id",
                  "category_id",
                  "end_of_support",
                  "release_date"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "id",
              "name",
              "description",
              "owner"
            ],
            "additionalProperties": false
          }
        },
        "techcategory": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "parent_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "sort_order": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "created_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "updated_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "financialsMasked": {
                "type": "boolean"
              },
              "owner": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "value"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "lifecycle_phases": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "phase": {
                      "type": "string"
                    },
                    "phase_date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "note": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "phase",
                    "phase_date",
                    "note"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "id",
              "name",
              "description",
              "owner"
            ],
            "additionalProperties": false
          }
        },
        "contract": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "contract_number": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "provider_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "contract_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "start_date": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "end_date": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "notice_period_days": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "auto_renew": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "annual_value": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "currency": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "owner_person_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "document_url": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "updated_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "financialsMasked": {
                "type": "boolean"
              },
              "owner": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "value"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "lifecycle_phases": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "phase": {
                      "type": "string"
                    },
                    "phase_date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "note": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "phase",
                    "phase_date",
                    "note"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "id",
              "name",
              "description",
              "owner"
            ],
            "additionalProperties": false
          }
        },
        "decision": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "title": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "template": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "context": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "drivers": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "decision": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "consequences": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "owner_person_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "updated_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "financialsMasked": {
                "type": "boolean"
              },
              "owner": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "value"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "lifecycle_phases": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "phase": {
                      "type": "string"
                    },
                    "phase_date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "note": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "phase",
                    "phase_date",
                    "note"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "id",
              "name",
              "description",
              "owner"
            ],
            "additionalProperties": false
          }
        },
        "risk": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "title": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "category": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "owner_user_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "likelihood_inherent": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "impact_inherent": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "likelihood_residual": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "impact_residual": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "risk_appetite": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "review_date": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "closed_reason": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "updated_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "financialsMasked": {
                "type": "boolean"
              },
              "owner": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "value"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "lifecycle_phases": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "phase": {
                      "type": "string"
                    },
                    "phase_date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "note": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "phase",
                    "phase_date",
                    "note"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "id",
              "name",
              "description",
              "owner"
            ],
            "additionalProperties": false
          }
        }
      },
      "additionalProperties": false
    },
    "relations": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "capability_application"
              },
              "source_type": {
                "const": "capability"
              },
              "target_type": {
                "const": "application"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "application_technology"
              },
              "source_type": {
                "const": "application"
              },
              "target_type": {
                "const": "technology"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "user_group_application"
              },
              "source_type": {
                "const": "organization"
              },
              "source_organization_kind": {
                "enum": [
                  "team",
                  "user_group"
                ]
              },
              "target_type": {
                "const": "application"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "source_organization_kind",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "team_application"
              },
              "source_type": {
                "const": "organization"
              },
              "source_organization_kind": {
                "enum": [
                  "team",
                  "user_group"
                ]
              },
              "target_type": {
                "const": "application"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "source_organization_kind",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "process_application"
              },
              "source_type": {
                "const": "process"
              },
              "target_type": {
                "const": "application"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "application_data_object"
              },
              "source_type": {
                "const": "application"
              },
              "target_type": {
                "const": "dataobject"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "provider_application"
              },
              "source_type": {
                "const": "provider"
              },
              "target_type": {
                "const": "application"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "provider_technology"
              },
              "source_type": {
                "const": "provider"
              },
              "target_type": {
                "const": "technology"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "initiative_application"
              },
              "source_type": {
                "const": "initiative"
              },
              "target_type": {
                "const": "application"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "application:provides or consumes:interface"
              },
              "source_type": {
                "const": "application"
              },
              "target_type": {
                "const": "interface"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "application:depends on:application"
              },
              "source_type": {
                "const": "application"
              },
              "target_type": {
                "const": "application"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "technology:requires:technology"
              },
              "source_type": {
                "const": "technology"
              },
              "target_type": {
                "const": "technology"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "contract:is attached to:application"
              },
              "source_type": {
                "const": "contract"
              },
              "target_type": {
                "const": "application"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "contract:covers:technology"
              },
              "source_type": {
                "const": "contract"
              },
              "target_type": {
                "const": "technology"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "provider:provides:contract"
              },
              "source_type": {
                "const": "provider"
              },
              "target_type": {
                "const": "contract"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "technology:belongs to:techcategory"
              },
              "source_type": {
                "const": "technology"
              },
              "target_type": {
                "const": "techcategory"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "application:is succeeded by:application"
              },
              "source_type": {
                "const": "application"
              },
              "target_type": {
                "const": "application"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "technology:is succeeded by:technology"
              },
              "source_type": {
                "const": "technology"
              },
              "target_type": {
                "const": "technology"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "objective:improves:capability"
              },
              "source_type": {
                "const": "objective"
              },
              "target_type": {
                "const": "capability"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "theme:sets:objective"
              },
              "source_type": {
                "const": "theme"
              },
              "target_type": {
                "const": "objective"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "objective:is supported by:initiative"
              },
              "source_type": {
                "const": "objective"
              },
              "target_type": {
                "const": "initiative"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "organization:owns:capability"
              },
              "source_type": {
                "const": "organization"
              },
              "source_organization_kind": {
                "enum": [
                  "team",
                  "user_group"
                ]
              },
              "target_type": {
                "const": "capability"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "source_organization_kind",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "capability:is associated with:process"
              },
              "source_type": {
                "const": "capability"
              },
              "target_type": {
                "const": "process"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "decision:governs:application"
              },
              "source_type": {
                "const": "decision"
              },
              "target_type": {
                "const": "application"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "decision:governs:capability"
              },
              "source_type": {
                "const": "decision"
              },
              "target_type": {
                "const": "capability"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "initiative:improves:capability"
              },
              "source_type": {
                "const": "initiative"
              },
              "target_type": {
                "const": "capability"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "valuestream:is associated with:capability"
              },
              "source_type": {
                "const": "valuestream"
              },
              "target_type": {
                "const": "capability"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "journey:is supported by:application"
              },
              "source_type": {
                "const": "journey"
              },
              "target_type": {
                "const": "application"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "journey:is associated with:capability"
              },
              "source_type": {
                "const": "journey"
              },
              "target_type": {
                "const": "capability"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "person:owns:application"
              },
              "source_type": {
                "const": "person"
              },
              "target_type": {
                "const": "application"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "person:owns:capability"
              },
              "source_type": {
                "const": "person"
              },
              "target_type": {
                "const": "capability"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "person:owns:process"
              },
              "source_type": {
                "const": "person"
              },
              "target_type": {
                "const": "process"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "person:owns:contract"
              },
              "source_type": {
                "const": "person"
              },
              "target_type": {
                "const": "contract"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "transformation:affects:application"
              },
              "source_type": {
                "const": "transformation"
              },
              "target_type": {
                "const": "application"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "transformation:affects:capability"
              },
              "source_type": {
                "const": "transformation"
              },
              "target_type": {
                "const": "capability"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "transformation:affects:technology"
              },
              "source_type": {
                "const": "transformation"
              },
              "target_type": {
                "const": "technology"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "aisystem:uses:application"
              },
              "source_type": {
                "const": "aisystem"
              },
              "target_type": {
                "const": "application"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "capability:has parent:capability"
              },
              "source_type": {
                "const": "capability"
              },
              "target_type": {
                "const": "capability"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "technology:has parent:technology"
              },
              "source_type": {
                "const": "technology"
              },
              "target_type": {
                "const": "technology"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "process:has parent:process"
              },
              "source_type": {
                "const": "process"
              },
              "target_type": {
                "const": "process"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "interface:transfers:dataobject"
              },
              "source_type": {
                "const": "interface"
              },
              "target_type": {
                "const": "dataobject"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "interface:uses:technology"
              },
              "source_type": {
                "const": "interface"
              },
              "target_type": {
                "const": "technology"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "initiative:affects:interface"
              },
              "source_type": {
                "const": "initiative"
              },
              "target_type": {
                "const": "interface"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "initiative:affects:dataobject"
              },
              "source_type": {
                "const": "initiative"
              },
              "target_type": {
                "const": "dataobject"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "initiative:affects:technology"
              },
              "source_type": {
                "const": "initiative"
              },
              "target_type": {
                "const": "technology"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "initiative:affects:techcategory"
              },
              "source_type": {
                "const": "initiative"
              },
              "target_type": {
                "const": "techcategory"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "organization:owns:objective"
              },
              "source_type": {
                "const": "organization"
              },
              "source_organization_kind": {
                "enum": [
                  "team",
                  "user_group"
                ]
              },
              "target_type": {
                "const": "objective"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "source_organization_kind",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "organization:owns:initiative"
              },
              "source_type": {
                "const": "organization"
              },
              "source_organization_kind": {
                "enum": [
                  "team",
                  "user_group"
                ]
              },
              "target_type": {
                "const": "initiative"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "source_organization_kind",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "organization:owns:technology"
              },
              "source_type": {
                "const": "organization"
              },
              "source_organization_kind": {
                "enum": [
                  "team",
                  "user_group"
                ]
              },
              "target_type": {
                "const": "technology"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "source_organization_kind",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "const": "capability:uses:dataobject"
              },
              "source_type": {
                "const": "capability"
              },
              "target_type": {
                "const": "dataobject"
              },
              "source_id": {
                "type": "string"
              },
              "target_id": {
                "type": "string"
              },
              "attributes": {
                "$ref": "#/definitions/relationAttributes"
              }
            },
            "required": [
              "type",
              "source_type",
              "target_type",
              "source_id",
              "target_id",
              "attributes"
            ],
            "additionalProperties": false
          }
        ]
      }
    },
    "truncated": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "pattern": "^[A-Za-z0-9_-]+$",
        "maxLength": 1600
      }
    },
    "next_cursor": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[A-Za-z0-9_-]+$",
          "maxLength": 1600
        },
        {
          "type": "null"
        }
      ]
    },
    "known_gaps": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "code",
          "message"
        ],
        "additionalProperties": false
      }
    },
    "excluded_types": {
      "type": "array",
      "items": {
        "enum": [
          "theme",
          "objective",
          "initiative",
          "transformation",
          "requirement",
          "organization",
          "person",
          "capability",
          "process",
          "valuestream",
          "journey",
          "dataobject",
          "application",
          "interface",
          "aisystem",
          "provider",
          "technology",
          "techcategory",
          "contract",
          "decision",
          "risk"
        ]
      }
    },
    "coverage": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "properties": {
          "total": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0
          },
          "returned": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "total",
          "returned"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "schema",
    "workspace_id",
    "workspace_revision",
    "generated_at",
    "elements",
    "relations",
    "truncated",
    "next_cursor",
    "known_gaps",
    "excluded_types",
    "coverage"
  ],
  "additionalProperties": false
}
