openapi: "3.1.0"
info:
  title: x-agent-auth Demo API
  description: Agent authentication extension for OpenAPI. Proposed by Raza Sharif (CyberSecAI Ltd) in OpenAPI spec PR #67.
  version: "1.0.0"
  contact:
    name: Raza Sharif
    url: https://cybersecai.co.uk
    email: contact@agentsign.dev
  license:
    name: BSL 1.1
x-agent-auth:
  algorithm: ES256
  trustLevels: [L0, L1, L2, L3, L4]
  issuerKeysUrl: /.well-known/agent-trust-keys
paths:
  /api/data:
    get:
      summary: Read data
      x-agent-trust-required: L1
  /api/charges:
    post:
      summary: Create payment
      x-agent-trust-required: L2
  /api/execute:
    post:
      summary: Execute workflow
      x-agent-trust-required: L3
  /api/admin:
    delete:
      summary: Admin operation
      x-agent-trust-required: L4
