app-info-shipped.xsd 27 KB

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