{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/statemind-ai/json-schema/statemind-ai-service-info-schema.json",
  "title": "ServiceInfo",
  "description": "Machine-readable description used by discovery and by the agent cards.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/statemind-ai-openapi.json#/components/schemas/ServiceInfo",
  "properties": {
    "name": {
      "type": "string",
      "title": "Name"
    },
    "version": {
      "type": "string",
      "title": "Version"
    },
    "description": {
      "type": "string",
      "title": "Description"
    },
    "api": {
      "type": "string",
      "title": "Api",
      "default": "v1"
    },
    "tags": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Tags"
    },
    "modes": {
      "items": {
        "$ref": "#/$defs/Mode"
      },
      "type": "array",
      "title": "Modes"
    },
    "languages": {
      "items": {
        "$ref": "#/$defs/Language"
      },
      "type": "array",
      "title": "Languages"
    },
    "price_hint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Price Hint"
    },
    "input_schema": {
      "additionalProperties": true,
      "type": "object",
      "title": "Input Schema"
    },
    "output_schema": {
      "additionalProperties": true,
      "type": "object",
      "title": "Output Schema"
    }
  },
  "type": "object",
  "required": [
    "name",
    "version",
    "description"
  ],
  "$defs": {
    "Language": {
      "type": "string",
      "enum": [
        "python",
        "javascript",
        "typescript",
        "html",
        "sql",
        "solidity",
        "other"
      ],
      "title": "Language",
      "description": "Source languages a validator can accept."
    },
    "Mode": {
      "type": "string",
      "enum": [
        "static",
        "repair",
        "execute"
      ],
      "title": "Mode",
      "description": "How much work the service is allowed to do.\n\n``static``\n    Never executes the submitted code. Parsing, linting and security\n    scanning only. This is the default and the only mode that is safe to\n    expose without a container sandbox.\n``repair``\n    Static mode plus deterministic auto-fixes and refactors.\n``execute``\n    Repair plus running the code inside a sandbox to prove it works."
    }
  }
}