1
0

ResponseDefinitions.php 982 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCA\Settings;
  8. /**
  9. * @psalm-type SettingsDeclarativeFormField = array{
  10. * id: string,
  11. * title: string,
  12. * description?: string,
  13. * type: 'text'|'password'|'email'|'tel'|'url'|'number'|'checkbox'|'multi-checkbox'|'radio'|'select'|'multi-select',
  14. * placeholder?: string,
  15. * label?: string,
  16. * default: mixed,
  17. * options?: list<string|array{name: string, value: mixed}>,
  18. * value: string|int|float|bool|list<string>,
  19. * }
  20. *
  21. * @psalm-type SettingsDeclarativeForm = array{
  22. * id: string,
  23. * priority: int,
  24. * section_type: 'admin'|'personal',
  25. * section_id: string,
  26. * storage_type: 'internal'|'external',
  27. * title: string,
  28. * description?: string,
  29. * doc_url?: string,
  30. * app: string,
  31. * fields: list<SettingsDeclarativeFormField>,
  32. * }
  33. */
  34. class ResponseDefinitions {
  35. }