]> git.mxchange.org Git - friendica.git/blob - tests/datasets/api.fixture.php
Move notify to the new paradigm
[friendica.git] / tests / datasets / api.fixture.php
1 <?php
2 /**
3  * @copyright Copyright (C) 2010-2021, the Friendica project
4  *
5  * @license GNU AGPL version 3 or any later version
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU Affero General Public License as
9  * published by the Free Software Foundation, either version 3 of the
10  * License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU Affero General Public License for more details.
16  *
17  * You should have received a copy of the GNU Affero General Public License
18  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
19  *
20  */
21
22 use Friendica\Core\Protocol;
23 use Friendica\Model\Contact;
24 use Friendica\Model\Item;
25 use Friendica\Model\Notification;
26
27 return [
28         // Empty these tables
29         'cache',
30         'conversation',
31         'pconfig',
32         'photo',
33         'workerqueue',
34         'mail',
35         'post-delivery-data',
36         // Base test config to avoid notice messages
37         'config'  => [
38                 [
39                         'cat' => 'system',
40                         'k'   => 'url',
41                         'v'   => 'http://localhost',
42                 ],
43                 [
44                         'cat' => 'config',
45                         'k'   => 'hostname',
46                         'v'   => 'localhost',
47                 ],
48                 [
49                         'cat' => 'system',
50                         'k'   => 'worker_dont_fork',
51                         'v'   => '1',
52                 ],
53                 [
54                         'cat' => 'system',
55                         'k'   => 'curl_timeout',
56                         'v'   => '1',
57                 ],
58                 [
59                         'cat' => 'system',
60                         'k'   => 'xrd_timeout',
61                         'v'   => '1',
62                 ],
63         ],
64         'user'    => [
65                 [
66                         'uid'      => 42,
67                         'username' => 'Test user',
68                         'nickname' => 'selfcontact',
69                         'verified' => 1,
70                         'password' => '$2y$10$DLRNTRmJgKe1cSrFJ5Jb0edCqvXlA9sh/RHdSnfxjbR.04yZRm4Qm',
71                         'theme'    => 'frio',
72                 ],
73         ],
74         'item-uri'    => [
75                 [
76                         'id'   => 1,
77                         'uri'  => '1',
78                         'guid' => '1',
79                 ],
80                 [
81                         'id'   => 2,
82                         'uri'  => '2',
83                         'guid' => '2',
84                 ],
85                 [
86                         'id'   => 3,
87                         'uri'  => '3',
88                         'guid' => '3',
89                 ],
90                 [
91                         'id'   => 4,
92                         'uri'  => '4',
93                         'guid' => '4',
94                 ],
95                 [
96                         'id'   => 5,
97                         'uri'  => '5',
98                         'guid' => '5',
99                 ],
100                 [
101                         'id'   => 6,
102                         'uri'  => '6',
103                         'guid' => '6',
104                 ],
105
106                 [
107                         'id'   => 42,
108                         'uri'  => 'http://localhost/profile/selfcontact',
109                         'guid' => '42',
110                 ],
111                 [
112                         'id'   => 43,
113                         'uri'  => 'http://localhost/profile/othercontact',
114                         'guid' => '43',
115                 ],
116                 [
117                         'id'   => 44,
118                         'uri'  => 'http://localhost/profile/friendcontact',
119                         'guid' => '44',
120                 ],
121                 [
122                         'id'   => 46,
123                         'uri'  => 'http://localhost/profile/mutualcontact',
124                         'guid' => '46',
125                 ],
126         ],
127         'contact' => [
128                 [
129                         'id'      => 42,
130                         'uid'     => 42,
131                         'uri-id'  => 42,
132                         'name'    => 'Self contact',
133                         'nick'    => 'selfcontact',
134                         'self'    => 1,
135                         'nurl'    => 'http://localhost/profile/selfcontact',
136                         'url'     => 'http://localhost/profile/selfcontact',
137                         'about'   => 'User used in tests',
138                         'pending' => 0,
139                         'blocked' => 0,
140                         'rel'     => Contact::FOLLOWER,
141                         'network' => Protocol::DFRN,
142                         'location' => 'DFRN',
143                 ],
144                 // Having the same name and nick allows us to test
145                 // the fallback to api_get_nick() in api_get_user()
146                 [
147                         'id'      => 43,
148                         'uid'     => 0,
149                         'uri-id'  => 43,
150                         'name'    => 'othercontact',
151                         'nick'    => 'othercontact',
152                         'self'    => 0,
153                         'nurl'    => 'http://localhost/profile/othercontact',
154                         'url'     => 'http://localhost/profile/othercontact',
155                         'pending' => 0,
156                         'blocked' => 0,
157                         'rel'     => Contact::NOTHING,
158                         'network' => Protocol::DFRN, 
159                         'location' => 'DFRN',
160                 ],
161                 [
162                         'id'      => 44,
163                         'uid'     => 42,
164                         'uri-id'  => 44,
165                         'name'    => 'Friend contact',
166                         'nick'    => 'friendcontact',
167                         'self'    => 0,
168                         'nurl'    => 'http://localhost/profile/friendcontact',
169                         'url'     => 'http://localhost/profile/friendcontact',
170                         'pending' => 0,
171                         'blocked' => 0,
172                         'rel'     => Contact::SHARING,
173                         'network' => Protocol::DFRN,
174                         'location' => 'DFRN',
175                 ],
176                 [
177                         'id'      => 45,
178                         'uid'     => 0,
179                         'uri-id'  => 44,
180                         'name'    => 'Friend contact',
181                         'nick'    => 'friendcontact',
182                         'self'    => 0,
183                         'nurl'    => 'http://localhost/profile/friendcontact',
184                         'url'     => 'http://localhost/profile/friendcontact',
185                         'pending' => 0,
186                         'blocked' => 0,
187                         'rel'     => Contact::SHARING,
188                         'network' => Protocol::DFRN,
189                         'location' => 'DFRN',
190                 ],
191                 [
192                         'id'      => 46,
193                         'uid'     => 42,
194                         'uri-id'  => 46,
195                         'name'    => 'Mutual contact',
196                         'nick'    => 'mutualcontact',
197                         'self'    => 0,
198                         'nurl'    => 'http://localhost/profile/mutualcontact',
199                         'url'     => 'http://localhost/profile/mutualcontact',
200                         'pending' => 0,
201                         'blocked' => 0,
202                         'rel'     => Contact::FRIEND,
203                         'network' => Protocol::DFRN,
204                         'location' => 'DFRN',
205                 ],
206                 [
207                         'id'      => 47,
208                         'uid'     => 0,
209                         'uri-id'  => 46,
210                         'name'    => 'Mutual contact',
211                         'nick'    => 'mutualcontact',
212                         'self'    => 0,
213                         'nurl'    => 'http://localhost/profile/mutualcontact',
214                         'url'     => 'http://localhost/profile/mutualcontact',
215                         'pending' => 0,
216                         'blocked' => 0,
217                         'rel'     => Contact::SHARING,
218                         'network' => Protocol::DFRN,
219                         'location' => 'DFRN',
220                 ],
221         ],
222         'verb'    => [
223                 [
224                         'id'   => 0,
225                         'name' => '',
226                 ],
227                 [
228                         'id'   => 1,
229                         'name' => 'http://activitystrea.ms/schema/1.0/like',
230                 ],
231                 [
232                         'id'   => 2,
233                         'name' => 'http://purl.org/macgirvin/dfrn/1.0/dislike',
234                 ],
235                 [
236                         'id'   => 3,
237                         'name' => 'http://purl.org/zot/activity/attendyes',
238                 ],
239                 [
240                         'id'   => 4,
241                         'name' => 'http://purl.org/zot/activity/attendno',
242                 ],
243                 [
244                         'id'   => 5,
245                         'name' => 'http://purl.org/zot/activity/attendmaybe',
246                 ],
247                 [
248                         'id'   => 6,
249                         'name' => 'http://activitystrea.ms/schema/1.0/follow',
250                 ],
251                 [
252                         'id'   => 7,
253                         'name' => 'https://www.w3.org/ns/activitystreams#Announce',
254                 ],
255                 [
256                         'id'   => 8,
257                         'name' => 'http://activitystrea.ms/schema/1.0/post',
258                 ],
259         ],
260         'post-content' => [
261                 [
262                         'uri-id' => 1,
263                         'body'   => 'Parent status',
264                         'plink'  => 'http://localhost/display/1',
265                 ],
266                 [
267                         'uri-id' => 2,
268                         'body'   => 'Reply',
269                         'plink'  => 'http://localhost/display/2',
270                 ],
271                 [
272                         'uri-id' => 3,
273                         'body'   => 'Other user status',
274                         'plink'  => 'http://localhost/display/3',
275                 ],
276                 [
277                         'uri-id' => 4,
278                         'body'   => 'Friend user reply',
279                         'plink'  => 'http://localhost/display/4',
280                 ],
281                 [
282                         'uri-id' => 5,
283                         'body'   => '[share]Shared status[/share]',
284                         'plink'  => 'http://localhost/display/5',
285                 ],
286                 [
287                         'uri-id' => 6,
288                         'body'   => 'Friend user status',
289                         'plink'  => 'http://localhost/display/6',
290                 ],
291         ],
292         'post'    => [
293                 [
294                         'uri-id'        => 1,
295                         'parent-uri-id' => 1,
296                         'thr-parent-id' => 1,
297                         'gravity'       => GRAVITY_PARENT,
298                         'network'       => Protocol::DFRN,
299                         'owner-id'      => 42,
300                         'author-id'     => 42,
301                         'causer-id'     => 42,
302                         'vid'           => 8,
303                         'private'       => Item::PUBLIC,
304                         'visible'       => 1,
305                         'deleted'       => 0,
306                 ],
307                 [
308                         'uri-id'        => 2,
309                         'parent-uri-id' => 1,
310                         'thr-parent-id' => 1,
311                         'gravity'       => GRAVITY_COMMENT,
312                         'network'       => Protocol::DFRN,
313                         'owner-id'      => 42,
314                         'author-id'     => 42,
315                         'causer-id'     => 42,
316                         'vid'           => 8,
317                         'private'       => Item::PUBLIC,
318                         'visible'       => 1,
319                         'deleted'       => 0,
320                 ],
321                 [
322                         'uri-id'        => 3,
323                         'parent-uri-id' => 3,
324                         'thr-parent-id' => 3,
325                         'gravity'       => GRAVITY_PARENT,
326                         'network'       => Protocol::DFRN,
327                         'owner-id'      => 42,
328                         'author-id'     => 43,
329                         'causer-id'     => 43,
330                         'vid'           => 8,
331                         'private'       => Item::PUBLIC,
332                         'visible'       => 1,
333                         'deleted'       => 0,
334                 ],
335                 [
336                         'uri-id'        => 4,
337                         'parent-uri-id' => 1,
338                         'thr-parent-id' => 1,
339                         'gravity'       => GRAVITY_COMMENT,
340                         'network'       => Protocol::DFRN,
341                         'owner-id'      => 42,
342                         'author-id'     => 44,
343                         'causer-id'     => 44,
344                         'vid'           => 8,
345                         'private'       => Item::PUBLIC,
346                         'visible'       => 1,
347                         'deleted'       => 0,
348                 ],
349                 [
350                         'uri-id'        => 5,
351                         'parent-uri-id' => 1,
352                         'thr-parent-id' => 1,
353                         'gravity'       => GRAVITY_COMMENT,
354                         'network'       => Protocol::DFRN,
355                         'owner-id'      => 42,
356                         'author-id'     => 42,
357                         'causer-id'     => 42,
358                         'vid'           => 8,
359                         'private'       => Item::PUBLIC,
360                         'visible'       => 1,
361                         'deleted'       => 0,
362                 ],
363                 [
364                         'uri-id'        => 6,
365                         'parent-uri-id' => 6,
366                         'thr-parent-id' => 6,
367                         'gravity'       => GRAVITY_PARENT,
368                         'network'       => Protocol::DFRN,
369                         'owner-id'      => 42,
370                         'author-id'     => 44,
371                         'causer-id'     => 44,
372                         'vid'           => 8,
373                         'private'       => Item::PUBLIC,
374                         'visible'       => 1,
375                         'deleted'       => 0,
376                 ],
377         ],
378         'post-user' => [
379                 [
380                         'id'            => 1,
381                         'uri-id'        => 1,
382                         'visible'       => 1,
383                         'contact-id'    => 42,
384                         'author-id'     => 42,
385                         'owner-id'      => 42,
386                         'causer-id'     => 42,
387                         'uid'           => 42,
388                         'vid'           => 8,
389                         'unseen'        => 1,
390                         'parent-uri-id' => 1,
391                         'thr-parent-id' => 1,
392                         'private'       => Item::PUBLIC,
393                         'gravity'       => GRAVITY_PARENT,
394                         'network'       => Protocol::DFRN,
395                         'wall'          => 1,
396                         'origin'        => 1,
397                 ],
398                 [
399                         'id'            => 2,
400                         'uri-id'        => 2,
401                         'uid'           => 42,
402                         'contact-id'    => 42,
403                         'unseen'        => 0,
404                         'origin'        => 1,
405                         'parent-uri-id' => 1,
406                         'thr-parent-id' => 1,
407                         'gravity'       => GRAVITY_COMMENT,
408                         'network'       => Protocol::DFRN,
409                         'owner-id'      => 42,
410                         'author-id'     => 42,
411                         'causer-id'     => 42,
412                         'vid'           => 8,
413                         'private'       => Item::PUBLIC,
414                         'visible'       => 1,
415                         'deleted'       => 0,
416                         'wall'          => 1,
417                 ],
418                 [
419                         'id'            => 3,
420                         'uri-id'        => 3,
421                         'uid'           => 42,
422                         'contact-id'    => 43,
423                         'unseen'        => 0,
424                         'origin'        => 1,
425                         'parent-uri-id' => 3,
426                         'thr-parent-id' => 3,
427                         'gravity'       => GRAVITY_PARENT,
428                         'network'       => Protocol::DFRN,
429                         'owner-id'      => 42,
430                         'author-id'     => 43,
431                         'causer-id'     => 43,
432                         'vid'           => 8,
433                         'private'       => Item::PUBLIC,
434                         'visible'       => 1,
435                         'deleted'       => 0,
436                         'wall'          => 1,
437                 ],
438                 [
439                         'id'            => 4,
440                         'uri-id'        => 4,
441                         'uid'           => 42,
442                         'contact-id'    => 44,
443                         'unseen'        => 0,
444                         'origin'        => 1,
445                         'parent-uri-id' => 1,
446                         'thr-parent-id' => 1,
447                         'gravity'       => GRAVITY_COMMENT,
448                         'network'       => Protocol::DFRN,
449                         'owner-id'      => 42,
450                         'author-id'     => 44,
451                         'causer-id'     => 44,
452                         'vid'           => 8,
453                         'private'       => Item::PUBLIC,
454                         'visible'       => 1,
455                         'deleted'       => 0,
456                         'wall'          => 1,
457                 ],
458                 [
459                         'id'            => 5,
460                         'uri-id'        => 5,
461                         'uid'           => 42,
462                         'contact-id'    => 42,
463                         'unseen'        => 0,
464                         'origin'        => 1,
465                         'parent-uri-id' => 1,
466                         'thr-parent-id' => 1,
467                         'gravity'       => GRAVITY_COMMENT,
468                         'network'       => Protocol::DFRN,
469                         'owner-id'      => 42,
470                         'author-id'     => 42,
471                         'causer-id'     => 42,
472                         'vid'           => 8,
473                         'private'       => Item::PUBLIC,
474                         'visible'       => 1,
475                         'deleted'       => 0,
476                         'wall'          => 1,
477                 ],
478                 [
479                         'id'            => 6,
480                         'uri-id'        => 6,
481                         'uid'           => 42,
482                         'contact-id'    => 44,
483                         'unseen'        => 0,
484                         'origin'        => 1,
485                         'parent-uri-id' => 6,
486                         'thr-parent-id' => 6,
487                         'gravity'       => GRAVITY_PARENT,
488                         'network'       => Protocol::DFRN,
489                         'owner-id'      => 42,
490                         'author-id'     => 44,
491                         'causer-id'     => 44,
492                         'vid'           => 8,
493                         'private'       => Item::PUBLIC,
494                         'visible'       => 1,
495                         'deleted'       => 0,
496                         'wall'          => 1,
497                 ],
498                 [
499                         'id'            => 7,
500                         'uri-id'        => 1,
501                         'uid'           => 0,
502                         'contact-id'    => 42,
503                         'unseen'        => 1,
504                         'origin'        => 0,
505                         'parent-uri-id' => 1,
506                         'thr-parent-id' => 1,
507                         'gravity'       => GRAVITY_PARENT,
508                         'network'       => Protocol::DFRN,
509                         'owner-id'      => 42,
510                         'author-id'     => 42,
511                         'causer-id'     => 42,
512                         'vid'           => 8,
513                         'private'       => Item::PUBLIC,
514                         'visible'       => 1,
515                         'deleted'       => 0,
516                         'wall'          => 0,
517                 ],
518                 [
519                         'id'            => 8,
520                         'uri-id'        => 2,
521                         'uid'           => 0,
522                         'contact-id'    => 42,
523                         'unseen'        => 0,
524                         'origin'        => 0,
525                         'parent-uri-id' => 1,
526                         'thr-parent-id' => 1,
527                         'gravity'       => GRAVITY_COMMENT,
528                         'network'       => Protocol::DFRN,
529                         'owner-id'      => 42,
530                         'author-id'     => 42,
531                         'causer-id'     => 42,
532                         'vid'           => 8,
533                         'private'       => Item::PUBLIC,
534                         'visible'       => 1,
535                         'deleted'       => 0,
536                         'wall'          => 0,
537                 ],
538                 [
539                         'id'            => 9,
540                         'uri-id'        => 3,
541                         'uid'           => 0,
542                         'contact-id'    => 43,
543                         'unseen'        => 0,
544                         'origin'        => 0,
545                         'parent-uri-id' => 3,
546                         'thr-parent-id' => 3,
547                         'gravity'       => GRAVITY_PARENT,
548                         'network'       => Protocol::DFRN,
549                         'owner-id'      => 42,
550                         'author-id'     => 43,
551                         'causer-id'     => 43,
552                         'vid'           => 8,
553                         'private'       => Item::PUBLIC,
554                         'visible'       => 1,
555                         'deleted'       => 0,
556                         'wall'          => 0,
557                 ],
558                 [
559                         'id'            => 10,
560                         'uri-id'        => 4,
561                         'uid'           => 0,
562                         'contact-id'    => 44,
563                         'unseen'        => 0,
564                         'origin'        => 0,
565                         'parent-uri-id' => 1,
566                         'thr-parent-id' => 1,
567                         'gravity'       => GRAVITY_COMMENT,
568                         'network'       => Protocol::DFRN,
569                         'owner-id'      => 42,
570                         'author-id'     => 44,
571                         'causer-id'     => 44,
572                         'vid'           => 8,
573                         'private'       => Item::PUBLIC,
574                         'visible'       => 1,
575                         'deleted'       => 0,
576                         'wall'          => 0,
577                 ],
578                 [
579                         'id'            => 11,
580                         'uri-id'        => 5,
581                         'uid'           => 0,
582                         'contact-id'    => 42,
583                         'unseen'        => 0,
584                         'origin'        => 0,
585                         'parent-uri-id' => 1,
586                         'thr-parent-id' => 1,
587                         'gravity'       => GRAVITY_COMMENT,
588                         'network'       => Protocol::DFRN,
589                         'owner-id'      => 42,
590                         'author-id'     => 42,
591                         'causer-id'     => 42,
592                         'vid'           => 8,
593                         'private'       => Item::PUBLIC,
594                         'visible'       => 1,
595                         'deleted'       => 0,
596                         'wall'          => 0,
597                 ],
598                 [
599                         'id'            => 12,
600                         'uri-id'        => 6,
601                         'visible'       => 1,
602                         'contact-id'    => 44,
603                         'author-id'     => 44,
604                         'owner-id'      => 42,
605                         'causer-id'     => 44,
606                         'uid'           => 0,
607                         'vid'           => 8,
608                         'unseen'        => 0,
609                         'parent-uri-id' => 6,
610                         'thr-parent-id' => 6,
611                         'private'       => Item::PUBLIC,
612                         'gravity'       => GRAVITY_PARENT,
613                         'network'       => Protocol::DFRN,
614                         'origin'        => 0,
615                         'deleted'       => 0,
616                         'wall'          => 0,
617                 ],
618         ],
619         'post-thread'  => [
620                 [
621                         'uri-id'     => 1,
622                         'author-id'  => 42,
623                         'owner-id'   => 42,
624                         'causer-id'  => 42,
625                         'network'    => Protocol::DFRN,
626                 ],
627                 [
628                         'uri-id'     => 3,
629                         'author-id'  => 43,
630                         'owner-id'   => 43,
631                         'causer-id'  => 43,
632                         'network'    => Protocol::DFRN,
633                 ],
634                 [
635                         'uri-id'     => 6,
636                         'author-id'  => 44,
637                         'owner-id'   => 44,
638                         'causer-id'  => 44,
639                         'network'    => Protocol::DFRN,
640                 ],
641         ],
642         'post-thread-user'  => [
643                 [
644                         'uri-id'     => 1,
645                         'uid'        => 42,
646                         'wall'       => 1,
647                         'post-user-id' => 1,
648                         'author-id'  => 42,
649                         'owner-id'   => 42,
650                         'causer-id'  => 42,
651                         'contact-id' => 42,
652                         'network'    => Protocol::DFRN,
653                         'starred'    => 1,
654                         'origin'     => 1,
655                 ],
656                 [
657                         'uri-id'     => 3,
658                         'uid'        => 42,
659                         'wall'       => 1,
660                         'post-user-id' => 3,
661                         'author-id'  => 43,
662                         'owner-id'   => 43,
663                         'causer-id'  => 43,
664                         'contact-id' => 43,
665                         'network'    => Protocol::DFRN,
666                         'starred'    => 0,
667                         'origin'     => 1,
668                 ],
669                 [
670                         'uri-id'     => 6,
671                         'uid'        => 42,
672                         'wall'       => 1,
673                         'post-user-id' => 6,
674                         'author-id'  => 44,
675                         'owner-id'   => 44,
676                         'causer-id'  => 44,
677                         'contact-id' => 44,
678                         'network'    => Protocol::DFRN,
679                         'starred'    => 0,
680                         'origin'     => 1,
681                 ],
682                 [
683                         'uri-id'     => 1,
684                         'uid'        => 0,
685                         'wall'       => 0,
686                         'post-user-id' => 7,
687                         'author-id'  => 42,
688                         'owner-id'   => 42,
689                         'causer-id'  => 42,
690                         'contact-id' => 42,
691                         'network'    => Protocol::DFRN,
692                         'starred'    => 0,
693                         'origin'     => 0,
694                 ],
695                 [
696                         'uri-id'     => 3,
697                         'uid'        => 0,
698                         'wall'       => 0,
699                         'post-user-id' => 9,
700                         'author-id'  => 43,
701                         'owner-id'   => 43,
702                         'causer-id'  => 43,
703                         'contact-id' => 43,
704                         'network'    => Protocol::DFRN,
705                         'starred'    => 0,
706                         'origin'     => 0,
707                 ],
708                 [
709                         'uri-id'     => 6,
710                         'uid'        => 0,
711                         'wall'       => 0,
712                         'post-user-id' => 12,
713                         'author-id'  => 44,
714                         'owner-id'   => 44,
715                         'causer-id'  => 44,
716                         'contact-id' => 44,
717                         'network'    => Protocol::DFRN,
718                         'starred'    => 0,
719                         'origin'     => 0,
720                 ],
721         ],
722         'notify' => [
723                 [
724                         'id' => 1,
725                         'type' => 8,
726                         'name' => 'Reply to',
727                         'url' => 'http://localhost/display/1',
728                         'photo' => 'http://localhost/',
729                         'date' => '2020-01-01 12:12:02',
730                         'msg' => 'A test reply from an item',
731                         'uid' => 42,
732                         'link' => 'http://localhost/notification/1',
733                         'iid' => 4,
734                         'seen' => 0,
735                         'verb' => \Friendica\Protocol\Activity::POST,
736                         'otype' => Notification\ObjectType::ITEM,
737                         'name_cache' => 'Reply to',
738                         'msg_cache' => 'A test reply from an item',
739                 ],
740         ],
741         'profile' => [
742                 [
743                         'id' => 1,
744                         'uid' => 42,
745                 ],
746         ],
747         'group'   => [
748                 [
749                         'id'      => 1,
750                         'uid'     => 42,
751                         'visible' => 1,
752                         'name'    => 'Visible list',
753                 ],
754                 [
755                         'id'      => 2,
756                         'uid'     => 42,
757                         'visible' => 0,
758                         'name'    => 'Private list',
759                 ],
760         ],
761         'search'  => [
762                 [
763                         'id'   => 1,
764                         'term' => 'Saved search',
765                         'uid'  => 42,
766                 ],
767         ],
768 ];