Passed
Push — master ( 54f2d9...794985 )
by Roeland
12:12 queued 10s
created
lib/public/RichObjectStrings/Definitions.php 1 patch
Indentation   +484 added lines, -484 removed lines patch added patch discarded remove patch
@@ -33,490 +33,490 @@
 block discarded – undo
33 33
  * @since 11.0.0
34 34
  */
35 35
 class Definitions {
36
-	/**
37
-	 * @var array
38
-	 * @since 11.0.0
39
-	 */
40
-	public $definitions = [
41
-		'addressbook' => [
42
-			'author' => 'Nextcloud',
43
-			'app' => 'dav',
44
-			'since' => '11.0.0',
45
-			'parameters' => [
46
-				'id' => [
47
-					'since' => '11.0.0',
48
-					'required' => true,
49
-					'description' => 'The id used to identify the addressbook on the instance',
50
-					'example' => '42',
51
-				],
52
-				'name' => [
53
-					'since' => '11.0.0',
54
-					'required' => true,
55
-					'description' => 'The display name of the addressbook which should be used in the visual representation',
56
-					'example' => 'Contacts',
57
-				],
58
-			],
59
-		],
60
-		'addressbook-contact' => [
61
-			'author' => 'Nextcloud',
62
-			'app' => 'dav',
63
-			'since' => '11.0.0',
64
-			'parameters' => [
65
-				'id' => [
66
-					'since' => '11.0.0',
67
-					'required' => true,
68
-					'description' => 'The id used to identify the contact on the instance',
69
-					'example' => '42',
70
-				],
71
-				'name' => [
72
-					'since' => '11.0.0',
73
-					'required' => true,
74
-					'description' => 'The display name of the contact which should be used in the visual representation',
75
-					'example' => 'John Doe',
76
-				],
77
-			],
78
-		],
79
-		'announcement' => [
80
-			'author' => 'Joas Schilling',
81
-			'app' => 'announcementcenter',
82
-			'since' => '11.0.0',
83
-			'parameters' => [
84
-				'id' => [
85
-					'since' => '11.0.0',
86
-					'required' => true, 'description' => 'The id used to identify the announcement on the instance',
87
-					'example' => '42',
88
-				],
89
-				'name' => [
90
-					'since' => '11.0.0',
91
-					'required' => true,
92
-					'description' => 'The announcement subject which should be used in the visual representation',
93
-					'example' => 'file.txt',
94
-				],
95
-				'link' => [
96
-					'since' => '11.0.0',
97
-					'required' => false,
98
-					'description' => 'The full URL to the file',
99
-					'example' => 'http://localhost/index.php/apps/announcements/#23',
100
-				],
101
-			],
102
-		],
103
-		'app' => [
104
-			'author' => 'Nextcloud',
105
-			'app' => 'updatenotification',
106
-			'since' => '11.0.0',
107
-			'parameters' => [
108
-				'id' => [
109
-					'since' => '11.0.0',
110
-					'required' => true, 'description' => 'The app id',
111
-					'example' => 'updatenotification',
112
-				],
113
-				'name' => [
114
-					'since' => '11.0.0',
115
-					'required' => true,
116
-					'description' => 'The name of the app which should be used in the visual representation',
117
-					'example' => 'Update notification',
118
-				],
119
-			],
120
-		],
121
-		'calendar' => [
122
-			'author' => 'Nextcloud',
123
-			'app' => 'dav',
124
-			'since' => '11.0.0',
125
-			'parameters' => [
126
-				'id' => [
127
-					'since' => '11.0.0',
128
-					'required' => true,
129
-					'description' => 'The id used to identify the calendar on the instance',
130
-					'example' => '42',
131
-				],
132
-				'name' => [
133
-					'since' => '11.0.0',
134
-					'required' => true,
135
-					'description' => 'The display name of the calendar which should be used in the visual representation',
136
-					'example' => 'Personal',
137
-				],
138
-			],
139
-		],
140
-		'calendar-event' => [
141
-			'author' => 'Nextcloud',
142
-			'app' => 'dav',
143
-			'since' => '11.0.0',
144
-			'parameters' => [
145
-				'id' => [
146
-					'since' => '11.0.0',
147
-					'required' => true,
148
-					'description' => 'The id used to identify the event on the instance',
149
-					'example' => '42',
150
-				],
151
-				'name' => [
152
-					'since' => '11.0.0',
153
-					'required' => true,
154
-					'description' => 'The display name of the event which should be used in the visual representation',
155
-					'example' => 'Workout',
156
-				],
157
-				'link' => [
158
-					'since' => '19.0.0',
159
-					'required' => false,
160
-					'description' => 'A link to the page displaying the calendar',
161
-					'example' => 'http://localhost/index.php/apps/calendar/dayGridMonth/2020-01-20/edit/sidebar/base64string/1579046400'
162
-				]
163
-			],
164
-		],
165
-		'call' => [
166
-			'author' => 'Nextcloud',
167
-			'app' => 'spreed',
168
-			'since' => '11.0.2',
169
-			'parameters' => [
170
-				'id' => [
171
-					'since' => '11.0.2',
172
-					'required' => true,
173
-					'description' => 'The id used to identify the call on the instance',
174
-					'example' => '42',
175
-				],
176
-				'name' => [
177
-					'since' => '11.0.2',
178
-					'required' => true,
179
-					'description' => 'The display name of the call which should be used in the visual representation',
180
-					'example' => 'Company call',
181
-				],
182
-				'call-type' => [
183
-					'since' => '11.0.2',
184
-					'required' => true,
185
-					'description' => 'The type of the call: one2one, group or public',
186
-					'example' => 'one2one',
187
-				],
188
-				'link' => [
189
-					'since' => '19.0.0',
190
-					'required' => false,
191
-					'description' => 'The link to the conversation',
192
-					'example' => 'https://localhost/index.php/call/R4nd0mToken',
193
-				],
194
-			],
195
-		],
196
-		'circle' => [
197
-			'author' => 'Maxence Lange',
198
-			'app' => 'circles',
199
-			'since' => '12.0.0',
200
-			'parameters' => [
201
-				'id' => [
202
-					'since' => '12.0.0',
203
-					'required' => true,
204
-					'description' => 'The id used to identify the circle on the instance',
205
-					'example' => '42',
206
-				],
207
-				'name' => [
208
-					'since' => '12.0.0',
209
-					'required' => true,
210
-					'description' => 'The display name of the circle which should be used in the visual representation',
211
-					'example' => 'My friends',
212
-				],
213
-				'link' => [
214
-					'since' => '12.0.0',
215
-					'required' => true,
216
-					'description' => 'The full URL to the circle',
217
-					'example' => 'http://localhost/index.php/apps/circles/#42',
218
-				],
219
-			],
220
-		],
221
-		'email' => [
222
-			'author' => 'Nextcloud',
223
-			'app' => 'sharebymail',
224
-			'since' => '11.0.0',
225
-			'parameters' => [
226
-				'id' => [
227
-					'since' => '11.0.0',
228
-					'required' => true,
229
-					'description' => 'The mail-address used to identify the event on the instance',
230
-					'example' => 'test@localhost',
231
-				],
232
-				'name' => [
233
-					'since' => '11.0.0',
234
-					'required' => true,
235
-					'description' => 'The display name of a matching contact or the email (fallback) which should be used in the visual representation',
236
-					'example' => 'Foo Bar',
237
-				],
238
-			],
239
-		],
240
-		'file' => [
241
-			'author' => 'Nextcloud',
242
-			'app' => 'dav',
243
-			'since' => '11.0.0',
244
-			'parameters' => [
245
-				'id' => [
246
-					'since' => '11.0.0',
247
-					'required' => true,
248
-					'description' => 'The id used to identify the file on the instance',
249
-					'example' => '42',
250
-				],
251
-				'name' => [
252
-					'since' => '11.0.0',
253
-					'required' => true,
254
-					'description' => 'The file name which should be used in the visual representation',
255
-					'example' => 'file.txt',
256
-				],
257
-				'size' => [
258
-					'since' => '21.0.0',
259
-					'required' => false,
260
-					'description' => 'The file size in bytes',
261
-					'example' => '3145728',
262
-				],
263
-				'path' => [
264
-					'since' => '11.0.0',
265
-					'required' => true,
266
-					'description' => 'The full path of the file for the user, should not start with a slash',
267
-					'example' => 'path/to/file.txt',
268
-				],
269
-				'link' => [
270
-					'since' => '11.0.0',
271
-					'required' => false,
272
-					'description' => 'The full URL to the file',
273
-					'example' => 'http://localhost/index.php/f/42',
274
-				],
275
-				'mimetype' => [
276
-					'since' => '16.0.0',
277
-					'required' => false,
278
-					'description' => 'The mimetype of the file/folder to allow clients to show a placeholder',
279
-					'example' => 'text/plain',
280
-				],
281
-				'preview-available' => [
282
-					'since' => '16.0.0',
283
-					'required' => false,
284
-					'description' => 'Whether or not a preview is available. If `no` the mimetype icon should be used',
285
-					'example' => 'yes',
286
-				],
287
-			],
288
-		],
289
-		'guest' => [
290
-			'author' => 'Nextcloud',
291
-			'app' => 'spreed',
292
-			'since' => '17.0.0',
293
-			'parameters' => [
294
-				'id' => [
295
-					'since' => '17.0.0',
296
-					'required' => true,
297
-					'description' => 'The id used to identify the guest user',
298
-					'example' => '42',
299
-				],
300
-				'name' => [
301
-					'since' => '17.0.0',
302
-					'required' => true,
303
-					'description' => 'Potential displayname of the guest user',
304
-					'example' => 'Foobar Cats',
305
-				],
306
-			],
307
-		],
308
-		'highlight' => [
309
-			'author' => 'Nextcloud',
310
-			'app' => 'core',
311
-			'since' => '13.0.0',
312
-			'parameters' => [
313
-				'id' => [
314
-					'since' => '13.0.0',
315
-					'required' => true,
316
-					'description' => 'The id used to identify the highlighted object on the instance',
317
-					'example' => '42',
318
-				],
319
-				'name' => [
320
-					'since' => '13.0.0',
321
-					'required' => true,
322
-					'description' => 'The string that should be highlighted.',
323
-					'example' => 'Hello World',
324
-				],
325
-				'link' => [
326
-					'since' => '13.0.0',
327
-					'required' => false,
328
-					'description' => 'The full URL that should be opened when clicking the highlighted text.',
329
-					'example' => 'http://localhost/index.php/f/42',
330
-				],
331
-			],
332
-		],
333
-		'open-graph' => [
334
-			'author' => 'Maxence Lange',
335
-			'app' => 'mood',
336
-			'since' => '12.0.0',
337
-			'parameters' => [
338
-				'id' => [
339
-					'since' => '12.0.0',
340
-					'required' => true,
341
-					'description' => 'The id used to identify the open graph data on the instance',
342
-					'example' => '42',
343
-				],
344
-				'name' => [
345
-					'since' => '12.0.0',
346
-					'required' => true,
347
-					'description' => 'The open graph title of the website',
348
-					'example' => 'This is a website',
349
-				],
350
-				'description' => [
351
-					'since' => '12.0.0',
352
-					'required' => false,
353
-					'description' => 'The open graph description from the website',
354
-					'example' => 'This is the description of the website',
355
-				],
356
-				'thumb' => [
357
-					'since' => '12.0.0',
358
-					'required' => false,
359
-					'description' => 'The full URL of the open graph thumbnail',
360
-					'example' => 'http://localhost/index.php/apps/mood/data/image?url=https%3A%2F%2Fthumb.example.com%2Fimage.png',
361
-				],
362
-				'website' => [
363
-					'since' => '12.0.0',
364
-					'required' => false,
365
-					'description' => 'The name of the described website',
366
-					'example' => 'Nextcloud - App Store',
367
-				],
368
-				'link' => [
369
-					'since' => '12.0.0',
370
-					'required' => false,
371
-					'description' => 'The full link to the website',
372
-					'example' => 'https://apps.nextcloud.com/apps/mood',
373
-				],
374
-			],
375
-		],
376
-		'pending-federated-share' => [
377
-			'author' => 'Nextcloud',
378
-			'app' => 'dav',
379
-			'since' => '11.0.0',
380
-			'parameters' => [
381
-				'id' => [
382
-					'since' => '11.0.0',
383
-					'required' => true,
384
-					'description' => 'The id used to identify the federated share on the instance',
385
-					'example' => '42',
386
-				],
387
-				'name' => [
388
-					'since' => '11.0.0',
389
-					'required' => true,
390
-					'description' => 'The name of the shared item which should be used in the visual representation',
391
-					'example' => 'file.txt',
392
-				],
393
-			],
394
-		],
395
-		'systemtag' => [
396
-			'author' => 'Nextcloud',
397
-			'app' => 'core',
398
-			'since' => '11.0.0',
399
-			'parameters' => [
400
-				'id' => [
401
-					'since' => '11.0.0',
402
-					'required' => true,
403
-					'description' => 'The id used to identify the systemtag on the instance',
404
-					'example' => '23',
405
-				],
406
-				'name' => [
407
-					'since' => '11.0.0',
408
-					'required' => true,
409
-					'description' => 'The display name of the systemtag which should be used in the visual representation',
410
-					'example' => 'Project 1',
411
-				],
412
-				'visibility' => [
413
-					'since' => '11.0.0',
414
-					'required' => true,
415
-					'description' => 'If the user can see the systemtag',
416
-					'example' => '1',
417
-				],
418
-				'assignable' => [
419
-					'since' => '11.0.0',
420
-					'required' => true,
421
-					'description' => 'If the user can assign the systemtag',
422
-					'example' => '0',
423
-				],
424
-			],
425
-		],
426
-		'talk-attachment' => [
427
-			'author' => 'Nextcloud',
428
-			'app' => 'talk',
429
-			'since' => '18.0.0',
430
-			'parameters' => [
431
-				'id' => [
432
-					'since' => '18.0.0',
433
-					'required' => true,
434
-					'description' => 'The id used to identify the attachment on the instance',
435
-					'example' => '12345',
436
-				],
437
-				'name' => [
438
-					'since' => '18.0.0',
439
-					'required' => true,
440
-					'description' => 'The name of the attachment',
441
-					'example' => 'John Doe',
442
-				],
443
-				'conversation' => [
444
-					'since' => '18.0.0',
445
-					'required' => true,
446
-					'description' => 'The token of the conversation',
447
-					'example' => 'a1b2c3d4',
448
-				],
449
-				'mimetype' => [
450
-					'since' => '18.0.0',
451
-					'required' => false,
452
-					'description' => 'The mimetype of the file/folder to allow clients to show a placeholder',
453
-					'example' => 'text/plain',
454
-				],
455
-				'preview-available' => [
456
-					'since' => '18.0.0',
457
-					'required' => false,
458
-					'description' => 'Whether or not a preview is available. If `no` the mimetype icon should be used',
459
-					'example' => 'yes',
460
-				],
461
-			],
462
-		],
463
-		'user' => [
464
-			'author' => 'Nextcloud',
465
-			'app' => 'core',
466
-			'since' => '11.0.0',
467
-			'parameters' => [
468
-				'id' => [
469
-					'since' => '11.0.0',
470
-					'required' => true,
471
-					'description' => 'The id used to identify the user on the instance',
472
-					'example' => 'johndoe',
473
-				],
474
-				'name' => [
475
-					'since' => '11.0.0',
476
-					'required' => true,
477
-					'description' => 'The display name of the user which should be used in the visual representation',
478
-					'example' => 'John Doe',
479
-				],
480
-				'server' => [
481
-					'since' => '11.0.0',
482
-					'required' => false,
483
-					'description' => 'The URL of the instance the user lives on',
484
-					'example' => 'localhost',
485
-				],
486
-			],
487
-		],
488
-		'user-group' => [
489
-			'author' => 'Nextcloud',
490
-			'app' => 'core',
491
-			'since' => '11.0.0',
492
-			'parameters' => [
493
-				'id' => [
494
-					'since' => '11.0.0',
495
-					'required' => true,
496
-					'description' => 'The id used to identify the group on the instance',
497
-					'example' => 'supportteam',
498
-				],
499
-				'name' => [
500
-					'since' => '11.0.0',
501
-					'required' => true,
502
-					'description' => 'The display name of the group which should be used in the visual representation',
503
-					'example' => 'Support Team',
504
-				],
505
-			],
506
-		],
507
-	];
36
+    /**
37
+     * @var array
38
+     * @since 11.0.0
39
+     */
40
+    public $definitions = [
41
+        'addressbook' => [
42
+            'author' => 'Nextcloud',
43
+            'app' => 'dav',
44
+            'since' => '11.0.0',
45
+            'parameters' => [
46
+                'id' => [
47
+                    'since' => '11.0.0',
48
+                    'required' => true,
49
+                    'description' => 'The id used to identify the addressbook on the instance',
50
+                    'example' => '42',
51
+                ],
52
+                'name' => [
53
+                    'since' => '11.0.0',
54
+                    'required' => true,
55
+                    'description' => 'The display name of the addressbook which should be used in the visual representation',
56
+                    'example' => 'Contacts',
57
+                ],
58
+            ],
59
+        ],
60
+        'addressbook-contact' => [
61
+            'author' => 'Nextcloud',
62
+            'app' => 'dav',
63
+            'since' => '11.0.0',
64
+            'parameters' => [
65
+                'id' => [
66
+                    'since' => '11.0.0',
67
+                    'required' => true,
68
+                    'description' => 'The id used to identify the contact on the instance',
69
+                    'example' => '42',
70
+                ],
71
+                'name' => [
72
+                    'since' => '11.0.0',
73
+                    'required' => true,
74
+                    'description' => 'The display name of the contact which should be used in the visual representation',
75
+                    'example' => 'John Doe',
76
+                ],
77
+            ],
78
+        ],
79
+        'announcement' => [
80
+            'author' => 'Joas Schilling',
81
+            'app' => 'announcementcenter',
82
+            'since' => '11.0.0',
83
+            'parameters' => [
84
+                'id' => [
85
+                    'since' => '11.0.0',
86
+                    'required' => true, 'description' => 'The id used to identify the announcement on the instance',
87
+                    'example' => '42',
88
+                ],
89
+                'name' => [
90
+                    'since' => '11.0.0',
91
+                    'required' => true,
92
+                    'description' => 'The announcement subject which should be used in the visual representation',
93
+                    'example' => 'file.txt',
94
+                ],
95
+                'link' => [
96
+                    'since' => '11.0.0',
97
+                    'required' => false,
98
+                    'description' => 'The full URL to the file',
99
+                    'example' => 'http://localhost/index.php/apps/announcements/#23',
100
+                ],
101
+            ],
102
+        ],
103
+        'app' => [
104
+            'author' => 'Nextcloud',
105
+            'app' => 'updatenotification',
106
+            'since' => '11.0.0',
107
+            'parameters' => [
108
+                'id' => [
109
+                    'since' => '11.0.0',
110
+                    'required' => true, 'description' => 'The app id',
111
+                    'example' => 'updatenotification',
112
+                ],
113
+                'name' => [
114
+                    'since' => '11.0.0',
115
+                    'required' => true,
116
+                    'description' => 'The name of the app which should be used in the visual representation',
117
+                    'example' => 'Update notification',
118
+                ],
119
+            ],
120
+        ],
121
+        'calendar' => [
122
+            'author' => 'Nextcloud',
123
+            'app' => 'dav',
124
+            'since' => '11.0.0',
125
+            'parameters' => [
126
+                'id' => [
127
+                    'since' => '11.0.0',
128
+                    'required' => true,
129
+                    'description' => 'The id used to identify the calendar on the instance',
130
+                    'example' => '42',
131
+                ],
132
+                'name' => [
133
+                    'since' => '11.0.0',
134
+                    'required' => true,
135
+                    'description' => 'The display name of the calendar which should be used in the visual representation',
136
+                    'example' => 'Personal',
137
+                ],
138
+            ],
139
+        ],
140
+        'calendar-event' => [
141
+            'author' => 'Nextcloud',
142
+            'app' => 'dav',
143
+            'since' => '11.0.0',
144
+            'parameters' => [
145
+                'id' => [
146
+                    'since' => '11.0.0',
147
+                    'required' => true,
148
+                    'description' => 'The id used to identify the event on the instance',
149
+                    'example' => '42',
150
+                ],
151
+                'name' => [
152
+                    'since' => '11.0.0',
153
+                    'required' => true,
154
+                    'description' => 'The display name of the event which should be used in the visual representation',
155
+                    'example' => 'Workout',
156
+                ],
157
+                'link' => [
158
+                    'since' => '19.0.0',
159
+                    'required' => false,
160
+                    'description' => 'A link to the page displaying the calendar',
161
+                    'example' => 'http://localhost/index.php/apps/calendar/dayGridMonth/2020-01-20/edit/sidebar/base64string/1579046400'
162
+                ]
163
+            ],
164
+        ],
165
+        'call' => [
166
+            'author' => 'Nextcloud',
167
+            'app' => 'spreed',
168
+            'since' => '11.0.2',
169
+            'parameters' => [
170
+                'id' => [
171
+                    'since' => '11.0.2',
172
+                    'required' => true,
173
+                    'description' => 'The id used to identify the call on the instance',
174
+                    'example' => '42',
175
+                ],
176
+                'name' => [
177
+                    'since' => '11.0.2',
178
+                    'required' => true,
179
+                    'description' => 'The display name of the call which should be used in the visual representation',
180
+                    'example' => 'Company call',
181
+                ],
182
+                'call-type' => [
183
+                    'since' => '11.0.2',
184
+                    'required' => true,
185
+                    'description' => 'The type of the call: one2one, group or public',
186
+                    'example' => 'one2one',
187
+                ],
188
+                'link' => [
189
+                    'since' => '19.0.0',
190
+                    'required' => false,
191
+                    'description' => 'The link to the conversation',
192
+                    'example' => 'https://localhost/index.php/call/R4nd0mToken',
193
+                ],
194
+            ],
195
+        ],
196
+        'circle' => [
197
+            'author' => 'Maxence Lange',
198
+            'app' => 'circles',
199
+            'since' => '12.0.0',
200
+            'parameters' => [
201
+                'id' => [
202
+                    'since' => '12.0.0',
203
+                    'required' => true,
204
+                    'description' => 'The id used to identify the circle on the instance',
205
+                    'example' => '42',
206
+                ],
207
+                'name' => [
208
+                    'since' => '12.0.0',
209
+                    'required' => true,
210
+                    'description' => 'The display name of the circle which should be used in the visual representation',
211
+                    'example' => 'My friends',
212
+                ],
213
+                'link' => [
214
+                    'since' => '12.0.0',
215
+                    'required' => true,
216
+                    'description' => 'The full URL to the circle',
217
+                    'example' => 'http://localhost/index.php/apps/circles/#42',
218
+                ],
219
+            ],
220
+        ],
221
+        'email' => [
222
+            'author' => 'Nextcloud',
223
+            'app' => 'sharebymail',
224
+            'since' => '11.0.0',
225
+            'parameters' => [
226
+                'id' => [
227
+                    'since' => '11.0.0',
228
+                    'required' => true,
229
+                    'description' => 'The mail-address used to identify the event on the instance',
230
+                    'example' => 'test@localhost',
231
+                ],
232
+                'name' => [
233
+                    'since' => '11.0.0',
234
+                    'required' => true,
235
+                    'description' => 'The display name of a matching contact or the email (fallback) which should be used in the visual representation',
236
+                    'example' => 'Foo Bar',
237
+                ],
238
+            ],
239
+        ],
240
+        'file' => [
241
+            'author' => 'Nextcloud',
242
+            'app' => 'dav',
243
+            'since' => '11.0.0',
244
+            'parameters' => [
245
+                'id' => [
246
+                    'since' => '11.0.0',
247
+                    'required' => true,
248
+                    'description' => 'The id used to identify the file on the instance',
249
+                    'example' => '42',
250
+                ],
251
+                'name' => [
252
+                    'since' => '11.0.0',
253
+                    'required' => true,
254
+                    'description' => 'The file name which should be used in the visual representation',
255
+                    'example' => 'file.txt',
256
+                ],
257
+                'size' => [
258
+                    'since' => '21.0.0',
259
+                    'required' => false,
260
+                    'description' => 'The file size in bytes',
261
+                    'example' => '3145728',
262
+                ],
263
+                'path' => [
264
+                    'since' => '11.0.0',
265
+                    'required' => true,
266
+                    'description' => 'The full path of the file for the user, should not start with a slash',
267
+                    'example' => 'path/to/file.txt',
268
+                ],
269
+                'link' => [
270
+                    'since' => '11.0.0',
271
+                    'required' => false,
272
+                    'description' => 'The full URL to the file',
273
+                    'example' => 'http://localhost/index.php/f/42',
274
+                ],
275
+                'mimetype' => [
276
+                    'since' => '16.0.0',
277
+                    'required' => false,
278
+                    'description' => 'The mimetype of the file/folder to allow clients to show a placeholder',
279
+                    'example' => 'text/plain',
280
+                ],
281
+                'preview-available' => [
282
+                    'since' => '16.0.0',
283
+                    'required' => false,
284
+                    'description' => 'Whether or not a preview is available. If `no` the mimetype icon should be used',
285
+                    'example' => 'yes',
286
+                ],
287
+            ],
288
+        ],
289
+        'guest' => [
290
+            'author' => 'Nextcloud',
291
+            'app' => 'spreed',
292
+            'since' => '17.0.0',
293
+            'parameters' => [
294
+                'id' => [
295
+                    'since' => '17.0.0',
296
+                    'required' => true,
297
+                    'description' => 'The id used to identify the guest user',
298
+                    'example' => '42',
299
+                ],
300
+                'name' => [
301
+                    'since' => '17.0.0',
302
+                    'required' => true,
303
+                    'description' => 'Potential displayname of the guest user',
304
+                    'example' => 'Foobar Cats',
305
+                ],
306
+            ],
307
+        ],
308
+        'highlight' => [
309
+            'author' => 'Nextcloud',
310
+            'app' => 'core',
311
+            'since' => '13.0.0',
312
+            'parameters' => [
313
+                'id' => [
314
+                    'since' => '13.0.0',
315
+                    'required' => true,
316
+                    'description' => 'The id used to identify the highlighted object on the instance',
317
+                    'example' => '42',
318
+                ],
319
+                'name' => [
320
+                    'since' => '13.0.0',
321
+                    'required' => true,
322
+                    'description' => 'The string that should be highlighted.',
323
+                    'example' => 'Hello World',
324
+                ],
325
+                'link' => [
326
+                    'since' => '13.0.0',
327
+                    'required' => false,
328
+                    'description' => 'The full URL that should be opened when clicking the highlighted text.',
329
+                    'example' => 'http://localhost/index.php/f/42',
330
+                ],
331
+            ],
332
+        ],
333
+        'open-graph' => [
334
+            'author' => 'Maxence Lange',
335
+            'app' => 'mood',
336
+            'since' => '12.0.0',
337
+            'parameters' => [
338
+                'id' => [
339
+                    'since' => '12.0.0',
340
+                    'required' => true,
341
+                    'description' => 'The id used to identify the open graph data on the instance',
342
+                    'example' => '42',
343
+                ],
344
+                'name' => [
345
+                    'since' => '12.0.0',
346
+                    'required' => true,
347
+                    'description' => 'The open graph title of the website',
348
+                    'example' => 'This is a website',
349
+                ],
350
+                'description' => [
351
+                    'since' => '12.0.0',
352
+                    'required' => false,
353
+                    'description' => 'The open graph description from the website',
354
+                    'example' => 'This is the description of the website',
355
+                ],
356
+                'thumb' => [
357
+                    'since' => '12.0.0',
358
+                    'required' => false,
359
+                    'description' => 'The full URL of the open graph thumbnail',
360
+                    'example' => 'http://localhost/index.php/apps/mood/data/image?url=https%3A%2F%2Fthumb.example.com%2Fimage.png',
361
+                ],
362
+                'website' => [
363
+                    'since' => '12.0.0',
364
+                    'required' => false,
365
+                    'description' => 'The name of the described website',
366
+                    'example' => 'Nextcloud - App Store',
367
+                ],
368
+                'link' => [
369
+                    'since' => '12.0.0',
370
+                    'required' => false,
371
+                    'description' => 'The full link to the website',
372
+                    'example' => 'https://apps.nextcloud.com/apps/mood',
373
+                ],
374
+            ],
375
+        ],
376
+        'pending-federated-share' => [
377
+            'author' => 'Nextcloud',
378
+            'app' => 'dav',
379
+            'since' => '11.0.0',
380
+            'parameters' => [
381
+                'id' => [
382
+                    'since' => '11.0.0',
383
+                    'required' => true,
384
+                    'description' => 'The id used to identify the federated share on the instance',
385
+                    'example' => '42',
386
+                ],
387
+                'name' => [
388
+                    'since' => '11.0.0',
389
+                    'required' => true,
390
+                    'description' => 'The name of the shared item which should be used in the visual representation',
391
+                    'example' => 'file.txt',
392
+                ],
393
+            ],
394
+        ],
395
+        'systemtag' => [
396
+            'author' => 'Nextcloud',
397
+            'app' => 'core',
398
+            'since' => '11.0.0',
399
+            'parameters' => [
400
+                'id' => [
401
+                    'since' => '11.0.0',
402
+                    'required' => true,
403
+                    'description' => 'The id used to identify the systemtag on the instance',
404
+                    'example' => '23',
405
+                ],
406
+                'name' => [
407
+                    'since' => '11.0.0',
408
+                    'required' => true,
409
+                    'description' => 'The display name of the systemtag which should be used in the visual representation',
410
+                    'example' => 'Project 1',
411
+                ],
412
+                'visibility' => [
413
+                    'since' => '11.0.0',
414
+                    'required' => true,
415
+                    'description' => 'If the user can see the systemtag',
416
+                    'example' => '1',
417
+                ],
418
+                'assignable' => [
419
+                    'since' => '11.0.0',
420
+                    'required' => true,
421
+                    'description' => 'If the user can assign the systemtag',
422
+                    'example' => '0',
423
+                ],
424
+            ],
425
+        ],
426
+        'talk-attachment' => [
427
+            'author' => 'Nextcloud',
428
+            'app' => 'talk',
429
+            'since' => '18.0.0',
430
+            'parameters' => [
431
+                'id' => [
432
+                    'since' => '18.0.0',
433
+                    'required' => true,
434
+                    'description' => 'The id used to identify the attachment on the instance',
435
+                    'example' => '12345',
436
+                ],
437
+                'name' => [
438
+                    'since' => '18.0.0',
439
+                    'required' => true,
440
+                    'description' => 'The name of the attachment',
441
+                    'example' => 'John Doe',
442
+                ],
443
+                'conversation' => [
444
+                    'since' => '18.0.0',
445
+                    'required' => true,
446
+                    'description' => 'The token of the conversation',
447
+                    'example' => 'a1b2c3d4',
448
+                ],
449
+                'mimetype' => [
450
+                    'since' => '18.0.0',
451
+                    'required' => false,
452
+                    'description' => 'The mimetype of the file/folder to allow clients to show a placeholder',
453
+                    'example' => 'text/plain',
454
+                ],
455
+                'preview-available' => [
456
+                    'since' => '18.0.0',
457
+                    'required' => false,
458
+                    'description' => 'Whether or not a preview is available. If `no` the mimetype icon should be used',
459
+                    'example' => 'yes',
460
+                ],
461
+            ],
462
+        ],
463
+        'user' => [
464
+            'author' => 'Nextcloud',
465
+            'app' => 'core',
466
+            'since' => '11.0.0',
467
+            'parameters' => [
468
+                'id' => [
469
+                    'since' => '11.0.0',
470
+                    'required' => true,
471
+                    'description' => 'The id used to identify the user on the instance',
472
+                    'example' => 'johndoe',
473
+                ],
474
+                'name' => [
475
+                    'since' => '11.0.0',
476
+                    'required' => true,
477
+                    'description' => 'The display name of the user which should be used in the visual representation',
478
+                    'example' => 'John Doe',
479
+                ],
480
+                'server' => [
481
+                    'since' => '11.0.0',
482
+                    'required' => false,
483
+                    'description' => 'The URL of the instance the user lives on',
484
+                    'example' => 'localhost',
485
+                ],
486
+            ],
487
+        ],
488
+        'user-group' => [
489
+            'author' => 'Nextcloud',
490
+            'app' => 'core',
491
+            'since' => '11.0.0',
492
+            'parameters' => [
493
+                'id' => [
494
+                    'since' => '11.0.0',
495
+                    'required' => true,
496
+                    'description' => 'The id used to identify the group on the instance',
497
+                    'example' => 'supportteam',
498
+                ],
499
+                'name' => [
500
+                    'since' => '11.0.0',
501
+                    'required' => true,
502
+                    'description' => 'The display name of the group which should be used in the visual representation',
503
+                    'example' => 'Support Team',
504
+                ],
505
+            ],
506
+        ],
507
+    ];
508 508
 
509
-	/**
510
-	 * @param string $type
511
-	 * @return array
512
-	 * @throws InvalidObjectExeption
513
-	 * @since 11.0.0
514
-	 */
515
-	public function getDefinition($type) {
516
-		if (isset($this->definitions[$type])) {
517
-			return $this->definitions[$type];
518
-		}
509
+    /**
510
+     * @param string $type
511
+     * @return array
512
+     * @throws InvalidObjectExeption
513
+     * @since 11.0.0
514
+     */
515
+    public function getDefinition($type) {
516
+        if (isset($this->definitions[$type])) {
517
+            return $this->definitions[$type];
518
+        }
519 519
 
520
-		throw new InvalidObjectExeption('Object type is undefined');
521
-	}
520
+        throw new InvalidObjectExeption('Object type is undefined');
521
+    }
522 522
 }
Please login to merge, or discard this patch.