diff --git a/openapi-full.json b/openapi-full.json index 808de71e..a1d590b4 100644 --- a/openapi-full.json +++ b/openapi-full.json @@ -149,6 +149,88 @@ }, "paths": { "/ocs/v2.php/apps/terms_of_service/terms": { + "get": { + "operationId": "terms-index", + "summary": "Get all available terms for the current country", + "tags": [ + "terms" + ], + "security": [ + {}, + { + "bearer_auth": [] + }, + { + "basic_auth": [] + } + ], + "parameters": [ + { + "name": "OCS-APIRequest", + "in": "header", + "description": "Required to be true for the API request to pass", + "required": true, + "schema": { + "type": "boolean", + "default": true + } + } + ], + "responses": { + "200": { + "description": "Get list successfully", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "ocs" + ], + "properties": { + "ocs": { + "type": "object", + "required": [ + "meta", + "data" + ], + "properties": { + "meta": { + "$ref": "#/components/schemas/OCSMeta" + }, + "data": { + "type": "object", + "required": [ + "terms", + "languages", + "hasSigned" + ], + "properties": { + "terms": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Terms" + } + }, + "languages": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "hasSigned": { + "type": "boolean" + } + } + } + } + } + } + } + } + } + } + } + }, "post": { "operationId": "terms-create", "summary": "Create new terms", @@ -268,6 +350,83 @@ } }, "/ocs/v2.php/apps/terms_of_service/sign": { + "post": { + "operationId": "signing-sign-terms", + "summary": "As a logged in user sign the terms", + "tags": [ + "signing" + ], + "security": [ + { + "bearer_auth": [] + }, + { + "basic_auth": [] + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "termId" + ], + "properties": { + "termId": { + "type": "integer", + "format": "int64", + "description": "The terms the user signed" + } + } + } + } + } + }, + "parameters": [ + { + "name": "OCS-APIRequest", + "in": "header", + "description": "Required to be true for the API request to pass", + "required": true, + "schema": { + "type": "boolean", + "default": true + } + } + ], + "responses": { + "200": { + "description": "Signed successfully", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "ocs" + ], + "properties": { + "ocs": { + "type": "object", + "required": [ + "meta", + "data" + ], + "properties": { + "meta": { + "$ref": "#/components/schemas/OCSMeta" + }, + "data": {} + } + } + } + } + } + } + } + } + }, "delete": { "operationId": "signing-reset-all-signatories", "summary": "Reset the signatories of all accounts", diff --git a/vendor-bin/openapi-extractor/composer.lock b/vendor-bin/openapi-extractor/composer.lock index 717f3be0..b6b99815 100644 --- a/vendor-bin/openapi-extractor/composer.lock +++ b/vendor-bin/openapi-extractor/composer.lock @@ -82,16 +82,16 @@ }, { "name": "nextcloud/openapi-extractor", - "version": "v1.3.0", + "version": "v1.5.3", "source": { "type": "git", "url": "https://github.com/nextcloud-releases/openapi-extractor.git", - "reference": "c0761cb7a3a0cd29c85ede9f27883d7f9f477bd0" + "reference": "4fcdc49ff57b5d12ca9133f10c5be0e386e5ce17" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nextcloud-releases/openapi-extractor/zipball/c0761cb7a3a0cd29c85ede9f27883d7f9f477bd0", - "reference": "c0761cb7a3a0cd29c85ede9f27883d7f9f477bd0", + "url": "https://api.github.com/repos/nextcloud-releases/openapi-extractor/zipball/4fcdc49ff57b5d12ca9133f10c5be0e386e5ce17", + "reference": "4fcdc49ff57b5d12ca9133f10c5be0e386e5ce17", "shasum": "" }, "require": { @@ -99,7 +99,7 @@ "ext-simplexml": "*", "nikic/php-parser": "^5.0", "php": "^8.1", - "phpstan/phpdoc-parser": "^1.28" + "phpstan/phpdoc-parser": "^2.1" }, "require-dev": { "nextcloud/coding-standard": "^1.2", @@ -123,9 +123,9 @@ "description": "A tool for extracting OpenAPI specifications from Nextcloud source code", "support": { "issues": "https://github.com/nextcloud-releases/openapi-extractor/issues", - "source": "https://github.com/nextcloud-releases/openapi-extractor/tree/v1.3.0" + "source": "https://github.com/nextcloud-releases/openapi-extractor/tree/v1.5.3" }, - "time": "2024-12-17T16:34:26+00:00" + "time": "2025-04-08T20:40:36+00:00" }, { "name": "nikic/php-parser", @@ -187,30 +187,30 @@ }, { "name": "phpstan/phpdoc-parser", - "version": "1.33.0", + "version": "2.1.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "82a311fd3690fb2bf7b64d5c98f912b3dd746140" + "reference": "9b30d6fd026b2c132b3985ce6b23bec09ab3aa68" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/82a311fd3690fb2bf7b64d5c98f912b3dd746140", - "reference": "82a311fd3690fb2bf7b64d5c98f912b3dd746140", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/9b30d6fd026b2c132b3985ce6b23bec09ab3aa68", + "reference": "9b30d6fd026b2c132b3985ce6b23bec09ab3aa68", "shasum": "" }, "require": { - "php": "^7.2 || ^8.0" + "php": "^7.4 || ^8.0" }, "require-dev": { "doctrine/annotations": "^2.0", - "nikic/php-parser": "^4.15", + "nikic/php-parser": "^5.3.0", "php-parallel-lint/php-parallel-lint": "^1.2", "phpstan/extension-installer": "^1.0", - "phpstan/phpstan": "^1.5", - "phpstan/phpstan-phpunit": "^1.1", - "phpstan/phpstan-strict-rules": "^1.0", - "phpunit/phpunit": "^9.5", + "phpstan/phpstan": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpstan/phpstan-strict-rules": "^2.0", + "phpunit/phpunit": "^9.6", "symfony/process": "^5.2" }, "type": "library", @@ -228,9 +228,9 @@ "description": "PHPDoc parser with support for nullable, intersection and generic types", "support": { "issues": "https://github.com/phpstan/phpdoc-parser/issues", - "source": "https://github.com/phpstan/phpdoc-parser/tree/1.33.0" + "source": "https://github.com/phpstan/phpdoc-parser/tree/2.1.0" }, - "time": "2024-10-13T11:25:22+00:00" + "time": "2025-02-19T13:28:12+00:00" } ], "aliases": [],