summaryrefslogtreecommitdiffstats
path: root/lib/public/RichObjectStrings
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-09-17 15:08:16 +0200
committerJoas Schilling <coding@schilljs.com>2019-09-17 15:08:54 +0200
commit23cf72493a73486fe590f578b2e3f5e4b907a405 (patch)
treeaf7a0b1a6c487d6139a7c8048f333e07fc70a6e5 /lib/public/RichObjectStrings
parentd43a478840ace4cf827643f3254288b66eb75a8a (diff)
downloadnextcloud-server-23cf72493a73486fe590f578b2e3f5e4b907a405.tar.gz
nextcloud-server-23cf72493a73486fe590f578b2e3f5e4b907a405.zip
Add talk-attachment as a rich object type
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/RichObjectStrings')
-rw-r--r--lib/public/RichObjectStrings/Definitions.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/public/RichObjectStrings/Definitions.php b/lib/public/RichObjectStrings/Definitions.php
index 3476777e0db..55c31607659 100644
--- a/lib/public/RichObjectStrings/Definitions.php
+++ b/lib/public/RichObjectStrings/Definitions.php
@@ -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',