/
chat2.json
872 lines (872 loc) · 30.5 KB
/
chat2.json
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
{
"prelude": [
"import * as RPCChatTypes from '../constants/types/rpc-chat-gen'",
"import * as Types from '../constants/types/chat2'",
"import * as TeamsTypes from '../constants/types/teams'",
"import HiddenString from '../util/hidden-string'",
"import {RetentionPolicy} from '../constants/types/retention-policy'",
"import {AmpTracker} from '../chat/audio/amptracker'"
],
"actions": {
"toggleSmallTeamsExpanded": {},
// Deselct if this is still selected, used in nav2 when you go away from a chat convo
"deselectConversation": {
"ifConversationIDKey": "Types.ConversationIDKey"
},
// Select a conversation (or leave nothing selected)
"selectConversation": {
"conversationIDKey": "Types.ConversationIDKey",
// why this happened, sometimes there's different side effects
"reason": [
"'focused'", // nav focus changed
"'clearSelected'", // deselect
"'desktopNotification'", // clicked notification
"'createdMessagePrivately'", // messaging privately and maybe made it
"'extension'", // from a notification from iOS share extension
"'files'", // from the Files tab
"'findNewestConversation'", // find a new chat to select
"'inboxBig'", // inbox row
"'inboxFilterArrow'", // arrow keys in inbox filter
"'inboxFilterChanged'", // inbox filter made first one selected
"'inboxSmall'", // inbox row
"'inboxNewConversation'", // new conversation row
"'inboxSearch'", // selected from inbox seaech
"'jumpFromReset'", // from older reset convo
"'jumpToReset'", // going to an older reset convo
"'justCreated'", // just made it and select it
"'manageView'", // clicked from manage screen
"'previewResolved'", // did a preview and are now selecting it
"'push'", // from a push
"'savedLastState'", // last seen chat tab
"'startFoundExisting'", // starting a conversation and found one already
"'teamChat'", // from team
"'addedToChannel'", // just added people to this channel
"'teamMention'" // from team mention
],
"navKey?": "string"
},
// Got an error while creating a conversation.
"conversationErrored": {
"message": "string"
},
// Select an existing conversation or setup an empty one. Can either be adhoc or a tlf (adhoc or team)
// fromAReset means you were in a reset kbfs convo and you want to make a new one
// Chatting from external places in the app should usually call this
// if you want to preview a team chat (and add it to the inbox use selectConversation instead)
"previewConversation": {
"participants?": "Array<string>",
"teamname?": "string",
"channelname?": "string",
"conversationIDKey?": "Types.ConversationIDKey", // we only use this when we click on channel mentions. we could maybe change that plumbing but keeping it for now
"reason": [
"'manageView'",
"'messageLink'",
"'resetChatWithoutThem'",
"'tracker'",
"'teamHeader'",
"'files'",
"'teamInvite'",
"'fromAReset'",
"'profile'",
"'teamMember'",
"'teamHeader'",
"'convertAdHoc'",
"'memberView'",
"'newChannel'",
"'transaction'",
"'sentPayment'",
"'requestedPayment'",
"'teamMention'",
"'appLink'",
"'search'",
"'journeyCardPopular'"
]
},
"createConversation": {
"_description": "Actually start a conversation",
"participants": "Array<string>"
},
"changeFocus": {
"_description": "Where we want our focus for keypresses",
"nextFocus": "Types.Focus"
},
// Update our badges in the nav
"badgesUpdated": {
"conversations": "Array<RPCTypes.BadgeConversationInfo>"
},
// Refresh the inbox
"inboxRefresh": {
"reason": [
"'bootstrap'",
"'componentNeverLoaded'",
"'inboxStale'",
"'inboxSyncedClear'",
"'inboxSyncedUnknown'",
"'joinedAConversation'",
"'leftAConversation'",
"'teamTypeChanged'",
"'maybeKickedFromTeam'",
"'widgetRefresh'"
]
},
// We want to unbox an inbox row
"metaNeedsUpdating": {
"conversationIDKeys": "Array<Types.ConversationIDKey>",
"reason": "string"
},
// Internal action: pull more metas from the queue to request
"metaHandleQueue": {},
// About to try and unbox some inbox rows
"metaRequestingTrusted": {
"conversationIDKeys": "Array<Types.ConversationIDKey>"
},
// Actually unboxing
"metaRequestTrusted": {
"force?": "boolean",
"noWaiting?": "boolean",
"reason": [
"'refreshPreviousSelected'",
"'requestTeamsUnboxing'",
"'inboxSynced'",
"'setConvRetention'",
"'subTeamRename'",
"'tlfFinalize'",
"'threadStale'",
"'membersUpdate'",
"'scroll'",
"'ensureSelectedMeta'",
"'ensureWidgetMetas'",
"'inboxSearchResults'"
],
"conversationIDKeys": "Array<Types.ConversationIDKey>"
},
// Got some new inbox rows
"metasReceived": {
"metas": "Array<Types.ConversationMeta>",
"removals?": "Array<Types.ConversationIDKey>", // convs to remove
"fromInboxRefresh?": "boolean", // If true from an inbox refresh
"initialTrustedLoad?": "boolean" // If true this is the first trusted inbox load
},
"clearMetas": {},
"clearMessages": {},
// Got some inbox errors
"metaReceivedError": {
"conversationIDKey": "Types.ConversationIDKey",
"error": "RPCChatTypes.InboxUIItemError | null",
"username": "string | null"
},
// We got a status update saying it was blocked or ignored
"metaDelete": {
"conversationIDKey": "Types.ConversationIDKey",
"selectSomethingElse": "boolean"
},
// We updated our view of a thread
"updateMoreToLoad": {
"conversationIDKey": "Types.ConversationIDKey",
"moreToLoad": "boolean"
},
// Add a new message
"messagesAdd": {
// sent = we sent it
// incoming = a streaming message
// threadLoad = we're loading more messages on select / scroll
"context": [
"{type: 'sent'}",
"{type: 'incoming'}",
"{type: 'threadLoad', conversationIDKey: Types.ConversationIDKey}"
],
"messages": "Array<Types.Message>",
// true if these should be the only messages we know about
"shouldClearOthers?": "boolean",
"centeredMessageIDs?": "Array<{conversationIDKey: Types.ConversationIDKey, messageID: Types.MessageID, highlightMode: Types.CenterOrdinalHighlightMode}>",
"forceContainsLatestCalc?": "boolean"
},
// Got an error sending a message
"messageErrored": {
"conversationIDKey": "Types.ConversationIDKey",
"reason": "string",
"errorTyp": "number | null",
"outboxID": "Types.OutboxID"
},
// Start editing a message / or edit the last message / or clear editing
"messageSetEditing": {
"conversationIDKey": "Types.ConversationIDKey",
"ordinal": "Types.Ordinal | null",
"editLastUser?": "string"
},
// Start quoting a message / or clear quoting
"messageSetQuoting": {
"sourceConversationIDKey": "Types.ConversationIDKey",
"targetConversationIDKey": "Types.ConversationIDKey",
"ordinal": "Types.Ordinal"
},
// Reply privately to a message with quoting
"messageReplyPrivately": {
"sourceConversationIDKey": "Types.ConversationIDKey",
"ordinal": "Types.Ordinal"
},
// Submit an edit to the daemon
"messageEdit": {
"conversationIDKey": "Types.ConversationIDKey",
"ordinal": "Types.Ordinal",
"text": "HiddenString"
},
// Update a message which changed
"messageWasEdited": {
"conversationIDKey": "Types.ConversationIDKey",
"messageID": "RPCChatTypes.MessageID",
"text": "HiddenString",
"mentionsAt": "Set<string>",
"mentionsChannel": "'none' | 'all' | 'here'",
"mentionsChannelName": "Map<string, Types.ConversationIDKey>"
},
"pendingMessageWasEdited": {
"conversationIDKey": "Types.ConversationIDKey",
"ordinal": "Types.Ordinal",
"text": "HiddenString"
},
// Mark a message as deleted
"messagesWereDeleted": {
"conversationIDKey": "Types.ConversationIDKey",
"messageIDs?": "Array<RPCChatTypes.MessageID>",
"upToMessageID?": "RPCChatTypes.MessageID", // expunge calls give us a message we should delete up to (don't delete it)
"deletableMessageTypes?": "Set<Types.MessageType>", // expunge calls don't delete _all_ messages, only these types
"ordinals?": "Array<Types.Ordinal>"
},
"messagesExploded": {
"_description": "Exploding messages expired or were manually detonated.",
"conversationIDKey": "Types.ConversationIDKey",
"messageIDs": "Array<RPCChatTypes.MessageID>",
"explodedBy?": "string"
},
// Delete a message
"messageDelete": {
"conversationIDKey": "Types.ConversationIDKey",
"ordinal": "Types.Ordinal"
},
// Deletes all messages
"messageDeleteHistory": {
"conversationIDKey": "Types.ConversationIDKey"
},
// Load some more messages for a conversation
"loadOlderMessagesDueToScroll": {
"conversationIDKey": "Types.ConversationIDKey"
},
"loadNewerMessagesDueToScroll": {
"conversationIDKey": "Types.ConversationIDKey"
},
"loadMessagesCentered": {
"conversationIDKey": "Types.ConversationIDKey",
"messageID": "Types.MessageID",
"highlightMode": "Types.CenterOrdinalHighlightMode"
},
// Show a desktop notification
"desktopNotification": {
"conversationIDKey": "Types.ConversationIDKey",
"author": "string",
"body": "string"
},
// Send a text message
"messageSend": {
"conversationIDKey": "Types.ConversationIDKey",
"text": "HiddenString",
"replyTo?": "Types.MessageID",
"waitingKey?": "string"
},
"messageSendByUsernames": {
"usernames": "string",
"text": "HiddenString",
"waitingKey?": "string"
},
"toggleLocalReaction": {
"_description": "Toggle a reaction in the store.",
"conversationIDKey": "Types.ConversationIDKey",
"emoji": "string",
"targetOrdinal": "Types.Ordinal",
"username": "string"
},
"toggleMessageReaction": {
"_description": "Tell the service to toggle a reaction on a message.",
"conversationIDKey": "Types.ConversationIDKey",
"emoji": "string",
"ordinal": "Types.Ordinal"
},
"updateReactions": {
"_description": "The service sent us an update for the reaction map of a message.",
"conversationIDKey": "Types.ConversationIDKey",
"updates": "Array<{targetMsgID: RPCChatTypes.MessageID, reactions: Types.Reactions}>"
},
// Resend a message
"messageRetry": {
"conversationIDKey": "Types.ConversationIDKey",
"outboxID": "Types.OutboxID"
},
"joinConversation": {
"conversationIDKey": "Types.ConversationIDKey"
},
"leaveConversation": {
"conversationIDKey": "Types.ConversationIDKey",
"dontNavigateToInbox?": "boolean"
},
"muteConversation": {
"conversationIDKey": "Types.ConversationIDKey",
"muted": "boolean"
},
"openFolder": {
"conversationIDKey": "Types.ConversationIDKey"
},
// If an implied team chat member resets you can start a new chat w/o any reset people
"resetChatWithoutThem": {
"conversationIDKey": "Types.ConversationIDKey"
},
// If an implied team chat member resets you can add them back in
"resetLetThemIn": {
"conversationIDKey": "Types.ConversationIDKey",
"username": "string"
},
// The user has selected an attachment with a preview
"attachmentPreviewSelect": {
"message": "Types.MessageAttachment"
},
// We want to save an attachment to the local disk
"attachmentDownload": {
"message": "Types.Message"
},
// Saving an attachment to mobile storage
"attachmentMobileSave": {
"conversationIDKey": "Types.ConversationIDKey",
"ordinal": "Types.Ordinal"
},
// Saving an attachment to mobile storage has finished
"attachmentMobileSaved": {
"conversationIDKey": "Types.ConversationIDKey",
"ordinal": "Types.Ordinal"
},
// Update the loading bars
"attachmentLoading": {
"conversationIDKey": "Types.ConversationIDKey",
"message": "Types.Message",
"ratio": "number", // 0-1
"isPreview": "boolean"
},
// We saved an attachment to the local disk
"attachmentDownloaded": {
"message": "Types.Message",
"error?": "string",
"path?": "string"
},
// We want to upload some attachments
"attachmentsUpload": {
"conversationIDKey": "Types.ConversationIDKey",
"paths": "Array<Types.PathAndOutboxID>",
"titles": "Array<string>"
},
// Update progress on an upload
"attachmentUploading": {
"conversationIDKey": "Types.ConversationIDKey",
"outboxID": "Types.OutboxID",
"ratio": "number" // 0-1
},
// We're done uploading
"attachmentUploaded": {
"conversationIDKey": "Types.ConversationIDKey",
"ordinal": "Types.Ordinal"
},
// Image data pasted into a conversation
"attachmentPasted": {
"conversationIDKey": "Types.ConversationIDKey",
"data": "Buffer"
},
"attachmentFullscreenSelection": {
"autoPlay": "boolean",
"message": "Types.Message"
},
"attachmentFullscreenNext": {
"conversationIDKey": "Types.ConversationIDKey",
"messageID": "Types.MessageID",
"backInTime": "boolean"
},
// We got an uploaded attachment, while online this is like an edit of the placeholder
"messageAttachmentUploaded": {
"conversationIDKey": "Types.ConversationIDKey",
"placeholderID": "RPCChatTypes.MessageID",
"message": "Types.MessageAttachment"
},
// Tell server we're typing
"sendTyping": {
"conversationIDKey": "Types.ConversationIDKey",
"typing": "boolean"
},
// On startup we're automatically loading a thread sometimes. When we first view it we should
// go through our marking as read logic
"markInitiallyLoadedThreadAsRead": {
"conversationIDKey": "Types.ConversationIDKey"
},
// Server told us a conversation is out of date
"markConversationsStale": {
"conversationIDKeys": "Array<Types.ConversationIDKey>",
"updateType": "RPCChatTypes.StaleUpdateType"
},
// Navigation helpers. Nav is slightly different on mobile / desktop
"navigateToInbox": {},
"navigateToThread": {},
// Share to external app on mobile
"messageAttachmentNativeShare": {
"message": "Types.Message"
},
// Save on mobile (camera roll)
"messageAttachmentNativeSave": {
"message": "Types.Message"
},
// We're changing the notification settings
"updateNotificationSettings": {
"conversationIDKey": "Types.ConversationIDKey",
"notificationsDesktop": "Types.NotificationsType",
"notificationsMobile": "Types.NotificationsType",
"notificationsGlobalIgnoreMentions": "boolean"
},
// We get new notification settings
"notificationSettingsUpdated": {
"conversationIDKey": "Types.ConversationIDKey",
"settings": "RPCChatTypes.ConversationNotificationInfo"
},
// Block a conversation
"blockConversation": {
"conversationIDKey": "Types.ConversationIDKey",
"reportUser": "boolean"
},
// Hide a conversation until future activity
"hideConversation": {
"conversationIDKey": "Types.ConversationIDKey"
},
"unhideConversation": {
"conversationIDKey": "Types.ConversationIDKey"
},
// Conversation was loaded and is offline
"setConversationOffline": {
"conversationIDKey": "Types.ConversationIDKey",
"offline": "boolean"
},
"setConvRetentionPolicy": {
"_description": "Sets the retention policy for a conversation.",
"conversationIDKey": "Types.ConversationIDKey",
"policy": "RetentionPolicy"
},
"updateConvRetentionPolicy": {
"_description": "Consume a service notification that a conversation's retention policy has been updated",
"meta": "Types.ConversationMeta"
},
"updateTeamRetentionPolicy": {
"_description": "Consume a service notification that a team retention policy was updated",
"metas": "Array<Types.ConversationMeta>"
},
"setConvExplodingMode": {
"_description": "Set the remote exploding mode for a conversation.",
"conversationIDKey": "Types.ConversationIDKey",
"seconds": "number"
},
"setExplodingModeLock": {
"_description": "Set a lock on the exploding mode for a conversation.",
"conversationIDKey": "Types.ConversationIDKey",
"unset?": "boolean"
},
"updateConvExplodingModes": {
"_description": "Handle an update to our conversation exploding modes.",
"modes": "Array<{conversationIDKey: Types.ConversationIDKey, seconds: number}>"
},
"setWalletsOld": {
"_description": "Set that wallets in chat is not new."
},
"handleSeeingWallets": {
"_description": "The user has interacted with wallets in chat."
},
"staticConfigLoaded": {
"_description": "Static configuration info was loaded from the service.",
"staticConfig": "Types.StaticConfig"
},
"setMinWriterRole": {
"_description": "Set the minimum role required to write into a conversation. Valid only for team conversations.",
"conversationIDKey": "Types.ConversationIDKey",
"role": "TeamsTypes.TeamRoleType"
},
"saveMinWriterRole": {
"_description": "Update the minWriterRole stored with the conversation metadata.",
"conversationIDKey": "Types.ConversationIDKey",
"role": "TeamsTypes.TeamRoleType",
"cannotWrite": "boolean"
},
"openChatFromWidget": {
"conversationIDKey?": "Types.ConversationIDKey"
},
"paymentInfoReceived": {
"_description": "We received payment info for a sendPayment message",
"conversationIDKey": "Types.ConversationIDKey",
"messageID": "RPCChatTypes.MessageID",
"paymentInfo": "Types.ChatPaymentInfo"
},
"requestInfoReceived": {
"_description": "We received request info for a requestPayment message",
"conversationIDKey": "Types.ConversationIDKey",
"messageID": "RPCChatTypes.MessageID",
"requestInfo": "Types.ChatRequestInfo"
},
"prepareFulfillRequestForm": {
"_description": "Prime data to fulfill this message's request and navigate to the send form.",
"conversationIDKey": "Types.ConversationIDKey",
"ordinal": "Types.Ordinal"
},
"unfurlResolvePrompt": {
"_description": "Response to an unfurl prompt",
"conversationIDKey": "Types.ConversationIDKey",
"messageID": "Types.MessageID",
"domain": "string",
"result": "RPCChatTypes.UnfurlPromptResult"
},
"unfurlTogglePrompt": {
"_description": "Add an unfurl prompt to a message",
"conversationIDKey": "Types.ConversationIDKey",
"messageID": "Types.MessageID",
"domain": "string",
"show": "boolean"
},
"unfurlRemove": {
"_description": "Remove an unfurl",
"conversationIDKey": "Types.ConversationIDKey",
"messageID": "Types.MessageID"
},
"unsentTextChanged": {
"_description": "Unsent text changed",
"conversationIDKey": "Types.ConversationIDKey",
"text": "HiddenString"
},
"updateMessages": {
"_description": "Update messages that we might have in the store",
"conversationIDKey": "Types.ConversationIDKey",
"messages": "Array<{messageID: Types.MessageID, message: Types.Message}>"
},
"giphySend": {
"_description": "send a message from Giphy search",
"conversationIDKey": "Types.ConversationIDKey",
"url": "HiddenString"
},
"giphyGotSearchResult": {
"_description": "Giphy search results obtained",
"conversationIDKey": "Types.ConversationIDKey",
"results": "RPCChatTypes.GiphySearchResults"
},
"giphyToggleWindow": {
"_description": "Toggle Giphy search preview window",
"conversationIDKey": "Types.ConversationIDKey",
"show": "boolean",
"clearInput": "boolean"
},
"clearPaymentConfirmInfo": {
"_description": "Clear data for payment confirm modal"
},
"setPaymentConfirmInfo": {
"_description": "Set the payment confirm modal payment data",
"error?": "RPCTypes.Status",
"summary?": "RPCChatTypes.UIChatPaymentSummary"
},
"confirmScreenResponse": {
"_description": "User responded to the chat Stellar confirm screen",
"accept": "boolean"
},
"setUnsentText": {
"_description": "Set unsent text for a conversation",
"conversationIDKey": "Types.ConversationIDKey",
"text?": "HiddenString"
},
"setPrependText": {
"_description": "Set prepend text for a conversation",
"conversationIDKey": "Types.ConversationIDKey",
"text": "HiddenString | null"
},
"updateUnreadline": {
"_description": "Update the unreadline line position for a conversation",
"conversationIDKey": "Types.ConversationIDKey",
"messageID": "Types.MessageID"
},
"toggleMessageCollapse": {
"_description": "Set the collapse status of a message",
"conversationIDKey": "Types.ConversationIDKey",
"messageID": "Types.MessageID",
"collapse": "boolean"
},
"toggleInfoPanel": {},
"updateCoinFlipStatus": {
"_description": "Update status of a coin flip game",
"statuses": "Array<RPCChatTypes.UICoinFlipStatus>"
},
"setCommandMarkdown": {
"_description": "Set command markdown for a conversation",
"conversationIDKey": "Types.ConversationIDKey",
"md": "RPCChatTypes.UICommandMarkdown | null"
},
"addUsersToChannel": {
"_description": "Add a list of users to a conversation. Creates a SystemBulkAddToConv message.",
"conversationIDKey": "Types.ConversationIDKey",
"usernames": "Array<string>"
},
"jumpToRecent": {
"_description": "Jump to most recent messages in a conversation",
"conversationIDKey": "Types.ConversationIDKey"
},
"setContainsLastMessage": {
"_description": "Explicitly set whether a thread is loaded to the most recent message",
"conversationIDKey": "Types.ConversationIDKey",
"contains": "boolean"
},
"threadSearch": {
"_description": "Perform a search in a thread",
"conversationIDKey": "Types.ConversationIDKey",
"query": "HiddenString"
},
"threadSearchResults": {
"_description": "Record a new thread search result",
"conversationIDKey": "Types.ConversationIDKey",
"messages": "Array<Types.Message>",
"clear": "boolean"
},
"setThreadSearchStatus": {
"_description": "Set the status of a thread search",
"conversationIDKey": "Types.ConversationIDKey",
"status": "Types.ThreadSearchStatus"
},
"toggleThreadSearch": {
"_description": "Toggle the display of the thread search window",
"conversationIDKey": "Types.ConversationIDKey"
},
"toggleReplyToMessage": {
"_description": "Reply to a message publicly",
"conversationIDKey": "Types.ConversationIDKey",
"ordinal?": "Types.Ordinal"
},
"replyJump": {
"_description": "Jump to a replied to message",
"conversationIDKey": "Types.ConversationIDKey",
"messageID": "Types.MessageID"
},
"setThreadSearchQuery": {
"_description": "Set thread search query (used from inbox search to initialize it)",
"conversationIDKey": "Types.ConversationIDKey",
"query": "HiddenString"
},
"inboxSearch": {
"_description": "Perform an inbox search",
"query": "HiddenString"
},
"inboxSearchStarted": {
"_description": "Inbox search has started"
},
"toggleInboxSearch": {
"_description": "Toggle inbox search view",
"enabled": "boolean"
},
"inboxSearchNameResults": {
"_description": "Inbox search name results received",
"results": "Array<Types.InboxSearchConvHit>",
"unread": "boolean"
},
"inboxSearchTextResult": {
"_description": "Inbox text result has arrived",
"result": "Types.InboxSearchTextHit"
},
"inboxSearchMoveSelectedIndex": {
"_description": "Change selected index of inbox search",
"increment": "boolean"
},
"inboxSearchSelect": {
"_description": "Select an inbox search item",
"conversationIDKey?": "Types.ConversationIDKey",
"query?": "HiddenString",
"selectedIndex?": "number"
},
"inboxSearchSetTextStatus": {
"_description": "Set the status of the inbox text search",
"status": "Types.InboxSearchStatus"
},
"inboxSearchSetIndexPercent": {
"_description": "Set index percent complete",
"percent": "number"
},
"setMaybeMentionInfo": {
"_description": "Set team mention info",
"name": "string",
"info": "RPCChatTypes.UIMaybeMentionInfo"
},
"tabSelected": {
"_description": "Desktop changed tab to chat"
},
"setInboxShowIsNew": {
"_description": "We've seen chat search before",
"isNew": "boolean"
},
"resolveMaybeMention": {
"_description": "Resolve an unknown @ mention",
"name": "string",
"channel": "string"
},
"loadAttachmentView": {
"_description": "Load attachment view pane",
"conversationIDKey": "Types.ConversationIDKey",
"viewType": "RPCChatTypes.GalleryItemTyp",
"fromMsgID?": "Types.MessageID"
},
"addAttachmentViewMessage": {
"_description": "Add result for attachment view",
"conversationIDKey": "Types.ConversationIDKey",
"viewType": "RPCChatTypes.GalleryItemTyp",
"message": "Types.Message"
},
"setAttachmentViewStatus": {
"_description": "Set attachment view status",
"conversationIDKey": "Types.ConversationIDKey",
"viewType": "RPCChatTypes.GalleryItemTyp",
"status": "Types.AttachmentViewStatus",
"last?": "boolean"
},
"clearAttachmentView": {
"_description": "Clear attachment views",
"conversationIDKey": "Types.ConversationIDKey"
},
"updateUserReacjis": {
"userReacjis": "RPCTypes.UserReacjis"
},
"setCommandStatusInfo": {
"_description": "Set command status info",
"conversationIDKey": "Types.ConversationIDKey",
"info": "Types.CommandStatusInfo"
},
"clearCommandStatusInfo": {
"_description": "Clear command status info",
"conversationIDKey": "Types.ConversationIDKey"
},
"setThreadLoadStatus": {
"_description": "Set thread load status",
"conversationIDKey": "Types.ConversationIDKey",
"status": "RPCChatTypes.UIChatThreadStatus"
},
"pinMessage": {
"_description": "Pin a message",
"conversationIDKey": "Types.ConversationIDKey",
"messageID": "Types.MessageID"
},
"unpinMessage": {
"_description": "Unpin a message",
"conversationIDKey": "Types.ConversationIDKey"
},
"ignorePinnedMessage": {
"_description": "Ignore pinned message",
"conversationIDKey": "Types.ConversationIDKey"
},
"dismissBottomBanner": {
"_description": "Set the bottom banner on a new conversation as dismissed",
"conversationIDKey": "Types.ConversationIDKey"
},
"updateLastCoord": {
"_description": "Update last known coordinate",
"coord": "Types.Coordinate"
},
"toggleGiphyPrefill": {
"_description": "Toggle /giphy text to trigger preview window",
"conversationIDKey": "Types.ConversationIDKey"
},
"setChannelSearchText": {
"_description": "Set filter for channel search",
"text": "string"
},
"updateBlockButtons": {
"_description": "Show or hide invitation to block for a given team ID",
"teamID": "RPCTypes.TeamID",
"adder?": "string",
"show": "boolean"
},
"dismissBlockButtons": {
"teamID": "RPCTypes.TeamID"
},
"setInboxNumSmallRows": {
"ignoreWrite?": "boolean",
"rows": "number"
},
"enableAudioRecording": {
"conversationIDKey": "Types.ConversationIDKey",
"meteringCb": "(amp: number) => void"
},
"attemptAudioRecording": {
"conversationIDKey": "Types.ConversationIDKey",
"meteringCb": "(amp: number) => void"
},
"stopAudioRecording": {
"conversationIDKey": "Types.ConversationIDKey",
"stopType": "Types.AudioStopType",
"amps?": "AmpTracker"
},
"lockAudioRecording": {
"conversationIDKey": "Types.ConversationIDKey"
},
"sendAudioRecording": {
"conversationIDKey": "Types.ConversationIDKey",
"fromStaged": "boolean",
"info": "Types.AudioRecordingInfo"
},
"setAudioRecordingPostInfo": {
"conversationIDKey": "Types.ConversationIDKey",
"path": "string",
"outboxID": "Buffer"
},
"loadNextBotPage": {
"_description": "loads next page of featured bots from backend",
"pageSize": "number"
},
"setLoadedBotPage": {
"_description": "set page # for a conversation",
"page": "number"
},
"refreshBotPublicCommands": {
"_description": "refresh bot public commands",
"username": "string"
},
"setBotPublicCommands": {
"_description": "set bot public commands",
"username": "string",
"commands": "Types.BotPublicCommands"
},
"addBotMember": {
"_description": "add bot member to channel",
"conversationIDKey": "Types.ConversationIDKey",
"allowCommands": "boolean",
"allowMentions": "boolean",
"username": "string"
},
"refreshBotSettings": {
"_description": "refresh bot settings",
"conversationIDKey": "Types.ConversationIDKey",
"username": "string"
},
"setBotSettings": {
"_description": "set bot settings",
"conversationIDKey": "Types.ConversationIDKey",
"username": "string",
"settings": "RPCTypes.TeamBotSettings"
},
"removeBotMember": {
"_description": "remove a bot member",
"conversationIDKey": "Types.ConversationIDKey",
"username": "string"
},
"editBotSettings": {
"_description": "edit bot settings",
"conversationIDKey": "Types.ConversationIDKey",
"username": "string",
"allowCommands": "boolean",
"allowMentions": "boolean"
},
"loadMoreSmalls": {
"_description": "Tell the service to give us more small teams"
},
"resetSmalls": {
"_description": "Tell the service to revert to default number of small teams"
}
}
}