{
  "$id": "https://hash.ai/@h/types/entity-type/flow-run/v/1",
  "$schema": "https://blockprotocol.org/types/modules/graph/0.3/schema/entity-type",
  "description": "An execution run of a flow.",
  "icon": "/icons/types/circle-play.svg",
  "kind": "entityType",
  "labelProperty": "https://blockprotocol.org/@blockprotocol/types/property-type/name/",
  "links": {
    "https://hash.ai/@h/types/entity-type/scheduled-by/v/1": {
      "items": {
        "oneOf": [
          {
            "$ref": "https://hash.ai/@h/types/entity-type/flow-schedule/v/1"
          }
        ]
      },
      "maxItems": 1,
      "type": "array"
    },
    "https://hash.ai/@h/types/entity-type/uses/v/1": {
      "items": {
        "oneOf": [
          {
            "$ref": "https://hash.ai/@h/types/entity-type/flow-definition/v/1"
          }
        ]
      },
      "maxItems": 1,
      "minItems": 0,
      "type": "array"
    }
  },
  "properties": {
    "https://blockprotocol.org/@blockprotocol/types/property-type/name/": {
      "$ref": "https://blockprotocol.org/@blockprotocol/types/property-type/name/v/1"
    },
    "https://hash.ai/@h/types/property-type/flow-definition-id/": {
      "$ref": "https://hash.ai/@h/types/property-type/flow-definition-id/v/1"
    },
    "https://hash.ai/@h/types/property-type/outputs/": {
      "$ref": "https://hash.ai/@h/types/property-type/outputs/v/1"
    },
    "https://hash.ai/@h/types/property-type/step/": {
      "$ref": "https://hash.ai/@h/types/property-type/step/v/1"
    },
    "https://hash.ai/@h/types/property-type/trigger/": {
      "$ref": "https://hash.ai/@h/types/property-type/trigger/v/1"
    },
    "https://hash.ai/@h/types/property-type/workflow-id/": {
      "$ref": "https://hash.ai/@h/types/property-type/workflow-id/v/1"
    }
  },
  "required": [
    "https://hash.ai/@h/types/property-type/workflow-id/",
    "https://blockprotocol.org/@blockprotocol/types/property-type/name/",
    "https://hash.ai/@h/types/property-type/flow-definition-id/",
    "https://hash.ai/@h/types/property-type/step/",
    "https://hash.ai/@h/types/property-type/trigger/"
  ],
  "title": "Flow Run",
  "type": "object"
}