forked from jolicode/slack-php-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathClient.php
3880 lines (3701 loc) · 186 KB
/
Client.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
declare(strict_types=1);
/*
* This file is part of JoliCode's Slack PHP API project.
*
* (c) JoliCode <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace JoliCode\Slack\Api;
class Client extends \JoliCode\Slack\Api\Runtime\Client\Client
{
/**
* Approve an app for installation on a workspace.
*
* @param array $formParameters {
*
* @var string $app_id the id of the app to approve
* @var string $request_id the id of the request to approve
* @var string $team_id
* }
*
* @param array $headerParameters {
*
* @var string $token Authentication token. Requires scope: `admin.apps:write`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminAppsApprovePostResponse200|\JoliCode\Slack\Api\Model\AdminAppsApprovePostResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminAppsApprove(array $formParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminAppsApprove($formParameters, $headerParameters), $fetch);
}
/**
* List approved apps for an org or workspace.
*
* @param array $queryParameters {
*
* @var string $cursor Set `cursor` to `next_cursor` returned by the previous call to list items in the next page
* @var string $enterprise_id
* @var int $limit The maximum number of items to return. Must be between 1 - 1000 both inclusive.
* @var string $team_id
* @var string $token Authentication token. Requires scope: `admin.apps:read`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminAppsApprovedListGetResponse200|\JoliCode\Slack\Api\Model\AdminAppsApprovedListGetResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminAppsApprovedList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminAppsApprovedList($queryParameters), $fetch);
}
/**
* List app requests for a team/workspace.
*
* @param array $queryParameters {
*
* @var string $cursor Set `cursor` to `next_cursor` returned by the previous call to list items in the next page
* @var int $limit The maximum number of items to return. Must be between 1 - 1000 both inclusive.
* @var string $team_id
* @var string $token Authentication token. Requires scope: `admin.apps:read`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminAppsRequestsListGetResponse200|\JoliCode\Slack\Api\Model\AdminAppsRequestsListGetResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminAppsRequestsList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminAppsRequestsList($queryParameters), $fetch);
}
/**
* Restrict an app for installation on a workspace.
*
* @param array $formParameters {
*
* @var string $app_id the id of the app to restrict
* @var string $request_id the id of the request to restrict
* @var string $team_id
* }
*
* @param array $headerParameters {
*
* @var string $token Authentication token. Requires scope: `admin.apps:write`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminAppsRestrictPostResponse200|\JoliCode\Slack\Api\Model\AdminAppsRestrictPostResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminAppsRestrict(array $formParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminAppsRestrict($formParameters, $headerParameters), $fetch);
}
/**
* List restricted apps for an org or workspace.
*
* @param array $queryParameters {
*
* @var string $cursor Set `cursor` to `next_cursor` returned by the previous call to list items in the next page
* @var string $enterprise_id
* @var int $limit The maximum number of items to return. Must be between 1 - 1000 both inclusive.
* @var string $team_id
* @var string $token Authentication token. Requires scope: `admin.apps:read`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminAppsRestrictedListGetResponse200|\JoliCode\Slack\Api\Model\AdminAppsRestrictedListGetResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminAppsRestrictedList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminAppsRestrictedList($queryParameters), $fetch);
}
/**
* Archive a public or private channel.
*
* @param array $formParameters {
*
* @var string $channel_id The channel to archive.
* }
*
* @param array $headerParameters {
*
* @var string $token Authentication token. Requires scope: `admin.conversations:write`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminConversationsArchivePostResponse200|\JoliCode\Slack\Api\Model\AdminConversationsArchivePostResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminConversationsArchive(array $formParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminConversationsArchive($formParameters, $headerParameters), $fetch);
}
/**
* Convert a public channel to a private channel.
*
* @param array $formParameters {
*
* @var string $channel_id The channel to convert to private.
* }
*
* @param array $headerParameters {
*
* @var string $token Authentication token. Requires scope: `admin.conversations:write`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminConversationsConvertToPrivatePostResponse200|\JoliCode\Slack\Api\Model\AdminConversationsConvertToPrivatePostResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminConversationsConvertToPrivate(array $formParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminConversationsConvertToPrivate($formParameters, $headerParameters), $fetch);
}
/**
* Create a public or private channel-based conversation.
*
* @param array $formParameters {
*
* @var string $description description of the public or private channel to create
* @var bool $is_private When `true`, creates a private channel instead of a public channel
* @var string $name name of the public or private channel to create
* @var bool $org_wide When `true`, the channel will be available org-wide. Note: if the channel is not `org_wide=true`, you must specify a `team_id` for this channel
* @var string $team_id The workspace to create the channel in. Note: this argument is required unless you set `org_wide=true`.
* }
*
* @param array $headerParameters {
*
* @var string $token Authentication token. Requires scope: `admin.conversations:write`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminConversationsCreatePostResponse200|\JoliCode\Slack\Api\Model\AdminConversationsCreatePostResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminConversationsCreate(array $formParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminConversationsCreate($formParameters, $headerParameters), $fetch);
}
/**
* Delete a public or private channel.
*
* @param array $formParameters {
*
* @var string $channel_id The channel to delete.
* }
*
* @param array $headerParameters {
*
* @var string $token Authentication token. Requires scope: `admin.conversations:write`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminConversationsDeletePostResponse200|\JoliCode\Slack\Api\Model\AdminConversationsDeletePostResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminConversationsDelete(array $formParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminConversationsDelete($formParameters, $headerParameters), $fetch);
}
/**
* Disconnect a connected channel from one or more workspaces.
*
* @param array $formParameters {
*
* @var string $channel_id the channel to be disconnected from some workspaces
* @var string $leaving_team_ids The team to be removed from the channel. Currently only a single team id can be specified.
* }
*
* @param array $headerParameters {
*
* @var string $token Authentication token. Requires scope: `admin.conversations:write`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminConversationsDisconnectSharedPostResponse200|\JoliCode\Slack\Api\Model\AdminConversationsDisconnectSharedPostResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminConversationsDisconnectShared(array $formParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminConversationsDisconnectShared($formParameters, $headerParameters), $fetch);
}
/**
* List all disconnected channels—i.e., channels that were once connected to other workspaces and then disconnected—and the corresponding original channel IDs for key revocation with EKM.
*
* @param array $queryParameters {
*
* @var string $channel_ids a comma-separated list of channels to filter to
* @var string $cursor set `cursor` to `next_cursor` returned by the previous call to list items in the next page
* @var int $limit The maximum number of items to return. Must be between 1 - 1000 both inclusive.
* @var string $team_ids a comma-separated list of the workspaces to which the channels you would like returned belong
* @var string $token Authentication token. Requires scope: `admin.conversations:read`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminConversationsEkmListOriginalConnectedChannelInfoGetResponse200|\JoliCode\Slack\Api\Model\AdminConversationsEkmListOriginalConnectedChannelInfoGetResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminConversationsEkmListOriginalConnectedChannelInfo(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminConversationsEkmListOriginalConnectedChannelInfo($queryParameters), $fetch);
}
/**
* Get conversation preferences for a public or private channel.
*
* @param array $queryParameters {
*
* @var string $channel_id The channel to get preferences for.
* }
*
* @param array $headerParameters {
*
* @var string $token Authentication token. Requires scope: `admin.conversations:read`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminConversationsGetConversationPrefsGetResponse200|\JoliCode\Slack\Api\Model\AdminConversationsGetConversationPrefsGetResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminConversationsGetConversationPrefs(array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminConversationsGetConversationPrefs($queryParameters, $headerParameters), $fetch);
}
/**
* Get all the workspaces a given public or private channel is connected to within this Enterprise org.
*
* @param array $queryParameters {
*
* @var string $channel_id the channel to determine connected workspaces within the organization for
* @var string $cursor Set `cursor` to `next_cursor` returned by the previous call to list items in the next page
* @var int $limit The maximum number of items to return. Must be between 1 - 1000 both inclusive.
* }
*
* @param array $headerParameters {
*
* @var string $token Authentication token. Requires scope: `admin.conversations:read`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminConversationsGetTeamsGetResponse200|\JoliCode\Slack\Api\Model\AdminConversationsGetTeamsGetResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminConversationsGetTeams(array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminConversationsGetTeams($queryParameters, $headerParameters), $fetch);
}
/**
* Invite a user to a public or private channel.
*
* @param array $formParameters {
*
* @var string $channel_id the channel that the users will be invited to
* @var string $user_ids The users to invite.
* }
*
* @param array $headerParameters {
*
* @var string $token Authentication token. Requires scope: `admin.conversations:write`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminConversationsInvitePostResponse200|\JoliCode\Slack\Api\Model\AdminConversationsInvitePostResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminConversationsInvite(array $formParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminConversationsInvite($formParameters, $headerParameters), $fetch);
}
/**
* Rename a public or private channel.
*
* @param array $formParameters {
*
* @var string $channel_id the channel to rename
* @var string $name
* }
*
* @param array $headerParameters {
*
* @var string $token Authentication token. Requires scope: `admin.conversations:write`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminConversationsRenamePostResponse200|\JoliCode\Slack\Api\Model\AdminConversationsRenamePostResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminConversationsRename(array $formParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminConversationsRename($formParameters, $headerParameters), $fetch);
}
/**
* Add an allowlist of IDP groups for accessing a channel.
*
* @param array $formParameters {
*
* @var string $channel_id the channel to link this group to
* @var string $group_id The [IDP Group](https://slack.com/help/articles/115001435788-Connect-identity-provider-groups-to-your-Enterprise-Grid-org) ID to be an allowlist for the private channel.
* @var string $team_id The workspace where the channel exists. This argument is required for channels only tied to one workspace, and optional for channels that are shared across an organization.
* @var string $token Authentication token. Requires scope: `admin.conversations:write`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminConversationsRestrictAccessAddGroupPostResponse200|\JoliCode\Slack\Api\Model\AdminConversationsRestrictAccessAddGroupPostResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminConversationsRestrictAccessAddGroup(array $formParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminConversationsRestrictAccessAddGroup($formParameters), $fetch);
}
/**
* List all IDP Groups linked to a channel.
*
* @param array $queryParameters {
*
* @var string $channel_id
* @var string $team_id The workspace where the channel exists. This argument is required for channels only tied to one workspace, and optional for channels that are shared across an organization.
* @var string $token Authentication token. Requires scope: `admin.conversations:read`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminConversationsRestrictAccessListGroupsGetResponse200|\JoliCode\Slack\Api\Model\AdminConversationsRestrictAccessListGroupsGetResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminConversationsRestrictAccessListGroups(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminConversationsRestrictAccessListGroups($queryParameters), $fetch);
}
/**
* Remove a linked IDP group linked from a private channel.
*
* @param array $formParameters {
*
* @var string $channel_id the channel to remove the linked group from
* @var string $group_id The [IDP Group](https://slack.com/help/articles/115001435788-Connect-identity-provider-groups-to-your-Enterprise-Grid-org) ID to remove from the private channel.
* @var string $team_id The workspace where the channel exists. This argument is required for channels only tied to one workspace, and optional for channels that are shared across an organization.
* @var string $token Authentication token. Requires scope: `admin.conversations:write`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminConversationsRestrictAccessRemoveGroupPostResponse200|\JoliCode\Slack\Api\Model\AdminConversationsRestrictAccessRemoveGroupPostResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminConversationsRestrictAccessRemoveGroup(array $formParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminConversationsRestrictAccessRemoveGroup($formParameters), $fetch);
}
/**
* Search for public or private channels in an Enterprise organization.
*
* @param array $queryParameters {
*
* @var string $cursor set `cursor` to `next_cursor` returned by the previous call to list items in the next page
* @var int $limit Maximum number of items to be returned. Must be between 1 - 20 both inclusive. Default is 10.
* @var string $query name of the the channel to query by
* @var string $search_channel_types The type of channel to include or exclude in the search. For example `private` will search private channels, while `private_exclude` will exclude them. For a full list of types, check the [Types section](#types).
* @var string $sort Possible values are `relevant` (search ranking based on what we think is closest), `name` (alphabetical), `member_count` (number of users in the channel), and `created` (date channel was created). You can optionally pair this with the `sort_dir` arg to change how it is sorted
* @var string $sort_dir Sort direction. Possible values are `asc` for ascending order like (1, 2, 3) or (a, b, c), and `desc` for descending order like (3, 2, 1) or (c, b, a)
* @var string $team_ids Comma separated string of team IDs, signifying the workspaces to search through.
* }
*
* @param array $headerParameters {
*
* @var string $token Authentication token. Requires scope: `admin.conversations:read`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminConversationsSearchGetResponse200|\JoliCode\Slack\Api\Model\AdminConversationsSearchGetResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminConversationsSearch(array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminConversationsSearch($queryParameters, $headerParameters), $fetch);
}
/**
* Set the posting permissions for a public or private channel.
*
* @param array $formParameters {
*
* @var string $channel_id The channel to set the prefs for
* @var string $prefs The prefs for this channel in a stringified JSON format.
* }
*
* @param array $headerParameters {
*
* @var string $token Authentication token. Requires scope: `admin.conversations:write`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminConversationsSetConversationPrefsPostResponse200|\JoliCode\Slack\Api\Model\AdminConversationsSetConversationPrefsPostResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminConversationsSetConversationPrefs(array $formParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminConversationsSetConversationPrefs($formParameters, $headerParameters), $fetch);
}
/**
* Set the workspaces in an Enterprise grid org that connect to a public or private channel.
*
* @param array $formParameters {
*
* @var string $channel_id the encoded `channel_id` to add or remove to workspaces
* @var bool $org_channel True if channel has to be converted to an org channel
* @var string $target_team_ids A comma-separated list of workspaces to which the channel should be shared. Not required if the channel is being shared org-wide.
* @var string $team_id The workspace to which the channel belongs. Omit this argument if the channel is a cross-workspace shared channel.
* }
*
* @param array $headerParameters {
*
* @var string $token Authentication token. Requires scope: `admin.conversations:write`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminConversationsSetTeamsPostResponse200|\JoliCode\Slack\Api\Model\AdminConversationsSetTeamsPostResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminConversationsSetTeams(array $formParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminConversationsSetTeams($formParameters, $headerParameters), $fetch);
}
/**
* Unarchive a public or private channel.
*
* @param array $formParameters {
*
* @var string $channel_id The channel to unarchive.
* }
*
* @param array $headerParameters {
*
* @var string $token Authentication token. Requires scope: `admin.conversations:write`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminConversationsUnarchivePostResponse200|\JoliCode\Slack\Api\Model\AdminConversationsUnarchivePostResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminConversationsUnarchive(array $formParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminConversationsUnarchive($formParameters, $headerParameters), $fetch);
}
/**
* Add an emoji.
*
* @param array $formParameters {
*
* @var string $name The name of the emoji to be removed. Colons (`:myemoji:`) around the value are not required, although they may be included.
* @var string $token Authentication token. Requires scope: `admin.teams:write`
* @var string $url The URL of a file to use as an image for the emoji. Square images under 128KB and with transparent backgrounds work best.
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminEmojiAddPostResponse200|\JoliCode\Slack\Api\Model\AdminEmojiAddPostResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminEmojiAdd(array $formParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminEmojiAdd($formParameters), $fetch);
}
/**
* Add an emoji alias.
*
* @param array $formParameters {
*
* @var string $alias_for the alias of the emoji
* @var string $name The name of the emoji to be aliased. Colons (`:myemoji:`) around the value are not required, although they may be included.
* @var string $token Authentication token. Requires scope: `admin.teams:write`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminEmojiAddAliasPostResponse200|\JoliCode\Slack\Api\Model\AdminEmojiAddAliasPostResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminEmojiAddAlias(array $formParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminEmojiAddAlias($formParameters), $fetch);
}
/**
* List emoji for an Enterprise Grid organization.
*
* @param array $queryParameters {
*
* @var string $cursor Set `cursor` to `next_cursor` returned by the previous call to list items in the next page
* @var int $limit The maximum number of items to return. Must be between 1 - 1000 both inclusive.
* @var string $token Authentication token. Requires scope: `admin.teams:read`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminEmojiListGetResponse200|\JoliCode\Slack\Api\Model\AdminEmojiListGetResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminEmojiList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminEmojiList($queryParameters), $fetch);
}
/**
* Remove an emoji across an Enterprise Grid organization.
*
* @param array $formParameters {
*
* @var string $name The name of the emoji to be removed. Colons (`:myemoji:`) around the value are not required, although they may be included.
* @var string $token Authentication token. Requires scope: `admin.teams:write`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminEmojiRemovePostResponse200|\JoliCode\Slack\Api\Model\AdminEmojiRemovePostResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminEmojiRemove(array $formParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminEmojiRemove($formParameters), $fetch);
}
/**
* Rename an emoji.
*
* @param array $formParameters {
*
* @var string $name The name of the emoji to be renamed. Colons (`:myemoji:`) around the value are not required, although they may be included.
* @var string $new_name the new name of the emoji
* @var string $token Authentication token. Requires scope: `admin.teams:write`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminEmojiRenamePostResponse200|\JoliCode\Slack\Api\Model\AdminEmojiRenamePostResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminEmojiRename(array $formParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminEmojiRename($formParameters), $fetch);
}
/**
* Approve a workspace invite request.
*
* @param array $formParameters {
*
* @var string $invite_request_id ID of the request to invite
* @var string $team_id ID for the workspace where the invite request was made.
* }
*
* @param array $headerParameters {
*
* @var string $token Authentication token. Requires scope: `admin.invites:write`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminInviteRequestsApprovePostResponse200|\JoliCode\Slack\Api\Model\AdminInviteRequestsApprovePostResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminInviteRequestsApprove(array $formParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminInviteRequestsApprove($formParameters, $headerParameters), $fetch);
}
/**
* List all approved workspace invite requests.
*
* @param array $queryParameters {
*
* @var string $cursor Value of the `next_cursor` field sent as part of the previous API response
* @var int $limit The number of results that will be returned by the API on each invocation. Must be between 1 - 1000, both inclusive
* @var string $team_id ID for the workspace where the invite requests were made.
* }
*
* @param array $headerParameters {
*
* @var string $token Authentication token. Requires scope: `admin.invites:read`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminInviteRequestsApprovedListGetResponse200|\JoliCode\Slack\Api\Model\AdminInviteRequestsApprovedListGetResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminInviteRequestsApprovedList(array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminInviteRequestsApprovedList($queryParameters, $headerParameters), $fetch);
}
/**
* List all denied workspace invite requests.
*
* @param array $queryParameters {
*
* @var string $cursor Value of the `next_cursor` field sent as part of the previous api response
* @var int $limit The number of results that will be returned by the API on each invocation. Must be between 1 - 1000 both inclusive
* @var string $team_id ID for the workspace where the invite requests were made.
* }
*
* @param array $headerParameters {
*
* @var string $token Authentication token. Requires scope: `admin.invites:read`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminInviteRequestsDeniedListGetResponse200|\JoliCode\Slack\Api\Model\AdminInviteRequestsDeniedListGetResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminInviteRequestsDeniedList(array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminInviteRequestsDeniedList($queryParameters, $headerParameters), $fetch);
}
/**
* Deny a workspace invite request.
*
* @param array $formParameters {
*
* @var string $invite_request_id ID of the request to invite
* @var string $team_id ID for the workspace where the invite request was made.
* }
*
* @param array $headerParameters {
*
* @var string $token Authentication token. Requires scope: `admin.invites:write`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminInviteRequestsDenyPostResponse200|\JoliCode\Slack\Api\Model\AdminInviteRequestsDenyPostResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminInviteRequestsDeny(array $formParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminInviteRequestsDeny($formParameters, $headerParameters), $fetch);
}
/**
* List all pending workspace invite requests.
*
* @param array $queryParameters {
*
* @var string $cursor Value of the `next_cursor` field sent as part of the previous API response
* @var int $limit The number of results that will be returned by the API on each invocation. Must be between 1 - 1000, both inclusive
* @var string $team_id ID for the workspace where the invite requests were made.
* }
*
* @param array $headerParameters {
*
* @var string $token Authentication token. Requires scope: `admin.invites:read`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminInviteRequestsListGetResponse200|\JoliCode\Slack\Api\Model\AdminInviteRequestsListGetResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminInviteRequestsList(array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminInviteRequestsList($queryParameters, $headerParameters), $fetch);
}
/**
* List all of the admins on a given workspace.
*
* @param array $queryParameters {
*
* @var string $cursor set `cursor` to `next_cursor` returned by the previous call to list items in the next page
* @var int $limit the maximum number of items to return
* @var string $team_id
* @var string $token Authentication token. Requires scope: `admin.teams:read`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminTeamsAdminsListGetResponse200|\JoliCode\Slack\Api\Model\AdminTeamsAdminsListGetResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminTeamsAdminsList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminTeamsAdminsList($queryParameters), $fetch);
}
/**
* Create an Enterprise team.
*
* @param array $formParameters {
*
* @var string $team_description description for the team
* @var string $team_discoverability Who can join the team. A team's discoverability can be `open`, `closed`, `invite_only`, or `unlisted`.
* @var string $team_domain team domain (for example, slacksoftballteam)
* @var string $team_name Team name (for example, Slack Softball Team).
* }
*
* @param array $headerParameters {
*
* @var string $token Authentication token. Requires scope: `admin.teams:write`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminTeamsCreatePostResponse200|\JoliCode\Slack\Api\Model\AdminTeamsCreatePostResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminTeamsCreate(array $formParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminTeamsCreate($formParameters, $headerParameters), $fetch);
}
/**
* List all teams on an Enterprise organization.
*
* @param array $queryParameters {
*
* @var string $cursor set `cursor` to `next_cursor` returned by the previous call to list items in the next page
* @var int $limit The maximum number of items to return. Must be between 1 - 100 both inclusive.
* }
*
* @param array $headerParameters {
*
* @var string $token Authentication token. Requires scope: `admin.teams:read`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminTeamsListGetResponse200|\JoliCode\Slack\Api\Model\AdminTeamsListGetResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminTeamsList(array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminTeamsList($queryParameters, $headerParameters), $fetch);
}
/**
* List all of the owners on a given workspace.
*
* @param array $queryParameters {
*
* @var string $cursor set `cursor` to `next_cursor` returned by the previous call to list items in the next page
* @var int $limit The maximum number of items to return. Must be between 1 - 1000 both inclusive.
* @var string $team_id
* @var string $token Authentication token. Requires scope: `admin.teams:read`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminTeamsOwnersListGetResponse200|\JoliCode\Slack\Api\Model\AdminTeamsOwnersListGetResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminTeamsOwnersList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminTeamsOwnersList($queryParameters), $fetch);
}
/**
* Fetch information about settings in a workspace.
*
* @param array $queryParameters {
*
* @var string $team_id
* }
*
* @param array $headerParameters {
*
* @var string $token Authentication token. Requires scope: `admin.teams:read`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminTeamsSettingsInfoGetResponse200|\JoliCode\Slack\Api\Model\AdminTeamsSettingsInfoGetResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminTeamsSettingsInfo(array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminTeamsSettingsInfo($queryParameters, $headerParameters), $fetch);
}
/**
* Set the default channels of a workspace.
*
* @param array $formParameters {
*
* @var string $channel_ids an array of channel IDs
* @var string $team_id ID for the workspace to set the default channel for
* @var string $token Authentication token. Requires scope: `admin.teams:write`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminTeamsSettingsSetDefaultChannelsPostResponse200|\JoliCode\Slack\Api\Model\AdminTeamsSettingsSetDefaultChannelsPostResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminTeamsSettingsSetDefaultChannels(array $formParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminTeamsSettingsSetDefaultChannels($formParameters), $fetch);
}
/**
* Set the description of a given workspace.
*
* @param array $formParameters {
*
* @var string $description the new description for the workspace
* @var string $team_id ID for the workspace to set the description for.
* }
*
* @param array $headerParameters {
*
* @var string $token Authentication token. Requires scope: `admin.teams:write`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminTeamsSettingsSetDescriptionPostResponse200|\JoliCode\Slack\Api\Model\AdminTeamsSettingsSetDescriptionPostResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminTeamsSettingsSetDescription(array $formParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminTeamsSettingsSetDescription($formParameters, $headerParameters), $fetch);
}
/**
* An API method that allows admins to set the discoverability of a given workspace.
*
* @param array $formParameters {
*
* @var string $discoverability This workspace's discovery setting. It must be set to one of `open`, `invite_only`, `closed`, or `unlisted`.
* @var string $team_id The ID of the workspace to set discoverability on.
* }
*
* @param array $headerParameters {
*
* @var string $token Authentication token. Requires scope: `admin.teams:write`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminTeamsSettingsSetDiscoverabilityPostResponse200|\JoliCode\Slack\Api\Model\AdminTeamsSettingsSetDiscoverabilityPostResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminTeamsSettingsSetDiscoverability(array $formParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminTeamsSettingsSetDiscoverability($formParameters, $headerParameters), $fetch);
}
/**
* Sets the icon of a workspace.
*
* @param array $formParameters {
*
* @var string $image_url Image URL for the icon
* @var string $team_id ID for the workspace to set the icon for
* @var string $token Authentication token. Requires scope: `admin.teams:write`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminTeamsSettingsSetIconPostResponse200|\JoliCode\Slack\Api\Model\AdminTeamsSettingsSetIconPostResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminTeamsSettingsSetIcon(array $formParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminTeamsSettingsSetIcon($formParameters), $fetch);
}
/**
* Set the name of a given workspace.
*
* @param array $formParameters {
*
* @var string $name the new name of the workspace
* @var string $team_id ID for the workspace to set the name for.
* }
*
* @param array $headerParameters {
*
* @var string $token Authentication token. Requires scope: `admin.teams:write`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminTeamsSettingsSetNamePostResponse200|\JoliCode\Slack\Api\Model\AdminTeamsSettingsSetNamePostResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminTeamsSettingsSetName(array $formParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminTeamsSettingsSetName($formParameters, $headerParameters), $fetch);
}
/**
* Add one or more default channels to an IDP group.
*
* @param array $formParameters {
*
* @var string $channel_ids comma separated string of channel IDs
* @var string $team_id the workspace to add default channels in
* @var string $usergroup_id ID of the IDP group to add default channels for.
* }
*
* @param array $headerParameters {
*
* @var string $token Authentication token. Requires scope: `admin.usergroups:write`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminUsergroupsAddChannelsPostResponse200|\JoliCode\Slack\Api\Model\AdminUsergroupsAddChannelsPostResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminUsergroupsAddChannels(array $formParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminUsergroupsAddChannels($formParameters, $headerParameters), $fetch);
}
/**
* Associate one or more default workspaces with an organization-wide IDP group.
*
* @param array $formParameters {
*
* @var bool $auto_provision when `true`, this method automatically creates new workspace accounts for the IDP group members
* @var string $team_ids A comma separated list of encoded team (workspace) IDs. Each workspace *MUST* belong to the organization associated with the token.
* @var string $usergroup_id An encoded usergroup (IDP Group) ID.
* }
*
* @param array $headerParameters {
*
* @var string $token Authentication token. Requires scope: `admin.teams:write`
* }
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return \JoliCode\Slack\Api\Model\AdminUsergroupsAddTeamsPostResponse200|\JoliCode\Slack\Api\Model\AdminUsergroupsAddTeamsPostResponsedefault|\Psr\Http\Message\ResponseInterface|null
*/
public function adminUsergroupsAddTeams(array $formParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new \JoliCode\Slack\Api\Endpoint\AdminUsergroupsAddTeams($formParameters, $headerParameters), $fetch);
}
/**
* List the channels linked to an org-level IDP group (user group).
*
* @param array $queryParameters {
*
* @var bool $include_num_members flag to include or exclude the count of members per channel
* @var string $team_id ID of the the workspace
* @var string $usergroup_id ID of the IDP group to list default channels for.
* }
*
* @param array $headerParameters {