1
0

app-info.xsd 28 KB

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