diff options
Diffstat (limited to 'core/ResponseDefinitions.php')
-rw-r--r-- | core/ResponseDefinitions.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/core/ResponseDefinitions.php b/core/ResponseDefinitions.php index 3b344e6af99..5fb2502c388 100644 --- a/core/ResponseDefinitions.php +++ b/core/ResponseDefinitions.php @@ -202,6 +202,33 @@ namespace OC\Core; * endedAt: ?int, * } * + * @psalm-type CoreProfileAction = array{ + * id: string, + * icon: string, + * title: string, + * target: ?string, + * } + * + * @psalm-type CoreProfileFields = array{ + * userId: string, + * address?: string|null, + * biography?: string|null, + * displayname?: string|null, + * headline?: string|null, + * isUserAvatarVisible?: bool, + * organisation?: string|null, + * pronouns?: string|null, + * role?: string|null, + * actions: list<CoreProfileAction>, + * } + * + * @psalm-type CoreProfileData = CoreProfileFields&array{ + * // Timezone identifier like Europe/Berlin or America/North_Dakota/Beulah + * timezone: string, + * // Offset in seconds, negative when behind UTC, positive otherwise + * timezoneOffset: int, + * } + * */ class ResponseDefinitions { } |