UPSTREAM BASELINE: nextcloud/spreed v22.0.12 (без изменений)
Type checking / changes (push) Has been cancelled
Type checking / test (push) Has been cancelled
Type checking / typescript-summary (push) Has been cancelled
Node tests / changes (push) Has been cancelled
Node tests / test (push) Has been cancelled
Node tests / test-summary (push) Has been cancelled
Type checking / changes (push) Has been cancelled
Type checking / test (push) Has been cancelled
Type checking / typescript-summary (push) Has been cancelled
Node tests / changes (push) Has been cancelled
Node tests / test (push) Has been cancelled
Node tests / test-summary (push) Has been cancelled
Источник: https://github.com/nextcloud/spreed/archive/refs/tags/v22.0.12.tar.gz С этого коммита ветка официального Nextcloud Talk отрезана (решение владельца 2026-07-06). Все дальнейшие изменения — только наши; версии релизов: 22.0.12-f7.N.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace GuzzleHttp\Exception;
|
||||
|
||||
class ClientException extends \RuntimeException {
|
||||
public function getResponse() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace GuzzleHttp\Exception;
|
||||
|
||||
class ConnectException extends \RuntimeException {
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace GuzzleHttp\Exception;
|
||||
|
||||
class ServerException extends \RuntimeException {
|
||||
|
||||
public function getResponse() {
|
||||
}
|
||||
public function hasResponse(): bool {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
namespace OC\Comments {
|
||||
class Comment implements \OCP\Comments\IComment {
|
||||
public function __construct(?array $data = null) {
|
||||
}
|
||||
public function setMessage($message, $maxLength = self::MAX_MESSAGE_LENGTH) {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,154 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
namespace OC\Comments;
|
||||
|
||||
use OCP\Comments\IComment;
|
||||
use OCP\IDBConnection;
|
||||
use OCP\IUser;
|
||||
|
||||
class Manager implements \OCP\Comments\ICommentsManager {
|
||||
/** @var IDBConnection */
|
||||
protected $dbConn;
|
||||
|
||||
protected function normalizeDatabaseData(array $data): array {
|
||||
}
|
||||
|
||||
protected function cache(IComment $comment): void {
|
||||
}
|
||||
|
||||
public function get($id) {
|
||||
// TODO: Implement get() method.
|
||||
}
|
||||
|
||||
public function getTree($id, $limit = 0, $offset = 0) {
|
||||
// TODO: Implement getTree() method.
|
||||
}
|
||||
|
||||
public function getForObject($objectType, $objectId, $limit = 0, $offset = 0, ?\DateTime $notOlderThan = null) {
|
||||
// TODO: Implement getForObject() method.
|
||||
}
|
||||
|
||||
public function getForObjectSince(string $objectType, string $objectId, int $lastKnownCommentId, string $sortDirection = 'asc', int $limit = 30, bool $includeLastKnown = false): array {
|
||||
// TODO: Implement getForObjectSince() method.
|
||||
}
|
||||
|
||||
public function getCommentsWithVerbForObjectSinceComment(string $objectType, string $objectId, array $verbs, int $lastKnownCommentId, string $sortDirection = 'asc', int $limit = 30, bool $includeLastKnown = false): array {
|
||||
// TODO: Implement getCommentsWithVerbForObjectSinceComment() method.
|
||||
}
|
||||
|
||||
public function search(string $search, string $objectType, string $objectId, string $verb, int $offset, int $limit = 50): array {
|
||||
// TODO: Implement search() method.
|
||||
}
|
||||
|
||||
public function searchForObjects(string $search, string $objectType, array $objectIds, string $verb, int $offset, int $limit = 50): array {
|
||||
// TODO: Implement searchForObjects() method.
|
||||
}
|
||||
|
||||
public function getNumberOfCommentsForObject($objectType, $objectId, ?\DateTime $notOlderThan = null, $verb = '') {
|
||||
// TODO: Implement getNumberOfCommentsForObject() method.
|
||||
}
|
||||
|
||||
public function getNumberOfCommentsForObjects(string $objectType, array $objectIds, ?\DateTime $notOlderThan = null, string $verb = ''): array {
|
||||
// TODO: Implement getNumberOfCommentsForObjects() method.
|
||||
}
|
||||
|
||||
public function getNumberOfUnreadCommentsForObjects(string $objectType, array $objectIds, IUser $user, $verb = ''): array {
|
||||
// TODO: Implement getNumberOfUnreadCommentsForObjects() method.
|
||||
}
|
||||
|
||||
public function getNumberOfCommentsForObjectSinceComment(string $objectType, string $objectId, int $lastRead, string $verb = ''): int {
|
||||
// TODO: Implement getNumberOfCommentsForObjectSinceComment() method.
|
||||
}
|
||||
|
||||
public function getNumberOfCommentsWithVerbsForObjectSinceComment(string $objectType, string $objectId, int $lastRead, array $verbs): int {
|
||||
// TODO: Implement getNumberOfCommentsWithVerbsForObjectSinceComment() method.
|
||||
}
|
||||
|
||||
public function getLastCommentBeforeDate(string $objectType, string $objectId, \DateTime $beforeDate, string $verb = ''): int {
|
||||
// TODO: Implement getLastCommentBeforeDate() method.
|
||||
}
|
||||
|
||||
public function getLastCommentDateByActor(string $objectType, string $objectId, string $verb, string $actorType, array $actors): array {
|
||||
// TODO: Implement getLastCommentDateByActor() method.
|
||||
}
|
||||
|
||||
public function getNumberOfUnreadCommentsForFolder($folderId, IUser $user) {
|
||||
// TODO: Implement getNumberOfUnreadCommentsForFolder() method.
|
||||
}
|
||||
|
||||
public function create($actorType, $actorId, $objectType, $objectId) :IComment {
|
||||
// TODO: Implement create() method.
|
||||
}
|
||||
|
||||
public function delete($id) {
|
||||
// TODO: Implement delete() method.
|
||||
}
|
||||
|
||||
public function getReactionComment(int $parentId, string $actorType, string $actorId, string $reaction): IComment {
|
||||
// TODO: Implement getReactionComment() method.
|
||||
}
|
||||
|
||||
public function retrieveAllReactions(int $parentId): array {
|
||||
// TODO: Implement retrieveAllReactions() method.
|
||||
}
|
||||
|
||||
public function retrieveAllReactionsWithSpecificReaction(int $parentId, string $reaction): array {
|
||||
// TODO: Implement retrieveAllReactionsWithSpecificReaction() method.
|
||||
}
|
||||
|
||||
public function supportReactions(): bool {
|
||||
// TODO: Implement supportReactions() method.
|
||||
}
|
||||
|
||||
public function save(IComment $comment) {
|
||||
// TODO: Implement save() method.
|
||||
}
|
||||
|
||||
public function deleteReferencesOfActor($actorType, $actorId) {
|
||||
// TODO: Implement deleteReferencesOfActor() method.
|
||||
}
|
||||
|
||||
public function deleteCommentsAtObject($objectType, $objectId) {
|
||||
// TODO: Implement deleteCommentsAtObject() method.
|
||||
}
|
||||
|
||||
public function setReadMark($objectType, $objectId, \DateTime $dateTime, IUser $user) {
|
||||
// TODO: Implement setReadMark() method.
|
||||
}
|
||||
|
||||
public function getReadMark($objectType, $objectId, IUser $user) {
|
||||
// TODO: Implement getReadMark() method.
|
||||
}
|
||||
|
||||
public function deleteReadMarksFromUser(IUser $user) {
|
||||
// TODO: Implement deleteReadMarksFromUser() method.
|
||||
}
|
||||
|
||||
public function deleteReadMarksOnObject($objectType, $objectId) {
|
||||
// TODO: Implement deleteReadMarksOnObject() method.
|
||||
}
|
||||
|
||||
public function registerEventHandler(\Closure $closure) {
|
||||
// TODO: Implement registerEventHandler() method.
|
||||
}
|
||||
|
||||
public function registerDisplayNameResolver($type, \Closure $closure) {
|
||||
// TODO: Implement registerDisplayNameResolver() method.
|
||||
}
|
||||
|
||||
public function resolveDisplayName($type, $id) {
|
||||
// TODO: Implement resolveDisplayName() method.
|
||||
}
|
||||
|
||||
public function load(): void {
|
||||
// TODO: Implement load() method.
|
||||
}
|
||||
|
||||
public function deleteCommentsExpiredAtObject(string $objectType, string $objectId = ''): bool {
|
||||
// TODO: Implement deleteCommentsExpiredAtObject() method.
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
namespace OC\Core\Command {
|
||||
|
||||
use Stecman\Component\Symfony\Console\BashCompletion\CompletionContext;
|
||||
use Symfony\Component\Console\Application;
|
||||
use Symfony\Component\Console\Input\InputDefinition;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
|
||||
class Base {
|
||||
public const OUTPUT_FORMAT_PLAIN = 'plain';
|
||||
public const OUTPUT_FORMAT_JSON = 'json';
|
||||
public const OUTPUT_FORMAT_JSON_PRETTY = 'json_pretty';
|
||||
|
||||
protected string $defaultOutputFormat = self::OUTPUT_FORMAT_PLAIN;
|
||||
|
||||
public function __construct(?string $name = null) {
|
||||
}
|
||||
|
||||
protected function configure() {
|
||||
}
|
||||
|
||||
public function setName(string $name) {
|
||||
}
|
||||
|
||||
public function getApplication(): ?Application {
|
||||
}
|
||||
|
||||
public function getDefinition(): InputDefinition {
|
||||
}
|
||||
|
||||
protected function writeArrayInOutputFormat(InputInterface $input, OutputInterface $output, array $items, string $prefix = ' - '): void {
|
||||
}
|
||||
|
||||
protected function writeTableInOutputFormat(InputInterface $input, OutputInterface $output, array $items): void {
|
||||
}
|
||||
|
||||
protected function writeMixedInOutputFormat(InputInterface $input, OutputInterface $output, $item) {
|
||||
}
|
||||
|
||||
protected function valueToString($value, bool $returnNull = true): ?string {
|
||||
}
|
||||
|
||||
protected function abortIfInterrupted() {
|
||||
}
|
||||
|
||||
protected function cancelOperation() {
|
||||
}
|
||||
|
||||
public function run(InputInterface $input, OutputInterface $output) {
|
||||
}
|
||||
|
||||
public function completeOptionValues($optionName, CompletionContext $context) {
|
||||
}
|
||||
|
||||
public function completeArgumentValues($argumentName, CompletionContext $context) {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
namespace OC\Hooks {
|
||||
class Emitter {
|
||||
public function emit(string $class, string $value, array $option) {
|
||||
}
|
||||
/** Closure $closure */
|
||||
public function listen(string $class, string $value, $closure) {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
namespace OC\Http\Client;
|
||||
|
||||
use OCP\Http\Client\IResponse;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
|
||||
class Response implements IResponse {
|
||||
public function __construct(ResponseInterface $response, $stream = false) {
|
||||
}
|
||||
|
||||
public function getBody() {
|
||||
}
|
||||
|
||||
public function getStatusCode(): int {
|
||||
}
|
||||
|
||||
public function getHeader(string $key): string {
|
||||
}
|
||||
|
||||
public function getHeaders(): array {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
namespace OC\Memcache {
|
||||
|
||||
use OCP\IMemcache;
|
||||
|
||||
class NullCache implements IMemcache {
|
||||
public function add($key, $value, $ttl = 0) {
|
||||
}
|
||||
|
||||
public function inc($key, $step = 1) {
|
||||
}
|
||||
|
||||
public function dec($key, $step = 1) {
|
||||
}
|
||||
|
||||
public function cas($key, $old, $new) {
|
||||
}
|
||||
|
||||
public function cad($key, $old) {
|
||||
}
|
||||
|
||||
public function ncad(string $key, mixed $old): bool {
|
||||
}
|
||||
}
|
||||
|
||||
class ArrayCache implements IMemcache {
|
||||
public function add($key, $value, $ttl = 0) {
|
||||
}
|
||||
|
||||
public function inc($key, $step = 1) {
|
||||
}
|
||||
|
||||
public function dec($key, $step = 1) {
|
||||
}
|
||||
|
||||
public function cas($key, $old, $new) {
|
||||
}
|
||||
|
||||
public function cad($key, $old) {
|
||||
}
|
||||
|
||||
public function ncad(string $key, mixed $old): bool {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
namespace OCA\Circles\Events {
|
||||
|
||||
use OCA\Circles\Model\Circle;
|
||||
use OCA\Circles\Model\Member;
|
||||
use OCP\EventDispatcher\Event;
|
||||
|
||||
class AddingCircleMemberEvent extends Event {
|
||||
public function getCircle(): Circle {
|
||||
}
|
||||
public function getMember(): Member {
|
||||
}
|
||||
}
|
||||
|
||||
class CircleDestroyedEvent extends Event {
|
||||
public function getCircle(): Circle {
|
||||
}
|
||||
}
|
||||
|
||||
class RemovingCircleMemberEvent extends Event {
|
||||
public function getCircle(): Circle {
|
||||
}
|
||||
public function getMember(): Member {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
namespace OCA\DAV\CalDAV {
|
||||
|
||||
class TimezoneService {
|
||||
public function getUserTimezone(string $userId): ?string {
|
||||
}
|
||||
|
||||
public function getDefaultTimezone(): string {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
namespace OCA\Federation;
|
||||
|
||||
class TrustedServers {
|
||||
/** after a user list was exchanged at least once successfully */
|
||||
public const STATUS_OK = 1;
|
||||
/** waiting for shared secret or initial user list exchange */
|
||||
public const STATUS_PENDING = 2;
|
||||
/** something went wrong, misconfigured server, software bug,... user interaction needed */
|
||||
public const STATUS_FAILURE = 3;
|
||||
/** remote server revoked access */
|
||||
public const STATUS_ACCESS_REVOKED = 4;
|
||||
public function __construct(\OCA\Federation\DbHandler $dbHandler, \OCP\Http\Client\IClientService $httpClientService, \Psr\Log\LoggerInterface $logger, \OCP\BackgroundJob\IJobList $jobList, \OCP\Security\ISecureRandom $secureRandom, \OCP\IConfig $config, \OCP\EventDispatcher\IEventDispatcher $dispatcher, \OCP\AppFramework\Utility\ITimeFactory $timeFactory) {
|
||||
}
|
||||
/**
|
||||
* Add server to the list of trusted servers
|
||||
*/
|
||||
public function addServer(string $url) : int {
|
||||
}
|
||||
/**
|
||||
* Get shared secret for the given server
|
||||
*/
|
||||
public function getSharedSecret(string $url) : string {
|
||||
}
|
||||
/**
|
||||
* Add shared secret for the given server
|
||||
*/
|
||||
public function addSharedSecret(string $url, string $sharedSecret) : void {
|
||||
}
|
||||
/**
|
||||
* Remove server from the list of trusted servers
|
||||
*/
|
||||
public function removeServer(int $id) : void {
|
||||
}
|
||||
/**
|
||||
* Get all trusted servers
|
||||
*
|
||||
* @return list<array{id: int, url: string, url_hash: string, shared_secret: ?string, status: int, sync_token: ?string}>
|
||||
* @throws Exception
|
||||
*/
|
||||
public function getServers() {
|
||||
}
|
||||
/**
|
||||
* Check if given server is a trusted Nextcloud server
|
||||
*/
|
||||
public function isTrustedServer(string $url) : bool {
|
||||
}
|
||||
/**
|
||||
* Set server status
|
||||
*/
|
||||
public function setServerStatus(string $url, int $status) : void {
|
||||
}
|
||||
/**
|
||||
* Get server status
|
||||
*/
|
||||
public function getServerStatus(string $url) : int {
|
||||
}
|
||||
/**
|
||||
* Check if URL point to a ownCloud/Nextcloud server
|
||||
*/
|
||||
public function isNextcloudServer(string $url) : bool {
|
||||
}
|
||||
/**
|
||||
* Check if ownCloud/Nextcloud version is >= 9.0
|
||||
* @throws HintException
|
||||
*/
|
||||
protected function checkNextcloudVersion(string $status) : bool {
|
||||
}
|
||||
/**
|
||||
* Check if the URL contain a protocol, if not add https
|
||||
*/
|
||||
protected function updateProtocol(string $url) : string {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
namespace OCA\Files\Event {
|
||||
|
||||
use OCP\EventDispatcher\Event;
|
||||
|
||||
class LoadSidebar extends Event {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
namespace OCA\Guests {
|
||||
class UserBackend implements \OCP\IUserBackend {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
namespace OCA\Settings\SetupChecks {
|
||||
use Generator;
|
||||
|
||||
trait CheckServerResponseTrait {
|
||||
protected function serverConfigHelp(): string {
|
||||
}
|
||||
}
|
||||
|
||||
trait CheckServerResponseTrait2 {
|
||||
protected function serverConfigHelp(): string {
|
||||
}
|
||||
|
||||
protected function runHEAD(string $url, bool $ignoreSSL = true, bool $httpErrors = true): Generator {
|
||||
}
|
||||
|
||||
protected function runRequest(string $method, string $url, array $options = []): Generator {
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user