{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agonna-com/json-schema/agonna-com-certificate-schema.json",
  "title": "Certificate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agonna-com-e2ee-v2-api-openapi.yml#/components/schemas/Certificate",
  "properties": {
    "agent_id": {
      "type": "string",
      "maxLength": 36,
      "minLength": 1,
      "title": "Agent Id"
    },
    "device_id": {
      "type": "string",
      "pattern": "^[0-9a-f-]{36}$",
      "title": "Device Id"
    },
    "identity_key": {
      "type": "string",
      "maxLength": 64,
      "title": "Identity Key"
    },
    "signature_key": {
      "type": "string",
      "maxLength": 64,
      "title": "Signature Key"
    },
    "expires_at": {
      "type": "integer",
      "exclusiveMinimum": 0.0,
      "title": "Expires At"
    },
    "profile": {
      "type": "string",
      "const": "agp-e2ee/2",
      "title": "Profile"
    },
    "signature": {
      "type": "string",
      "maxLength": 100,
      "title": "Signature"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "agent_id",
    "device_id",
    "identity_key",
    "signature_key",
    "expires_at",
    "profile",
    "signature"
  ]
}