Browse Source
feat(recording): Recording consent API - Version 2
feat(recording): Recording consent API - Version 2
Signed-off-by: Joas Schilling <coding@schilljs.com>pull/10635/head
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
26 changed files with 533 additions and 37 deletions
-
2appinfo/info.xml
-
2appinfo/routes/routesRoomController.php
-
10docs/call.md
-
1docs/capabilities.md
-
5docs/constants.md
-
20docs/conversation.md
-
2docs/settings.md
-
12lib/Capabilities.php
-
20lib/Config.php
-
16lib/Controller/CallController.php
-
31lib/Controller/RoomController.php
-
27lib/Events/BeforeRoomModifiedEvent.php
-
27lib/Events/RoomModifiedEvent.php
-
4lib/Manager.php
-
55lib/Migration/Version18000Date20231005091416.php
-
1lib/Model/SelectHelper.php
-
1lib/ResponseDefinitions.php
-
20lib/Room.php
-
5lib/Service/RecordingService.php
-
2lib/Service/RoomFormatter.php
-
37lib/Service/RoomService.php
-
194openapi.json
-
14tests/integration/features/bootstrap/FeatureContext.php
-
48tests/integration/features/callapi/recording.feature
-
3tests/php/CapabilitiesTest.php
-
11tests/php/Service/RoomServiceTest.php
@ -0,0 +1,27 @@ |
|||
<?php |
|||
|
|||
declare(strict_types=1); |
|||
/** |
|||
* @copyright Copyright (c) 2023 Joas Schilling <coding@schilljs.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\Talk\Events; |
|||
|
|||
class BeforeRoomModifiedEvent extends ModifyRoomEvent { |
|||
} |
@ -0,0 +1,27 @@ |
|||
<?php |
|||
|
|||
declare(strict_types=1); |
|||
/** |
|||
* @copyright Copyright (c) 2023 Joas Schilling <coding@schilljs.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\Talk\Events; |
|||
|
|||
class RoomModifiedEvent extends ModifyRoomEvent { |
|||
} |
@ -0,0 +1,55 @@ |
|||
<?php |
|||
|
|||
declare(strict_types=1); |
|||
/** |
|||
* @copyright Copyright (c) 2023, Joas Schilling <coding@schilljs.com> |
|||
* |
|||
* @author Joas Schilling <coding@schilljs.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\Talk\Migration; |
|||
|
|||
use Closure; |
|||
use OCP\DB\ISchemaWrapper; |
|||
use OCP\DB\Types; |
|||
use OCP\Migration\IOutput; |
|||
use OCP\Migration\SimpleMigrationStep; |
|||
|
|||
class Version18000Date20231005091416 extends SimpleMigrationStep { |
|||
/** |
|||
* @param IOutput $output |
|||
* @param Closure(): ISchemaWrapper $schemaClosure |
|||
* @param array $options |
|||
* @return null|ISchemaWrapper |
|||
*/ |
|||
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { |
|||
/** @var ISchemaWrapper $schema */ |
|||
$schema = $schemaClosure(); |
|||
|
|||
$table = $schema->getTable('talk_rooms'); |
|||
if (!$table->hasColumn('recording_consent')) { |
|||
$table->addColumn('recording_consent', Types::SMALLINT, [ |
|||
'default' => 0, |
|||
'unsigned' => true, |
|||
]); |
|||
return $schema; |
|||
} |
|||
return null; |
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue