ResponseDefinitions.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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. * richObjectType: string,
  61. * richObject: array<string, mixed>,
  62. * openGraphObject: array{
  63. * id: string,
  64. * name: string,
  65. * description: ?string,
  66. * thumb: ?string,
  67. * link: string,
  68. * },
  69. * accessible: bool,
  70. * }
  71. *
  72. * @psalm-type CoreCollection = array{
  73. * id: int,
  74. * name: string,
  75. * resources: CoreOpenGraphObject[],
  76. * }
  77. *
  78. * @psalm-type CoreReference = array{
  79. * richObjectType: string,
  80. * richObject: array<string, mixed>,
  81. * openGraphObject: CoreOpenGraphObject,
  82. * accessible: bool,
  83. * }
  84. *
  85. * @psalm-type CoreReferenceProvider = array{
  86. * id: string,
  87. * title: string,
  88. * icon_url: string,
  89. * order: int,
  90. * search_providers_ids: ?string[]
  91. * }
  92. *
  93. * @psalm-type CoreUnifiedSearchProvider = array{
  94. * id: string,
  95. * name: string,
  96. * order: int,
  97. * }
  98. *
  99. * @psalm-type CoreUnifiedSearchResultEntry = array{
  100. * thumbnailUrl: string,
  101. * title: string,
  102. * subline: string,
  103. * resourceUrl: string,
  104. * icon: string,
  105. * rounded: bool,
  106. * attributes: string[],
  107. * }
  108. *
  109. * @psalm-type CoreUnifiedSearchResult = array{
  110. * name: string,
  111. * isPaginated: bool,
  112. * entries: CoreUnifiedSearchResultEntry[],
  113. * cursor: int|string|null,
  114. * }
  115. *
  116. * @psalm-type CoreAutocompleteResult = array{
  117. * id: string,
  118. * label: string,
  119. * icon: string,
  120. * source: string,
  121. * status: string,
  122. * subline: string,
  123. * shareWithDisplayNameUnique: string,
  124. * }
  125. *
  126. * @psalm-type CoreTextProcessingTask = array{
  127. * id: ?int,
  128. * type: string,
  129. * status: 0|1|2|3|4,
  130. * userId: ?string,
  131. * appId: string,
  132. * input: string,
  133. * output: ?string,
  134. * identifier: string,
  135. * }
  136. */
  137. class ResponseDefinitions {
  138. }