2023-03-15 12:29:32 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @copyright Copyright (c) 2023 Kate Döen <kate.doeen@nextcloud.com>
|
|
|
|
|
*
|
|
|
|
|
* @author Kate Döen <kate.doeen@nextcloud.com>
|
|
|
|
|
*
|
|
|
|
|
* @license GNU AGPL version 3 or any later version
|
|
|
|
|
*
|
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU Affero General Public License as
|
|
|
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
namespace OCA\Core;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @psalm-type CoreLoginFlowV2Credentials = array{
|
|
|
|
|
* server: string,
|
|
|
|
|
* loginName: string,
|
|
|
|
|
* appPassword: string,
|
|
|
|
|
* }
|
|
|
|
|
*
|
|
|
|
|
* @psalm-type CoreLoginFlowV2 = array{
|
|
|
|
|
* poll: array{
|
|
|
|
|
* token: string,
|
|
|
|
|
* endpoint: string,
|
|
|
|
|
* },
|
|
|
|
|
* login: string,
|
|
|
|
|
* }
|
|
|
|
|
*
|
|
|
|
|
* @psalm-type CoreNavigationEntry = array{
|
|
|
|
|
* id: string,
|
|
|
|
|
* order: int|string,
|
|
|
|
|
* href: string,
|
|
|
|
|
* icon: string,
|
|
|
|
|
* type: string,
|
|
|
|
|
* name: string,
|
|
|
|
|
* active: bool,
|
|
|
|
|
* classes: string,
|
|
|
|
|
* unread: int,
|
|
|
|
|
* }
|
|
|
|
|
*
|
|
|
|
|
* @psalm-type CoreContactsAction = array{
|
|
|
|
|
* title: string,
|
|
|
|
|
* icon: string,
|
|
|
|
|
* hyperlink: string,
|
|
|
|
|
* appId: string,
|
|
|
|
|
* }
|
|
|
|
|
*
|
|
|
|
|
* @psalm-type CoreOpenGraphObject = array{
|
2023-09-14 06:26:14 -04:00
|
|
|
* id: string,
|
|
|
|
|
* name: string,
|
|
|
|
|
* description: ?string,
|
|
|
|
|
* thumb: ?string,
|
|
|
|
|
* link: string,
|
|
|
|
|
* }
|
|
|
|
|
*
|
|
|
|
|
* @psalm-type CoreResource = array{
|
2023-03-15 12:29:32 -04:00
|
|
|
* richObjectType: string,
|
|
|
|
|
* richObject: array<string, mixed>,
|
2023-09-14 06:26:14 -04:00
|
|
|
* openGraphObject: CoreOpenGraphObject,
|
2023-03-15 12:29:32 -04:00
|
|
|
* accessible: bool,
|
|
|
|
|
* }
|
|
|
|
|
*
|
|
|
|
|
* @psalm-type CoreCollection = array{
|
|
|
|
|
* id: int,
|
|
|
|
|
* name: string,
|
2023-09-14 06:26:14 -04:00
|
|
|
* resources: CoreResource[],
|
2023-03-15 12:29:32 -04:00
|
|
|
* }
|
|
|
|
|
*
|
|
|
|
|
* @psalm-type CoreReference = array{
|
|
|
|
|
* richObjectType: string,
|
|
|
|
|
* richObject: array<string, mixed>,
|
|
|
|
|
* openGraphObject: CoreOpenGraphObject,
|
|
|
|
|
* accessible: bool,
|
|
|
|
|
* }
|
|
|
|
|
*
|
|
|
|
|
* @psalm-type CoreReferenceProvider = array{
|
|
|
|
|
* id: string,
|
|
|
|
|
* title: string,
|
|
|
|
|
* icon_url: string,
|
|
|
|
|
* order: int,
|
|
|
|
|
* search_providers_ids: ?string[]
|
|
|
|
|
* }
|
|
|
|
|
*
|
|
|
|
|
* @psalm-type CoreUnifiedSearchProvider = array{
|
|
|
|
|
* id: string,
|
2023-11-06 09:32:52 -05:00
|
|
|
* appId: string,
|
2023-03-15 12:29:32 -04:00
|
|
|
* name: string,
|
2023-11-06 09:32:52 -05:00
|
|
|
* icon: string,
|
2023-03-15 12:29:32 -04:00
|
|
|
* order: int,
|
2023-11-06 09:32:52 -05:00
|
|
|
* triggers: string[],
|
|
|
|
|
* filters: array<string, string>,
|
2023-11-13 10:31:15 -05:00
|
|
|
* inAppSearch: bool,
|
2023-03-15 12:29:32 -04:00
|
|
|
* }
|
|
|
|
|
*
|
|
|
|
|
* @psalm-type CoreUnifiedSearchResultEntry = array{
|
|
|
|
|
* thumbnailUrl: string,
|
|
|
|
|
* title: string,
|
|
|
|
|
* subline: string,
|
|
|
|
|
* resourceUrl: string,
|
|
|
|
|
* icon: string,
|
|
|
|
|
* rounded: bool,
|
|
|
|
|
* attributes: string[],
|
|
|
|
|
* }
|
|
|
|
|
*
|
|
|
|
|
* @psalm-type CoreUnifiedSearchResult = array{
|
|
|
|
|
* name: string,
|
|
|
|
|
* isPaginated: bool,
|
|
|
|
|
* entries: CoreUnifiedSearchResultEntry[],
|
|
|
|
|
* cursor: int|string|null,
|
|
|
|
|
* }
|
|
|
|
|
*
|
|
|
|
|
* @psalm-type CoreAutocompleteResult = array{
|
|
|
|
|
* id: string,
|
|
|
|
|
* label: string,
|
|
|
|
|
* icon: string,
|
|
|
|
|
* source: string,
|
2023-09-27 10:38:21 -04:00
|
|
|
* status: array{
|
|
|
|
|
* status: string,
|
|
|
|
|
* message: ?string,
|
|
|
|
|
* icon: ?string,
|
|
|
|
|
* clearAt: ?int,
|
|
|
|
|
* }|string,
|
2023-03-15 12:29:32 -04:00
|
|
|
* subline: string,
|
|
|
|
|
* shareWithDisplayNameUnique: string,
|
|
|
|
|
* }
|
2023-07-31 05:58:54 -04:00
|
|
|
*
|
|
|
|
|
* @psalm-type CoreTextProcessingTask = array{
|
|
|
|
|
* id: ?int,
|
|
|
|
|
* type: string,
|
|
|
|
|
* status: 0|1|2|3|4,
|
|
|
|
|
* userId: ?string,
|
|
|
|
|
* appId: string,
|
|
|
|
|
* input: string,
|
|
|
|
|
* output: ?string,
|
|
|
|
|
* identifier: string,
|
2023-11-03 11:22:54 -04:00
|
|
|
* completionExpectedAt: ?int
|
2023-07-31 05:58:54 -04:00
|
|
|
* }
|
2023-09-07 06:37:09 -04:00
|
|
|
*
|
|
|
|
|
* @psalm-type CoreTextToImageTask = array{
|
|
|
|
|
* id: ?int,
|
|
|
|
|
* status: 0|1|2|3|4,
|
|
|
|
|
* userId: ?string,
|
|
|
|
|
* appId: string,
|
|
|
|
|
* input: string,
|
2023-10-18 07:33:04 -04:00
|
|
|
* identifier: ?string,
|
2023-10-20 07:54:36 -04:00
|
|
|
* numberOfImages: int,
|
2023-10-22 06:20:29 -04:00
|
|
|
* completionExpectedAt: ?int,
|
2023-09-07 06:37:09 -04:00
|
|
|
* }
|
2024-02-26 10:30:16 -05:00
|
|
|
*
|
|
|
|
|
* @psalm-type CoreTeam = array{
|
|
|
|
|
* id: string,
|
|
|
|
|
* name: string,
|
|
|
|
|
* icon: string,
|
|
|
|
|
* }
|
|
|
|
|
*
|
|
|
|
|
* @psalm-type CoreTeamResource = array{
|
|
|
|
|
* id: int,
|
|
|
|
|
* label: string,
|
|
|
|
|
* url: string,
|
|
|
|
|
* iconSvg: ?string,
|
|
|
|
|
* iconURL: ?string,
|
|
|
|
|
* iconEmoji: ?string,
|
|
|
|
|
* }
|
2024-04-30 11:02:38 -04:00
|
|
|
*
|
|
|
|
|
* @psalm-type CoreTaskProcessingShape = array{
|
|
|
|
|
* name: string,
|
|
|
|
|
* description: string,
|
2024-05-08 03:20:25 -04:00
|
|
|
* type: int,
|
|
|
|
|
* mandatory: bool,
|
2024-04-30 11:02:38 -04:00
|
|
|
* }
|
|
|
|
|
*
|
|
|
|
|
* @psalm-type CoreTaskProcessingTaskType = array{
|
|
|
|
|
* name: string,
|
|
|
|
|
* description: string,
|
|
|
|
|
* inputShape: CoreTaskProcessingShape[],
|
|
|
|
|
* outputShape: CoreTaskProcessingShape[],
|
|
|
|
|
* }
|
|
|
|
|
*
|
|
|
|
|
* @psalm-type CoreTaskProcessingTask = array{
|
2024-05-06 07:03:03 -04:00
|
|
|
* id: int,
|
2024-05-06 03:21:09 -04:00
|
|
|
* type: string,
|
2024-05-06 10:36:35 -04:00
|
|
|
* status: 'STATUS_CANCELLED'|'STATUS_FAILED'|'STATUS_SUCCESSFUL'|'STATUS_RUNNING'|'STATUS_SCHEDULED'|'STATUS_UNKNOWN',
|
2024-04-30 11:02:38 -04:00
|
|
|
* userId: ?string,
|
|
|
|
|
* appId: string,
|
2024-05-06 10:36:35 -04:00
|
|
|
* input: array<string, numeric|list<numeric>|string|list<string>>,
|
|
|
|
|
* output: ?array<string, numeric|list<numeric>|string|list<string>>,
|
2024-05-07 06:46:21 -04:00
|
|
|
* customId: ?string,
|
2024-04-30 11:02:38 -04:00
|
|
|
* completionExpectedAt: ?int,
|
|
|
|
|
* progress: ?float
|
|
|
|
|
* }
|
|
|
|
|
*
|
2023-03-15 12:29:32 -04:00
|
|
|
*/
|
|
|
|
|
class ResponseDefinitions {
|
|
|
|
|
}
|