changedInput schema / properties / commands / items / oneOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "projects.create",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "aspect": {
- "enum": [
- "square",
- "portrait45",
- "portrait34",
- "portrait23",
- "story916",
- "landscape43",
- "landscape32",
- "landscape169",
- "appStore69",
- "appStore65",
- "macAppStore",
- "custom"
- ],
- "type": "string"
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "name": {
- "maxLength": 1000,
- "type": "string"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- }
- },
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "projects.rename",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "name": {
- "maxLength": 1000,
- "minLength": 1,
- "type": "string"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- }
- },
- "required": [
- "name"
- ],
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "projects.import",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "package": {
- "additionalProperties": {},
- "propertyNames": {
- "type": "string"
- },
- "type": "object"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- }
- },
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "canvases.add",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "duplicate": {
- "type": "boolean"
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "name": {
- "maxLength": 1000,
- "type": "string"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- }
- },
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "canvases.delete",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "canvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- }
- },
- "required": [
- "canvasId"
- ],
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "canvases.rename",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "canvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "name": {
- "maxLength": 1000,
- "minLength": 1,
- "type": "string"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- }
- },
- "required": [
- "canvasId",
- "name"
- ],
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "canvases.switch",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "canvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- }
- },
- "required": [
- "canvasId"
- ],
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "canvases.setAspect",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "aspect": {
- "enum": [
- "square",
- "portrait45",
- "portrait34",
- "portrait23",
- "story916",
- "landscape43",
- "landscape32",
- "landscape169",
- "appStore69",
- "appStore65",
- "macAppStore",
- "custom"
- ],
- "type": "string"
- },
- "canvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "height": {
- "maximum": 4096,
- "minimum": 64,
- "type": "integer"
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- },
- "width": {
- "maximum": 4096,
- "minimum": 64,
- "type": "integer"
- }
- },
- "required": [
- "aspect"
- ],
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "templates.apply",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "canvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "display": {
- "enum": [
- "65",
- "69"
- ],
- "type": "string"
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- },
- "templateId": {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- "themeId": {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "templateId"
- ],
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "templates.applySet",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "canvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "display": {
- "enum": [
- "65",
- "69"
- ],
- "type": "string"
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- },
- "templateId": {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- "themeId": {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "templateId"
- ],
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "layers.addDevice",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "canvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "deviceId": {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- "frameId": {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "name": {
- "maxLength": 1000,
- "type": "string"
- },
- "orientation": {
- "enum": [
- "portrait",
- "landscape"
- ],
- "type": "string"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- },
- "transform": {
- "additionalProperties": false,
- "properties": {
- "center": {
- "additionalProperties": false,
- "properties": {
- "x": {
- "type": "number"
- },
- "y": {
- "type": "number"
- }
- },
- "type": "object"
- },
- "rotation": {
- "type": "number"
- },
- "scale": {
- "maximum": 8,
- "minimum": 0.1,
- "type": "number"
- }
- },
- "type": "object"
- },
- "url": {
- "maxLength": 12582912,
- "minLength": 1,
- "type": "string"
- }
- },
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "layers.addText",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "alignment": {
- "enum": [
- "leading",
- "center",
- "trailing"
- ],
- "type": "string"
- },
- "boxWidth": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "canvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "color": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "a": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "b": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "g": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "r": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "r",
- "g",
- "b",
- "a"
- ],
- "type": "object"
- },
- {
- "pattern": "^#?(?:[\\da-f]{3}|[\\da-f]{6}|[\\da-f]{8})$",
- "type": "string"
- }
- ]
- },
- "fontName": {
- "maxLength": 1000,
- "type": "string"
- },
- "fontSize": {
- "maximum": 8192,
- "minimum": 8,
- "type": "number"
- },
- "kerning": {
- "type": "number"
- },
- "lineSpacing": {
- "type": "number"
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "name": {
- "maxLength": 1000,
- "type": "string"
- },
- "pill": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "color": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "a": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "b": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "g": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "r": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "r",
- "g",
- "b",
- "a"
- ],
- "type": "object"
- },
- {
- "pattern": "^#?(?:[\\da-f]{3}|[\\da-f]{6}|[\\da-f]{8})$",
- "type": "string"
- }
- ]
- },
- "cornerRadius": {
- "minimum": 0,
- "type": "number"
- },
- "paddingX": {
- "minimum": 0,
- "type": "number"
- },
- "paddingY": {
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "color",
- "paddingX",
- "paddingY",
- "cornerRadius"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- },
- "shadow": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "color": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "a": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "b": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "g": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "r": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "r",
- "g",
- "b",
- "a"
- ],
- "type": "object"
- },
- {
- "pattern": "^#?(?:[\\da-f]{3}|[\\da-f]{6}|[\\da-f]{8})$",
- "type": "string"
- }
- ]
- },
- "offsetX": {
- "type": "number"
- },
- "offsetY": {
- "type": "number"
- },
- "radius": {
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "color",
- "radius",
- "offsetX",
- "offsetY"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "string": {
- "maxLength": 100000,
- "type": "string"
- },
- "stroke": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "color": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "a": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "b": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "g": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "r": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "r",
- "g",
- "b",
- "a"
- ],
- "type": "object"
- },
- {
- "pattern": "^#?(?:[\\da-f]{3}|[\\da-f]{6}|[\\da-f]{8})$",
- "type": "string"
- }
- ]
- },
- "width": {
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "color",
- "width"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "transform": {
- "additionalProperties": false,
- "properties": {
- "center": {
- "additionalProperties": false,
- "properties": {
- "x": {
- "type": "number"
- },
- "y": {
- "type": "number"
- }
- },
- "type": "object"
- },
- "rotation": {
- "type": "number"
- },
- "scale": {
- "maximum": 8,
- "minimum": 0.1,
- "type": "number"
- }
- },
- "type": "object"
- },
- "weight": {
- "enum": [
- "regular",
- "medium",
- "semibold",
- "bold"
- ],
- "type": "string"
- }
- },
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "layers.addImage",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "canvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "cornerRadius": {
- "minimum": 0,
- "type": "number"
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "name": {
- "maxLength": 1000,
- "type": "string"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- },
- "transform": {
- "additionalProperties": false,
- "properties": {
- "center": {
- "additionalProperties": false,
- "properties": {
- "x": {
- "type": "number"
- },
- "y": {
- "type": "number"
- }
- },
- "type": "object"
- },
- "rotation": {
- "type": "number"
- },
- "scale": {
- "maximum": 8,
- "minimum": 0.1,
- "type": "number"
- }
- },
- "type": "object"
- },
- "url": {
- "maxLength": 12582912,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "url"
- ],
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "layers.update",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "alignment": {
- "enum": [
- "leading",
- "center",
- "trailing"
- ],
- "type": "string"
- },
- "aspectRatio": {
- "exclusiveMinimum": 0,
- "type": "number"
- },
- "boxWidth": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "canvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "color": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "a": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "b": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "g": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "r": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "r",
- "g",
- "b",
- "a"
- ],
- "type": "object"
- },
- {
- "pattern": "^#?(?:[\\da-f]{3}|[\\da-f]{6}|[\\da-f]{8})$",
- "type": "string"
- }
- ]
- },
- "content": {
- "additionalProperties": false,
- "properties": {
- "alignment": {
- "enum": [
- "leading",
- "center",
- "trailing"
- ],
- "type": "string"
- },
- "aspectRatio": {
- "exclusiveMinimum": 0,
- "type": "number"
- },
- "boxWidth": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "color": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "a": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "b": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "g": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "r": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "r",
- "g",
- "b",
- "a"
- ],
- "type": "object"
- },
- {
- "pattern": "^#?(?:[\\da-f]{3}|[\\da-f]{6}|[\\da-f]{8})$",
- "type": "string"
- }
- ]
- },
- "cornerRadius": {
- "minimum": 0,
- "type": "number"
- },
- "deviceId": {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- "fontName": {
- "maxLength": 1000,
- "type": "string"
- },
- "fontSize": {
- "maximum": 8192,
- "minimum": 8,
- "type": "number"
- },
- "frameId": {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- "kerning": {
- "type": "number"
- },
- "lineSpacing": {
- "type": "number"
- },
- "orientation": {
- "enum": [
- "portrait",
- "landscape"
- ],
- "type": "string"
- },
- "pill": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "color": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "a": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "b": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "g": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "r": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "r",
- "g",
- "b",
- "a"
- ],
- "type": "object"
- },
- {
- "pattern": "^#?(?:[\\da-f]{3}|[\\da-f]{6}|[\\da-f]{8})$",
- "type": "string"
- }
- ]
- },
- "cornerRadius": {
- "minimum": 0,
- "type": "number"
- },
- "paddingX": {
- "minimum": 0,
- "type": "number"
- },
- "paddingY": {
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "color",
- "paddingX",
- "paddingY",
- "cornerRadius"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "screenshotOffset": {
- "additionalProperties": false,
- "properties": {
- "x": {
- "type": "number"
- },
- "y": {
- "type": "number"
- }
- },
- "type": "object"
- },
- "screenshotZoom": {
- "maximum": 3,
- "minimum": 1,
- "type": "number"
- },
- "shadow": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "color": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "a": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "b": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "g": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "r": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "r",
- "g",
- "b",
- "a"
- ],
- "type": "object"
- },
- {
- "pattern": "^#?(?:[\\da-f]{3}|[\\da-f]{6}|[\\da-f]{8})$",
- "type": "string"
- }
- ]
- },
- "offsetX": {
- "type": "number"
- },
- "offsetY": {
- "type": "number"
- },
- "radius": {
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "color",
- "radius",
- "offsetX",
- "offsetY"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "shadowIntensity": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "string": {
- "maxLength": 100000,
- "type": "string"
- },
- "stroke": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "color": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "a": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "b": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "g": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "r": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "r",
- "g",
- "b",
- "a"
- ],
- "type": "object"
- },
- {
- "pattern": "^#?(?:[\\da-f]{3}|[\\da-f]{6}|[\\da-f]{8})$",
- "type": "string"
- }
- ]
- },
- "width": {
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "color",
- "width"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "weight": {
- "enum": [
- "regular",
- "medium",
- "semibold",
- "bold"
- ],
- "type": "string"
- }
- },
- "type": "object"
- },
- "cornerRadius": {
- "minimum": 0,
- "type": "number"
- },
- "deviceId": {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- "fontName": {
- "maxLength": 1000,
- "type": "string"
- },
- "fontSize": {
- "maximum": 8192,
- "minimum": 8,
- "type": "number"
- },
- "frameId": {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- "isLocked": {
- "type": "boolean"
- },
- "isVisible": {
- "type": "boolean"
- },
- "kerning": {
- "type": "number"
- },
- "layerId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "lineSpacing": {
- "type": "number"
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "name": {
- "maxLength": 1000,
- "type": "string"
- },
- "opacity": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "orientation": {
- "enum": [
- "portrait",
- "landscape"
- ],
- "type": "string"
- },
- "pill": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "color": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "a": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "b": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "g": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "r": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "r",
- "g",
- "b",
- "a"
- ],
- "type": "object"
- },
- {
- "pattern": "^#?(?:[\\da-f]{3}|[\\da-f]{6}|[\\da-f]{8})$",
- "type": "string"
- }
- ]
- },
- "cornerRadius": {
- "minimum": 0,
- "type": "number"
- },
- "paddingX": {
- "minimum": 0,
- "type": "number"
- },
- "paddingY": {
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "color",
- "paddingX",
- "paddingY",
- "cornerRadius"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- },
- "screenshotOffset": {
- "additionalProperties": false,
- "properties": {
- "x": {
- "type": "number"
- },
- "y": {
- "type": "number"
- }
- },
- "type": "object"
- },
- "screenshotZoom": {
- "maximum": 3,
- "minimum": 1,
- "type": "number"
- },
- "shadow": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "color": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "a": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "b": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "g": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "r": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "r",
- "g",
- "b",
- "a"
- ],
- "type": "object"
- },
- {
- "pattern": "^#?(?:[\\da-f]{3}|[\\da-f]{6}|[\\da-f]{8})$",
- "type": "string"
- }
- ]
- },
- "offsetX": {
- "type": "number"
- },
- "offsetY": {
- "type": "number"
- },
- "radius": {
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "color",
- "radius",
- "offsetX",
- "offsetY"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "shadowIntensity": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "string": {
- "maxLength": 100000,
- "type": "string"
- },
- "stroke": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "color": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "a": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "b": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "g": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "r": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "r",
- "g",
- "b",
- "a"
- ],
- "type": "object"
- },
- {
- "pattern": "^#?(?:[\\da-f]{3}|[\\da-f]{6}|[\\da-f]{8})$",
- "type": "string"
- }
- ]
- },
- "width": {
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "color",
- "width"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "transform": {
- "additionalProperties": false,
- "properties": {
- "center": {
- "additionalProperties": false,
- "properties": {
- "x": {
- "type": "number"
- },
- "y": {
- "type": "number"
- }
- },
- "type": "object"
- },
- "rotation": {
- "type": "number"
- },
- "scale": {
- "maximum": 8,
- "minimum": 0.1,
- "type": "number"
- }
- },
- "type": "object"
- },
- "weight": {
- "enum": [
- "regular",
- "medium",
- "semibold",
- "bold"
- ],
- "type": "string"
- }
- },
- "required": [
- "layerId"
- ],
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "layers.delete",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "canvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "layerId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- }
- },
- "required": [
- "layerId"
- ],
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "layers.reorder",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "action": {
- "enum": [
- "front",
- "back",
- "forward",
- "backward"
- ],
- "type": "string"
- },
- "canvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "layerId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- },
- "toIndex": {
- "maximum": 9007199254740991,
- "minimum": 1,
- "type": "integer"
- }
- },
- "required": [
- "layerId"
- ],
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "layers.setBackground",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "blurRadius": {
- "minimum": 0,
- "type": "number"
- },
- "canvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "color": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "a": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "b": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "g": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "r": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "r",
- "g",
- "b",
- "a"
- ],
- "type": "object"
- },
- {
- "pattern": "^#?(?:[\\da-f]{3}|[\\da-f]{6}|[\\da-f]{8})$",
- "type": "string"
- }
- ]
- },
- "dimming": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "fill": {
- "oneOf": [
- {
- "properties": {
- "color": {
- "properties": {
- "a": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "b": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "g": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "r": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "r",
- "g",
- "b",
- "a"
- ],
- "type": "object"
- },
- "kind": {
- "const": "solid",
- "type": "string"
- }
- },
- "required": [
- "kind",
- "color"
- ],
- "type": "object"
- },
- {
- "properties": {
- "angle": {
- "type": "number"
- },
- "kind": {
- "const": "linearGradient",
- "type": "string"
- },
- "stops": {
- "items": {
- "properties": {
- "color": {
- "properties": {
- "a": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "b": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "g": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "r": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "r",
- "g",
- "b",
- "a"
- ],
- "type": "object"
- },
- "location": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "color",
- "location"
- ],
- "type": "object"
- },
- "maxItems": 64,
- "minItems": 2,
- "type": "array"
- }
- },
- "required": [
- "kind",
- "stops",
- "angle"
- ],
- "type": "object"
- },
- {
- "properties": {
- "kind": {
- "const": "radialGradient",
- "type": "string"
- },
- "stops": {
- "items": {
- "properties": {
- "color": {
- "properties": {
- "a": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "b": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "g": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "r": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "r",
- "g",
- "b",
- "a"
- ],
- "type": "object"
- },
- "location": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "color",
- "location"
- ],
- "type": "object"
- },
- "maxItems": 64,
- "minItems": 2,
- "type": "array"
- }
- },
- "required": [
- "kind",
- "stops"
- ],
- "type": "object"
- },
- {
- "properties": {
- "assetRef": {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- "blurRadius": {
- "minimum": 0,
- "type": "number"
- },
- "dimming": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "kind": {
- "const": "image",
- "type": "string"
- }
- },
- "required": [
- "kind",
- "assetRef",
- "blurRadius",
- "dimming"
- ],
- "type": "object"
- }
- ]
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "presetId": {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- },
- "url": {
- "maxLength": 12582912,
- "minLength": 1,
- "type": "string"
- }
- },
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "layers.setDevicePadding",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "canvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- },
- "value": {
- "maximum": 0.5,
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "value"
- ],
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "assets.attach",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "canvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "cropPolicy": {
- "enum": [
- "reset",
- "preserve"
- ],
- "type": "string"
- },
- "layerId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- },
- "target": {
- "enum": [
- "screenshot",
- "image",
- "background"
- ],
- "type": "string"
- },
- "url": {
- "maxLength": 12582912,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "url"
- ],
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "layout.sync",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "fields": {
- "items": {
- "enum": [
- "transform",
- "opacity",
- "style"
- ],
- "type": "string"
- },
- "minItems": 1,
- "type": "array"
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "mapping": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "sourceLayerId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "targetCanvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "targetLayerId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- }
- },
- "required": [
- "targetCanvasId",
- "sourceLayerId",
- "targetLayerId"
- ],
- "type": "object"
- },
- "maxItems": 500,
- "type": "array"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- },
- "scope": {
- "additionalProperties": false,
- "properties": {
- "background": {
- "type": "boolean"
- },
- "canvasSize": {
- "type": "boolean"
- },
- "devices": {
- "type": "boolean"
- },
- "images": {
- "type": "boolean"
- },
- "texts": {
- "type": "boolean"
- }
- },
- "type": "object"
- },
- "sourceCanvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "targetCanvasIds": {
- "items": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "maxItems": 10,
- "minItems": 1,
- "type": "array"
- }
- },
- "required": [
- "targetCanvasIds"
- ],
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "canvases.duplicate",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "canvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "name": {
- "maxLength": 1000,
- "type": "string"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- }
- },
- "required": [
- "canvasId"
- ],
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "canvases.reorder",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "canvasIds": {
- "items": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "maxItems": 10,
- "minItems": 1,
- "type": "array"
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- }
- },
- "required": [
- "canvasIds"
- ],
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "layers.duplicate",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "canvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "layerId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "name": {
- "maxLength": 1000,
- "type": "string"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- },
- "targetCanvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- }
- },
- "required": [
- "layerId"
- ],
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "assets.reuse",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "assetRef": {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- "canvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "cropPolicy": {
- "enum": [
- "reset",
- "preserve"
- ],
- "type": "string"
- },
- "layerId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- },
- "target": {
- "enum": [
- "screenshot",
- "image",
- "background"
- ],
- "type": "string"
- }
- },
- "required": [
- "assetRef",
- "target"
- ],
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "devices.clearScreenshot",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "canvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "layerId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- }
- },
- "required": [
- "layerId"
- ],
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "devices.setCrop",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "canvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "layerId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "offset": {
- "additionalProperties": false,
- "properties": {
- "x": {
- "type": "number"
- },
- "y": {
- "type": "number"
- }
- },
- "type": "object"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- },
- "zoom": {
- "maximum": 3,
- "minimum": 1,
- "type": "number"
- }
- },
- "required": [
- "layerId"
- ],
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "devices.resetCrop",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "canvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "layerId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- }
- },
- "required": [
- "layerId"
- ],
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "layers.move",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "canvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "dx": {
- "type": "number"
- },
- "dy": {
- "type": "number"
- },
- "layerId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- }
- },
- "required": [
- "layerId",
- "dx",
- "dy"
- ],
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "layers.position",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "canvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "layerId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- },
- "x": {
- "type": "number"
- },
- "y": {
- "type": "number"
- }
- },
- "required": [
- "layerId",
- "x",
- "y"
- ],
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "layers.resize",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "canvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "height": {
- "exclusiveMinimum": 0,
- "type": "number"
- },
- "layerId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- },
- "width": {
- "exclusiveMinimum": 0,
- "type": "number"
- }
- },
- "required": [
- "layerId"
- ],
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "layers.rotate",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "canvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "degrees": {
- "type": "number"
- },
- "layerId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "relative": {
- "type": "boolean"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- }
- },
- "required": [
- "layerId",
- "degrees"
- ],
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "layers.align",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "alignment": {
- "enum": [
- "left",
- "right",
- "top",
- "bottom",
- "centerX",
- "centerY"
- ],
- "type": "string"
- },
- "canvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "layerIds": {
- "items": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "maxItems": 49,
- "minItems": 1,
- "type": "array"
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "margin": {
- "type": "number"
- },
- "reference": {
- "enum": [
- "canvas",
- "selection",
- "layer"
- ],
- "type": "string"
- },
- "referenceLayerId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- }
- },
- "required": [
- "layerIds",
- "alignment"
- ],
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "layers.distribute",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "axis": {
- "enum": [
- "x",
- "y"
- ],
- "type": "string"
- },
- "canvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "gap": {
- "minimum": 0,
- "type": "number"
- },
- "layerIds": {
- "items": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "maxItems": 49,
- "minItems": 2,
- "type": "array"
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- }
- },
- "required": [
- "layerIds",
- "axis"
- ],
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "texts.reflow",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "canvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "layerId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- },
- "width": {
- "exclusiveMinimum": 0,
- "type": "number"
- }
- },
- "required": [
- "layerId",
- "width"
- ],
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "command": {
- "const": "texts.fit",
- "type": "string"
- },
- "input": {
- "additionalProperties": false,
- "properties": {
- "canvasId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "height": {
- "exclusiveMinimum": 0,
- "type": "number"
- },
- "layerId": {
- "anyOf": [
- {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ref": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "ref"
- ],
- "type": "object"
- }
- ]
- },
- "locale": {
- "enum": [
- "zh",
- "en"
- ],
- "type": "string"
- },
- "maxFontSize": {
- "maximum": 8192,
- "minimum": 8,
- "type": "number"
- },
- "maxLines": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "minFontSize": {
- "maximum": 8192,
- "minimum": 8,
- "type": "number"
- },
- "schemaVersion": {
- "const": 1,
- "type": "number"
- },
- "width": {
- "exclusiveMinimum": 0,
- "type": "number"
- }
- },
- "required": [
- "layerId",
- "width",
- "height",
- "minFontSize",
- "maxFontSize"
- ],
- "type": "object"
- }
- },
- "required": [
- "command",
- "input"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "projects.create",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "aspect": {
+ "enum": [
+ "square",
+ "portrait45",
+ "portrait34",
+ "portrait23",
+ "story916",
+ "landscape43",
+ "landscape32",
+ "landscape169",
+ "appStore69",
+ "appStore65",
+ "macAppStore",
+ "appStoreHeader",
+ "appStoreSearch",
+ "appStoreUniversal",
+ "appStoreEventCard",
+ "appStoreEventDetails",
+ "custom"
+ ],
+ "type": "string"
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "name": {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "projects.rename",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "name": {
+ "maxLength": 1000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "projects.import",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "package": {
+ "additionalProperties": {},
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "canvases.add",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "duplicate": {
+ "type": "boolean"
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "name": {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "canvases.delete",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "canvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ }
+ },
+ "required": [
+ "canvasId"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "canvases.rename",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "canvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "name": {
+ "maxLength": 1000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ }
+ },
+ "required": [
+ "canvasId",
+ "name"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "canvases.switch",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "canvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ }
+ },
+ "required": [
+ "canvasId"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "canvases.setAspect",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "aspect": {
+ "enum": [
+ "square",
+ "portrait45",
+ "portrait34",
+ "portrait23",
+ "story916",
+ "landscape43",
+ "landscape32",
+ "landscape169",
+ "appStore69",
+ "appStore65",
+ "macAppStore",
+ "appStoreHeader",
+ "appStoreSearch",
+ "appStoreUniversal",
+ "appStoreEventCard",
+ "appStoreEventDetails",
+ "custom"
+ ],
+ "type": "string"
+ },
+ "canvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "height": {
+ "maximum": 5244,
+ "minimum": 64,
+ "type": "integer"
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ },
+ "width": {
+ "maximum": 5244,
+ "minimum": 64,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "aspect"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "templates.apply",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "canvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "display": {
+ "enum": [
+ "65",
+ "69"
+ ],
+ "type": "string"
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ },
+ "templateId": {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ "themeId": {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "templateId"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "templates.applySet",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "canvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "display": {
+ "enum": [
+ "65",
+ "69"
+ ],
+ "type": "string"
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ },
+ "templateId": {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ "themeId": {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "templateId"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "layers.addDevice",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "canvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "deviceId": {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ "frameId": {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "name": {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ "orientation": {
+ "enum": [
+ "portrait",
+ "landscape"
+ ],
+ "type": "string"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ },
+ "transform": {
+ "additionalProperties": false,
+ "properties": {
+ "center": {
+ "additionalProperties": false,
+ "properties": {
+ "x": {
+ "type": "number"
+ },
+ "y": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "rotation": {
+ "type": "number"
+ },
+ "scale": {
+ "maximum": 8,
+ "minimum": 0.1,
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "url": {
+ "maxLength": 12582912,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "layers.addText",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "alignment": {
+ "enum": [
+ "leading",
+ "center",
+ "trailing"
+ ],
+ "type": "string"
+ },
+ "boxWidth": {
+ "anyOf": [
+ {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "canvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "color": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "a": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "b": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "g": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "r": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "r",
+ "g",
+ "b",
+ "a"
+ ],
+ "type": "object"
+ },
+ {
+ "pattern": "^#?(?:[\\da-f]{3}|[\\da-f]{6}|[\\da-f]{8})$",
+ "type": "string"
+ }
+ ]
+ },
+ "fontName": {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ "fontSize": {
+ "maximum": 8192,
+ "minimum": 8,
+ "type": "number"
+ },
+ "kerning": {
+ "type": "number"
+ },
+ "lineSpacing": {
+ "type": "number"
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "name": {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ "pill": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "color": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "a": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "b": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "g": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "r": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "r",
+ "g",
+ "b",
+ "a"
+ ],
+ "type": "object"
+ },
+ {
+ "pattern": "^#?(?:[\\da-f]{3}|[\\da-f]{6}|[\\da-f]{8})$",
+ "type": "string"
+ }
+ ]
+ },
+ "cornerRadius": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "paddingX": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "paddingY": {
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "color",
+ "paddingX",
+ "paddingY",
+ "cornerRadius"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ },
+ "shadow": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "color": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "a": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "b": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "g": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "r": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "r",
+ "g",
+ "b",
+ "a"
+ ],
+ "type": "object"
+ },
+ {
+ "pattern": "^#?(?:[\\da-f]{3}|[\\da-f]{6}|[\\da-f]{8})$",
+ "type": "string"
+ }
+ ]
+ },
+ "offsetX": {
+ "type": "number"
+ },
+ "offsetY": {
+ "type": "number"
+ },
+ "radius": {
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "color",
+ "radius",
+ "offsetX",
+ "offsetY"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "string": {
+ "maxLength": 100000,
+ "type": "string"
+ },
+ "stroke": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "color": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "a": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "b": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "g": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "r": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "r",
+ "g",
+ "b",
+ "a"
+ ],
+ "type": "object"
+ },
+ {
+ "pattern": "^#?(?:[\\da-f]{3}|[\\da-f]{6}|[\\da-f]{8})$",
+ "type": "string"
+ }
+ ]
+ },
+ "width": {
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "color",
+ "width"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "transform": {
+ "additionalProperties": false,
+ "properties": {
+ "center": {
+ "additionalProperties": false,
+ "properties": {
+ "x": {
+ "type": "number"
+ },
+ "y": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "rotation": {
+ "type": "number"
+ },
+ "scale": {
+ "maximum": 8,
+ "minimum": 0.1,
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "weight": {
+ "enum": [
+ "regular",
+ "medium",
+ "semibold",
+ "bold"
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "layers.addImage",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "canvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "cornerRadius": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "name": {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ },
+ "transform": {
+ "additionalProperties": false,
+ "properties": {
+ "center": {
+ "additionalProperties": false,
+ "properties": {
+ "x": {
+ "type": "number"
+ },
+ "y": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "rotation": {
+ "type": "number"
+ },
+ "scale": {
+ "maximum": 8,
+ "minimum": 0.1,
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "url": {
+ "maxLength": 12582912,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "url"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "layers.update",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "alignment": {
+ "enum": [
+ "leading",
+ "center",
+ "trailing"
+ ],
+ "type": "string"
+ },
+ "aspectRatio": {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "boxWidth": {
+ "anyOf": [
+ {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "canvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "color": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "a": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "b": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "g": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "r": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "r",
+ "g",
+ "b",
+ "a"
+ ],
+ "type": "object"
+ },
+ {
+ "pattern": "^#?(?:[\\da-f]{3}|[\\da-f]{6}|[\\da-f]{8})$",
+ "type": "string"
+ }
+ ]
+ },
+ "content": {
+ "additionalProperties": false,
+ "properties": {
+ "alignment": {
+ "enum": [
+ "leading",
+ "center",
+ "trailing"
+ ],
+ "type": "string"
+ },
+ "aspectRatio": {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "boxWidth": {
+ "anyOf": [
+ {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "color": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "a": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "b": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "g": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "r": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "r",
+ "g",
+ "b",
+ "a"
+ ],
+ "type": "object"
+ },
+ {
+ "pattern": "^#?(?:[\\da-f]{3}|[\\da-f]{6}|[\\da-f]{8})$",
+ "type": "string"
+ }
+ ]
+ },
+ "cornerRadius": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "deviceId": {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ "fontName": {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ "fontSize": {
+ "maximum": 8192,
+ "minimum": 8,
+ "type": "number"
+ },
+ "frameId": {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ "kerning": {
+ "type": "number"
+ },
+ "lineSpacing": {
+ "type": "number"
+ },
+ "orientation": {
+ "enum": [
+ "portrait",
+ "landscape"
+ ],
+ "type": "string"
+ },
+ "pill": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "color": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "a": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "b": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "g": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "r": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "r",
+ "g",
+ "b",
+ "a"
+ ],
+ "type": "object"
+ },
+ {
+ "pattern": "^#?(?:[\\da-f]{3}|[\\da-f]{6}|[\\da-f]{8})$",
+ "type": "string"
+ }
+ ]
+ },
+ "cornerRadius": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "paddingX": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "paddingY": {
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "color",
+ "paddingX",
+ "paddingY",
+ "cornerRadius"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "screenshotOffset": {
+ "additionalProperties": false,
+ "properties": {
+ "x": {
+ "type": "number"
+ },
+ "y": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "screenshotZoom": {
+ "maximum": 3,
+ "minimum": 1,
+ "type": "number"
+ },
+ "shadow": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "color": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "a": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "b": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "g": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "r": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "r",
+ "g",
+ "b",
+ "a"
+ ],
+ "type": "object"
+ },
+ {
+ "pattern": "^#?(?:[\\da-f]{3}|[\\da-f]{6}|[\\da-f]{8})$",
+ "type": "string"
+ }
+ ]
+ },
+ "offsetX": {
+ "type": "number"
+ },
+ "offsetY": {
+ "type": "number"
+ },
+ "radius": {
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "color",
+ "radius",
+ "offsetX",
+ "offsetY"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "shadowIntensity": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "string": {
+ "maxLength": 100000,
+ "type": "string"
+ },
+ "stroke": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "color": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "a": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "b": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "g": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "r": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "r",
+ "g",
+ "b",
+ "a"
+ ],
+ "type": "object"
+ },
+ {
+ "pattern": "^#?(?:[\\da-f]{3}|[\\da-f]{6}|[\\da-f]{8})$",
+ "type": "string"
+ }
+ ]
+ },
+ "width": {
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "color",
+ "width"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "weight": {
+ "enum": [
+ "regular",
+ "medium",
+ "semibold",
+ "bold"
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "cornerRadius": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "deviceId": {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ "fontName": {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ "fontSize": {
+ "maximum": 8192,
+ "minimum": 8,
+ "type": "number"
+ },
+ "frameId": {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ "isLocked": {
+ "type": "boolean"
+ },
+ "isVisible": {
+ "type": "boolean"
+ },
+ "kerning": {
+ "type": "number"
+ },
+ "layerId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "lineSpacing": {
+ "type": "number"
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "name": {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ "opacity": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "orientation": {
+ "enum": [
+ "portrait",
+ "landscape"
+ ],
+ "type": "string"
+ },
+ "pill": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "color": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "a": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "b": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "g": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "r": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "r",
+ "g",
+ "b",
+ "a"
+ ],
+ "type": "object"
+ },
+ {
+ "pattern": "^#?(?:[\\da-f]{3}|[\\da-f]{6}|[\\da-f]{8})$",
+ "type": "string"
+ }
+ ]
+ },
+ "cornerRadius": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "paddingX": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "paddingY": {
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "color",
+ "paddingX",
+ "paddingY",
+ "cornerRadius"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ },
+ "screenshotOffset": {
+ "additionalProperties": false,
+ "properties": {
+ "x": {
+ "type": "number"
+ },
+ "y": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "screenshotZoom": {
+ "maximum": 3,
+ "minimum": 1,
+ "type": "number"
+ },
+ "shadow": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "color": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "a": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "b": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "g": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "r": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "r",
+ "g",
+ "b",
+ "a"
+ ],
+ "type": "object"
+ },
+ {
+ "pattern": "^#?(?:[\\da-f]{3}|[\\da-f]{6}|[\\da-f]{8})$",
+ "type": "string"
+ }
+ ]
+ },
+ "offsetX": {
+ "type": "number"
+ },
+ "offsetY": {
+ "type": "number"
+ },
+ "radius": {
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "color",
+ "radius",
+ "offsetX",
+ "offsetY"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "shadowIntensity": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "string": {
+ "maxLength": 100000,
+ "type": "string"
+ },
+ "stroke": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "color": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "a": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "b": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "g": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "r": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "r",
+ "g",
+ "b",
+ "a"
+ ],
+ "type": "object"
+ },
+ {
+ "pattern": "^#?(?:[\\da-f]{3}|[\\da-f]{6}|[\\da-f]{8})$",
+ "type": "string"
+ }
+ ]
+ },
+ "width": {
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "color",
+ "width"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "transform": {
+ "additionalProperties": false,
+ "properties": {
+ "center": {
+ "additionalProperties": false,
+ "properties": {
+ "x": {
+ "type": "number"
+ },
+ "y": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "rotation": {
+ "type": "number"
+ },
+ "scale": {
+ "maximum": 8,
+ "minimum": 0.1,
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "weight": {
+ "enum": [
+ "regular",
+ "medium",
+ "semibold",
+ "bold"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "layerId"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "layers.delete",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "canvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "layerId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ }
+ },
+ "required": [
+ "layerId"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "layers.reorder",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "action": {
+ "enum": [
+ "front",
+ "back",
+ "forward",
+ "backward"
+ ],
+ "type": "string"
+ },
+ "canvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "layerId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ },
+ "toIndex": {
+ "maximum": 9007199254740991,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "layerId"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "layers.setBackground",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "blurRadius": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "canvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "color": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "a": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "b": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "g": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "r": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "r",
+ "g",
+ "b",
+ "a"
+ ],
+ "type": "object"
+ },
+ {
+ "pattern": "^#?(?:[\\da-f]{3}|[\\da-f]{6}|[\\da-f]{8})$",
+ "type": "string"
+ }
+ ]
+ },
+ "dimming": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "fill": {
+ "oneOf": [
+ {
+ "properties": {
+ "color": {
+ "properties": {
+ "a": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "b": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "g": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "r": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "r",
+ "g",
+ "b",
+ "a"
+ ],
+ "type": "object"
+ },
+ "kind": {
+ "const": "solid",
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "color"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "angle": {
+ "type": "number"
+ },
+ "kind": {
+ "const": "linearGradient",
+ "type": "string"
+ },
+ "stops": {
+ "items": {
+ "properties": {
+ "color": {
+ "properties": {
+ "a": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "b": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "g": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "r": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "r",
+ "g",
+ "b",
+ "a"
+ ],
+ "type": "object"
+ },
+ "location": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "color",
+ "location"
+ ],
+ "type": "object"
+ },
+ "maxItems": 64,
+ "minItems": 2,
+ "type": "array"
+ }
+ },
+ "required": [
+ "kind",
+ "stops",
+ "angle"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "kind": {
+ "const": "radialGradient",
+ "type": "string"
+ },
+ "stops": {
+ "items": {
+ "properties": {
+ "color": {
+ "properties": {
+ "a": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "b": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "g": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "r": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "r",
+ "g",
+ "b",
+ "a"
+ ],
+ "type": "object"
+ },
+ "location": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "color",
+ "location"
+ ],
+ "type": "object"
+ },
+ "maxItems": 64,
+ "minItems": 2,
+ "type": "array"
+ }
+ },
+ "required": [
+ "kind",
+ "stops"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "assetRef": {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ "blurRadius": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "dimming": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "kind": {
+ "const": "image",
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "assetRef",
+ "blurRadius",
+ "dimming"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "presetId": {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ },
+ "url": {
+ "maxLength": 12582912,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "layers.setDevicePadding",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "canvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ },
+ "value": {
+ "maximum": 0.5,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "value"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "assets.attach",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "canvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "cropPolicy": {
+ "enum": [
+ "reset",
+ "preserve"
+ ],
+ "type": "string"
+ },
+ "layerId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ },
+ "target": {
+ "enum": [
+ "screenshot",
+ "image",
+ "background"
+ ],
+ "type": "string"
+ },
+ "url": {
+ "maxLength": 12582912,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "url"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "layout.sync",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "fields": {
+ "items": {
+ "enum": [
+ "transform",
+ "opacity",
+ "style"
+ ],
+ "type": "string"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "mapping": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "sourceLayerId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "targetCanvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "targetLayerId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ }
+ },
+ "required": [
+ "targetCanvasId",
+ "sourceLayerId",
+ "targetLayerId"
+ ],
+ "type": "object"
+ },
+ "maxItems": 500,
+ "type": "array"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ },
+ "scope": {
+ "additionalProperties": false,
+ "properties": {
+ "background": {
+ "type": "boolean"
+ },
+ "canvasSize": {
+ "type": "boolean"
+ },
+ "devices": {
+ "type": "boolean"
+ },
+ "images": {
+ "type": "boolean"
+ },
+ "texts": {
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "sourceCanvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "targetCanvasIds": {
+ "items": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "maxItems": 10,
+ "minItems": 1,
+ "type": "array"
+ }
+ },
+ "required": [
+ "targetCanvasIds"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "canvases.duplicate",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "canvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "name": {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ }
+ },
+ "required": [
+ "canvasId"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "canvases.reorder",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "canvasIds": {
+ "items": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "maxItems": 10,
+ "minItems": 1,
+ "type": "array"
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ }
+ },
+ "required": [
+ "canvasIds"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "layers.duplicate",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "canvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "layerId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "name": {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ },
+ "targetCanvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ }
+ },
+ "required": [
+ "layerId"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "assets.reuse",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "assetRef": {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ "canvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "cropPolicy": {
+ "enum": [
+ "reset",
+ "preserve"
+ ],
+ "type": "string"
+ },
+ "layerId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ },
+ "target": {
+ "enum": [
+ "screenshot",
+ "image",
+ "background"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "assetRef",
+ "target"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "devices.clearScreenshot",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "canvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "layerId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ }
+ },
+ "required": [
+ "layerId"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "devices.setCrop",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "canvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "layerId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "offset": {
+ "additionalProperties": false,
+ "properties": {
+ "x": {
+ "type": "number"
+ },
+ "y": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ },
+ "zoom": {
+ "maximum": 3,
+ "minimum": 1,
+ "type": "number"
+ }
+ },
+ "required": [
+ "layerId"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "devices.resetCrop",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "canvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "layerId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ }
+ },
+ "required": [
+ "layerId"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "layers.move",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "canvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "dx": {
+ "type": "number"
+ },
+ "dy": {
+ "type": "number"
+ },
+ "layerId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ }
+ },
+ "required": [
+ "layerId",
+ "dx",
+ "dy"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "layers.position",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "canvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "layerId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ },
+ "x": {
+ "type": "number"
+ },
+ "y": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "layerId",
+ "x",
+ "y"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "layers.resize",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "canvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "height": {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "layerId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ },
+ "width": {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "layerId"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "layers.rotate",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "canvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "degrees": {
+ "type": "number"
+ },
+ "layerId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "relative": {
+ "type": "boolean"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ }
+ },
+ "required": [
+ "layerId",
+ "degrees"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "layers.align",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "alignment": {
+ "enum": [
+ "left",
+ "right",
+ "top",
+ "bottom",
+ "centerX",
+ "centerY"
+ ],
+ "type": "string"
+ },
+ "canvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "layerIds": {
+ "items": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "maxItems": 49,
+ "minItems": 1,
+ "type": "array"
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "margin": {
+ "type": "number"
+ },
+ "reference": {
+ "enum": [
+ "canvas",
+ "selection",
+ "layer"
+ ],
+ "type": "string"
+ },
+ "referenceLayerId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ }
+ },
+ "required": [
+ "layerIds",
+ "alignment"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "layers.distribute",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "axis": {
+ "enum": [
+ "x",
+ "y"
+ ],
+ "type": "string"
+ },
+ "canvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "gap": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "layerIds": {
+ "items": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "maxItems": 49,
+ "minItems": 2,
+ "type": "array"
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ }
+ },
+ "required": [
+ "layerIds",
+ "axis"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "texts.reflow",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "canvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "layerId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ },
+ "width": {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "layerId",
+ "width"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "command": {
+ "const": "texts.fit",
+ "type": "string"
+ },
+ "input": {
+ "additionalProperties": false,
+ "properties": {
+ "canvasId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "height": {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "layerId": {
+ "anyOf": [
+ {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ref": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ref"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "locale": {
+ "enum": [
+ "zh",
+ "en"
+ ],
+ "type": "string"
+ },
+ "maxFontSize": {
+ "maximum": 8192,
+ "minimum": 8,
+ "type": "number"
+ },
+ "maxLines": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "minFontSize": {
+ "maximum": 8192,
+ "minimum": 8,
+ "type": "number"
+ },
+ "schemaVersion": {
+ "const": 1,
+ "type": "number"
+ },
+ "width": {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "layerId",
+ "width",
+ "height",
+ "minFontSize",
+ "maxFontSize"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "command",
+ "input"
+ ],
+ "type": "object"
+ }
+]