Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: deprecate old AI APIs #46775

Merged
merged 1 commit into from
Jul 26, 2024
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 @@ -13,6 +13,7 @@

/**
* @since 27.0.0
* @deprecated 30.0.0
*/
abstract class AbstractTranscriptionEvent extends Event {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
/**
* 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 {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
/**
* 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 {
/**
Expand Down
1 change: 1 addition & 0 deletions lib/public/SpeechToText/ISpeechToTextManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

/**
* @since 27.0.0
* @deprecated 30.0.0
*/
interface ISpeechToTextManager {
/**
Expand Down
1 change: 1 addition & 0 deletions lib/public/SpeechToText/ISpeechToTextProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

/**
* @since 27.0.0
* @deprecated 30.0.0
*/
interface ISpeechToTextProvider {
/**
Expand Down
1 change: 1 addition & 0 deletions lib/public/SpeechToText/ISpeechToTextProviderWithId.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

/**
* @since 28.0.0
* @deprecated 30.0.0
*/
interface ISpeechToTextProviderWithId extends ISpeechToTextProvider {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

/**
* @since 29.0.0
* @deprecated 30.0.0
*/
interface ISpeechToTextProviderWithUserId extends ISpeechToTextProvider {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

/**
* @since 27.1.0
* @deprecated 30.0.0
*/
abstract class AbstractTextProcessingEvent extends Event {
/**
Expand Down
1 change: 1 addition & 0 deletions lib/public/TextProcessing/Events/TaskFailedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

/**
* @since 27.1.0
* @deprecated 30.0.0
*/
class TaskFailedEvent extends AbstractTextProcessingEvent {
/**
Expand Down
1 change: 1 addition & 0 deletions lib/public/TextProcessing/Events/TaskSuccessfulEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

/**
* @since 27.1.0
* @deprecated 30.0.0
*/
class TaskSuccessfulEvent extends AbstractTextProcessingEvent {
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
/**
* Exception thrown when a task failed
* @since 28.0.0
* @deprecated 30.0.0
*/
class TaskFailureException extends \RuntimeException {
}
1 change: 1 addition & 0 deletions lib/public/TextProcessing/FreePromptTaskType.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
/**
* 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;
Expand Down
1 change: 1 addition & 0 deletions lib/public/TextProcessing/HeadlineTaskType.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
/**
* 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;
Expand Down
1 change: 1 addition & 0 deletions lib/public/TextProcessing/IManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* 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 {
/**
Expand Down
1 change: 1 addition & 0 deletions lib/public/TextProcessing/IProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* implement a text processing provider
* @psalm-template-covariant T of ITaskType
* @since 27.1.0
* @deprecated 30.0.0
*/
interface IProvider {
/**
Expand Down
1 change: 1 addition & 0 deletions lib/public/TextProcessing/IProviderWithExpectedRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* @since 28.0.0
* @template T of ITaskType
* @template-extends IProvider<T>
* @deprecated 30.0.0
*/
interface IProviderWithExpectedRuntime extends IProvider {
/**
Expand Down
1 change: 1 addition & 0 deletions lib/public/TextProcessing/IProviderWithId.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* @since 28.0.0
* @extends IProvider<T>
* @template T of ITaskType
* @deprecated 30.0.0
*/
interface IProviderWithId extends IProvider {
/**
Expand Down
1 change: 1 addition & 0 deletions lib/public/TextProcessing/IProviderWithUserId.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* @since 28.0.0
* @template T of ITaskType
* @template-extends IProvider<T>
* @deprecated 30.0.0
*/
interface IProviderWithUserId extends IProvider {
/**
Expand Down
1 change: 1 addition & 0 deletions lib/public/TextProcessing/ITaskType.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* This is a task type interface that is implemented by text processing
* task types
* @since 27.1.0
* @deprecated 30.0.0
*/
interface ITaskType {
/**
Expand Down
1 change: 1 addition & 0 deletions lib/public/TextProcessing/SummaryTaskType.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
/**
* This is the text processing task type for summaries
* @since 27.1.0
* @deprecated 30.0.0
*/
class SummaryTaskType implements ITaskType {
private IL10N $l;
Expand Down
1 change: 1 addition & 0 deletions lib/public/TextProcessing/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* 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;
Expand Down
1 change: 1 addition & 0 deletions lib/public/TextProcessing/TopicsTaskType.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
/**
* 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;
Expand Down
1 change: 1 addition & 0 deletions lib/public/TextToImage/Events/AbstractTextToImageEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

/**
* @since 28.0.0
* @deprecated 30.0.0
*/
abstract class AbstractTextToImageEvent extends Event {
/**
Expand Down
1 change: 1 addition & 0 deletions lib/public/TextToImage/Events/TaskFailedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

/**
* @since 28.0.0
* @deprecated 30.0.0
*/
class TaskFailedEvent extends AbstractTextToImageEvent {
/**
Expand Down
1 change: 1 addition & 0 deletions lib/public/TextToImage/Events/TaskSuccessfulEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

/**
* @since 28.0.0
* @deprecated 30.0.0
*/
class TaskSuccessfulEvent extends AbstractTextToImageEvent {
}
1 change: 1 addition & 0 deletions lib/public/TextToImage/Exception/TaskFailureException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

/**
* @since 28.0.0
* @deprecated 30.0.0
*/
class TaskFailureException extends TextToImageException {
}
1 change: 1 addition & 0 deletions lib/public/TextToImage/Exception/TaskNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

/**
* @since 28.0.0
* @deprecated 30.0.0
*/
class TaskNotFoundException extends TextToImageException {
}
1 change: 1 addition & 0 deletions lib/public/TextToImage/Exception/TextToImageException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

/**
* @since 28.0.0
* @deprecated 30.0.0
*/
class TextToImageException extends \Exception {
}
1 change: 1 addition & 0 deletions lib/public/TextToImage/IManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* 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 {
/**
Expand Down
1 change: 1 addition & 0 deletions lib/public/TextToImage/IProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* 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 {
/**
Expand Down
1 change: 1 addition & 0 deletions lib/public/TextToImage/IProviderWithUserId.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

/**
* @since 29.0.0
* @deprecated 30.0.0
*/
interface IProviderWithUserId extends IProvider {
/**
Expand Down
1 change: 1 addition & 0 deletions lib/public/TextToImage/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* This is a text to image task
*
* @since 28.0.0
* @deprecated 30.0.0
*/
final class Task implements \JsonSerializable {
protected ?int $id = null;
Expand Down
1 change: 1 addition & 0 deletions lib/public/Translation/CouldNotTranslateException.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

/**
* @since 27.0.0
* @deprecated 30.0.0
*/
class CouldNotTranslateException extends \RuntimeException {
/**
Expand Down
1 change: 1 addition & 0 deletions lib/public/Translation/IDetectLanguageProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

/**
* @since 26.0.0
* @deprecated 30.0.0
*/
interface IDetectLanguageProvider {
/**
Expand Down
1 change: 1 addition & 0 deletions lib/public/Translation/ITranslationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

/**
* @since 26.0.0
* @deprecated 30.0.0
*/
interface ITranslationManager {
/**
Expand Down
1 change: 1 addition & 0 deletions lib/public/Translation/ITranslationProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

/**
* @since 26.0.0
* @deprecated 30.0.0
*/
interface ITranslationProvider {
/**
Expand Down
1 change: 1 addition & 0 deletions lib/public/Translation/ITranslationProviderWithId.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

/**
* @since 29.0.0
* @deprecated 30.0.0
*/
interface ITranslationProviderWithId extends ITranslationProvider {
/**
Expand Down
1 change: 1 addition & 0 deletions lib/public/Translation/ITranslationProviderWithUserId.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

/**
* @since 29.0.0
* @deprecated 30.0.0
*/
interface ITranslationProviderWithUserId extends ITranslationProvider {
/**
Expand Down
1 change: 1 addition & 0 deletions lib/public/Translation/LanguageTuple.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

/**
* @since 26.0.0
* @deprecated 30.0.0
*/
class LanguageTuple implements JsonSerializable {
/**
Expand Down
Loading