61 lines
1.0 KiB
PHP
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',
|
|
],
|
|
],
|
|
];
|
|
}
|
|
}
|