-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrequests.go
More file actions
2689 lines (2688 loc) · 120 KB
/
requests.go
File metadata and controls
2689 lines (2688 loc) · 120 KB
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
// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
package getstream
type GetAppRequest struct {
}
type UpdateAppRequest struct {
AsyncUrlEnrichEnabled *bool `json:"async_url_enrich_enabled,omitempty"`
AutoTranslationEnabled *bool `json:"auto_translation_enabled,omitempty"`
BeforeMessageSendHookUrl *string `json:"before_message_send_hook_url,omitempty"`
CdnExpirationSeconds *int `json:"cdn_expiration_seconds,omitempty"`
ChannelHideMembersOnly *bool `json:"channel_hide_members_only,omitempty"`
CustomActionHandlerUrl *string `json:"custom_action_handler_url,omitempty"`
DisableAuthChecks *bool `json:"disable_auth_checks,omitempty"`
DisablePermissionsChecks *bool `json:"disable_permissions_checks,omitempty"`
EnforceUniqueUsernames *string `json:"enforce_unique_usernames,omitempty"`
FeedsModerationEnabled *bool `json:"feeds_moderation_enabled,omitempty"`
FeedsV2Region *string `json:"feeds_v2_region,omitempty"`
GuestUserCreationDisabled *bool `json:"guest_user_creation_disabled,omitempty"`
ImageModerationEnabled *bool `json:"image_moderation_enabled,omitempty"`
MaxAggregatedActivitiesLength *int `json:"max_aggregated_activities_length,omitempty"`
MigratePermissionsToV2 *bool `json:"migrate_permissions_to_v2,omitempty"`
ModerationAnalyticsEnabled *bool `json:"moderation_analytics_enabled,omitempty"`
ModerationEnabled *bool `json:"moderation_enabled,omitempty"`
ModerationS3ImageAccessRoleArn *string `json:"moderation_s3_image_access_role_arn,omitempty"`
ModerationWebhookUrl *string `json:"moderation_webhook_url,omitempty"`
MultiTenantEnabled *bool `json:"multi_tenant_enabled,omitempty"`
PermissionVersion *string `json:"permission_version,omitempty"`
RemindersInterval *int `json:"reminders_interval,omitempty"`
RemindersMaxMembers *int `json:"reminders_max_members,omitempty"`
RevokeTokensIssuedBefore *Timestamp `json:"revoke_tokens_issued_before,omitempty"`
SnsKey *string `json:"sns_key,omitempty"`
SnsSecret *string `json:"sns_secret,omitempty"`
SnsTopicArn *string `json:"sns_topic_arn,omitempty"`
SqsKey *string `json:"sqs_key,omitempty"`
SqsSecret *string `json:"sqs_secret,omitempty"`
SqsUrl *string `json:"sqs_url,omitempty"`
UserResponseTimeEnabled *bool `json:"user_response_time_enabled,omitempty"`
WebhookUrl *string `json:"webhook_url,omitempty"`
AllowedFlagReasons []string `json:"allowed_flag_reasons"`
EventHooks []EventHook `json:"event_hooks"`
ImageModerationBlockLabels []string `json:"image_moderation_block_labels"`
ImageModerationLabels []string `json:"image_moderation_labels"`
UserSearchDisallowedRoles []string `json:"user_search_disallowed_roles"`
WebhookEvents []string `json:"webhook_events"`
ActivityMetricsConfig map[string]int `json:"activity_metrics_config"`
ApnConfig *APNConfig `json:"apn_config,omitempty"`
AsyncModerationConfig *AsyncModerationConfiguration `json:"async_moderation_config,omitempty"`
DatadogInfo *DataDogInfo `json:"datadog_info,omitempty"`
FileUploadConfig *FileUploadConfig `json:"file_upload_config,omitempty"`
FirebaseConfig *FirebaseConfig `json:"firebase_config,omitempty"`
Grants map[string][]string `json:"grants"`
HuaweiConfig *HuaweiConfig `json:"huawei_config,omitempty"`
ImageUploadConfig *FileUploadConfig `json:"image_upload_config,omitempty"`
ModerationDashboardPreferences *ModerationDashboardPreferences `json:"moderation_dashboard_preferences,omitempty"`
PushConfig *PushConfig `json:"push_config,omitempty"`
XiaomiConfig *XiaomiConfig `json:"xiaomi_config,omitempty"`
}
type ListBlockListsRequest struct {
Team *string `json:"-" query:"team"`
}
type CreateBlockListRequest struct {
// Block list name
Name string `json:"name"`
// List of words to block
Words []string `json:"words"`
IsLeetCheckEnabled *bool `json:"is_leet_check_enabled,omitempty"`
IsPluralCheckEnabled *bool `json:"is_plural_check_enabled,omitempty"`
Team *string `json:"team,omitempty"`
// Block list type. One of: regex, domain, domain_allowlist, email, email_allowlist, word
Type *string `json:"type,omitempty"`
}
type DeleteBlockListRequest struct {
Team *string `json:"-" query:"team"`
}
type GetBlockListRequest struct {
Team *string `json:"-" query:"team"`
}
type UpdateBlockListRequest struct {
IsLeetCheckEnabled *bool `json:"is_leet_check_enabled,omitempty"`
IsPluralCheckEnabled *bool `json:"is_plural_check_enabled,omitempty"`
Team *string `json:"team,omitempty"`
// List of words to block
Words []string `json:"words"`
}
type QueryCampaignsRequest struct {
Limit *int `json:"limit,omitempty"`
Next *string `json:"next,omitempty"`
Prev *string `json:"prev,omitempty"`
UserLimit *int `json:"user_limit,omitempty"`
Sort []SortParamRequest `json:"sort"`
Filter map[string]any `json:"filter"`
}
type GetCampaignRequest struct {
Prev *string `json:"-" query:"prev"`
Next *string `json:"-" query:"next"`
Limit *int `json:"-" query:"limit"`
}
type StartCampaignRequest struct {
ScheduledFor *Timestamp `json:"scheduled_for,omitempty"`
StopAt *Timestamp `json:"stop_at,omitempty"`
}
type StopCampaignRequest struct {
}
type QueryChannelsRequest struct {
// Number of channels to limit
Limit *int `json:"limit,omitempty"`
// Number of members to limit
MemberLimit *int `json:"member_limit,omitempty"`
// Number of messages to limit
MessageLimit *int `json:"message_limit,omitempty"`
// Channel pagination offset
Offset *int `json:"offset,omitempty"`
// ID of a predefined filter to use instead of filter_conditions
PredefinedFilter *string `json:"predefined_filter,omitempty"`
// Whether to update channel state or not
State *bool `json:"state,omitempty"`
UserID *string `json:"user_id,omitempty"`
// List of sort parameters
Sort []SortParamRequest `json:"sort"`
// Filter conditions to apply to the query
FilterConditions map[string]any `json:"filter_conditions"`
// Values to interpolate into the predefined filter template
FilterValues map[string]any `json:"filter_values"`
SortValues map[string]any `json:"sort_values"`
User *UserRequest `json:"user,omitempty"`
}
type ChannelBatchUpdateRequest struct {
Operation string `json:"operation"`
Filter map[string]any `json:"filter"`
Members []ChannelBatchMemberRequest `json:"members"`
Data *ChannelDataUpdate `json:"data,omitempty"`
}
type DeleteChannelsRequest struct {
// All channels that should be deleted
Cids []string `json:"cids"`
// Specify if channels and all ressources should be hard deleted
HardDelete *bool `json:"hard_delete,omitempty"`
}
type MarkDeliveredRequest struct {
UserID *string `json:"-" query:"user_id"`
LatestDeliveredMessages []DeliveredMessagePayload `json:"latest_delivered_messages"`
}
type MarkChannelsReadRequest struct {
UserID *string `json:"user_id,omitempty"`
// Map of channel ID to last read message ID
ReadByChannel map[string]string `json:"read_by_channel"`
User *UserRequest `json:"user,omitempty"`
}
type GetOrCreateDistinctChannelRequest struct {
// Whether this channel will be hidden for the user who created the channel or not
HideForCreator *bool `json:"hide_for_creator,omitempty"`
// Refresh channel state
State *bool `json:"state,omitempty"`
ThreadUnreadCounts *bool `json:"thread_unread_counts,omitempty"`
Data *ChannelInput `json:"data,omitempty"`
Members *PaginationParams `json:"members,omitempty"`
Messages *MessagePaginationParams `json:"messages,omitempty"`
Watchers *PaginationParams `json:"watchers,omitempty"`
}
type DeleteChannelRequest struct {
HardDelete *bool `json:"-" query:"hard_delete"`
}
type UpdateChannelPartialRequest struct {
UserID *string `json:"user_id,omitempty"`
Unset []string `json:"unset"`
Set map[string]any `json:"set"`
User *UserRequest `json:"user,omitempty"`
}
type UpdateChannelRequest struct {
// Set to `true` to accept the invite
AcceptInvite *bool `json:"accept_invite,omitempty"`
// Sets cool down period for the channel in seconds
Cooldown *int `json:"cooldown,omitempty"`
// Set to `true` to hide channel's history when adding new members
HideHistory *bool `json:"hide_history,omitempty"`
// If set, hides channel's history before this time when adding new members. Takes precedence over `hide_history` when both are provided. Must be in RFC3339 format (e.g., "2024-01-01T10:00:00Z") and in the past.
HideHistoryBefore *Timestamp `json:"hide_history_before,omitempty"`
// Set to `true` to reject the invite
RejectInvite *bool `json:"reject_invite,omitempty"`
// When `message` is set disables all push notifications for it
SkipPush *bool `json:"skip_push,omitempty"`
UserID *string `json:"user_id,omitempty"`
// List of filter tags to add to the channel
AddFilterTags []string `json:"add_filter_tags"`
// List of user IDs to add to the channel
AddMembers []ChannelMemberRequest `json:"add_members"`
// List of user IDs to make channel moderators
AddModerators []string `json:"add_moderators"`
// List of channel member role assignments. If any specified user is not part of the channel, the request will fail
AssignRoles []ChannelMemberRequest `json:"assign_roles"`
// List of user IDs to take away moderators status from
DemoteModerators []string `json:"demote_moderators"`
// List of user IDs to invite to the channel
Invites []ChannelMemberRequest `json:"invites"`
// List of filter tags to remove from the channel
RemoveFilterTags []string `json:"remove_filter_tags"`
// List of user IDs to remove from the channel
RemoveMembers []string `json:"remove_members"`
Data *ChannelInputRequest `json:"data,omitempty"`
Message *MessageRequest `json:"message,omitempty"`
User *UserRequest `json:"user,omitempty"`
}
type DeleteDraftRequest struct {
ParentID *string `json:"-" query:"parent_id"`
UserID *string `json:"-" query:"user_id"`
}
type GetDraftRequest struct {
ParentID *string `json:"-" query:"parent_id"`
UserID *string `json:"-" query:"user_id"`
}
type SendEventRequest struct {
Event EventRequest `json:"event"`
}
type DeleteChannelFileRequest struct {
Url *string `json:"-" query:"url"`
}
type UploadChannelFileRequest struct {
// file field
File *string `json:"file,omitempty"`
User *OnlyUserID `json:"user,omitempty"`
}
type HideChannelRequest struct {
// Whether to clear message history of the channel or not
ClearHistory *bool `json:"clear_history,omitempty"`
UserID *string `json:"user_id,omitempty"`
User *UserRequest `json:"user,omitempty"`
}
type DeleteChannelImageRequest struct {
Url *string `json:"-" query:"url"`
}
type UploadChannelImageRequest struct {
File *string `json:"file,omitempty"`
// field with JSON-encoded array of image size configurations
UploadSizes []ImageSize `json:"upload_sizes"`
User *OnlyUserID `json:"user,omitempty"`
}
type UpdateMemberPartialRequest struct {
UserID *string `json:"-" query:"user_id"`
Unset []string `json:"unset"`
Set map[string]any `json:"set"`
}
type SendMessageRequest struct {
Message MessageRequest `json:"message"`
ForceModeration *bool `json:"force_moderation,omitempty"`
KeepChannelHidden *bool `json:"keep_channel_hidden,omitempty"`
Pending *bool `json:"pending,omitempty"`
SkipEnrichUrl *bool `json:"skip_enrich_url,omitempty"`
SkipPush *bool `json:"skip_push,omitempty"`
PendingMessageMetadata map[string]string `json:"pending_message_metadata"`
}
type GetManyMessagesRequest struct {
Ids []string `json:"-" query:"ids"`
}
type GetOrCreateChannelRequest struct {
// Whether this channel will be hidden for the user who created the channel or not
HideForCreator *bool `json:"hide_for_creator,omitempty"`
// Refresh channel state
State *bool `json:"state,omitempty"`
ThreadUnreadCounts *bool `json:"thread_unread_counts,omitempty"`
Data *ChannelInput `json:"data,omitempty"`
Members *PaginationParams `json:"members,omitempty"`
Messages *MessagePaginationParams `json:"messages,omitempty"`
Watchers *PaginationParams `json:"watchers,omitempty"`
}
type MarkReadRequest struct {
// ID of the message that is considered last read by client
MessageID *string `json:"message_id,omitempty"`
// Optional Thread ID to specifically mark a given thread as read
ThreadID *string `json:"thread_id,omitempty"`
UserID *string `json:"user_id,omitempty"`
User *UserRequest `json:"user,omitempty"`
}
type ShowChannelRequest struct {
UserID *string `json:"user_id,omitempty"`
User *UserRequest `json:"user,omitempty"`
}
type TruncateChannelRequest struct {
// Permanently delete channel data (messages, reactions, etc.)
HardDelete *bool `json:"hard_delete,omitempty"`
// When `message` is set disables all push notifications for it
SkipPush *bool `json:"skip_push,omitempty"`
// Truncate channel data up to `truncated_at`. The system message (if provided) creation time is always greater than `truncated_at`
TruncatedAt *Timestamp `json:"truncated_at,omitempty"`
UserID *string `json:"user_id,omitempty"`
// List of member IDs to hide message history for. If empty, truncates the channel for all members
MemberIds []string `json:"member_ids"`
Message *MessageRequest `json:"message,omitempty"`
User *UserRequest `json:"user,omitempty"`
}
type MarkUnreadRequest struct {
// ID of the message from where the channel is marked unread
MessageID *string `json:"message_id,omitempty"`
// Timestamp of the message from where the channel is marked unread
MessageTimestamp *Timestamp `json:"message_timestamp,omitempty"`
// Mark a thread unread, specify one of the thread, message timestamp, or message id
ThreadID *string `json:"thread_id,omitempty"`
UserID *string `json:"user_id,omitempty"`
User *UserRequest `json:"user,omitempty"`
}
type ListChannelTypesRequest struct {
}
type CreateChannelTypeRequest struct {
// Automod. One of: disabled, simple, AI
Automod string `json:"automod"`
// Automod behavior. One of: flag, block
AutomodBehavior string `json:"automod_behavior"`
// Max message length
MaxMessageLength int `json:"max_message_length"`
// Channel type name
Name string `json:"name"`
// Blocklist
Blocklist *string `json:"blocklist,omitempty"`
// Blocklist behavior. One of: flag, block, shadow_block
BlocklistBehavior *string `json:"blocklist_behavior,omitempty"`
// Connect events
ConnectEvents *bool `json:"connect_events,omitempty"`
// Count messages in channel.
CountMessages *bool `json:"count_messages,omitempty"`
// Custom events
CustomEvents *bool `json:"custom_events,omitempty"`
DeliveryEvents *bool `json:"delivery_events,omitempty"`
// Mark messages pending
MarkMessagesPending *bool `json:"mark_messages_pending,omitempty"`
// Message retention. One of: infinite, numeric
MessageRetention *string `json:"message_retention,omitempty"`
// Mutes
Mutes *bool `json:"mutes,omitempty"`
// Partition size
PartitionSize *int `json:"partition_size,omitempty"`
// Partition TTL
PartitionTtl *string `json:"partition_ttl,omitempty"`
// Polls
Polls *bool `json:"polls,omitempty"`
// Default push notification level for the channel type. One of: all, all_mentions, mentions, direct_mentions, none
PushLevel *string `json:"push_level,omitempty"`
// Push notifications
PushNotifications *bool `json:"push_notifications,omitempty"`
// Reactions
Reactions *bool `json:"reactions,omitempty"`
// Read events
ReadEvents *bool `json:"read_events,omitempty"`
// Replies
Replies *bool `json:"replies,omitempty"`
// Search
Search *bool `json:"search,omitempty"`
// Enables shared location messages
SharedLocations *bool `json:"shared_locations,omitempty"`
SkipLastMsgUpdateForSystemMsgs *bool `json:"skip_last_msg_update_for_system_msgs,omitempty"`
// Typing events
TypingEvents *bool `json:"typing_events,omitempty"`
// Uploads
Uploads *bool `json:"uploads,omitempty"`
// URL enrichment
UrlEnrichment *bool `json:"url_enrichment,omitempty"`
UserMessageReminders *bool `json:"user_message_reminders,omitempty"`
// Blocklists
Blocklists []BlockListOptions `json:"blocklists"`
// List of commands that channel supports
Commands []string `json:"commands"`
// List of permissions for the channel type
Permissions []PolicyRequest `json:"permissions"`
ChatPreferences *ChatPreferences `json:"chat_preferences,omitempty"`
// List of grants for the channel type
Grants map[string][]string `json:"grants"`
}
type DeleteChannelTypeRequest struct {
}
type GetChannelTypeRequest struct {
}
type UpdateChannelTypeRequest struct {
Automod string `json:"automod"`
AutomodBehavior string `json:"automod_behavior"`
MaxMessageLength int `json:"max_message_length"`
Blocklist *string `json:"blocklist,omitempty"`
BlocklistBehavior *string `json:"blocklist_behavior,omitempty"`
ConnectEvents *bool `json:"connect_events,omitempty"`
CountMessages *bool `json:"count_messages,omitempty"`
CustomEvents *bool `json:"custom_events,omitempty"`
DeliveryEvents *bool `json:"delivery_events,omitempty"`
MarkMessagesPending *bool `json:"mark_messages_pending,omitempty"`
Mutes *bool `json:"mutes,omitempty"`
PartitionSize *int `json:"partition_size,omitempty"`
PartitionTtl *string `json:"partition_ttl,omitempty"`
Polls *bool `json:"polls,omitempty"`
PushLevel *string `json:"push_level,omitempty"`
PushNotifications *bool `json:"push_notifications,omitempty"`
Quotes *bool `json:"quotes,omitempty"`
Reactions *bool `json:"reactions,omitempty"`
ReadEvents *bool `json:"read_events,omitempty"`
Reminders *bool `json:"reminders,omitempty"`
Replies *bool `json:"replies,omitempty"`
Search *bool `json:"search,omitempty"`
SharedLocations *bool `json:"shared_locations,omitempty"`
SkipLastMsgUpdateForSystemMsgs *bool `json:"skip_last_msg_update_for_system_msgs,omitempty"`
TypingEvents *bool `json:"typing_events,omitempty"`
Uploads *bool `json:"uploads,omitempty"`
UrlEnrichment *bool `json:"url_enrichment,omitempty"`
UserMessageReminders *bool `json:"user_message_reminders,omitempty"`
AllowedFlagReasons []string `json:"allowed_flag_reasons"`
Blocklists []BlockListOptions `json:"blocklists"`
// List of commands that channel supports
Commands []string `json:"commands"`
Permissions []PolicyRequest `json:"permissions"`
AutomodThresholds *Thresholds `json:"automod_thresholds,omitempty"`
ChatPreferences *ChatPreferences `json:"chat_preferences,omitempty"`
Grants map[string][]string `json:"grants"`
}
type ListCommandsRequest struct {
}
type CreateCommandRequest struct {
// Description, shown in commands auto-completion
Description string `json:"description"`
// Unique command name
Name string `json:"name"`
// Arguments help text, shown in commands auto-completion
Args *string `json:"args,omitempty"`
// Set name used for grouping commands
Set *string `json:"set,omitempty"`
}
type DeleteCommandRequest struct {
}
type GetCommandRequest struct {
}
type UpdateCommandRequest struct {
// Description, shown in commands auto-completion
Description string `json:"description"`
// Arguments help text, shown in commands auto-completion
Args *string `json:"args,omitempty"`
// Set name used for grouping commands
Set *string `json:"set,omitempty"`
}
type QueryDraftsRequest struct {
Limit *int `json:"limit,omitempty"`
Next *string `json:"next,omitempty"`
Prev *string `json:"prev,omitempty"`
UserID *string `json:"user_id,omitempty"`
// Array of sort parameters
Sort []SortParamRequest `json:"sort"`
// Filter to apply to the query
Filter map[string]any `json:"filter"`
User *UserRequest `json:"user,omitempty"`
}
type ExportChannelsRequest struct {
// Export options for channels
Channels []ChannelExport `json:"channels"`
// Set if deleted message text should be cleared
ClearDeletedMessageText *bool `json:"clear_deleted_message_text,omitempty"`
ExportUsers *bool `json:"export_users,omitempty"`
// Set if you want to include deleted channels
IncludeSoftDeletedChannels *bool `json:"include_soft_deleted_channels,omitempty"`
// Set if you want to include truncated messages
IncludeTruncatedMessages *bool `json:"include_truncated_messages,omitempty"`
// Export version
Version *string `json:"version,omitempty"`
}
type QueryMembersRequest struct {
Payload *QueryMembersPayload `json:"-" query:"payload"`
}
type QueryMessageHistoryRequest struct {
// Filter to apply to the query
Filter map[string]any `json:"filter"`
Limit *int `json:"limit,omitempty"`
Next *string `json:"next,omitempty"`
Prev *string `json:"prev,omitempty"`
// Array of sort parameters
Sort []SortParamRequest `json:"sort"`
}
type DeleteMessageRequest struct {
Hard *bool `json:"-" query:"hard"`
DeletedBy *string `json:"-" query:"deleted_by"`
DeleteForMe *bool `json:"-" query:"delete_for_me"`
}
type GetMessageRequest struct {
ShowDeletedMessage *bool `json:"-" query:"show_deleted_message"`
}
type UpdateMessageRequest struct {
Message MessageRequest `json:"message"`
// Skip enrich URL
SkipEnrichUrl *bool `json:"skip_enrich_url,omitempty"`
SkipPush *bool `json:"skip_push,omitempty"`
}
type UpdateMessagePartialRequest struct {
// Skip enriching the URL in the message
SkipEnrichUrl *bool `json:"skip_enrich_url,omitempty"`
SkipPush *bool `json:"skip_push,omitempty"`
UserID *string `json:"user_id,omitempty"`
// Array of field names to unset
Unset []string `json:"unset"`
// Sets new field values
Set map[string]any `json:"set"`
User *UserRequest `json:"user,omitempty"`
}
type RunMessageActionRequest struct {
// ReadOnlyData to execute command with
FormData map[string]string `json:"form_data"`
UserID *string `json:"user_id,omitempty"`
User *UserRequest `json:"user,omitempty"`
}
type CommitMessageRequest struct {
}
type EphemeralMessageUpdateRequest struct {
// Skip enriching the URL in the message
SkipEnrichUrl *bool `json:"skip_enrich_url,omitempty"`
SkipPush *bool `json:"skip_push,omitempty"`
UserID *string `json:"user_id,omitempty"`
// Array of field names to unset
Unset []string `json:"unset"`
// Sets new field values
Set map[string]any `json:"set"`
User *UserRequest `json:"user,omitempty"`
}
type SendReactionRequest struct {
Reaction ReactionRequest `json:"reaction"`
// Whether to replace all existing user reactions
EnforceUnique *bool `json:"enforce_unique,omitempty"`
// Skips any mobile push notifications
SkipPush *bool `json:"skip_push,omitempty"`
}
type DeleteReactionRequest struct {
UserID *string `json:"-" query:"user_id"`
}
type GetReactionsRequest struct {
Limit *int `json:"-" query:"limit"`
Offset *int `json:"-" query:"offset"`
}
type QueryReactionsRequest struct {
Limit *int `json:"limit,omitempty"`
Next *string `json:"next,omitempty"`
Prev *string `json:"prev,omitempty"`
UserID *string `json:"user_id,omitempty"`
// Array of sort parameters
Sort []SortParamRequest `json:"sort"`
// Filter to apply to the query
Filter map[string]any `json:"filter"`
User *UserRequest `json:"user,omitempty"`
}
type TranslateMessageRequest struct {
// Language to translate message to
Language string `json:"language"`
}
type UndeleteMessageRequest struct {
// ID of the user who is undeleting the message
UndeletedBy string `json:"undeleted_by"`
}
type CastPollVoteRequest struct {
UserID *string `json:"user_id,omitempty"`
User *UserRequest `json:"user,omitempty"`
Vote *VoteData `json:"vote,omitempty"`
}
type DeletePollVoteRequest struct {
UserID *string `json:"-" query:"user_id"`
}
type DeleteReminderRequest struct {
UserID *string `json:"-" query:"user_id"`
}
type UpdateReminderRequest struct {
RemindAt *Timestamp `json:"remind_at,omitempty"`
UserID *string `json:"user_id,omitempty"`
User *UserRequest `json:"user,omitempty"`
}
type CreateReminderRequest struct {
RemindAt *Timestamp `json:"remind_at,omitempty"`
UserID *string `json:"user_id,omitempty"`
User *UserRequest `json:"user,omitempty"`
}
type GetRepliesRequest struct {
Limit *int `json:"-" query:"limit"`
IDGte *string `json:"-" query:"id_gte"`
IDGt *string `json:"-" query:"id_gt"`
IDLte *string `json:"-" query:"id_lte"`
IDLt *string `json:"-" query:"id_lt"`
IDAround *string `json:"-" query:"id_around"`
Sort []SortParamRequest `json:"-" query:"sort"`
}
type QueryMessageFlagsRequest struct {
Payload *QueryMessageFlagsPayload `json:"-" query:"payload"`
}
type MuteChannelRequest struct {
// Duration of mute in milliseconds
Expiration *int `json:"expiration,omitempty"`
UserID *string `json:"user_id,omitempty"`
// Channel CIDs to mute (if multiple channels)
ChannelCids []string `json:"channel_cids"`
User *UserRequest `json:"user,omitempty"`
}
type UnmuteChannelRequest struct {
// Duration of mute in milliseconds
Expiration *int `json:"expiration,omitempty"`
UserID *string `json:"user_id,omitempty"`
// Channel CIDs to mute (if multiple channels)
ChannelCids []string `json:"channel_cids"`
User *UserRequest `json:"user,omitempty"`
}
type QueryBannedUsersRequest struct {
Payload *QueryBannedUsersPayload `json:"-" query:"payload"`
}
type QueryFutureChannelBansRequest struct {
Payload *QueryFutureChannelBansPayload `json:"-" query:"payload"`
}
type QueryRemindersRequest struct {
Limit *int `json:"limit,omitempty"`
Next *string `json:"next,omitempty"`
Prev *string `json:"prev,omitempty"`
UserID *string `json:"user_id,omitempty"`
// Array of sort parameters
Sort []SortParamRequest `json:"sort"`
// Filter to apply to the query
Filter map[string]any `json:"filter"`
User *UserRequest `json:"user,omitempty"`
}
type GetRetentionPolicyRequest struct {
}
type SetRetentionPolicyRequest struct {
MaxAgeHours int `json:"max_age_hours"`
Policy string `json:"policy"`
}
type DeleteRetentionPolicyRequest struct {
Policy string `json:"policy"`
}
type GetRetentionPolicyRunsRequest struct {
Limit *int `json:"limit,omitempty"`
Next *string `json:"next,omitempty"`
Prev *string `json:"prev,omitempty"`
// Array of sort parameters
Sort []SortParamRequest `json:"sort"`
// Filter conditions to apply to the query
FilterConditions map[string]any `json:"filter_conditions"`
}
type SearchRequest struct {
Payload *SearchPayload `json:"-" query:"payload"`
}
type QuerySegmentsRequest struct {
// Filter to apply to the query
Filter map[string]any `json:"filter"`
Limit *int `json:"limit,omitempty"`
Next *string `json:"next,omitempty"`
Prev *string `json:"prev,omitempty"`
// Array of sort parameters
Sort []SortParamRequest `json:"sort"`
}
type DeleteSegmentRequest struct {
}
type GetSegmentRequest struct {
}
type DeleteSegmentTargetsRequest struct {
// Target IDs
TargetIds []string `json:"target_ids"`
}
type SegmentTargetExistsRequest struct {
}
type QuerySegmentTargetsRequest struct {
// Limit
Limit *int `json:"limit,omitempty"`
// Next
Next *string `json:"next,omitempty"`
// Prev
Prev *string `json:"prev,omitempty"`
Sort []SortParamRequest `json:"Sort"`
Filter map[string]any `json:"Filter"`
}
type QueryTeamUsageStatsRequest struct {
// End date in YYYY-MM-DD format. Used with start_date for custom date range. Returns daily breakdown.
EndDate *string `json:"end_date,omitempty"`
// Maximum number of teams to return per page (default: 30, max: 30)
Limit *int `json:"limit,omitempty"`
// Month in YYYY-MM format (e.g., '2026-01'). Mutually exclusive with start_date/end_date. Returns aggregated monthly values.
Month *string `json:"month,omitempty"`
// Cursor for pagination to fetch next page of teams
Next *string `json:"next,omitempty"`
// Start date in YYYY-MM-DD format. Used with end_date for custom date range. Returns daily breakdown.
StartDate *string `json:"start_date,omitempty"`
}
type QueryThreadsRequest struct {
Limit *int `json:"limit,omitempty"`
MemberLimit *int `json:"member_limit,omitempty"`
Next *string `json:"next,omitempty"`
// Limit the number of participants returned per each thread
ParticipantLimit *int `json:"participant_limit,omitempty"`
Prev *string `json:"prev,omitempty"`
// Limit the number of replies returned per each thread
ReplyLimit *int `json:"reply_limit,omitempty"`
UserID *string `json:"user_id,omitempty"`
// Array of sort parameters
Sort []SortParamRequest `json:"sort"`
// Filter to apply to the query
Filter map[string]any `json:"filter"`
User *UserRequest `json:"user,omitempty"`
}
type GetThreadRequest struct {
ReplyLimit *int `json:"-" query:"reply_limit"`
ParticipantLimit *int `json:"-" query:"participant_limit"`
MemberLimit *int `json:"-" query:"member_limit"`
}
type UpdateThreadPartialRequest struct {
UserID *string `json:"user_id,omitempty"`
// Array of field names to unset
Unset []string `json:"unset"`
// Sets new field values
Set map[string]any `json:"set"`
User *UserRequest `json:"user,omitempty"`
}
type UnreadCountsRequest struct {
UserID *string `json:"-" query:"user_id"`
}
type UnreadCountsBatchRequest struct {
UserIds []string `json:"user_ids"`
}
type SendUserCustomEventRequest struct {
Event UserCustomEventRequest `json:"event"`
}
type CheckPushRequest struct {
// Push message template for APN
ApnTemplate *string `json:"apn_template,omitempty"`
// Type of event for push templates (default: message.new). One of: message.new, message.updated, reaction.new, reaction.updated, notification.reminder_due
EventType *string `json:"event_type,omitempty"`
// Push message data template for Firebase
FirebaseDataTemplate *string `json:"firebase_data_template,omitempty"`
// Push message template for Firebase
FirebaseTemplate *string `json:"firebase_template,omitempty"`
// Message ID to send push notification for
MessageID *string `json:"message_id,omitempty"`
// Name of push provider
PushProviderName *string `json:"push_provider_name,omitempty"`
// Push provider type. One of: firebase, apn, huawei, xiaomi
PushProviderType *string `json:"push_provider_type,omitempty"`
// Don't require existing devices to render templates
SkipDevices *bool `json:"skip_devices,omitempty"`
UserID *string `json:"user_id,omitempty"`
User *UserRequest `json:"user,omitempty"`
}
type CheckSNSRequest struct {
// AWS SNS access key
SnsKey *string `json:"sns_key,omitempty"`
// AWS SNS key secret
SnsSecret *string `json:"sns_secret,omitempty"`
// AWS SNS topic ARN
SnsTopicArn *string `json:"sns_topic_arn,omitempty"`
}
type CheckSQSRequest struct {
// AWS SQS access key
SqsKey *string `json:"sqs_key,omitempty"`
// AWS SQS key secret
SqsSecret *string `json:"sqs_secret,omitempty"`
// AWS SQS endpoint URL
SqsUrl *string `json:"sqs_url,omitempty"`
}
type DeleteDeviceRequest struct {
ID string `json:"-" query:"id"`
UserID *string `json:"-" query:"user_id"`
}
type ListDevicesRequest struct {
UserID *string `json:"-" query:"user_id"`
}
type CreateDeviceRequest struct {
// Device ID
ID string `json:"id"`
// Push provider
PushProvider string `json:"push_provider"`
// Push provider name
PushProviderName *string `json:"push_provider_name,omitempty"`
// **Server-side only**. User ID which server acts upon
UserID *string `json:"user_id,omitempty"`
// When true the token is for Apple VoIP push notifications
VoipToken *bool `json:"voip_token,omitempty"`
User *UserRequest `json:"user,omitempty"`
}
type ExportUsersRequest struct {
UserIds []string `json:"user_ids"`
}
type ListExternalStorageRequest struct {
}
type CreateExternalStorageRequest struct {
// The name of the bucket on the service provider
Bucket string `json:"bucket"`
// The name of the provider, this must be unique
Name string `json:"name"`
// The type of storage to use
StorageType string `json:"storage_type"`
GcsCredentials *string `json:"gcs_credentials,omitempty"`
// The path prefix to use for storing files
Path *string `json:"path,omitempty"`
AWSS3 *S3Request `json:"aws_s3,omitempty"`
AzureBlob *AzureRequest `json:"azure_blob,omitempty"`
}
type DeleteExternalStorageRequest struct {
}
type UpdateExternalStorageRequest struct {
// The name of the bucket on the service provider
Bucket string `json:"bucket"`
// The type of storage to use
StorageType string `json:"storage_type"`
GcsCredentials *string `json:"gcs_credentials,omitempty"`
// The path prefix to use for storing files
Path *string `json:"path,omitempty"`
AWSS3 *S3Request `json:"aws_s3,omitempty"`
AzureBlob *AzureRequest `json:"azure_blob,omitempty"`
}
type CheckExternalStorageRequest struct {
}
type AddActivityRequest struct {
// Type of activity
Type string `json:"type"`
// List of feeds to add the activity to with a default max limit of 25 feeds
Feeds []string `json:"feeds"`
// Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
// Deprecated: this field is deprecated.
CopyCustomToNotification *bool `json:"copy_custom_to_notification,omitempty"`
// Whether to create notification activities for mentioned users
CreateNotificationActivity *bool `json:"create_notification_activity,omitempty"`
EnrichOwnFields *bool `json:"enrich_own_fields,omitempty"`
// Expiration time for the activity
ExpiresAt *string `json:"expires_at,omitempty"`
// Optional ID for the activity
ID *string `json:"id,omitempty"`
// ID of parent activity for replies/comments
ParentID *string `json:"parent_id,omitempty"`
// ID of a poll to attach to activity
PollID *string `json:"poll_id,omitempty"`
// Controls who can add comments/replies to this activity. One of: everyone, people_i_follow, nobody
RestrictReplies *string `json:"restrict_replies,omitempty"`
// Whether to skip URL enrichment for the activity
SkipEnrichUrl *bool `json:"skip_enrich_url,omitempty"`
// Whether to skip push notifications
SkipPush *bool `json:"skip_push,omitempty"`
// Text content of the activity
Text *string `json:"text,omitempty"`
// ID of the user creating the activity
UserID *string `json:"user_id,omitempty"`
// Visibility setting for the activity. One of: public, private, tag
Visibility *string `json:"visibility,omitempty"`
// If visibility is 'tag', this is the tag name and is required
VisibilityTag *string `json:"visibility_tag,omitempty"`
// List of attachments for the activity
Attachments []Attachment `json:"attachments"`
// Collections that this activity references
CollectionRefs []string `json:"collection_refs"`
// Tags for filtering activities
FilterTags []string `json:"filter_tags"`
// Tags for indicating user interests
InterestTags []string `json:"interest_tags"`
// List of users mentioned in the activity
MentionedUserIds []string `json:"mentioned_user_ids"`
// Custom data for the activity
Custom map[string]any `json:"custom"`
Location *Location `json:"location,omitempty"`
// Additional data for search indexing
SearchData map[string]any `json:"search_data"`
}
type UpsertActivitiesRequest struct {
// List of activities to create or update
Activities []ActivityRequest `json:"activities"`
// If true, enriches the activities' current_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
EnrichOwnFields *bool `json:"enrich_own_fields,omitempty"`
}
type UpdateActivitiesPartialBatchRequest struct {
// List of activity changes to apply. Each change specifies an activity ID and the fields to set/unset
Changes []UpdateActivityPartialChangeRequest `json:"changes"`
}
type DeleteActivitiesRequest struct {
// List of activity IDs to delete
Ids []string `json:"ids"`
// Whether to also delete any notification activities created from mentions in these activities
DeleteNotificationActivity *bool `json:"delete_notification_activity,omitempty"`
// Whether to permanently delete the activities
HardDelete *bool `json:"hard_delete,omitempty"`
UserID *string `json:"user_id,omitempty"`
User *UserRequest `json:"user,omitempty"`
}
type TrackActivityMetricsRequest struct {
// List of metric events to track (max 100 per request)
Events []TrackActivityMetricsEvent `json:"events"`
UserID *string `json:"user_id,omitempty"`
User *UserRequest `json:"user,omitempty"`
}
type QueryActivitiesRequest struct {
EnrichOwnFields *bool `json:"enrich_own_fields,omitempty"`
// When true, include both expired and non-expired activities in the result.
IncludeExpiredActivities *bool `json:"include_expired_activities,omitempty"`
IncludePrivateActivities *bool `json:"include_private_activities,omitempty"`
// When true, include soft-deleted activities in the result.
IncludeSoftDeletedActivities *bool `json:"include_soft_deleted_activities,omitempty"`
Limit *int `json:"limit,omitempty"`
Next *string `json:"next,omitempty"`
Prev *string `json:"prev,omitempty"`
UserID *string `json:"user_id,omitempty"`
// Sorting parameters for the query
Sort []SortParamRequest `json:"sort"`
// Filters to apply to the query. Supports location-based queries with 'near' and 'within_bounds' operators.
Filter map[string]any `json:"filter"`
User *UserRequest `json:"user,omitempty"`
}
type DeleteBookmarkRequest struct {
FolderID *string `json:"-" query:"folder_id"`
UserID *string `json:"-" query:"user_id"`
}
type UpdateBookmarkRequest struct {
// ID of the folder containing the bookmark
FolderID *string `json:"folder_id,omitempty"`
// Move the bookmark to this folder (empty string removes the folder)
NewFolderID *string `json:"new_folder_id,omitempty"`
UserID *string `json:"user_id,omitempty"`
// Custom data for the bookmark
Custom map[string]any `json:"custom"`
NewFolder *AddFolderRequest `json:"new_folder,omitempty"`
User *UserRequest `json:"user,omitempty"`
}
type AddBookmarkRequest struct {
// ID of the folder to add the bookmark to
FolderID *string `json:"folder_id,omitempty"`
UserID *string `json:"user_id,omitempty"`
// Custom data for the bookmark
Custom map[string]any `json:"custom"`
NewFolder *AddFolderRequest `json:"new_folder,omitempty"`
User *UserRequest `json:"user,omitempty"`
}
type ActivityFeedbackRequest struct {
// Whether to hide this activity
Hide *bool `json:"hide,omitempty"`
// Whether to show less content like this
ShowLess *bool `json:"show_less,omitempty"`
// Whether to show more content like this
ShowMore *bool `json:"show_more,omitempty"`
UserID *string `json:"user_id,omitempty"`
User *UserRequest `json:"user,omitempty"`
}
type AddActivityReactionRequest struct {
// Type of reaction
Type string `json:"type"`
// Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
// Deprecated: this field is deprecated.
CopyCustomToNotification *bool `json:"copy_custom_to_notification,omitempty"`
// Whether to create a notification activity for this reaction
CreateNotificationActivity *bool `json:"create_notification_activity,omitempty"`
// Whether to enforce unique reactions per user (remove other reaction types from the user when adding this one)
EnforceUnique *bool `json:"enforce_unique,omitempty"`
SkipPush *bool `json:"skip_push,omitempty"`
UserID *string `json:"user_id,omitempty"`
// Custom data for the reaction
Custom map[string]any `json:"custom"`
User *UserRequest `json:"user,omitempty"`
}
type QueryActivityReactionsRequest struct {
Limit *int `json:"limit,omitempty"`
Next *string `json:"next,omitempty"`
Prev *string `json:"prev,omitempty"`
Sort []SortParamRequest `json:"sort"`
Filter map[string]any `json:"filter"`
}
type DeleteActivityReactionRequest struct {
DeleteNotificationActivity *bool `json:"-" query:"delete_notification_activity"`
UserID *string `json:"-" query:"user_id"`
}
type DeleteActivityRequest struct {
HardDelete *bool `json:"-" query:"hard_delete"`
DeleteNotificationActivity *bool `json:"-" query:"delete_notification_activity"`
}
type GetActivityRequest struct {
}
type UpdateActivityPartialRequest struct {
// Whether to copy custom data to the notification activity (only applies when handle_mention_notifications creates notifications) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
// Deprecated: this field is deprecated.
CopyCustomToNotification *bool `json:"copy_custom_to_notification,omitempty"`
// If true, enriches the activity's current_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
EnrichOwnFields *bool `json:"enrich_own_fields,omitempty"`
// If true, creates notification activities for newly mentioned users and deletes notifications for users no longer mentioned
HandleMentionNotifications *bool `json:"handle_mention_notifications,omitempty"`
// If true, runs activity processors on the updated activity. Processors will only run if the activity text and/or attachments are changed. Defaults to false.
RunActivityProcessors *bool `json:"run_activity_processors,omitempty"`
UserID *string `json:"user_id,omitempty"`
// List of field names to remove. Supported fields: 'custom', 'visibility_tag', 'location', 'expires_at', 'filter_tags', 'interest_tags', 'attachments', 'poll_id', 'mentioned_user_ids', 'search_data'. Use dot-notation for nested custom fields (e.g., 'custom.field_name')
Unset []string `json:"unset"`
// Map of field names to new values. Supported fields: 'text', 'attachments', 'custom', 'visibility', 'visibility_tag', 'restrict_replies' (values: 'everyone', 'people_i_follow', 'nobody'), 'location', 'expires_at', 'filter_tags', 'interest_tags', 'poll_id', 'feeds', 'mentioned_user_ids', 'search_data'. For custom fields, use dot-notation (e.g., 'custom.field_name')
Set map[string]any `json:"set"`
User *UserRequest `json:"user,omitempty"`
}
type UpdateActivityRequest struct {
// Whether to copy custom data to the notification activity (only applies when handle_mention_notifications creates notifications) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
// Deprecated: this field is deprecated.
CopyCustomToNotification *bool `json:"copy_custom_to_notification,omitempty"`
// If true, enriches the activity's current_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
EnrichOwnFields *bool `json:"enrich_own_fields,omitempty"`
// Time when the activity will expire
ExpiresAt *Timestamp `json:"expires_at,omitempty"`
// If true, creates notification activities for newly mentioned users and deletes notifications for users no longer mentioned
HandleMentionNotifications *bool `json:"handle_mention_notifications,omitempty"`
// Poll ID
PollID *string `json:"poll_id,omitempty"`
// Controls who can add comments/replies to this activity. One of: everyone, people_i_follow, nobody
RestrictReplies *string `json:"restrict_replies,omitempty"`
// If true, runs activity processors on the updated activity. Processors will only run if the activity text and/or attachments are changed. Defaults to false.
RunActivityProcessors *bool `json:"run_activity_processors,omitempty"`
// Whether to skip URL enrichment for the activity
SkipEnrichUrl *bool `json:"skip_enrich_url,omitempty"`
// The text content of the activity
Text *string `json:"text,omitempty"`
UserID *string `json:"user_id,omitempty"`
// Visibility setting for the activity
Visibility *string `json:"visibility,omitempty"`
// If visibility is 'tag', this is the tag name and is required
VisibilityTag *string `json:"visibility_tag,omitempty"`