{
    "name": "Core Utils",
    "description": "Настройки юзербота, модулей и названий команд через cfg в личном боте. Доступ только овнерам.",
    "version": "1.2.0",
    "permissions": {
        "telegram.read": {},
        "telegram.send": {},
        "bot.read": {},
        "bot.send": {},
        "modules.configure": {},
        "core.configure": {}
    },
    "dependencies": [],
    "changes": "Добавлен русский язык меню, кнопок, подсказок и ошибок. Язык берётся из общих настроек юзербота; переключение действует сразу.",
    "source": true,
    "interface": {
        "commands": [
            {
                "id": "cfg",
                "alias": "cfg",
                "access": "owner",
                "source": "both"
            }
        ],
        "handlers": [
            {
                "id": "input",
                "source": "both",
                "event": "message",
                "access": "owner"
            }
        ],
        "callbacks": [
            {
                "id": "choose",
                "fields": {
                    "instance": {
                        "type": "string",
                        "required": true
                    },
                    "field": {
                        "type": "string",
                        "required": true
                    },
                    "index": {
                        "type": "integer",
                        "min": 0,
                        "required": true
                    },
                    "revision": {
                        "type": "integer",
                        "min": 0,
                        "required": true
                    }
                },
                "access": "owner",
                "confirm": false
            },
            {
                "id": "close",
                "fields": {},
                "access": "owner",
                "confirm": false
            },
            {
                "id": "field",
                "fields": {
                    "instance": {
                        "type": "string",
                        "required": true
                    },
                    "field": {
                        "type": "string",
                        "required": true
                    },
                    "page": {
                        "type": "integer",
                        "default": 0,
                        "min": 0
                    }
                },
                "access": "owner",
                "confirm": false
            },
            {
                "id": "home",
                "fields": {},
                "access": "owner",
                "confirm": false
            },
            {
                "id": "menu",
                "fields": {
                    "offset": {
                        "type": "integer",
                        "default": 0,
                        "min": 0
                    }
                },
                "access": "owner",
                "confirm": false
            },
            {
                "id": "reset",
                "fields": {
                    "instance": {
                        "type": "string",
                        "required": true
                    },
                    "field": {
                        "type": "string",
                        "required": true
                    },
                    "revision": {
                        "type": "integer",
                        "min": 0,
                        "required": true
                    }
                },
                "access": "owner",
                "confirm": false
            },
            {
                "id": "settings",
                "fields": {
                    "instance": {
                        "type": "string",
                        "required": true
                    },
                    "page": {
                        "type": "integer",
                        "default": 0,
                        "min": 0
                    }
                },
                "access": "owner",
                "confirm": false
            }
        ],
        "actions": [],
        "functions": [],
        "signals": [],
        "tasks": [],
        "requests": [],
        "config": {},
        "pages": []
    }
}
