1
0

app-info.xsd 25 KB

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