[
    {
        "filter": [
            {
                "field": "passTypeIdentifier",
                "match": "(pass\\.eu\\.pretix\\.ticket|pass\\.de\\.ccc\\.events\\.tickets)",
                "mimeType": "application/vnd.apple.pkpass",
                "scope": "Current"
            }
        ],
        "function": "parsePass",
        "mimeType": "application/vnd.apple.pkpass",
        "script": "pretix.js"
    },
    {
        "filter": [
            {
                "match": "^[0-9a-z]{32}$",
                "mimeType": "text/plain",
                "scope": "Descendants"
            }
        ],
        "function": "parsePdfWithBarcode",
        "mimeType": "application/pdf",
        "script": "pretix.js"
    },
    {
        "filter": [
            {
                "match": "^pretix$",
                "mimeType": "application/pdf",
                "field": "creator"
            }
        ],
        "function": "parsePdf",
        "mimeType": "application/pdf",
        "script": "pretix.js"
    },
    {
        "filter": [
            {
                "match": "\"ticket\":\\s*\"[0-9a-z]{32}\"",
                "mimeType": "application/octet-stream",
                "scope": "Descendants"
            }
        ],
        "function": "parsePdfWithBarcode",
        "mimeType": "application/pdf",
        "script": "pretix.js"
    }
]
