{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/openrush-com/json-schema/openrush-com-usage-log-public-schema.json",
  "title": "UsageLogPublic",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/openrush-com-openapi.json#/components/schemas/UsageLogPublic",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "account_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Account Id"
    },
    "credential_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Credential Id"
    },
    "auth_source": {
      "type": "string",
      "title": "Auth Source"
    },
    "endpoint": {
      "type": "string",
      "title": "Endpoint"
    },
    "method": {
      "type": "string",
      "title": "Method"
    },
    "status_code": {
      "type": "integer",
      "title": "Status Code"
    },
    "response_time_ms": {
      "type": "integer",
      "title": "Response Time Ms"
    },
    "request_bytes": {
      "type": "integer",
      "title": "Request Bytes"
    },
    "response_bytes": {
      "type": "integer",
      "title": "Response Bytes"
    },
    "credits_charged": {
      "type": "integer",
      "title": "Credits Charged"
    },
    "error_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Error Type"
    },
    "error_message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Error Message"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "oauth_identity_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Oauth Identity Id"
    },
    "used_by_email": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Used By Email"
    }
  },
  "type": "object",
  "required": [
    "id",
    "account_id",
    "credential_id",
    "auth_source",
    "endpoint",
    "method",
    "status_code",
    "response_time_ms",
    "request_bytes",
    "response_bytes",
    "credits_charged",
    "error_type",
    "error_message",
    "created_at"
  ]
}