| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<!-- |
| 3 |
|
| 4 |
SPDX-License-Identifier: GPL-3.0-or-later |
| 5 |
Copyright (c) 2008-2026 Andrew Ziem. |
| 6 |
|
| 7 |
This work is licensed under the terms of the GNU GPL, version 3 or |
| 8 |
later. See the COPYING file in the top-level directory. |
| 9 |
|
| 10 |
--> |
| 11 |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> |
| 12 |
<xs:attributeGroup name="operatingSystem"> |
| 13 |
<xs:attribute name="os" use="optional"> |
| 14 |
<xs:simpleType> |
| 15 |
<xs:restriction base="xs:string"> |
| 16 |
<xs:enumeration value="bsd"/> |
| 17 |
<xs:enumeration value="darwin"/> |
| 18 |
<xs:enumeration value="linux"/> |
| 19 |
<xs:enumeration value="macos"/> |
| 20 |
<xs:enumeration value="netbsd"/> |
| 21 |
<xs:enumeration value="openbsd"/> |
| 22 |
<xs:enumeration value="freebsd"/> |
| 23 |
<xs:enumeration value="unix"/> |
| 24 |
<xs:enumeration value="windows"/> |
| 25 |
</xs:restriction> |
| 26 |
</xs:simpleType> |
| 27 |
</xs:attribute> |
| 28 |
</xs:attributeGroup> |
| 29 |
<xs:element name="cleaner"> |
| 30 |
<xs:complexType> |
| 31 |
<xs:sequence> |
| 32 |
<xs:element name="label"> |
| 33 |
<xs:complexType> |
| 34 |
<xs:simpleContent> |
| 35 |
<xs:extension base="xs:string"> |
| 36 |
<xs:attribute name="translate" type="xs:boolean" default="false"/> |
| 37 |
</xs:extension> |
| 38 |
</xs:simpleContent> |
| 39 |
</xs:complexType> |
| 40 |
</xs:element> |
| 41 |
<xs:element name="description" minOccurs="0" maxOccurs="1"> |
| 42 |
<xs:complexType> |
| 43 |
<xs:simpleContent> |
| 44 |
<xs:extension base="xs:string"> |
| 45 |
<xs:attribute name="translators" type="xs:string"/> |
| 46 |
</xs:extension> |
| 47 |
</xs:simpleContent> |
| 48 |
</xs:complexType> |
| 49 |
</xs:element> |
| 50 |
<xs:element name="running" minOccurs="0" maxOccurs="unbounded"> |
| 51 |
<xs:complexType> |
| 52 |
<xs:simpleContent> |
| 53 |
<xs:extension base="xs:string"> |
| 54 |
<xs:attributeGroup ref="operatingSystem"/> |
| 55 |
<xs:attribute name="type" use="required"> |
| 56 |
<xs:simpleType> |
| 57 |
<xs:restriction base="xs:string"> |
| 58 |
<xs:enumeration value="exe"/> |
| 59 |
<xs:enumeration value="pathname"/> |
| 60 |
</xs:restriction> |
| 61 |
</xs:simpleType> |
| 62 |
</xs:attribute> |
| 63 |
<xs:attribute name="same_user" type="xs:boolean" use="optional"/> |
| 64 |
</xs:extension> |
| 65 |
</xs:simpleContent> |
| 66 |
</xs:complexType> |
| 67 |
</xs:element> |
| 68 |
<xs:element name="var" minOccurs="0" maxOccurs="unbounded"> |
| 69 |
<xs:complexType> |
| 70 |
<xs:sequence> |
| 71 |
<xs:element name="value" minOccurs="1" maxOccurs="unbounded"> |
| 72 |
<xs:complexType> |
| 73 |
<xs:simpleContent> |
| 74 |
<xs:extension base="xs:string"> |
| 75 |
<xs:attributeGroup ref="operatingSystem"/> |
| 76 |
<xs:attribute name="search" use="optional"> |
| 77 |
<xs:simpleType> |
| 78 |
<xs:restriction base="xs:string"> |
| 79 |
<xs:enumeration value="glob"/> |
| 80 |
<xs:enumeration value="winreg"/> |
| 81 |
</xs:restriction> |
| 82 |
</xs:simpleType> |
| 83 |
</xs:attribute> |
| 84 |
<xs:attribute name="path" use="optional" type="xs:string"/> |
| 85 |
<xs:attribute name="name" use="optional" type="xs:string"/> |
| 86 |
</xs:extension> |
| 87 |
</xs:simpleContent> |
| 88 |
</xs:complexType> |
| 89 |
</xs:element> |
| 90 |
</xs:sequence> |
| 91 |
<xs:attribute name="name" type="xs:string" use="required"/> |
| 92 |
</xs:complexType> |
| 93 |
</xs:element> |
| 94 |
<xs:element name="option" minOccurs="0" maxOccurs="unbounded"> |
| 95 |
<xs:complexType> |
| 96 |
<xs:sequence> |
| 97 |
<xs:element name="label"> |
| 98 |
<xs:complexType> |
| 99 |
<xs:simpleContent> |
| 100 |
<xs:extension base="xs:string"> |
| 101 |
<xs:attribute name="translate" type="xs:boolean" default="false"/> |
| 102 |
<xs:attribute name="translators" type="xs:string"/> |
| 103 |
</xs:extension> |
| 104 |
</xs:simpleContent> |
| 105 |
</xs:complexType> |
| 106 |
</xs:element> |
| 107 |
<xs:element name="description"> |
| 108 |
<xs:complexType> |
| 109 |
<xs:simpleContent> |
| 110 |
<xs:extension base="xs:string"> |
| 111 |
<xs:attribute name="translators" type="xs:string"/> |
| 112 |
</xs:extension> |
| 113 |
</xs:simpleContent> |
| 114 |
</xs:complexType> |
| 115 |
</xs:element> |
| 116 |
<xs:element name="warning" type="xs:string" minOccurs="0" maxOccurs="1"/> |
| 117 |
<xs:element name="action" maxOccurs="unbounded"> |
| 118 |
<xs:complexType> |
| 119 |
<xs:simpleContent> |
| 120 |
<xs:extension base="xs:string"> |
| 121 |
<xs:attribute name="address" type="xs:string"/> |
| 122 |
<xs:attribute name="command" use="required"> |
| 123 |
<xs:simpleType> |
| 124 |
<xs:restriction base="xs:string"> |
| 125 |
<xs:enumeration value="apt.autoclean"/> |
| 126 |
<xs:enumeration value="apt.autoremove"/> |
| 127 |
<xs:enumeration value="apt.clean"/> |
| 128 |
<xs:enumeration value="chrome.autofill"/> |
| 129 |
<xs:enumeration value="chrome.databases_db"/> |
| 130 |
<xs:enumeration value="chrome.favicons"/> |
| 131 |
<xs:enumeration value="chrome.history"/> |
| 132 |
<xs:enumeration value="chrome.keywords"/> |
| 133 |
<xs:enumeration value="cookie"/> |
| 134 |
<xs:enumeration value="delete"/> |
| 135 |
<xs:enumeration value="dnf.autoremove"/> |
| 136 |
<xs:enumeration value="dnf.clean_all"/> |
| 137 |
<xs:enumeration value="ini"/> |
| 138 |
<xs:enumeration value="journald.clean"/> |
| 139 |
<xs:enumeration value="json"/> |
| 140 |
<xs:enumeration value="mozilla.favicons"/> |
| 141 |
<xs:enumeration value="mozilla.url.history"/> |
| 142 |
<xs:enumeration value="office_registrymodifications"/> |
| 143 |
<xs:enumeration value="pacman.cache"/> |
| 144 |
<xs:enumeration value="process"/> |
| 145 |
<xs:enumeration value="snap.disabled"/> |
| 146 |
<xs:enumeration value="sqlite.vacuum"/> |
| 147 |
<xs:enumeration value="truncate"/> |
| 148 |
<xs:enumeration value="win.shell.change.notify"/> |
| 149 |
<xs:enumeration value="winreg"/> |
| 150 |
<xs:enumeration value="yum.clean_all"/> |
| 151 |
</xs:restriction> |
| 152 |
</xs:simpleType> |
| 153 |
</xs:attribute> |
| 154 |
<xs:attribute name="cmd" type="xs:string"/> |
| 155 |
<xs:attribute name="name" type="xs:string"/> |
| 156 |
<xs:attribute name="parameter" type="xs:string"/> |
| 157 |
<xs:attribute name="path" type="xs:string"/> |
| 158 |
<xs:attribute name="regex" type="xs:string"/> |
| 159 |
<xs:attribute name="nregex" type="xs:string"/> |
| 160 |
<xs:attribute name="wholeregex" type="xs:string"/> |
| 161 |
<xs:attribute name="nwholeregex" type="xs:string"/> |
| 162 |
<xs:attribute name="type" type="xs:string"/> |
| 163 |
<xs:attribute name="wait" type="xs:string"/> |
| 164 |
<xs:attributeGroup ref="operatingSystem"/> |
| 165 |
<xs:attribute name="search"> |
| 166 |
<xs:simpleType> |
| 167 |
<xs:restriction base="xs:string"> |
| 168 |
<xs:enumeration value="deep"/> |
| 169 |
<xs:enumeration value="file"/> |
| 170 |
<xs:enumeration value="glob"/> |
| 171 |
<xs:enumeration value="walk.all"/> |
| 172 |
<xs:enumeration value="walk.files"/> |
| 173 |
<xs:enumeration value="walk.top"/> |
| 174 |
</xs:restriction> |
| 175 |
</xs:simpleType> |
| 176 |
</xs:attribute> |
| 177 |
<xs:attribute name="section" type="xs:string"/> |
| 178 |
</xs:extension> |
| 179 |
</xs:simpleContent> |
| 180 |
</xs:complexType> |
| 181 |
</xs:element> |
| 182 |
</xs:sequence> |
| 183 |
<xs:attribute name="id" type="xs:string" use="required"/> |
| 184 |
<xs:attributeGroup ref="operatingSystem"/> |
| 185 |
</xs:complexType> |
| 186 |
</xs:element> |
| 187 |
<xs:element name="localizations" minOccurs="0"> |
| 188 |
<xs:complexType> |
| 189 |
<xs:sequence> |
| 190 |
<xs:element ref="path" maxOccurs="unbounded"/> |
| 191 |
</xs:sequence> |
| 192 |
</xs:complexType> |
| 193 |
</xs:element> |
| 194 |
</xs:sequence> |
| 195 |
<xs:attribute name="id" type="xs:string" use="required"/> |
| 196 |
<xs:attributeGroup ref="operatingSystem"/> |
| 197 |
</xs:complexType> |
| 198 |
</xs:element> |
| 199 |
<xs:element name="path"> |
| 200 |
<xs:complexType> |
| 201 |
<xs:choice minOccurs="0" maxOccurs="unbounded"> |
| 202 |
<xs:element ref="path"/> |
| 203 |
<xs:element name="regexfilter"> |
| 204 |
<xs:complexType> |
| 205 |
<xs:attribute name="prefix" type="xs:string" use="optional"/> |
| 206 |
<xs:attribute name="postfix" type="xs:string" use="optional"/> |
| 207 |
</xs:complexType> |
| 208 |
</xs:element> |
| 209 |
</xs:choice> |
| 210 |
<xs:attribute name="directoryregex" type="xs:string" use="optional"/> |
| 211 |
<xs:attribute name="location" type="xs:string" use="optional" default="."/> |
| 212 |
<xs:attribute name="filter" type="xs:string" use="optional" default="*"/> |
| 213 |
</xs:complexType> |
| 214 |
</xs:element> |
| 215 |
</xs:schema> |