{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nuix/json-schema/nuix-search-macro-structured-response-schema.json",
  "title": "SearchMacroStructuredResponse",
  "description": "A list of search macro file names without the extension and a folder map of the structured response.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nuix-resources-api-openapi.yml#/components/schemas/SearchMacroStructuredResponse",
  "type": "object",
  "properties": {
    "files": {
      "uniqueItems": true,
      "type": "array",
      "description": "A list of search macro file names without the extension.",
      "items": {
        "$ref": "#/$defs/SearchMacroResponse"
      }
    },
    "folders": {
      "type": "object",
      "description": "A map of folder name to a structured search macro.",
      "additionalProperties": {
        "$ref": "#/$defs/SearchMacroStructuredResponse"
      }
    }
  },
  "$defs": {
    "SearchMacroResponse": {
      "description": "The search macro response object which is a file name/expansion pair.",
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The search macro file name without the extension."
        },
        "expansion": {
          "type": "string",
          "description": "The expanded search macro text."
        }
      }
    },
    "SearchMacroStructuredResponse": {
      "type": "object",
      "description": "A list of search macro file names without the extension and a folder map of the structured response.",
      "properties": {
        "files": {
          "uniqueItems": true,
          "type": "array",
          "description": "A list of search macro file names without the extension.",
          "items": {
            "$ref": "#/$defs/SearchMacroResponse"
          }
        },
        "folders": {
          "type": "object",
          "description": "A map of folder name to a structured search macro.",
          "additionalProperties": {
            "$ref": "#/$defs/SearchMacroStructuredResponse"
          }
        }
      }
    }
  }
}