Add talk-attachment as a rich object type

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2019-09-17 15:08:16 +02:00
parent d43a478840
commit 23cf72493a
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with 37 additions and 0 deletions

View File

@ -405,6 +405,43 @@ class Definitions {
],
],
],
'talk-attachment' => [
'author' => 'Nextcloud',
'app' => 'talk',
'since' => '18.0.0',
'parameters' => [
'id' => [
'since' => '18.0.0',
'required' => true,
'description' => 'The id used to identify the attachment on the instance',
'example' => '12345',
],
'name' => [
'since' => '18.0.0',
'required' => true,
'description' => 'The name of the attachment',
'example' => 'John Doe',
],
'conversation' => [
'since' => '18.0.0',
'required' => true,
'description' => 'The token of the conversation',
'example' => 'a1b2c3d4',
],
'mimetype' => [
'since' => '18.0.0',
'required' => false,
'description' => 'The mimetype of the file/folder to allow clients to show a placeholder',
'example' => 'text/plain',
],
'preview-available' => [
'since' => '18.0.0',
'required' => false,
'description' => 'Whether or not a preview is available. If `no` the mimetype icon should be used',
'example' => 'yes',
],
],
],
'user' => [
'author' => 'Nextcloud',
'app' => 'core',