[
    {
        "step_title": "Tunnel configuration",
        "items": [
            {
                "type": "textfield",
                "desc": "Token for the cloudflare tunnel",
                "subitems": [
                    {
                        "key": "wizard_cloudflared_token",
                        "desc": "Tunnel token",
                        "validator": {
                            "allowBlank": false,
                            "minLength": 150,
                            "regex": {
                                "expr": "/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=|[A-Za-z0-9+\/]{4})$/",
                                "errorText": "Not a base64 encoded value."
                            }
                        }
                    }
                ]
            }
        ]
    },
    {
        "step_title": "Advanced options",
        "items": [
            {
                "type": "multiselect",
                "subitems": [
                    {
                        "key": "wizard_pq",
                        "desc": "Create an experimental post-quantum secure tunnel",
                        "defaultValue": false
                    },
                    {
                        "key": "wizard_management_diagnostics",
                        "desc": "Allow the Cloudflare engineering team to remotely get diagnostics from cloudflared during debug activities",
                        "defaultValue": false
                    }
                ]
            },
            {
                "type": "combobox",
                "subitems": [
                    {
                        "key": "wizard_edge_ip_version",
                        "desc": "Cloudflare Edge IP address version to connect with",
                        "editable": false,
                        "defaultValue": "auto",
                        "store": [ "4", "6", "auto" ],
                        "validator": {
                            "allowBlank": false
                        }                        
                    }
                ]
            }
        ]
    }
]
