{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/daystruct-ai/json-schema/daystruct-ai-developer-agent-update-schema.json",
  "title": "DeveloperAgentUpdate",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/daystruct-ai-openapi.json#/components/schemas/DeveloperAgentUpdate",
  "type": "object",
  "additionalProperties": false,
  "minProperties": 1,
  "properties": {
    "displayName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "description": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "disabled"
      ],
      "description": "API keys cannot archive an identity or reactivate an archived identity."
    },
    "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
        }
      }
    }
  }
}