{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/daystruct-ai/json-schema/daystruct-ai-developer-agent-registration-schema.json",
  "title": "DeveloperAgentRegistration",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/daystruct-ai-openapi.json#/components/schemas/DeveloperAgentRegistration",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "slug",
    "displayName",
    "description"
  ],
  "properties": {
    "slug": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$"
    },
    "displayName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "description": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "disabled"
      ],
      "default": "active",
      "description": "API keys may create active or disabled identities; archival is owner-session only."
    },
    "capabilities": {
      "type": "array",
      "minItems": 0,
      "maxItems": 32,
      "uniqueItems": true,
      "description": "One structured declaration per unique capability ID.",
      "items": {
        "$ref": "#/$defs/DeveloperAgentCapabilityDeclaration"
      }
    }
  },
  "$defs": {
    "DeveloperAgentCapabilityDeclaration": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "description"
      ],
      "properties": {
        "id": {
          "type": "string",
          "minLength": 3,
          "maxLength": 100,
          "pattern": "^[a-z][a-z0-9-]*(?:\\.[a-z][a-z0-9-]*)+$"
        },
        "description": {
          "type": "string",
          "minLength": 1,
          "maxLength": 500
        }
      }
    }
  }
}