{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "version": {
      "type": "number",
      "const": 2
    },
    "items": {
      "minItems": 1,
      "type": "array",
      "items": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "profile"
              },
              "profile": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "enabled": {
                    "type": "boolean"
                  },
                  "emoji": {
                    "type": "string"
                  },
                  "comments": {
                    "type": "string"
                  },
                  "ruleActionType": {
                    "type": "string",
                    "enum": [
                      "block",
                      "redirect",
                      "allow",
                      "upgradeScheme",
                      "modifyHeaders",
                      "allowAllRequests"
                    ],
                    "description": "block stops requests; redirect uses a fixed URL; allow exempts a request from lower-priority Headerly rules; upgradeScheme upgrades HTTP/FTP to HTTPS; modifyHeaders changes headers or synchronizes cookies; allowAllRequests exempts a frame hierarchy and requires explicit main_frame/sub_frame resource types."
                  },
                  "priority": {
                    "description": "Higher numbers take precedence. Defaults to 1 when omitted; Chrome accepts integers from 1 to 2147483647.",
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  },
                  "requestHeaderModGroups": {
                    "description": "For modifyHeaders. Header names and values are trimmed; blank names or set/append values are ignored.",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "radio",
                            "checkbox"
                          ],
                          "description": "Selection mode: radio enables one item at a time in the editor; checkbox allows multiple enabled items."
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "comments": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "operation": {
                                    "type": "string",
                                    "const": "remove",
                                    "description": "Removes the header. No value is needed."
                                  }
                                },
                                "required": [
                                  "enabled",
                                  "name",
                                  "operation"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "comments": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "operation": {
                                    "type": "string",
                                    "enum": [
                                      "append",
                                      "set"
                                    ],
                                    "description": "set replaces the header value; append adds a value subject to Chrome header restrictions."
                                  },
                                  "value": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "enabled",
                                  "name",
                                  "operation",
                                  "value"
                                ],
                                "additionalProperties": false
                              }
                            ]
                          }
                        }
                      },
                      "required": [
                        "type",
                        "items"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "responseHeaderModGroups": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "radio",
                            "checkbox"
                          ],
                          "description": "Selection mode: radio enables one item at a time in the editor; checkbox allows multiple enabled items."
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "comments": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "operation": {
                                    "type": "string",
                                    "const": "remove",
                                    "description": "Removes the header. No value is needed."
                                  }
                                },
                                "required": [
                                  "enabled",
                                  "name",
                                  "operation"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "comments": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "operation": {
                                    "type": "string",
                                    "enum": [
                                      "append",
                                      "set"
                                    ],
                                    "description": "set replaces the header value; append adds a value subject to Chrome header restrictions."
                                  },
                                  "value": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "enabled",
                                  "name",
                                  "operation",
                                  "value"
                                ],
                                "additionalProperties": false
                              }
                            ]
                          }
                        }
                      },
                      "required": [
                        "type",
                        "items"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "syncCookieGroups": {
                    "description": "Requires cookie permission. Values are cleared on export and refreshed from local cookies after import; empty values are ignored. Profile filters determine the destination, not the source cookie scope.",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "radio",
                            "checkbox"
                          ],
                          "description": "Selection mode: radio enables one item at a time in the editor; checkbox allows multiple enabled items."
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              },
                              "comments": {
                                "type": "string"
                              },
                              "domain": {
                                "type": "string",
                                "description": "Exact source cookie domain, including any leading dot. Together with path and name, identifies the cookie."
                              },
                              "name": {
                                "type": "string"
                              },
                              "value": {
                                "type": "string"
                              },
                              "path": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "enabled",
                              "domain",
                              "name",
                              "value",
                              "path"
                            ],
                            "additionalProperties": false
                          },
                          "description": "Cookies to synchronize. Enabled entries with a nonempty identity and value append name=value to the request Cookie header."
                        }
                      },
                      "required": [
                        "type",
                        "items"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "redirectUrlGroup": {
                    "description": "Fixed destinations for redirect. Uses the first enabled entry after trimming its URL. Other entries are retained but not applied.",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "comments": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "enabled",
                        "value"
                      ],
                      "additionalProperties": false,
                      "description": "Fixed redirect destination in value. Use an absolute URL; regex capture substitution is not supported."
                    }
                  },
                  "filters": {
                    "type": "object",
                    "properties": {
                      "urlFilter": {
                        "description": "URL patterns using Chrome syntax: * wildcard, | URL boundary, || domain boundary, ^ separator. Only the first enabled item is used. A nonempty enabled regex takes precedence. Use ASCII; surrounding whitespace is trimmed.",
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean"
                            },
                            "comments": {
                              "type": "string"
                            },
                            "value": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "enabled",
                            "value"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "regexFilter": {
                        "description": "URL patterns using RE2 syntax without /.../ delimiters. Only the first enabled item is used; a nonempty enabled regex takes precedence over urlFilter. Use ASCII and JSON-escaped backslashes. No lookaround or backreferences.",
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean"
                            },
                            "comments": {
                              "type": "string"
                            },
                            "value": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "enabled",
                            "value"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "initiatorDomains": {
                        "description": "Include requests originating from these domains.",
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "radio",
                              "checkbox"
                            ],
                            "description": "Selection mode: radio enables one item at a time in the editor; checkbox allows multiple enabled items."
                          },
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "comments": {
                                  "type": "string"
                                },
                                "value": {
                                  "type": "string",
                                  "description": "Use ASCII hostnames, not URLs or paths. Subdomains also match. Use Punycode for internationalized names."
                                }
                              },
                              "required": [
                                "enabled",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            "description": "Available choices. Enabled values are combined and deduplicated; an empty list adds no restriction."
                          }
                        },
                        "required": [
                          "type",
                          "items"
                        ],
                        "additionalProperties": false
                      },
                      "excludedInitiatorDomains": {
                        "description": "Exclude requests originating from these domains.",
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "radio",
                              "checkbox"
                            ],
                            "description": "Selection mode: radio enables one item at a time in the editor; checkbox allows multiple enabled items."
                          },
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "comments": {
                                  "type": "string"
                                },
                                "value": {
                                  "type": "string",
                                  "description": "Use ASCII hostnames, not URLs or paths. Subdomains also match. Use Punycode for internationalized names."
                                }
                              },
                              "required": [
                                "enabled",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            "description": "Available choices. Enabled values are combined and deduplicated; an empty list adds no restriction."
                          }
                        },
                        "required": [
                          "type",
                          "items"
                        ],
                        "additionalProperties": false
                      },
                      "requestDomains": {
                        "description": "Include requests sent to these destination domains.",
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "radio",
                              "checkbox"
                            ],
                            "description": "Selection mode: radio enables one item at a time in the editor; checkbox allows multiple enabled items."
                          },
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "comments": {
                                  "type": "string"
                                },
                                "value": {
                                  "type": "string",
                                  "description": "Use ASCII hostnames, not URLs or paths. Subdomains also match. Use Punycode for internationalized names."
                                }
                              },
                              "required": [
                                "enabled",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            "description": "Available choices. Enabled values are combined and deduplicated; an empty list adds no restriction."
                          }
                        },
                        "required": [
                          "type",
                          "items"
                        ],
                        "additionalProperties": false
                      },
                      "excludedRequestDomains": {
                        "description": "Exclude requests sent to these destination domains.",
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "radio",
                              "checkbox"
                            ],
                            "description": "Selection mode: radio enables one item at a time in the editor; checkbox allows multiple enabled items."
                          },
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "comments": {
                                  "type": "string"
                                },
                                "value": {
                                  "type": "string",
                                  "description": "Use ASCII hostnames, not URLs or paths. Subdomains also match. Use Punycode for internationalized names."
                                }
                              },
                              "required": [
                                "enabled",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            "description": "Available choices. Enabled values are combined and deduplicated; an empty list adds no restriction."
                          }
                        },
                        "required": [
                          "type",
                          "items"
                        ],
                        "additionalProperties": false
                      },
                      "topDomains": {
                        "description": "Include requests associated with these top-level page domains.",
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "radio",
                              "checkbox"
                            ],
                            "description": "Selection mode: radio enables one item at a time in the editor; checkbox allows multiple enabled items."
                          },
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "comments": {
                                  "type": "string"
                                },
                                "value": {
                                  "type": "string",
                                  "description": "Use ASCII hostnames, not URLs or paths. Subdomains also match. Use Punycode for internationalized names."
                                }
                              },
                              "required": [
                                "enabled",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            "description": "Available choices. Enabled values are combined and deduplicated; an empty list adds no restriction."
                          }
                        },
                        "required": [
                          "type",
                          "items"
                        ],
                        "additionalProperties": false
                      },
                      "excludedTopDomains": {
                        "description": "Exclude requests associated with these top-level page domains.",
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "radio",
                              "checkbox"
                            ],
                            "description": "Selection mode: radio enables one item at a time in the editor; checkbox allows multiple enabled items."
                          },
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "comments": {
                                  "type": "string"
                                },
                                "value": {
                                  "type": "string",
                                  "description": "Use ASCII hostnames, not URLs or paths. Subdomains also match. Use Punycode for internationalized names."
                                }
                              },
                              "required": [
                                "enabled",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            "description": "Available choices. Enabled values are combined and deduplicated; an empty list adds no restriction."
                          }
                        },
                        "required": [
                          "type",
                          "items"
                        ],
                        "additionalProperties": false
                      },
                      "resourceTypes": {
                        "description": "Include these resource categories. Use either resourceTypes or excludedResourceTypes. If neither supplies values, Headerly matches all types except for allowAllRequests, which needs explicit frame types.",
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "radio",
                              "checkbox"
                            ],
                            "description": "Selection mode: radio enables one item at a time in the editor; checkbox allows multiple enabled items."
                          },
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "comments": {
                                  "type": "string"
                                },
                                "value": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "enum": [
                                      "main_frame",
                                      "sub_frame",
                                      "stylesheet",
                                      "script",
                                      "image",
                                      "font",
                                      "object",
                                      "xmlhttprequest",
                                      "ping",
                                      "csp_report",
                                      "media",
                                      "websocket",
                                      "webtransport",
                                      "webbundle",
                                      "other"
                                    ],
                                    "description": "main_frame is the top-level document; sub_frame is an embedded frame. xmlhttprequest includes XHR and Fetch; ping includes beacon requests. Chrome determines the category."
                                  }
                                }
                              },
                              "required": [
                                "enabled",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            "description": "Available choices. Enabled values are combined and deduplicated; an empty list adds no restriction."
                          }
                        },
                        "required": [
                          "type",
                          "items"
                        ],
                        "additionalProperties": false
                      },
                      "excludedResourceTypes": {
                        "description": "Exclude these resource categories. Use either resourceTypes or excludedResourceTypes.",
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "radio",
                              "checkbox"
                            ],
                            "description": "Selection mode: radio enables one item at a time in the editor; checkbox allows multiple enabled items."
                          },
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "comments": {
                                  "type": "string"
                                },
                                "value": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "enum": [
                                      "main_frame",
                                      "sub_frame",
                                      "stylesheet",
                                      "script",
                                      "image",
                                      "font",
                                      "object",
                                      "xmlhttprequest",
                                      "ping",
                                      "csp_report",
                                      "media",
                                      "websocket",
                                      "webtransport",
                                      "webbundle",
                                      "other"
                                    ],
                                    "description": "main_frame is the top-level document; sub_frame is an embedded frame. xmlhttprequest includes XHR and Fetch; ping includes beacon requests. Chrome determines the category."
                                  }
                                }
                              },
                              "required": [
                                "enabled",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            "description": "Available choices. Enabled values are combined and deduplicated; an empty list adds no restriction."
                          }
                        },
                        "required": [
                          "type",
                          "items"
                        ],
                        "additionalProperties": false
                      },
                      "requestMethods": {
                        "description": "Include these HTTP methods. Also excludes non-HTTP(S) requests. Use either requestMethods or excludedRequestMethods.",
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "radio",
                              "checkbox"
                            ],
                            "description": "Selection mode: radio enables one item at a time in the editor; checkbox allows multiple enabled items."
                          },
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "comments": {
                                  "type": "string"
                                },
                                "value": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "enum": [
                                      "connect",
                                      "delete",
                                      "get",
                                      "head",
                                      "options",
                                      "patch",
                                      "post",
                                      "put",
                                      "other"
                                    ],
                                    "description": "Stored in lowercase; other matches methods outside the listed values."
                                  }
                                }
                              },
                              "required": [
                                "enabled",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            "description": "Available choices. Enabled values are combined and deduplicated; an empty list adds no restriction."
                          }
                        },
                        "required": [
                          "type",
                          "items"
                        ],
                        "additionalProperties": false
                      },
                      "excludedRequestMethods": {
                        "description": "Exclude these HTTP methods without implicitly excluding non-HTTP(S) requests. Use either requestMethods or excludedRequestMethods.",
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "radio",
                              "checkbox"
                            ],
                            "description": "Selection mode: radio enables one item at a time in the editor; checkbox allows multiple enabled items."
                          },
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "comments": {
                                  "type": "string"
                                },
                                "value": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "enum": [
                                      "connect",
                                      "delete",
                                      "get",
                                      "head",
                                      "options",
                                      "patch",
                                      "post",
                                      "put",
                                      "other"
                                    ],
                                    "description": "Stored in lowercase; other matches methods outside the listed values."
                                  }
                                }
                              },
                              "required": [
                                "enabled",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            "description": "Available choices. Enabled values are combined and deduplicated; an empty list adds no restriction."
                          }
                        },
                        "required": [
                          "type",
                          "items"
                        ],
                        "additionalProperties": false
                      },
                      "domainType": {
                        "description": "Limit requests to first-party or third-party traffic. When absent or disabled, both can match.",
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          },
                          "value": {
                            "type": "string",
                            "enum": [
                              "firstParty",
                              "thirdParty"
                            ],
                            "description": "firstParty or thirdParty relative to the originating domain, as classified by Chrome."
                          }
                        },
                        "required": [
                          "enabled",
                          "value"
                        ],
                        "additionalProperties": false
                      },
                      "isUrlFilterCaseSensitive": {
                        "description": "Case sensitivity for urlFilter or regexFilter; defaults to case-insensitive when absent or disabled.",
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          },
                          "value": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "enabled",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "additionalProperties": false,
                    "description": "Request conditions. Different condition types are combined with AND; enabled values within a list are alternatives. Exclusions remove matches. Empty or disabled choices add no restriction. Empty filters can apply broadly."
                  }
                },
                "required": [
                  "name",
                  "enabled",
                  "emoji",
                  "ruleActionType",
                  "filters"
                ],
                "additionalProperties": false,
                "description": "Portable profile. Internal IDs, group membership IDs and browser tab bindings are omitted. Imports generate fresh IDs; header values and comments are not redacted."
              }
            },
            "required": [
              "kind",
              "profile"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "group"
              },
              "name": {
                "type": "string"
              },
              "color": {
                "type": "string",
                "description": "Supports common CSS color formats, including HEX and RGB."
              },
              "type": {
                "type": "string",
                "enum": [
                  "radio",
                  "checkbox"
                ],
                "description": "Selection mode: radio enables one item at a time in the editor; checkbox allows multiple enabled items."
              },
              "profiles": {
                "minItems": 1,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "emoji": {
                      "type": "string"
                    },
                    "comments": {
                      "type": "string"
                    },
                    "ruleActionType": {
                      "type": "string",
                      "enum": [
                        "block",
                        "redirect",
                        "allow",
                        "upgradeScheme",
                        "modifyHeaders",
                        "allowAllRequests"
                      ],
                      "description": "block stops requests; redirect uses a fixed URL; allow exempts a request from lower-priority Headerly rules; upgradeScheme upgrades HTTP/FTP to HTTPS; modifyHeaders changes headers or synchronizes cookies; allowAllRequests exempts a frame hierarchy and requires explicit main_frame/sub_frame resource types."
                    },
                    "priority": {
                      "description": "Higher numbers take precedence. Defaults to 1 when omitted; Chrome accepts integers from 1 to 2147483647.",
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 9007199254740991
                    },
                    "requestHeaderModGroups": {
                      "description": "For modifyHeaders. Header names and values are trimmed; blank names or set/append values are ignored.",
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "radio",
                              "checkbox"
                            ],
                            "description": "Selection mode: radio enables one item at a time in the editor; checkbox allows multiple enabled items."
                          },
                          "items": {
                            "type": "array",
                            "items": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "enabled": {
                                      "type": "boolean"
                                    },
                                    "comments": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "operation": {
                                      "type": "string",
                                      "const": "remove",
                                      "description": "Removes the header. No value is needed."
                                    }
                                  },
                                  "required": [
                                    "enabled",
                                    "name",
                                    "operation"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "enabled": {
                                      "type": "boolean"
                                    },
                                    "comments": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "operation": {
                                      "type": "string",
                                      "enum": [
                                        "append",
                                        "set"
                                      ],
                                      "description": "set replaces the header value; append adds a value subject to Chrome header restrictions."
                                    },
                                    "value": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "enabled",
                                    "name",
                                    "operation",
                                    "value"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            }
                          }
                        },
                        "required": [
                          "type",
                          "items"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "responseHeaderModGroups": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "radio",
                              "checkbox"
                            ],
                            "description": "Selection mode: radio enables one item at a time in the editor; checkbox allows multiple enabled items."
                          },
                          "items": {
                            "type": "array",
                            "items": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "enabled": {
                                      "type": "boolean"
                                    },
                                    "comments": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "operation": {
                                      "type": "string",
                                      "const": "remove",
                                      "description": "Removes the header. No value is needed."
                                    }
                                  },
                                  "required": [
                                    "enabled",
                                    "name",
                                    "operation"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "enabled": {
                                      "type": "boolean"
                                    },
                                    "comments": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "operation": {
                                      "type": "string",
                                      "enum": [
                                        "append",
                                        "set"
                                      ],
                                      "description": "set replaces the header value; append adds a value subject to Chrome header restrictions."
                                    },
                                    "value": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "enabled",
                                    "name",
                                    "operation",
                                    "value"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            }
                          }
                        },
                        "required": [
                          "type",
                          "items"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "syncCookieGroups": {
                      "description": "Requires cookie permission. Values are cleared on export and refreshed from local cookies after import; empty values are ignored. Profile filters determine the destination, not the source cookie scope.",
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "radio",
                              "checkbox"
                            ],
                            "description": "Selection mode: radio enables one item at a time in the editor; checkbox allows multiple enabled items."
                          },
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "comments": {
                                  "type": "string"
                                },
                                "domain": {
                                  "type": "string",
                                  "description": "Exact source cookie domain, including any leading dot. Together with path and name, identifies the cookie."
                                },
                                "name": {
                                  "type": "string"
                                },
                                "value": {
                                  "type": "string"
                                },
                                "path": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "enabled",
                                "domain",
                                "name",
                                "value",
                                "path"
                              ],
                              "additionalProperties": false
                            },
                            "description": "Cookies to synchronize. Enabled entries with a nonempty identity and value append name=value to the request Cookie header."
                          }
                        },
                        "required": [
                          "type",
                          "items"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "redirectUrlGroup": {
                      "description": "Fixed destinations for redirect. Uses the first enabled entry after trimming its URL. Other entries are retained but not applied.",
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          },
                          "comments": {
                            "type": "string"
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "enabled",
                          "value"
                        ],
                        "additionalProperties": false,
                        "description": "Fixed redirect destination in value. Use an absolute URL; regex capture substitution is not supported."
                      }
                    },
                    "filters": {
                      "type": "object",
                      "properties": {
                        "urlFilter": {
                          "description": "URL patterns using Chrome syntax: * wildcard, | URL boundary, || domain boundary, ^ separator. Only the first enabled item is used. A nonempty enabled regex takes precedence. Use ASCII; surrounding whitespace is trimmed.",
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              },
                              "comments": {
                                "type": "string"
                              },
                              "value": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "enabled",
                              "value"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "regexFilter": {
                          "description": "URL patterns using RE2 syntax without /.../ delimiters. Only the first enabled item is used; a nonempty enabled regex takes precedence over urlFilter. Use ASCII and JSON-escaped backslashes. No lookaround or backreferences.",
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              },
                              "comments": {
                                "type": "string"
                              },
                              "value": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "enabled",
                              "value"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "initiatorDomains": {
                          "description": "Include requests originating from these domains.",
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "radio",
                                "checkbox"
                              ],
                              "description": "Selection mode: radio enables one item at a time in the editor; checkbox allows multiple enabled items."
                            },
                            "items": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "comments": {
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "string",
                                    "description": "Use ASCII hostnames, not URLs or paths. Subdomains also match. Use Punycode for internationalized names."
                                  }
                                },
                                "required": [
                                  "enabled",
                                  "value"
                                ],
                                "additionalProperties": false
                              },
                              "description": "Available choices. Enabled values are combined and deduplicated; an empty list adds no restriction."
                            }
                          },
                          "required": [
                            "type",
                            "items"
                          ],
                          "additionalProperties": false
                        },
                        "excludedInitiatorDomains": {
                          "description": "Exclude requests originating from these domains.",
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "radio",
                                "checkbox"
                              ],
                              "description": "Selection mode: radio enables one item at a time in the editor; checkbox allows multiple enabled items."
                            },
                            "items": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "comments": {
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "string",
                                    "description": "Use ASCII hostnames, not URLs or paths. Subdomains also match. Use Punycode for internationalized names."
                                  }
                                },
                                "required": [
                                  "enabled",
                                  "value"
                                ],
                                "additionalProperties": false
                              },
                              "description": "Available choices. Enabled values are combined and deduplicated; an empty list adds no restriction."
                            }
                          },
                          "required": [
                            "type",
                            "items"
                          ],
                          "additionalProperties": false
                        },
                        "requestDomains": {
                          "description": "Include requests sent to these destination domains.",
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "radio",
                                "checkbox"
                              ],
                              "description": "Selection mode: radio enables one item at a time in the editor; checkbox allows multiple enabled items."
                            },
                            "items": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "comments": {
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "string",
                                    "description": "Use ASCII hostnames, not URLs or paths. Subdomains also match. Use Punycode for internationalized names."
                                  }
                                },
                                "required": [
                                  "enabled",
                                  "value"
                                ],
                                "additionalProperties": false
                              },
                              "description": "Available choices. Enabled values are combined and deduplicated; an empty list adds no restriction."
                            }
                          },
                          "required": [
                            "type",
                            "items"
                          ],
                          "additionalProperties": false
                        },
                        "excludedRequestDomains": {
                          "description": "Exclude requests sent to these destination domains.",
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "radio",
                                "checkbox"
                              ],
                              "description": "Selection mode: radio enables one item at a time in the editor; checkbox allows multiple enabled items."
                            },
                            "items": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "comments": {
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "string",
                                    "description": "Use ASCII hostnames, not URLs or paths. Subdomains also match. Use Punycode for internationalized names."
                                  }
                                },
                                "required": [
                                  "enabled",
                                  "value"
                                ],
                                "additionalProperties": false
                              },
                              "description": "Available choices. Enabled values are combined and deduplicated; an empty list adds no restriction."
                            }
                          },
                          "required": [
                            "type",
                            "items"
                          ],
                          "additionalProperties": false
                        },
                        "topDomains": {
                          "description": "Include requests associated with these top-level page domains.",
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "radio",
                                "checkbox"
                              ],
                              "description": "Selection mode: radio enables one item at a time in the editor; checkbox allows multiple enabled items."
                            },
                            "items": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "comments": {
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "string",
                                    "description": "Use ASCII hostnames, not URLs or paths. Subdomains also match. Use Punycode for internationalized names."
                                  }
                                },
                                "required": [
                                  "enabled",
                                  "value"
                                ],
                                "additionalProperties": false
                              },
                              "description": "Available choices. Enabled values are combined and deduplicated; an empty list adds no restriction."
                            }
                          },
                          "required": [
                            "type",
                            "items"
                          ],
                          "additionalProperties": false
                        },
                        "excludedTopDomains": {
                          "description": "Exclude requests associated with these top-level page domains.",
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "radio",
                                "checkbox"
                              ],
                              "description": "Selection mode: radio enables one item at a time in the editor; checkbox allows multiple enabled items."
                            },
                            "items": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "comments": {
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "string",
                                    "description": "Use ASCII hostnames, not URLs or paths. Subdomains also match. Use Punycode for internationalized names."
                                  }
                                },
                                "required": [
                                  "enabled",
                                  "value"
                                ],
                                "additionalProperties": false
                              },
                              "description": "Available choices. Enabled values are combined and deduplicated; an empty list adds no restriction."
                            }
                          },
                          "required": [
                            "type",
                            "items"
                          ],
                          "additionalProperties": false
                        },
                        "resourceTypes": {
                          "description": "Include these resource categories. Use either resourceTypes or excludedResourceTypes. If neither supplies values, Headerly matches all types except for allowAllRequests, which needs explicit frame types.",
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "radio",
                                "checkbox"
                              ],
                              "description": "Selection mode: radio enables one item at a time in the editor; checkbox allows multiple enabled items."
                            },
                            "items": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "comments": {
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "enum": [
                                        "main_frame",
                                        "sub_frame",
                                        "stylesheet",
                                        "script",
                                        "image",
                                        "font",
                                        "object",
                                        "xmlhttprequest",
                                        "ping",
                                        "csp_report",
                                        "media",
                                        "websocket",
                                        "webtransport",
                                        "webbundle",
                                        "other"
                                      ],
                                      "description": "main_frame is the top-level document; sub_frame is an embedded frame. xmlhttprequest includes XHR and Fetch; ping includes beacon requests. Chrome determines the category."
                                    }
                                  }
                                },
                                "required": [
                                  "enabled",
                                  "value"
                                ],
                                "additionalProperties": false
                              },
                              "description": "Available choices. Enabled values are combined and deduplicated; an empty list adds no restriction."
                            }
                          },
                          "required": [
                            "type",
                            "items"
                          ],
                          "additionalProperties": false
                        },
                        "excludedResourceTypes": {
                          "description": "Exclude these resource categories. Use either resourceTypes or excludedResourceTypes.",
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "radio",
                                "checkbox"
                              ],
                              "description": "Selection mode: radio enables one item at a time in the editor; checkbox allows multiple enabled items."
                            },
                            "items": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "comments": {
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "enum": [
                                        "main_frame",
                                        "sub_frame",
                                        "stylesheet",
                                        "script",
                                        "image",
                                        "font",
                                        "object",
                                        "xmlhttprequest",
                                        "ping",
                                        "csp_report",
                                        "media",
                                        "websocket",
                                        "webtransport",
                                        "webbundle",
                                        "other"
                                      ],
                                      "description": "main_frame is the top-level document; sub_frame is an embedded frame. xmlhttprequest includes XHR and Fetch; ping includes beacon requests. Chrome determines the category."
                                    }
                                  }
                                },
                                "required": [
                                  "enabled",
                                  "value"
                                ],
                                "additionalProperties": false
                              },
                              "description": "Available choices. Enabled values are combined and deduplicated; an empty list adds no restriction."
                            }
                          },
                          "required": [
                            "type",
                            "items"
                          ],
                          "additionalProperties": false
                        },
                        "requestMethods": {
                          "description": "Include these HTTP methods. Also excludes non-HTTP(S) requests. Use either requestMethods or excludedRequestMethods.",
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "radio",
                                "checkbox"
                              ],
                              "description": "Selection mode: radio enables one item at a time in the editor; checkbox allows multiple enabled items."
                            },
                            "items": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "comments": {
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "enum": [
                                        "connect",
                                        "delete",
                                        "get",
                                        "head",
                                        "options",
                                        "patch",
                                        "post",
                                        "put",
                                        "other"
                                      ],
                                      "description": "Stored in lowercase; other matches methods outside the listed values."
                                    }
                                  }
                                },
                                "required": [
                                  "enabled",
                                  "value"
                                ],
                                "additionalProperties": false
                              },
                              "description": "Available choices. Enabled values are combined and deduplicated; an empty list adds no restriction."
                            }
                          },
                          "required": [
                            "type",
                            "items"
                          ],
                          "additionalProperties": false
                        },
                        "excludedRequestMethods": {
                          "description": "Exclude these HTTP methods without implicitly excluding non-HTTP(S) requests. Use either requestMethods or excludedRequestMethods.",
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "radio",
                                "checkbox"
                              ],
                              "description": "Selection mode: radio enables one item at a time in the editor; checkbox allows multiple enabled items."
                            },
                            "items": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "comments": {
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "enum": [
                                        "connect",
                                        "delete",
                                        "get",
                                        "head",
                                        "options",
                                        "patch",
                                        "post",
                                        "put",
                                        "other"
                                      ],
                                      "description": "Stored in lowercase; other matches methods outside the listed values."
                                    }
                                  }
                                },
                                "required": [
                                  "enabled",
                                  "value"
                                ],
                                "additionalProperties": false
                              },
                              "description": "Available choices. Enabled values are combined and deduplicated; an empty list adds no restriction."
                            }
                          },
                          "required": [
                            "type",
                            "items"
                          ],
                          "additionalProperties": false
                        },
                        "domainType": {
                          "description": "Limit requests to first-party or third-party traffic. When absent or disabled, both can match.",
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean"
                            },
                            "value": {
                              "type": "string",
                              "enum": [
                                "firstParty",
                                "thirdParty"
                              ],
                              "description": "firstParty or thirdParty relative to the originating domain, as classified by Chrome."
                            }
                          },
                          "required": [
                            "enabled",
                            "value"
                          ],
                          "additionalProperties": false
                        },
                        "isUrlFilterCaseSensitive": {
                          "description": "Case sensitivity for urlFilter or regexFilter; defaults to case-insensitive when absent or disabled.",
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean"
                            },
                            "value": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "enabled",
                            "value"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false,
                      "description": "Request conditions. Different condition types are combined with AND; enabled values within a list are alternatives. Exclusions remove matches. Empty or disabled choices add no restriction. Empty filters can apply broadly."
                    }
                  },
                  "required": [
                    "name",
                    "enabled",
                    "emoji",
                    "ruleActionType",
                    "filters"
                  ],
                  "additionalProperties": false,
                  "description": "Portable profile. Internal IDs, group membership IDs and browser tab bindings are omitted. Imports generate fresh IDs; header values and comments are not redacted."
                },
                "description": "Nonempty ordered group members. Radio groups must have at most one enabled profile; Headerly checks this on import."
              }
            },
            "required": [
              "kind",
              "name",
              "color",
              "type",
              "profiles"
            ],
            "additionalProperties": false,
            "description": "Portable profile group. Import creates a new group and restores membership; local pause history is not included."
          }
        ]
      },
      "description": "Nonempty list of standalone profiles and groups in sidebar order. Group members retain their order."
    }
  },
  "required": [
    "version",
    "items"
  ],
  "additionalProperties": false,
  "description": "Latest Headerly profile exchange document for import, export and sharing. Imports create new profiles and groups without replacing same-named items. Chrome validates browser-specific rule constraints when registering rules."
}