wip: start to implement the hooks

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-10-11 10:42:06 +02:00
parent 56eff0b621
commit 189201ef4b
15 changed files with 358 additions and 5 deletions
@@ -173,6 +173,20 @@
}
}
},
"EXPERIMENTAL_formHooks": {
"type": "object",
"description": "A list of hooks and their inputs that the form should trigger before submitting the job",
"properties": {
"id": {
"type": "string",
"description": "The form hook ID"
},
"input": {
"type": "object",
"description": "A object describing the inputs to the form hook."
}
}
},
"steps": {
"type": "array",
"description": "A list of steps to execute.",
@@ -56,6 +56,11 @@ export interface TemplateEntityV1beta3 extends Entity {
*/
EXPERIMENTAL_recovery?: TemplateRecoveryV1beta3;
/**
* Form hooks to be run
*/
EXPERIMENTAL_formHooks?: { id: string; input: JsonObject }[];
/**
* This is a JSONSchema or an array of JSONSchema's which is used to render a form in the frontend
* to collect user input and validate it against that schema. This can then be used in the `steps` part below to template