ResponseDefinitions.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * @copyright Copyright (c) 2023 Kate Döen <kate.doeen@nextcloud.com>
  5. *
  6. * @author Kate Döen <kate.doeen@nextcloud.com>
  7. *
  8. * @license GNU AGPL version 3 or any later version
  9. *
  10. * This program is free software: you can redistribute it and/or modify
  11. * it under the terms of the GNU Affero General Public License as
  12. * published by the Free Software Foundation, either version 3 of the
  13. * License, or (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU Affero General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU Affero General Public License
  21. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  22. *
  23. */
  24. namespace OCA\Core;
  25. /**
  26. * @psalm-type CoreLoginFlowV2Credentials = array{
  27. * server: string,
  28. * loginName: string,
  29. * appPassword: string,
  30. * }
  31. *
  32. * @psalm-type CoreLoginFlowV2 = array{
  33. * poll: array{
  34. * token: string,
  35. * endpoint: string,
  36. * },
  37. * login: string,
  38. * }
  39. *
  40. * @psalm-type CoreNavigationEntry = array{
  41. * id: string,
  42. * order: int|string,
  43. * href: string,
  44. * icon: string,
  45. * type: string,
  46. * name: string,
  47. * active: bool,
  48. * classes: string,
  49. * unread: int,
  50. * }
  51. *
  52. * @psalm-type CoreContactsAction = array{
  53. * title: string,
  54. * icon: string,
  55. * hyperlink: string,
  56. * appId: string,
  57. * }
  58. *
  59. * @psalm-type CoreOpenGraphObject = array{
  60. * id: string,
  61. * name: string,
  62. * description: ?string,
  63. * thumb: ?string,
  64. * link: string,
  65. * }
  66. *
  67. * @psalm-type CoreResource = array{
  68. * richObjectType: string,
  69. * richObject: array<string, mixed>,
  70. * openGraphObject: CoreOpenGraphObject,
  71. * accessible: bool,
  72. * }
  73. *
  74. * @psalm-type CoreCollection = array{
  75. * id: int,
  76. * name: string,
  77. * resources: CoreResource[],
  78. * }
  79. *
  80. * @psalm-type CoreReference = array{
  81. * richObjectType: string,
  82. * richObject: array<string, mixed>,
  83. * openGraphObject: CoreOpenGraphObject,
  84. * accessible: bool,
  85. * }
  86. *
  87. * @psalm-type CoreReferenceProvider = array{
  88. * id: string,
  89. * title: string,
  90. * icon_url: string,
  91. * order: int,
  92. * search_providers_ids: ?string[]
  93. * }
  94. *
  95. * @psalm-type CoreUnifiedSearchProvider = array{
  96. * id: string,
  97. * name: string,
  98. * order: int,
  99. * }
  100. *
  101. * @psalm-type CoreUnifiedSearchResultEntry = array{
  102. * thumbnailUrl: string,
  103. * title: string,
  104. * subline: string,
  105. * resourceUrl: string,
  106. * icon: string,
  107. * rounded: bool,
  108. * attributes: string[],
  109. * }
  110. *
  111. * @psalm-type CoreUnifiedSearchResult = array{
  112. * name: string,
  113. * isPaginated: bool,
  114. * entries: CoreUnifiedSearchResultEntry[],
  115. * cursor: int|string|null,
  116. * }
  117. *
  118. * @psalm-type CoreAutocompleteResult = array{
  119. * id: string,
  120. * label: string,
  121. * icon: string,
  122. * source: string,
  123. * status: string,
  124. * subline: string,
  125. * shareWithDisplayNameUnique: string,
  126. * }
  127. *
  128. * @psalm-type CoreTextProcessingTask = array{
  129. * id: ?int,
  130. * type: string,
  131. * status: 0|1|2|3|4,
  132. * userId: ?string,
  133. * appId: string,
  134. * input: string,
  135. * output: ?string,
  136. * identifier: string,
  137. * }
  138. */
  139. class ResponseDefinitions {
  140. }