{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-xdr/json-schema/cisco-xdr-new-module-type-params-schema.json",
  "title": "NewModuleTypeParams",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-xdr-moduletype-api-openapi.yml#/components/schemas/NewModuleTypeParams",
  "type": "object",
  "properties": {
    "description": {
      "type": "string"
    },
    "properties": {
      "$ref": "#/$defs/ModuleTypeProperties"
    },
    "app_link": {
      "type": "string"
    },
    "product_categories": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ProductCategory"
      }
    },
    "capabilities": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Capability"
      }
    },
    "integration_id": {
      "description": "id of the integration this record belongs to",
      "type": "string"
    },
    "app_link_meta": {
      "$ref": "#/$defs/AppLinkMeta"
    },
    "tips": {
      "type": "string"
    },
    "logo_dark": {
      "type": "string"
    },
    "logo": {
      "type": "string"
    },
    "ocsf-product-uid": {
      "type": "string"
    },
    "integration": {
      "$ref": "#/$defs/Integration"
    },
    "configuration_spec": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ConfigurationSpecField"
      }
    },
    "short_description": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "external_references": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ModuleTypeExternalReference"
      }
    },
    "max_nb_instances": {
      "type": "integer",
      "format": "int64"
    },
    "default_name": {
      "type": "string"
    },
    "flags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "enabled": {
      "type": "boolean"
    },
    "former_title": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "required": [
    "title",
    "default_name"
  ],
  "$defs": {
    "AppLinkMeta": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "logo": {
          "type": "string"
        },
        "meta": {
          "$ref": "#/$defs/NewModuleTypeParamsAppLinkMetaMeta"
        }
      },
      "additionalProperties": false,
      "required": [
        "title",
        "url"
      ]
    },
    "Capability": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "enum": [
            "detection_source",
            "device_insights",
            "respond",
            "observe",
            "assets",
            "incident/resolve",
            "notifications",
            "data_ingestion",
            "target_records",
            "health",
            "automate",
            "tiles",
            "refer",
            "threat_hunts",
            "deliberate"
          ]
        },
        "description": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "id",
        "description"
      ]
    },
    "ConfigurationSpecField": {
      "type": "object",
      "properties": {
        "group": {
          "type": "string"
        },
        "beta": {
          "type": "boolean"
        },
        "key": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "remote",
            "password",
            "file",
            "string",
            "api_key",
            "integer",
            "device",
            "options",
            "boolean"
          ]
        },
        "strict-options": {
          "type": "boolean"
        },
        "label": {
          "type": "string"
        },
        "options": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/NewModuleTypePatchPatchConfigurationSpecOptions"
          }
        },
        "default_value": {
          "x-oneOf": [
            {
              "type": "string"
            },
            {
              "type": "string"
            },
            {
              "type": "string"
            },
            {
              "type": "string"
            },
            {
              "type": "string"
            },
            {
              "type": "integer",
              "format": "int64"
            },
            {
              "type": "string"
            },
            {
              "type": "string"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "tooltip": {
          "type": "string"
        },
        "required": {
          "type": "boolean"
        },
        "subtype": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "key",
        "type",
        "label"
      ]
    },
    "Integration": {
      "type": "object",
      "properties": {
        "client_ids": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "uniqueItems": true
        }
      },
      "additionalProperties": false
    },
    "ModuleTypeExternalReference": {
      "type": "object",
      "properties": {
        "label": {
          "description": "If the reference is a link, the label",
          "type": "string"
        },
        "link": {
          "description": "If the reference is a link, the href",
          "type": "string"
        },
        "external_id": {
          "description": "If the reference is an external id, the id",
          "type": "string"
        },
        "class": {
          "description": "Class to distinguish external references",
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "ModuleTypeProperties": {
      "type": "object",
      "additionalProperties": {
        "x-oneOf": [
          {
            "x-oneOf": [
              {
                "type": "string"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number",
                "format": "double"
              },
              {
                "type": "string"
              },
              {
                "$ref": "#/$defs/ModuleTypeProperties"
              }
            ]
          },
          {
            "type": "array",
            "items": {
              "x-oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "number",
                  "format": "double"
                },
                {
                  "type": "string"
                },
                {
                  "$ref": "#/$defs/ModuleTypeProperties"
                }
              ]
            }
          }
        ]
      }
    },
    "NewModuleTypeParamsAppLinkMetaMeta": {
      "type": "object",
      "properties": {
        "x_okta_bookmark_id": {
          "type": "string"
        },
        "x_query_params": {
          "$ref": "#/$defs/NewModuleTypeParamsAppLinkMetaMetaXQueryParams"
        }
      },
      "additionalProperties": false
    },
    "NewModuleTypeParamsAppLinkMetaMetaXQueryParams": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "NewModuleTypePatchPatchConfigurationSpecOptions": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string"
        },
        "label": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "value",
        "label"
      ]
    },
    "ProductCategory": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "enum": [
            "siem",
            "threat-intel",
            "email-security",
            "ndr",
            "rf-security",
            "cloud-firewall",
            "itsm",
            "edr",
            "cloud-security",
            "firewall"
          ]
        },
        "description": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "id",
        "description"
      ]
    }
  }
}