0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-02-11 03:29:29 +00:00
nextcloud_server/apps/user_status/lib/ResponseDefinitions.php
provokateurin e8e5bd6161
fix(user_status): Remove non-existent "visible" field from UserStatusPredefined
Signed-off-by: provokateurin <kate@provokateurin.de>
2024-12-18 10:52:42 +01:00

44 lines
982 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\UserStatus;
/**
* @psalm-type UserStatusClearAtTimeType = "day"|"week"
*
* @psalm-type UserStatusClearAt = array{
* type: "period"|"end-of",
* time: int|UserStatusClearAtTimeType,
* }
*
* @psalm-type UserStatusPredefined = array{
* id: string,
* icon: string,
* message: string,
* clearAt: ?UserStatusClearAt,
* }
*
* @psalm-type UserStatusType = "online"|"away"|"dnd"|"busy"|"offline"|"invisible"
*
* @psalm-type UserStatusPublic = array{
* userId: string,
* message: ?string,
* icon: ?string,
* clearAt: ?int,
* status: UserStatusType,
* }
*
* @psalm-type UserStatusPrivate = UserStatusPublic&array{
* messageId: ?string,
* messageIsPredefined: bool,
* statusIsUserDefined: bool,
* }
*/
class ResponseDefinitions {
}