1
0

app-info-shipped.xsd 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671
  1. <?xml version="1.0"?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  3. elementFormDefault="qualified" attributeFormDefault="unqualified">
  4. <xs:element name="info">
  5. <xs:complexType>
  6. <xs:sequence>
  7. <xs:element name="id" type="id" minOccurs="1" maxOccurs="1"/>
  8. <xs:element name="name" type="l10n-string" minOccurs="1"
  9. maxOccurs="unbounded"/>
  10. <xs:element name="summary" type="l10n-string" minOccurs="1"
  11. maxOccurs="unbounded"/>
  12. <xs:element name="description" type="l10n-text" minOccurs="1"
  13. maxOccurs="unbounded"/>
  14. <xs:element name="version" type="semver"
  15. minOccurs="1" maxOccurs="1"/>
  16. <xs:element name="licence" type="licence" minOccurs="1"
  17. maxOccurs="unbounded"/>
  18. <xs:element name="author" type="author" minOccurs="1"
  19. maxOccurs="unbounded"/>
  20. <xs:element name="namespace" type="limited-string"
  21. minOccurs="0" maxOccurs="1"/>
  22. <xs:element name="default_enable" minOccurs="0"
  23. maxOccurs="1"/>
  24. <xs:element name="types" type="types" minOccurs="0"
  25. maxOccurs="1"/>
  26. <xs:element name="documentation" type="documentation"
  27. minOccurs="0" maxOccurs="1"/>
  28. <xs:element name="category" type="category" minOccurs="1"
  29. maxOccurs="unbounded"/>
  30. <xs:element name="website" type="url" minOccurs="0"
  31. maxOccurs="1"/>
  32. <xs:element name="discussion" type="url" minOccurs="0"
  33. maxOccurs="1"/>
  34. <xs:element name="bugs" type="url" minOccurs="1"
  35. maxOccurs="1"/>
  36. <xs:element name="repository" type="repository" minOccurs="0"
  37. maxOccurs="1"/>
  38. <xs:element name="screenshot" type="screenshot" minOccurs="0"
  39. maxOccurs="10"/>
  40. <xs:element name="dependencies" type="dependencies"
  41. minOccurs="1" maxOccurs="1"/>
  42. <xs:element name="background-jobs" type="jobs"
  43. minOccurs="0" maxOccurs="1"/>
  44. <xs:element name="repair-steps" type="repair-steps"
  45. minOccurs="0" maxOccurs="1"/>
  46. <xs:element name="two-factor-providers"
  47. type="two-factor-providers"
  48. minOccurs="0" maxOccurs="1"/>
  49. <xs:element name="commands" type="commands"
  50. minOccurs="0" maxOccurs="1"/>
  51. <xs:element name="settings" type="settings" minOccurs="0"
  52. maxOccurs="1"/>
  53. <xs:element name="activity" type="activity" minOccurs="0"
  54. maxOccurs="1"/>
  55. <xs:element name="navigations" type="navigations" minOccurs="0"
  56. maxOccurs="1"/>
  57. <xs:element name="contactsmenu" type="contactsmenu" minOccurs="0"
  58. maxOccurs="1"/>
  59. <xs:element name="collaboration" type="collaboration" minOccurs="0"
  60. maxOccurs="1" />
  61. <xs:element name="sabre" type="sabre" minOccurs="0"
  62. maxOccurs="1" />
  63. <xs:element name="public" type="public" minOccurs="0"
  64. maxOccurs="1" />
  65. </xs:sequence>
  66. </xs:complexType>
  67. <xs:unique name="uniqueNameL10n">
  68. <xs:selector xpath="name"/>
  69. <xs:field xpath="@lang"/>
  70. </xs:unique>
  71. <xs:unique name="uniqueSummaryL10n">
  72. <xs:selector xpath="summary"/>
  73. <xs:field xpath="@lang"/>
  74. </xs:unique>
  75. <xs:unique name="uniqueDescriptionL10n">
  76. <xs:selector xpath="description"/>
  77. <xs:field xpath="@lang"/>
  78. </xs:unique>
  79. <xs:unique name="uniqueLicense">
  80. <xs:selector xpath="licence"/>
  81. <xs:field xpath="."/>
  82. </xs:unique>
  83. <xs:unique name="uniqueTypes">
  84. <xs:selector xpath="types/type"/>
  85. <xs:field xpath="."/>
  86. </xs:unique>
  87. <xs:unique name="uniqueCategory">
  88. <xs:selector xpath="category"/>
  89. <xs:field xpath="."/>
  90. </xs:unique>
  91. <xs:unique name="uniqueDatabase">
  92. <xs:selector xpath="dependencies/database"/>
  93. <xs:field xpath="."/>
  94. </xs:unique>
  95. <xs:unique name="uniqueLib">
  96. <xs:selector xpath="dependencies/lib"/>
  97. <xs:field xpath="."/>
  98. </xs:unique>
  99. <xs:unique name="uniqueCommand">
  100. <xs:selector xpath="dependencies/command"/>
  101. <xs:field xpath="."/>
  102. </xs:unique>
  103. </xs:element>
  104. <!-- basic types -->
  105. <xs:simpleType name="empty-string">
  106. <xs:restriction base="xs:string">
  107. <xs:maxLength value="0"/>
  108. </xs:restriction>
  109. </xs:simpleType>
  110. <xs:simpleType name="non-empty-string">
  111. <xs:restriction base="xs:string">
  112. <xs:minLength value="1"/>
  113. </xs:restriction>
  114. </xs:simpleType>
  115. <xs:simpleType name="limited-string">
  116. <xs:restriction base="non-empty-string">
  117. <xs:maxLength value="256"/>
  118. </xs:restriction>
  119. </xs:simpleType>
  120. <xs:complexType name="l10n-text">
  121. <xs:simpleContent>
  122. <xs:extension base="non-empty-string">
  123. <xs:attribute name="lang" type="l10n-code" default="en"
  124. use="optional"/>
  125. </xs:extension>
  126. </xs:simpleContent>
  127. </xs:complexType>
  128. <xs:complexType name="l10n-string">
  129. <xs:simpleContent>
  130. <xs:restriction base="l10n-text">
  131. <xs:maxLength value="128"/>
  132. </xs:restriction>
  133. </xs:simpleContent>
  134. </xs:complexType>
  135. <xs:simpleType name="l10n-code">
  136. <xs:restriction base="xs:string">
  137. <xs:enumeration value="af"/>
  138. <xs:enumeration value="ar"/>
  139. <xs:enumeration value="ast"/>
  140. <xs:enumeration value="az"/>
  141. <xs:enumeration value="bg"/>
  142. <xs:enumeration value="be"/>
  143. <xs:enumeration value="bn"/>
  144. <xs:enumeration value="br"/>
  145. <xs:enumeration value="bs"/>
  146. <xs:enumeration value="ca"/>
  147. <xs:enumeration value="cs"/>
  148. <xs:enumeration value="cy"/>
  149. <xs:enumeration value="da"/>
  150. <xs:enumeration value="de"/>
  151. <xs:enumeration value="el"/>
  152. <xs:enumeration value="en"/>
  153. <xs:enumeration value="eo"/>
  154. <xs:enumeration value="es"/>
  155. <xs:enumeration value="es-ar"/>
  156. <xs:enumeration value="es-co"/>
  157. <xs:enumeration value="es-mx"/>
  158. <xs:enumeration value="es-ni"/>
  159. <xs:enumeration value="es-ve"/>
  160. <xs:enumeration value="et"/>
  161. <xs:enumeration value="eu"/>
  162. <xs:enumeration value="fa"/>
  163. <xs:enumeration value="fi"/>
  164. <xs:enumeration value="fr"/>
  165. <xs:enumeration value="fy"/>
  166. <xs:enumeration value="ga"/>
  167. <xs:enumeration value="gd"/>
  168. <xs:enumeration value="gl"/>
  169. <xs:enumeration value="he"/>
  170. <xs:enumeration value="hi"/>
  171. <xs:enumeration value="hr"/>
  172. <xs:enumeration value="hu"/>
  173. <xs:enumeration value="ia"/>
  174. <xs:enumeration value="id"/>
  175. <xs:enumeration value="io"/>
  176. <xs:enumeration value="is"/>
  177. <xs:enumeration value="it"/>
  178. <xs:enumeration value="ja"/>
  179. <xs:enumeration value="ka"/>
  180. <xs:enumeration value="kk"/>
  181. <xs:enumeration value="km"/>
  182. <xs:enumeration value="kn"/>
  183. <xs:enumeration value="ko"/>
  184. <xs:enumeration value="lb"/>
  185. <xs:enumeration value="lt"/>
  186. <xs:enumeration value="lv"/>
  187. <xs:enumeration value="mk"/>
  188. <xs:enumeration value="ml"/>
  189. <xs:enumeration value="mn"/>
  190. <xs:enumeration value="mr"/>
  191. <xs:enumeration value="my"/>
  192. <xs:enumeration value="nb"/>
  193. <xs:enumeration value="ne"/>
  194. <xs:enumeration value="nl"/>
  195. <xs:enumeration value="nn"/>
  196. <xs:enumeration value="os"/>
  197. <xs:enumeration value="pa"/>
  198. <xs:enumeration value="pl"/>
  199. <xs:enumeration value="pt"/>
  200. <xs:enumeration value="pt-br"/>
  201. <xs:enumeration value="ro"/>
  202. <xs:enumeration value="ru"/>
  203. <xs:enumeration value="sk"/>
  204. <xs:enumeration value="sl"/>
  205. <xs:enumeration value="sq"/>
  206. <xs:enumeration value="sr"/>
  207. <xs:enumeration value="sr-latn"/>
  208. <xs:enumeration value="sv"/>
  209. <xs:enumeration value="sw"/>
  210. <xs:enumeration value="ta"/>
  211. <xs:enumeration value="te"/>
  212. <xs:enumeration value="th"/>
  213. <xs:enumeration value="tr"/>
  214. <xs:enumeration value="tt"/>
  215. <xs:enumeration value="udm"/>
  216. <xs:enumeration value="uk"/>
  217. <xs:enumeration value="ur"/>
  218. <xs:enumeration value="vi"/>
  219. <xs:enumeration value="zh-hans"/>
  220. <xs:enumeration value="zh-hant"/>
  221. </xs:restriction>
  222. </xs:simpleType>
  223. <xs:simpleType name="semver">
  224. <xs:restriction base="limited-string">
  225. <xs:pattern
  226. value="(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(\-([0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*))?"/>
  227. </xs:restriction>
  228. </xs:simpleType>
  229. <xs:simpleType name="version">
  230. <xs:restriction base="limited-string">
  231. <xs:pattern value="[0-9]+(\.[0-9]+){0,2}"/>
  232. </xs:restriction>
  233. </xs:simpleType>
  234. <xs:simpleType name="url">
  235. <xs:restriction base="xs:anyURI">
  236. <xs:pattern value="https?://.+"/>
  237. <xs:maxLength value="256"/>
  238. </xs:restriction>
  239. </xs:simpleType>
  240. <xs:simpleType name="doc-user-url">
  241. <xs:restriction base="non-empty-string">
  242. <xs:pattern value="https://.+|user-[a-z]+[\-a-z]*[a-z]+"/>
  243. <xs:maxLength value="256"/>
  244. </xs:restriction>
  245. </xs:simpleType>
  246. <xs:simpleType name="doc-admin-url">
  247. <xs:restriction base="non-empty-string">
  248. <xs:pattern value="https://.+|admin-[a-z]+[\-a-z]*[a-z]+"/>
  249. <xs:maxLength value="256"/>
  250. </xs:restriction>
  251. </xs:simpleType>
  252. <xs:simpleType name="doc-developer-url">
  253. <xs:restriction base="non-empty-string">
  254. <xs:pattern value="https://.+|developer-[a-z]+[\-a-z]*[a-z]+"/>
  255. <xs:maxLength value="256"/>
  256. </xs:restriction>
  257. </xs:simpleType>
  258. <xs:simpleType name="secure-url">
  259. <xs:restriction base="xs:anyURI">
  260. <xs:pattern value="https://.+"/>
  261. <xs:maxLength value="256"/>
  262. </xs:restriction>
  263. </xs:simpleType>
  264. <xs:simpleType name="email">
  265. <xs:restriction base="limited-string">
  266. <xs:pattern value="[^@]+@[^\.]+\..+"/>
  267. </xs:restriction>
  268. </xs:simpleType>
  269. <!-- first level elements -->
  270. <xs:complexType name="screenshot">
  271. <xs:simpleContent>
  272. <xs:extension base="secure-url">
  273. <xs:attribute name="small-thumbnail" use="optional"
  274. type="secure-url"/>
  275. </xs:extension>
  276. </xs:simpleContent>
  277. </xs:complexType>
  278. <xs:simpleType name="id">
  279. <xs:restriction base="limited-string">
  280. <xs:pattern value="[a-z]+[a-z0-9_]*[a-z0-9]+"/>
  281. </xs:restriction>
  282. </xs:simpleType>
  283. <xs:complexType name="author">
  284. <xs:simpleContent>
  285. <xs:extension base="limited-string">
  286. <xs:attribute name="mail" type="email" use="optional"/>
  287. <xs:attribute name="homepage" type="url" use="optional"/>
  288. </xs:extension>
  289. </xs:simpleContent>
  290. </xs:complexType>
  291. <xs:complexType name="repository">
  292. <xs:simpleContent>
  293. <xs:extension base="url">
  294. <xs:attribute name="type" type="vcs" use="optional"
  295. default="git"/>
  296. </xs:extension>
  297. </xs:simpleContent>
  298. </xs:complexType>
  299. <xs:simpleType name="vcs">
  300. <xs:restriction base="xs:string">
  301. <xs:enumeration value="git"/>
  302. <xs:enumeration value="mercurial"/>
  303. <xs:enumeration value="subversion"/>
  304. <xs:enumeration value="bzr"/>
  305. </xs:restriction>
  306. </xs:simpleType>
  307. <xs:complexType name="types">
  308. <xs:sequence>
  309. <xs:element name="prelogin" minOccurs="0" maxOccurs="1"/>
  310. <xs:element name="filesystem" minOccurs="0" maxOccurs="1"/>
  311. <xs:element name="authentication" minOccurs="0" maxOccurs="1"/>
  312. <xs:element name="logging" minOccurs="0" maxOccurs="1"/>
  313. <xs:element name="dav" minOccurs="0" maxOccurs="1"/>
  314. <xs:element name="prevent_group_restriction" minOccurs="0"
  315. maxOccurs="1"/>
  316. </xs:sequence>
  317. </xs:complexType>
  318. <xs:simpleType name="category">
  319. <xs:restriction base="xs:string">
  320. <xs:enumeration value="security"/>
  321. <xs:enumeration value="customization"/>
  322. <xs:enumeration value="files"/>
  323. <xs:enumeration value="integration"/>
  324. <xs:enumeration value="monitoring"/>
  325. <xs:enumeration value="multimedia"/>
  326. <xs:enumeration value="office"/>
  327. <xs:enumeration value="organization"/>
  328. <xs:enumeration value="social"/>
  329. <xs:enumeration value="tools"/>
  330. <xs:enumeration value="games"/>
  331. </xs:restriction>
  332. </xs:simpleType>
  333. <xs:simpleType name="licence">
  334. <xs:restriction base="xs:string">
  335. <xs:enumeration value="agpl"/>
  336. <xs:enumeration value="mpl"/>
  337. <xs:enumeration value="apache"/>
  338. </xs:restriction>
  339. </xs:simpleType>
  340. <xs:simpleType name="databases">
  341. <xs:restriction base="xs:string">
  342. <xs:enumeration value="sqlite"/>
  343. <xs:enumeration value="mysql"/>
  344. <xs:enumeration value="pgsql"/>
  345. </xs:restriction>
  346. </xs:simpleType>
  347. <xs:complexType name="documentation">
  348. <xs:sequence>
  349. <xs:element name="user" type="doc-user-url" minOccurs="0" maxOccurs="1"/>
  350. <xs:element name="admin" type="doc-admin-url" minOccurs="0" maxOccurs="1"/>
  351. <xs:element name="developer" type="doc-developer-url" minOccurs="0"
  352. maxOccurs="1"/>
  353. </xs:sequence>
  354. </xs:complexType>
  355. <xs:complexType name="settings">
  356. <xs:sequence>
  357. <xs:element name="admin" type="php-class" minOccurs="0"
  358. maxOccurs="unbounded"/>
  359. <xs:element name="admin-section" type="php-class" minOccurs="0"
  360. maxOccurs="unbounded"/>
  361. <xs:element name="personal" type="php-class" minOccurs="0"
  362. maxOccurs="unbounded"/>
  363. <xs:element name="personal-section" type="php-class" minOccurs="0"
  364. maxOccurs="unbounded"/>
  365. </xs:sequence>
  366. </xs:complexType>
  367. <xs:complexType name="activity">
  368. <xs:sequence>
  369. <xs:element name="settings" type="activity-settings" minOccurs="0"
  370. maxOccurs="1"/>
  371. <xs:element name="filters" type="activity-filters" minOccurs="0" maxOccurs="1"/>
  372. <xs:element name="providers" type="activity-providers" minOccurs="0"
  373. maxOccurs="1"/>
  374. </xs:sequence>
  375. </xs:complexType>
  376. <xs:complexType name="activity-settings">
  377. <xs:sequence>
  378. <xs:element name="setting" type="php-class" minOccurs="1"
  379. maxOccurs="unbounded"/>
  380. </xs:sequence>
  381. </xs:complexType>
  382. <xs:complexType name="activity-filters">
  383. <xs:sequence>
  384. <xs:element name="filter" type="php-class" minOccurs="1"
  385. maxOccurs="unbounded"/>
  386. </xs:sequence>
  387. </xs:complexType>
  388. <xs:complexType name="activity-providers">
  389. <xs:sequence>
  390. <xs:element name="provider" type="php-class" minOccurs="1"
  391. maxOccurs="unbounded"/>
  392. </xs:sequence>
  393. </xs:complexType>
  394. <xs:complexType name="navigations">
  395. <xs:sequence>
  396. <xs:element name="navigation" type="navigation" minOccurs="1"
  397. maxOccurs="unbounded"/>
  398. </xs:sequence>
  399. </xs:complexType>
  400. <xs:complexType name="navigation">
  401. <xs:sequence>
  402. <xs:element name="id" type="id" minOccurs="0" maxOccurs="1"/>
  403. <xs:element name="name" type="non-empty-string" minOccurs="1" maxOccurs="1"/>
  404. <xs:element name="route" type="route" minOccurs="1" maxOccurs="1"/>
  405. <xs:element name="icon" type="xs:anyURI" minOccurs="0" maxOccurs="1"/>
  406. <xs:element name="order" type="xs:int" minOccurs="0" maxOccurs="1"/>
  407. <xs:element name="type" type="navigation-type" minOccurs="0" maxOccurs="1"/>
  408. </xs:sequence>
  409. <xs:attribute name="role" type="navigation-role" default="all" use="optional"/>
  410. </xs:complexType>
  411. <xs:simpleType name="navigation-role">
  412. <xs:restriction base="xs:string">
  413. <xs:enumeration value="all"/>
  414. <xs:enumeration value="admin"/>
  415. </xs:restriction>
  416. </xs:simpleType>
  417. <xs:simpleType name="navigation-type">
  418. <xs:restriction base="xs:string">
  419. <xs:enumeration value="link"/>
  420. <xs:enumeration value="settings"/>
  421. </xs:restriction>
  422. </xs:simpleType>
  423. <xs:simpleType name="route">
  424. <xs:restriction base="non-empty-string">
  425. <xs:pattern value="[0-9a-zA-Z_]+(\.[0-9a-zA-Z_]+){2}"/>
  426. </xs:restriction>
  427. </xs:simpleType>
  428. <xs:complexType name="contactsmenu">
  429. <xs:sequence>
  430. <xs:element name="provider" type="php-class" minOccurs="1"
  431. maxOccurs="1"/>
  432. </xs:sequence>
  433. </xs:complexType>
  434. <xs:complexType name="collaboration">
  435. <xs:sequence>
  436. <xs:element name="plugins" type="collaboration-plugins" minOccurs="0" maxOccurs="1">
  437. </xs:element>
  438. </xs:sequence>
  439. </xs:complexType>
  440. <xs:complexType name="collaboration-plugins">
  441. <xs:sequence>
  442. <xs:element name="plugin" type="collaboration-plugins-plugin" minOccurs="1" maxOccurs="unbounded">
  443. </xs:element>
  444. </xs:sequence>
  445. </xs:complexType>
  446. <xs:complexType name="collaboration-plugins-plugin">
  447. <xs:simpleContent>
  448. <xs:extension base="php-class">
  449. <xs:attribute name="type" type="collaboration-plugin-type" use="required"/>
  450. <xs:attribute name="share-type" type="share-type" />
  451. </xs:extension>
  452. </xs:simpleContent>
  453. </xs:complexType>
  454. <xs:simpleType name="collaboration-plugin-type">
  455. <xs:restriction base="xs:string">
  456. <xs:enumeration value="collaborator-search"/>
  457. <xs:enumeration value="autocomplete-sort"/>
  458. </xs:restriction>
  459. </xs:simpleType>
  460. <xs:complexType name="sabre">
  461. <xs:sequence>
  462. <xs:element name="collections" type="sabre-collections" minOccurs="0" maxOccurs="1"/>
  463. <xs:element name="plugins" type="sabre-plugins" minOccurs="0" maxOccurs="1"/>
  464. </xs:sequence>
  465. </xs:complexType>
  466. <xs:complexType name="sabre-collections">
  467. <xs:sequence>
  468. <xs:element name="collection" type="php-class" minOccurs="1" maxOccurs="unbounded"/>
  469. </xs:sequence>
  470. </xs:complexType>
  471. <xs:complexType name="sabre-plugins">
  472. <xs:sequence>
  473. <xs:element name="plugin" type="php-class" minOccurs="1" maxOccurs="unbounded"/>
  474. </xs:sequence>
  475. </xs:complexType>
  476. <xs:simpleType name="share-type">
  477. <xs:restriction base="xs:string">
  478. <xs:enumeration value="SHARE_TYPE_USER"/>
  479. <xs:enumeration value="SHARE_TYPE_GROUP"/>
  480. <xs:enumeration value="SHARE_TYPE_LINK"/>
  481. <xs:enumeration value="SHARE_TYPE_EMAIL"/>
  482. <xs:enumeration value="SHARE_TYPE_CONTACT"/>
  483. <xs:enumeration value="SHARE_TYPE_REMOTE"/>
  484. <xs:enumeration value="SHARE_TYPE_CIRCLE"/>
  485. <xs:enumeration value="SHARE_TYPE_GUEST"/>
  486. </xs:restriction>
  487. </xs:simpleType>
  488. <xs:complexType name="public">
  489. <xs:sequence>
  490. <xs:element name="webdav" type="path" minOccurs="0" maxOccurs="1"/>
  491. <xs:element name="files" type="path" minOccurs="0" maxOccurs="1"/>
  492. </xs:sequence>
  493. </xs:complexType>
  494. <!-- dependencies -->
  495. <xs:complexType name="dependencies">
  496. <xs:sequence>
  497. <xs:element name="php" type="php" minOccurs="0" maxOccurs="1"/>
  498. <xs:element name="database" type="database" minOccurs="0"
  499. maxOccurs="unbounded"/>
  500. <xs:element name="command" type="shell-command" minOccurs="0"
  501. maxOccurs="unbounded"/>
  502. <xs:element name="lib" type="min-max-version" minOccurs="0"
  503. maxOccurs="unbounded"/>
  504. <xs:element name="owncloud" type="owncloud" minOccurs="0"
  505. maxOccurs="1"/>
  506. <xs:element name="nextcloud" type="nextcloud" minOccurs="1"
  507. maxOccurs="1"/>
  508. </xs:sequence>
  509. </xs:complexType>
  510. <xs:complexType name="owncloud">
  511. <xs:attribute name="min-version" type="version" use="required"/>
  512. <xs:attribute name="max-version" type="version" use="optional"/>
  513. </xs:complexType>
  514. <xs:complexType name="nextcloud">
  515. <xs:attribute name="min-version" type="version" use="required"/>
  516. <xs:attribute name="max-version" type="version" use="required"/>
  517. </xs:complexType>
  518. <xs:simpleType name="shell-command">
  519. <xs:restriction base="limited-string">
  520. <xs:pattern value="[a-zA-Z\-_]+"/>
  521. </xs:restriction>
  522. </xs:simpleType>
  523. <xs:complexType name="min-max-version">
  524. <xs:simpleContent>
  525. <xs:extension base="limited-string">
  526. <xs:attribute name="min-version" type="version"
  527. use="optional"/>
  528. <xs:attribute name="max-version" type="version"
  529. use="optional"/>
  530. </xs:extension>
  531. </xs:simpleContent>
  532. </xs:complexType>
  533. <xs:complexType name="database">
  534. <xs:simpleContent>
  535. <xs:extension base="databases">
  536. <xs:attribute name="min-version" type="version"
  537. use="optional"/>
  538. <xs:attribute name="max-version" type="version"
  539. use="optional"/>
  540. </xs:extension>
  541. </xs:simpleContent>
  542. </xs:complexType>
  543. <xs:complexType name="php">
  544. <xs:simpleContent>
  545. <xs:extension base="empty-string">
  546. <xs:attribute name="min-int-size" type="bits" use="optional"
  547. default="32"/>
  548. <xs:attribute name="min-version" type="version"
  549. use="optional"/>
  550. <xs:attribute name="max-version" type="version"
  551. use="optional"/>
  552. </xs:extension>
  553. </xs:simpleContent>
  554. </xs:complexType>
  555. <xs:simpleType name="bits">
  556. <xs:restriction base="xs:int">
  557. <xs:enumeration value="32"/>
  558. <xs:enumeration value="64"/>
  559. </xs:restriction>
  560. </xs:simpleType>
  561. <xs:complexType name="repair-steps">
  562. <xs:sequence>
  563. <xs:element name="pre-migration" type="steps" minOccurs="0"
  564. maxOccurs="1"/>
  565. <xs:element name="post-migration" type="steps" minOccurs="0"
  566. maxOccurs="1"/>
  567. <xs:element name="live-migration" type="steps" minOccurs="0"
  568. maxOccurs="1"/>
  569. <xs:element name="install" type="steps" minOccurs="0"
  570. maxOccurs="1"/>
  571. <xs:element name="uninstall" type="steps" minOccurs="0"
  572. maxOccurs="1"/>
  573. </xs:sequence>
  574. </xs:complexType>
  575. <xs:complexType name="jobs">
  576. <xs:sequence>
  577. <xs:element name="job" type="php-class" minOccurs="1"
  578. maxOccurs="unbounded"/>
  579. </xs:sequence>
  580. </xs:complexType>
  581. <xs:complexType name="steps">
  582. <xs:sequence>
  583. <xs:element name="step" type="php-class" minOccurs="1"
  584. maxOccurs="unbounded"/>
  585. </xs:sequence>
  586. </xs:complexType>
  587. <xs:complexType name="two-factor-providers">
  588. <xs:sequence>
  589. <xs:element name="provider" type="php-class" minOccurs="1"
  590. maxOccurs="unbounded"/>
  591. </xs:sequence>
  592. </xs:complexType>
  593. <xs:complexType name="commands">
  594. <xs:sequence>
  595. <xs:element name="command" type="php-class" minOccurs="1"
  596. maxOccurs="unbounded"/>
  597. </xs:sequence>
  598. </xs:complexType>
  599. <xs:simpleType name="php-class">
  600. <xs:restriction base="xs:string">
  601. <xs:pattern
  602. value="[a-zA-Z_][0-9a-zA-Z_]*(\\[a-zA-Z_][0-9a-zA-Z_]*)*"/>
  603. </xs:restriction>
  604. </xs:simpleType>
  605. <xs:simpleType name="path">
  606. <xs:restriction base="xs:string">
  607. <xs:pattern
  608. value="[a-zA-Z_][0-9a-zA-Z_]*(/[a-zA-Z_][0-9a-zA-Z_]*)*\.php"/>
  609. </xs:restriction>
  610. </xs:simpleType>
  611. </xs:schema>