app-info.xsd 29 KB

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