{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "method": "userInfo",
    "group": "User",
    "summary": "Returns basic information about the user calling this method",
    "description": "",
    "deprecated": false,
    "params": {
        "type": "object",
        "properties": {
            "key": {
                "description": "API key",
                "type": "string"
            }
        },
        "required": [
            "key"
        ],
        "x-order": [
            "key"
        ]
    },
    "result": {
        "$ref": "#/$defs/UserInfo"
    },
    "errors": [
        {
            "code": -32001,
            "message": "Invalid API Key"
        },
        {
            "code": -32002,
            "message": "Call Limit Exceeded"
        },
        {
            "code": -32003,
            "message": "User Account Disabled"
        },
        {
            "code": -32004,
            "message": "IP address needs authorization - please check your notices on BTN"
        },
        {
            "code": -32004,
            "message": "Unauthorized IP address"
        }
    ],
    "examples": [],
    "$defs": {
        "UserInfo": {
            "type": "object",
            "properties": {
                "UserID": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "Username": {
                    "type": "string"
                },
                "Email": {
                    "type": "string"
                },
                "Upload": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "Download": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "Lumens": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "Bonus": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "JoinDate": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "Title": {
                    "type": "string"
                },
                "Enabled": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "Paranoia": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "Invites": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "Snatches": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "UploadsSnatched": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "Class": {
                    "type": "string"
                },
                "ClassLevel": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "HnR": {
                    "type": "string",
                    "pattern": "^-?\\d+(\\.\\d+)?$"
                }
            },
            "required": [
                "UserID",
                "Username",
                "Email",
                "Upload",
                "Download",
                "Lumens",
                "Bonus",
                "JoinDate",
                "Title",
                "Enabled",
                "Paranoia",
                "Invites",
                "Snatches",
                "UploadsSnatched",
                "Class",
                "ClassLevel",
                "HnR"
            ],
            "additionalProperties": false
        }
    }
}
