{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/layerhop-com/json-schema/layerhop-com-admin-developers-schema.json",
  "title": "AdminDevelopers",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/layerhop-com-openapi.yaml#/components/schemas/AdminDevelopers",
  "type": "object",
  "required": [
    "generatedAt",
    "totals",
    "days",
    "accountsTotal",
    "accounts"
  ],
  "properties": {
    "generatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "totals": {
      "type": "object",
      "required": [
        "accounts",
        "newAccounts",
        "accountsWithKeys",
        "keys",
        "liveKeys",
        "testKeys",
        "activeKeys",
        "revokedKeys",
        "keysCreated",
        "keysUsed",
        "accountsUsingKeys",
        "keyedRequests",
        "requests",
        "keyedShare"
      ],
      "properties": {
        "accounts": {
          "type": "integer",
          "description": "All accounts."
        },
        "newAccounts": {
          "type": "integer",
          "description": "Accounts created in the window."
        },
        "accountsWithKeys": {
          "type": "integer",
          "description": "Accounts that ever created a key (revoked ones too)."
        },
        "keys": {
          "type": "integer"
        },
        "liveKeys": {
          "type": "integer"
        },
        "testKeys": {
          "type": "integer"
        },
        "activeKeys": {
          "type": "integer",
          "description": "Not revoked."
        },
        "revokedKeys": {
          "type": "integer"
        },
        "keysCreated": {
          "type": "integer",
          "description": "Keys created in the window."
        },
        "keysUsed": {
          "type": "integer",
          "description": "Distinct keys with a request in the window."
        },
        "accountsUsingKeys": {
          "type": "integer",
          "description": "Distinct accounts with a keyed request in the window."
        },
        "keyedRequests": {
          "type": "integer"
        },
        "requests": {
          "type": "integer",
          "description": "Every logged API request in the window."
        },
        "keyedShare": {
          "type": [
            "number",
            "null"
          ],
          "description": "keyedRequests / requests, 4 decimals; null without requests."
        }
      }
    },
    "days": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "date",
          "newAccounts",
          "keysCreated",
          "keyedRequests"
        ],
        "properties": {
          "date": {
            "type": "string",
            "format": "date",
            "description": "UTC day."
          },
          "newAccounts": {
            "type": "integer"
          },
          "keysCreated": {
            "type": "integer"
          },
          "keyedRequests": {
            "type": "integer"
          }
        }
      }
    },
    "accountsTotal": {
      "type": "integer"
    },
    "accounts": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "displayName",
          "plan",
          "createdAt",
          "e2eTest",
          "wallets",
          "activeKeys",
          "totalKeys",
          "requests",
          "errors",
          "lastRequestAt",
          "topPaths",
          "keys"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "displayName": {
            "type": [
              "string",
              "null"
            ]
          },
          "plan": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "e2eTest": {
            "type": "boolean",
            "description": "The display name contains \"e2e test\"."
          },
          "wallets": {
            "type": "integer"
          },
          "activeKeys": {
            "type": "integer"
          },
          "totalKeys": {
            "type": "integer"
          },
          "requests": {
            "type": "integer",
            "description": "Requests in the window."
          },
          "errors": {
            "type": "integer",
            "description": "Requests in the window with status ≥ 400."
          },
          "lastRequestAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "All time."
          },
          "topPaths": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "path",
                "requests"
              ],
              "properties": {
                "path": {
                  "type": "string"
                },
                "requests": {
                  "type": "integer"
                }
              }
            }
          },
          "keys": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "name",
                "prefix",
                "livemode",
                "rateLimitRpm",
                "createdAt",
                "lastUsedAt",
                "revokedAt",
                "requests",
                "errors",
                "errorRate"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "prefix": {
                  "type": "string"
                },
                "livemode": {
                  "type": "boolean"
                },
                "rateLimitRpm": {
                  "type": "integer"
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "lastUsedAt": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "revokedAt": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "requests": {
                  "type": "integer",
                  "description": "Requests in the window."
                },
                "errors": {
                  "type": "integer"
                },
                "errorRate": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "errors / requests, 4 decimals; null without requests."
                }
              }
            }
          }
        }
      }
    }
  }
}