@mastra/slack 1.0.2 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2600 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
-
3
- export const blocksSchema = {
4
- description: "This is a very loose definition, in the future, we'll populate this with deeper schema in this definition namespace.",
5
- items: {
6
- additionalProperties: true,
7
- properties: {
8
- type: {
9
- type: 'string'
10
- }
11
- },
12
- required: ['type'],
13
- type: 'object'
14
- },
15
- title: 'Block Kit blocks',
16
- type: 'array'
17
- } as const;
18
-
19
- export const defs_app_idSchema = {
20
- pattern: '^A[A-Z0-9]{1,}$',
21
- title: 'App ID',
22
- type: 'string'
23
- } as const;
24
-
25
- export const defs_bot_idSchema = {
26
- pattern: '^B[A-Z0-9]{8,}$',
27
- title: 'Bot User ID',
28
- type: 'string'
29
- } as const;
30
-
31
- export const defs_channelSchema = {
32
- pattern: '^[CGD][A-Z0-9]{8,}$',
33
- title: 'Channel-like conversation ID',
34
- type: 'string'
35
- } as const;
36
-
37
- export const defs_channel_idSchema = {
38
- pattern: '^[C][A-Z0-9]{2,}$',
39
- title: 'Channel ID',
40
- type: 'string'
41
- } as const;
42
-
43
- export const defs_channel_nameSchema = {
44
- title: 'Name of a channel',
45
- type: 'string'
46
- } as const;
47
-
48
- export const defs_comment_idSchema = {
49
- pattern: '^Fc[A-Z0-9]{8,}$',
50
- title: 'File Comment ID',
51
- type: 'string'
52
- } as const;
53
-
54
- export const defs_dm_idSchema = {
55
- pattern: '^[D][A-Z0-9]{8,}$',
56
- title: 'Direct Message Channel ID',
57
- type: 'string'
58
- } as const;
59
-
60
- export const defs_enterprise_idSchema = {
61
- pattern: '^[E][A-Z0-9]{8,}$',
62
- title: 'Enterprise ID',
63
- type: 'string'
64
- } as const;
65
-
66
- export const defs_enterprise_nameSchema = {
67
- title: 'Name of the enterprise org',
68
- type: 'string'
69
- } as const;
70
-
71
- export const defs_enterprise_user_idSchema = {
72
- pattern: '^[WU][A-Z0-9]{8,}$',
73
- title: 'Enterprise User ID',
74
- type: 'string'
75
- } as const;
76
-
77
- export const defs_file_idSchema = {
78
- pattern: '^[F][A-Z0-9]{8,}$',
79
- title: 'File ID',
80
- type: 'string'
81
- } as const;
82
-
83
- export const defs_group_idSchema = {
84
- pattern: '^[G][A-Z0-9]{8,}$',
85
- title: 'Private Channel ID',
86
- type: 'string'
87
- } as const;
88
-
89
- export const defs_ok_falseSchema = {
90
- enum: [false],
91
- title: 'default failure response',
92
- type: 'boolean'
93
- } as const;
94
-
95
- export const defs_ok_trueSchema = {
96
- enum: [true],
97
- title: 'default success response',
98
- type: 'boolean'
99
- } as const;
100
-
101
- export const defs_optional_app_idSchema = {
102
- pattern: '^(A[A-Z0-9]{1,})?$',
103
- title: 'App ID or empty string',
104
- type: 'string'
105
- } as const;
106
-
107
- export const defs_pinned_infoSchema = {
108
- additionalProperties: false,
109
- title: 'Info for a pinned item',
110
- type: 'object'
111
- } as const;
112
-
113
- export const defs_reminder_idSchema = {
114
- pattern: '^Rm[A-Z0-9]{8,}$',
115
- title: 'Reminder ID',
116
- type: 'string'
117
- } as const;
118
-
119
- export const defs_subteam_idSchema = {
120
- pattern: '^S[A-Z0-9]{2,}$',
121
- title: 'Subteam ID',
122
- type: 'string'
123
- } as const;
124
-
125
- export const defs_teamSchema = {
126
- pattern: '^[T][A-Z0-9]{2,}$',
127
- title: 'Team ID',
128
- type: 'string'
129
- } as const;
130
-
131
- export const defs_topic_purpose_creatorSchema = {
132
- pattern: '^[UW][A-Z0-9]{8,}$|^$',
133
- title: 'User ID or empty string, used for topic and purpose creation',
134
- type: 'string'
135
- } as const;
136
-
137
- export const defs_tsSchema = {
138
- pattern: '^\\d{10}\\.\\d{6}$',
139
- title: 'Timestamp in format 0123456789.012345',
140
- type: 'string'
141
- } as const;
142
-
143
- export const defs_user_idSchema = {
144
- pattern: '^[UW][A-Z0-9]{2,}$',
145
- title: 'User ID',
146
- type: 'string'
147
- } as const;
148
-
149
- export const defs_workspace_idSchema = {
150
- pattern: '^[TE][A-Z0-9]{8,}$',
151
- title: 'Team or Enterprise ID',
152
- type: 'string'
153
- } as const;
154
-
155
- export const objs_bot_profileSchema = {
156
- additionalProperties: false,
157
- properties: {
158
- app_id: {
159
- '$ref': '#/components/schemas/defs_app_id'
160
- },
161
- deleted: {
162
- type: 'boolean'
163
- },
164
- icons: {
165
- additionalProperties: false,
166
- properties: {
167
- image_36: {
168
- format: 'uri',
169
- type: 'string'
170
- },
171
- image_48: {
172
- format: 'uri',
173
- type: 'string'
174
- },
175
- image_72: {
176
- format: 'uri',
177
- type: 'string'
178
- }
179
- },
180
- required: ['image_36', 'image_48', 'image_72'],
181
- type: 'object'
182
- },
183
- id: {
184
- '$ref': '#/components/schemas/defs_bot_id'
185
- },
186
- name: {
187
- type: 'string'
188
- },
189
- team_id: {
190
- '$ref': '#/components/schemas/defs_team'
191
- },
192
- updated: {
193
- type: 'integer'
194
- }
195
- },
196
- required: ['id', 'deleted', 'name', 'updated', 'app_id', 'icons', 'team_id'],
197
- title: 'Bot Profile Object',
198
- type: 'object'
199
- } as const;
200
-
201
- export const objs_channelSchema = {
202
- additionalProperties: false,
203
- properties: {
204
- accepted_user: {
205
- '$ref': '#/components/schemas/defs_user_id'
206
- },
207
- created: {
208
- type: 'integer'
209
- },
210
- creator: {
211
- '$ref': '#/components/schemas/defs_user_id'
212
- },
213
- id: {
214
- '$ref': '#/components/schemas/defs_channel_id'
215
- },
216
- is_archived: {
217
- type: 'boolean'
218
- },
219
- is_channel: {
220
- type: 'boolean'
221
- },
222
- is_frozen: {
223
- type: 'boolean'
224
- },
225
- is_general: {
226
- type: 'boolean'
227
- },
228
- is_member: {
229
- type: 'boolean'
230
- },
231
- is_moved: {
232
- type: 'integer'
233
- },
234
- is_mpim: {
235
- type: 'boolean'
236
- },
237
- is_non_threadable: {
238
- type: 'boolean'
239
- },
240
- is_org_shared: {
241
- type: 'boolean'
242
- },
243
- is_pending_ext_shared: {
244
- type: 'boolean'
245
- },
246
- is_private: {
247
- type: 'boolean'
248
- },
249
- is_read_only: {
250
- type: 'boolean'
251
- },
252
- is_shared: {
253
- type: 'boolean'
254
- },
255
- is_thread_only: {
256
- type: 'boolean'
257
- },
258
- last_read: {
259
- '$ref': '#/components/schemas/defs_ts'
260
- },
261
- latest: {
262
- items: {
263
- anyOf: [
264
- {
265
- '$ref': '#/components/schemas/objs_message'
266
- },
267
- {
268
- nullable: true
269
- }
270
- ]
271
- }
272
- },
273
- members: {
274
- items: {
275
- '$ref': '#/components/schemas/defs_user_id'
276
- },
277
- minItems: 0,
278
- type: 'array',
279
- uniqueItems: true
280
- },
281
- name: {
282
- type: 'string'
283
- },
284
- name_normalized: {
285
- type: 'string'
286
- },
287
- num_members: {
288
- type: 'integer'
289
- },
290
- pending_shared: {
291
- items: {
292
- '$ref': '#/components/schemas/defs_team'
293
- },
294
- minItems: 0,
295
- type: 'array',
296
- uniqueItems: true
297
- },
298
- previous_names: {
299
- items: {
300
- '$ref': '#/components/schemas/defs_channel_name'
301
- },
302
- minItems: 0,
303
- type: 'array',
304
- uniqueItems: true
305
- },
306
- priority: {
307
- type: 'number'
308
- },
309
- purpose: {
310
- additionalProperties: false,
311
- properties: {
312
- creator: {
313
- '$ref': '#/components/schemas/defs_topic_purpose_creator'
314
- },
315
- last_set: {
316
- type: 'integer'
317
- },
318
- value: {
319
- type: 'string'
320
- }
321
- },
322
- required: ['value', 'creator', 'last_set'],
323
- type: 'object'
324
- },
325
- topic: {
326
- additionalProperties: false,
327
- properties: {
328
- creator: {
329
- '$ref': '#/components/schemas/defs_topic_purpose_creator'
330
- },
331
- last_set: {
332
- type: 'integer'
333
- },
334
- value: {
335
- type: 'string'
336
- }
337
- },
338
- required: ['value', 'creator', 'last_set'],
339
- type: 'object'
340
- },
341
- unlinked: {
342
- title: 'Field to determine whether a channel has ever been shared/disconnected in the past',
343
- type: 'integer'
344
- },
345
- unread_count: {
346
- type: 'integer'
347
- },
348
- unread_count_display: {
349
- type: 'integer'
350
- }
351
- },
352
- required: ['id', 'name', 'created', 'creator', 'is_channel', 'is_org_shared', 'is_private', 'is_mpim', 'is_shared', 'name_normalized', 'members', 'topic', 'purpose'],
353
- title: 'Channel Object',
354
- type: 'object'
355
- } as const;
356
-
357
- export const objs_commentSchema = {
358
- additionalProperties: false,
359
- properties: {
360
- comment: {
361
- type: 'string'
362
- },
363
- created: {
364
- type: 'integer'
365
- },
366
- id: {
367
- '$ref': '#/components/schemas/defs_comment_id'
368
- },
369
- is_intro: {
370
- type: 'boolean'
371
- },
372
- is_starred: {
373
- type: 'boolean'
374
- },
375
- num_stars: {
376
- type: 'integer'
377
- },
378
- pinned_info: {
379
- '$ref': '#/components/schemas/defs_pinned_info'
380
- },
381
- pinned_to: {
382
- items: {
383
- '$ref': '#/components/schemas/defs_channel'
384
- },
385
- type: 'array'
386
- },
387
- reactions: {
388
- items: {
389
- '$ref': '#/components/schemas/objs_reaction'
390
- },
391
- type: 'array'
392
- },
393
- timestamp: {
394
- type: 'integer'
395
- },
396
- user: {
397
- '$ref': '#/components/schemas/defs_user_id'
398
- }
399
- },
400
- required: ['id', 'created', 'timestamp', 'user', 'is_intro', 'comment'],
401
- title: 'File Comment Object',
402
- type: 'object'
403
- } as const;
404
-
405
- export const objs_commentsSchema = {
406
- items: {},
407
- title: 'file comments object',
408
- type: 'array'
409
- } as const;
410
-
411
- export const objs_conversationSchema = {
412
- items: {
413
- anyOf: [
414
- {
415
- additionalProperties: false,
416
- properties: {
417
- accepted_user: {
418
- '$ref': '#/components/schemas/defs_user_id'
419
- },
420
- connected_team_ids: {
421
- items: {
422
- '$ref': '#/components/schemas/defs_workspace_id'
423
- },
424
- minItems: 0,
425
- type: 'array',
426
- uniqueItems: true
427
- },
428
- conversation_host_id: {
429
- '$ref': '#/components/schemas/defs_workspace_id'
430
- },
431
- created: {
432
- type: 'integer'
433
- },
434
- creator: {
435
- '$ref': '#/components/schemas/defs_user_id'
436
- },
437
- display_counts: {
438
- additionalProperties: false,
439
- properties: {
440
- display_counts: {
441
- type: 'integer'
442
- },
443
- guest_counts: {
444
- type: 'integer'
445
- }
446
- },
447
- required: ['display_counts', 'guest_counts'],
448
- type: 'object'
449
- },
450
- enterprise_id: {
451
- '$ref': '#/components/schemas/defs_enterprise_id'
452
- },
453
- has_pins: {
454
- type: 'boolean'
455
- },
456
- id: {
457
- '$ref': '#/components/schemas/defs_channel'
458
- },
459
- internal_team_ids: {
460
- items: {
461
- '$ref': '#/components/schemas/defs_team'
462
- },
463
- minItems: 0,
464
- type: 'array',
465
- uniqueItems: true
466
- },
467
- is_archived: {
468
- type: 'boolean'
469
- },
470
- is_channel: {
471
- type: 'boolean'
472
- },
473
- is_ext_shared: {
474
- type: 'boolean'
475
- },
476
- is_frozen: {
477
- type: 'boolean'
478
- },
479
- is_general: {
480
- type: 'boolean'
481
- },
482
- is_global_shared: {
483
- type: 'boolean'
484
- },
485
- is_group: {
486
- type: 'boolean'
487
- },
488
- is_im: {
489
- type: 'boolean'
490
- },
491
- is_member: {
492
- type: 'boolean'
493
- },
494
- is_moved: {
495
- type: 'integer'
496
- },
497
- is_mpim: {
498
- enum: [false],
499
- type: 'boolean'
500
- },
501
- is_non_threadable: {
502
- type: 'boolean'
503
- },
504
- is_open: {
505
- type: 'boolean'
506
- },
507
- is_org_default: {
508
- type: 'boolean'
509
- },
510
- is_org_mandatory: {
511
- type: 'boolean'
512
- },
513
- is_org_shared: {
514
- type: 'boolean'
515
- },
516
- is_pending_ext_shared: {
517
- type: 'boolean'
518
- },
519
- is_private: {
520
- type: 'boolean'
521
- },
522
- is_read_only: {
523
- type: 'boolean'
524
- },
525
- is_shared: {
526
- type: 'boolean'
527
- },
528
- is_starred: {
529
- type: 'boolean'
530
- },
531
- is_thread_only: {
532
- type: 'boolean'
533
- },
534
- last_read: {
535
- '$ref': '#/components/schemas/defs_ts'
536
- },
537
- latest: {
538
- items: {
539
- anyOf: [
540
- {
541
- '$ref': '#/components/schemas/objs_message'
542
- },
543
- {
544
- nullable: true
545
- }
546
- ]
547
- }
548
- },
549
- members: {
550
- items: {
551
- '$ref': '#/components/schemas/defs_user_id'
552
- },
553
- minItems: 0,
554
- type: 'array',
555
- uniqueItems: true
556
- },
557
- name: {
558
- type: 'string'
559
- },
560
- name_normalized: {
561
- type: 'string'
562
- },
563
- num_members: {
564
- type: 'integer'
565
- },
566
- parent_conversation: {
567
- items: {
568
- anyOf: [
569
- {
570
- '$ref': '#/components/schemas/defs_channel'
571
- },
572
- {
573
- nullable: true
574
- }
575
- ]
576
- }
577
- },
578
- pending_connected_team_ids: {
579
- items: {
580
- '$ref': '#/components/schemas/defs_team'
581
- },
582
- minItems: 0,
583
- type: 'array',
584
- uniqueItems: true
585
- },
586
- pending_shared: {
587
- items: {
588
- '$ref': '#/components/schemas/defs_team'
589
- },
590
- minItems: 0,
591
- type: 'array',
592
- uniqueItems: true
593
- },
594
- pin_count: {
595
- type: 'integer'
596
- },
597
- previous_names: {
598
- items: {
599
- '$ref': '#/components/schemas/defs_channel_name'
600
- },
601
- minItems: 0,
602
- type: 'array',
603
- uniqueItems: true
604
- },
605
- priority: {
606
- type: 'number'
607
- },
608
- purpose: {
609
- additionalProperties: false,
610
- properties: {
611
- creator: {
612
- '$ref': '#/components/schemas/defs_topic_purpose_creator'
613
- },
614
- last_set: {
615
- type: 'integer'
616
- },
617
- value: {
618
- type: 'string'
619
- }
620
- },
621
- required: ['value', 'creator', 'last_set'],
622
- type: 'object'
623
- },
624
- shared_team_ids: {
625
- items: {
626
- '$ref': '#/components/schemas/defs_team'
627
- },
628
- minItems: 0,
629
- type: 'array',
630
- uniqueItems: true
631
- },
632
- shares: {
633
- items: {
634
- additionalProperties: false,
635
- properties: {
636
- accepted_user: {
637
- '$ref': '#/components/schemas/defs_user_id'
638
- },
639
- is_active: {
640
- type: 'boolean'
641
- },
642
- team: {
643
- '$ref': '#/components/schemas/objs_team'
644
- },
645
- user: {
646
- '$ref': '#/components/schemas/defs_user_id'
647
- }
648
- },
649
- required: ['team', 'user', 'is_active'],
650
- type: 'object'
651
- },
652
- minItems: 0,
653
- type: 'array',
654
- uniqueItems: true
655
- },
656
- timezone_count: {
657
- type: 'integer'
658
- },
659
- topic: {
660
- additionalProperties: false,
661
- properties: {
662
- creator: {
663
- '$ref': '#/components/schemas/defs_topic_purpose_creator'
664
- },
665
- last_set: {
666
- type: 'integer'
667
- },
668
- value: {
669
- type: 'string'
670
- }
671
- },
672
- required: ['value', 'creator', 'last_set'],
673
- type: 'object'
674
- },
675
- unlinked: {
676
- title: 'Field to determine whether a channel has ever been shared/disconnected in the past',
677
- type: 'integer'
678
- },
679
- unread_count: {
680
- type: 'integer'
681
- },
682
- unread_count_display: {
683
- type: 'integer'
684
- },
685
- use_case: {
686
- type: 'string'
687
- },
688
- user: {
689
- '$ref': '#/components/schemas/defs_user_id'
690
- },
691
- version: {
692
- type: 'integer'
693
- }
694
- },
695
- required: ['id', 'name', 'created', 'creator', 'is_archived', 'is_channel', 'is_general', 'is_mpim', 'is_group', 'is_org_shared', 'is_im', 'is_shared', 'is_private', 'name_normalized', 'topic', 'purpose'],
696
- title: 'Conversation object',
697
- type: 'object'
698
- },
699
- {
700
- additionalProperties: false,
701
- properties: {
702
- accepted_user: {
703
- '$ref': '#/components/schemas/defs_user_id'
704
- },
705
- connected_team_ids: {
706
- items: {
707
- '$ref': '#/components/schemas/defs_team'
708
- },
709
- minItems: 0,
710
- type: 'array',
711
- uniqueItems: true
712
- },
713
- conversation_host_id: {
714
- '$ref': '#/components/schemas/defs_workspace_id'
715
- },
716
- created: {
717
- type: 'integer'
718
- },
719
- creator: {
720
- '$ref': '#/components/schemas/defs_user_id'
721
- },
722
- display_counts: {
723
- additionalProperties: false,
724
- properties: {
725
- display_counts: {
726
- type: 'integer'
727
- },
728
- guest_counts: {
729
- type: 'integer'
730
- }
731
- },
732
- required: ['display_counts', 'guest_counts'],
733
- type: 'object'
734
- },
735
- id: {
736
- '$ref': '#/components/schemas/defs_channel'
737
- },
738
- internal_team_ids: {
739
- items: {
740
- '$ref': '#/components/schemas/defs_team'
741
- },
742
- minItems: 0,
743
- type: 'array',
744
- uniqueItems: true
745
- },
746
- is_archived: {
747
- type: 'boolean'
748
- },
749
- is_channel: {
750
- type: 'boolean'
751
- },
752
- is_ext_shared: {
753
- type: 'boolean'
754
- },
755
- is_frozen: {
756
- type: 'boolean'
757
- },
758
- is_general: {
759
- type: 'boolean'
760
- },
761
- is_group: {
762
- type: 'boolean'
763
- },
764
- is_im: {
765
- type: 'boolean'
766
- },
767
- is_member: {
768
- type: 'boolean'
769
- },
770
- is_moved: {
771
- type: 'integer'
772
- },
773
- is_mpim: {
774
- enum: [true],
775
- type: 'boolean'
776
- },
777
- is_non_threadable: {
778
- type: 'boolean'
779
- },
780
- is_open: {
781
- type: 'boolean'
782
- },
783
- is_org_shared: {
784
- type: 'boolean'
785
- },
786
- is_pending_ext_shared: {
787
- type: 'boolean'
788
- },
789
- is_private: {
790
- type: 'boolean'
791
- },
792
- is_read_only: {
793
- type: 'boolean'
794
- },
795
- is_shared: {
796
- type: 'boolean'
797
- },
798
- is_starred: {
799
- type: 'boolean'
800
- },
801
- is_thread_only: {
802
- type: 'boolean'
803
- },
804
- last_read: {
805
- '$ref': '#/components/schemas/defs_ts'
806
- },
807
- latest: {
808
- items: {
809
- anyOf: [
810
- {
811
- '$ref': '#/components/schemas/objs_message'
812
- },
813
- {
814
- nullable: true
815
- }
816
- ]
817
- }
818
- },
819
- members: {
820
- items: {
821
- '$ref': '#/components/schemas/defs_user_id'
822
- },
823
- minItems: 0,
824
- type: 'array',
825
- uniqueItems: true
826
- },
827
- name: {
828
- type: 'string'
829
- },
830
- name_normalized: {
831
- type: 'string'
832
- },
833
- num_members: {
834
- type: 'integer'
835
- },
836
- parent_conversation: {
837
- items: {
838
- anyOf: [
839
- {
840
- '$ref': '#/components/schemas/defs_channel'
841
- },
842
- {
843
- nullable: true
844
- }
845
- ]
846
- }
847
- },
848
- pending_connected_team_ids: {
849
- items: {
850
- '$ref': '#/components/schemas/defs_team'
851
- },
852
- minItems: 0,
853
- type: 'array',
854
- uniqueItems: true
855
- },
856
- pending_shared: {
857
- items: {
858
- '$ref': '#/components/schemas/defs_team'
859
- },
860
- minItems: 0,
861
- type: 'array',
862
- uniqueItems: true
863
- },
864
- pin_count: {
865
- type: 'integer'
866
- },
867
- previous_names: {
868
- items: {
869
- '$ref': '#/components/schemas/defs_channel_name'
870
- },
871
- minItems: 0,
872
- type: 'array',
873
- uniqueItems: true
874
- },
875
- priority: {
876
- type: 'number'
877
- },
878
- purpose: {
879
- additionalProperties: false,
880
- properties: {
881
- creator: {
882
- '$ref': '#/components/schemas/defs_topic_purpose_creator'
883
- },
884
- last_set: {
885
- type: 'integer'
886
- },
887
- value: {
888
- type: 'string'
889
- }
890
- },
891
- required: ['value', 'creator', 'last_set'],
892
- type: 'object'
893
- },
894
- shared_team_ids: {
895
- items: {
896
- '$ref': '#/components/schemas/defs_team'
897
- },
898
- minItems: 0,
899
- type: 'array',
900
- uniqueItems: true
901
- },
902
- shares: {
903
- items: {
904
- additionalProperties: false,
905
- properties: {
906
- accepted_user: {
907
- '$ref': '#/components/schemas/defs_user_id'
908
- },
909
- is_active: {
910
- type: 'boolean'
911
- },
912
- team: {
913
- '$ref': '#/components/schemas/objs_team'
914
- },
915
- user: {
916
- '$ref': '#/components/schemas/defs_user_id'
917
- }
918
- },
919
- required: ['team', 'user', 'is_active'],
920
- type: 'object'
921
- },
922
- minItems: 0,
923
- type: 'array',
924
- uniqueItems: true
925
- },
926
- timezone_count: {
927
- type: 'integer'
928
- },
929
- topic: {
930
- additionalProperties: false,
931
- properties: {
932
- creator: {
933
- '$ref': '#/components/schemas/defs_topic_purpose_creator'
934
- },
935
- last_set: {
936
- type: 'integer'
937
- },
938
- value: {
939
- type: 'string'
940
- }
941
- },
942
- required: ['value', 'creator', 'last_set'],
943
- type: 'object'
944
- },
945
- unlinked: {
946
- title: 'Field to determine whether a channel has ever been shared/disconnected in the past',
947
- type: 'integer'
948
- },
949
- unread_count: {
950
- type: 'integer'
951
- },
952
- unread_count_display: {
953
- type: 'integer'
954
- },
955
- user: {
956
- '$ref': '#/components/schemas/defs_user_id'
957
- },
958
- version: {
959
- type: 'integer'
960
- }
961
- },
962
- required: ['id', 'name', 'created', 'creator', 'is_archived', 'is_channel', 'is_general', 'is_mpim', 'is_group', 'is_org_shared', 'is_im', 'is_shared', 'is_private', 'name_normalized', 'topic', 'purpose'],
963
- title: 'Conversation MPIM Object',
964
- type: 'object'
965
- },
966
- {
967
- additionalProperties: false,
968
- properties: {
969
- created: {
970
- type: 'integer'
971
- },
972
- has_pins: {
973
- type: 'boolean'
974
- },
975
- id: {
976
- '$ref': '#/components/schemas/defs_dm_id'
977
- },
978
- is_archived: {
979
- type: 'boolean'
980
- },
981
- is_ext_shared: {
982
- type: 'boolean'
983
- },
984
- is_frozen: {
985
- type: 'boolean'
986
- },
987
- is_im: {
988
- type: 'boolean'
989
- },
990
- is_open: {
991
- type: 'boolean'
992
- },
993
- is_org_shared: {
994
- type: 'boolean'
995
- },
996
- is_shared: {
997
- type: 'boolean'
998
- },
999
- is_starred: {
1000
- type: 'boolean'
1001
- },
1002
- is_user_deleted: {
1003
- type: 'boolean'
1004
- },
1005
- last_read: {
1006
- '$ref': '#/components/schemas/defs_ts'
1007
- },
1008
- latest: {
1009
- items: {
1010
- anyOf: [
1011
- {
1012
- '$ref': '#/components/schemas/objs_message'
1013
- },
1014
- {
1015
- nullable: true
1016
- }
1017
- ]
1018
- }
1019
- },
1020
- parent_conversation: {
1021
- items: {
1022
- anyOf: [
1023
- {
1024
- '$ref': '#/components/schemas/defs_channel'
1025
- },
1026
- {
1027
- nullable: true
1028
- }
1029
- ]
1030
- }
1031
- },
1032
- pin_count: {
1033
- type: 'integer'
1034
- },
1035
- priority: {
1036
- type: 'number'
1037
- },
1038
- shares: {
1039
- items: {
1040
- additionalProperties: false,
1041
- properties: {
1042
- date_create: {
1043
- type: 'integer'
1044
- },
1045
- id: {
1046
- '$ref': '#/components/schemas/defs_team'
1047
- },
1048
- is_active: {
1049
- type: 'boolean'
1050
- },
1051
- name: {
1052
- type: 'string'
1053
- },
1054
- team: {
1055
- '$ref': '#/components/schemas/objs_team'
1056
- }
1057
- },
1058
- required: ['id', 'name', 'team', 'date_create', 'is_active'],
1059
- type: 'object'
1060
- },
1061
- minItems: 0,
1062
- type: 'array',
1063
- uniqueItems: true
1064
- },
1065
- unread_count: {
1066
- type: 'integer'
1067
- },
1068
- unread_count_display: {
1069
- type: 'integer'
1070
- },
1071
- user: {
1072
- '$ref': '#/components/schemas/defs_user_id'
1073
- },
1074
- version: {
1075
- type: 'integer'
1076
- }
1077
- },
1078
- required: ['id', 'created', 'is_im', 'is_org_shared', 'user', 'priority'],
1079
- title: 'Conversation IM Channel Object from conversations.* methods',
1080
- type: 'object'
1081
- }
1082
- ]
1083
- }
1084
- } as const;
1085
-
1086
- export const objs_enterprise_userSchema = {
1087
- additionalProperties: false,
1088
- properties: {
1089
- enterprise_id: {
1090
- '$ref': '#/components/schemas/defs_enterprise_id'
1091
- },
1092
- enterprise_name: {
1093
- '$ref': '#/components/schemas/defs_enterprise_name'
1094
- },
1095
- id: {
1096
- '$ref': '#/components/schemas/defs_enterprise_user_id'
1097
- },
1098
- is_admin: {
1099
- type: 'boolean'
1100
- },
1101
- is_owner: {
1102
- type: 'boolean'
1103
- },
1104
- teams: {
1105
- items: {
1106
- '$ref': '#/components/schemas/defs_team'
1107
- },
1108
- type: 'array',
1109
- uniqueItems: true
1110
- }
1111
- },
1112
- required: ['id', 'enterprise_id', 'enterprise_name', 'is_admin', 'is_owner', 'teams'],
1113
- type: 'object'
1114
- } as const;
1115
-
1116
- export const objs_external_org_migrationsSchema = {
1117
- properties: {
1118
- current: {
1119
- items: {
1120
- properties: {
1121
- date_started: {
1122
- type: 'integer'
1123
- },
1124
- team_id: {
1125
- type: 'string'
1126
- }
1127
- },
1128
- required: ['team_id', 'date_started'],
1129
- type: 'object'
1130
- },
1131
- type: 'array'
1132
- },
1133
- date_updated: {
1134
- type: 'integer'
1135
- }
1136
- },
1137
- required: ['date_updated', 'current'],
1138
- title: 'External Org Migrations',
1139
- type: 'object'
1140
- } as const;
1141
-
1142
- export const objs_fileSchema = {
1143
- additionalProperties: false,
1144
- properties: {
1145
- channels: {
1146
- items: {
1147
- '$ref': '#/components/schemas/defs_channel_id'
1148
- },
1149
- type: 'array',
1150
- uniqueItems: true
1151
- },
1152
- comments_count: {
1153
- type: 'integer'
1154
- },
1155
- created: {
1156
- type: 'integer'
1157
- },
1158
- date_delete: {
1159
- type: 'integer'
1160
- },
1161
- display_as_bot: {
1162
- type: 'boolean'
1163
- },
1164
- editable: {
1165
- type: 'boolean'
1166
- },
1167
- editor: {
1168
- '$ref': '#/components/schemas/defs_user_id'
1169
- },
1170
- external_id: {
1171
- type: 'string'
1172
- },
1173
- external_type: {
1174
- type: 'string'
1175
- },
1176
- external_url: {
1177
- format: 'uri',
1178
- type: 'string'
1179
- },
1180
- filetype: {
1181
- type: 'string'
1182
- },
1183
- groups: {
1184
- items: {
1185
- '$ref': '#/components/schemas/defs_group_id'
1186
- },
1187
- type: 'array',
1188
- uniqueItems: true
1189
- },
1190
- has_rich_preview: {
1191
- type: 'boolean'
1192
- },
1193
- id: {
1194
- '$ref': '#/components/schemas/defs_file_id'
1195
- },
1196
- image_exif_rotation: {
1197
- type: 'integer'
1198
- },
1199
- ims: {
1200
- items: {
1201
- '$ref': '#/components/schemas/defs_dm_id'
1202
- },
1203
- type: 'array',
1204
- uniqueItems: true
1205
- },
1206
- is_external: {
1207
- type: 'boolean'
1208
- },
1209
- is_public: {
1210
- type: 'boolean'
1211
- },
1212
- is_starred: {
1213
- type: 'boolean'
1214
- },
1215
- is_tombstoned: {
1216
- type: 'boolean'
1217
- },
1218
- last_editor: {
1219
- '$ref': '#/components/schemas/defs_user_id'
1220
- },
1221
- mimetype: {
1222
- type: 'string'
1223
- },
1224
- mode: {
1225
- type: 'string'
1226
- },
1227
- name: {
1228
- type: 'string'
1229
- },
1230
- non_owner_editable: {
1231
- type: 'boolean'
1232
- },
1233
- num_stars: {
1234
- type: 'integer'
1235
- },
1236
- original_h: {
1237
- type: 'integer'
1238
- },
1239
- original_w: {
1240
- type: 'integer'
1241
- },
1242
- permalink: {
1243
- format: 'uri',
1244
- type: 'string'
1245
- },
1246
- permalink_public: {
1247
- format: 'uri',
1248
- type: 'string'
1249
- },
1250
- pinned_info: {
1251
- '$ref': '#/components/schemas/defs_pinned_info'
1252
- },
1253
- pinned_to: {
1254
- items: {
1255
- '$ref': '#/components/schemas/defs_channel'
1256
- },
1257
- type: 'array'
1258
- },
1259
- pretty_type: {
1260
- type: 'string'
1261
- },
1262
- preview: {
1263
- type: 'string'
1264
- },
1265
- public_url_shared: {
1266
- type: 'boolean'
1267
- },
1268
- reactions: {
1269
- items: {
1270
- '$ref': '#/components/schemas/objs_reaction'
1271
- },
1272
- type: 'array'
1273
- },
1274
- shares: {
1275
- additionalProperties: false,
1276
- properties: {
1277
- private: {
1278
- additionalProperties: false
1279
- },
1280
- public: {
1281
- additionalProperties: false
1282
- }
1283
- },
1284
- type: 'object'
1285
- },
1286
- size: {
1287
- type: 'integer'
1288
- },
1289
- source_team: {
1290
- '$ref': '#/components/schemas/defs_team'
1291
- },
1292
- state: {
1293
- type: 'string'
1294
- },
1295
- thumb_1024: {
1296
- format: 'uri',
1297
- type: 'string'
1298
- },
1299
- thumb_1024_h: {
1300
- type: 'integer'
1301
- },
1302
- thumb_1024_w: {
1303
- type: 'integer'
1304
- },
1305
- thumb_160: {
1306
- format: 'uri',
1307
- type: 'string'
1308
- },
1309
- thumb_360: {
1310
- format: 'uri',
1311
- type: 'string'
1312
- },
1313
- thumb_360_h: {
1314
- type: 'integer'
1315
- },
1316
- thumb_360_w: {
1317
- type: 'integer'
1318
- },
1319
- thumb_480: {
1320
- format: 'uri',
1321
- type: 'string'
1322
- },
1323
- thumb_480_h: {
1324
- type: 'integer'
1325
- },
1326
- thumb_480_w: {
1327
- type: 'integer'
1328
- },
1329
- thumb_64: {
1330
- format: 'uri',
1331
- type: 'string'
1332
- },
1333
- thumb_720: {
1334
- format: 'uri',
1335
- type: 'string'
1336
- },
1337
- thumb_720_h: {
1338
- type: 'integer'
1339
- },
1340
- thumb_720_w: {
1341
- type: 'integer'
1342
- },
1343
- thumb_80: {
1344
- format: 'uri',
1345
- type: 'string'
1346
- },
1347
- thumb_800: {
1348
- format: 'uri',
1349
- type: 'string'
1350
- },
1351
- thumb_800_h: {
1352
- type: 'integer'
1353
- },
1354
- thumb_800_w: {
1355
- type: 'integer'
1356
- },
1357
- thumb_960: {
1358
- format: 'uri',
1359
- type: 'string'
1360
- },
1361
- thumb_960_h: {
1362
- type: 'integer'
1363
- },
1364
- thumb_960_w: {
1365
- type: 'integer'
1366
- },
1367
- thumb_tiny: {
1368
- type: 'string'
1369
- },
1370
- timestamp: {
1371
- type: 'integer'
1372
- },
1373
- title: {
1374
- type: 'string'
1375
- },
1376
- updated: {
1377
- type: 'integer'
1378
- },
1379
- url_private: {
1380
- format: 'uri',
1381
- type: 'string'
1382
- },
1383
- url_private_download: {
1384
- format: 'uri',
1385
- type: 'string'
1386
- },
1387
- user: {
1388
- type: 'string'
1389
- },
1390
- user_team: {
1391
- '$ref': '#/components/schemas/defs_team'
1392
- },
1393
- username: {
1394
- type: 'string'
1395
- }
1396
- },
1397
- title: 'file object',
1398
- type: 'object'
1399
- } as const;
1400
-
1401
- export const objs_iconSchema = {
1402
- properties: {
1403
- image_102: {
1404
- type: 'string'
1405
- },
1406
- image_132: {
1407
- type: 'string'
1408
- },
1409
- image_230: {
1410
- type: 'string'
1411
- },
1412
- image_34: {
1413
- type: 'string'
1414
- },
1415
- image_44: {
1416
- type: 'string'
1417
- },
1418
- image_68: {
1419
- type: 'string'
1420
- },
1421
- image_88: {
1422
- type: 'string'
1423
- },
1424
- image_default: {
1425
- type: 'boolean'
1426
- }
1427
- },
1428
- type: 'object'
1429
- } as const;
1430
-
1431
- export const objs_messageSchema = {
1432
- additionalProperties: false,
1433
- properties: {
1434
- attachments: {
1435
- items: {
1436
- additionalProperties: false,
1437
- properties: {
1438
- fallback: {
1439
- type: 'string'
1440
- },
1441
- id: {
1442
- type: 'integer'
1443
- },
1444
- image_bytes: {
1445
- type: 'integer'
1446
- },
1447
- image_height: {
1448
- type: 'integer'
1449
- },
1450
- image_url: {
1451
- type: 'string'
1452
- },
1453
- image_width: {
1454
- type: 'integer'
1455
- }
1456
- },
1457
- required: ['id'],
1458
- type: 'object'
1459
- },
1460
- minItems: 1,
1461
- type: 'array',
1462
- uniqueItems: true
1463
- },
1464
- blocks: {
1465
- '$ref': '#/components/schemas/blocks'
1466
- },
1467
- bot_id: {
1468
- items: {
1469
- anyOf: [
1470
- {
1471
- '$ref': '#/components/schemas/defs_bot_id'
1472
- },
1473
- {
1474
- nullable: true,
1475
- title: 'Nil bot_id set when display_as_bot is false'
1476
- }
1477
- ]
1478
- }
1479
- },
1480
- bot_profile: {
1481
- '$ref': '#/components/schemas/objs_bot_profile'
1482
- },
1483
- client_msg_id: {
1484
- type: 'string'
1485
- },
1486
- comment: {
1487
- '$ref': '#/components/schemas/objs_comment'
1488
- },
1489
- display_as_bot: {
1490
- type: 'boolean'
1491
- },
1492
- file: {
1493
- '$ref': '#/components/schemas/objs_file'
1494
- },
1495
- files: {
1496
- items: {
1497
- '$ref': '#/components/schemas/objs_file'
1498
- },
1499
- minItems: 1,
1500
- type: 'array',
1501
- uniqueItems: true
1502
- },
1503
- icons: {
1504
- additionalProperties: false,
1505
- properties: {
1506
- emoji: {
1507
- type: 'string'
1508
- },
1509
- image_64: {
1510
- format: 'uri',
1511
- type: 'string'
1512
- }
1513
- },
1514
- type: 'object'
1515
- },
1516
- inviter: {
1517
- '$ref': '#/components/schemas/defs_user_id'
1518
- },
1519
- is_delayed_message: {
1520
- type: 'boolean'
1521
- },
1522
- is_intro: {
1523
- type: 'boolean'
1524
- },
1525
- is_starred: {
1526
- type: 'boolean'
1527
- },
1528
- last_read: {
1529
- '$ref': '#/components/schemas/defs_ts'
1530
- },
1531
- latest_reply: {
1532
- '$ref': '#/components/schemas/defs_ts'
1533
- },
1534
- name: {
1535
- type: 'string'
1536
- },
1537
- old_name: {
1538
- type: 'string'
1539
- },
1540
- parent_user_id: {
1541
- '$ref': '#/components/schemas/defs_user_id'
1542
- },
1543
- permalink: {
1544
- format: 'uri',
1545
- type: 'string'
1546
- },
1547
- pinned_to: {
1548
- items: {
1549
- '$ref': '#/components/schemas/defs_channel'
1550
- },
1551
- type: 'array'
1552
- },
1553
- purpose: {
1554
- type: 'string'
1555
- },
1556
- reactions: {
1557
- items: {
1558
- '$ref': '#/components/schemas/objs_reaction'
1559
- },
1560
- type: 'array'
1561
- },
1562
- reply_count: {
1563
- type: 'integer'
1564
- },
1565
- reply_users: {
1566
- items: {
1567
- '$ref': '#/components/schemas/defs_user_id'
1568
- },
1569
- minItems: 1,
1570
- type: 'array',
1571
- uniqueItems: true
1572
- },
1573
- reply_users_count: {
1574
- type: 'integer'
1575
- },
1576
- source_team: {
1577
- '$ref': '#/components/schemas/defs_workspace_id'
1578
- },
1579
- subscribed: {
1580
- type: 'boolean'
1581
- },
1582
- subtype: {
1583
- type: 'string'
1584
- },
1585
- team: {
1586
- '$ref': '#/components/schemas/defs_workspace_id'
1587
- },
1588
- text: {
1589
- type: 'string'
1590
- },
1591
- thread_ts: {
1592
- '$ref': '#/components/schemas/defs_ts'
1593
- },
1594
- topic: {
1595
- type: 'string'
1596
- },
1597
- ts: {
1598
- '$ref': '#/components/schemas/defs_ts'
1599
- },
1600
- type: {
1601
- type: 'string'
1602
- },
1603
- unread_count: {
1604
- type: 'integer'
1605
- },
1606
- upload: {
1607
- type: 'boolean'
1608
- },
1609
- user: {
1610
- '$ref': '#/components/schemas/defs_user_id'
1611
- },
1612
- user_profile: {
1613
- '$ref': '#/components/schemas/objs_user_profile_short'
1614
- },
1615
- user_team: {
1616
- '$ref': '#/components/schemas/defs_workspace_id'
1617
- },
1618
- username: {
1619
- type: 'string'
1620
- }
1621
- },
1622
- required: ['text', 'type', 'ts'],
1623
- title: 'Message object',
1624
- type: 'object'
1625
- } as const;
1626
-
1627
- export const objs_pagingSchema = {
1628
- additionalProperties: false,
1629
- properties: {
1630
- count: {
1631
- type: 'integer'
1632
- },
1633
- page: {
1634
- type: 'integer'
1635
- },
1636
- pages: {
1637
- type: 'integer'
1638
- },
1639
- per_page: {
1640
- type: 'integer'
1641
- },
1642
- spill: {
1643
- type: 'integer'
1644
- },
1645
- total: {
1646
- type: 'integer'
1647
- }
1648
- },
1649
- required: ['page', 'total'],
1650
- title: 'paging object',
1651
- type: 'object'
1652
- } as const;
1653
-
1654
- export const objs_primary_ownerSchema = {
1655
- properties: {
1656
- email: {
1657
- type: 'string'
1658
- },
1659
- id: {
1660
- type: 'string'
1661
- }
1662
- },
1663
- required: ['id', 'email'],
1664
- type: 'object'
1665
- } as const;
1666
-
1667
- export const objs_reactionSchema = {
1668
- additionalProperties: true,
1669
- properties: {
1670
- count: {
1671
- type: 'integer'
1672
- },
1673
- name: {
1674
- type: 'string'
1675
- },
1676
- users: {
1677
- items: {
1678
- '$ref': '#/components/schemas/defs_user_id'
1679
- },
1680
- type: 'array'
1681
- }
1682
- },
1683
- required: ['name', 'users', 'count'],
1684
- title: 'Reaction object',
1685
- type: 'object'
1686
- } as const;
1687
-
1688
- export const objs_reminderSchema = {
1689
- additionalProperties: false,
1690
- properties: {
1691
- complete_ts: {
1692
- type: 'integer'
1693
- },
1694
- creator: {
1695
- '$ref': '#/components/schemas/defs_user_id'
1696
- },
1697
- id: {
1698
- '$ref': '#/components/schemas/defs_reminder_id'
1699
- },
1700
- recurring: {
1701
- type: 'boolean'
1702
- },
1703
- text: {
1704
- type: 'string'
1705
- },
1706
- time: {
1707
- type: 'integer'
1708
- },
1709
- user: {
1710
- '$ref': '#/components/schemas/defs_user_id'
1711
- }
1712
- },
1713
- required: ['id', 'creator', 'user', 'text', 'recurring'],
1714
- type: 'object'
1715
- } as const;
1716
-
1717
- export const objs_resourcesSchema = {
1718
- additionalProperties: false,
1719
- properties: {
1720
- excluded_ids: {
1721
- items: {
1722
- items: {
1723
- anyOf: [
1724
- {
1725
- '$ref': '#/components/schemas/defs_channel'
1726
- },
1727
- {
1728
- '$ref': '#/components/schemas/defs_team'
1729
- }
1730
- ]
1731
- }
1732
- },
1733
- type: 'array'
1734
- },
1735
- ids: {
1736
- items: {
1737
- items: {
1738
- anyOf: [
1739
- {
1740
- '$ref': '#/components/schemas/defs_channel'
1741
- },
1742
- {
1743
- '$ref': '#/components/schemas/defs_team'
1744
- }
1745
- ]
1746
- }
1747
- },
1748
- type: 'array'
1749
- },
1750
- wildcard: {
1751
- type: 'boolean'
1752
- }
1753
- },
1754
- required: ['ids'],
1755
- title: 'resources in info from apps.permissions.info',
1756
- type: 'object'
1757
- } as const;
1758
-
1759
- export const objs_response_metadataSchema = {
1760
- items: {
1761
- anyOf: [
1762
- {
1763
- additionalProperties: false,
1764
- properties: {
1765
- next_cursor: {
1766
- type: 'string'
1767
- }
1768
- },
1769
- required: ['next_cursor'],
1770
- title: 'new paging style',
1771
- type: 'object'
1772
- },
1773
- {
1774
- additionalProperties: false,
1775
- properties: {
1776
- messages: {
1777
- items: {
1778
- type: 'string'
1779
- },
1780
- type: 'array'
1781
- },
1782
- warnings: {
1783
- items: {
1784
- enum: ['method_deprecated'],
1785
- type: 'string'
1786
- },
1787
- type: 'array'
1788
- }
1789
- },
1790
- required: ['messages', 'warnings'],
1791
- title: 'deprecation_warning',
1792
- type: 'object'
1793
- },
1794
- {
1795
- additionalProperties: false,
1796
- properties: {
1797
- messages: {
1798
- items: {
1799
- type: 'string'
1800
- },
1801
- type: 'array'
1802
- },
1803
- next_cursor: {
1804
- type: 'string'
1805
- },
1806
- warnings: {
1807
- items: {
1808
- enum: ['method_deprecated'],
1809
- type: 'string'
1810
- },
1811
- type: 'array'
1812
- }
1813
- },
1814
- required: ['messages', 'warnings', 'next_cursor'],
1815
- title: 'deprecation_warning and paging style together',
1816
- type: 'object'
1817
- }
1818
- ]
1819
- }
1820
- } as const;
1821
-
1822
- export const objs_scopesSchema = {
1823
- items: {
1824
- title: 'Named OAuth scopes',
1825
- type: 'string',
1826
- 'x-examples': ['chat:write', 'im:history', 'im:read']
1827
- },
1828
- type: 'array'
1829
- } as const;
1830
-
1831
- export const objs_subteamSchema = {
1832
- additionalProperties: false,
1833
- properties: {
1834
- auto_provision: {
1835
- type: 'boolean'
1836
- },
1837
- auto_type: {
1838
- items: {
1839
- anyOf: [
1840
- {
1841
- nullable: true
1842
- },
1843
- {
1844
- enum: ['owner', 'admin'],
1845
- type: 'string'
1846
- }
1847
- ]
1848
- }
1849
- },
1850
- channel_count: {
1851
- type: 'integer'
1852
- },
1853
- created_by: {
1854
- '$ref': '#/components/schemas/defs_user_id'
1855
- },
1856
- date_create: {
1857
- type: 'integer'
1858
- },
1859
- date_delete: {
1860
- type: 'integer'
1861
- },
1862
- date_update: {
1863
- type: 'integer'
1864
- },
1865
- deleted_by: {
1866
- items: {
1867
- anyOf: [
1868
- {
1869
- nullable: true
1870
- },
1871
- {
1872
- '$ref': '#/components/schemas/defs_user_id'
1873
- }
1874
- ]
1875
- }
1876
- },
1877
- description: {
1878
- type: 'string'
1879
- },
1880
- enterprise_subteam_id: {
1881
- type: 'string'
1882
- },
1883
- handle: {
1884
- type: 'string'
1885
- },
1886
- id: {
1887
- '$ref': '#/components/schemas/defs_subteam_id'
1888
- },
1889
- is_external: {
1890
- type: 'boolean'
1891
- },
1892
- is_subteam: {
1893
- type: 'boolean'
1894
- },
1895
- is_usergroup: {
1896
- type: 'boolean'
1897
- },
1898
- name: {
1899
- type: 'string'
1900
- },
1901
- prefs: {
1902
- additionalProperties: false,
1903
- properties: {
1904
- channels: {
1905
- items: {
1906
- '$ref': '#/components/schemas/defs_channel_id'
1907
- },
1908
- type: 'array'
1909
- },
1910
- groups: {
1911
- items: {
1912
- '$ref': '#/components/schemas/defs_group_id'
1913
- },
1914
- type: 'array'
1915
- }
1916
- },
1917
- required: ['channels', 'groups'],
1918
- type: 'object'
1919
- },
1920
- team_id: {
1921
- '$ref': '#/components/schemas/defs_team'
1922
- },
1923
- updated_by: {
1924
- '$ref': '#/components/schemas/defs_user_id'
1925
- },
1926
- user_count: {
1927
- type: 'integer'
1928
- },
1929
- users: {
1930
- items: {
1931
- '$ref': '#/components/schemas/defs_user_id'
1932
- },
1933
- type: 'array'
1934
- }
1935
- },
1936
- required: ['id', 'team_id', 'is_usergroup', 'is_subteam', 'name', 'description', 'handle', 'is_external', 'date_create', 'date_update', 'date_delete', 'auto_type', 'auto_provision', 'enterprise_subteam_id', 'created_by', 'updated_by', 'deleted_by', 'prefs'],
1937
- title: 'Subteam/Usergroup Object',
1938
- type: 'object'
1939
- } as const;
1940
-
1941
- export const objs_teamSchema = {
1942
- additionalProperties: false,
1943
- properties: {
1944
- archived: {
1945
- type: 'boolean'
1946
- },
1947
- avatar_base_url: {
1948
- format: 'uri',
1949
- type: 'string'
1950
- },
1951
- created: {
1952
- type: 'integer'
1953
- },
1954
- date_create: {
1955
- type: 'integer'
1956
- },
1957
- deleted: {
1958
- type: 'boolean'
1959
- },
1960
- description: {
1961
- nullable: true,
1962
- type: 'string'
1963
- },
1964
- discoverable: {
1965
- items: {
1966
- anyOf: [
1967
- {
1968
- nullable: true
1969
- },
1970
- {
1971
- type: 'string'
1972
- }
1973
- ]
1974
- }
1975
- },
1976
- domain: {
1977
- type: 'string'
1978
- },
1979
- email_domain: {
1980
- type: 'string'
1981
- },
1982
- enterprise_id: {
1983
- '$ref': '#/components/schemas/defs_enterprise_id'
1984
- },
1985
- enterprise_name: {
1986
- '$ref': '#/components/schemas/defs_enterprise_name'
1987
- },
1988
- external_org_migrations: {
1989
- '$ref': '#/components/schemas/objs_external_org_migrations'
1990
- },
1991
- has_compliance_export: {
1992
- type: 'boolean'
1993
- },
1994
- icon: {
1995
- '$ref': '#/components/schemas/objs_icon'
1996
- },
1997
- id: {
1998
- '$ref': '#/components/schemas/defs_workspace_id'
1999
- },
2000
- is_assigned: {
2001
- type: 'boolean'
2002
- },
2003
- is_enterprise: {
2004
- type: 'integer'
2005
- },
2006
- is_over_storage_limit: {
2007
- type: 'boolean'
2008
- },
2009
- limit_ts: {
2010
- type: 'integer'
2011
- },
2012
- locale: {
2013
- type: 'string'
2014
- },
2015
- messages_count: {
2016
- type: 'integer'
2017
- },
2018
- msg_edit_window_mins: {
2019
- type: 'integer'
2020
- },
2021
- name: {
2022
- type: 'string'
2023
- },
2024
- over_integrations_limit: {
2025
- type: 'boolean'
2026
- },
2027
- over_storage_limit: {
2028
- type: 'boolean'
2029
- },
2030
- pay_prod_cur: {
2031
- type: 'string'
2032
- },
2033
- plan: {
2034
- enum: ['', 'std', 'plus', 'compliance', 'enterprise'],
2035
- type: 'string'
2036
- },
2037
- primary_owner: {
2038
- '$ref': '#/components/schemas/objs_primary_owner'
2039
- },
2040
- sso_provider: {
2041
- properties: {
2042
- label: {
2043
- type: 'string'
2044
- },
2045
- name: {
2046
- type: 'string'
2047
- },
2048
- type: {
2049
- type: 'string'
2050
- }
2051
- },
2052
- type: 'object'
2053
- }
2054
- },
2055
- required: ['id', 'name', 'domain', 'email_domain', 'icon'],
2056
- title: 'Team Object',
2057
- type: 'object'
2058
- } as const;
2059
-
2060
- export const objs_team_profile_fieldSchema = {
2061
- additionalProperties: false,
2062
- properties: {
2063
- field_name: {
2064
- nullable: true,
2065
- type: 'string'
2066
- },
2067
- hint: {
2068
- type: 'string'
2069
- },
2070
- id: {
2071
- pattern: '^X[a-zA-Z0-9]{9,}$',
2072
- type: 'string'
2073
- },
2074
- is_hidden: {
2075
- type: 'boolean'
2076
- },
2077
- label: {
2078
- type: 'string'
2079
- },
2080
- options: {
2081
- items: {
2082
- anyOf: [
2083
- {
2084
- nullable: true
2085
- },
2086
- {
2087
- '$ref': '#/components/schemas/objs_team_profile_field_option'
2088
- }
2089
- ]
2090
- }
2091
- },
2092
- ordering: {
2093
- type: 'number'
2094
- },
2095
- possible_values: {
2096
- items: {
2097
- type: 'string'
2098
- },
2099
- nullable: true,
2100
- type: 'array'
2101
- },
2102
- type: {
2103
- enum: ['text', 'date', 'link', 'mailto', 'options_list', 'user'],
2104
- type: 'string'
2105
- }
2106
- },
2107
- required: ['id', 'ordering', 'label', 'hint', 'type'],
2108
- type: 'object'
2109
- } as const;
2110
-
2111
- export const objs_team_profile_field_optionSchema = {
2112
- additionalProperties: false,
2113
- properties: {
2114
- is_custom: {
2115
- nullable: true,
2116
- type: 'boolean'
2117
- },
2118
- is_multiple_entry: {
2119
- nullable: true,
2120
- type: 'boolean'
2121
- },
2122
- is_protected: {
2123
- nullable: true,
2124
- type: 'boolean'
2125
- },
2126
- is_scim: {
2127
- nullable: true,
2128
- type: 'boolean'
2129
- }
2130
- },
2131
- type: 'object'
2132
- } as const;
2133
-
2134
- export const objs_userSchema = {
2135
- items: {
2136
- anyOf: [
2137
- {
2138
- additionalProperties: false,
2139
- description: 'user object for non enterprise type',
2140
- properties: {
2141
- color: {
2142
- pattern: '^[a-fA-F0-9]{6}$',
2143
- type: 'string'
2144
- },
2145
- deleted: {
2146
- type: 'boolean'
2147
- },
2148
- enterprise_user: {
2149
- '$ref': '#/components/schemas/objs_enterprise_user'
2150
- },
2151
- has_2fa: {
2152
- type: 'boolean'
2153
- },
2154
- id: {
2155
- '$ref': '#/components/schemas/defs_user_id'
2156
- },
2157
- is_admin: {
2158
- type: 'boolean'
2159
- },
2160
- is_app_user: {
2161
- type: 'boolean'
2162
- },
2163
- is_bot: {
2164
- type: 'boolean'
2165
- },
2166
- is_external: {
2167
- type: 'boolean'
2168
- },
2169
- is_forgotten: {
2170
- type: 'boolean'
2171
- },
2172
- is_invited_user: {
2173
- type: 'boolean'
2174
- },
2175
- is_owner: {
2176
- type: 'boolean'
2177
- },
2178
- is_primary_owner: {
2179
- type: 'boolean'
2180
- },
2181
- is_restricted: {
2182
- type: 'boolean'
2183
- },
2184
- is_stranger: {
2185
- type: 'boolean'
2186
- },
2187
- is_ultra_restricted: {
2188
- type: 'boolean'
2189
- },
2190
- locale: {
2191
- type: 'string'
2192
- },
2193
- name: {
2194
- type: 'string'
2195
- },
2196
- presence: {
2197
- type: 'string'
2198
- },
2199
- profile: {
2200
- '$ref': '#/components/schemas/objs_user_profile'
2201
- },
2202
- real_name: {
2203
- type: 'string'
2204
- },
2205
- team: {
2206
- '$ref': '#/components/schemas/defs_workspace_id'
2207
- },
2208
- team_id: {
2209
- '$ref': '#/components/schemas/defs_workspace_id'
2210
- },
2211
- team_profile: {
2212
- additionalProperties: false,
2213
- properties: {
2214
- fields: {
2215
- items: {
2216
- '$ref': '#/components/schemas/objs_team_profile_field'
2217
- },
2218
- minItems: 1,
2219
- type: 'array',
2220
- uniqueItems: true
2221
- }
2222
- },
2223
- required: ['fields'],
2224
- type: 'object'
2225
- },
2226
- two_factor_type: {
2227
- type: 'string'
2228
- },
2229
- tz: {
2230
- items: {
2231
- anyOf: [
2232
- {
2233
- nullable: true
2234
- },
2235
- {
2236
- type: 'string'
2237
- }
2238
- ]
2239
- }
2240
- },
2241
- tz_label: {
2242
- type: 'string'
2243
- },
2244
- tz_offset: {
2245
- type: 'number'
2246
- },
2247
- updated: {
2248
- type: 'number'
2249
- }
2250
- },
2251
- required: ['id', 'name', 'profile', 'is_bot', 'updated', 'is_app_user'],
2252
- type: 'object'
2253
- },
2254
- {
2255
- additionalProperties: false,
2256
- description: 'enterprise user',
2257
- properties: {
2258
- color: {
2259
- description: 'refercing to bug: https://jira.tinyspeck.com/browse/EVALUE-1559',
2260
- pattern: '^([a-fA-F0-9]{6})?$',
2261
- type: 'string'
2262
- },
2263
- deleted: {
2264
- type: 'boolean'
2265
- },
2266
- enterprise_user: {
2267
- '$ref': '#/components/schemas/objs_enterprise_user'
2268
- },
2269
- has_2fa: {
2270
- type: 'boolean'
2271
- },
2272
- id: {
2273
- '$ref': '#/components/schemas/defs_user_id'
2274
- },
2275
- is_admin: {
2276
- type: 'boolean'
2277
- },
2278
- is_app_user: {
2279
- type: 'boolean'
2280
- },
2281
- is_bot: {
2282
- type: 'boolean'
2283
- },
2284
- is_external: {
2285
- type: 'boolean'
2286
- },
2287
- is_forgotten: {
2288
- type: 'boolean'
2289
- },
2290
- is_owner: {
2291
- type: 'boolean'
2292
- },
2293
- is_primary_owner: {
2294
- type: 'boolean'
2295
- },
2296
- is_restricted: {
2297
- type: 'boolean'
2298
- },
2299
- is_stranger: {
2300
- type: 'boolean'
2301
- },
2302
- is_ultra_restricted: {
2303
- type: 'boolean'
2304
- },
2305
- locale: {
2306
- type: 'string'
2307
- },
2308
- name: {
2309
- type: 'string'
2310
- },
2311
- presence: {
2312
- type: 'string'
2313
- },
2314
- profile: {
2315
- '$ref': '#/components/schemas/objs_user_profile'
2316
- },
2317
- real_name: {
2318
- type: 'string'
2319
- },
2320
- team_id: {
2321
- '$ref': '#/components/schemas/defs_workspace_id'
2322
- },
2323
- team_profile: {
2324
- additionalProperties: false,
2325
- properties: {
2326
- fields: {
2327
- items: {
2328
- '$ref': '#/components/schemas/objs_team_profile_field'
2329
- },
2330
- minItems: 1,
2331
- type: 'array',
2332
- uniqueItems: true
2333
- }
2334
- },
2335
- required: ['fields'],
2336
- type: 'object'
2337
- },
2338
- teams: {
2339
- items: {
2340
- '$ref': '#/components/schemas/defs_workspace_id'
2341
- },
2342
- minItems: 1,
2343
- type: 'array',
2344
- uniqueItems: true
2345
- },
2346
- two_factor_type: {
2347
- type: 'string'
2348
- },
2349
- tz: {
2350
- items: {
2351
- anyOf: [
2352
- {
2353
- nullable: true
2354
- },
2355
- {
2356
- type: 'string'
2357
- }
2358
- ]
2359
- }
2360
- },
2361
- tz_label: {
2362
- type: 'string'
2363
- },
2364
- tz_offset: {
2365
- type: 'number'
2366
- },
2367
- updated: {
2368
- type: 'number'
2369
- }
2370
- },
2371
- required: ['id', 'name', 'profile', 'is_bot', 'updated', 'is_app_user'],
2372
- type: 'object'
2373
- }
2374
- ]
2375
- }
2376
- } as const;
2377
-
2378
- export const objs_user_profileSchema = {
2379
- additionalProperties: false,
2380
- properties: {
2381
- always_active: {
2382
- type: 'boolean'
2383
- },
2384
- api_app_id: {
2385
- '$ref': '#/components/schemas/defs_optional_app_id'
2386
- },
2387
- avatar_hash: {
2388
- type: 'string'
2389
- },
2390
- bot_id: {
2391
- '$ref': '#/components/schemas/defs_bot_id'
2392
- },
2393
- display_name: {
2394
- type: 'string'
2395
- },
2396
- display_name_normalized: {
2397
- type: 'string'
2398
- },
2399
- email: {
2400
- format: 'email',
2401
- nullable: true,
2402
- type: 'string'
2403
- },
2404
- fields: {
2405
- items: {
2406
- type: 'object'
2407
- },
2408
- nullable: true,
2409
- oneOf: [
2410
- {
2411
- type: 'object'
2412
- },
2413
- {
2414
- items: {},
2415
- type: 'array'
2416
- }
2417
- ]
2418
- },
2419
- first_name: {
2420
- nullable: true,
2421
- type: 'string'
2422
- },
2423
- guest_expiration_ts: {
2424
- nullable: true,
2425
- type: 'integer'
2426
- },
2427
- guest_invited_by: {
2428
- nullable: true,
2429
- type: 'string'
2430
- },
2431
- image_1024: {
2432
- format: 'uri',
2433
- nullable: true,
2434
- type: 'string'
2435
- },
2436
- image_192: {
2437
- format: 'uri',
2438
- nullable: true,
2439
- type: 'string'
2440
- },
2441
- image_24: {
2442
- format: 'uri',
2443
- nullable: true,
2444
- type: 'string'
2445
- },
2446
- image_32: {
2447
- format: 'uri',
2448
- nullable: true,
2449
- type: 'string'
2450
- },
2451
- image_48: {
2452
- format: 'uri',
2453
- nullable: true,
2454
- type: 'string'
2455
- },
2456
- image_512: {
2457
- format: 'uri',
2458
- nullable: true,
2459
- type: 'string'
2460
- },
2461
- image_72: {
2462
- format: 'uri',
2463
- nullable: true,
2464
- type: 'string'
2465
- },
2466
- image_original: {
2467
- format: 'uri',
2468
- nullable: true,
2469
- type: 'string'
2470
- },
2471
- is_app_user: {
2472
- type: 'boolean'
2473
- },
2474
- is_custom_image: {
2475
- type: 'boolean'
2476
- },
2477
- is_restricted: {
2478
- nullable: true,
2479
- type: 'boolean'
2480
- },
2481
- is_ultra_restricted: {
2482
- nullable: true,
2483
- type: 'boolean'
2484
- },
2485
- last_avatar_image_hash: {
2486
- type: 'string'
2487
- },
2488
- last_name: {
2489
- nullable: true,
2490
- type: 'string'
2491
- },
2492
- memberships_count: {
2493
- type: 'integer'
2494
- },
2495
- name: {
2496
- nullable: true,
2497
- type: 'string'
2498
- },
2499
- phone: {
2500
- type: 'string'
2501
- },
2502
- pronouns: {
2503
- type: 'string'
2504
- },
2505
- real_name: {
2506
- type: 'string'
2507
- },
2508
- real_name_normalized: {
2509
- type: 'string'
2510
- },
2511
- skype: {
2512
- type: 'string'
2513
- },
2514
- status_default_emoji: {
2515
- type: 'string'
2516
- },
2517
- status_default_text: {
2518
- type: 'string'
2519
- },
2520
- status_default_text_canonical: {
2521
- nullable: true,
2522
- type: 'string'
2523
- },
2524
- status_emoji: {
2525
- type: 'string'
2526
- },
2527
- status_expiration: {
2528
- type: 'integer'
2529
- },
2530
- status_text: {
2531
- type: 'string'
2532
- },
2533
- status_text_canonical: {
2534
- nullable: true,
2535
- type: 'string'
2536
- },
2537
- team: {
2538
- '$ref': '#/components/schemas/defs_workspace_id'
2539
- },
2540
- title: {
2541
- type: 'string'
2542
- },
2543
- updated: {
2544
- type: 'integer'
2545
- },
2546
- user_id: {
2547
- type: 'string'
2548
- },
2549
- username: {
2550
- nullable: true,
2551
- type: 'string'
2552
- }
2553
- },
2554
- required: ['real_name', 'display_name', 'avatar_hash', 'real_name_normalized', 'display_name_normalized', 'title', 'phone', 'skype', 'status_text', 'status_emoji', 'fields'],
2555
- title: 'User profile object',
2556
- type: 'object'
2557
- } as const;
2558
-
2559
- export const objs_user_profile_shortSchema = {
2560
- additionalProperties: false,
2561
- properties: {
2562
- avatar_hash: {
2563
- type: 'string'
2564
- },
2565
- display_name: {
2566
- type: 'string'
2567
- },
2568
- display_name_normalized: {
2569
- type: 'string'
2570
- },
2571
- first_name: {
2572
- nullable: true,
2573
- type: 'string'
2574
- },
2575
- image_72: {
2576
- format: 'uri',
2577
- type: 'string'
2578
- },
2579
- is_restricted: {
2580
- type: 'boolean'
2581
- },
2582
- is_ultra_restricted: {
2583
- type: 'boolean'
2584
- },
2585
- name: {
2586
- type: 'string'
2587
- },
2588
- real_name: {
2589
- type: 'string'
2590
- },
2591
- real_name_normalized: {
2592
- type: 'string'
2593
- },
2594
- team: {
2595
- '$ref': '#/components/schemas/defs_workspace_id'
2596
- }
2597
- },
2598
- required: ['avatar_hash', 'image_72', 'first_name', 'real_name', 'display_name', 'team', 'name', 'is_restricted', 'is_ultra_restricted'],
2599
- type: 'object'
2600
- } as const;