From ff10f9f60f777407ecf8ac8901339e985e4d49b5 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Mon, 19 Aug 2024 11:08:28 +0200 Subject: chore(deps): Update openapi-extractor to v1.0.0 Signed-off-by: provokateurin --- core/openapi.json | 894 +++++++++++++++++++++++++++--------------------------- 1 file changed, 447 insertions(+), 447 deletions(-) (limited to 'core/openapi.json') diff --git a/core/openapi.json b/core/openapi.json index 5d8a66cac21..582b01fd050 100644 --- a/core/openapi.json +++ b/core/openapi.json @@ -1453,56 +1453,66 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "search" - ], - "properties": { - "search": { - "type": "string", - "description": "Text to search for" - }, - "itemType": { - "type": "string", - "nullable": true, - "description": "Type of the items to search for" - }, - "itemId": { - "type": "string", - "nullable": true, - "description": "ID of the items to search for" - }, - "sorter": { - "type": "string", - "nullable": true, - "description": "can be piped, top prio first, e.g.: \"commenters|share-recipients\"" - }, - "shareTypes": { - "type": "array", - "default": [], - "description": "Types of shares to search for", - "items": { - "type": "integer", - "format": "int64" - } - }, - "limit": { - "type": "integer", - "format": "int64", - "default": 10, - "description": "Maximum number of results to return" - } - } + "parameters": [ + { + "name": "search", + "in": "query", + "description": "Text to search for", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "itemType", + "in": "query", + "description": "Type of the items to search for", + "schema": { + "type": "string", + "nullable": true + } + }, + { + "name": "itemId", + "in": "query", + "description": "ID of the items to search for", + "schema": { + "type": "string", + "nullable": true + } + }, + { + "name": "sorter", + "in": "query", + "description": "can be piped, top prio first, e.g.: \"commenters|share-recipients\"", + "schema": { + "type": "string", + "nullable": true + } + }, + { + "name": "shareTypes[]", + "in": "query", + "description": "Types of shares to search for", + "schema": { + "type": "array", + "default": [], + "items": { + "type": "integer", + "format": "int64" } } - } - }, - "parameters": [ + }, + { + "name": "limit", + "in": "query", + "description": "Maximum number of results to return", + "schema": { + "type": "integer", + "format": "int64", + "default": 10 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -1840,30 +1850,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "resourceType", - "resourceId" - ], - "properties": { - "resourceType": { - "type": "string", - "description": "Name of the resource" - }, - "resourceId": { - "type": "string", - "description": "ID of the resource" - } - } - } - } - } - }, "parameters": [ { "name": "collectionId", @@ -1875,6 +1861,24 @@ "format": "int64" } }, + { + "name": "resourceType", + "in": "query", + "description": "Name of the resource", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "resourceId", + "in": "query", + "description": "ID of the resource", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -2645,24 +2649,20 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "absolute": { - "type": "boolean", - "default": false, - "description": "Rewrite URLs to absolute ones" - } - } - } - } - } - }, "parameters": [ + { + "name": "absolute", + "in": "query", + "description": "Rewrite URLs to absolute ones", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -2729,24 +2729,20 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "absolute": { - "type": "boolean", - "default": false, - "description": "Rewrite URLs to absolute ones" - } - } - } - } - } - }, "parameters": [ + { + "name": "absolute", + "in": "query", + "description": "Rewrite URLs to absolute ones", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -3310,26 +3306,16 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "reference" - ], - "properties": { - "reference": { - "type": "string", - "description": "Reference to resolve" - } - } - } - } - } - }, "parameters": [ + { + "name": "reference", + "in": "query", + "description": "Reference to resolve", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -3502,31 +3488,25 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "reference", - "sharingToken" - ], - "properties": { - "reference": { - "type": "string", - "description": "Reference to resolve" - }, - "sharingToken": { - "type": "string", - "description": "Token of the public share" - } - } - } - } - } - }, "parameters": [ + { + "name": "reference", + "in": "query", + "description": "Reference to resolve", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "sharingToken", + "in": "query", + "description": "Token of the public share", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -4470,23 +4450,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "customId": { - "type": "string", - "nullable": true, - "description": "An arbitrary identifier for the task" - } - } - } - } - } - }, "parameters": [ { "name": "appId", @@ -4497,6 +4460,15 @@ "type": "string" } }, + { + "name": "customId", + "in": "query", + "description": "An arbitrary identifier for the task", + "schema": { + "type": "string", + "nullable": true + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -4606,37 +4578,33 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "taskType": { - "type": "string", - "nullable": true, - "description": "The task type to filter by" - }, - "customId": { - "type": "string", - "nullable": true, - "description": "An arbitrary identifier for the task" - } - } - } - } - } - }, "parameters": [ { - "name": "OCS-APIRequest", - "in": "header", - "description": "Required to be true for the API request to pass", - "required": true, + "name": "taskType", + "in": "query", + "description": "The task type to filter by", "schema": { - "type": "boolean", - "default": true + "type": "string", + "nullable": true + } + }, + { + "name": "customId", + "in": "query", + "description": "An arbitrary identifier for the task", + "schema": { + "type": "string", + "nullable": true + } + }, + { + "name": "OCS-APIRequest", + "in": "header", + "description": "Required to be true for the API request to pass", + "required": true, + "schema": { + "type": "boolean", + "default": true } } ], @@ -5818,23 +5786,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "identifier": { - "type": "string", - "nullable": true, - "description": "An arbitrary identifier for the task" - } - } - } - } - } - }, "parameters": [ { "name": "appId", @@ -5845,6 +5796,15 @@ "type": "string" } }, + { + "name": "identifier", + "in": "query", + "description": "An arbitrary identifier for the task", + "schema": { + "type": "string", + "nullable": true + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -6653,23 +6613,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "identifier": { - "type": "string", - "nullable": true, - "description": "An arbitrary identifier for the task" - } - } - } - } - } - }, "parameters": [ { "name": "appId", @@ -6680,6 +6623,15 @@ "type": "string" } }, + { + "name": "identifier", + "in": "query", + "description": "An arbitrary identifier for the task", + "schema": { + "type": "string", + "nullable": true + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -7116,24 +7068,16 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "from": { - "type": "string", - "default": "", - "description": "the url the user is currently at" - } - } - } - } - } - }, "parameters": [ + { + "name": "from", + "in": "query", + "description": "the url the user is currently at", + "schema": { + "type": "string", + "default": "" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -7198,53 +7142,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "term": { - "type": "string", - "default": "", - "description": "Term to search" - }, - "sortOrder": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Order of entries" - }, - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Maximum amount of entries, limited to 25" - }, - "cursor": { - "nullable": true, - "description": "Offset for searching", - "oneOf": [ - { - "type": "integer", - "format": "int64" - }, - { - "type": "string" - } - ] - }, - "from": { - "type": "string", - "default": "", - "description": "The current user URL" - } - } - } - } - } - }, "parameters": [ { "name": "providerId", @@ -7255,6 +7152,61 @@ "type": "string" } }, + { + "name": "term", + "in": "query", + "description": "Term to search", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "sortOrder", + "in": "query", + "description": "Order of entries", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "limit", + "in": "query", + "description": "Maximum amount of entries, limited to 25", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "cursor", + "in": "query", + "description": "Offset for searching", + "schema": { + "nullable": true, + "oneOf": [ + { + "type": "integer", + "format": "int64" + }, + { + "type": "string" + } + ] + } + }, + { + "name": "from", + "in": "query", + "description": "The current user URL", + "schema": { + "type": "string", + "default": "" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -7533,23 +7485,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "guestFallback": { - "type": "boolean", - "default": false, - "description": "Fallback to guest avatar if not found" - } - } - } - } - } - }, "parameters": [ { "name": "userId", @@ -7573,6 +7508,19 @@ 512 ] } + }, + { + "name": "guestFallback", + "in": "query", + "description": "Fallback to guest avatar if not found", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } } ], "responses": { @@ -7644,23 +7592,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "guestFallback": { - "type": "boolean", - "default": false, - "description": "Fallback to guest avatar if not found" - } - } - } - } - } - }, "parameters": [ { "name": "userId", @@ -7684,6 +7615,19 @@ 512 ] } + }, + { + "name": "guestFallback", + "in": "query", + "description": "Fallback to guest avatar if not found", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } } ], "responses": { @@ -7888,24 +7832,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "darkTheme": { - "type": "boolean", - "nullable": true, - "default": false, - "description": "Return dark avatar" - } - } - } - } - } - }, "parameters": [ { "name": "guestName", @@ -7929,6 +7855,20 @@ 512 ] } + }, + { + "name": "darkTheme", + "in": "query", + "description": "Return dark avatar", + "schema": { + "type": "integer", + "nullable": true, + "default": 0, + "enum": [ + 0, + 1 + ] + } } ], "responses": { @@ -8250,59 +8190,89 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "file": { - "type": "string", - "default": "", - "description": "Path of the file" - }, - "x": { - "type": "integer", - "format": "int64", - "default": 32, - "description": "Width of the preview. A width of -1 will use the original image width." - }, - "y": { - "type": "integer", - "format": "int64", - "default": 32, - "description": "Height of the preview. A height of -1 will use the original image height." - }, - "a": { - "type": "boolean", - "default": false, - "description": "Preserve the aspect ratio" - }, - "forceIcon": { - "type": "boolean", - "default": true, - "description": "Force returning an icon" - }, - "mode": { - "type": "string", - "default": "fill", - "enum": [ - "fill", - "cover" - ], - "description": "How to crop the image" - }, - "mimeFallback": { - "type": "boolean", - "default": false, - "description": "Whether to fallback to the mime icon if no preview is available" - } - } - } + "parameters": [ + { + "name": "file", + "in": "query", + "description": "Path of the file", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "x", + "in": "query", + "description": "Width of the preview. A width of -1 will use the original image width.", + "schema": { + "type": "integer", + "format": "int64", + "default": 32 + } + }, + { + "name": "y", + "in": "query", + "description": "Height of the preview. A height of -1 will use the original image height.", + "schema": { + "type": "integer", + "format": "int64", + "default": 32 + } + }, + { + "name": "a", + "in": "query", + "description": "Preserve the aspect ratio", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, + { + "name": "forceIcon", + "in": "query", + "description": "Force returning an icon", + "schema": { + "type": "integer", + "default": 1, + "enum": [ + 0, + 1 + ] + } + }, + { + "name": "mode", + "in": "query", + "description": "How to crop the image", + "schema": { + "type": "string", + "default": "fill", + "enum": [ + "fill", + "cover" + ] + } + }, + { + "name": "mimeFallback", + "in": "query", + "description": "Whether to fallback to the mime icon if no preview is available", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] } } - }, + ], "responses": { "200": { "description": "Preview returned", @@ -8367,60 +8337,90 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "fileId": { - "type": "integer", - "format": "int64", - "default": -1, - "description": "ID of the file" - }, - "x": { - "type": "integer", - "format": "int64", - "default": 32, - "description": "Width of the preview. A width of -1 will use the original image width." - }, - "y": { - "type": "integer", - "format": "int64", - "default": 32, - "description": "Height of the preview. A height of -1 will use the original image height." - }, - "a": { - "type": "boolean", - "default": false, - "description": "Preserve the aspect ratio" - }, - "forceIcon": { - "type": "boolean", - "default": true, - "description": "Force returning an icon" - }, - "mode": { - "type": "string", - "default": "fill", - "enum": [ - "fill", - "cover" - ], - "description": "How to crop the image" - }, - "mimeFallback": { - "type": "boolean", - "default": false, - "description": "Whether to fallback to the mime icon if no preview is available" - } - } - } + "parameters": [ + { + "name": "fileId", + "in": "query", + "description": "ID of the file", + "schema": { + "type": "integer", + "format": "int64", + "default": -1 + } + }, + { + "name": "x", + "in": "query", + "description": "Width of the preview. A width of -1 will use the original image width.", + "schema": { + "type": "integer", + "format": "int64", + "default": 32 + } + }, + { + "name": "y", + "in": "query", + "description": "Height of the preview. A height of -1 will use the original image height.", + "schema": { + "type": "integer", + "format": "int64", + "default": 32 + } + }, + { + "name": "a", + "in": "query", + "description": "Preserve the aspect ratio", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, + { + "name": "forceIcon", + "in": "query", + "description": "Force returning an icon", + "schema": { + "type": "integer", + "default": 1, + "enum": [ + 0, + 1 + ] + } + }, + { + "name": "mode", + "in": "query", + "description": "How to crop the image", + "schema": { + "type": "string", + "default": "fill", + "enum": [ + "fill", + "cover" + ] + } + }, + { + "name": "mimeFallback", + "in": "query", + "description": "Whether to fallback to the mime icon if no preview is available", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] } } - }, + ], "responses": { "200": { "description": "Preview returned", -- cgit v1.2.3