Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Back-end changes
Added APIs
^^^^^^^^^^

- New ``OCP\ContextChat`` API. See :ref:`context_chat` for details.
- New task processing task type ``OCP\TaskProcessing\TextToSpeech`` to convert text to speech.
- New interface ``\OCP\Share\IShareProviderSupportsAllSharesInFolder`` extending ``\OCP\Share\IShareProvider`` to add the method ``\OCP\Share\IShareProviderSupportsAllSharesInFolder::getAllSharesInFolder`` used for querying all shares in a folder without filtering by user.
- New method ``\OCP\IUser::canChangeEmail`` allowing to check if the user backend allows the user to change their email address.
Expand Down
8 changes: 6 additions & 2 deletions developer_manual/digging_deeper/context_chat.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ To add content and register your provider implementation you will need to use th

The ``IContentManager`` class has the following methods:

* ``registerContentProvider(string $providerClass)``
* ``isContextChatAvailable()``: Returns ``true`` if the Context Chat app is enabled, ``false`` otherwise.
* ``registerContentProvider(string $providerClass)``: Register a new content provider.
* ``submitContent(string $appId, array $items)``: Providers can use this to submit content for indexing in Context Chat.
* ``updateAccess(string $appId, string $providerId, string $itemId, string $op, array $userIds)``: Update the access rights for a content item. Use ``\OCP\ContextChat\Type\UpdateAccessOp`` constants for the ``$op`` value.
* ``updateAccessProvider(string $appId, string $providerId, string $op, array $userIds)``: Update the access rights for all content items from a provider. Use ``\OCP\ContextChat\Type\UpdateAccessOp`` constants for the ``$op`` value.
Expand Down Expand Up @@ -115,7 +116,10 @@ if you want to trigger an initial import of content items.
Submitting ContentItem data
^^^^^^^^^^^^^^^^^^^^^^^^^^^

To submit content, wrap it in an ``\OCP\ContextChat\ContentItem`` object:
Before submitting, you should check that the Context Chat app is enabled first
by calling the ``isContextChatAvailable()`` method.

Then, to submit content, wrap it in a list of ``\OCP\ContextChat\ContentItem`` objects:

.. code-block:: php

Expand Down