app-info-shipped.xsd 29 KB

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