Passed
Push — master ( 93faf1...9cae15 )
by Joas
28:33 queued 10:41
created
lib/public/RichObjectStrings/Definitions.php 1 patch
Indentation   +633 added lines, -633 removed lines patch added patch discarded remove patch
@@ -35,639 +35,639 @@
 block discarded – undo
35 35
  * @since 11.0.0
36 36
  */
37 37
 class Definitions {
38
-	/**
39
-	 * @var array
40
-	 * @since 11.0.0
41
-	 */
42
-	public $definitions = [
43
-		'addressbook' => [
44
-			'author' => 'Nextcloud',
45
-			'app' => 'dav',
46
-			'since' => '11.0.0',
47
-			'parameters' => [
48
-				'id' => [
49
-					'since' => '11.0.0',
50
-					'required' => true,
51
-					'description' => 'The id used to identify the addressbook on the instance',
52
-					'example' => '42',
53
-				],
54
-				'name' => [
55
-					'since' => '11.0.0',
56
-					'required' => true,
57
-					'description' => 'The display name of the addressbook which should be used in the visual representation',
58
-					'example' => 'Contacts',
59
-				],
60
-			],
61
-		],
62
-		'addressbook-contact' => [
63
-			'author' => 'Nextcloud',
64
-			'app' => 'dav',
65
-			'since' => '11.0.0',
66
-			'parameters' => [
67
-				'id' => [
68
-					'since' => '11.0.0',
69
-					'required' => true,
70
-					'description' => 'The id used to identify the contact on the instance',
71
-					'example' => '42',
72
-				],
73
-				'name' => [
74
-					'since' => '11.0.0',
75
-					'required' => true,
76
-					'description' => 'The display name of the contact which should be used in the visual representation',
77
-					'example' => 'John Doe',
78
-				],
79
-			],
80
-		],
81
-		'announcement' => [
82
-			'author' => 'Joas Schilling',
83
-			'app' => 'announcementcenter',
84
-			'since' => '11.0.0',
85
-			'parameters' => [
86
-				'id' => [
87
-					'since' => '11.0.0',
88
-					'required' => true, 'description' => 'The id used to identify the announcement on the instance',
89
-					'example' => '42',
90
-				],
91
-				'name' => [
92
-					'since' => '11.0.0',
93
-					'required' => true,
94
-					'description' => 'The announcement subject which should be used in the visual representation',
95
-					'example' => 'file.txt',
96
-				],
97
-				'link' => [
98
-					'since' => '11.0.0',
99
-					'required' => false,
100
-					'description' => 'The full URL to the file',
101
-					'example' => 'http://localhost/index.php/apps/announcements/#23',
102
-				],
103
-			],
104
-		],
105
-		'app' => [
106
-			'author' => 'Nextcloud',
107
-			'app' => 'updatenotification',
108
-			'since' => '11.0.0',
109
-			'parameters' => [
110
-				'id' => [
111
-					'since' => '11.0.0',
112
-					'required' => true, 'description' => 'The app id',
113
-					'example' => 'updatenotification',
114
-				],
115
-				'name' => [
116
-					'since' => '11.0.0',
117
-					'required' => true,
118
-					'description' => 'The name of the app which should be used in the visual representation',
119
-					'example' => 'Update notification',
120
-				],
121
-			],
122
-		],
123
-		'calendar' => [
124
-			'author' => 'Nextcloud',
125
-			'app' => 'dav',
126
-			'since' => '11.0.0',
127
-			'parameters' => [
128
-				'id' => [
129
-					'since' => '11.0.0',
130
-					'required' => true,
131
-					'description' => 'The id used to identify the calendar on the instance',
132
-					'example' => '42',
133
-				],
134
-				'name' => [
135
-					'since' => '11.0.0',
136
-					'required' => true,
137
-					'description' => 'The display name of the calendar which should be used in the visual representation',
138
-					'example' => 'Personal',
139
-				],
140
-			],
141
-		],
142
-		'calendar-event' => [
143
-			'author' => 'Nextcloud',
144
-			'app' => 'dav',
145
-			'since' => '11.0.0',
146
-			'parameters' => [
147
-				'id' => [
148
-					'since' => '11.0.0',
149
-					'required' => true,
150
-					'description' => 'The id used to identify the event on the instance',
151
-					'example' => '42',
152
-				],
153
-				'name' => [
154
-					'since' => '11.0.0',
155
-					'required' => true,
156
-					'description' => 'The display name of the event which should be used in the visual representation',
157
-					'example' => 'Workout',
158
-				],
159
-				'link' => [
160
-					'since' => '19.0.0',
161
-					'required' => false,
162
-					'description' => 'A link to the page displaying the calendar',
163
-					'example' => 'http://localhost/index.php/apps/calendar/dayGridMonth/2020-01-20/edit/sidebar/base64string/1579046400'
164
-				]
165
-			],
166
-		],
167
-		'call' => [
168
-			'author' => 'Nextcloud',
169
-			'app' => 'spreed',
170
-			'since' => '11.0.2',
171
-			'parameters' => [
172
-				'id' => [
173
-					'since' => '11.0.2',
174
-					'required' => true,
175
-					'description' => 'The id used to identify the call on the instance',
176
-					'example' => '42',
177
-				],
178
-				'name' => [
179
-					'since' => '11.0.2',
180
-					'required' => true,
181
-					'description' => 'The display name of the call which should be used in the visual representation',
182
-					'example' => 'Company call',
183
-				],
184
-				'call-type' => [
185
-					'since' => '11.0.2',
186
-					'required' => true,
187
-					'description' => 'The type of the call: one2one, group or public',
188
-					'example' => 'one2one',
189
-				],
190
-				'link' => [
191
-					'since' => '19.0.0',
192
-					'required' => false,
193
-					'description' => 'The link to the conversation',
194
-					'example' => 'https://localhost/index.php/call/R4nd0mToken',
195
-				],
196
-				'icon-url' => [
197
-					'since' => '27.0.0',
198
-					'required' => false,
199
-					'description' => 'The icon url to use as avatar',
200
-					'example' => 'https://localhost/ocs/v2.php/apps/spreed/api/v1/room/R4nd0mToken/avatar'
201
-				],
202
-			],
203
-		],
204
-		'circle' => [
205
-			'author' => 'Maxence Lange',
206
-			'app' => 'circles',
207
-			'since' => '12.0.0',
208
-			'parameters' => [
209
-				'id' => [
210
-					'since' => '12.0.0',
211
-					'required' => true,
212
-					'description' => 'The id used to identify the circle on the instance',
213
-					'example' => '42',
214
-				],
215
-				'name' => [
216
-					'since' => '12.0.0',
217
-					'required' => true,
218
-					'description' => 'The display name of the circle which should be used in the visual representation',
219
-					'example' => 'My friends',
220
-				],
221
-				'link' => [
222
-					'since' => '12.0.0',
223
-					'required' => true,
224
-					'description' => 'The full URL to the circle',
225
-					'example' => 'http://localhost/index.php/apps/circles/#42',
226
-				],
227
-			],
228
-		],
229
-		'deck-board' => [
230
-			'author' => 'Nextcloud',
231
-			'app' => 'deck',
232
-			'since' => '21.0.0',
233
-			'parameters' => [
234
-				'id' => [
235
-					'since' => '21.0.0',
236
-					'required' => true,
237
-					'description' => 'The id used to identify the board on the instance',
238
-					'example' => '1',
239
-				],
240
-				'name' => [
241
-					'since' => '21.0.0',
242
-					'required' => true,
243
-					'description' => 'The display name of the deck board',
244
-					'example' => 'Personal',
245
-				],
246
-				'link' => [
247
-					'since' => '21.0.0',
248
-					'required' => true,
249
-					'description' => 'The full URL to the board',
250
-					'example' => 'http://localhost/index.php/apps/deck/#/board/1',
251
-				],
252
-			],
253
-		],
254
-		'deck-card' => [
255
-			'author' => 'Nextcloud',
256
-			'app' => 'deck',
257
-			'since' => '21.0.0',
258
-			'parameters' => [
259
-				'id' => [
260
-					'since' => '21.0.0',
261
-					'required' => true,
262
-					'description' => 'The id used to identify the card on the instance',
263
-					'example' => '1',
264
-				],
265
-				'name' => [
266
-					'since' => '21.0.0',
267
-					'required' => true,
268
-					'description' => 'The title of the deck card',
269
-					'example' => 'Foo Bar',
270
-				],
271
-				'boardname' => [
272
-					'since' => '21.0.0',
273
-					'required' => true,
274
-					'description' => 'The display name of board which contains the card',
275
-					'example' => 'Personal',
276
-				],
277
-				'stackname' => [
278
-					'since' => '21.0.0',
279
-					'required' => true,
280
-					'description' => 'The display name of the stack which contains the card in the board',
281
-					'example' => 'To do',
282
-				],
283
-				'link' => [
284
-					'since' => '21.0.0',
285
-					'required' => true,
286
-					'description' => 'The full URL to the card directly',
287
-					'example' => 'https://nextcloud21.local/index.php/apps/deck/#/board/1/card/1',
288
-				],
289
-			],
290
-		],
291
-		'email' => [
292
-			'author' => 'Nextcloud',
293
-			'app' => 'sharebymail',
294
-			'since' => '11.0.0',
295
-			'parameters' => [
296
-				'id' => [
297
-					'since' => '11.0.0',
298
-					'required' => true,
299
-					'description' => 'The mail-address used to identify the event on the instance',
300
-					'example' => 'test@localhost',
301
-				],
302
-				'name' => [
303
-					'since' => '11.0.0',
304
-					'required' => true,
305
-					'description' => 'The display name of a matching contact or the email (fallback) which should be used in the visual representation',
306
-					'example' => 'Foo Bar',
307
-				],
308
-			],
309
-		],
310
-		'file' => [
311
-			'author' => 'Nextcloud',
312
-			'app' => 'dav',
313
-			'since' => '11.0.0',
314
-			'parameters' => [
315
-				'id' => [
316
-					'since' => '11.0.0',
317
-					'required' => true,
318
-					'description' => 'The id used to identify the file on the instance',
319
-					'example' => '42',
320
-				],
321
-				'name' => [
322
-					'since' => '11.0.0',
323
-					'required' => true,
324
-					'description' => 'The file name which should be used in the visual representation',
325
-					'example' => 'file.txt',
326
-				],
327
-				'size' => [
328
-					'since' => '21.0.0',
329
-					'required' => false,
330
-					'description' => 'The file size in bytes',
331
-					'example' => '3145728',
332
-				],
333
-				'path' => [
334
-					'since' => '11.0.0',
335
-					'required' => true,
336
-					'description' => 'The full path of the file for the user, should not start with a slash',
337
-					'example' => 'path/to/file.txt',
338
-				],
339
-				'link' => [
340
-					'since' => '11.0.0',
341
-					'required' => false,
342
-					'description' => 'The full URL to the file',
343
-					'example' => 'http://localhost/index.php/f/42',
344
-				],
345
-				'mimetype' => [
346
-					'since' => '16.0.0',
347
-					'required' => false,
348
-					'description' => 'The mimetype of the file/folder to allow clients to show a placeholder',
349
-					'example' => 'text/plain',
350
-				],
351
-				'preview-available' => [
352
-					'since' => '16.0.0',
353
-					'required' => false,
354
-					'description' => 'Whether or not a preview is available. If `no` the mimetype icon should be used',
355
-					'example' => 'yes',
356
-				],
357
-				'mtime' => [
358
-					'since' => '25.0.0',
359
-					'required' => false,
360
-					'description' => 'The mtime of the file/folder as unix timestamp',
361
-					'example' => '1661854213',
362
-				],
363
-			],
364
-		],
365
-		'forms-form' => [
366
-			'author' => 'Nextcloud',
367
-			'app' => 'forms',
368
-			'since' => '21.0.1',
369
-			'parameters' => [
370
-				'id' => [
371
-					'since' => '21.0.1',
372
-					'required' => true,
373
-					'description' => 'The form-hash of the form',
374
-					'example' => 'q72GGqbfbLBC6xNB',
375
-				],
376
-				'name' => [
377
-					'since' => '21.0.1',
378
-					'required' => true,
379
-					'description' => 'The title of the form',
380
-					'example' => 'Nice Form',
381
-				],
382
-				'link' => [
383
-					'since' => '21.0.1',
384
-					'required' => true,
385
-					'description' => 'The full URL to the board',
386
-					'example' => 'http://localhost/index.php/apps/forms/q72GGqbfbLBC6xNB',
387
-				],
388
-			],
389
-		],
390
-		'guest' => [
391
-			'author' => 'Nextcloud',
392
-			'app' => 'spreed',
393
-			'since' => '17.0.0',
394
-			'parameters' => [
395
-				'id' => [
396
-					'since' => '17.0.0',
397
-					'required' => true,
398
-					'description' => 'The id used to identify the guest user',
399
-					'example' => '42',
400
-				],
401
-				'name' => [
402
-					'since' => '17.0.0',
403
-					'required' => true,
404
-					'description' => 'Potential displayname of the guest user',
405
-					'example' => 'Foobar Cats',
406
-				],
407
-			],
408
-		],
409
-		'highlight' => [
410
-			'author' => 'Nextcloud',
411
-			'app' => 'core',
412
-			'since' => '13.0.0',
413
-			'parameters' => [
414
-				'id' => [
415
-					'since' => '13.0.0',
416
-					'required' => true,
417
-					'description' => 'The id used to identify the highlighted object on the instance',
418
-					'example' => '42',
419
-				],
420
-				'name' => [
421
-					'since' => '13.0.0',
422
-					'required' => true,
423
-					'description' => 'The string that should be highlighted.',
424
-					'example' => 'Hello World',
425
-				],
426
-				'link' => [
427
-					'since' => '13.0.0',
428
-					'required' => false,
429
-					'description' => 'The full URL that should be opened when clicking the highlighted text.',
430
-					'example' => 'http://localhost/index.php/f/42',
431
-				],
432
-			],
433
-		],
434
-		'geo-location' => [
435
-			'author' => 'Nextcloud',
436
-			'app' => 'core',
437
-			'since' => '22.0.0',
438
-			'parameters' => [
439
-				'id' => [
440
-					'since' => '22.0.0',
441
-					'required' => true,
442
-					'description' => 'The geo URI (https://en.wikipedia.org/wiki/Geo_URI_scheme) to identify the location',
443
-					'example' => 'geo:52.5450511,13.3741463',
444
-				],
445
-				'name' => [
446
-					'since' => '22.0.0',
447
-					'required' => true,
448
-					'description' => 'A description of the location',
449
-					'example' => 'Nextcloud Berlin Office',
450
-				],
451
-				'latitude' => [
452
-					'since' => '22.0.0',
453
-					'required' => true,
454
-					'description' => 'The latitude of the location MUST be the same as in the id',
455
-					'example' => '52.5450511',
456
-				],
457
-				'longitude' => [
458
-					'since' => '22.0.0',
459
-					'required' => true,
460
-					'description' => 'The longitude of the location MUST be the same as in the id',
461
-					'example' => '13.3741463',
462
-				],
463
-			],
464
-		],
465
-		'open-graph' => [
466
-			'author' => 'Maxence Lange',
467
-			'app' => 'mood',
468
-			'since' => '12.0.0',
469
-			'parameters' => [
470
-				'id' => [
471
-					'since' => '12.0.0',
472
-					'required' => true,
473
-					'description' => 'The id used to identify the open graph data on the instance',
474
-					'example' => '42',
475
-				],
476
-				'name' => [
477
-					'since' => '12.0.0',
478
-					'required' => true,
479
-					'description' => 'The open graph title of the website',
480
-					'example' => 'This is a website',
481
-				],
482
-				'description' => [
483
-					'since' => '12.0.0',
484
-					'required' => false,
485
-					'description' => 'The open graph description from the website',
486
-					'example' => 'This is the description of the website',
487
-				],
488
-				'thumb' => [
489
-					'since' => '12.0.0',
490
-					'required' => false,
491
-					'description' => 'The full URL of the open graph thumbnail',
492
-					'example' => 'http://localhost/index.php/apps/mood/data/image?url=https%3A%2F%2Fthumb.example.com%2Fimage.png',
493
-				],
494
-				'website' => [
495
-					'since' => '12.0.0',
496
-					'required' => false,
497
-					'description' => 'The name of the described website',
498
-					'example' => 'Nextcloud - App Store',
499
-				],
500
-				'link' => [
501
-					'since' => '12.0.0',
502
-					'required' => false,
503
-					'description' => 'The full link to the website',
504
-					'example' => 'https://apps.nextcloud.com/apps/mood',
505
-				],
506
-			],
507
-		],
508
-		'pending-federated-share' => [
509
-			'author' => 'Nextcloud',
510
-			'app' => 'dav',
511
-			'since' => '11.0.0',
512
-			'parameters' => [
513
-				'id' => [
514
-					'since' => '11.0.0',
515
-					'required' => true,
516
-					'description' => 'The id used to identify the federated share on the instance',
517
-					'example' => '42',
518
-				],
519
-				'name' => [
520
-					'since' => '11.0.0',
521
-					'required' => true,
522
-					'description' => 'The name of the shared item which should be used in the visual representation',
523
-					'example' => 'file.txt',
524
-				],
525
-			],
526
-		],
527
-		'systemtag' => [
528
-			'author' => 'Nextcloud',
529
-			'app' => 'core',
530
-			'since' => '11.0.0',
531
-			'parameters' => [
532
-				'id' => [
533
-					'since' => '11.0.0',
534
-					'required' => true,
535
-					'description' => 'The id used to identify the systemtag on the instance',
536
-					'example' => '23',
537
-				],
538
-				'name' => [
539
-					'since' => '11.0.0',
540
-					'required' => true,
541
-					'description' => 'The display name of the systemtag which should be used in the visual representation',
542
-					'example' => 'Project 1',
543
-				],
544
-				'visibility' => [
545
-					'since' => '11.0.0',
546
-					'required' => true,
547
-					'description' => 'If the user can see the systemtag',
548
-					'example' => '1',
549
-				],
550
-				'assignable' => [
551
-					'since' => '11.0.0',
552
-					'required' => true,
553
-					'description' => 'If the user can assign the systemtag',
554
-					'example' => '0',
555
-				],
556
-			],
557
-		],
558
-		'talk-attachment' => [
559
-			'author' => 'Nextcloud',
560
-			'app' => 'talk',
561
-			'since' => '18.0.0',
562
-			'parameters' => [
563
-				'id' => [
564
-					'since' => '18.0.0',
565
-					'required' => true,
566
-					'description' => 'The id used to identify the attachment on the instance',
567
-					'example' => '12345',
568
-				],
569
-				'name' => [
570
-					'since' => '18.0.0',
571
-					'required' => true,
572
-					'description' => 'The name of the attachment',
573
-					'example' => 'John Doe',
574
-				],
575
-				'conversation' => [
576
-					'since' => '18.0.0',
577
-					'required' => true,
578
-					'description' => 'The token of the conversation',
579
-					'example' => 'a1b2c3d4',
580
-				],
581
-				'mimetype' => [
582
-					'since' => '18.0.0',
583
-					'required' => false,
584
-					'description' => 'The mimetype of the file/folder to allow clients to show a placeholder',
585
-					'example' => 'text/plain',
586
-				],
587
-				'preview-available' => [
588
-					'since' => '18.0.0',
589
-					'required' => false,
590
-					'description' => 'Whether or not a preview is available. If `no` the mimetype icon should be used',
591
-					'example' => 'yes',
592
-				],
593
-			],
594
-		],
595
-		'talk-poll' => [
596
-			'author' => 'Nextcloud',
597
-			'app' => 'talk',
598
-			'since' => '25.0.0',
599
-			'parameters' => [
600
-				'id' => [
601
-					'since' => '25.0.0',
602
-					'required' => true,
603
-					'description' => 'The id used to identify the poll on the instance',
604
-					'example' => '12345',
605
-				],
606
-				'name' => [
607
-					'since' => '25.0.0',
608
-					'required' => true,
609
-					'description' => 'The poll question',
610
-					'example' => 'What is the question?',
611
-				],
612
-			],
613
-		],
614
-		'user' => [
615
-			'author' => 'Nextcloud',
616
-			'app' => 'core',
617
-			'since' => '11.0.0',
618
-			'parameters' => [
619
-				'id' => [
620
-					'since' => '11.0.0',
621
-					'required' => true,
622
-					'description' => 'The id used to identify the user on the instance',
623
-					'example' => 'johndoe',
624
-				],
625
-				'name' => [
626
-					'since' => '11.0.0',
627
-					'required' => true,
628
-					'description' => 'The display name of the user which should be used in the visual representation',
629
-					'example' => 'John Doe',
630
-				],
631
-				'server' => [
632
-					'since' => '11.0.0',
633
-					'required' => false,
634
-					'description' => 'The URL of the instance the user lives on',
635
-					'example' => 'localhost',
636
-				],
637
-			],
638
-		],
639
-		'user-group' => [
640
-			'author' => 'Nextcloud',
641
-			'app' => 'core',
642
-			'since' => '11.0.0',
643
-			'parameters' => [
644
-				'id' => [
645
-					'since' => '11.0.0',
646
-					'required' => true,
647
-					'description' => 'The id used to identify the group on the instance',
648
-					'example' => 'supportteam',
649
-				],
650
-				'name' => [
651
-					'since' => '11.0.0',
652
-					'required' => true,
653
-					'description' => 'The display name of the group which should be used in the visual representation',
654
-					'example' => 'Support Team',
655
-				],
656
-			],
657
-		],
658
-	];
38
+    /**
39
+     * @var array
40
+     * @since 11.0.0
41
+     */
42
+    public $definitions = [
43
+        'addressbook' => [
44
+            'author' => 'Nextcloud',
45
+            'app' => 'dav',
46
+            'since' => '11.0.0',
47
+            'parameters' => [
48
+                'id' => [
49
+                    'since' => '11.0.0',
50
+                    'required' => true,
51
+                    'description' => 'The id used to identify the addressbook on the instance',
52
+                    'example' => '42',
53
+                ],
54
+                'name' => [
55
+                    'since' => '11.0.0',
56
+                    'required' => true,
57
+                    'description' => 'The display name of the addressbook which should be used in the visual representation',
58
+                    'example' => 'Contacts',
59
+                ],
60
+            ],
61
+        ],
62
+        'addressbook-contact' => [
63
+            'author' => 'Nextcloud',
64
+            'app' => 'dav',
65
+            'since' => '11.0.0',
66
+            'parameters' => [
67
+                'id' => [
68
+                    'since' => '11.0.0',
69
+                    'required' => true,
70
+                    'description' => 'The id used to identify the contact on the instance',
71
+                    'example' => '42',
72
+                ],
73
+                'name' => [
74
+                    'since' => '11.0.0',
75
+                    'required' => true,
76
+                    'description' => 'The display name of the contact which should be used in the visual representation',
77
+                    'example' => 'John Doe',
78
+                ],
79
+            ],
80
+        ],
81
+        'announcement' => [
82
+            'author' => 'Joas Schilling',
83
+            'app' => 'announcementcenter',
84
+            'since' => '11.0.0',
85
+            'parameters' => [
86
+                'id' => [
87
+                    'since' => '11.0.0',
88
+                    'required' => true, 'description' => 'The id used to identify the announcement on the instance',
89
+                    'example' => '42',
90
+                ],
91
+                'name' => [
92
+                    'since' => '11.0.0',
93
+                    'required' => true,
94
+                    'description' => 'The announcement subject which should be used in the visual representation',
95
+                    'example' => 'file.txt',
96
+                ],
97
+                'link' => [
98
+                    'since' => '11.0.0',
99
+                    'required' => false,
100
+                    'description' => 'The full URL to the file',
101
+                    'example' => 'http://localhost/index.php/apps/announcements/#23',
102
+                ],
103
+            ],
104
+        ],
105
+        'app' => [
106
+            'author' => 'Nextcloud',
107
+            'app' => 'updatenotification',
108
+            'since' => '11.0.0',
109
+            'parameters' => [
110
+                'id' => [
111
+                    'since' => '11.0.0',
112
+                    'required' => true, 'description' => 'The app id',
113
+                    'example' => 'updatenotification',
114
+                ],
115
+                'name' => [
116
+                    'since' => '11.0.0',
117
+                    'required' => true,
118
+                    'description' => 'The name of the app which should be used in the visual representation',
119
+                    'example' => 'Update notification',
120
+                ],
121
+            ],
122
+        ],
123
+        'calendar' => [
124
+            'author' => 'Nextcloud',
125
+            'app' => 'dav',
126
+            'since' => '11.0.0',
127
+            'parameters' => [
128
+                'id' => [
129
+                    'since' => '11.0.0',
130
+                    'required' => true,
131
+                    'description' => 'The id used to identify the calendar on the instance',
132
+                    'example' => '42',
133
+                ],
134
+                'name' => [
135
+                    'since' => '11.0.0',
136
+                    'required' => true,
137
+                    'description' => 'The display name of the calendar which should be used in the visual representation',
138
+                    'example' => 'Personal',
139
+                ],
140
+            ],
141
+        ],
142
+        'calendar-event' => [
143
+            'author' => 'Nextcloud',
144
+            'app' => 'dav',
145
+            'since' => '11.0.0',
146
+            'parameters' => [
147
+                'id' => [
148
+                    'since' => '11.0.0',
149
+                    'required' => true,
150
+                    'description' => 'The id used to identify the event on the instance',
151
+                    'example' => '42',
152
+                ],
153
+                'name' => [
154
+                    'since' => '11.0.0',
155
+                    'required' => true,
156
+                    'description' => 'The display name of the event which should be used in the visual representation',
157
+                    'example' => 'Workout',
158
+                ],
159
+                'link' => [
160
+                    'since' => '19.0.0',
161
+                    'required' => false,
162
+                    'description' => 'A link to the page displaying the calendar',
163
+                    'example' => 'http://localhost/index.php/apps/calendar/dayGridMonth/2020-01-20/edit/sidebar/base64string/1579046400'
164
+                ]
165
+            ],
166
+        ],
167
+        'call' => [
168
+            'author' => 'Nextcloud',
169
+            'app' => 'spreed',
170
+            'since' => '11.0.2',
171
+            'parameters' => [
172
+                'id' => [
173
+                    'since' => '11.0.2',
174
+                    'required' => true,
175
+                    'description' => 'The id used to identify the call on the instance',
176
+                    'example' => '42',
177
+                ],
178
+                'name' => [
179
+                    'since' => '11.0.2',
180
+                    'required' => true,
181
+                    'description' => 'The display name of the call which should be used in the visual representation',
182
+                    'example' => 'Company call',
183
+                ],
184
+                'call-type' => [
185
+                    'since' => '11.0.2',
186
+                    'required' => true,
187
+                    'description' => 'The type of the call: one2one, group or public',
188
+                    'example' => 'one2one',
189
+                ],
190
+                'link' => [
191
+                    'since' => '19.0.0',
192
+                    'required' => false,
193
+                    'description' => 'The link to the conversation',
194
+                    'example' => 'https://localhost/index.php/call/R4nd0mToken',
195
+                ],
196
+                'icon-url' => [
197
+                    'since' => '27.0.0',
198
+                    'required' => false,
199
+                    'description' => 'The icon url to use as avatar',
200
+                    'example' => 'https://localhost/ocs/v2.php/apps/spreed/api/v1/room/R4nd0mToken/avatar'
201
+                ],
202
+            ],
203
+        ],
204
+        'circle' => [
205
+            'author' => 'Maxence Lange',
206
+            'app' => 'circles',
207
+            'since' => '12.0.0',
208
+            'parameters' => [
209
+                'id' => [
210
+                    'since' => '12.0.0',
211
+                    'required' => true,
212
+                    'description' => 'The id used to identify the circle on the instance',
213
+                    'example' => '42',
214
+                ],
215
+                'name' => [
216
+                    'since' => '12.0.0',
217
+                    'required' => true,
218
+                    'description' => 'The display name of the circle which should be used in the visual representation',
219
+                    'example' => 'My friends',
220
+                ],
221
+                'link' => [
222
+                    'since' => '12.0.0',
223
+                    'required' => true,
224
+                    'description' => 'The full URL to the circle',
225
+                    'example' => 'http://localhost/index.php/apps/circles/#42',
226
+                ],
227
+            ],
228
+        ],
229
+        'deck-board' => [
230
+            'author' => 'Nextcloud',
231
+            'app' => 'deck',
232
+            'since' => '21.0.0',
233
+            'parameters' => [
234
+                'id' => [
235
+                    'since' => '21.0.0',
236
+                    'required' => true,
237
+                    'description' => 'The id used to identify the board on the instance',
238
+                    'example' => '1',
239
+                ],
240
+                'name' => [
241
+                    'since' => '21.0.0',
242
+                    'required' => true,
243
+                    'description' => 'The display name of the deck board',
244
+                    'example' => 'Personal',
245
+                ],
246
+                'link' => [
247
+                    'since' => '21.0.0',
248
+                    'required' => true,
249
+                    'description' => 'The full URL to the board',
250
+                    'example' => 'http://localhost/index.php/apps/deck/#/board/1',
251
+                ],
252
+            ],
253
+        ],
254
+        'deck-card' => [
255
+            'author' => 'Nextcloud',
256
+            'app' => 'deck',
257
+            'since' => '21.0.0',
258
+            'parameters' => [
259
+                'id' => [
260
+                    'since' => '21.0.0',
261
+                    'required' => true,
262
+                    'description' => 'The id used to identify the card on the instance',
263
+                    'example' => '1',
264
+                ],
265
+                'name' => [
266
+                    'since' => '21.0.0',
267
+                    'required' => true,
268
+                    'description' => 'The title of the deck card',
269
+                    'example' => 'Foo Bar',
270
+                ],
271
+                'boardname' => [
272
+                    'since' => '21.0.0',
273
+                    'required' => true,
274
+                    'description' => 'The display name of board which contains the card',
275
+                    'example' => 'Personal',
276
+                ],
277
+                'stackname' => [
278
+                    'since' => '21.0.0',
279
+                    'required' => true,
280
+                    'description' => 'The display name of the stack which contains the card in the board',
281
+                    'example' => 'To do',
282
+                ],
283
+                'link' => [
284
+                    'since' => '21.0.0',
285
+                    'required' => true,
286
+                    'description' => 'The full URL to the card directly',
287
+                    'example' => 'https://nextcloud21.local/index.php/apps/deck/#/board/1/card/1',
288
+                ],
289
+            ],
290
+        ],
291
+        'email' => [
292
+            'author' => 'Nextcloud',
293
+            'app' => 'sharebymail',
294
+            'since' => '11.0.0',
295
+            'parameters' => [
296
+                'id' => [
297
+                    'since' => '11.0.0',
298
+                    'required' => true,
299
+                    'description' => 'The mail-address used to identify the event on the instance',
300
+                    'example' => 'test@localhost',
301
+                ],
302
+                'name' => [
303
+                    'since' => '11.0.0',
304
+                    'required' => true,
305
+                    'description' => 'The display name of a matching contact or the email (fallback) which should be used in the visual representation',
306
+                    'example' => 'Foo Bar',
307
+                ],
308
+            ],
309
+        ],
310
+        'file' => [
311
+            'author' => 'Nextcloud',
312
+            'app' => 'dav',
313
+            'since' => '11.0.0',
314
+            'parameters' => [
315
+                'id' => [
316
+                    'since' => '11.0.0',
317
+                    'required' => true,
318
+                    'description' => 'The id used to identify the file on the instance',
319
+                    'example' => '42',
320
+                ],
321
+                'name' => [
322
+                    'since' => '11.0.0',
323
+                    'required' => true,
324
+                    'description' => 'The file name which should be used in the visual representation',
325
+                    'example' => 'file.txt',
326
+                ],
327
+                'size' => [
328
+                    'since' => '21.0.0',
329
+                    'required' => false,
330
+                    'description' => 'The file size in bytes',
331
+                    'example' => '3145728',
332
+                ],
333
+                'path' => [
334
+                    'since' => '11.0.0',
335
+                    'required' => true,
336
+                    'description' => 'The full path of the file for the user, should not start with a slash',
337
+                    'example' => 'path/to/file.txt',
338
+                ],
339
+                'link' => [
340
+                    'since' => '11.0.0',
341
+                    'required' => false,
342
+                    'description' => 'The full URL to the file',
343
+                    'example' => 'http://localhost/index.php/f/42',
344
+                ],
345
+                'mimetype' => [
346
+                    'since' => '16.0.0',
347
+                    'required' => false,
348
+                    'description' => 'The mimetype of the file/folder to allow clients to show a placeholder',
349
+                    'example' => 'text/plain',
350
+                ],
351
+                'preview-available' => [
352
+                    'since' => '16.0.0',
353
+                    'required' => false,
354
+                    'description' => 'Whether or not a preview is available. If `no` the mimetype icon should be used',
355
+                    'example' => 'yes',
356
+                ],
357
+                'mtime' => [
358
+                    'since' => '25.0.0',
359
+                    'required' => false,
360
+                    'description' => 'The mtime of the file/folder as unix timestamp',
361
+                    'example' => '1661854213',
362
+                ],
363
+            ],
364
+        ],
365
+        'forms-form' => [
366
+            'author' => 'Nextcloud',
367
+            'app' => 'forms',
368
+            'since' => '21.0.1',
369
+            'parameters' => [
370
+                'id' => [
371
+                    'since' => '21.0.1',
372
+                    'required' => true,
373
+                    'description' => 'The form-hash of the form',
374
+                    'example' => 'q72GGqbfbLBC6xNB',
375
+                ],
376
+                'name' => [
377
+                    'since' => '21.0.1',
378
+                    'required' => true,
379
+                    'description' => 'The title of the form',
380
+                    'example' => 'Nice Form',
381
+                ],
382
+                'link' => [
383
+                    'since' => '21.0.1',
384
+                    'required' => true,
385
+                    'description' => 'The full URL to the board',
386
+                    'example' => 'http://localhost/index.php/apps/forms/q72GGqbfbLBC6xNB',
387
+                ],
388
+            ],
389
+        ],
390
+        'guest' => [
391
+            'author' => 'Nextcloud',
392
+            'app' => 'spreed',
393
+            'since' => '17.0.0',
394
+            'parameters' => [
395
+                'id' => [
396
+                    'since' => '17.0.0',
397
+                    'required' => true,
398
+                    'description' => 'The id used to identify the guest user',
399
+                    'example' => '42',
400
+                ],
401
+                'name' => [
402
+                    'since' => '17.0.0',
403
+                    'required' => true,
404
+                    'description' => 'Potential displayname of the guest user',
405
+                    'example' => 'Foobar Cats',
406
+                ],
407
+            ],
408
+        ],
409
+        'highlight' => [
410
+            'author' => 'Nextcloud',
411
+            'app' => 'core',
412
+            'since' => '13.0.0',
413
+            'parameters' => [
414
+                'id' => [
415
+                    'since' => '13.0.0',
416
+                    'required' => true,
417
+                    'description' => 'The id used to identify the highlighted object on the instance',
418
+                    'example' => '42',
419
+                ],
420
+                'name' => [
421
+                    'since' => '13.0.0',
422
+                    'required' => true,
423
+                    'description' => 'The string that should be highlighted.',
424
+                    'example' => 'Hello World',
425
+                ],
426
+                'link' => [
427
+                    'since' => '13.0.0',
428
+                    'required' => false,
429
+                    'description' => 'The full URL that should be opened when clicking the highlighted text.',
430
+                    'example' => 'http://localhost/index.php/f/42',
431
+                ],
432
+            ],
433
+        ],
434
+        'geo-location' => [
435
+            'author' => 'Nextcloud',
436
+            'app' => 'core',
437
+            'since' => '22.0.0',
438
+            'parameters' => [
439
+                'id' => [
440
+                    'since' => '22.0.0',
441
+                    'required' => true,
442
+                    'description' => 'The geo URI (https://en.wikipedia.org/wiki/Geo_URI_scheme) to identify the location',
443
+                    'example' => 'geo:52.5450511,13.3741463',
444
+                ],
445
+                'name' => [
446
+                    'since' => '22.0.0',
447
+                    'required' => true,
448
+                    'description' => 'A description of the location',
449
+                    'example' => 'Nextcloud Berlin Office',
450
+                ],
451
+                'latitude' => [
452
+                    'since' => '22.0.0',
453
+                    'required' => true,
454
+                    'description' => 'The latitude of the location MUST be the same as in the id',
455
+                    'example' => '52.5450511',
456
+                ],
457
+                'longitude' => [
458
+                    'since' => '22.0.0',
459
+                    'required' => true,
460
+                    'description' => 'The longitude of the location MUST be the same as in the id',
461
+                    'example' => '13.3741463',
462
+                ],
463
+            ],
464
+        ],
465
+        'open-graph' => [
466
+            'author' => 'Maxence Lange',
467
+            'app' => 'mood',
468
+            'since' => '12.0.0',
469
+            'parameters' => [
470
+                'id' => [
471
+                    'since' => '12.0.0',
472
+                    'required' => true,
473
+                    'description' => 'The id used to identify the open graph data on the instance',
474
+                    'example' => '42',
475
+                ],
476
+                'name' => [
477
+                    'since' => '12.0.0',
478
+                    'required' => true,
479
+                    'description' => 'The open graph title of the website',
480
+                    'example' => 'This is a website',
481
+                ],
482
+                'description' => [
483
+                    'since' => '12.0.0',
484
+                    'required' => false,
485
+                    'description' => 'The open graph description from the website',
486
+                    'example' => 'This is the description of the website',
487
+                ],
488
+                'thumb' => [
489
+                    'since' => '12.0.0',
490
+                    'required' => false,
491
+                    'description' => 'The full URL of the open graph thumbnail',
492
+                    'example' => 'http://localhost/index.php/apps/mood/data/image?url=https%3A%2F%2Fthumb.example.com%2Fimage.png',
493
+                ],
494
+                'website' => [
495
+                    'since' => '12.0.0',
496
+                    'required' => false,
497
+                    'description' => 'The name of the described website',
498
+                    'example' => 'Nextcloud - App Store',
499
+                ],
500
+                'link' => [
501
+                    'since' => '12.0.0',
502
+                    'required' => false,
503
+                    'description' => 'The full link to the website',
504
+                    'example' => 'https://apps.nextcloud.com/apps/mood',
505
+                ],
506
+            ],
507
+        ],
508
+        'pending-federated-share' => [
509
+            'author' => 'Nextcloud',
510
+            'app' => 'dav',
511
+            'since' => '11.0.0',
512
+            'parameters' => [
513
+                'id' => [
514
+                    'since' => '11.0.0',
515
+                    'required' => true,
516
+                    'description' => 'The id used to identify the federated share on the instance',
517
+                    'example' => '42',
518
+                ],
519
+                'name' => [
520
+                    'since' => '11.0.0',
521
+                    'required' => true,
522
+                    'description' => 'The name of the shared item which should be used in the visual representation',
523
+                    'example' => 'file.txt',
524
+                ],
525
+            ],
526
+        ],
527
+        'systemtag' => [
528
+            'author' => 'Nextcloud',
529
+            'app' => 'core',
530
+            'since' => '11.0.0',
531
+            'parameters' => [
532
+                'id' => [
533
+                    'since' => '11.0.0',
534
+                    'required' => true,
535
+                    'description' => 'The id used to identify the systemtag on the instance',
536
+                    'example' => '23',
537
+                ],
538
+                'name' => [
539
+                    'since' => '11.0.0',
540
+                    'required' => true,
541
+                    'description' => 'The display name of the systemtag which should be used in the visual representation',
542
+                    'example' => 'Project 1',
543
+                ],
544
+                'visibility' => [
545
+                    'since' => '11.0.0',
546
+                    'required' => true,
547
+                    'description' => 'If the user can see the systemtag',
548
+                    'example' => '1',
549
+                ],
550
+                'assignable' => [
551
+                    'since' => '11.0.0',
552
+                    'required' => true,
553
+                    'description' => 'If the user can assign the systemtag',
554
+                    'example' => '0',
555
+                ],
556
+            ],
557
+        ],
558
+        'talk-attachment' => [
559
+            'author' => 'Nextcloud',
560
+            'app' => 'talk',
561
+            'since' => '18.0.0',
562
+            'parameters' => [
563
+                'id' => [
564
+                    'since' => '18.0.0',
565
+                    'required' => true,
566
+                    'description' => 'The id used to identify the attachment on the instance',
567
+                    'example' => '12345',
568
+                ],
569
+                'name' => [
570
+                    'since' => '18.0.0',
571
+                    'required' => true,
572
+                    'description' => 'The name of the attachment',
573
+                    'example' => 'John Doe',
574
+                ],
575
+                'conversation' => [
576
+                    'since' => '18.0.0',
577
+                    'required' => true,
578
+                    'description' => 'The token of the conversation',
579
+                    'example' => 'a1b2c3d4',
580
+                ],
581
+                'mimetype' => [
582
+                    'since' => '18.0.0',
583
+                    'required' => false,
584
+                    'description' => 'The mimetype of the file/folder to allow clients to show a placeholder',
585
+                    'example' => 'text/plain',
586
+                ],
587
+                'preview-available' => [
588
+                    'since' => '18.0.0',
589
+                    'required' => false,
590
+                    'description' => 'Whether or not a preview is available. If `no` the mimetype icon should be used',
591
+                    'example' => 'yes',
592
+                ],
593
+            ],
594
+        ],
595
+        'talk-poll' => [
596
+            'author' => 'Nextcloud',
597
+            'app' => 'talk',
598
+            'since' => '25.0.0',
599
+            'parameters' => [
600
+                'id' => [
601
+                    'since' => '25.0.0',
602
+                    'required' => true,
603
+                    'description' => 'The id used to identify the poll on the instance',
604
+                    'example' => '12345',
605
+                ],
606
+                'name' => [
607
+                    'since' => '25.0.0',
608
+                    'required' => true,
609
+                    'description' => 'The poll question',
610
+                    'example' => 'What is the question?',
611
+                ],
612
+            ],
613
+        ],
614
+        'user' => [
615
+            'author' => 'Nextcloud',
616
+            'app' => 'core',
617
+            'since' => '11.0.0',
618
+            'parameters' => [
619
+                'id' => [
620
+                    'since' => '11.0.0',
621
+                    'required' => true,
622
+                    'description' => 'The id used to identify the user on the instance',
623
+                    'example' => 'johndoe',
624
+                ],
625
+                'name' => [
626
+                    'since' => '11.0.0',
627
+                    'required' => true,
628
+                    'description' => 'The display name of the user which should be used in the visual representation',
629
+                    'example' => 'John Doe',
630
+                ],
631
+                'server' => [
632
+                    'since' => '11.0.0',
633
+                    'required' => false,
634
+                    'description' => 'The URL of the instance the user lives on',
635
+                    'example' => 'localhost',
636
+                ],
637
+            ],
638
+        ],
639
+        'user-group' => [
640
+            'author' => 'Nextcloud',
641
+            'app' => 'core',
642
+            'since' => '11.0.0',
643
+            'parameters' => [
644
+                'id' => [
645
+                    'since' => '11.0.0',
646
+                    'required' => true,
647
+                    'description' => 'The id used to identify the group on the instance',
648
+                    'example' => 'supportteam',
649
+                ],
650
+                'name' => [
651
+                    'since' => '11.0.0',
652
+                    'required' => true,
653
+                    'description' => 'The display name of the group which should be used in the visual representation',
654
+                    'example' => 'Support Team',
655
+                ],
656
+            ],
657
+        ],
658
+    ];
659 659
 
660
-	/**
661
-	 * @param string $type
662
-	 * @return array
663
-	 * @throws InvalidObjectExeption
664
-	 * @since 11.0.0
665
-	 */
666
-	public function getDefinition($type) {
667
-		if (isset($this->definitions[$type])) {
668
-			return $this->definitions[$type];
669
-		}
660
+    /**
661
+     * @param string $type
662
+     * @return array
663
+     * @throws InvalidObjectExeption
664
+     * @since 11.0.0
665
+     */
666
+    public function getDefinition($type) {
667
+        if (isset($this->definitions[$type])) {
668
+            return $this->definitions[$type];
669
+        }
670 670
 
671
-		throw new InvalidObjectExeption('Object type is undefined');
672
-	}
671
+        throw new InvalidObjectExeption('Object type is undefined');
672
+    }
673 673
 }
Please login to merge, or discard this patch.