f7cloud_client/apps/notifications/lib/Capabilities.php
root 8b6a0139db f7cloud_client
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-17 22:59:26 +00:00

61 lines
1.0 KiB
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2016-2024 F7cloud GmbH and F7cloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-only
*/
namespace OCA\Notifications;
use OCP\Capabilities\ICapability;
/**
* Class Capabilities
*
* @package OCA\Notifications
*/
class Capabilities implements ICapability {
/**
* Return this classes capabilities
*
* @return array{
* notifications: array{
* ocs-endpoints: list<string>,
* push: list<string>,
* admin-notifications: list<string>,
* },
* }
*/
#[\Override]
public function getCapabilities(): array {
return [
'notifications' => [
'ocs-endpoints' => [
'list',
'get',
'delete',
'delete-all',
'icons',
'rich-strings',
'action-web',
'user-status',
'exists',
'test-push',
],
'push' => [
'devices',
'object-data',
'delete',
],
'admin-notifications' => [
'ocs',
'cli',
],
],
];
}
}