@atproto/api 0.19.10 → 0.19.11
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 +6 -0
- package/dist/client/lexicons.d.ts +198 -38
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +99 -18
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/chat/bsky/actor/defs.d.ts +8 -2
- package/dist/client/types/chat/bsky/actor/defs.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/actor/defs.js +9 -0
- package/dist/client/types/chat/bsky/actor/defs.js.map +1 -1
- package/dist/client/types/chat/bsky/convo/defs.d.ts +30 -10
- package/dist/client/types/chat/bsky/convo/defs.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/convo/defs.js +9 -0
- package/dist/client/types/chat/bsky/convo/defs.js.map +1 -1
- package/dist/client/types/chat/bsky/convo/getMessages.d.ts +3 -0
- package/dist/client/types/chat/bsky/convo/getMessages.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/convo/getMessages.js.map +1 -1
- package/package.json +3 -3
- package/src/client/lexicons.ts +101 -18
- package/src/client/types/chat/bsky/actor/defs.ts +17 -1
- package/src/client/types/chat/bsky/convo/defs.ts +43 -10
- package/src/client/types/chat/bsky/convo/getMessages.ts +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/api",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.11",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Client library for atproto and Bluesky",
|
|
6
6
|
"keywords": [
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"tlds": "^1.234.0",
|
|
23
23
|
"zod": "^3.23.8",
|
|
24
24
|
"@atproto/common-web": "^0.4.21",
|
|
25
|
-
"@atproto/lexicon": "^0.6.2",
|
|
26
25
|
"@atproto/syntax": "^0.5.4",
|
|
27
|
-
"@atproto/xrpc": "^0.7.7"
|
|
26
|
+
"@atproto/xrpc": "^0.7.7",
|
|
27
|
+
"@atproto/lexicon": "^0.6.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@jest/globals": "^28.1.3",
|
package/src/client/lexicons.ts
CHANGED
|
@@ -9739,6 +9739,7 @@ export const schemaDict = {
|
|
|
9739
9739
|
refs: [
|
|
9740
9740
|
'lex:chat.bsky.actor.defs#directConvoMember',
|
|
9741
9741
|
'lex:chat.bsky.actor.defs#groupConvoMember',
|
|
9742
|
+
'lex:chat.bsky.actor.defs#pastGroupConvoMember',
|
|
9742
9743
|
],
|
|
9743
9744
|
},
|
|
9744
9745
|
},
|
|
@@ -9751,7 +9752,7 @@ export const schemaDict = {
|
|
|
9751
9752
|
},
|
|
9752
9753
|
groupConvoMember: {
|
|
9753
9754
|
description:
|
|
9754
|
-
'[NOTE: This is under active development and should be considered unstable while this note is here].',
|
|
9755
|
+
'[NOTE: This is under active development and should be considered unstable while this note is here]. A current group convo member.',
|
|
9755
9756
|
type: 'object',
|
|
9756
9757
|
required: ['role'],
|
|
9757
9758
|
properties: {
|
|
@@ -9769,6 +9770,13 @@ export const schemaDict = {
|
|
|
9769
9770
|
},
|
|
9770
9771
|
},
|
|
9771
9772
|
},
|
|
9773
|
+
pastGroupConvoMember: {
|
|
9774
|
+
description:
|
|
9775
|
+
'[NOTE: This is under active development and should be considered unstable while this note is here]. A past group convo member.',
|
|
9776
|
+
type: 'object',
|
|
9777
|
+
required: [],
|
|
9778
|
+
properties: {},
|
|
9779
|
+
},
|
|
9772
9780
|
},
|
|
9773
9781
|
},
|
|
9774
9782
|
ChatBskyActorDeleteAccount: {
|
|
@@ -10012,6 +10020,16 @@ export const schemaDict = {
|
|
|
10012
10020
|
},
|
|
10013
10021
|
},
|
|
10014
10022
|
},
|
|
10023
|
+
systemMessageReferredUser: {
|
|
10024
|
+
type: 'object',
|
|
10025
|
+
required: ['did'],
|
|
10026
|
+
properties: {
|
|
10027
|
+
did: {
|
|
10028
|
+
type: 'string',
|
|
10029
|
+
format: 'did',
|
|
10030
|
+
},
|
|
10031
|
+
},
|
|
10032
|
+
},
|
|
10015
10033
|
systemMessageView: {
|
|
10016
10034
|
description:
|
|
10017
10035
|
'[NOTE: This is under active development and should be considered unstable while this note is here].',
|
|
@@ -10056,7 +10074,7 @@ export const schemaDict = {
|
|
|
10056
10074
|
member: {
|
|
10057
10075
|
description: 'Current view of the member who was added.',
|
|
10058
10076
|
type: 'ref',
|
|
10059
|
-
ref: 'lex:chat.bsky.
|
|
10077
|
+
ref: 'lex:chat.bsky.convo.defs#systemMessageReferredUser',
|
|
10060
10078
|
},
|
|
10061
10079
|
role: {
|
|
10062
10080
|
description:
|
|
@@ -10066,7 +10084,7 @@ export const schemaDict = {
|
|
|
10066
10084
|
},
|
|
10067
10085
|
addedBy: {
|
|
10068
10086
|
type: 'ref',
|
|
10069
|
-
ref: 'lex:chat.bsky.
|
|
10087
|
+
ref: 'lex:chat.bsky.convo.defs#systemMessageReferredUser',
|
|
10070
10088
|
},
|
|
10071
10089
|
},
|
|
10072
10090
|
},
|
|
@@ -10079,11 +10097,11 @@ export const schemaDict = {
|
|
|
10079
10097
|
member: {
|
|
10080
10098
|
description: 'Current view of the member who was removed.',
|
|
10081
10099
|
type: 'ref',
|
|
10082
|
-
ref: 'lex:chat.bsky.
|
|
10100
|
+
ref: 'lex:chat.bsky.convo.defs#systemMessageReferredUser',
|
|
10083
10101
|
},
|
|
10084
10102
|
removedBy: {
|
|
10085
10103
|
type: 'ref',
|
|
10086
|
-
ref: 'lex:chat.bsky.
|
|
10104
|
+
ref: 'lex:chat.bsky.convo.defs#systemMessageReferredUser',
|
|
10087
10105
|
},
|
|
10088
10106
|
},
|
|
10089
10107
|
},
|
|
@@ -10096,7 +10114,7 @@ export const schemaDict = {
|
|
|
10096
10114
|
member: {
|
|
10097
10115
|
description: 'Current view of the member who joined.',
|
|
10098
10116
|
type: 'ref',
|
|
10099
|
-
ref: 'lex:chat.bsky.
|
|
10117
|
+
ref: 'lex:chat.bsky.convo.defs#systemMessageReferredUser',
|
|
10100
10118
|
},
|
|
10101
10119
|
role: {
|
|
10102
10120
|
description:
|
|
@@ -10108,7 +10126,7 @@ export const schemaDict = {
|
|
|
10108
10126
|
description:
|
|
10109
10127
|
'If join link was configured to require approval, this will be set to who approved the request. Undefined if approval was not required.',
|
|
10110
10128
|
type: 'ref',
|
|
10111
|
-
ref: 'lex:chat.bsky.
|
|
10129
|
+
ref: 'lex:chat.bsky.convo.defs#systemMessageReferredUser',
|
|
10112
10130
|
},
|
|
10113
10131
|
},
|
|
10114
10132
|
},
|
|
@@ -10121,7 +10139,7 @@ export const schemaDict = {
|
|
|
10121
10139
|
member: {
|
|
10122
10140
|
description: 'Current view of the member who left the group.',
|
|
10123
10141
|
type: 'ref',
|
|
10124
|
-
ref: 'lex:chat.bsky.
|
|
10142
|
+
ref: 'lex:chat.bsky.convo.defs#systemMessageReferredUser',
|
|
10125
10143
|
},
|
|
10126
10144
|
},
|
|
10127
10145
|
},
|
|
@@ -10134,7 +10152,7 @@ export const schemaDict = {
|
|
|
10134
10152
|
lockedBy: {
|
|
10135
10153
|
description: 'Current view of the member who locked the group.',
|
|
10136
10154
|
type: 'ref',
|
|
10137
|
-
ref: 'lex:chat.bsky.
|
|
10155
|
+
ref: 'lex:chat.bsky.convo.defs#systemMessageReferredUser',
|
|
10138
10156
|
},
|
|
10139
10157
|
},
|
|
10140
10158
|
},
|
|
@@ -10147,7 +10165,7 @@ export const schemaDict = {
|
|
|
10147
10165
|
unlockedBy: {
|
|
10148
10166
|
description: 'Current view of the member who unlocked the group.',
|
|
10149
10167
|
type: 'ref',
|
|
10150
|
-
ref: 'lex:chat.bsky.
|
|
10168
|
+
ref: 'lex:chat.bsky.convo.defs#systemMessageReferredUser',
|
|
10151
10169
|
},
|
|
10152
10170
|
},
|
|
10153
10171
|
},
|
|
@@ -10160,7 +10178,7 @@ export const schemaDict = {
|
|
|
10160
10178
|
lockedBy: {
|
|
10161
10179
|
description: 'Current view of the member who locked the group.',
|
|
10162
10180
|
type: 'ref',
|
|
10163
|
-
ref: 'lex:chat.bsky.
|
|
10181
|
+
ref: 'lex:chat.bsky.convo.defs#systemMessageReferredUser',
|
|
10164
10182
|
},
|
|
10165
10183
|
},
|
|
10166
10184
|
},
|
|
@@ -10570,7 +10588,7 @@ export const schemaDict = {
|
|
|
10570
10588
|
description:
|
|
10571
10589
|
'[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).',
|
|
10572
10590
|
type: 'object',
|
|
10573
|
-
required: ['rev', 'convoId', 'message'],
|
|
10591
|
+
required: ['rev', 'convoId', 'message', 'relatedProfiles'],
|
|
10574
10592
|
properties: {
|
|
10575
10593
|
rev: {
|
|
10576
10594
|
type: 'string',
|
|
@@ -10584,13 +10602,21 @@ export const schemaDict = {
|
|
|
10584
10602
|
type: 'ref',
|
|
10585
10603
|
ref: 'lex:chat.bsky.convo.defs#systemMessageView',
|
|
10586
10604
|
},
|
|
10605
|
+
relatedProfiles: {
|
|
10606
|
+
description: 'Profiles referred in the system message.',
|
|
10607
|
+
type: 'array',
|
|
10608
|
+
items: {
|
|
10609
|
+
type: 'ref',
|
|
10610
|
+
ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
|
|
10611
|
+
},
|
|
10612
|
+
},
|
|
10587
10613
|
},
|
|
10588
10614
|
},
|
|
10589
10615
|
logRemoveMember: {
|
|
10590
10616
|
description:
|
|
10591
10617
|
"[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).",
|
|
10592
10618
|
type: 'object',
|
|
10593
|
-
required: ['rev', 'convoId', 'message'],
|
|
10619
|
+
required: ['rev', 'convoId', 'message', 'relatedProfiles'],
|
|
10594
10620
|
properties: {
|
|
10595
10621
|
rev: {
|
|
10596
10622
|
type: 'string',
|
|
@@ -10604,13 +10630,21 @@ export const schemaDict = {
|
|
|
10604
10630
|
type: 'ref',
|
|
10605
10631
|
ref: 'lex:chat.bsky.convo.defs#systemMessageView',
|
|
10606
10632
|
},
|
|
10633
|
+
relatedProfiles: {
|
|
10634
|
+
description: 'Profiles referred in the system message.',
|
|
10635
|
+
type: 'array',
|
|
10636
|
+
items: {
|
|
10637
|
+
type: 'ref',
|
|
10638
|
+
ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
|
|
10639
|
+
},
|
|
10640
|
+
},
|
|
10607
10641
|
},
|
|
10608
10642
|
},
|
|
10609
10643
|
logMemberJoin: {
|
|
10610
10644
|
description:
|
|
10611
10645
|
'[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).',
|
|
10612
10646
|
type: 'object',
|
|
10613
|
-
required: ['rev', 'convoId', 'message'],
|
|
10647
|
+
required: ['rev', 'convoId', 'message', 'relatedProfiles'],
|
|
10614
10648
|
properties: {
|
|
10615
10649
|
rev: {
|
|
10616
10650
|
type: 'string',
|
|
@@ -10624,13 +10658,21 @@ export const schemaDict = {
|
|
|
10624
10658
|
type: 'ref',
|
|
10625
10659
|
ref: 'lex:chat.bsky.convo.defs#systemMessageView',
|
|
10626
10660
|
},
|
|
10661
|
+
relatedProfiles: {
|
|
10662
|
+
description: 'Profiles referred in the system message.',
|
|
10663
|
+
type: 'array',
|
|
10664
|
+
items: {
|
|
10665
|
+
type: 'ref',
|
|
10666
|
+
ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
|
|
10667
|
+
},
|
|
10668
|
+
},
|
|
10627
10669
|
},
|
|
10628
10670
|
},
|
|
10629
10671
|
logMemberLeave: {
|
|
10630
10672
|
description:
|
|
10631
10673
|
"[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).",
|
|
10632
10674
|
type: 'object',
|
|
10633
|
-
required: ['rev', 'convoId', 'message'],
|
|
10675
|
+
required: ['rev', 'convoId', 'message', 'relatedProfiles'],
|
|
10634
10676
|
properties: {
|
|
10635
10677
|
rev: {
|
|
10636
10678
|
type: 'string',
|
|
@@ -10644,13 +10686,21 @@ export const schemaDict = {
|
|
|
10644
10686
|
type: 'ref',
|
|
10645
10687
|
ref: 'lex:chat.bsky.convo.defs#systemMessageView',
|
|
10646
10688
|
},
|
|
10689
|
+
relatedProfiles: {
|
|
10690
|
+
description: 'Profiles referred in the system message.',
|
|
10691
|
+
type: 'array',
|
|
10692
|
+
items: {
|
|
10693
|
+
type: 'ref',
|
|
10694
|
+
ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
|
|
10695
|
+
},
|
|
10696
|
+
},
|
|
10647
10697
|
},
|
|
10648
10698
|
},
|
|
10649
10699
|
logLockConvo: {
|
|
10650
10700
|
description:
|
|
10651
10701
|
'[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was locked.',
|
|
10652
10702
|
type: 'object',
|
|
10653
|
-
required: ['rev', 'convoId', 'message'],
|
|
10703
|
+
required: ['rev', 'convoId', 'message', 'relatedProfiles'],
|
|
10654
10704
|
properties: {
|
|
10655
10705
|
rev: {
|
|
10656
10706
|
type: 'string',
|
|
@@ -10664,13 +10714,21 @@ export const schemaDict = {
|
|
|
10664
10714
|
type: 'ref',
|
|
10665
10715
|
ref: 'lex:chat.bsky.convo.defs#systemMessageView',
|
|
10666
10716
|
},
|
|
10717
|
+
relatedProfiles: {
|
|
10718
|
+
description: 'Profiles referred in the system message.',
|
|
10719
|
+
type: 'array',
|
|
10720
|
+
items: {
|
|
10721
|
+
type: 'ref',
|
|
10722
|
+
ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
|
|
10723
|
+
},
|
|
10724
|
+
},
|
|
10667
10725
|
},
|
|
10668
10726
|
},
|
|
10669
10727
|
logUnlockConvo: {
|
|
10670
10728
|
description:
|
|
10671
10729
|
'[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was unlocked.',
|
|
10672
10730
|
type: 'object',
|
|
10673
|
-
required: ['rev', 'convoId', 'message'],
|
|
10731
|
+
required: ['rev', 'convoId', 'message', 'relatedProfiles'],
|
|
10674
10732
|
properties: {
|
|
10675
10733
|
rev: {
|
|
10676
10734
|
type: 'string',
|
|
@@ -10684,13 +10742,21 @@ export const schemaDict = {
|
|
|
10684
10742
|
type: 'ref',
|
|
10685
10743
|
ref: 'lex:chat.bsky.convo.defs#systemMessageView',
|
|
10686
10744
|
},
|
|
10745
|
+
relatedProfiles: {
|
|
10746
|
+
description: 'Profiles referred in the system message.',
|
|
10747
|
+
type: 'array',
|
|
10748
|
+
items: {
|
|
10749
|
+
type: 'ref',
|
|
10750
|
+
ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
|
|
10751
|
+
},
|
|
10752
|
+
},
|
|
10687
10753
|
},
|
|
10688
10754
|
},
|
|
10689
10755
|
logLockConvoPermanently: {
|
|
10690
10756
|
description:
|
|
10691
10757
|
'[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was locked permanently.',
|
|
10692
10758
|
type: 'object',
|
|
10693
|
-
required: ['rev', 'convoId', 'message'],
|
|
10759
|
+
required: ['rev', 'convoId', 'message', 'relatedProfiles'],
|
|
10694
10760
|
properties: {
|
|
10695
10761
|
rev: {
|
|
10696
10762
|
type: 'string',
|
|
@@ -10704,6 +10770,14 @@ export const schemaDict = {
|
|
|
10704
10770
|
type: 'ref',
|
|
10705
10771
|
ref: 'lex:chat.bsky.convo.defs#systemMessageView',
|
|
10706
10772
|
},
|
|
10773
|
+
relatedProfiles: {
|
|
10774
|
+
description: 'Profiles referred in the system message.',
|
|
10775
|
+
type: 'array',
|
|
10776
|
+
items: {
|
|
10777
|
+
type: 'ref',
|
|
10778
|
+
ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
|
|
10779
|
+
},
|
|
10780
|
+
},
|
|
10707
10781
|
},
|
|
10708
10782
|
},
|
|
10709
10783
|
logEditGroup: {
|
|
@@ -11224,6 +11298,15 @@ export const schemaDict = {
|
|
|
11224
11298
|
],
|
|
11225
11299
|
},
|
|
11226
11300
|
},
|
|
11301
|
+
relatedProfiles: {
|
|
11302
|
+
description:
|
|
11303
|
+
'Set of all members who authored or reacted to the returned messages. Members referred to by system messages are also included.',
|
|
11304
|
+
type: 'array',
|
|
11305
|
+
items: {
|
|
11306
|
+
type: 'ref',
|
|
11307
|
+
ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
|
|
11308
|
+
},
|
|
11309
|
+
},
|
|
11227
11310
|
},
|
|
11228
11311
|
},
|
|
11229
11312
|
},
|
|
@@ -34,6 +34,7 @@ export interface ProfileViewBasic {
|
|
|
34
34
|
kind?:
|
|
35
35
|
| $Typed<DirectConvoMember>
|
|
36
36
|
| $Typed<GroupConvoMember>
|
|
37
|
+
| $Typed<PastGroupConvoMember>
|
|
37
38
|
| { $type: string }
|
|
38
39
|
}
|
|
39
40
|
|
|
@@ -62,7 +63,7 @@ export function validateDirectConvoMember<V>(v: V) {
|
|
|
62
63
|
return validate<DirectConvoMember & V>(v, id, hashDirectConvoMember)
|
|
63
64
|
}
|
|
64
65
|
|
|
65
|
-
/** [NOTE: This is under active development and should be considered unstable while this note is here]. */
|
|
66
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. A current group convo member. */
|
|
66
67
|
export interface GroupConvoMember {
|
|
67
68
|
$type?: 'chat.bsky.actor.defs#groupConvoMember'
|
|
68
69
|
addedBy?: ProfileViewBasic
|
|
@@ -78,3 +79,18 @@ export function isGroupConvoMember<V>(v: V) {
|
|
|
78
79
|
export function validateGroupConvoMember<V>(v: V) {
|
|
79
80
|
return validate<GroupConvoMember & V>(v, id, hashGroupConvoMember)
|
|
80
81
|
}
|
|
82
|
+
|
|
83
|
+
/** [NOTE: This is under active development and should be considered unstable while this note is here]. A past group convo member. */
|
|
84
|
+
export interface PastGroupConvoMember {
|
|
85
|
+
$type?: 'chat.bsky.actor.defs#pastGroupConvoMember'
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const hashPastGroupConvoMember = 'pastGroupConvoMember'
|
|
89
|
+
|
|
90
|
+
export function isPastGroupConvoMember<V>(v: V) {
|
|
91
|
+
return is$typed(v, id, hashPastGroupConvoMember)
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function validatePastGroupConvoMember<V>(v: V) {
|
|
95
|
+
return validate<PastGroupConvoMember & V>(v, id, hashPastGroupConvoMember)
|
|
96
|
+
}
|
|
@@ -85,6 +85,25 @@ export function validateMessageView<V>(v: V) {
|
|
|
85
85
|
return validate<MessageView & V>(v, id, hashMessageView)
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
export interface SystemMessageReferredUser {
|
|
89
|
+
$type?: 'chat.bsky.convo.defs#systemMessageReferredUser'
|
|
90
|
+
did: string
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
const hashSystemMessageReferredUser = 'systemMessageReferredUser'
|
|
94
|
+
|
|
95
|
+
export function isSystemMessageReferredUser<V>(v: V) {
|
|
96
|
+
return is$typed(v, id, hashSystemMessageReferredUser)
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function validateSystemMessageReferredUser<V>(v: V) {
|
|
100
|
+
return validate<SystemMessageReferredUser & V>(
|
|
101
|
+
v,
|
|
102
|
+
id,
|
|
103
|
+
hashSystemMessageReferredUser,
|
|
104
|
+
)
|
|
105
|
+
}
|
|
106
|
+
|
|
88
107
|
/** [NOTE: This is under active development and should be considered unstable while this note is here]. */
|
|
89
108
|
export interface SystemMessageView {
|
|
90
109
|
$type?: 'chat.bsky.convo.defs#systemMessageView'
|
|
@@ -120,9 +139,9 @@ export function validateSystemMessageView<V>(v: V) {
|
|
|
120
139
|
/** [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
140
|
export interface SystemMessageDataAddMember {
|
|
122
141
|
$type?: 'chat.bsky.convo.defs#systemMessageDataAddMember'
|
|
123
|
-
member:
|
|
142
|
+
member: SystemMessageReferredUser
|
|
124
143
|
role: ChatBskyActorDefs.MemberRole
|
|
125
|
-
addedBy:
|
|
144
|
+
addedBy: SystemMessageReferredUser
|
|
126
145
|
}
|
|
127
146
|
|
|
128
147
|
const hashSystemMessageDataAddMember = 'systemMessageDataAddMember'
|
|
@@ -142,8 +161,8 @@ export function validateSystemMessageDataAddMember<V>(v: V) {
|
|
|
142
161
|
/** [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
162
|
export interface SystemMessageDataRemoveMember {
|
|
144
163
|
$type?: 'chat.bsky.convo.defs#systemMessageDataRemoveMember'
|
|
145
|
-
member:
|
|
146
|
-
removedBy:
|
|
164
|
+
member: SystemMessageReferredUser
|
|
165
|
+
removedBy: SystemMessageReferredUser
|
|
147
166
|
}
|
|
148
167
|
|
|
149
168
|
const hashSystemMessageDataRemoveMember = 'systemMessageDataRemoveMember'
|
|
@@ -163,9 +182,9 @@ export function validateSystemMessageDataRemoveMember<V>(v: V) {
|
|
|
163
182
|
/** [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
183
|
export interface SystemMessageDataMemberJoin {
|
|
165
184
|
$type?: 'chat.bsky.convo.defs#systemMessageDataMemberJoin'
|
|
166
|
-
member:
|
|
185
|
+
member: SystemMessageReferredUser
|
|
167
186
|
role: ChatBskyActorDefs.MemberRole
|
|
168
|
-
approvedBy?:
|
|
187
|
+
approvedBy?: SystemMessageReferredUser
|
|
169
188
|
}
|
|
170
189
|
|
|
171
190
|
const hashSystemMessageDataMemberJoin = 'systemMessageDataMemberJoin'
|
|
@@ -185,7 +204,7 @@ export function validateSystemMessageDataMemberJoin<V>(v: V) {
|
|
|
185
204
|
/** [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
205
|
export interface SystemMessageDataMemberLeave {
|
|
187
206
|
$type?: 'chat.bsky.convo.defs#systemMessageDataMemberLeave'
|
|
188
|
-
member:
|
|
207
|
+
member: SystemMessageReferredUser
|
|
189
208
|
}
|
|
190
209
|
|
|
191
210
|
const hashSystemMessageDataMemberLeave = 'systemMessageDataMemberLeave'
|
|
@@ -205,7 +224,7 @@ export function validateSystemMessageDataMemberLeave<V>(v: V) {
|
|
|
205
224
|
/** [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
225
|
export interface SystemMessageDataLockConvo {
|
|
207
226
|
$type?: 'chat.bsky.convo.defs#systemMessageDataLockConvo'
|
|
208
|
-
lockedBy:
|
|
227
|
+
lockedBy: SystemMessageReferredUser
|
|
209
228
|
}
|
|
210
229
|
|
|
211
230
|
const hashSystemMessageDataLockConvo = 'systemMessageDataLockConvo'
|
|
@@ -225,7 +244,7 @@ export function validateSystemMessageDataLockConvo<V>(v: V) {
|
|
|
225
244
|
/** [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
245
|
export interface SystemMessageDataUnlockConvo {
|
|
227
246
|
$type?: 'chat.bsky.convo.defs#systemMessageDataUnlockConvo'
|
|
228
|
-
unlockedBy:
|
|
247
|
+
unlockedBy: SystemMessageReferredUser
|
|
229
248
|
}
|
|
230
249
|
|
|
231
250
|
const hashSystemMessageDataUnlockConvo = 'systemMessageDataUnlockConvo'
|
|
@@ -245,7 +264,7 @@ export function validateSystemMessageDataUnlockConvo<V>(v: V) {
|
|
|
245
264
|
/** [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
265
|
export interface SystemMessageDataLockConvoPermanently {
|
|
247
266
|
$type?: 'chat.bsky.convo.defs#systemMessageDataLockConvoPermanently'
|
|
248
|
-
lockedBy:
|
|
267
|
+
lockedBy: SystemMessageReferredUser
|
|
249
268
|
}
|
|
250
269
|
|
|
251
270
|
const hashSystemMessageDataLockConvoPermanently =
|
|
@@ -716,6 +735,8 @@ export interface LogAddMember {
|
|
|
716
735
|
rev: string
|
|
717
736
|
convoId: string
|
|
718
737
|
message: SystemMessageView
|
|
738
|
+
/** Profiles referred in the system message. */
|
|
739
|
+
relatedProfiles: ChatBskyActorDefs.ProfileViewBasic[]
|
|
719
740
|
}
|
|
720
741
|
|
|
721
742
|
const hashLogAddMember = 'logAddMember'
|
|
@@ -734,6 +755,8 @@ export interface LogRemoveMember {
|
|
|
734
755
|
rev: string
|
|
735
756
|
convoId: string
|
|
736
757
|
message: SystemMessageView
|
|
758
|
+
/** Profiles referred in the system message. */
|
|
759
|
+
relatedProfiles: ChatBskyActorDefs.ProfileViewBasic[]
|
|
737
760
|
}
|
|
738
761
|
|
|
739
762
|
const hashLogRemoveMember = 'logRemoveMember'
|
|
@@ -752,6 +775,8 @@ export interface LogMemberJoin {
|
|
|
752
775
|
rev: string
|
|
753
776
|
convoId: string
|
|
754
777
|
message: SystemMessageView
|
|
778
|
+
/** Profiles referred in the system message. */
|
|
779
|
+
relatedProfiles: ChatBskyActorDefs.ProfileViewBasic[]
|
|
755
780
|
}
|
|
756
781
|
|
|
757
782
|
const hashLogMemberJoin = 'logMemberJoin'
|
|
@@ -770,6 +795,8 @@ export interface LogMemberLeave {
|
|
|
770
795
|
rev: string
|
|
771
796
|
convoId: string
|
|
772
797
|
message: SystemMessageView
|
|
798
|
+
/** Profiles referred in the system message. */
|
|
799
|
+
relatedProfiles: ChatBskyActorDefs.ProfileViewBasic[]
|
|
773
800
|
}
|
|
774
801
|
|
|
775
802
|
const hashLogMemberLeave = 'logMemberLeave'
|
|
@@ -788,6 +815,8 @@ export interface LogLockConvo {
|
|
|
788
815
|
rev: string
|
|
789
816
|
convoId: string
|
|
790
817
|
message: SystemMessageView
|
|
818
|
+
/** Profiles referred in the system message. */
|
|
819
|
+
relatedProfiles: ChatBskyActorDefs.ProfileViewBasic[]
|
|
791
820
|
}
|
|
792
821
|
|
|
793
822
|
const hashLogLockConvo = 'logLockConvo'
|
|
@@ -806,6 +835,8 @@ export interface LogUnlockConvo {
|
|
|
806
835
|
rev: string
|
|
807
836
|
convoId: string
|
|
808
837
|
message: SystemMessageView
|
|
838
|
+
/** Profiles referred in the system message. */
|
|
839
|
+
relatedProfiles: ChatBskyActorDefs.ProfileViewBasic[]
|
|
809
840
|
}
|
|
810
841
|
|
|
811
842
|
const hashLogUnlockConvo = 'logUnlockConvo'
|
|
@@ -824,6 +855,8 @@ export interface LogLockConvoPermanently {
|
|
|
824
855
|
rev: string
|
|
825
856
|
convoId: string
|
|
826
857
|
message: SystemMessageView
|
|
858
|
+
/** Profiles referred in the system message. */
|
|
859
|
+
relatedProfiles: ChatBskyActorDefs.ProfileViewBasic[]
|
|
827
860
|
}
|
|
828
861
|
|
|
829
862
|
const hashLogLockConvoPermanently = 'logLockConvoPermanently'
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
type OmitKey,
|
|
12
12
|
} from '../../../../util'
|
|
13
13
|
import type * as ChatBskyConvoDefs from './defs.js'
|
|
14
|
+
import type * as ChatBskyActorDefs from '../actor/defs.js'
|
|
14
15
|
|
|
15
16
|
const is$typed = _is$typed,
|
|
16
17
|
validate = _validate
|
|
@@ -31,6 +32,8 @@ export interface OutputSchema {
|
|
|
31
32
|
| $Typed<ChatBskyConvoDefs.SystemMessageView>
|
|
32
33
|
| { $type: string }
|
|
33
34
|
)[]
|
|
35
|
+
/** Set of all members who authored or reacted to the returned messages. Members referred to by system messages are also included. */
|
|
36
|
+
relatedProfiles?: ChatBskyActorDefs.ProfileViewBasic[]
|
|
34
37
|
}
|
|
35
38
|
|
|
36
39
|
export interface CallOptions {
|