{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://automate.speckle.systems/automationfunctionrunmetadata.schema.json",
"title": "Automation Run Metadata",
"description": "The metadata describing an Automation Function Run.",
"type": "object",
"properties": {
"speckleToken": {
"type": "string",
"description": "The token for accessing the Speckle API. This Token SHALL be limited in scope to the Speckle model which triggered the Function to run as part of an Automation."
},
"functionInputs": {
"type": "object",
"description": "The configuration values for a Function within an Automation.",
"properties": {
"additionalProperties": "true"
}
},
"automationRunData": {
"type": "object",
"description": "The metadata describing the Automation Run.",
"properties": {
"projectId": {
"type": "string",
"description": "The ID of the Speckle project which contains the Speckle model which is associated with the Automation."
},
"modelId": {
"type": "string",
"description": "The ID of the Speckle model which is associated with the Automation. A change to this model may have caused the Automation to run."
},
"branchName": {
"type": "string",
"description": "The name of the Speckle branch. 'Branch' is now known as 'model' except in the Speckle API, where 'branch' wording is retained to provide backwards compatibility and ensure ongoing stability of the API."
},
"versionId": {
"type": "string",
"description": "The version of the Speckle model. This is the version which was created as a result of the change which triggered the Automation to run. Or, in the case of an Automation being manually triggered by a user, it is the current version of the Speckle model."
},
"speckleServerUrl": {
"type": "string",
"description": "The URL of the Speckle Server which contains the Speckle project and Speckle model which is associated with the Automation."
},
"automationId": {
"type": "string",
"description": "The ID of the Automation which is being run."
},
"automationRevisionId": {
"type": "string",
"description": "The ID of the revision of the Automation which is being run."
},
"automationRunId": {
"type": "string",
"description": "The ID which defines the current run of the Automation. This is a unique ID which is generated for each run of an Automation."
},
"functionName": {
"type": "string",
"description": "The name of the Function which is being run."
},
"functionId": {
"type": "string",
"description": "A unique id of the Function which is being run. This includes a hyphen concatenated string containing the Automation ID, the Automation version ID, the Function Id, the Function Version ID, and a unique number which identifies this running instance within the context of the running Automation."
},
"functionLogo": {
"type": "string",
"description": "Base64 encoded string of the Function logo."
}
}
}
}
}