aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/lib/ResponseDefinitions.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings/lib/ResponseDefinitions.php')
-rw-r--r--apps/settings/lib/ResponseDefinitions.php40
1 files changed, 40 insertions, 0 deletions
diff --git a/apps/settings/lib/ResponseDefinitions.php b/apps/settings/lib/ResponseDefinitions.php
new file mode 100644
index 00000000000..12adefda91f
--- /dev/null
+++ b/apps/settings/lib/ResponseDefinitions.php
@@ -0,0 +1,40 @@
+<?php
+
+declare(strict_types=1);
+
+/**
+ * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+
+namespace OCA\Settings;
+
+/**
+ * @psalm-type SettingsDeclarativeFormField = array{
+ * id: string,
+ * title: string,
+ * description?: string,
+ * type: 'text'|'password'|'email'|'tel'|'url'|'number'|'checkbox'|'multi-checkbox'|'radio'|'select'|'multi-select',
+ * placeholder?: string,
+ * label?: string,
+ * default: mixed,
+ * options?: list<string|array{name: string, value: mixed}>,
+ * value: string|int|float|bool|list<string>,
+ * sensitive?: boolean,
+ * }
+ *
+ * @psalm-type SettingsDeclarativeForm = array{
+ * id: string,
+ * priority: int,
+ * section_type: 'admin'|'personal',
+ * section_id: string,
+ * storage_type: 'internal'|'external',
+ * title: string,
+ * description?: string,
+ * doc_url?: string,
+ * app: string,
+ * fields: list<SettingsDeclarativeFormField>,
+ * }
+ */
+class ResponseDefinitions {
+}