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 committed Oct 29, 2024
1 parent c3295bf commit e50089e
Show file tree
Hide file tree
Showing 4 changed files with 502 additions and 0 deletions.
163 changes: 163 additions & 0 deletions openapi-full.json
Original file line number Diff line number Diff line change
Expand Up @@ -6086,6 +6086,169 @@
}
}
},
"/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/summarize": {
"get": {
"operationId": "chat-summarize-chat",
"summary": "Summarize next bunch of chat messages from a given offset",
"tags": [
"chat"
],
"security": [
{},
{
"bearer_auth": []
},
{
"basic_auth": []
}
],
"parameters": [
{
"name": "apiVersion",
"in": "path",
"required": true,
"schema": {
"type": "string",
"enum": [
"v1"
],
"default": "v1"
}
},
{
"name": "token",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9]{4,30}$"
}
},
{
"name": "fromMessageId",
"in": "query",
"description": "Offset from where on the summary should be generated",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "OCS-APIRequest",
"in": "header",
"description": "Required to be true for the API request to pass",
"required": true,
"schema": {
"type": "boolean",
"default": true
}
}
],
"responses": {
"201": {
"description": "Summary was scheduled",
"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": [
"taskId",
"nextOffset"
],
"properties": {
"taskId": {
"type": "integer",
"format": "int64"
},
"nextOffset": {
"type": "integer",
"format": "int64"
}
}
}
}
}
}
}
}
}
},
"400": {
"description": "No AI provider available or summarizing failed",
"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",
"enum": [
"ai-no-provider",
"ai-error"
]
}
}
}
}
}
}
}
}
}
},
"204": {
"description": "No messages found to summarize"
},
"500": {
"description": "",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
}
}
}
},
"/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/{messageId}": {
"delete": {
"operationId": "chat-delete-message",
Expand Down
163 changes: 163 additions & 0 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -5973,6 +5973,169 @@
}
}
},
"/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/summarize": {
"get": {
"operationId": "chat-summarize-chat",
"summary": "Summarize next bunch of chat messages from a given offset",
"tags": [
"chat"
],
"security": [
{},
{
"bearer_auth": []
},
{
"basic_auth": []
}
],
"parameters": [
{
"name": "apiVersion",
"in": "path",
"required": true,
"schema": {
"type": "string",
"enum": [
"v1"
],
"default": "v1"
}
},
{
"name": "token",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9]{4,30}$"
}
},
{
"name": "fromMessageId",
"in": "query",
"description": "Offset from where on the summary should be generated",
"required": true,
"schema": {
"type": "integer",
"format": "int64",
"minimum": 1
}
},
{
"name": "OCS-APIRequest",
"in": "header",
"description": "Required to be true for the API request to pass",
"required": true,
"schema": {
"type": "boolean",
"default": true
}
}
],
"responses": {
"201": {
"description": "Summary was scheduled",
"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": [
"taskId",
"nextOffset"
],
"properties": {
"taskId": {
"type": "integer",
"format": "int64"
},
"nextOffset": {
"type": "integer",
"format": "int64"
}
}
}
}
}
}
}
}
}
},
"400": {
"description": "No AI provider available or summarizing failed",
"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",
"enum": [
"ai-no-provider",
"ai-error"
]
}
}
}
}
}
}
}
}
}
},
"204": {
"description": "No messages found to summarize"
},
"500": {
"description": "",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
}
}
}
},
"/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/{messageId}": {
"delete": {
"operationId": "chat-delete-message",
Expand Down
Loading

0 comments on commit e50089e

Please sign in to comment.