{
  "$defs": {
    "Contact": {
      "properties": {
        "email": {
          "description": "Contact email address.",
          "title": "Email",
          "type": "string"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Contact name.",
          "title": "Name"
        }
      },
      "required": [
        "email"
      ],
      "title": "Contact",
      "type": "object"
    },
    "PluginMetadata": {
      "additionalProperties": true,
      "properties": {
        "name": {
          "description": "Identifier for the plugin. Must consist of ASCII letters, digits, underscores, and hyphens, and must not start or end with an underscore or hyphen. Two plugins with the same name cannot be installed at the same time, so this should be globally unique. IDA Pro derives a namespaced identifier by converting all non-alphanumeric characters to underscores and prepending `__plugins__` (e.g. `my plugin` becomes `__plugins__my_plugin`).",
          "examples": [
            "my-plugin"
          ],
          "title": "Name",
          "type": "string"
        },
        "version": {
          "description": "Plugin version in `x.y.z` semver format. Do not include a leading `v`.",
          "examples": [
            "1.0.0"
          ],
          "title": "Version",
          "type": "string"
        },
        "entryPoint": {
          "description": "Filename of the plugin's main file, relative to this `ida-plugin.json`. If the value has no file extension, IDA assumes a native plugin and appends the host platform's dynamic shared object extension (`.dll`, `.so`, `.dylib`). For IDAPython plugins, this should be a `.py` file.",
          "examples": [
            "my-first-plugin.py"
          ],
          "title": "Entrypoint",
          "type": "string"
        },
        "urls": {
          "$ref": "#/$defs/URLs",
          "description": "URLs associated with the plugin."
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "One-line description of the plugin, shown as the headline of its page on the plugin repository and in lists of search results.",
          "title": "Description"
        },
        "categories": {
          "description": "Major categories used to improve discoverability in the plugin repository.",
          "items": {
            "enum": [
              "disassembly-and-processor-modules",
              "file-parsers-and-loaders",
              "decompilation",
              "debugging-and-tracing",
              "deobfuscation",
              "collaboration-and-productivity",
              "integration-with-third-parties-interoperability",
              "api-scripting-and-automation",
              "ui-ux-and-visualization",
              "malware-analysis",
              "vulnerability-research-and-exploit-development",
              "other"
            ],
            "type": "string"
          },
          "title": "Categories",
          "type": "array"
        },
        "keywords": {
          "description": "Search terms used to improve discoverability in the plugin repository.",
          "items": {
            "type": "string"
          },
          "title": "Keywords",
          "type": "array"
        },
        "license": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "License for the plugin.",
          "examples": [
            "MIT",
            "Apache 2.0",
            "BSD 3-Clause"
          ],
          "title": "License"
        },
        "authors": {
          "description": "Authors of the plugin. At least one author or maintainer is required.",
          "items": {
            "$ref": "#/$defs/Contact"
          },
          "title": "Authors",
          "type": "array"
        },
        "maintainers": {
          "description": "Maintainers of the plugin. At least one author or maintainer is required.",
          "items": {
            "$ref": "#/$defs/Contact"
          },
          "title": "Maintainers",
          "type": "array"
        },
        "idaVersions": {
          "description": "Versions of IDA Pro the plugin supports. Each version must be declared separately because IDA's APIs do not strictly follow semantic versioning. The default is all versions, but this is almost certainly incorrect.",
          "examples": [
            [
              "9.0",
              "9.1",
              "9.2"
            ]
          ],
          "items": {
            "enum": [
              "10.0",
              "9.5",
              "9.4",
              "9.3",
              "9.2",
              "9.1",
              "9.0sp1",
              "9.0",
              "8.5",
              "8.4sp2",
              "8.4sp1",
              "8.4",
              "8.3",
              "8.2sp1",
              "8.2",
              "8.1",
              "8.0sp1",
              "8.0",
              "7.7sp1",
              "7.7",
              "7.6sp1",
              "7.6",
              "7.5sp3",
              "7.5sp2",
              "7.5sp1",
              "7.5",
              "7.4sp1",
              "7.4",
              "7.3",
              "7.2",
              "7.1",
              "7.0sp1",
              "7.0",
              "6.95",
              "6.9",
              "6.8",
              "6.7",
              "6.6",
              "6.5",
              "6.4",
              "6.3",
              "6.2",
              "6.1",
              "6.0",
              "5.7",
              "5.6",
              "5.5",
              "5.4",
              "5.3",
              "5.2",
              "5.1",
              "5.0",
              "4.9sp1",
              "4.9",
              "4.8",
              "4.7",
              "4.6",
              "4.5",
              "4.4",
              "4.3",
              "4.2",
              "4.1",
              "4.0",
              "3.0"
            ],
            "type": "string"
          },
          "title": "Idaversions",
          "type": "array"
        },
        "platforms": {
          "description": "Platforms the plugin supports. The default is all platforms, which is appropriate for cross-platform Python plugins. Native plugins should declare the platform consistent with the `.dll`/`.so`/`.dylib` file in the archive.",
          "items": {
            "enum": [
              "windows-x86_64",
              "windows-aarch64",
              "linux-x86_64",
              "linux-aarch64",
              "macos-x86_64",
              "macos-aarch64"
            ],
            "type": "string"
          },
          "title": "Platforms",
          "type": "array"
        },
        "logoPath": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Relative path within the repository to an image representing the plugin on `plugins.hex-rays.com`. Recommended aspect ratio is 16:9.",
          "title": "Logopath"
        },
        "requiresPython": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Python version requirement for the IDA Python environment, expressed as a PEP 440 version specifier. HCLI skips plugin versions whose requirement excludes the target Python version when it selects a version, and checks it again before installing the plugin.",
          "examples": [
            ">=3.11"
          ],
          "title": "Requirespython"
        },
        "pythonDependencies": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "string"
            }
          ],
          "description": "List of pip-compatible dependency specifications, or the literal string `inline` to read PEP 723 metadata from the entry point.",
          "examples": [
            [
              "httpx",
              "gidgethub[httpx]>4.0.0",
              "pkg3>=1.0,<=2.0"
            ],
            "inline"
          ],
          "title": "Pythondependencies"
        },
        "settings": {
          "description": "User-configurable settings exposed by the plugin.",
          "items": {
            "$ref": "#/$defs/PluginSettingDescriptor"
          },
          "title": "Settings",
          "type": "array"
        },
        "dependencies": {
          "description": "Plugins to install alongside this one. Each entry is either a string (plugin reference: bare name, name==version, or name@host) or an object with 'plugin' (string) and optional 'required' (bool, default true). String entries are required by default. Dependencies are resolved across all configured repositories. Use name@host to pin a dependency to a specific repository and avoid ambiguity.",
          "examples": [
            [
              "go-runtime-detector",
              "go-string-extractor==1.2.0"
            ],
            [
              "always-needed",
              {
                "plugin": "nice-to-have",
                "required": false
              },
              {
                "plugin": "also-needed==2.0.0",
                "required": true
              }
            ]
          ],
          "items": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "plugin": {
                    "description": "Plugin reference in the same format accepted for string entries.",
                    "type": "string"
                  },
                  "required": {
                    "default": true,
                    "description": "Whether the parent needs this dependency to function.",
                    "type": "boolean"
                  }
                },
                "required": [
                  "plugin"
                ],
                "type": "object"
              }
            ]
          },
          "title": "Dependencies",
          "type": "array"
        },
        "components": {
          "description": "Subdirectory names of plugins bundled inside this suite's archive. Each entry is either a string (subdirectory name) or a full IDAMetadataDescriptor object (expanded component metadata). String entries must match a subdirectory containing its own ida-plugin.json whose plugin.name matches the entry. Components share the suite's lifecycle and are hidden from top-level plugin listings.",
          "examples": [
            [
              "hexrays-taint-engine",
              "hexrays-type-propagation"
            ]
          ],
          "items": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "description": "Full IDAMetadataDescriptor for a pre-expanded component.",
                "properties": {
                  "IDAMetadataDescriptorVersion": {
                    "const": 1,
                    "type": "integer"
                  },
                  "plugin": {
                    "type": "object"
                  }
                },
                "required": [
                  "IDAMetadataDescriptorVersion",
                  "plugin"
                ],
                "type": "object"
              }
            ]
          },
          "title": "Components",
          "type": "array"
        }
      },
      "required": [
        "name",
        "version",
        "entryPoint",
        "urls"
      ],
      "title": "PluginMetadata",
      "type": "object"
    },
    "PluginSettingDescriptor": {
      "properties": {
        "key": {
          "description": "Unique code-level identifier for the setting.",
          "examples": [
            "openai_api_key"
          ],
          "title": "Key",
          "type": "string"
        },
        "type": {
          "description": "Setting value type.",
          "enum": [
            "string",
            "boolean"
          ],
          "title": "Type",
          "type": "string"
        },
        "required": {
          "description": "Whether the user must supply a value for this setting.",
          "title": "Required",
          "type": "boolean"
        },
        "default": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Default value used when no other config provides one. Written into `ida-config.json` only when the user selects it, such as at an install prompt; otherwise provided on-demand.",
          "title": "Default"
        },
        "name": {
          "description": "Human-readable name for the setting.",
          "examples": [
            "OpenAI API key"
          ],
          "title": "Name",
          "type": "string"
        },
        "documentation": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Human-readable explanation for the setting.",
          "examples": [
            "OpenAI API key acquired from https://platform.openai.com/api-keys"
          ],
          "title": "Documentation"
        },
        "validation_pattern": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Regular expression used to validate candidate values. Only used for string types. Mutually exclusive with `choices`.",
          "examples": [
            "[a-z]{32}"
          ],
          "title": "Validation Pattern"
        },
        "choices": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Acceptable string values. Only used for string types. Mutually exclusive with `validation_pattern`.",
          "examples": [
            [
              "option-a",
              "option-b",
              "option-c"
            ]
          ],
          "title": "Choices"
        },
        "prompt": {
          "default": true,
          "description": "Whether to prompt the user for this setting during installation. Set to false to use the default value without prompting.",
          "title": "Prompt",
          "type": "boolean"
        },
        "secret": {
          "default": false,
          "description": "Whether the setting contains a secret value such as an API token. When true, the input is masked during prompting and the value is redacted in `config list` output.",
          "title": "Secret",
          "type": "boolean"
        }
      },
      "required": [
        "key",
        "type",
        "required",
        "name"
      ],
      "title": "PluginSettingDescriptor",
      "type": "object"
    },
    "URLs": {
      "properties": {
        "repository": {
          "description": "Canonical URL identifying the plugin: the GitHub repository containing its source code, or, for plugins distributed through the Hex-Rays portal, its page there.",
          "examples": [
            "https://github.com/org/project",
            "https://plugins.hex-rays.com/org/repo/name"
          ],
          "title": "Repository",
          "type": "string"
        },
        "homepage": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "URL of a website describing the plugin, if different from the repository.",
          "title": "Homepage"
        }
      },
      "required": [
        "repository"
      ],
      "title": "URLs",
      "type": "object"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Top-level descriptor for `ida-plugin.json`.",
  "properties": {
    "$schema": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Optional JSON Schema URL used by editors like VSCode for validation.",
      "title": "$Schema"
    },
    "IDAMetadataDescriptorVersion": {
      "const": 1,
      "description": "Version of the IDA metadata descriptor schema. Must be `1`.",
      "title": "Idametadatadescriptorversion",
      "type": "integer"
    },
    "plugin": {
      "$ref": "#/$defs/PluginMetadata",
      "description": "Plugin metadata."
    }
  },
  "required": [
    "IDAMetadataDescriptorVersion",
    "plugin"
  ],
  "title": "ida-plugin.json",
  "type": "object"
}
