ResponseDefinitions.php 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCA\Files_Sharing;
  8. /**
  9. * @psalm-type Files_SharingShare = array{
  10. * attributes: ?string,
  11. * can_delete: bool,
  12. * can_edit: bool,
  13. * displayname_file_owner: string,
  14. * displayname_owner: string,
  15. * expiration: ?string,
  16. * file_parent: int,
  17. * file_source: int,
  18. * file_target: string,
  19. * has_preview: bool,
  20. * hide_download: 0|1,
  21. * is-mount-root: bool,
  22. * id: string,
  23. * item_mtime: int,
  24. * item_permissions?: int,
  25. * item_size: float|int,
  26. * item_source: int,
  27. * item_type: 'file'|'folder',
  28. * label: ?string,
  29. * mail_send: 0|1,
  30. * mimetype: string,
  31. * mount-type: string,
  32. * note: string,
  33. * parent: null,
  34. * password?: null|string,
  35. * password_expiration_time?: ?string,
  36. * path: ?string,
  37. * permissions: int,
  38. * send_password_by_talk?: bool,
  39. * share_type: int,
  40. * share_with?: null|string,
  41. * share_with_avatar?: string,
  42. * share_with_displayname?: string,
  43. * share_with_displayname_unique?: ?string,
  44. * share_with_link?: string,
  45. * status?: array{clearAt: int|null, icon: ?string, message: ?string, status: string},
  46. * stime: int,
  47. * storage: int,
  48. * storage_id: string,
  49. * token: ?string,
  50. * uid_file_owner: string,
  51. * uid_owner: string,
  52. * url?: string,
  53. * }
  54. *
  55. * @psalm-type Files_SharingDeletedShare = array{
  56. * id: string,
  57. * share_type: int,
  58. * uid_owner: string,
  59. * displayname_owner: string,
  60. * permissions: int,
  61. * stime: int,
  62. * uid_file_owner: string,
  63. * displayname_file_owner: string,
  64. * path: string,
  65. * item_type: string,
  66. * mimetype: string,
  67. * storage: int,
  68. * item_source: int,
  69. * file_source: int,
  70. * file_parent: int,
  71. * file_target: int,
  72. * expiration: string|null,
  73. * share_with: string|null,
  74. * share_with_displayname: string|null,
  75. * share_with_link: string|null,
  76. * }
  77. *
  78. * @psalm-type Files_SharingRemoteShare = array{
  79. * accepted: bool,
  80. * file_id: int|null,
  81. * id: int,
  82. * mimetype: string|null,
  83. * mountpoint: string,
  84. * mtime: int|null,
  85. * name: string,
  86. * owner: string,
  87. * parent: int|null,
  88. * permissions: int|null,
  89. * remote: string,
  90. * remote_id: string,
  91. * share_token: string,
  92. * share_type: int,
  93. * type: string|null,
  94. * user: string,
  95. * }
  96. *
  97. * @psalm-type Files_SharingSharee = array{
  98. * count: int|null,
  99. * label: string,
  100. * }
  101. *
  102. * @psalm-type Files_SharingShareeValue = array{
  103. * shareType: int,
  104. * shareWith: string,
  105. * }
  106. *
  107. * @psalm-type Files_SharingShareeUser = Files_SharingSharee&array{
  108. * subline: string,
  109. * icon: string,
  110. * shareWithDisplayNameUnique: string,
  111. * status: array{
  112. * status: string,
  113. * message: string,
  114. * icon: string,
  115. * clearAt: int|null,
  116. * },
  117. * value: Files_SharingShareeValue,
  118. * }
  119. *
  120. * @psalm-type Files_SharingShareeRemoteGroup = Files_SharingSharee&array{
  121. * guid: string,
  122. * name: string,
  123. * value: Files_SharingShareeValue&array{
  124. * server: string,
  125. * }
  126. * }
  127. *
  128. * @psalm-type Files_SharingLookup = array{
  129. * value: string,
  130. * verified: int,
  131. * }
  132. *
  133. * @psalm-type Files_SharingShareeLookup = Files_SharingSharee&array{
  134. * extra: array{
  135. * federationId: string,
  136. * name: Files_SharingLookup|null,
  137. * email: Files_SharingLookup|null,
  138. * address: Files_SharingLookup|null,
  139. * website: Files_SharingLookup|null,
  140. * twitter: Files_SharingLookup|null,
  141. * phone: Files_SharingLookup|null,
  142. * twitter_signature: Files_SharingLookup|null,
  143. * website_signature: Files_SharingLookup|null,
  144. * userid: Files_SharingLookup|null,
  145. * },
  146. * value: Files_SharingShareeValue&array{
  147. * globalScale: bool,
  148. * }
  149. * }
  150. *
  151. * @psalm-type Files_SharingShareeEmail = Files_SharingSharee&array{
  152. * uuid: string,
  153. * name: string,
  154. * type: string,
  155. * shareWithDisplayNameUnique: string,
  156. * value: Files_SharingShareeValue,
  157. * }
  158. *
  159. * @psalm-type Files_SharingShareeRemote = Files_SharingSharee&array{
  160. * uuid: string,
  161. * name: string,
  162. * type: string,
  163. * value: Files_SharingShareeValue&array{
  164. * server: string,
  165. * }
  166. * }
  167. *
  168. * @psalm-type Files_SharingShareeCircle = Files_SharingSharee&array{
  169. * shareWithDescription: string,
  170. * value: Files_SharingShareeValue&array{
  171. * circle: string,
  172. * }
  173. * }
  174. *
  175. * @psalm-type Files_SharingShareesSearchResult = array{
  176. * exact: array{
  177. * circles: Files_SharingShareeCircle[],
  178. * emails: Files_SharingShareeEmail[],
  179. * groups: Files_SharingSharee[],
  180. * remote_groups: Files_SharingShareeRemoteGroup[],
  181. * remotes: Files_SharingShareeRemote[],
  182. * rooms: Files_SharingSharee[],
  183. * users: Files_SharingShareeUser[],
  184. * },
  185. * circles: Files_SharingShareeCircle[],
  186. * emails: Files_SharingShareeEmail[],
  187. * groups: Files_SharingSharee[],
  188. * lookup: Files_SharingShareeLookup[],
  189. * remote_groups: Files_SharingShareeRemoteGroup[],
  190. * remotes: Files_SharingShareeRemote[],
  191. * rooms: Files_SharingSharee[],
  192. * users: Files_SharingShareeUser[],
  193. * lookupEnabled: bool,
  194. * }
  195. *
  196. * @psalm-type Files_SharingShareesRecommendedResult = array{
  197. * exact: array{
  198. * emails: Files_SharingShareeEmail[],
  199. * groups: Files_SharingSharee[],
  200. * remote_groups: Files_SharingShareeRemoteGroup[],
  201. * remotes: Files_SharingShareeRemote[],
  202. * users: Files_SharingShareeUser[],
  203. * },
  204. * emails: Files_SharingShareeEmail[],
  205. * groups: Files_SharingSharee[],
  206. * remote_groups: Files_SharingShareeRemoteGroup[],
  207. * remotes: Files_SharingShareeRemote[],
  208. * users: Files_SharingShareeUser[],
  209. * }
  210. *
  211. * @psalm-type Files_SharingShareInfo = array{
  212. * id: int,
  213. * parentId: int,
  214. * mtime: int,
  215. * name: string,
  216. * permissions: int,
  217. * mimetype: string,
  218. * size: int|float,
  219. * type: string,
  220. * etag: string,
  221. * children?: array<string, mixed>[],
  222. * }
  223. */
  224. class ResponseDefinitions {
  225. }