{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/avala-ai/json-schema/avala-ai-agent-registration-create-schema.json",
  "title": "AgentRegistrationCreate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/avala-ai-agents-api-openapi.yml#/components/schemas/AgentRegistrationCreate",
  "required": [
    "name"
  ],
  "type": "object",
  "properties": {
    "uid": {
      "title": "Uid",
      "type": "string",
      "format": "uuid",
      "readOnly": true
    },
    "name": {
      "title": "Name",
      "type": "string",
      "maxLength": 255,
      "minLength": 1
    },
    "description": {
      "title": "Description",
      "type": "string"
    },
    "events": {
      "description": "List of event types this agent subscribes to, e.g. ['task.completed', 'result.submitted'].",
      "type": "array",
      "items": {
        "title": "Events",
        "type": "string",
        "maxLength": 100,
        "minLength": 1
      }
    },
    "callback_url": {
      "title": "Callback url",
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "maxLength": 2048
    },
    "secret": {
      "title": "Secret",
      "description": "HMAC signing secret used to verify agent callbacks. Auto-generated if left blank.",
      "type": "string",
      "maxLength": 255
    },
    "is_active": {
      "title": "Is active",
      "type": "boolean"
    },
    "project": {
      "title": "Project",
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "task_types": {
      "description": "If non-empty, only events for tasks of these types will trigger the agent.",
      "type": "array",
      "items": {
        "title": "Task types",
        "type": "string",
        "maxLength": 50,
        "minLength": 1
      }
    },
    "created_at": {
      "title": "Created at",
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "updated_at": {
      "title": "Updated at",
      "type": "string",
      "format": "date-time",
      "readOnly": true
    }
  }
}