{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "version": {
      "type": "string"
    },
    "readme": {
      "type": "string"
    },
    "license": {
      "anyOf": [
        {
          "const": "AGPL-3.0-only"
        },
        {
          "const": "Apache-2.0"
        },
        {
          "const": "BSD-2-Clause"
        },
        {
          "const": "BSD-3-Clause"
        },
        {
          "const": "BSL-1.0"
        },
        {
          "const": "CC0-1.0"
        },
        {
          "const": "CDDL-1.0"
        },
        {
          "const": "CDDL-1.1"
        },
        {
          "const": "EPL-1.0"
        },
        {
          "const": "EPL-2.0"
        },
        {
          "const": "GPL-2.0-only"
        },
        {
          "const": "GPL-3.0-only"
        },
        {
          "const": "ISC"
        },
        {
          "const": "LGPL-2.0-only"
        },
        {
          "const": "LGPL-2.1-only"
        },
        {
          "const": "LGPL-2.1-or-later"
        },
        {
          "const": "LGPL-3.0-only"
        },
        {
          "const": "LGPL-3.0-or-later"
        },
        {
          "const": "MIT"
        },
        {
          "const": "MPL-2.0"
        },
        {
          "const": "MS-PL"
        },
        {
          "const": "UNLICENSED"
        }
      ]
    },
    "author": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "email": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "url": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "name"
          ]
        },
        {
          "type": "string"
        }
      ]
    },
    "draft": {
      "type": "boolean"
    },
    "contributors": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "url": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name"
            ]
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "repository": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string"
            },
            "url": {
              "type": "string"
            },
            "directory": {
              "type": "string"
            }
          },
          "required": [
            "type",
            "url"
          ]
        }
      ]
    },
    "dependencies": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "kunkun": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "shortDescription": {
          "type": "string"
        },
        "longDescription": {
          "type": "string"
        },
        "identifier": {
          "type": "string"
        },
        "icon": {
          "type": "object",
          "properties": {
            "type": {
              "enum": [
                "iconify",
                "remote-url",
                "svg",
                "base64-png",
                "text"
              ]
            },
            "value": {
              "type": "string"
            },
            "invert": {
              "type": "boolean"
            },
            "darkInvert": {
              "type": "boolean"
            },
            "hexColor": {
              "type": "string"
            },
            "bgColor": {
              "type": "string"
            }
          },
          "required": [
            "type",
            "value"
          ]
        },
        "permissions": {
          "type": "array",
          "items": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "const": "clipboard:read-all"
                          },
                          {
                            "const": "clipboard:write-all"
                          },
                          {
                            "const": "clipboard:read-text"
                          },
                          {
                            "const": "clipboard:write-text"
                          },
                          {
                            "const": "clipboard:read-image"
                          },
                          {
                            "const": "clipboard:write-image"
                          },
                          {
                            "const": "clipboard:read-files"
                          },
                          {
                            "const": "clipboard:write-files"
                          }
                        ]
                      },
                      {
                        "const": "clipboard:paste"
                      }
                    ]
                  },
                  {
                    "anyOf": [
                      {
                        "const": "event:drag-drop"
                      },
                      {
                        "const": "event:drag-enter"
                      },
                      {
                        "const": "event:drag-leave"
                      },
                      {
                        "const": "event:drag-over"
                      },
                      {
                        "const": "event:window-blur"
                      },
                      {
                        "const": "event:window-close-requested"
                      },
                      {
                        "const": "event:window-focus"
                      }
                    ]
                  },
                  {
                    "anyOf": [
                      {
                        "const": "dialog:all"
                      }
                    ]
                  },
                  {
                    "anyOf": [
                      {
                        "const": "notification:all"
                      }
                    ]
                  },
                  {
                    "const": "os:all"
                  },
                  {
                    "anyOf": [
                      {
                        "const": "shell:execute"
                      },
                      {
                        "const": "shell:deno:execute"
                      },
                      {
                        "const": "shell:spawn"
                      },
                      {
                        "const": "shell:deno:spawn"
                      },
                      {
                        "const": "shell:open"
                      },
                      {
                        "const": "shell:kill"
                      },
                      {
                        "const": "shell:kill-any"
                      },
                      {
                        "const": "shell:all"
                      },
                      {
                        "const": "shell:stdin-write"
                      }
                    ]
                  },
                  {
                    "const": "fetch:all"
                  },
                  {
                    "anyOf": [
                      {
                        "const": "system-info:all"
                      },
                      {
                        "const": "system-info:memory"
                      },
                      {
                        "const": "system-info:cpu"
                      },
                      {
                        "const": "system-info:os"
                      },
                      {
                        "const": "system-info:disk"
                      },
                      {
                        "const": "system-info:network"
                      },
                      {
                        "const": "system-info:battery"
                      },
                      {
                        "const": "system-info:process"
                      },
                      {
                        "const": "system-info:components"
                      }
                    ]
                  },
                  {
                    "anyOf": [
                      {
                        "const": "network:interface"
                      },
                      {
                        "const": "network:port"
                      }
                    ]
                  },
                  {
                    "anyOf": [
                      {
                        "const": "updownload:download"
                      },
                      {
                        "const": "updownload:upload"
                      }
                    ]
                  },
                  {
                    "anyOf": [
                      {
                        "const": "system:volumn"
                      },
                      {
                        "const": "system:boot"
                      },
                      {
                        "const": "system:disk"
                      },
                      {
                        "const": "system:apps"
                      },
                      {
                        "const": "system:fs"
                      },
                      {
                        "const": "system:ui"
                      }
                    ]
                  },
                  {
                    "anyOf": [
                      {
                        "const": "security:mac:reveal-security-pane"
                      },
                      {
                        "const": "security:mac:verify-fingerprint"
                      },
                      {
                        "const": "security:mac:reset-screencapture-permission"
                      },
                      {
                        "const": "security:mac:request-permission"
                      },
                      {
                        "const": "security:mac:check-permission"
                      },
                      {
                        "const": "security:mac:all"
                      }
                    ]
                  }
                ]
              },
              {
                "type": "object",
                "properties": {
                  "permission": {
                    "anyOf": [
                      {
                        "anyOf": [
                          {
                            "const": "fs:read"
                          },
                          {
                            "const": "fs:write"
                          },
                          {
                            "const": "fs:exists"
                          }
                        ]
                      },
                      {
                        "const": "fs:read-dir"
                      },
                      {
                        "const": "fs:stat"
                      },
                      {
                        "const": "fs:search"
                      }
                    ]
                  },
                  "allow": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "path": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        },
                        "cmd": {
                          "type": "object",
                          "properties": {
                            "program": {
                              "type": "string"
                            },
                            "args": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "program",
                            "args"
                          ]
                        },
                        "net": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "env": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "read": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "write": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "run": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "ffi": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "sys": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "const": "hostname"
                                  },
                                  {
                                    "const": "osRelease"
                                  },
                                  {
                                    "const": "osUptime"
                                  },
                                  {
                                    "const": "loadavg"
                                  },
                                  {
                                    "const": "networkInterfaces"
                                  },
                                  {
                                    "const": "systemMemoryInfo"
                                  },
                                  {
                                    "const": "uid"
                                  },
                                  {
                                    "const": "gid"
                                  },
                                  {
                                    "const": "cpus"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": []
                    }
                  },
                  "deny": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "path": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        },
                        "cmd": {
                          "type": "object",
                          "properties": {
                            "program": {
                              "type": "string"
                            },
                            "args": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "program",
                            "args"
                          ]
                        },
                        "net": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "env": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "read": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "write": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "run": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "ffi": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "sys": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "const": "hostname"
                                  },
                                  {
                                    "const": "osRelease"
                                  },
                                  {
                                    "const": "osUptime"
                                  },
                                  {
                                    "const": "loadavg"
                                  },
                                  {
                                    "const": "networkInterfaces"
                                  },
                                  {
                                    "const": "systemMemoryInfo"
                                  },
                                  {
                                    "const": "uid"
                                  },
                                  {
                                    "const": "gid"
                                  },
                                  {
                                    "const": "cpus"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": []
                    }
                  }
                },
                "required": [
                  "permission"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "permission": {
                    "anyOf": [
                      {
                        "const": "open:url"
                      },
                      {
                        "const": "open:file"
                      },
                      {
                        "const": "open:folder"
                      }
                    ]
                  },
                  "allow": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "path": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        },
                        "cmd": {
                          "type": "object",
                          "properties": {
                            "program": {
                              "type": "string"
                            },
                            "args": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "program",
                            "args"
                          ]
                        },
                        "net": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "env": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "read": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "write": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "run": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "ffi": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "sys": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "const": "hostname"
                                  },
                                  {
                                    "const": "osRelease"
                                  },
                                  {
                                    "const": "osUptime"
                                  },
                                  {
                                    "const": "loadavg"
                                  },
                                  {
                                    "const": "networkInterfaces"
                                  },
                                  {
                                    "const": "systemMemoryInfo"
                                  },
                                  {
                                    "const": "uid"
                                  },
                                  {
                                    "const": "gid"
                                  },
                                  {
                                    "const": "cpus"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": []
                    }
                  },
                  "deny": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "path": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        },
                        "cmd": {
                          "type": "object",
                          "properties": {
                            "program": {
                              "type": "string"
                            },
                            "args": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "program",
                            "args"
                          ]
                        },
                        "net": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "env": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "read": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "write": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "run": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "ffi": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "sys": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "const": "hostname"
                                  },
                                  {
                                    "const": "osRelease"
                                  },
                                  {
                                    "const": "osUptime"
                                  },
                                  {
                                    "const": "loadavg"
                                  },
                                  {
                                    "const": "networkInterfaces"
                                  },
                                  {
                                    "const": "systemMemoryInfo"
                                  },
                                  {
                                    "const": "uid"
                                  },
                                  {
                                    "const": "gid"
                                  },
                                  {
                                    "const": "cpus"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": []
                    }
                  }
                },
                "required": [
                  "permission"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "permission": {
                    "anyOf": [
                      {
                        "const": "shell:execute"
                      },
                      {
                        "const": "shell:deno:execute"
                      },
                      {
                        "const": "shell:spawn"
                      },
                      {
                        "const": "shell:deno:spawn"
                      },
                      {
                        "const": "shell:open"
                      },
                      {
                        "const": "shell:kill"
                      },
                      {
                        "const": "shell:kill-any"
                      },
                      {
                        "const": "shell:all"
                      },
                      {
                        "const": "shell:stdin-write"
                      }
                    ]
                  },
                  "allow": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "path": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        },
                        "cmd": {
                          "type": "object",
                          "properties": {
                            "program": {
                              "type": "string"
                            },
                            "args": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "program",
                            "args"
                          ]
                        },
                        "net": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "env": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "read": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "write": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "run": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "ffi": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "sys": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "const": "hostname"
                                  },
                                  {
                                    "const": "osRelease"
                                  },
                                  {
                                    "const": "osUptime"
                                  },
                                  {
                                    "const": "loadavg"
                                  },
                                  {
                                    "const": "networkInterfaces"
                                  },
                                  {
                                    "const": "systemMemoryInfo"
                                  },
                                  {
                                    "const": "uid"
                                  },
                                  {
                                    "const": "gid"
                                  },
                                  {
                                    "const": "cpus"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": []
                    }
                  },
                  "deny": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "path": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        },
                        "cmd": {
                          "type": "object",
                          "properties": {
                            "program": {
                              "type": "string"
                            },
                            "args": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "program",
                            "args"
                          ]
                        },
                        "net": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "env": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "read": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "write": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "run": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "ffi": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          ]
                        },
                        "sys": {
                          "anyOf": [
                            {
                              "const": "*"
                            },
                            {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "const": "hostname"
                                  },
                                  {
                                    "const": "osRelease"
                                  },
                                  {
                                    "const": "osUptime"
                                  },
                                  {
                                    "const": "loadavg"
                                  },
                                  {
                                    "const": "networkInterfaces"
                                  },
                                  {
                                    "const": "systemMemoryInfo"
                                  },
                                  {
                                    "const": "uid"
                                  },
                                  {
                                    "const": "gid"
                                  },
                                  {
                                    "const": "cpus"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": []
                    }
                  }
                },
                "required": [
                  "permission"
                ]
              }
            ]
          }
        },
        "demoImages": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "customUiCmds": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "main": {
                "type": "string"
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": ""
              },
              "name": {
                "type": "string"
              },
              "cmds": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "anyOf": [
                        {
                          "const": "text"
                        },
                        {
                          "const": "regex"
                        }
                      ]
                    },
                    "value": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "value"
                  ]
                }
              },
              "icon": {
                "type": "object",
                "properties": {
                  "type": {
                    "enum": [
                      "iconify",
                      "remote-url",
                      "svg",
                      "base64-png",
                      "text"
                    ]
                  },
                  "value": {
                    "type": "string"
                  },
                  "invert": {
                    "type": "boolean"
                  },
                  "darkInvert": {
                    "type": "boolean"
                  },
                  "hexColor": {
                    "type": "string"
                  },
                  "bgColor": {
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "value"
                ]
              },
              "platforms": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "enum": [
                        "linux",
                        "macos",
                        "windows"
                      ]
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": [
                  "linux",
                  "macos",
                  "windows"
                ]
              },
              "type": {
                "enum": [
                  "headless_worker",
                  "builtin",
                  "system",
                  "ui_worker",
                  "ui_iframe",
                  "quick_link",
                  "remote"
                ],
                "default": "ui_iframe"
              },
              "dist": {
                "type": "string"
              },
              "devMain": {
                "type": "string"
              },
              "window": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "center": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "x": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "y": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "width": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "height": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "minWidth": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "minHeight": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "maxWidth": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "maxHeight": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "resizable": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "title": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "fullscreen": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "focus": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "transparent": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "maximized": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "visible": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "decorations": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "alwaysOnTop": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "alwaysOnBottom": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "contentProtected": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "skipTaskbar": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "shadow": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "titleBarStyle": {
                        "anyOf": [
                          {
                            "enum": [
                              "visible",
                              "transparent",
                              "overlay"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "hiddenTitle": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "tabbingIdentifier": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "maximizable": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "minimizable": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "closable": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "parent": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "visibleOnAllWorkspaces": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": []
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "main",
              "name",
              "cmds",
              "dist",
              "devMain"
            ]
          }
        },
        "templateUiCmds": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "main": {
                "type": "string"
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": ""
              },
              "name": {
                "type": "string"
              },
              "cmds": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "anyOf": [
                        {
                          "const": "text"
                        },
                        {
                          "const": "regex"
                        }
                      ]
                    },
                    "value": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "value"
                  ]
                }
              },
              "icon": {
                "type": "object",
                "properties": {
                  "type": {
                    "enum": [
                      "iconify",
                      "remote-url",
                      "svg",
                      "base64-png",
                      "text"
                    ]
                  },
                  "value": {
                    "type": "string"
                  },
                  "invert": {
                    "type": "boolean"
                  },
                  "darkInvert": {
                    "type": "boolean"
                  },
                  "hexColor": {
                    "type": "string"
                  },
                  "bgColor": {
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "value"
                ]
              },
              "platforms": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "enum": [
                        "linux",
                        "macos",
                        "windows"
                      ]
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": [
                  "linux",
                  "macos",
                  "windows"
                ]
              },
              "type": {
                "enum": [
                  "headless_worker",
                  "builtin",
                  "system",
                  "ui_worker",
                  "ui_iframe",
                  "quick_link",
                  "remote"
                ],
                "default": "ui_worker"
              },
              "window": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "center": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "x": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "y": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "width": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "height": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "minWidth": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "minHeight": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "maxWidth": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "maxHeight": {
                        "anyOf": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "resizable": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "title": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "fullscreen": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "focus": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "transparent": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "maximized": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "visible": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "decorations": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "alwaysOnTop": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "alwaysOnBottom": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "contentProtected": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "skipTaskbar": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "shadow": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "titleBarStyle": {
                        "anyOf": [
                          {
                            "enum": [
                              "visible",
                              "transparent",
                              "overlay"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "hiddenTitle": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "tabbingIdentifier": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "maximizable": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "minimizable": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "closable": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "parent": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "visibleOnAllWorkspaces": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": []
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "main",
              "name",
              "cmds"
            ]
          }
        },
        "headlessCmds": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "main": {
                "type": "string"
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": ""
              },
              "name": {
                "type": "string"
              },
              "cmds": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "anyOf": [
                        {
                          "const": "text"
                        },
                        {
                          "const": "regex"
                        }
                      ]
                    },
                    "value": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "value"
                  ]
                }
              },
              "icon": {
                "type": "object",
                "properties": {
                  "type": {
                    "enum": [
                      "iconify",
                      "remote-url",
                      "svg",
                      "base64-png",
                      "text"
                    ]
                  },
                  "value": {
                    "type": "string"
                  },
                  "invert": {
                    "type": "boolean"
                  },
                  "darkInvert": {
                    "type": "boolean"
                  },
                  "hexColor": {
                    "type": "string"
                  },
                  "bgColor": {
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "value"
                ]
              },
              "platforms": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "enum": [
                        "linux",
                        "macos",
                        "windows"
                      ]
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": [
                  "linux",
                  "macos",
                  "windows"
                ]
              },
              "type": {
                "enum": [
                  "headless_worker",
                  "builtin",
                  "system",
                  "ui_worker",
                  "ui_iframe",
                  "quick_link",
                  "remote"
                ],
                "default": "headless_worker"
              }
            },
            "required": [
              "main",
              "name",
              "cmds"
            ]
          }
        }
      },
      "required": [
        "name",
        "shortDescription",
        "longDescription",
        "identifier",
        "icon",
        "permissions",
        "demoImages"
      ]
    },
    "files": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "name",
    "version",
    "license",
    "kunkun"
  ],
  "additionalProperties": {}
}
