From f210a0247428ce73bdcf2c1e014c5bb8a2bd3a0b Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 9 Apr 2024 12:28:29 +0200 Subject: [PATCH] chore(assets): Recompile OpenAPI Signed-off-by: Joas Schilling --- openapi-backend-sipbridge.json | 2 +- openapi-full.json | 2 +- .../openapi/openapi-backend-sipbridge.ts | 63 ++++++++++++++++++- src/types/openapi/openapi-full.ts | 63 ++++++++++++++++++- 4 files changed, 126 insertions(+), 4 deletions(-) diff --git a/openapi-backend-sipbridge.json b/openapi-backend-sipbridge.json index 6af28b900b5..4d9fee9b107 100644 --- a/openapi-backend-sipbridge.json +++ b/openapi-backend-sipbridge.json @@ -915,7 +915,7 @@ }, "/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/pin/{pin}": { "get": { - "operationId": "room-verify-dial-in-pin", + "operationId": "room-verify-dial-in-pin-deprecated", "summary": "Verify a dial-in PIN (SIP bridge)", "tags": [ "room" diff --git a/openapi-full.json b/openapi-full.json index a46ecd25376..8cc1e159c92 100644 --- a/openapi-full.json +++ b/openapi-full.json @@ -18314,7 +18314,7 @@ }, "/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/pin/{pin}": { "get": { - "operationId": "room-verify-dial-in-pin", + "operationId": "room-verify-dial-in-pin-deprecated", "summary": "Verify a dial-in PIN (SIP bridge)", "tags": [ "room" diff --git a/src/types/openapi/openapi-backend-sipbridge.ts b/src/types/openapi/openapi-backend-sipbridge.ts index 026c7805dc1..f3e8913655b 100644 --- a/src/types/openapi/openapi-backend-sipbridge.ts +++ b/src/types/openapi/openapi-backend-sipbridge.ts @@ -16,7 +16,7 @@ export type paths = { }; "/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/pin/{pin}": { /** Verify a dial-in PIN (SIP bridge) */ - get: operations["room-verify-dial-in-pin"]; + get: operations["room-verify-dial-in-pin-deprecated"]; }; "/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/verify-dialin": { /** Verify a dial-in PIN (SIP bridge) */ @@ -327,6 +327,67 @@ export type operations = { }; }; /** Verify a dial-in PIN (SIP bridge) */ + "room-verify-dial-in-pin-deprecated": { + parameters: { + header: { + /** @description Required to be true for the API request to pass */ + "OCS-APIRequest": boolean; + }; + path: { + apiVersion: "v4"; + token: string; + /** @description PIN the participant used to dial-in */ + pin: string; + }; + }; + responses: { + /** @description Participant returned */ + 200: { + content: { + "application/json": { + ocs: { + meta: components["schemas"]["OCSMeta"]; + data: components["schemas"]["Room"]; + }; + }; + }; + }; + /** @description SIP request invalid */ + 401: { + content: { + "application/json": { + ocs: { + meta: components["schemas"]["OCSMeta"]; + data: unknown; + }; + }; + }; + }; + /** @description Participant not found */ + 404: { + content: { + "application/json": { + ocs: { + meta: components["schemas"]["OCSMeta"]; + data: unknown; + }; + }; + }; + }; + /** @description SIP dial-in is not configured */ + 501: { + content: { + "application/json": { + ocs: { + meta: components["schemas"]["OCSMeta"]; + data: unknown; + }; + }; + }; + }; + }; + }; + /** Verify a dial-in PIN (SIP bridge) */ "room-verify-dial-in-pin": { parameters: { query: { diff --git a/src/types/openapi/openapi-full.ts b/src/types/openapi/openapi-full.ts index 51641626906..c785ed3c4e1 100644 --- a/src/types/openapi/openapi-full.ts +++ b/src/types/openapi/openapi-full.ts @@ -501,7 +501,7 @@ export type paths = { }; "/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/pin/{pin}": { /** Verify a dial-in PIN (SIP bridge) */ - get: operations["room-verify-dial-in-pin"]; + get: operations["room-verify-dial-in-pin-deprecated"]; }; "/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/verify-dialin": { /** Verify a dial-in PIN (SIP bridge) */ @@ -6582,6 +6582,67 @@ export type operations = { }; }; /** Verify a dial-in PIN (SIP bridge) */ + "room-verify-dial-in-pin-deprecated": { + parameters: { + header: { + /** @description Required to be true for the API request to pass */ + "OCS-APIRequest": boolean; + }; + path: { + apiVersion: "v4"; + token: string; + /** @description PIN the participant used to dial-in */ + pin: string; + }; + }; + responses: { + /** @description Participant returned */ + 200: { + content: { + "application/json": { + ocs: { + meta: components["schemas"]["OCSMeta"]; + data: components["schemas"]["Room"]; + }; + }; + }; + }; + /** @description SIP request invalid */ + 401: { + content: { + "application/json": { + ocs: { + meta: components["schemas"]["OCSMeta"]; + data: unknown; + }; + }; + }; + }; + /** @description Participant not found */ + 404: { + content: { + "application/json": { + ocs: { + meta: components["schemas"]["OCSMeta"]; + data: unknown; + }; + }; + }; + }; + /** @description SIP dial-in is not configured */ + 501: { + content: { + "application/json": { + ocs: { + meta: components["schemas"]["OCSMeta"]; + data: unknown; + }; + }; + }; + }; + }; + }; + /** Verify a dial-in PIN (SIP bridge) */ "room-verify-dial-in-pin": { parameters: { query: {