1
0

ResponseDefinitions.php 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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\Provisioning_API;
  8. /**
  9. * @psalm-type Provisioning_APIUserDetailsQuota = array{
  10. * free?: float|int,
  11. * quota?: float|int|string,
  12. * relative?: float|int,
  13. * total?: float|int,
  14. * used?: float|int,
  15. * }
  16. *
  17. * @psalm-type Provisioning_APIUserDetailsScope = 'v2-private'|'v2-local'|'v2-federated'|'v2-published'|'private'|'contacts'|'public'
  18. *
  19. * @psalm-type Provisioning_APIUserDetails = array{
  20. * additional_mail: list<string>,
  21. * additional_mailScope?: list<Provisioning_APIUserDetailsScope>,
  22. * address: string,
  23. * addressScope?: Provisioning_APIUserDetailsScope,
  24. * avatarScope?: Provisioning_APIUserDetailsScope,
  25. * backend: string,
  26. * backendCapabilities: array{
  27. * setDisplayName: bool,
  28. * setPassword: bool
  29. * },
  30. * biography: string,
  31. * biographyScope?: Provisioning_APIUserDetailsScope,
  32. * display-name: string,
  33. * displayname: string,
  34. * displaynameScope?: Provisioning_APIUserDetailsScope,
  35. * email: ?string,
  36. * emailScope?: Provisioning_APIUserDetailsScope,
  37. * enabled?: bool,
  38. * fediverse: string,
  39. * fediverseScope?: Provisioning_APIUserDetailsScope,
  40. * groups: list<string>,
  41. * headline: string,
  42. * headlineScope?: Provisioning_APIUserDetailsScope,
  43. * id: string,
  44. * language: string,
  45. * lastLogin: int,
  46. * locale: string,
  47. * manager: string,
  48. * notify_email: ?string,
  49. * organisation: string,
  50. * organisationScope?: Provisioning_APIUserDetailsScope,
  51. * phone: string,
  52. * phoneScope?: Provisioning_APIUserDetailsScope,
  53. * profile_enabled: string,
  54. * profile_enabledScope?: Provisioning_APIUserDetailsScope,
  55. * pronouns: string,
  56. * pronounsScope?: Provisioning_APIUserDetailsScope,
  57. * quota: Provisioning_APIUserDetailsQuota,
  58. * role: string,
  59. * roleScope?: Provisioning_APIUserDetailsScope,
  60. * storageLocation?: string,
  61. * subadmin: list<string>,
  62. * twitter: string,
  63. * twitterScope?: Provisioning_APIUserDetailsScope,
  64. * website: string,
  65. * websiteScope?: Provisioning_APIUserDetailsScope,
  66. * }
  67. *
  68. * @psalm-type Provisioning_APIGroupDetails = array{
  69. * id: string,
  70. * displayname: string,
  71. * usercount: bool|int,
  72. * disabled: bool|int,
  73. * canAdd: bool,
  74. * canRemove: bool,
  75. * }
  76. */
  77. class ResponseDefinitions {
  78. }