Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Camera",
"description": "Opens barcode scanner, capture, or record flows.",
"type": "object",
"x-version": "1.0",
"required": [
"Handler"
],
"properties": {
"Handler": {
"const": "Camera"
},
"Mode": {
"type": "string",
"enum": [
"Scan",
"Capture",
"Record"
],
"default": "Scan"
},
"Width": {
"type": "number"
},
"Height": {
"type": "number"
},
"OnSuccess": {
"$ref": "/schema/Actions/Action/1.0/index.json"
},
"OnFailure": {
"$ref": "/schema/Actions/Action/1.0/index.json"
}
},
"additionalProperties": false,
"x-icon": "<svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"3\" y=\"7\" width=\"18\" height=\"13\" rx=\"2\"/><circle cx=\"12\" cy=\"13.5\" r=\"3.5\"/><path d=\"M8 7l1.5-2.5h5L16 7\"/></svg>",
"$id": "/schema/Actions/Camera/1.0/index.json",
"x-family": "Actions",
"x-name": "Camera",
"x-source-package": "zero-schema"
}