{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "add_script",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Name for the script"
    },
    "source": {
      "type": "string",
      "description": "Script source code, VERBATIM (may contain spaces/semicolons/quotes — they are quoted and escaped for the console automatically). Never HTML-escape it: pass `<`, `>`, `&` as themselves, since `&lt;`/`&gt;`/`&amp;` are stored literally and break comparisons."
    },
    "policy": {
      "description": "Permission policy list, e.g. 'read,write,test,policy'",
      "type": "string"
    },
    "comment": {
      "type": "string"
    },
    "dont_require_permissions": {
      "default": false,
      "description": "Run without checking the policy permissions of the caller",
      "type": "boolean"
    }
  },
  "required": ["name", "source", "dont_require_permissions"],
  "additionalProperties": false
}
