Skip to content

Commit

Permalink
chore(assets): Recompile assets
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen authored and come-nc committed Aug 5, 2024
1 parent d5c85af commit 555568b
Show file tree
Hide file tree
Showing 4 changed files with 804 additions and 212 deletions.
246 changes: 210 additions & 36 deletions openapi-administration.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@
"/ocs/v2.php/apps/notifications/api/{apiVersion}/admin_notifications/{userId}": {
"post": {
"operationId": "api-generate-notification",
"summary": "Generate a notification for a user",
"summary": "Generate a notification for a user (deprecated, use v3 instead)",
"description": "This endpoint requires admin access",
"deprecated": true,
"tags": [
"api"
],
Expand All @@ -99,25 +100,31 @@
"basic_auth": []
}
],
"parameters": [
{
"name": "shortMessage",
"in": "query",
"description": "Subject of the notification",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "longMessage",
"in": "query",
"description": "Message of the notification",
"schema": {
"type": "string",
"default": ""
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"shortMessage"
],
"properties": {
"shortMessage": {
"type": "string",
"description": "Subject of the notification"
},
"longMessage": {
"type": "string",
"default": "",
"description": "Message of the notification"
}
}
}
}
},
}
},
"parameters": [
{
"name": "apiVersion",
"in": "path",
Expand Down Expand Up @@ -273,13 +280,13 @@
}
}
},
"/ocs/v2.php/apps/notifications/api/{apiVersion}/settings/admin": {
"/ocs/v2.php/apps/notifications/api/{apiVersion3}/admin_notifications/{userId}": {
"post": {
"operationId": "settings-admin",
"summary": "Update default notification settings for new users",
"operationId": "api-generate-notification-v3",
"summary": "Generate a notification with rich object parameters for a user",
"description": "This endpoint requires admin access",
"tags": [
"settings"
"api"
],
"security": [
{
Expand All @@ -289,35 +296,202 @@
"basic_auth": []
}
],
"requestBody": {
"required": false,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"subject": {
"type": "string",
"default": "",
"description": "Subject of the notification"
},
"message": {
"type": "string",
"default": "",
"description": "Message of the notification"
},
"subjectParameters": {
"type": "object",
"default": [],
"description": "Rich objects to fill the subject placeholders, {@see \\OCP\\RichObjectStrings\\Definitions}",
"additionalProperties": {
"$ref": "#/components/schemas/RichObjectParameter"
}
},
"messageParameters": {
"type": "object",
"default": [],
"description": "Rich objects to fill the message placeholders, {@see \\OCP\\RichObjectStrings\\Definitions}",
"additionalProperties": {
"$ref": "#/components/schemas/RichObjectParameter"
}
}
}
}
}
}
},
"parameters": [
{
"name": "batchSetting",
"in": "query",
"description": "How often E-mails about missed notifications should be sent (hourly: 1; every three hours: 2; daily: 3; weekly: 4)",
"name": "apiVersion3",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64"
"type": "string",
"pattern": "^(v3)$"
}
},
{
"name": "soundNotification",
"in": "query",
"description": "Enable sound for notifications ('yes' or 'no')",
"name": "userId",
"in": "path",
"description": "ID of the user",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "soundTalk",
"in": "query",
"description": "Enable sound for Talk notifications ('yes' or 'no')",
"name": "OCS-APIRequest",
"in": "header",
"description": "Required to be true for the API request to pass",
"required": true,
"schema": {
"type": "string"
"type": "boolean",
"default": true
}
}
],
"responses": {
"200": {
"description": "Notification generated successfully, returned id is the notification ID for future delete requests",
"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": [
"id"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
}
}
}
}
}
}
}
}
}
},
"400": {
"description": "Provided data was invalid, check error field of the response of log file for details",
"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": [
"error"
],
"properties": {
"error": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
}
},
"/ocs/v2.php/apps/notifications/api/{apiVersion}/settings/admin": {
"post": {
"operationId": "settings-admin",
"summary": "Update default notification settings for new users",
"description": "This endpoint requires admin access",
"tags": [
"settings"
],
"security": [
{
"bearer_auth": []
},
{
"basic_auth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"batchSetting",
"soundNotification",
"soundTalk"
],
"properties": {
"batchSetting": {
"type": "integer",
"format": "int64",
"description": "How often E-mails about missed notifications should be sent (hourly: 1; every three hours: 2; daily: 3; weekly: 4)"
},
"soundNotification": {
"type": "string",
"description": "Enable sound for notifications ('yes' or 'no')"
},
"soundTalk": {
"type": "string",
"description": "Enable sound for Talk notifications ('yes' or 'no')"
}
}
}
}
}
},
"parameters": [
{
"name": "apiVersion",
"in": "path",
Expand Down Expand Up @@ -375,4 +549,4 @@
}
},
"tags": []
}
}
Loading

0 comments on commit 555568b

Please sign in to comment.