diff options
Diffstat (limited to 'lib/public/ContextChat/IContentProvider.php')
-rw-r--r-- | lib/public/ContextChat/IContentProvider.php | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/lib/public/ContextChat/IContentProvider.php b/lib/public/ContextChat/IContentProvider.php new file mode 100644 index 00000000000..b0c736e3c88 --- /dev/null +++ b/lib/public/ContextChat/IContentProvider.php @@ -0,0 +1,49 @@ +<?php + +declare(strict_types=1); + +/** + * SPDX-FileCopyrightText: 2024-2025 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +namespace OCP\ContextChat; + +/** + * This interface defines methods to implement a content provider + * @since 32.0.0 + */ +interface IContentProvider { + /** + * The ID of the provider + * + * @return string + * @since 32.0.0 + */ + public function getId(): string; + + /** + * The ID of the app making the provider avaialble + * + * @return string + * @since 32.0.0 + */ + public function getAppId(): string; + + /** + * The absolute URL to the content item + * + * @param string $id + * @return string + * @since 32.0.0 + */ + public function getItemUrl(string $id): string; + + /** + * Starts the initial import of content items into context chat + * + * @return void + * @since 32.0.0 + */ + public function triggerInitialImport(): void; +} |