{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "id": {
                "type": "string",
                "pattern": "^[A-Fa-f\\d]{24}$"
            },
            "notebookExecutionId": {
                "type": "string",
                "pattern": "^[A-Fa-f\\d]{24}$"
            },
            "notebookId": {
                "type": "string",
                "pattern": "^[A-Fa-f\\d]{24}$"
            },
            "applicationId": {
                "type": "string",
                "pattern": "^[A-Fa-f\\d]{24}$"
            },
            "status": {
                "type": "string",
                "enum": [
                    "queued",
                    "inProgress",
                    "completed",
                    "errored",
                    "timeout"
                ]
            },
            "executionRelativeTo": {
                "type": "string",
                "format": "date-time"
            },
            "maxAllowedRunMinutes": {
                "type": "number"
            },
            "sourceType": {
                "type": "string",
                "enum": [
                    "flow",
                    "user",
                    "device",
                    "apiToken",
                    "notebook"
                ]
            },
            "sourceId": {
                "type": "string",
                "pattern": "^[A-Fa-f\\d]{24}$"
            },
            "runQueuedAt": {
                "type": "string",
                "format": "date-time"
            },
            "runStartedAt": {
                "type": "string",
                "format": "date-time"
            },
            "inputsCompletedAt": {
                "type": "string",
                "format": "date-time"
            },
            "notebookCompletedAt": {
                "type": "string",
                "format": "date-time"
            },
            "outputsCompletedAt": {
                "type": "string",
                "format": "date-time"
            },
            "templateContext": {
                "type": "string",
                "maxLength": 32767
            },
            "inputInfo": {
                "type": "object",
                "patternProperties": {
                    ".*": {
                        "type": "object",
                        "properties": {
                            "size": {
                                "type": "number"
                            },
                            "url": {
                                "type": "string"
                            }
                        }
                    }
                }
            },
            "outputInfo": {
                "type": "object",
                "patternProperties": {
                    ".*": {
                        "type": "object",
                        "properties": {
                            "size": {
                                "type": "number"
                            },
                            "url": {
                                "type": "string"
                            },
                            "contentType": {
                                "type": "string"
                            }
                        }
                    }
                }
            },
            "executionErrors": {
                "type": "array",
                "items": {
                    "type": "object",
                    "properties": {
                        "name": {
                            "type": "string"
                        },
                        "message": {
                            "type": "string"
                        }
                    }
                }
            }
        }
    }
}