mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
chore: deprecate old AI APIs
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
87dc0614d7
commit
397b1d1654
39 changed files with 39 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ use OCP\Files\File;
|
|||
|
||||
/**
|
||||
* @since 27.0.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
abstract class AbstractTranscriptionEvent extends Event {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ use OCP\Files\File;
|
|||
/**
|
||||
* This Event is emitted if a transcription of a media file using a Speech-To-Text provider failed
|
||||
* @since 27.0.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
class TranscriptionFailedEvent extends AbstractTranscriptionEvent {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ use OCP\Files\File;
|
|||
/**
|
||||
* This Event is emitted when a transcription of a media file happened successfully
|
||||
* @since 27.0.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
class TranscriptionSuccessfulEvent extends AbstractTranscriptionEvent {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ use RuntimeException;
|
|||
|
||||
/**
|
||||
* @since 27.0.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
interface ISpeechToTextManager {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ use RuntimeException;
|
|||
|
||||
/**
|
||||
* @since 27.0.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
interface ISpeechToTextProvider {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ namespace OCP\SpeechToText;
|
|||
|
||||
/**
|
||||
* @since 28.0.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
interface ISpeechToTextProviderWithId extends ISpeechToTextProvider {
|
||||
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ namespace OCP\SpeechToText;
|
|||
|
||||
/**
|
||||
* @since 29.0.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
interface ISpeechToTextProviderWithUserId extends ISpeechToTextProvider {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ use OCP\TextProcessing\Task;
|
|||
|
||||
/**
|
||||
* @since 27.1.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
abstract class AbstractTextProcessingEvent extends Event {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ use OCP\TextProcessing\Task;
|
|||
|
||||
/**
|
||||
* @since 27.1.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
class TaskFailedEvent extends AbstractTextProcessingEvent {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ namespace OCP\TextProcessing\Events;
|
|||
|
||||
/**
|
||||
* @since 27.1.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
class TaskSuccessfulEvent extends AbstractTextProcessingEvent {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ namespace OCP\TextProcessing\Exception;
|
|||
/**
|
||||
* Exception thrown when a task failed
|
||||
* @since 28.0.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
class TaskFailureException extends \RuntimeException {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ use OCP\L10N\IFactory;
|
|||
/**
|
||||
* This is the text processing task type for free prompting
|
||||
* @since 27.1.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
class FreePromptTaskType implements ITaskType {
|
||||
private IL10N $l;
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ use OCP\L10N\IFactory;
|
|||
/**
|
||||
* This is the text processing task type for creating headline
|
||||
* @since 27.1.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
class HeadlineTaskType implements ITaskType {
|
||||
private IL10N $l;
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ use RuntimeException;
|
|||
* API surface for apps interacting with and making use of LanguageModel providers
|
||||
* without known which providers are installed
|
||||
* @since 27.1.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
interface IManager {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ use RuntimeException;
|
|||
* implement a text processing provider
|
||||
* @psalm-template-covariant T of ITaskType
|
||||
* @since 27.1.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
interface IProvider {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ namespace OCP\TextProcessing;
|
|||
* @since 28.0.0
|
||||
* @template T of ITaskType
|
||||
* @template-extends IProvider<T>
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
interface IProviderWithExpectedRuntime extends IProvider {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ namespace OCP\TextProcessing;
|
|||
* @since 28.0.0
|
||||
* @extends IProvider<T>
|
||||
* @template T of ITaskType
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
interface IProviderWithId extends IProvider {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ namespace OCP\TextProcessing;
|
|||
* @since 28.0.0
|
||||
* @template T of ITaskType
|
||||
* @template-extends IProvider<T>
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
interface IProviderWithUserId extends IProvider {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ namespace OCP\TextProcessing;
|
|||
* This is a task type interface that is implemented by text processing
|
||||
* task types
|
||||
* @since 27.1.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
interface ITaskType {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ use OCP\L10N\IFactory;
|
|||
/**
|
||||
* This is the text processing task type for summaries
|
||||
* @since 27.1.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
class SummaryTaskType implements ITaskType {
|
||||
private IL10N $l;
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ namespace OCP\TextProcessing;
|
|||
* This is a text processing task
|
||||
* @since 27.1.0
|
||||
* @psalm-template-covariant T of ITaskType
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
final class Task implements \JsonSerializable {
|
||||
protected ?int $id = null;
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ use OCP\L10N\IFactory;
|
|||
/**
|
||||
* This is the text processing task type for topics extraction
|
||||
* @since 27.1.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
class TopicsTaskType implements ITaskType {
|
||||
private IL10N $l;
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ use OCP\TextToImage\Task;
|
|||
|
||||
/**
|
||||
* @since 28.0.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
abstract class AbstractTextToImageEvent extends Event {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ use OCP\TextToImage\Task;
|
|||
|
||||
/**
|
||||
* @since 28.0.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
class TaskFailedEvent extends AbstractTextToImageEvent {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ namespace OCP\TextToImage\Events;
|
|||
|
||||
/**
|
||||
* @since 28.0.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
class TaskSuccessfulEvent extends AbstractTextToImageEvent {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ namespace OCP\TextToImage\Exception;
|
|||
|
||||
/**
|
||||
* @since 28.0.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
class TaskFailureException extends TextToImageException {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ namespace OCP\TextToImage\Exception;
|
|||
|
||||
/**
|
||||
* @since 28.0.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
class TaskNotFoundException extends TextToImageException {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ namespace OCP\TextToImage\Exception;
|
|||
|
||||
/**
|
||||
* @since 28.0.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
class TextToImageException extends \Exception {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ use RuntimeException;
|
|||
* API surface for apps interacting with and making use of TextToImage providers
|
||||
* without knowing which providers are installed
|
||||
* @since 28.0.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
interface IManager {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ use RuntimeException;
|
|||
* This is the interface that is implemented by apps that
|
||||
* implement a text to image provider
|
||||
* @since 28.0.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
interface IProvider {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ namespace OCP\TextToImage;
|
|||
|
||||
/**
|
||||
* @since 29.0.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
interface IProviderWithUserId extends IProvider {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ use OCP\Image;
|
|||
* This is a text to image task
|
||||
*
|
||||
* @since 28.0.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
final class Task implements \JsonSerializable {
|
||||
protected ?int $id = null;
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ namespace OCP\Translation;
|
|||
|
||||
/**
|
||||
* @since 27.0.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
class CouldNotTranslateException extends \RuntimeException {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ namespace OCP\Translation;
|
|||
|
||||
/**
|
||||
* @since 26.0.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
interface IDetectLanguageProvider {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ use OCP\PreConditionNotMetException;
|
|||
|
||||
/**
|
||||
* @since 26.0.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
interface ITranslationManager {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ use RuntimeException;
|
|||
|
||||
/**
|
||||
* @since 26.0.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
interface ITranslationProvider {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ namespace OCP\Translation;
|
|||
|
||||
/**
|
||||
* @since 29.0.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
interface ITranslationProviderWithId extends ITranslationProvider {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ namespace OCP\Translation;
|
|||
|
||||
/**
|
||||
* @since 29.0.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
interface ITranslationProviderWithUserId extends ITranslationProvider {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ use JsonSerializable;
|
|||
|
||||
/**
|
||||
* @since 26.0.0
|
||||
* @deprecated 30.0.0
|
||||
*/
|
||||
class LanguageTuple implements JsonSerializable {
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue