{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/huggingbay-xyz/json-schema/huggingbay-xyz-developer-credential-list-response-schema.json",
  "title": "DeveloperCredentialListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/huggingbay-xyz-developer-api-openapi.yml#/components/schemas/DeveloperCredentialListResponse",
  "properties": {
    "data": {
      "items": {
        "$ref": "#/$defs/DeveloperCredentialMetadata"
      },
      "type": "array",
      "title": "Data"
    },
    "next_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Next Cursor"
    }
  },
  "type": "object",
  "required": [
    "data"
  ],
  "$defs": {
    "DeveloperCredentialMetadata": {
      "properties": {
        "credential_id": {
          "type": "string",
          "title": "Credential Id"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "secret_prefix": {
          "type": "string",
          "title": "Secret Prefix",
          "description": "Non-secret prefix for identifying the key in logs and settings."
        },
        "scopes": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Scopes"
        },
        "version": {
          "type": "integer",
          "title": "Version"
        },
        "billing_eligible": {
          "type": "boolean",
          "title": "Billing Eligible"
        },
        "owner_authorized": {
          "type": "boolean",
          "title": "Owner Authorized"
        },
        "issuance_authority": {
          "type": "string",
          "title": "Issuance Authority"
        },
        "status": {
          "type": "string",
          "enum": [
            "active",
            "revoked"
          ],
          "title": "Status"
        },
        "created_at": {
          "type": "string",
          "title": "Created At"
        },
        "updated_at": {
          "type": "string",
          "title": "Updated At"
        },
        "rotated_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rotated At"
        },
        "revoked_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Revoked At"
        }
      },
      "type": "object",
      "required": [
        "credential_id",
        "name",
        "secret_prefix",
        "scopes",
        "version",
        "billing_eligible",
        "owner_authorized",
        "issuance_authority",
        "status",
        "created_at",
        "updated_at"
      ],
      "title": "DeveloperCredentialMetadata"
    }
  }
}