action maif_compile_script { label: "Compile a script" description: "Compile a script" provider: maif method: POST path: "/api/scripts/_compile" encoding: json input: { type: "object" description: "A script to transformer otoroshi requests " required: ["code", "desc", "id", "name"] properties: { code: { type: "object" description: "The code of the script" } desc: { type: "object" description: "The description of the script" } id: { type: "string" description: "The id of the script" } name: { type: "string" description: "The name of the script" } } } output: { type: "object" description: "The result of the compilation of a Script" required: ["done"] properties: { done: { type: "boolean" description: "Is the task done or not" } error: { type: "object" description: "The error of the compilation of a Script" required: ["column", "file", "line", "message", "rawMessage"] properties: { column: { type: "string" description: "The column of the error" } file: { type: "object" description: "The file where the error is located" } line: { type: "string" description: "The line of the error" } message: { type: "object" description: "The message to display for the error" } rawMessage: { type: "object" description: "The raw message from the compiler" } } } } } }