@atproto/api 0.19.7 → 0.19.9
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.
- package/CHANGELOG.md +12 -0
- package/dist/client/index.d.ts +55 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +232 -16
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +3684 -658
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +1959 -270
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/embed/images.d.ts +1 -1
- package/dist/client/types/app/bsky/embed/images.d.ts.map +1 -1
- package/dist/client/types/app/bsky/embed/images.js.map +1 -1
- package/dist/client/types/chat/bsky/actor/declaration.d.ts +2 -0
- package/dist/client/types/chat/bsky/actor/declaration.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/actor/declaration.js.map +1 -1
- package/dist/client/types/chat/bsky/actor/defs.d.ts +20 -0
- package/dist/client/types/chat/bsky/actor/defs.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/actor/defs.js +18 -0
- package/dist/client/types/chat/bsky/actor/defs.js.map +1 -1
- package/dist/client/types/chat/bsky/convo/acceptConvo.d.ts +4 -1
- package/dist/client/types/chat/bsky/convo/acceptConvo.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/convo/acceptConvo.js +15 -0
- package/dist/client/types/chat/bsky/convo/acceptConvo.js.map +1 -1
- package/dist/client/types/chat/bsky/convo/addReaction.d.ts +6 -0
- package/dist/client/types/chat/bsky/convo/addReaction.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/convo/addReaction.js +17 -1
- package/dist/client/types/chat/bsky/convo/addReaction.js.map +1 -1
- package/dist/client/types/chat/bsky/convo/defs.d.ts +290 -3
- package/dist/client/types/chat/bsky/convo/defs.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/convo/defs.js +288 -0
- package/dist/client/types/chat/bsky/convo/defs.js.map +1 -1
- package/dist/client/types/chat/bsky/convo/deleteMessageForSelf.d.ts +7 -1
- package/dist/client/types/chat/bsky/convo/deleteMessageForSelf.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/convo/deleteMessageForSelf.js +23 -0
- package/dist/client/types/chat/bsky/convo/deleteMessageForSelf.js.map +1 -1
- package/dist/client/types/chat/bsky/convo/getConvo.d.ts +4 -1
- package/dist/client/types/chat/bsky/convo/getConvo.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/convo/getConvo.js +15 -0
- package/dist/client/types/chat/bsky/convo/getConvo.js.map +1 -1
- package/dist/client/types/chat/bsky/convo/getConvoForMembers.d.ts +16 -1
- package/dist/client/types/chat/bsky/convo/getConvoForMembers.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/convo/getConvoForMembers.js +47 -0
- package/dist/client/types/chat/bsky/convo/getConvoForMembers.js.map +1 -1
- package/dist/client/types/chat/bsky/convo/getLog.d.ts +1 -1
- package/dist/client/types/chat/bsky/convo/getLog.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/convo/getLog.js.map +1 -1
- package/dist/client/types/chat/bsky/convo/getMessages.d.ts +5 -2
- package/dist/client/types/chat/bsky/convo/getMessages.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/convo/getMessages.js +15 -0
- package/dist/client/types/chat/bsky/convo/getMessages.js.map +1 -1
- package/dist/client/types/chat/bsky/convo/leaveConvo.d.ts +7 -1
- package/dist/client/types/chat/bsky/convo/leaveConvo.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/convo/leaveConvo.js +23 -0
- package/dist/client/types/chat/bsky/convo/leaveConvo.js.map +1 -1
- package/dist/client/types/chat/bsky/convo/listConvoRequests.d.ts +29 -0
- package/dist/client/types/chat/bsky/convo/listConvoRequests.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/convo/listConvoRequests.js +11 -0
- package/dist/client/types/chat/bsky/convo/listConvoRequests.js.map +1 -0
- package/dist/client/types/chat/bsky/convo/listConvos.d.ts +3 -0
- package/dist/client/types/chat/bsky/convo/listConvos.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/convo/listConvos.js.map +1 -1
- package/dist/client/types/chat/bsky/convo/lockConvo.d.ts +34 -0
- package/dist/client/types/chat/bsky/convo/lockConvo.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/convo/lockConvo.js +42 -0
- package/dist/client/types/chat/bsky/convo/lockConvo.js.map +1 -0
- package/dist/client/types/chat/bsky/convo/muteConvo.d.ts +4 -1
- package/dist/client/types/chat/bsky/convo/muteConvo.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/convo/muteConvo.js +15 -0
- package/dist/client/types/chat/bsky/convo/muteConvo.js.map +1 -1
- package/dist/client/types/chat/bsky/convo/removeReaction.d.ts +6 -0
- package/dist/client/types/chat/bsky/convo/removeReaction.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/convo/removeReaction.js +17 -1
- package/dist/client/types/chat/bsky/convo/removeReaction.js.map +1 -1
- package/dist/client/types/chat/bsky/convo/sendMessage.d.ts +7 -1
- package/dist/client/types/chat/bsky/convo/sendMessage.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/convo/sendMessage.js +23 -0
- package/dist/client/types/chat/bsky/convo/sendMessage.js.map +1 -1
- package/dist/client/types/chat/bsky/convo/sendMessageBatch.d.ts +7 -1
- package/dist/client/types/chat/bsky/convo/sendMessageBatch.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/convo/sendMessageBatch.js +23 -0
- package/dist/client/types/chat/bsky/convo/sendMessageBatch.js.map +1 -1
- package/dist/client/types/chat/bsky/convo/unlockConvo.d.ts +31 -0
- package/dist/client/types/chat/bsky/convo/unlockConvo.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/convo/unlockConvo.js +34 -0
- package/dist/client/types/chat/bsky/convo/unlockConvo.js.map +1 -0
- package/dist/client/types/chat/bsky/convo/unmuteConvo.d.ts +4 -1
- package/dist/client/types/chat/bsky/convo/unmuteConvo.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/convo/unmuteConvo.js +15 -0
- package/dist/client/types/chat/bsky/convo/unmuteConvo.js.map +1 -1
- package/dist/client/types/chat/bsky/convo/updateRead.d.ts +4 -1
- package/dist/client/types/chat/bsky/convo/updateRead.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/convo/updateRead.js +15 -0
- package/dist/client/types/chat/bsky/convo/updateRead.js.map +1 -1
- package/dist/client/types/chat/bsky/group/addMembers.d.ts +53 -0
- package/dist/client/types/chat/bsky/group/addMembers.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/group/addMembers.js +90 -0
- package/dist/client/types/chat/bsky/group/addMembers.js.map +1 -0
- package/dist/client/types/chat/bsky/group/approveJoinRequest.d.ts +35 -0
- package/dist/client/types/chat/bsky/group/approveJoinRequest.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/group/approveJoinRequest.js +42 -0
- package/dist/client/types/chat/bsky/group/approveJoinRequest.js.map +1 -0
- package/dist/client/types/chat/bsky/group/createGroup.d.ts +41 -0
- package/dist/client/types/chat/bsky/group/createGroup.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/group/createGroup.js +58 -0
- package/dist/client/types/chat/bsky/group/createGroup.js.map +1 -0
- package/dist/client/types/chat/bsky/group/createJoinLink.d.ts +36 -0
- package/dist/client/types/chat/bsky/group/createJoinLink.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/group/createJoinLink.js +42 -0
- package/dist/client/types/chat/bsky/group/createJoinLink.js.map +1 -0
- package/dist/client/types/chat/bsky/group/defs.d.ts +35 -0
- package/dist/client/types/chat/bsky/group/defs.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/group/defs.js +34 -0
- package/dist/client/types/chat/bsky/group/defs.js.map +1 -0
- package/dist/client/types/chat/bsky/group/disableJoinLink.d.ts +34 -0
- package/dist/client/types/chat/bsky/group/disableJoinLink.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/group/disableJoinLink.js +42 -0
- package/dist/client/types/chat/bsky/group/disableJoinLink.js.map +1 -0
- package/dist/client/types/chat/bsky/group/editGroup.d.ts +35 -0
- package/dist/client/types/chat/bsky/group/editGroup.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/group/editGroup.js +42 -0
- package/dist/client/types/chat/bsky/group/editGroup.js.map +1 -0
- package/dist/client/types/chat/bsky/group/editJoinLink.d.ts +36 -0
- package/dist/client/types/chat/bsky/group/editJoinLink.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/group/editJoinLink.js +42 -0
- package/dist/client/types/chat/bsky/group/editJoinLink.js.map +1 -0
- package/dist/client/types/chat/bsky/group/enableJoinLink.d.ts +37 -0
- package/dist/client/types/chat/bsky/group/enableJoinLink.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/group/enableJoinLink.js +50 -0
- package/dist/client/types/chat/bsky/group/enableJoinLink.js.map +1 -0
- package/dist/client/types/chat/bsky/group/getGroupPublicInfo.d.ts +26 -0
- package/dist/client/types/chat/bsky/group/getGroupPublicInfo.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/group/getGroupPublicInfo.js +26 -0
- package/dist/client/types/chat/bsky/group/getGroupPublicInfo.js.map +1 -0
- package/dist/client/types/chat/bsky/group/listJoinRequests.d.ts +32 -0
- package/dist/client/types/chat/bsky/group/listJoinRequests.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/group/listJoinRequests.js +34 -0
- package/dist/client/types/chat/bsky/group/listJoinRequests.js.map +1 -0
- package/dist/client/types/chat/bsky/group/rejectJoinRequest.d.ts +30 -0
- package/dist/client/types/chat/bsky/group/rejectJoinRequest.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/group/rejectJoinRequest.js +34 -0
- package/dist/client/types/chat/bsky/group/rejectJoinRequest.js.map +1 -0
- package/dist/client/types/chat/bsky/group/removeMembers.d.ts +32 -0
- package/dist/client/types/chat/bsky/group/removeMembers.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/group/removeMembers.js +34 -0
- package/dist/client/types/chat/bsky/group/removeMembers.js.map +1 -0
- package/dist/client/types/chat/bsky/group/requestJoin.d.ts +44 -0
- package/dist/client/types/chat/bsky/group/requestJoin.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/group/requestJoin.js +66 -0
- package/dist/client/types/chat/bsky/group/requestJoin.js.map +1 -0
- package/dist/client/types/chat/bsky/moderation/getMessageContext.d.ts +1 -1
- package/dist/client/types/chat/bsky/moderation/getMessageContext.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/moderation/getMessageContext.js.map +1 -1
- package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts +15 -0
- package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/moderation/subscribeModEvents.js +16 -0
- package/dist/client/types/chat/bsky/moderation/subscribeModEvents.js.map +1 -0
- package/dist/moderation/subjects/status.d.ts.map +1 -1
- package/dist/moderation/subjects/status.js +2 -0
- package/dist/moderation/subjects/status.js.map +1 -1
- package/package.json +4 -4
- package/src/client/index.ts +278 -51
- package/src/client/lexicons.ts +2064 -287
- package/src/client/types/app/bsky/embed/images.ts +1 -1
- package/src/client/types/chat/bsky/actor/declaration.ts +2 -0
- package/src/client/types/chat/bsky/actor/defs.ts +39 -0
- package/src/client/types/chat/bsky/convo/acceptConvo.ts +10 -0
- package/src/client/types/chat/bsky/convo/addReaction.ts +14 -0
- package/src/client/types/chat/bsky/convo/defs.ts +651 -2
- package/src/client/types/chat/bsky/convo/deleteMessageForSelf.ts +18 -0
- package/src/client/types/chat/bsky/convo/getConvo.ts +10 -0
- package/src/client/types/chat/bsky/convo/getConvoForMembers.ts +39 -0
- package/src/client/types/chat/bsky/convo/getLog.ts +17 -0
- package/src/client/types/chat/bsky/convo/getMessages.ts +11 -0
- package/src/client/types/chat/bsky/convo/leaveConvo.ts +17 -0
- package/src/client/types/chat/bsky/convo/listConvoRequests.ts +48 -0
- package/src/client/types/chat/bsky/convo/listConvos.ts +3 -0
- package/src/client/types/chat/bsky/convo/lockConvo.ts +68 -0
- package/src/client/types/chat/bsky/convo/muteConvo.ts +10 -0
- package/src/client/types/chat/bsky/convo/removeReaction.ts +14 -0
- package/src/client/types/chat/bsky/convo/sendMessage.ts +17 -0
- package/src/client/types/chat/bsky/convo/sendMessageBatch.ts +17 -0
- package/src/client/types/chat/bsky/convo/unlockConvo.ts +61 -0
- package/src/client/types/chat/bsky/convo/unmuteConvo.ts +10 -0
- package/src/client/types/chat/bsky/convo/updateRead.ts +10 -0
- package/src/client/types/chat/bsky/group/addMembers.ts +113 -0
- package/src/client/types/chat/bsky/group/approveJoinRequest.ts +69 -0
- package/src/client/types/chat/bsky/group/createGroup.ts +85 -0
- package/src/client/types/chat/bsky/group/createJoinLink.ts +71 -0
- package/src/client/types/chat/bsky/group/defs.ts +73 -0
- package/src/client/types/chat/bsky/group/disableJoinLink.ts +68 -0
- package/src/client/types/chat/bsky/group/editGroup.ts +69 -0
- package/src/client/types/chat/bsky/group/editJoinLink.ts +70 -0
- package/src/client/types/chat/bsky/group/enableJoinLink.ts +75 -0
- package/src/client/types/chat/bsky/group/getGroupPublicInfo.ts +51 -0
- package/src/client/types/chat/bsky/group/listJoinRequests.ts +61 -0
- package/src/client/types/chat/bsky/group/rejectJoinRequest.ts +59 -0
- package/src/client/types/chat/bsky/group/removeMembers.ts +62 -0
- package/src/client/types/chat/bsky/group/requestJoin.ts +90 -0
- package/src/client/types/chat/bsky/moderation/getMessageContext.ts +1 -0
- package/src/client/types/chat/bsky/moderation/subscribeModEvents.ts +38 -0
- package/src/moderation/subjects/status.ts +2 -0
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -12,11 +12,20 @@ import {
|
|
|
12
12
|
import type * as AppBskyRichtextFacet from '../../../app/bsky/richtext/facet.js'
|
|
13
13
|
import type * as AppBskyEmbedRecord from '../../../app/bsky/embed/record.js'
|
|
14
14
|
import type * as ChatBskyActorDefs from '../actor/defs.js'
|
|
15
|
+
import type * as ChatBskyGroupDefs from '../group/defs.js'
|
|
15
16
|
|
|
16
17
|
const is$typed = _is$typed,
|
|
17
18
|
validate = _validate
|
|
18
19
|
const id = 'chat.bsky.convo.defs'
|
|
19
20
|
|
|
21
|
+
export type ConvoKind = 'direct' | 'group' | (string & {})
|
|
22
|
+
export type ConvoLockStatus =
|
|
23
|
+
| 'unlocked'
|
|
24
|
+
| 'locked'
|
|
25
|
+
| 'locked-permanently'
|
|
26
|
+
| (string & {})
|
|
27
|
+
export type ConvoStatus = 'request' | 'accepted' | (string & {})
|
|
28
|
+
|
|
20
29
|
export interface MessageRef {
|
|
21
30
|
$type?: 'chat.bsky.convo.defs#messageRef'
|
|
22
31
|
did: string
|
|
@@ -76,6 +85,283 @@ export function validateMessageView<V>(v: V) {
|
|
|
76
85
|
return validate<MessageView & V>(v, id, hashMessageView)
|
|
77
86
|
}
|
|
78
87
|
|
|
88
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. */
|
|
89
|
+
export interface SystemMessageView {
|
|
90
|
+
$type?: 'chat.bsky.convo.defs#systemMessageView'
|
|
91
|
+
id: string
|
|
92
|
+
rev: string
|
|
93
|
+
sentAt: string
|
|
94
|
+
data:
|
|
95
|
+
| $Typed<SystemMessageDataAddMember>
|
|
96
|
+
| $Typed<SystemMessageDataRemoveMember>
|
|
97
|
+
| $Typed<SystemMessageDataMemberJoin>
|
|
98
|
+
| $Typed<SystemMessageDataMemberLeave>
|
|
99
|
+
| $Typed<SystemMessageDataLockConvo>
|
|
100
|
+
| $Typed<SystemMessageDataUnlockConvo>
|
|
101
|
+
| $Typed<SystemMessageDataLockConvoPermanently>
|
|
102
|
+
| $Typed<SystemMessageDataEditGroup>
|
|
103
|
+
| $Typed<SystemMessageDataCreateJoinLink>
|
|
104
|
+
| $Typed<SystemMessageDataEditJoinLink>
|
|
105
|
+
| $Typed<SystemMessageDataEnableJoinLink>
|
|
106
|
+
| $Typed<SystemMessageDataDisableJoinLink>
|
|
107
|
+
| { $type: string }
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
const hashSystemMessageView = 'systemMessageView'
|
|
111
|
+
|
|
112
|
+
export function isSystemMessageView<V>(v: V) {
|
|
113
|
+
return is$typed(v, id, hashSystemMessageView)
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function validateSystemMessageView<V>(v: V) {
|
|
117
|
+
return validate<SystemMessageView & V>(v, id, hashSystemMessageView)
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating a user was added to the group convo. */
|
|
121
|
+
export interface SystemMessageDataAddMember {
|
|
122
|
+
$type?: 'chat.bsky.convo.defs#systemMessageDataAddMember'
|
|
123
|
+
member: ChatBskyActorDefs.ProfileViewBasic
|
|
124
|
+
role: ChatBskyActorDefs.MemberRole
|
|
125
|
+
addedBy: ChatBskyActorDefs.ProfileViewBasic
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
const hashSystemMessageDataAddMember = 'systemMessageDataAddMember'
|
|
129
|
+
|
|
130
|
+
export function isSystemMessageDataAddMember<V>(v: V) {
|
|
131
|
+
return is$typed(v, id, hashSystemMessageDataAddMember)
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function validateSystemMessageDataAddMember<V>(v: V) {
|
|
135
|
+
return validate<SystemMessageDataAddMember & V>(
|
|
136
|
+
v,
|
|
137
|
+
id,
|
|
138
|
+
hashSystemMessageDataAddMember,
|
|
139
|
+
)
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating a user was removed from the group convo. */
|
|
143
|
+
export interface SystemMessageDataRemoveMember {
|
|
144
|
+
$type?: 'chat.bsky.convo.defs#systemMessageDataRemoveMember'
|
|
145
|
+
member: ChatBskyActorDefs.ProfileViewBasic
|
|
146
|
+
removedBy: ChatBskyActorDefs.ProfileViewBasic
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
const hashSystemMessageDataRemoveMember = 'systemMessageDataRemoveMember'
|
|
150
|
+
|
|
151
|
+
export function isSystemMessageDataRemoveMember<V>(v: V) {
|
|
152
|
+
return is$typed(v, id, hashSystemMessageDataRemoveMember)
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export function validateSystemMessageDataRemoveMember<V>(v: V) {
|
|
156
|
+
return validate<SystemMessageDataRemoveMember & V>(
|
|
157
|
+
v,
|
|
158
|
+
id,
|
|
159
|
+
hashSystemMessageDataRemoveMember,
|
|
160
|
+
)
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating a user joined the group convo via join link. */
|
|
164
|
+
export interface SystemMessageDataMemberJoin {
|
|
165
|
+
$type?: 'chat.bsky.convo.defs#systemMessageDataMemberJoin'
|
|
166
|
+
member: ChatBskyActorDefs.ProfileViewBasic
|
|
167
|
+
role: ChatBskyActorDefs.MemberRole
|
|
168
|
+
approvedBy?: ChatBskyActorDefs.ProfileViewBasic
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
const hashSystemMessageDataMemberJoin = 'systemMessageDataMemberJoin'
|
|
172
|
+
|
|
173
|
+
export function isSystemMessageDataMemberJoin<V>(v: V) {
|
|
174
|
+
return is$typed(v, id, hashSystemMessageDataMemberJoin)
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export function validateSystemMessageDataMemberJoin<V>(v: V) {
|
|
178
|
+
return validate<SystemMessageDataMemberJoin & V>(
|
|
179
|
+
v,
|
|
180
|
+
id,
|
|
181
|
+
hashSystemMessageDataMemberJoin,
|
|
182
|
+
)
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating a user voluntarily left the group convo. */
|
|
186
|
+
export interface SystemMessageDataMemberLeave {
|
|
187
|
+
$type?: 'chat.bsky.convo.defs#systemMessageDataMemberLeave'
|
|
188
|
+
member: ChatBskyActorDefs.ProfileViewBasic
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
const hashSystemMessageDataMemberLeave = 'systemMessageDataMemberLeave'
|
|
192
|
+
|
|
193
|
+
export function isSystemMessageDataMemberLeave<V>(v: V) {
|
|
194
|
+
return is$typed(v, id, hashSystemMessageDataMemberLeave)
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export function validateSystemMessageDataMemberLeave<V>(v: V) {
|
|
198
|
+
return validate<SystemMessageDataMemberLeave & V>(
|
|
199
|
+
v,
|
|
200
|
+
id,
|
|
201
|
+
hashSystemMessageDataMemberLeave,
|
|
202
|
+
)
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group convo was locked. */
|
|
206
|
+
export interface SystemMessageDataLockConvo {
|
|
207
|
+
$type?: 'chat.bsky.convo.defs#systemMessageDataLockConvo'
|
|
208
|
+
lockedBy: ChatBskyActorDefs.ProfileViewBasic
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
const hashSystemMessageDataLockConvo = 'systemMessageDataLockConvo'
|
|
212
|
+
|
|
213
|
+
export function isSystemMessageDataLockConvo<V>(v: V) {
|
|
214
|
+
return is$typed(v, id, hashSystemMessageDataLockConvo)
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export function validateSystemMessageDataLockConvo<V>(v: V) {
|
|
218
|
+
return validate<SystemMessageDataLockConvo & V>(
|
|
219
|
+
v,
|
|
220
|
+
id,
|
|
221
|
+
hashSystemMessageDataLockConvo,
|
|
222
|
+
)
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group convo was unlocked. */
|
|
226
|
+
export interface SystemMessageDataUnlockConvo {
|
|
227
|
+
$type?: 'chat.bsky.convo.defs#systemMessageDataUnlockConvo'
|
|
228
|
+
unlockedBy: ChatBskyActorDefs.ProfileViewBasic
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
const hashSystemMessageDataUnlockConvo = 'systemMessageDataUnlockConvo'
|
|
232
|
+
|
|
233
|
+
export function isSystemMessageDataUnlockConvo<V>(v: V) {
|
|
234
|
+
return is$typed(v, id, hashSystemMessageDataUnlockConvo)
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export function validateSystemMessageDataUnlockConvo<V>(v: V) {
|
|
238
|
+
return validate<SystemMessageDataUnlockConvo & V>(
|
|
239
|
+
v,
|
|
240
|
+
id,
|
|
241
|
+
hashSystemMessageDataUnlockConvo,
|
|
242
|
+
)
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group convo was locked permanently. */
|
|
246
|
+
export interface SystemMessageDataLockConvoPermanently {
|
|
247
|
+
$type?: 'chat.bsky.convo.defs#systemMessageDataLockConvoPermanently'
|
|
248
|
+
lockedBy: ChatBskyActorDefs.ProfileViewBasic
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
const hashSystemMessageDataLockConvoPermanently =
|
|
252
|
+
'systemMessageDataLockConvoPermanently'
|
|
253
|
+
|
|
254
|
+
export function isSystemMessageDataLockConvoPermanently<V>(v: V) {
|
|
255
|
+
return is$typed(v, id, hashSystemMessageDataLockConvoPermanently)
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export function validateSystemMessageDataLockConvoPermanently<V>(v: V) {
|
|
259
|
+
return validate<SystemMessageDataLockConvoPermanently & V>(
|
|
260
|
+
v,
|
|
261
|
+
id,
|
|
262
|
+
hashSystemMessageDataLockConvoPermanently,
|
|
263
|
+
)
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group info was edited. */
|
|
267
|
+
export interface SystemMessageDataEditGroup {
|
|
268
|
+
$type?: 'chat.bsky.convo.defs#systemMessageDataEditGroup'
|
|
269
|
+
/** Group name that was replaced. */
|
|
270
|
+
oldName?: string
|
|
271
|
+
/** Group name that replaced the old. */
|
|
272
|
+
newName?: string
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
const hashSystemMessageDataEditGroup = 'systemMessageDataEditGroup'
|
|
276
|
+
|
|
277
|
+
export function isSystemMessageDataEditGroup<V>(v: V) {
|
|
278
|
+
return is$typed(v, id, hashSystemMessageDataEditGroup)
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export function validateSystemMessageDataEditGroup<V>(v: V) {
|
|
282
|
+
return validate<SystemMessageDataEditGroup & V>(
|
|
283
|
+
v,
|
|
284
|
+
id,
|
|
285
|
+
hashSystemMessageDataEditGroup,
|
|
286
|
+
)
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group join link was created. */
|
|
290
|
+
export interface SystemMessageDataCreateJoinLink {
|
|
291
|
+
$type?: 'chat.bsky.convo.defs#systemMessageDataCreateJoinLink'
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
const hashSystemMessageDataCreateJoinLink = 'systemMessageDataCreateJoinLink'
|
|
295
|
+
|
|
296
|
+
export function isSystemMessageDataCreateJoinLink<V>(v: V) {
|
|
297
|
+
return is$typed(v, id, hashSystemMessageDataCreateJoinLink)
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
export function validateSystemMessageDataCreateJoinLink<V>(v: V) {
|
|
301
|
+
return validate<SystemMessageDataCreateJoinLink & V>(
|
|
302
|
+
v,
|
|
303
|
+
id,
|
|
304
|
+
hashSystemMessageDataCreateJoinLink,
|
|
305
|
+
)
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group join link was edited. */
|
|
309
|
+
export interface SystemMessageDataEditJoinLink {
|
|
310
|
+
$type?: 'chat.bsky.convo.defs#systemMessageDataEditJoinLink'
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
const hashSystemMessageDataEditJoinLink = 'systemMessageDataEditJoinLink'
|
|
314
|
+
|
|
315
|
+
export function isSystemMessageDataEditJoinLink<V>(v: V) {
|
|
316
|
+
return is$typed(v, id, hashSystemMessageDataEditJoinLink)
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export function validateSystemMessageDataEditJoinLink<V>(v: V) {
|
|
320
|
+
return validate<SystemMessageDataEditJoinLink & V>(
|
|
321
|
+
v,
|
|
322
|
+
id,
|
|
323
|
+
hashSystemMessageDataEditJoinLink,
|
|
324
|
+
)
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group join link was enabled. */
|
|
328
|
+
export interface SystemMessageDataEnableJoinLink {
|
|
329
|
+
$type?: 'chat.bsky.convo.defs#systemMessageDataEnableJoinLink'
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
const hashSystemMessageDataEnableJoinLink = 'systemMessageDataEnableJoinLink'
|
|
333
|
+
|
|
334
|
+
export function isSystemMessageDataEnableJoinLink<V>(v: V) {
|
|
335
|
+
return is$typed(v, id, hashSystemMessageDataEnableJoinLink)
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
export function validateSystemMessageDataEnableJoinLink<V>(v: V) {
|
|
339
|
+
return validate<SystemMessageDataEnableJoinLink & V>(
|
|
340
|
+
v,
|
|
341
|
+
id,
|
|
342
|
+
hashSystemMessageDataEnableJoinLink,
|
|
343
|
+
)
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. System message indicating the group join link was disabled. */
|
|
347
|
+
export interface SystemMessageDataDisableJoinLink {
|
|
348
|
+
$type?: 'chat.bsky.convo.defs#systemMessageDataDisableJoinLink'
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
const hashSystemMessageDataDisableJoinLink = 'systemMessageDataDisableJoinLink'
|
|
352
|
+
|
|
353
|
+
export function isSystemMessageDataDisableJoinLink<V>(v: V) {
|
|
354
|
+
return is$typed(v, id, hashSystemMessageDataDisableJoinLink)
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
export function validateSystemMessageDataDisableJoinLink<V>(v: V) {
|
|
358
|
+
return validate<SystemMessageDataDisableJoinLink & V>(
|
|
359
|
+
v,
|
|
360
|
+
id,
|
|
361
|
+
hashSystemMessageDataDisableJoinLink,
|
|
362
|
+
)
|
|
363
|
+
}
|
|
364
|
+
|
|
79
365
|
export interface DeletedMessageView {
|
|
80
366
|
$type?: 'chat.bsky.convo.defs#deletedMessageView'
|
|
81
367
|
id: string
|
|
@@ -165,11 +451,13 @@ export interface ConvoView {
|
|
|
165
451
|
lastMessage?:
|
|
166
452
|
| $Typed<MessageView>
|
|
167
453
|
| $Typed<DeletedMessageView>
|
|
454
|
+
| $Typed<SystemMessageView>
|
|
168
455
|
| { $type: string }
|
|
169
456
|
lastReaction?: $Typed<MessageAndReactionView> | { $type: string }
|
|
170
457
|
muted: boolean
|
|
171
|
-
status?:
|
|
458
|
+
status?: ConvoStatus
|
|
172
459
|
unreadCount: number
|
|
460
|
+
kind?: $Typed<DirectConvo> | $Typed<GroupConvo> | { $type: string }
|
|
173
461
|
}
|
|
174
462
|
|
|
175
463
|
const hashConvoView = 'convoView'
|
|
@@ -182,6 +470,41 @@ export function validateConvoView<V>(v: V) {
|
|
|
182
470
|
return validate<ConvoView & V>(v, id, hashConvoView)
|
|
183
471
|
}
|
|
184
472
|
|
|
473
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. */
|
|
474
|
+
export interface DirectConvo {
|
|
475
|
+
$type?: 'chat.bsky.convo.defs#directConvo'
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
const hashDirectConvo = 'directConvo'
|
|
479
|
+
|
|
480
|
+
export function isDirectConvo<V>(v: V) {
|
|
481
|
+
return is$typed(v, id, hashDirectConvo)
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
export function validateDirectConvo<V>(v: V) {
|
|
485
|
+
return validate<DirectConvo & V>(v, id, hashDirectConvo)
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. */
|
|
489
|
+
export interface GroupConvo {
|
|
490
|
+
$type?: 'chat.bsky.convo.defs#groupConvo'
|
|
491
|
+
/** The display name of the group conversation. */
|
|
492
|
+
name: string
|
|
493
|
+
joinLink?: ChatBskyGroupDefs.JoinLinkView
|
|
494
|
+
lockStatus: ConvoLockStatus
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
const hashGroupConvo = 'groupConvo'
|
|
498
|
+
|
|
499
|
+
export function isGroupConvo<V>(v: V) {
|
|
500
|
+
return is$typed(v, id, hashGroupConvo)
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
export function validateGroupConvo<V>(v: V) {
|
|
504
|
+
return validate<GroupConvo & V>(v, id, hashGroupConvo)
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
/** Event indicating a convo containing the viewer was started. Can be direct or group. When a member is added to a group convo, they also get this event. */
|
|
185
508
|
export interface LogBeginConvo {
|
|
186
509
|
$type?: 'chat.bsky.convo.defs#logBeginConvo'
|
|
187
510
|
rev: string
|
|
@@ -198,6 +521,7 @@ export function validateLogBeginConvo<V>(v: V) {
|
|
|
198
521
|
return validate<LogBeginConvo & V>(v, id, hashLogBeginConvo)
|
|
199
522
|
}
|
|
200
523
|
|
|
524
|
+
/** Event indicating the viewer accepted a convo, and it can be moved out of the request inbox. Can be direct or group. */
|
|
201
525
|
export interface LogAcceptConvo {
|
|
202
526
|
$type?: 'chat.bsky.convo.defs#logAcceptConvo'
|
|
203
527
|
rev: string
|
|
@@ -214,6 +538,7 @@ export function validateLogAcceptConvo<V>(v: V) {
|
|
|
214
538
|
return validate<LogAcceptConvo & V>(v, id, hashLogAcceptConvo)
|
|
215
539
|
}
|
|
216
540
|
|
|
541
|
+
/** Event indicating the viewer left a convo. Can be direct or group. */
|
|
217
542
|
export interface LogLeaveConvo {
|
|
218
543
|
$type?: 'chat.bsky.convo.defs#logLeaveConvo'
|
|
219
544
|
rev: string
|
|
@@ -230,6 +555,7 @@ export function validateLogLeaveConvo<V>(v: V) {
|
|
|
230
555
|
return validate<LogLeaveConvo & V>(v, id, hashLogLeaveConvo)
|
|
231
556
|
}
|
|
232
557
|
|
|
558
|
+
/** Event indicating the viewer muted a convo. Can be direct or group. */
|
|
233
559
|
export interface LogMuteConvo {
|
|
234
560
|
$type?: 'chat.bsky.convo.defs#logMuteConvo'
|
|
235
561
|
rev: string
|
|
@@ -246,6 +572,7 @@ export function validateLogMuteConvo<V>(v: V) {
|
|
|
246
572
|
return validate<LogMuteConvo & V>(v, id, hashLogMuteConvo)
|
|
247
573
|
}
|
|
248
574
|
|
|
575
|
+
/** Event indicating the viewer unmuted a convo. Can be direct or group. */
|
|
249
576
|
export interface LogUnmuteConvo {
|
|
250
577
|
$type?: 'chat.bsky.convo.defs#logUnmuteConvo'
|
|
251
578
|
rev: string
|
|
@@ -262,6 +589,7 @@ export function validateLogUnmuteConvo<V>(v: V) {
|
|
|
262
589
|
return validate<LogUnmuteConvo & V>(v, id, hashLogUnmuteConvo)
|
|
263
590
|
}
|
|
264
591
|
|
|
592
|
+
/** Event indicating a user-originated message was created. Is not emitted for system messages. */
|
|
265
593
|
export interface LogCreateMessage {
|
|
266
594
|
$type?: 'chat.bsky.convo.defs#logCreateMessage'
|
|
267
595
|
rev: string
|
|
@@ -279,6 +607,7 @@ export function validateLogCreateMessage<V>(v: V) {
|
|
|
279
607
|
return validate<LogCreateMessage & V>(v, id, hashLogCreateMessage)
|
|
280
608
|
}
|
|
281
609
|
|
|
610
|
+
/** Event indicating a user-originated message was deleted. Is not emitted for system messages. */
|
|
282
611
|
export interface LogDeleteMessage {
|
|
283
612
|
$type?: 'chat.bsky.convo.defs#logDeleteMessage'
|
|
284
613
|
rev: string
|
|
@@ -296,11 +625,16 @@ export function validateLogDeleteMessage<V>(v: V) {
|
|
|
296
625
|
return validate<LogDeleteMessage & V>(v, id, hashLogDeleteMessage)
|
|
297
626
|
}
|
|
298
627
|
|
|
628
|
+
/** DEPRECATED: use logReadConvo instead. Event indicating a convo was read up to a certain message. */
|
|
299
629
|
export interface LogReadMessage {
|
|
300
630
|
$type?: 'chat.bsky.convo.defs#logReadMessage'
|
|
301
631
|
rev: string
|
|
302
632
|
convoId: string
|
|
303
|
-
message:
|
|
633
|
+
message:
|
|
634
|
+
| $Typed<MessageView>
|
|
635
|
+
| $Typed<DeletedMessageView>
|
|
636
|
+
| $Typed<SystemMessageView>
|
|
637
|
+
| { $type: string }
|
|
304
638
|
}
|
|
305
639
|
|
|
306
640
|
const hashLogReadMessage = 'logReadMessage'
|
|
@@ -313,6 +647,7 @@ export function validateLogReadMessage<V>(v: V) {
|
|
|
313
647
|
return validate<LogReadMessage & V>(v, id, hashLogReadMessage)
|
|
314
648
|
}
|
|
315
649
|
|
|
650
|
+
/** Event indicating a reaction was added to a message. */
|
|
316
651
|
export interface LogAddReaction {
|
|
317
652
|
$type?: 'chat.bsky.convo.defs#logAddReaction'
|
|
318
653
|
rev: string
|
|
@@ -331,6 +666,7 @@ export function validateLogAddReaction<V>(v: V) {
|
|
|
331
666
|
return validate<LogAddReaction & V>(v, id, hashLogAddReaction)
|
|
332
667
|
}
|
|
333
668
|
|
|
669
|
+
/** Event indicating a reaction was removed from a message. */
|
|
334
670
|
export interface LogRemoveReaction {
|
|
335
671
|
$type?: 'chat.bsky.convo.defs#logRemoveReaction'
|
|
336
672
|
rev: string
|
|
@@ -348,3 +684,316 @@ export function isLogRemoveReaction<V>(v: V) {
|
|
|
348
684
|
export function validateLogRemoveReaction<V>(v: V) {
|
|
349
685
|
return validate<LogRemoveReaction & V>(v, id, hashLogRemoveReaction)
|
|
350
686
|
}
|
|
687
|
+
|
|
688
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a convo was read up to a certain message. */
|
|
689
|
+
export interface LogReadConvo {
|
|
690
|
+
$type?: 'chat.bsky.convo.defs#logReadConvo'
|
|
691
|
+
rev: string
|
|
692
|
+
convoId: string
|
|
693
|
+
message:
|
|
694
|
+
| $Typed<MessageView>
|
|
695
|
+
| $Typed<DeletedMessageView>
|
|
696
|
+
| $Typed<SystemMessageView>
|
|
697
|
+
| { $type: string }
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
const hashLogReadConvo = 'logReadConvo'
|
|
701
|
+
|
|
702
|
+
export function isLogReadConvo<V>(v: V) {
|
|
703
|
+
return is$typed(v, id, hashLogReadConvo)
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
export function validateLogReadConvo<V>(v: V) {
|
|
707
|
+
return validate<LogReadConvo & V>(v, id, hashLogReadConvo)
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a member was added to a group convo. The member who was added gets a logBeginConvo (to create the convo) but also a logAddMember (to show the system message as the first message the user sees). */
|
|
711
|
+
export interface LogAddMember {
|
|
712
|
+
$type?: 'chat.bsky.convo.defs#logAddMember'
|
|
713
|
+
rev: string
|
|
714
|
+
convoId: string
|
|
715
|
+
message: SystemMessageDataAddMember
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
const hashLogAddMember = 'logAddMember'
|
|
719
|
+
|
|
720
|
+
export function isLogAddMember<V>(v: V) {
|
|
721
|
+
return is$typed(v, id, hashLogAddMember)
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
export function validateLogAddMember<V>(v: V) {
|
|
725
|
+
return validate<LogAddMember & V>(v, id, hashLogAddMember)
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a member was removed from a group convo. The member who was removed gets a logLeaveConvo (to leave the convo) but not a logRemoveMember (because they already left, so can't see the system message). */
|
|
729
|
+
export interface LogRemoveMember {
|
|
730
|
+
$type?: 'chat.bsky.convo.defs#logRemoveMember'
|
|
731
|
+
rev: string
|
|
732
|
+
convoId: string
|
|
733
|
+
message: SystemMessageDataRemoveMember
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
const hashLogRemoveMember = 'logRemoveMember'
|
|
737
|
+
|
|
738
|
+
export function isLogRemoveMember<V>(v: V) {
|
|
739
|
+
return is$typed(v, id, hashLogRemoveMember)
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
export function validateLogRemoveMember<V>(v: V) {
|
|
743
|
+
return validate<LogRemoveMember & V>(v, id, hashLogRemoveMember)
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a member joined a group convo via join link. The member who was added gets a logBeginConvo (to create the convo) but also a logMemberJoin (to show the system message as the first message the user sees). */
|
|
747
|
+
export interface LogMemberJoin {
|
|
748
|
+
$type?: 'chat.bsky.convo.defs#logMemberJoin'
|
|
749
|
+
rev: string
|
|
750
|
+
convoId: string
|
|
751
|
+
message: SystemMessageDataMemberJoin
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
const hashLogMemberJoin = 'logMemberJoin'
|
|
755
|
+
|
|
756
|
+
export function isLogMemberJoin<V>(v: V) {
|
|
757
|
+
return is$typed(v, id, hashLogMemberJoin)
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
export function validateLogMemberJoin<V>(v: V) {
|
|
761
|
+
return validate<LogMemberJoin & V>(v, id, hashLogMemberJoin)
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a member voluntarily left a group convo. The member who was removed gets a logLeaveConvo (to leave the convo) but not a logMemberLeave (because they already left, so can't see the system message). */
|
|
765
|
+
export interface LogMemberLeave {
|
|
766
|
+
$type?: 'chat.bsky.convo.defs#logMemberLeave'
|
|
767
|
+
rev: string
|
|
768
|
+
convoId: string
|
|
769
|
+
message: SystemMessageDataMemberLeave
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
const hashLogMemberLeave = 'logMemberLeave'
|
|
773
|
+
|
|
774
|
+
export function isLogMemberLeave<V>(v: V) {
|
|
775
|
+
return is$typed(v, id, hashLogMemberLeave)
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
export function validateLogMemberLeave<V>(v: V) {
|
|
779
|
+
return validate<LogMemberLeave & V>(v, id, hashLogMemberLeave)
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was locked. */
|
|
783
|
+
export interface LogLockConvo {
|
|
784
|
+
$type?: 'chat.bsky.convo.defs#logLockConvo'
|
|
785
|
+
rev: string
|
|
786
|
+
convoId: string
|
|
787
|
+
message: SystemMessageDataLockConvo
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
const hashLogLockConvo = 'logLockConvo'
|
|
791
|
+
|
|
792
|
+
export function isLogLockConvo<V>(v: V) {
|
|
793
|
+
return is$typed(v, id, hashLogLockConvo)
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
export function validateLogLockConvo<V>(v: V) {
|
|
797
|
+
return validate<LogLockConvo & V>(v, id, hashLogLockConvo)
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was unlocked. */
|
|
801
|
+
export interface LogUnlockConvo {
|
|
802
|
+
$type?: 'chat.bsky.convo.defs#logUnlockConvo'
|
|
803
|
+
rev: string
|
|
804
|
+
convoId: string
|
|
805
|
+
message: SystemMessageDataUnlockConvo
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
const hashLogUnlockConvo = 'logUnlockConvo'
|
|
809
|
+
|
|
810
|
+
export function isLogUnlockConvo<V>(v: V) {
|
|
811
|
+
return is$typed(v, id, hashLogUnlockConvo)
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
export function validateLogUnlockConvo<V>(v: V) {
|
|
815
|
+
return validate<LogUnlockConvo & V>(v, id, hashLogUnlockConvo)
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was locked permanently. */
|
|
819
|
+
export interface LogLockConvoPermanently {
|
|
820
|
+
$type?: 'chat.bsky.convo.defs#logLockConvoPermanently'
|
|
821
|
+
rev: string
|
|
822
|
+
convoId: string
|
|
823
|
+
message: SystemMessageDataLockConvoPermanently
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
const hashLogLockConvoPermanently = 'logLockConvoPermanently'
|
|
827
|
+
|
|
828
|
+
export function isLogLockConvoPermanently<V>(v: V) {
|
|
829
|
+
return is$typed(v, id, hashLogLockConvoPermanently)
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
export function validateLogLockConvoPermanently<V>(v: V) {
|
|
833
|
+
return validate<LogLockConvoPermanently & V>(
|
|
834
|
+
v,
|
|
835
|
+
id,
|
|
836
|
+
hashLogLockConvoPermanently,
|
|
837
|
+
)
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating info about group convo was edited. */
|
|
841
|
+
export interface LogEditGroup {
|
|
842
|
+
$type?: 'chat.bsky.convo.defs#logEditGroup'
|
|
843
|
+
rev: string
|
|
844
|
+
convoId: string
|
|
845
|
+
message: SystemMessageDataEditGroup
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
const hashLogEditGroup = 'logEditGroup'
|
|
849
|
+
|
|
850
|
+
export function isLogEditGroup<V>(v: V) {
|
|
851
|
+
return is$typed(v, id, hashLogEditGroup)
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
export function validateLogEditGroup<V>(v: V) {
|
|
855
|
+
return validate<LogEditGroup & V>(v, id, hashLogEditGroup)
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join link was created for a group convo. */
|
|
859
|
+
export interface LogCreateJoinLink {
|
|
860
|
+
$type?: 'chat.bsky.convo.defs#logCreateJoinLink'
|
|
861
|
+
rev: string
|
|
862
|
+
convoId: string
|
|
863
|
+
message: SystemMessageDataCreateJoinLink
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
const hashLogCreateJoinLink = 'logCreateJoinLink'
|
|
867
|
+
|
|
868
|
+
export function isLogCreateJoinLink<V>(v: V) {
|
|
869
|
+
return is$typed(v, id, hashLogCreateJoinLink)
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
export function validateLogCreateJoinLink<V>(v: V) {
|
|
873
|
+
return validate<LogCreateJoinLink & V>(v, id, hashLogCreateJoinLink)
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a settings about a join link for a group convo were edited. */
|
|
877
|
+
export interface LogEditJoinLink {
|
|
878
|
+
$type?: 'chat.bsky.convo.defs#logEditJoinLink'
|
|
879
|
+
rev: string
|
|
880
|
+
convoId: string
|
|
881
|
+
message: SystemMessageDataEditJoinLink
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
const hashLogEditJoinLink = 'logEditJoinLink'
|
|
885
|
+
|
|
886
|
+
export function isLogEditJoinLink<V>(v: V) {
|
|
887
|
+
return is$typed(v, id, hashLogEditJoinLink)
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
export function validateLogEditJoinLink<V>(v: V) {
|
|
891
|
+
return validate<LogEditJoinLink & V>(v, id, hashLogEditJoinLink)
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join link was enabled for a group convo. */
|
|
895
|
+
export interface LogEnableJoinLink {
|
|
896
|
+
$type?: 'chat.bsky.convo.defs#logEnableJoinLink'
|
|
897
|
+
rev: string
|
|
898
|
+
convoId: string
|
|
899
|
+
message: SystemMessageDataEnableJoinLink
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
const hashLogEnableJoinLink = 'logEnableJoinLink'
|
|
903
|
+
|
|
904
|
+
export function isLogEnableJoinLink<V>(v: V) {
|
|
905
|
+
return is$typed(v, id, hashLogEnableJoinLink)
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
export function validateLogEnableJoinLink<V>(v: V) {
|
|
909
|
+
return validate<LogEnableJoinLink & V>(v, id, hashLogEnableJoinLink)
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join link was disabled for a group convo. */
|
|
913
|
+
export interface LogDisableJoinLink {
|
|
914
|
+
$type?: 'chat.bsky.convo.defs#logDisableJoinLink'
|
|
915
|
+
rev: string
|
|
916
|
+
convoId: string
|
|
917
|
+
message: SystemMessageDataDisableJoinLink
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
const hashLogDisableJoinLink = 'logDisableJoinLink'
|
|
921
|
+
|
|
922
|
+
export function isLogDisableJoinLink<V>(v: V) {
|
|
923
|
+
return is$typed(v, id, hashLogDisableJoinLink)
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
export function validateLogDisableJoinLink<V>(v: V) {
|
|
927
|
+
return validate<LogDisableJoinLink & V>(v, id, hashLogDisableJoinLink)
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join request was made to a group the viewer owns. Only the owner gets this. */
|
|
931
|
+
export interface LogIncomingJoinRequest {
|
|
932
|
+
$type?: 'chat.bsky.convo.defs#logIncomingJoinRequest'
|
|
933
|
+
rev: string
|
|
934
|
+
convoId: string
|
|
935
|
+
member: ChatBskyActorDefs.ProfileViewBasic
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
const hashLogIncomingJoinRequest = 'logIncomingJoinRequest'
|
|
939
|
+
|
|
940
|
+
export function isLogIncomingJoinRequest<V>(v: V) {
|
|
941
|
+
return is$typed(v, id, hashLogIncomingJoinRequest)
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
export function validateLogIncomingJoinRequest<V>(v: V) {
|
|
945
|
+
return validate<LogIncomingJoinRequest & V>(v, id, hashLogIncomingJoinRequest)
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join request was approved by the viewer. Only the owner gets this. The approved member gets a logBeginConvo. */
|
|
949
|
+
export interface LogApproveJoinRequest {
|
|
950
|
+
$type?: 'chat.bsky.convo.defs#logApproveJoinRequest'
|
|
951
|
+
rev: string
|
|
952
|
+
convoId: string
|
|
953
|
+
member: ChatBskyActorDefs.ProfileViewBasic
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
const hashLogApproveJoinRequest = 'logApproveJoinRequest'
|
|
957
|
+
|
|
958
|
+
export function isLogApproveJoinRequest<V>(v: V) {
|
|
959
|
+
return is$typed(v, id, hashLogApproveJoinRequest)
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
export function validateLogApproveJoinRequest<V>(v: V) {
|
|
963
|
+
return validate<LogApproveJoinRequest & V>(v, id, hashLogApproveJoinRequest)
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join request was rejected by the viewer. Only the owner gets this. */
|
|
967
|
+
export interface LogRejectJoinRequest {
|
|
968
|
+
$type?: 'chat.bsky.convo.defs#logRejectJoinRequest'
|
|
969
|
+
rev: string
|
|
970
|
+
convoId: string
|
|
971
|
+
member: ChatBskyActorDefs.ProfileViewBasic
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
const hashLogRejectJoinRequest = 'logRejectJoinRequest'
|
|
975
|
+
|
|
976
|
+
export function isLogRejectJoinRequest<V>(v: V) {
|
|
977
|
+
return is$typed(v, id, hashLogRejectJoinRequest)
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
export function validateLogRejectJoinRequest<V>(v: V) {
|
|
981
|
+
return validate<LogRejectJoinRequest & V>(v, id, hashLogRejectJoinRequest)
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a join request was made by the viewer. */
|
|
985
|
+
export interface LogOutgoingJoinRequest {
|
|
986
|
+
$type?: 'chat.bsky.convo.defs#logOutgoingJoinRequest'
|
|
987
|
+
rev: string
|
|
988
|
+
convoId: string
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
const hashLogOutgoingJoinRequest = 'logOutgoingJoinRequest'
|
|
992
|
+
|
|
993
|
+
export function isLogOutgoingJoinRequest<V>(v: V) {
|
|
994
|
+
return is$typed(v, id, hashLogOutgoingJoinRequest)
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
export function validateLogOutgoingJoinRequest<V>(v: V) {
|
|
998
|
+
return validate<LogOutgoingJoinRequest & V>(v, id, hashLogOutgoingJoinRequest)
|
|
999
|
+
}
|