{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xpoz-ai/json-schema/xpoz-ai-access-key-record-schema.json",
  "title": "AccessKeyRecord",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/xpoz-ai-openapi.json#/components/schemas/AccessKeyRecord",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "descopeUserId": {
      "type": "string"
    },
    "userEmail": {
      "type": "string"
    },
    "userName": {
      "type": "string"
    },
    "authProvider": {
      "type": "string"
    },
    "authProviderId": {
      "type": "string"
    },
    "accessKeyId": {
      "type": "string"
    },
    "accessKey": {
      "type": "string"
    },
    "accessKeyPrefix": {
      "type": "string"
    },
    "keyName": {
      "type": "string"
    },
    "tenantId": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "expiresAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    },
    "isActive": {
      "type": "boolean"
    },
    "metadata": {
      "type": "object"
    }
  }
}