0
0
mirror of https://github.com/nextcloud/server.git synced 2024-09-18 18:47:24 +00:00
nextcloud_server/apps/webhook_listeners/lib/ResponseDefinitions.php
Côme Chilliet 44d707c97b
feat(webhooks): Add support for a userid filter
This allows to register a userId to filter on along with the webhooks.
This webhook will then only be triggered if the given userId is the one
in session. This is more efficient than filtering by user in the event
filter because the listener is not even registered if the user id does
not match.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-07-02 11:24:33 +02:00

28 lines
579 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\WebhookListeners;
/**
* @psalm-type WebhookListenersWebhookInfo = array{
* id: string,
* userId: string,
* httpMethod: string,
* uri: string,
* event?: string,
* eventFilter?: array<string,mixed>,
* userIdFilter?: string,
* headers?: array<string,string>,
* authMethod: string,
* authData?: array<string,mixed>,
* }
*/
class ResponseDefinitions {
}