You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ResponseDefinitions.php 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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\Provisioning_API;
  25. /**
  26. * @psalm-type Provisioning_APIUserDetailsQuota = array{
  27. * free?: float|int,
  28. * quota?: float|int|string,
  29. * relative?: float|int,
  30. * total?: float|int,
  31. * used?: float|int,
  32. * }
  33. *
  34. * @psalm-type Provisioning_APIUserDetails = array{
  35. * additional_mail: string[],
  36. * additional_mailScope?: string[],
  37. * address: string,
  38. * addressScope?: string,
  39. * avatarScope?: string,
  40. * backend: string,
  41. * backendCapabilities: array{
  42. * setDisplayName: bool,
  43. * setPassword: bool
  44. * },
  45. * biography: string,
  46. * biographyScope?: string,
  47. * display-name: string,
  48. * displayname: string,
  49. * displaynameScope?: string,
  50. * email: ?string,
  51. * emailScope?: string,
  52. * enabled?: bool,
  53. * fediverse: string,
  54. * fediverseScope?: string,
  55. * groups: string[],
  56. * headline: string,
  57. * headlineScope?: string,
  58. * id: string,
  59. * language: string,
  60. * lastLogin: int,
  61. * locale: string,
  62. * manager: string,
  63. * notify_email: ?string,
  64. * organisation: string,
  65. * organisationScope?: string,
  66. * phone: string,
  67. * phoneScope?: string,
  68. * profile_enabled: string,
  69. * profile_enabledScope?: string,
  70. * quota: Provisioning_APIUserDetailsQuota,
  71. * role: string,
  72. * roleScope?: string,
  73. * storageLocation?: string,
  74. * subadmin: string[],
  75. * twitter: string,
  76. * twitterScope?: string,
  77. * website: string,
  78. * websiteScope?: string,
  79. * }
  80. *
  81. * @psalm-type Provisioning_APIAppInfo = array{
  82. * active: bool|null,
  83. * activity: ?mixed,
  84. * author: ?mixed,
  85. * background-jobs: ?mixed,
  86. * bugs: ?mixed,
  87. * category: ?mixed,
  88. * collaboration: ?mixed,
  89. * commands: ?mixed,
  90. * default_enable: ?mixed,
  91. * dependencies: ?mixed,
  92. * description: string,
  93. * discussion: ?mixed,
  94. * documentation: ?mixed,
  95. * groups: ?mixed,
  96. * id: string,
  97. * info: ?mixed,
  98. * internal: bool|null,
  99. * level: int|null,
  100. * licence: ?mixed,
  101. * name: string,
  102. * namespace: ?mixed,
  103. * navigations: ?mixed,
  104. * preview: ?mixed,
  105. * previewAsIcon: bool|null,
  106. * public: ?mixed,
  107. * remote: ?mixed,
  108. * removable: bool|null,
  109. * repair-steps: ?mixed,
  110. * repository: ?mixed,
  111. * sabre: ?mixed,
  112. * screenshot: ?mixed,
  113. * settings: ?mixed,
  114. * summary: string,
  115. * trash: ?mixed,
  116. * two-factor-providers: ?mixed,
  117. * types: ?mixed,
  118. * version: string,
  119. * versions: ?mixed,
  120. * website: ?mixed,
  121. * }
  122. *
  123. * @psalm-type Provisioning_APIGroupDetails = array{
  124. * id: string,
  125. * displayname: string,
  126. * usercount: bool|int,
  127. * disabled: bool|int,
  128. * canAdd: bool,
  129. * canRemove: bool,
  130. * }
  131. */
  132. class ResponseDefinitions {
  133. }