Skip to content

Commit 0f5fd4a

Browse files
committed
chore(openapi): regenerate administration spec
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent e15f0c0 commit 0f5fd4a

1 file changed

Lines changed: 313 additions & 0 deletions

File tree

openapi-administration.json

Lines changed: 313 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4677,6 +4677,11 @@
46774677
"type": "string"
46784678
}
46794679
]
4680+
},
4681+
"allowChildOverride": {
4682+
"type": "boolean",
4683+
"default": false,
4684+
"description": "Whether lower layers may override this system default."
46804685
}
46814686
}
46824687
}
@@ -4811,6 +4816,314 @@
48114816
}
48124817
}
48134818
},
4819+
"/ocs/v2.php/apps/libresign/api/{apiVersion}/policies/user/{userId}/{policyKey}": {
4820+
"put": {
4821+
"operationId": "policy-set-user-policy-for-user",
4822+
"summary": "Save a user policy preference for a target user (admin scope)",
4823+
"description": "This endpoint requires admin access",
4824+
"tags": [
4825+
"policy"
4826+
],
4827+
"security": [
4828+
{
4829+
"bearer_auth": []
4830+
},
4831+
{
4832+
"basic_auth": []
4833+
}
4834+
],
4835+
"requestBody": {
4836+
"required": false,
4837+
"content": {
4838+
"application/json": {
4839+
"schema": {
4840+
"type": "object",
4841+
"properties": {
4842+
"value": {
4843+
"nullable": true,
4844+
"description": "Policy value to persist as target user preference.",
4845+
"anyOf": [
4846+
{
4847+
"type": "boolean"
4848+
},
4849+
{
4850+
"type": "integer",
4851+
"format": "int64"
4852+
},
4853+
{
4854+
"type": "number",
4855+
"format": "double"
4856+
},
4857+
{
4858+
"type": "string"
4859+
}
4860+
]
4861+
}
4862+
}
4863+
}
4864+
}
4865+
}
4866+
},
4867+
"parameters": [
4868+
{
4869+
"name": "apiVersion",
4870+
"in": "path",
4871+
"required": true,
4872+
"schema": {
4873+
"type": "string",
4874+
"enum": [
4875+
"v1"
4876+
],
4877+
"default": "v1"
4878+
}
4879+
},
4880+
{
4881+
"name": "userId",
4882+
"in": "path",
4883+
"description": "Target user identifier that receives the policy preference.",
4884+
"required": true,
4885+
"schema": {
4886+
"type": "string",
4887+
"pattern": "^[^/]+$"
4888+
}
4889+
},
4890+
{
4891+
"name": "policyKey",
4892+
"in": "path",
4893+
"description": "Policy identifier to persist for the target user.",
4894+
"required": true,
4895+
"schema": {
4896+
"type": "string",
4897+
"pattern": "^[a-z0-9_]+$"
4898+
}
4899+
},
4900+
{
4901+
"name": "OCS-APIRequest",
4902+
"in": "header",
4903+
"description": "Required to be true for the API request to pass",
4904+
"required": true,
4905+
"schema": {
4906+
"type": "boolean",
4907+
"default": true
4908+
}
4909+
}
4910+
],
4911+
"responses": {
4912+
"200": {
4913+
"description": "OK",
4914+
"content": {
4915+
"application/json": {
4916+
"schema": {
4917+
"type": "object",
4918+
"required": [
4919+
"ocs"
4920+
],
4921+
"properties": {
4922+
"ocs": {
4923+
"type": "object",
4924+
"required": [
4925+
"meta",
4926+
"data"
4927+
],
4928+
"properties": {
4929+
"meta": {
4930+
"$ref": "#/components/schemas/OCSMeta"
4931+
},
4932+
"data": {
4933+
"$ref": "#/components/schemas/SystemPolicyWriteResponse"
4934+
}
4935+
}
4936+
}
4937+
}
4938+
}
4939+
}
4940+
}
4941+
},
4942+
"400": {
4943+
"description": "Invalid policy value",
4944+
"content": {
4945+
"application/json": {
4946+
"schema": {
4947+
"type": "object",
4948+
"required": [
4949+
"ocs"
4950+
],
4951+
"properties": {
4952+
"ocs": {
4953+
"type": "object",
4954+
"required": [
4955+
"meta",
4956+
"data"
4957+
],
4958+
"properties": {
4959+
"meta": {
4960+
"$ref": "#/components/schemas/OCSMeta"
4961+
},
4962+
"data": {
4963+
"$ref": "#/components/schemas/ErrorResponse"
4964+
}
4965+
}
4966+
}
4967+
}
4968+
}
4969+
}
4970+
}
4971+
},
4972+
"500": {
4973+
"description": "Internal server error",
4974+
"content": {
4975+
"application/json": {
4976+
"schema": {
4977+
"type": "object",
4978+
"required": [
4979+
"ocs"
4980+
],
4981+
"properties": {
4982+
"ocs": {
4983+
"type": "object",
4984+
"required": [
4985+
"meta",
4986+
"data"
4987+
],
4988+
"properties": {
4989+
"meta": {
4990+
"$ref": "#/components/schemas/OCSMeta"
4991+
},
4992+
"data": {
4993+
"$ref": "#/components/schemas/ErrorResponse"
4994+
}
4995+
}
4996+
}
4997+
}
4998+
}
4999+
}
5000+
}
5001+
}
5002+
}
5003+
},
5004+
"delete": {
5005+
"operationId": "policy-clear-user-policy-for-user",
5006+
"summary": "Clear a user policy preference for a target user (admin scope)",
5007+
"description": "This endpoint requires admin access",
5008+
"tags": [
5009+
"policy"
5010+
],
5011+
"security": [
5012+
{
5013+
"bearer_auth": []
5014+
},
5015+
{
5016+
"basic_auth": []
5017+
}
5018+
],
5019+
"parameters": [
5020+
{
5021+
"name": "apiVersion",
5022+
"in": "path",
5023+
"required": true,
5024+
"schema": {
5025+
"type": "string",
5026+
"enum": [
5027+
"v1"
5028+
],
5029+
"default": "v1"
5030+
}
5031+
},
5032+
{
5033+
"name": "userId",
5034+
"in": "path",
5035+
"description": "Target user identifier that receives the policy preference removal.",
5036+
"required": true,
5037+
"schema": {
5038+
"type": "string",
5039+
"pattern": "^[^/]+$"
5040+
}
5041+
},
5042+
{
5043+
"name": "policyKey",
5044+
"in": "path",
5045+
"description": "Policy identifier to clear for the target user.",
5046+
"required": true,
5047+
"schema": {
5048+
"type": "string",
5049+
"pattern": "^[a-z0-9_]+$"
5050+
}
5051+
},
5052+
{
5053+
"name": "OCS-APIRequest",
5054+
"in": "header",
5055+
"description": "Required to be true for the API request to pass",
5056+
"required": true,
5057+
"schema": {
5058+
"type": "boolean",
5059+
"default": true
5060+
}
5061+
}
5062+
],
5063+
"responses": {
5064+
"200": {
5065+
"description": "OK",
5066+
"content": {
5067+
"application/json": {
5068+
"schema": {
5069+
"type": "object",
5070+
"required": [
5071+
"ocs"
5072+
],
5073+
"properties": {
5074+
"ocs": {
5075+
"type": "object",
5076+
"required": [
5077+
"meta",
5078+
"data"
5079+
],
5080+
"properties": {
5081+
"meta": {
5082+
"$ref": "#/components/schemas/OCSMeta"
5083+
},
5084+
"data": {
5085+
"$ref": "#/components/schemas/SystemPolicyWriteResponse"
5086+
}
5087+
}
5088+
}
5089+
}
5090+
}
5091+
}
5092+
}
5093+
},
5094+
"500": {
5095+
"description": "Internal server error",
5096+
"content": {
5097+
"application/json": {
5098+
"schema": {
5099+
"type": "object",
5100+
"required": [
5101+
"ocs"
5102+
],
5103+
"properties": {
5104+
"ocs": {
5105+
"type": "object",
5106+
"required": [
5107+
"meta",
5108+
"data"
5109+
],
5110+
"properties": {
5111+
"meta": {
5112+
"$ref": "#/components/schemas/OCSMeta"
5113+
},
5114+
"data": {
5115+
"$ref": "#/components/schemas/ErrorResponse"
5116+
}
5117+
}
5118+
}
5119+
}
5120+
}
5121+
}
5122+
}
5123+
}
5124+
}
5125+
}
5126+
},
48145127
"/ocs/v2.php/apps/libresign/api/{apiVersion}/setting/has-root-cert": {
48155128
"get": {
48165129
"operationId": "setting-has-root-cert",

0 commit comments

Comments
 (0)