diff --git a/openapi-administration.json b/openapi-administration.json index 48d2bf496d9..0b27831ee34 100644 --- a/openapi-administration.json +++ b/openapi-administration.json @@ -314,7 +314,7 @@ }, { "type": "array", - "maxLength": 0 + "maxItems": 0 } ] } @@ -323,7 +323,7 @@ "paths": { "/ocs/v2.php/apps/spreed/api/{apiVersion}/bot/admin": { "get": { - "operationId": "settings-admin-list-bots", + "operationId": "bot-admin-list-bots", "summary": "List admin bots", "description": "This endpoint requires admin access", "tags": [ @@ -400,7 +400,7 @@ }, "/ocs/v2.php/apps/spreed/api/{apiVersion}/certificate/expiration": { "get": { - "operationId": "settings-get-certificate-expiration", + "operationId": "certificate-get-certificate-expiration", "summary": "Get the certificate expiration for a host", "description": "This endpoint requires admin access", "tags": [ @@ -769,32 +769,7 @@ ], "responses": { "204": { - "description": "Account deleted successfully", - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "ocs" - ], - "properties": { - "ocs": { - "type": "object", - "required": [ - "meta", - "data" - ], - "properties": { - "meta": { - "$ref": "#/components/schemas/OCSMeta" - }, - "data": {} - } - } - } - } - } - } + "description": "Account deleted successfully" }, "400": { "description": "Deleting account is not possible", @@ -877,7 +852,7 @@ }, "/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge": { "delete": { - "operationId": "matterbridge-stop-all-bridges", + "operationId": "matterbridge_settings-stop-all-bridges", "summary": "Stop all bridges", "description": "This endpoint requires admin access", "tags": [ @@ -989,7 +964,7 @@ }, "/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge/version": { "get": { - "operationId": "matterbridge-get-matterbridge-version", + "operationId": "matterbridge_settings-get-matterbridge-version", "summary": "Get Matterbridge version", "description": "This endpoint requires admin access", "tags": [ @@ -1109,7 +1084,7 @@ }, "/ocs/v2.php/apps/spreed/api/{apiVersion}/recording/welcome/{serverId}": { "get": { - "operationId": "settings-get-welcome-message", + "operationId": "recording-get-welcome-message", "summary": "Get the welcome message of a recording server", "description": "This endpoint requires admin access", "tags": [ @@ -1187,7 +1162,7 @@ "properties": { "version": { "type": "number", - "format": "float" + "format": "double" } } } @@ -1371,7 +1346,7 @@ }, "/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/welcome/{serverId}": { "get": { - "operationId": "settings-get-welcome-message", + "operationId": "signaling-get-welcome-message", "summary": "Get the welcome message from a signaling server", "description": "Only available for logged-in users because guests can not use the apps right now.\nThis endpoint requires admin access", "tags": [ diff --git a/openapi-backend-recording.json b/openapi-backend-recording.json index a7d218e266e..b9164754626 100644 --- a/openapi-backend-recording.json +++ b/openapi-backend-recording.json @@ -247,7 +247,7 @@ }, { "type": "array", - "maxLength": 0 + "maxItems": 0 } ] } diff --git a/openapi-backend-signaling.json b/openapi-backend-signaling.json index a0a2399801d..bdf2bb70e96 100644 --- a/openapi-backend-signaling.json +++ b/openapi-backend-signaling.json @@ -247,7 +247,7 @@ }, { "type": "array", - "maxLength": 0 + "maxItems": 0 } ] } diff --git a/openapi-backend-sipbridge.json b/openapi-backend-sipbridge.json index f5d83638b1b..3fce16be8f4 100644 --- a/openapi-backend-sipbridge.json +++ b/openapi-backend-sipbridge.json @@ -363,7 +363,7 @@ }, { "type": "array", - "maxLength": 0 + "maxItems": 0 } ] }, @@ -610,13 +610,13 @@ "format": "int64" }, "lastMessage": { - "oneOf": [ + "anyOf": [ { "$ref": "#/components/schemas/RoomLastMessage" }, { "type": "array", - "maxLength": 0 + "maxItems": 0 } ] }, @@ -724,7 +724,7 @@ } }, "RoomLastMessage": { - "oneOf": [ + "anyOf": [ { "$ref": "#/components/schemas/ChatMessage" }, diff --git a/openapi-bots.json b/openapi-bots.json index c7f0942f096..13d321fb8cc 100644 --- a/openapi-bots.json +++ b/openapi-bots.json @@ -247,7 +247,7 @@ }, { "type": "array", - "maxLength": 0 + "maxItems": 0 } ] } diff --git a/openapi-federation.json b/openapi-federation.json index 3107c12b6c6..bf276f4acf0 100644 --- a/openapi-federation.json +++ b/openapi-federation.json @@ -417,7 +417,7 @@ }, { "type": "array", - "maxLength": 0 + "maxItems": 0 } ] }, @@ -664,13 +664,13 @@ "format": "int64" }, "lastMessage": { - "oneOf": [ + "anyOf": [ { "$ref": "#/components/schemas/RoomLastMessage" }, { "type": "array", - "maxLength": 0 + "maxItems": 0 } ] }, @@ -778,7 +778,7 @@ } }, "RoomLastMessage": { - "oneOf": [ + "anyOf": [ { "$ref": "#/components/schemas/ChatMessage" }, diff --git a/openapi-full.json b/openapi-full.json index 58607cae4aa..8aec51d898f 100644 --- a/openapi-full.json +++ b/openapi-full.json @@ -858,7 +858,7 @@ }, { "type": "array", - "maxLength": 0 + "maxItems": 0 } ] }, @@ -1129,13 +1129,13 @@ "format": "int64" }, "lastMessage": { - "oneOf": [ + "anyOf": [ { "$ref": "#/components/schemas/RoomLastMessage" }, { "type": "array", - "maxLength": 0 + "maxItems": 0 } ] }, @@ -1243,7 +1243,7 @@ } }, "RoomLastMessage": { - "oneOf": [ + "anyOf": [ { "$ref": "#/components/schemas/ChatMessage" }, @@ -4530,32 +4530,7 @@ } }, "304": { - "description": "No messages", - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "ocs" - ], - "properties": { - "ocs": { - "type": "object", - "required": [ - "meta", - "data" - ], - "properties": { - "meta": { - "$ref": "#/components/schemas/OCSMeta" - }, - "data": {} - } - } - } - } - } - } + "description": "No messages" } } }, @@ -5629,32 +5604,7 @@ } }, "304": { - "description": "No messages", - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "ocs" - ], - "properties": { - "ocs": { - "type": "object", - "required": [ - "meta", - "data" - ], - "properties": { - "meta": { - "$ref": "#/components/schemas/OCSMeta" - }, - "data": {} - } - } - } - } - } - } + "description": "No messages" } } } @@ -6927,9 +6877,27 @@ "404": { "description": "Share not found", "content": { - "text/plain": { + "application/json": { "schema": { - "type": "string" + "type": "object", + "required": [ + "ocs" + ], + "properties": { + "ocs": { + "type": "object", + "required": [ + "meta", + "data" + ], + "properties": { + "meta": { + "$ref": "#/components/schemas/OCSMeta" + }, + "data": {} + } + } + } } } } @@ -8306,7 +8274,7 @@ }, "/ocs/v2.php/apps/spreed/api/{apiVersion}/publicshareauth": { "post": { - "operationId": "files_integration-create-room", + "operationId": "public_share_auth-create-room", "summary": "Creates a new room for video verification (requesting the password of a share)", "description": "The new room is a public room associated with a \"share:password\" object with the ID of the share token. Unlike normal rooms in which the owner is the user that created the room these are special rooms always created by a guest or user on behalf of a registered user, the sharer, who will be the owner of the room.\nThe share must have \"send password by Talk\" enabled; an error is returned otherwise.", "tags": [ @@ -11373,7 +11341,7 @@ }, { "type": "array", - "maxLength": 0 + "maxItems": 0 } ] } @@ -14323,13 +14291,13 @@ "$ref": "#/components/schemas/OCSMeta" }, "data": { - "oneOf": [ + "anyOf": [ { "$ref": "#/components/schemas/Capabilities" }, { "type": "array", - "maxLength": 0 + "maxItems": 0 } ] } @@ -14476,7 +14444,7 @@ }, "/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/settings": { "get": { - "operationId": "internal_signaling-external_signaling-get-settings", + "operationId": "signaling-get-settings", "summary": "Get the signaling settings", "tags": [ "internal_signaling", @@ -14616,7 +14584,7 @@ }, "/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/{token}": { "post": { - "operationId": "internal_signaling-send-messages", + "operationId": "signaling-send-messages", "summary": "Send signaling messages", "tags": [ "internal_signaling" @@ -14735,7 +14703,7 @@ } }, "get": { - "operationId": "internal_signaling-pull-messages", + "operationId": "signaling-pull-messages", "summary": "Get signaling messages", "tags": [ "internal_signaling" @@ -14984,7 +14952,7 @@ }, "/ocs/v2.php/apps/spreed/temp-user-avatar": { "post": { - "operationId": "user_avatar-post-avatar", + "operationId": "temp_avatar-post-avatar", "summary": "Upload your avatar as a user", "tags": [ "user_avatar" @@ -15079,7 +15047,7 @@ } }, "delete": { - "operationId": "user_avatar-delete-avatar", + "operationId": "temp_avatar-delete-avatar", "summary": "Delete your avatar as a user", "tags": [ "user_avatar" @@ -16667,7 +16635,7 @@ }, "/ocs/v2.php/apps/spreed/api/{apiVersion}/bot/admin": { "get": { - "operationId": "settings-admin-list-bots", + "operationId": "bot-admin-list-bots", "summary": "List admin bots", "description": "This endpoint requires admin access", "tags": [ @@ -16744,7 +16712,7 @@ }, "/ocs/v2.php/apps/spreed/api/{apiVersion}/certificate/expiration": { "get": { - "operationId": "settings-get-certificate-expiration", + "operationId": "certificate-get-certificate-expiration", "summary": "Get the certificate expiration for a host", "description": "This endpoint requires admin access", "tags": [ @@ -17113,32 +17081,7 @@ ], "responses": { "204": { - "description": "Account deleted successfully", - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "ocs" - ], - "properties": { - "ocs": { - "type": "object", - "required": [ - "meta", - "data" - ], - "properties": { - "meta": { - "$ref": "#/components/schemas/OCSMeta" - }, - "data": {} - } - } - } - } - } - } + "description": "Account deleted successfully" }, "400": { "description": "Deleting account is not possible", @@ -17221,7 +17164,7 @@ }, "/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge": { "delete": { - "operationId": "matterbridge-stop-all-bridges", + "operationId": "matterbridge_settings-stop-all-bridges", "summary": "Stop all bridges", "description": "This endpoint requires admin access", "tags": [ @@ -17333,7 +17276,7 @@ }, "/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge/version": { "get": { - "operationId": "matterbridge-get-matterbridge-version", + "operationId": "matterbridge_settings-get-matterbridge-version", "summary": "Get Matterbridge version", "description": "This endpoint requires admin access", "tags": [ @@ -17453,7 +17396,7 @@ }, "/ocs/v2.php/apps/spreed/api/{apiVersion}/recording/welcome/{serverId}": { "get": { - "operationId": "settings-get-welcome-message", + "operationId": "recording-get-welcome-message", "summary": "Get the welcome message of a recording server", "description": "This endpoint requires admin access", "tags": [ @@ -17531,7 +17474,7 @@ "properties": { "version": { "type": "number", - "format": "float" + "format": "double" } } } @@ -17715,7 +17658,7 @@ }, "/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/welcome/{serverId}": { "get": { - "operationId": "settings-get-welcome-message", + "operationId": "signaling-get-welcome-message", "summary": "Get the welcome message from a signaling server", "description": "Only available for logged-in users because guests can not use the apps right now.\nThis endpoint requires admin access", "tags": [ diff --git a/openapi.json b/openapi.json index 18c2abe4d49..a0d74b9d13c 100644 --- a/openapi.json +++ b/openapi.json @@ -745,7 +745,7 @@ }, { "type": "array", - "maxLength": 0 + "maxItems": 0 } ] }, @@ -1016,13 +1016,13 @@ "format": "int64" }, "lastMessage": { - "oneOf": [ + "anyOf": [ { "$ref": "#/components/schemas/RoomLastMessage" }, { "type": "array", - "maxLength": 0 + "maxItems": 0 } ] }, @@ -1130,7 +1130,7 @@ } }, "RoomLastMessage": { - "oneOf": [ + "anyOf": [ { "$ref": "#/components/schemas/ChatMessage" }, @@ -4417,32 +4417,7 @@ } }, "304": { - "description": "No messages", - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "ocs" - ], - "properties": { - "ocs": { - "type": "object", - "required": [ - "meta", - "data" - ], - "properties": { - "meta": { - "$ref": "#/components/schemas/OCSMeta" - }, - "data": {} - } - } - } - } - } - } + "description": "No messages" } } }, @@ -5516,32 +5491,7 @@ } }, "304": { - "description": "No messages", - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "ocs" - ], - "properties": { - "ocs": { - "type": "object", - "required": [ - "meta", - "data" - ], - "properties": { - "meta": { - "$ref": "#/components/schemas/OCSMeta" - }, - "data": {} - } - } - } - } - } - } + "description": "No messages" } } } @@ -6814,9 +6764,27 @@ "404": { "description": "Share not found", "content": { - "text/plain": { + "application/json": { "schema": { - "type": "string" + "type": "object", + "required": [ + "ocs" + ], + "properties": { + "ocs": { + "type": "object", + "required": [ + "meta", + "data" + ], + "properties": { + "meta": { + "$ref": "#/components/schemas/OCSMeta" + }, + "data": {} + } + } + } } } } @@ -8193,7 +8161,7 @@ }, "/ocs/v2.php/apps/spreed/api/{apiVersion}/publicshareauth": { "post": { - "operationId": "files_integration-create-room", + "operationId": "public_share_auth-create-room", "summary": "Creates a new room for video verification (requesting the password of a share)", "description": "The new room is a public room associated with a \"share:password\" object with the ID of the share token. Unlike normal rooms in which the owner is the user that created the room these are special rooms always created by a guest or user on behalf of a registered user, the sharer, who will be the owner of the room.\nThe share must have \"send password by Talk\" enabled; an error is returned otherwise.", "tags": [ @@ -11483,7 +11451,7 @@ }, { "type": "array", - "maxLength": 0 + "maxItems": 0 } ] } @@ -14433,13 +14401,13 @@ "$ref": "#/components/schemas/OCSMeta" }, "data": { - "oneOf": [ + "anyOf": [ { "$ref": "#/components/schemas/Capabilities" }, { "type": "array", - "maxLength": 0 + "maxItems": 0 } ] } @@ -14586,7 +14554,7 @@ }, "/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/settings": { "get": { - "operationId": "internal_signaling-external_signaling-get-settings", + "operationId": "signaling-get-settings", "summary": "Get the signaling settings", "tags": [ "internal_signaling", @@ -14726,7 +14694,7 @@ }, "/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/{token}": { "post": { - "operationId": "internal_signaling-send-messages", + "operationId": "signaling-send-messages", "summary": "Send signaling messages", "tags": [ "internal_signaling" @@ -14845,7 +14813,7 @@ } }, "get": { - "operationId": "internal_signaling-pull-messages", + "operationId": "signaling-pull-messages", "summary": "Get signaling messages", "tags": [ "internal_signaling" @@ -15094,7 +15062,7 @@ }, "/ocs/v2.php/apps/spreed/temp-user-avatar": { "post": { - "operationId": "user_avatar-post-avatar", + "operationId": "temp_avatar-post-avatar", "summary": "Upload your avatar as a user", "tags": [ "user_avatar" @@ -15189,7 +15157,7 @@ } }, "delete": { - "operationId": "user_avatar-delete-avatar", + "operationId": "temp_avatar-delete-avatar", "summary": "Delete your avatar as a user", "tags": [ "user_avatar" diff --git a/src/types/index.ts b/src/types/index.ts index 4f40e6e4a80..48b0bf3c538 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -75,7 +75,7 @@ export type Bot = components['schemas']['Bot'] export type BotWithDetails = components['schemas']['BotWithDetails'] export type getBotsResponse = ApiResponse -export type getBotsAdminResponse = ApiResponse +export type getBotsAdminResponse = ApiResponse export type enableBotResponse = ApiResponse export type disableBotResponse = ApiResponse diff --git a/src/types/openapi/openapi-administration.ts b/src/types/openapi/openapi-administration.ts index 7c593a1f24a..24c71b525c9 100644 --- a/src/types/openapi/openapi-administration.ts +++ b/src/types/openapi/openapi-administration.ts @@ -15,14 +15,14 @@ export type paths = { * List admin bots * @description This endpoint requires admin access */ - get: operations["settings-admin-list-bots"]; + get: operations["bot-admin-list-bots"]; }; "/ocs/v2.php/apps/spreed/api/{apiVersion}/certificate/expiration": { /** * Get the certificate expiration for a host * @description This endpoint requires admin access */ - get: operations["settings-get-certificate-expiration"]; + get: operations["certificate-get-certificate-expiration"]; }; "/ocs/v2.php/apps/spreed/api/{apiVersion}/hostedsignalingserver/requesttrial": { /** @@ -43,21 +43,21 @@ export type paths = { * Stop all bridges * @description This endpoint requires admin access */ - delete: operations["matterbridge-stop-all-bridges"]; + delete: operations["matterbridge_settings-stop-all-bridges"]; }; "/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge/version": { /** * Get Matterbridge version * @description This endpoint requires admin access */ - get: operations["matterbridge-get-matterbridge-version"]; + get: operations["matterbridge_settings-get-matterbridge-version"]; }; "/ocs/v2.php/apps/spreed/api/{apiVersion}/recording/welcome/{serverId}": { /** * Get the welcome message of a recording server * @description This endpoint requires admin access */ - get: operations["settings-get-welcome-message"]; + get: operations["recording-get-welcome-message"]; }; "/ocs/v2.php/apps/spreed/api/{apiVersion}/settings/sip": { /** @@ -72,7 +72,7 @@ export type paths = { * @description Only available for logged-in users because guests can not use the apps right now. * This endpoint requires admin access */ - get: operations["settings-get-welcome-message"]; + get: operations["signaling-get-welcome-message"]; }; }; @@ -177,7 +177,7 @@ export type operations = { * List admin bots * @description This endpoint requires admin access */ - "settings-admin-list-bots": { + "bot-admin-list-bots": { parameters: { header: { /** @description Required to be true for the API request to pass */ @@ -205,7 +205,7 @@ export type operations = { * Get the certificate expiration for a host * @description This endpoint requires admin access */ - "settings-get-certificate-expiration": { + "certificate-get-certificate-expiration": { parameters: { query: { /** @description Host to check */ @@ -333,14 +333,7 @@ export type operations = { responses: { /** @description Account deleted successfully */ 204: { - content: { - "application/json": { - ocs: { - meta: components["schemas"]["OCSMeta"]; - data: unknown; - }; - }; - }; + content: never; }; /** @description Deleting account is not possible */ 400: { @@ -373,7 +366,7 @@ export type operations = { * Stop all bridges * @description This endpoint requires admin access */ - "matterbridge-stop-all-bridges": { + "matterbridge_settings-stop-all-bridges": { parameters: { header: { /** @description Required to be true for the API request to pass */ @@ -414,7 +407,7 @@ export type operations = { * Get Matterbridge version * @description This endpoint requires admin access */ - "matterbridge-get-matterbridge-version": { + "matterbridge_settings-get-matterbridge-version": { parameters: { header: { /** @description Required to be true for the API request to pass */ @@ -454,19 +447,18 @@ export type operations = { }; }; /** - * Get the welcome message from a signaling server - * @description Only available for logged-in users because guests can not use the apps right now. - * This endpoint requires admin access + * Get the welcome message of a recording server + * @description This endpoint requires admin access */ - "settings-get-welcome-message": { + "recording-get-welcome-message": { parameters: { header: { /** @description Required to be true for the API request to pass */ "OCS-APIRequest": boolean; }; path: { - apiVersion: "v3"; - /** @description ID of the signaling server */ + apiVersion: "v1"; + /** @description ID of the server */ serverId: number; }; }; @@ -478,13 +470,14 @@ export type operations = { ocs: { meta: components["schemas"]["OCSMeta"]; data: { - [key: string]: Record; + /** Format: double */ + version: number; }; }; }; }; }; - /** @description Signaling server not found */ + /** @description Recording server not found or not configured */ 404: { content: { "application/json": { @@ -502,7 +495,6 @@ export type operations = { meta: components["schemas"]["OCSMeta"]; data: { error: string; - version?: string; }; }; }; @@ -546,4 +538,61 @@ export type operations = { }; }; }; + /** + * Get the welcome message from a signaling server + * @description Only available for logged-in users because guests can not use the apps right now. + * This endpoint requires admin access + */ + "signaling-get-welcome-message": { + parameters: { + header: { + /** @description Required to be true for the API request to pass */ + "OCS-APIRequest": boolean; + }; + path: { + apiVersion: "v3"; + /** @description ID of the signaling server */ + serverId: number; + }; + }; + responses: { + /** @description Welcome message returned */ + 200: { + content: { + "application/json": { + ocs: { + meta: components["schemas"]["OCSMeta"]; + data: { + [key: string]: Record; + }; + }; + }; + }; + }; + /** @description Signaling server not found */ + 404: { + content: { + "application/json": { + ocs: { + meta: components["schemas"]["OCSMeta"]; + data: unknown; + }; + }; + }; + }; + 500: { + content: { + "application/json": { + ocs: { + meta: components["schemas"]["OCSMeta"]; + data: { + error: string; + version?: string; + }; + }; + }; + }; + }; + }; + }; }; diff --git a/src/types/openapi/openapi-full.ts b/src/types/openapi/openapi-full.ts index f090c1f7ec2..66bd34df612 100644 --- a/src/types/openapi/openapi-full.ts +++ b/src/types/openapi/openapi-full.ts @@ -194,7 +194,7 @@ export type paths = { * @description The new room is a public room associated with a "share:password" object with the ID of the share token. Unlike normal rooms in which the owner is the user that created the room these are special rooms always created by a guest or user on behalf of a registered user, the sharer, who will be the owner of the room. * The share must have "send password by Talk" enabled; an error is returned otherwise. */ - post: operations["files_integration-create-room"]; + post: operations["public_share_auth-create-room"]; }; "/ocs/v2.php/apps/spreed/api/{apiVersion}/reaction/{token}/{messageId}": { /** Get a list of reactions for a message */ @@ -361,19 +361,19 @@ export type paths = { }; "/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/settings": { /** Get the signaling settings */ - get: operations["internal_signaling-external_signaling-get-settings"]; + get: operations["signaling-get-settings"]; }; "/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/{token}": { /** Get signaling messages */ - get: operations["internal_signaling-pull-messages"]; + get: operations["signaling-pull-messages"]; /** Send signaling messages */ - post: operations["internal_signaling-send-messages"]; + post: operations["signaling-send-messages"]; }; "/ocs/v2.php/apps/spreed/temp-user-avatar": { /** Upload your avatar as a user */ - post: operations["user_avatar-post-avatar"]; + post: operations["temp_avatar-post-avatar"]; /** Delete your avatar as a user */ - delete: operations["user_avatar-delete-avatar"]; + delete: operations["temp_avatar-delete-avatar"]; }; "/ocs/v2.php/apps/spreed/api/{apiVersion}/proxy/new/user-avatar/{size}": { /** Get the avatar of a cloudId user when inviting users while creating a conversation */ @@ -432,14 +432,14 @@ export type paths = { * List admin bots * @description This endpoint requires admin access */ - get: operations["settings-admin-list-bots"]; + get: operations["bot-admin-list-bots"]; }; "/ocs/v2.php/apps/spreed/api/{apiVersion}/certificate/expiration": { /** * Get the certificate expiration for a host * @description This endpoint requires admin access */ - get: operations["settings-get-certificate-expiration"]; + get: operations["certificate-get-certificate-expiration"]; }; "/ocs/v2.php/apps/spreed/api/{apiVersion}/hostedsignalingserver/requesttrial": { /** @@ -460,21 +460,21 @@ export type paths = { * Stop all bridges * @description This endpoint requires admin access */ - delete: operations["matterbridge-stop-all-bridges"]; + delete: operations["matterbridge_settings-stop-all-bridges"]; }; "/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge/version": { /** * Get Matterbridge version * @description This endpoint requires admin access */ - get: operations["matterbridge-get-matterbridge-version"]; + get: operations["matterbridge_settings-get-matterbridge-version"]; }; "/ocs/v2.php/apps/spreed/api/{apiVersion}/recording/welcome/{serverId}": { /** * Get the welcome message of a recording server * @description This endpoint requires admin access */ - get: operations["settings-get-welcome-message"]; + get: operations["recording-get-welcome-message"]; }; "/ocs/v2.php/apps/spreed/api/{apiVersion}/settings/sip": { /** @@ -489,7 +489,7 @@ export type paths = { * @description Only available for logged-in users because guests can not use the apps right now. * This endpoint requires admin access */ - get: operations["settings-get-welcome-message"]; + get: operations["signaling-get-welcome-message"]; }; "/ocs/v2.php/apps/spreed/api/{apiVersion}/recording/backend": { /** Update the recording status as a backend */ @@ -1942,14 +1942,7 @@ export type operations = { }; /** @description No messages */ 304: { - content: { - "application/json": { - ocs: { - meta: components["schemas"]["OCSMeta"]; - data: unknown; - }; - }; - }; + content: never; }; }; }; @@ -2326,14 +2319,7 @@ export type operations = { }; /** @description No messages */ 304: { - content: { - "application/json": { - ocs: { - meta: components["schemas"]["OCSMeta"]; - data: unknown; - }; - }; - }; + content: never; }; }; }; @@ -2754,7 +2740,12 @@ export type operations = { /** @description Share not found */ 404: { content: { - "text/plain": string; + "application/json": { + ocs: { + meta: components["schemas"]["OCSMeta"]; + data: unknown; + }; + }; }; }; }; @@ -3222,7 +3213,7 @@ export type operations = { * @description The new room is a public room associated with a "share:password" object with the ID of the share token. Unlike normal rooms in which the owner is the user that created the room these are special rooms always created by a guest or user on behalf of a registered user, the sharer, who will be the owner of the room. * The share must have "send password by Talk" enabled; an error is returned otherwise. */ - "files_integration-create-room": { + "public_share_auth-create-room": { parameters: { query: { /** @description Token of the file share */ @@ -5313,7 +5304,7 @@ export type operations = { }; }; /** Get the signaling settings */ - "internal_signaling-external_signaling-get-settings": { + "signaling-get-settings": { parameters: { query?: { /** @description Token of the room */ @@ -5364,7 +5355,7 @@ export type operations = { }; }; /** Get signaling messages */ - "internal_signaling-pull-messages": { + "signaling-pull-messages": { parameters: { header: { /** @description Required to be true for the API request to pass */ @@ -5433,7 +5424,7 @@ export type operations = { }; }; /** Send signaling messages */ - "internal_signaling-send-messages": { + "signaling-send-messages": { parameters: { query: { /** @description JSON encoded messages */ @@ -5475,7 +5466,7 @@ export type operations = { }; }; /** Upload your avatar as a user */ - "user_avatar-post-avatar": { + "temp_avatar-post-avatar": { parameters: { header: { /** @description Required to be true for the API request to pass */ @@ -5510,7 +5501,7 @@ export type operations = { }; }; /** Delete your avatar as a user */ - "user_avatar-delete-avatar": { + "temp_avatar-delete-avatar": { parameters: { header: { /** @description Required to be true for the API request to pass */ @@ -6066,7 +6057,7 @@ export type operations = { * List admin bots * @description This endpoint requires admin access */ - "settings-admin-list-bots": { + "bot-admin-list-bots": { parameters: { header: { /** @description Required to be true for the API request to pass */ @@ -6094,7 +6085,7 @@ export type operations = { * Get the certificate expiration for a host * @description This endpoint requires admin access */ - "settings-get-certificate-expiration": { + "certificate-get-certificate-expiration": { parameters: { query: { /** @description Host to check */ @@ -6222,14 +6213,7 @@ export type operations = { responses: { /** @description Account deleted successfully */ 204: { - content: { - "application/json": { - ocs: { - meta: components["schemas"]["OCSMeta"]; - data: unknown; - }; - }; - }; + content: never; }; /** @description Deleting account is not possible */ 400: { @@ -6262,7 +6246,7 @@ export type operations = { * Stop all bridges * @description This endpoint requires admin access */ - "matterbridge-stop-all-bridges": { + "matterbridge_settings-stop-all-bridges": { parameters: { header: { /** @description Required to be true for the API request to pass */ @@ -6303,7 +6287,7 @@ export type operations = { * Get Matterbridge version * @description This endpoint requires admin access */ - "matterbridge-get-matterbridge-version": { + "matterbridge_settings-get-matterbridge-version": { parameters: { header: { /** @description Required to be true for the API request to pass */ @@ -6343,19 +6327,18 @@ export type operations = { }; }; /** - * Get the welcome message from a signaling server - * @description Only available for logged-in users because guests can not use the apps right now. - * This endpoint requires admin access + * Get the welcome message of a recording server + * @description This endpoint requires admin access */ - "settings-get-welcome-message": { + "recording-get-welcome-message": { parameters: { header: { /** @description Required to be true for the API request to pass */ "OCS-APIRequest": boolean; }; path: { - apiVersion: "v3"; - /** @description ID of the signaling server */ + apiVersion: "v1"; + /** @description ID of the server */ serverId: number; }; }; @@ -6367,13 +6350,14 @@ export type operations = { ocs: { meta: components["schemas"]["OCSMeta"]; data: { - [key: string]: Record; + /** Format: double */ + version: number; }; }; }; }; }; - /** @description Signaling server not found */ + /** @description Recording server not found or not configured */ 404: { content: { "application/json": { @@ -6391,7 +6375,6 @@ export type operations = { meta: components["schemas"]["OCSMeta"]; data: { error: string; - version?: string; }; }; }; @@ -6435,6 +6418,63 @@ export type operations = { }; }; }; + /** + * Get the welcome message from a signaling server + * @description Only available for logged-in users because guests can not use the apps right now. + * This endpoint requires admin access + */ + "signaling-get-welcome-message": { + parameters: { + header: { + /** @description Required to be true for the API request to pass */ + "OCS-APIRequest": boolean; + }; + path: { + apiVersion: "v3"; + /** @description ID of the signaling server */ + serverId: number; + }; + }; + responses: { + /** @description Welcome message returned */ + 200: { + content: { + "application/json": { + ocs: { + meta: components["schemas"]["OCSMeta"]; + data: { + [key: string]: Record; + }; + }; + }; + }; + }; + /** @description Signaling server not found */ + 404: { + content: { + "application/json": { + ocs: { + meta: components["schemas"]["OCSMeta"]; + data: unknown; + }; + }; + }; + }; + 500: { + content: { + "application/json": { + ocs: { + meta: components["schemas"]["OCSMeta"]; + data: { + error: string; + version?: string; + }; + }; + }; + }; + }; + }; + }; /** Update the recording status as a backend */ "recording-backend": { parameters: { diff --git a/src/types/openapi/openapi.ts b/src/types/openapi/openapi.ts index 26b91ed24ef..86e715f60d2 100644 --- a/src/types/openapi/openapi.ts +++ b/src/types/openapi/openapi.ts @@ -194,7 +194,7 @@ export type paths = { * @description The new room is a public room associated with a "share:password" object with the ID of the share token. Unlike normal rooms in which the owner is the user that created the room these are special rooms always created by a guest or user on behalf of a registered user, the sharer, who will be the owner of the room. * The share must have "send password by Talk" enabled; an error is returned otherwise. */ - post: operations["files_integration-create-room"]; + post: operations["public_share_auth-create-room"]; }; "/ocs/v2.php/apps/spreed/api/{apiVersion}/reaction/{token}/{messageId}": { /** Get a list of reactions for a message */ @@ -365,19 +365,19 @@ export type paths = { }; "/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/settings": { /** Get the signaling settings */ - get: operations["internal_signaling-external_signaling-get-settings"]; + get: operations["signaling-get-settings"]; }; "/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/{token}": { /** Get signaling messages */ - get: operations["internal_signaling-pull-messages"]; + get: operations["signaling-pull-messages"]; /** Send signaling messages */ - post: operations["internal_signaling-send-messages"]; + post: operations["signaling-send-messages"]; }; "/ocs/v2.php/apps/spreed/temp-user-avatar": { /** Upload your avatar as a user */ - post: operations["user_avatar-post-avatar"]; + post: operations["temp_avatar-post-avatar"]; /** Delete your avatar as a user */ - delete: operations["user_avatar-delete-avatar"]; + delete: operations["temp_avatar-delete-avatar"]; }; }; @@ -1765,14 +1765,7 @@ export type operations = { }; /** @description No messages */ 304: { - content: { - "application/json": { - ocs: { - meta: components["schemas"]["OCSMeta"]; - data: unknown; - }; - }; - }; + content: never; }; }; }; @@ -2149,14 +2142,7 @@ export type operations = { }; /** @description No messages */ 304: { - content: { - "application/json": { - ocs: { - meta: components["schemas"]["OCSMeta"]; - data: unknown; - }; - }; - }; + content: never; }; }; }; @@ -2577,7 +2563,12 @@ export type operations = { /** @description Share not found */ 404: { content: { - "text/plain": string; + "application/json": { + ocs: { + meta: components["schemas"]["OCSMeta"]; + data: unknown; + }; + }; }; }; }; @@ -3045,7 +3036,7 @@ export type operations = { * @description The new room is a public room associated with a "share:password" object with the ID of the share token. Unlike normal rooms in which the owner is the user that created the room these are special rooms always created by a guest or user on behalf of a registered user, the sharer, who will be the owner of the room. * The share must have "send password by Talk" enabled; an error is returned otherwise. */ - "files_integration-create-room": { + "public_share_auth-create-room": { parameters: { query: { /** @description Token of the file share */ @@ -5214,7 +5205,7 @@ export type operations = { }; }; /** Get the signaling settings */ - "internal_signaling-external_signaling-get-settings": { + "signaling-get-settings": { parameters: { query?: { /** @description Token of the room */ @@ -5265,7 +5256,7 @@ export type operations = { }; }; /** Get signaling messages */ - "internal_signaling-pull-messages": { + "signaling-pull-messages": { parameters: { header: { /** @description Required to be true for the API request to pass */ @@ -5334,7 +5325,7 @@ export type operations = { }; }; /** Send signaling messages */ - "internal_signaling-send-messages": { + "signaling-send-messages": { parameters: { query: { /** @description JSON encoded messages */ @@ -5376,7 +5367,7 @@ export type operations = { }; }; /** Upload your avatar as a user */ - "user_avatar-post-avatar": { + "temp_avatar-post-avatar": { parameters: { header: { /** @description Required to be true for the API request to pass */ @@ -5411,7 +5402,7 @@ export type operations = { }; }; /** Delete your avatar as a user */ - "user_avatar-delete-avatar": { + "temp_avatar-delete-avatar": { parameters: { header: { /** @description Required to be true for the API request to pass */ diff --git a/vendor-bin/openapi-extractor/composer.lock b/vendor-bin/openapi-extractor/composer.lock index bd9f17ce637..a36c00c7e12 100644 --- a/vendor-bin/openapi-extractor/composer.lock +++ b/vendor-bin/openapi-extractor/composer.lock @@ -9,16 +9,16 @@ "packages-dev": [ { "name": "adhocore/cli", - "version": "v1.6.1", + "version": "v1.7.1", "source": { "type": "git", "url": "https://github.com/adhocore/php-cli.git", - "reference": "25b5a93e5eebcdb70e20ee33313a011ea3a4f770" + "reference": "3fde60a838912e71c82ed0f48048685dc32dbc77" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/adhocore/php-cli/zipball/25b5a93e5eebcdb70e20ee33313a011ea3a4f770", - "reference": "25b5a93e5eebcdb70e20ee33313a011ea3a4f770", + "url": "https://api.github.com/repos/adhocore/php-cli/zipball/3fde60a838912e71c82ed0f48048685dc32dbc77", + "reference": "3fde60a838912e71c82ed0f48048685dc32dbc77", "shasum": "" }, "require": { @@ -63,7 +63,7 @@ ], "support": { "issues": "https://github.com/adhocore/php-cli/issues", - "source": "https://github.com/adhocore/php-cli/tree/v1.6.1" + "source": "https://github.com/adhocore/php-cli/tree/v1.7.1" }, "funding": [ { @@ -75,7 +75,7 @@ "type": "github" } ], - "time": "2023-06-26T09:55:29+00:00" + "time": "2024-03-28T08:30:12+00:00" }, { "name": "nextcloud/openapi-extractor", @@ -83,23 +83,23 @@ "source": { "type": "git", "url": "https://github.com/nextcloud/openapi-extractor.git", - "reference": "1d8b0eee87a72bad4e23ba02100fc69f4d68afb6" + "reference": "50acc06715d9ac182e40d31d19aa3e4de517e1da" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nextcloud/openapi-extractor/zipball/1d8b0eee87a72bad4e23ba02100fc69f4d68afb6", - "reference": "1d8b0eee87a72bad4e23ba02100fc69f4d68afb6", + "url": "https://api.github.com/repos/nextcloud/openapi-extractor/zipball/50acc06715d9ac182e40d31d19aa3e4de517e1da", + "reference": "50acc06715d9ac182e40d31d19aa3e4de517e1da", "shasum": "" }, "require": { - "adhocore/cli": "^v1.6", + "adhocore/cli": "^1.7", "ext-simplexml": "*", - "nikic/php-parser": "^4.16", + "nikic/php-parser": "^5.0", "php": "^8.1", - "phpstan/phpdoc-parser": "^1.23" + "phpstan/phpdoc-parser": "^1.28" }, "require-dev": { - "nextcloud/coding-standard": "^1.1" + "nextcloud/coding-standard": "^1.2" }, "default-branch": true, "bin": [ @@ -130,29 +130,31 @@ "source": "https://github.com/nextcloud/openapi-extractor/tree/main", "issues": "https://github.com/nextcloud/openapi-extractor/issues" }, - "time": "2024-03-15T12:57:21+00:00" + "time": "2024-04-15T07:08:14+00:00" }, { "name": "nikic/php-parser", - "version": "v4.18.0", + "version": "v5.0.2", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "1bcbb2179f97633e98bbbc87044ee2611c7d7999" + "reference": "139676794dc1e9231bf7bcd123cfc0c99182cb13" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/1bcbb2179f97633e98bbbc87044ee2611c7d7999", - "reference": "1bcbb2179f97633e98bbbc87044ee2611c7d7999", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/139676794dc1e9231bf7bcd123cfc0c99182cb13", + "reference": "139676794dc1e9231bf7bcd123cfc0c99182cb13", "shasum": "" }, "require": { + "ext-ctype": "*", + "ext-json": "*", "ext-tokenizer": "*", - "php": ">=7.0" + "php": ">=7.4" }, "require-dev": { "ircmaxell/php-yacc": "^0.0.7", - "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0" + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" }, "bin": [ "bin/php-parse" @@ -160,7 +162,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.9-dev" + "dev-master": "5.0-dev" } }, "autoload": { @@ -184,22 +186,22 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.18.0" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.0.2" }, - "time": "2023-12-10T21:03:43+00:00" + "time": "2024-03-05T20:51:40+00:00" }, { "name": "phpstan/phpdoc-parser", - "version": "1.25.0", + "version": "1.28.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "bd84b629c8de41aa2ae82c067c955e06f1b00240" + "reference": "cd06d6b1a1b3c75b0b83f97577869fd85a3cd4fb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/bd84b629c8de41aa2ae82c067c955e06f1b00240", - "reference": "bd84b629c8de41aa2ae82c067c955e06f1b00240", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/cd06d6b1a1b3c75b0b83f97577869fd85a3cd4fb", + "reference": "cd06d6b1a1b3c75b0b83f97577869fd85a3cd4fb", "shasum": "" }, "require": { @@ -231,9 +233,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.25.0" + "source": "https://github.com/phpstan/phpdoc-parser/tree/1.28.0" }, - "time": "2024-01-04T17:06:16+00:00" + "time": "2024-04-03T18:51:33+00:00" } ], "aliases": [],