{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/faxforagents/json-schema/faxforagents-agent-schema.json",
  "title": "Agent",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/faxforagents-agents-api-openapi.yml#/components/schemas/Agent",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "purpose": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Purpose"
    },
    "enabled": {
      "type": "boolean",
      "title": "Enabled"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "project_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Project Id"
    },
    "policy_ids": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Policy Ids"
    },
    "contact_email": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Contact Email"
    },
    "budget_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Budget Id"
    },
    "budgets": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Budgets"
    },
    "keys": {
      "items": {
        "$ref": "#/$defs/ApiKey"
      },
      "type": "array",
      "title": "Keys"
    },
    "created_by": {
      "type": "string",
      "title": "Created By"
    },
    "created_at": {
      "type": "string",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "title": "Updated At"
    },
    "disabled_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Disabled At"
    }
  },
  "additionalProperties": true,
  "type": "object",
  "required": [
    "id",
    "name",
    "purpose",
    "enabled",
    "status",
    "project_id",
    "policy_ids",
    "contact_email",
    "budget_id",
    "budgets",
    "keys",
    "created_by",
    "created_at",
    "updated_at",
    "disabled_at"
  ],
  "$defs": {
    "ApiKey": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "label": {
          "type": "string",
          "title": "Label"
        },
        "prefix": {
          "type": "string",
          "title": "Prefix"
        },
        "environment": {
          "type": "string",
          "enum": [
            "live",
            "test"
          ],
          "title": "Environment"
        },
        "project_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Project Id"
        },
        "agent_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Agent Id"
        },
        "scopes": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Scopes"
        },
        "created_at": {
          "type": "string",
          "title": "Created At"
        },
        "last_used_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Last Used At"
        },
        "expires_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Expires At"
        },
        "revoked_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Revoked At"
        },
        "rotated_from_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rotated From Id"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "required": [
        "id",
        "label",
        "prefix",
        "environment",
        "project_id",
        "agent_id",
        "scopes",
        "created_at",
        "last_used_at",
        "expires_at",
        "revoked_at",
        "rotated_from_id"
      ],
      "title": "ApiKey"
    }
  }
}