@atproto/api 0.19.10 → 0.19.12
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/lexicons.d.ts +208 -40
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +104 -19
- 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 +31 -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 +2 -2
- package/src/client/lexicons.ts +106 -19
- package/src/client/types/chat/bsky/actor/defs.ts +17 -1
- package/src/client/types/chat/bsky/convo/defs.ts +44 -10
- package/src/client/types/chat/bsky/convo/getMessages.ts +3 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getMessages.js","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/convo/getMessages.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"getMessages.js","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/convo/getMessages.ts"],"names":[],"mappings":";;;AAuDA,gCAMC;AA7DD;;GAEG;AACH,wCAAqD;AAGrD,mDAA4D;AAC5D,2CAIyB;AAIzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,6BAA6B,CAAA;AAgCxC,MAAa,iBAAkB,SAAQ,gBAAS;IAC9C,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAJD,8CAIC;AAED,SAAgB,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,gBAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,cAAc;YAAE,OAAO,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAA;IACjE,CAAC;IAED,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as ChatBskyConvoDefs from './defs.js'\nimport type * as ChatBskyActorDefs from '../actor/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'chat.bsky.convo.getMessages'\n\nexport type QueryParams = {\n convoId: string\n limit?: number\n cursor?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n messages: (\n | $Typed<ChatBskyConvoDefs.MessageView>\n | $Typed<ChatBskyConvoDefs.DeletedMessageView>\n | $Typed<ChatBskyConvoDefs.SystemMessageView>\n | { $type: string }\n )[]\n /** Set of all members who authored or reacted to the returned messages. Members referred to by system messages are also included. */\n relatedProfiles?: ChatBskyActorDefs.ProfileViewBasic[]\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport class InvalidConvoError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'InvalidConvo') return new InvalidConvoError(e)\n }\n\n return e\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/api",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.12",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Client library for atproto and Bluesky",
|
|
6
6
|
"keywords": [
|
|
@@ -22,8 +22,8 @@
|
|
|
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",
|
|
26
|
+
"@atproto/lexicon": "^0.6.2",
|
|
27
27
|
"@atproto/xrpc": "^0.7.7"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
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
|
},
|
|
@@ -10338,7 +10356,7 @@ export const schemaDict = {
|
|
|
10338
10356
|
description:
|
|
10339
10357
|
'[NOTE: This is under active development and should be considered unstable while this note is here].',
|
|
10340
10358
|
type: 'object',
|
|
10341
|
-
required: ['name', 'lockStatus', 'memberCount'],
|
|
10359
|
+
required: ['name', 'lockStatus', 'memberCount', 'createdAt'],
|
|
10342
10360
|
properties: {
|
|
10343
10361
|
name: {
|
|
10344
10362
|
type: 'string',
|
|
@@ -10351,6 +10369,10 @@ export const schemaDict = {
|
|
|
10351
10369
|
description:
|
|
10352
10370
|
'The total number of members in the group conversation.',
|
|
10353
10371
|
},
|
|
10372
|
+
createdAt: {
|
|
10373
|
+
type: 'string',
|
|
10374
|
+
format: 'datetime',
|
|
10375
|
+
},
|
|
10354
10376
|
joinLink: {
|
|
10355
10377
|
type: 'ref',
|
|
10356
10378
|
ref: 'lex:chat.bsky.group.defs#joinLinkView',
|
|
@@ -10570,7 +10592,7 @@ export const schemaDict = {
|
|
|
10570
10592
|
description:
|
|
10571
10593
|
'[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
10594
|
type: 'object',
|
|
10573
|
-
required: ['rev', 'convoId', 'message'],
|
|
10595
|
+
required: ['rev', 'convoId', 'message', 'relatedProfiles'],
|
|
10574
10596
|
properties: {
|
|
10575
10597
|
rev: {
|
|
10576
10598
|
type: 'string',
|
|
@@ -10584,13 +10606,21 @@ export const schemaDict = {
|
|
|
10584
10606
|
type: 'ref',
|
|
10585
10607
|
ref: 'lex:chat.bsky.convo.defs#systemMessageView',
|
|
10586
10608
|
},
|
|
10609
|
+
relatedProfiles: {
|
|
10610
|
+
description: 'Profiles referred in the system message.',
|
|
10611
|
+
type: 'array',
|
|
10612
|
+
items: {
|
|
10613
|
+
type: 'ref',
|
|
10614
|
+
ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
|
|
10615
|
+
},
|
|
10616
|
+
},
|
|
10587
10617
|
},
|
|
10588
10618
|
},
|
|
10589
10619
|
logRemoveMember: {
|
|
10590
10620
|
description:
|
|
10591
10621
|
"[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
10622
|
type: 'object',
|
|
10593
|
-
required: ['rev', 'convoId', 'message'],
|
|
10623
|
+
required: ['rev', 'convoId', 'message', 'relatedProfiles'],
|
|
10594
10624
|
properties: {
|
|
10595
10625
|
rev: {
|
|
10596
10626
|
type: 'string',
|
|
@@ -10604,13 +10634,21 @@ export const schemaDict = {
|
|
|
10604
10634
|
type: 'ref',
|
|
10605
10635
|
ref: 'lex:chat.bsky.convo.defs#systemMessageView',
|
|
10606
10636
|
},
|
|
10637
|
+
relatedProfiles: {
|
|
10638
|
+
description: 'Profiles referred in the system message.',
|
|
10639
|
+
type: 'array',
|
|
10640
|
+
items: {
|
|
10641
|
+
type: 'ref',
|
|
10642
|
+
ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
|
|
10643
|
+
},
|
|
10644
|
+
},
|
|
10607
10645
|
},
|
|
10608
10646
|
},
|
|
10609
10647
|
logMemberJoin: {
|
|
10610
10648
|
description:
|
|
10611
10649
|
'[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
10650
|
type: 'object',
|
|
10613
|
-
required: ['rev', 'convoId', 'message'],
|
|
10651
|
+
required: ['rev', 'convoId', 'message', 'relatedProfiles'],
|
|
10614
10652
|
properties: {
|
|
10615
10653
|
rev: {
|
|
10616
10654
|
type: 'string',
|
|
@@ -10624,13 +10662,21 @@ export const schemaDict = {
|
|
|
10624
10662
|
type: 'ref',
|
|
10625
10663
|
ref: 'lex:chat.bsky.convo.defs#systemMessageView',
|
|
10626
10664
|
},
|
|
10665
|
+
relatedProfiles: {
|
|
10666
|
+
description: 'Profiles referred in the system message.',
|
|
10667
|
+
type: 'array',
|
|
10668
|
+
items: {
|
|
10669
|
+
type: 'ref',
|
|
10670
|
+
ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
|
|
10671
|
+
},
|
|
10672
|
+
},
|
|
10627
10673
|
},
|
|
10628
10674
|
},
|
|
10629
10675
|
logMemberLeave: {
|
|
10630
10676
|
description:
|
|
10631
10677
|
"[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
10678
|
type: 'object',
|
|
10633
|
-
required: ['rev', 'convoId', 'message'],
|
|
10679
|
+
required: ['rev', 'convoId', 'message', 'relatedProfiles'],
|
|
10634
10680
|
properties: {
|
|
10635
10681
|
rev: {
|
|
10636
10682
|
type: 'string',
|
|
@@ -10644,13 +10690,21 @@ export const schemaDict = {
|
|
|
10644
10690
|
type: 'ref',
|
|
10645
10691
|
ref: 'lex:chat.bsky.convo.defs#systemMessageView',
|
|
10646
10692
|
},
|
|
10693
|
+
relatedProfiles: {
|
|
10694
|
+
description: 'Profiles referred in the system message.',
|
|
10695
|
+
type: 'array',
|
|
10696
|
+
items: {
|
|
10697
|
+
type: 'ref',
|
|
10698
|
+
ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
|
|
10699
|
+
},
|
|
10700
|
+
},
|
|
10647
10701
|
},
|
|
10648
10702
|
},
|
|
10649
10703
|
logLockConvo: {
|
|
10650
10704
|
description:
|
|
10651
10705
|
'[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was locked.',
|
|
10652
10706
|
type: 'object',
|
|
10653
|
-
required: ['rev', 'convoId', 'message'],
|
|
10707
|
+
required: ['rev', 'convoId', 'message', 'relatedProfiles'],
|
|
10654
10708
|
properties: {
|
|
10655
10709
|
rev: {
|
|
10656
10710
|
type: 'string',
|
|
@@ -10664,13 +10718,21 @@ export const schemaDict = {
|
|
|
10664
10718
|
type: 'ref',
|
|
10665
10719
|
ref: 'lex:chat.bsky.convo.defs#systemMessageView',
|
|
10666
10720
|
},
|
|
10721
|
+
relatedProfiles: {
|
|
10722
|
+
description: 'Profiles referred in the system message.',
|
|
10723
|
+
type: 'array',
|
|
10724
|
+
items: {
|
|
10725
|
+
type: 'ref',
|
|
10726
|
+
ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
|
|
10727
|
+
},
|
|
10728
|
+
},
|
|
10667
10729
|
},
|
|
10668
10730
|
},
|
|
10669
10731
|
logUnlockConvo: {
|
|
10670
10732
|
description:
|
|
10671
10733
|
'[NOTE: This is under active development and should be considered unstable while this note is here]. Event indicating a group convo was unlocked.',
|
|
10672
10734
|
type: 'object',
|
|
10673
|
-
required: ['rev', 'convoId', 'message'],
|
|
10735
|
+
required: ['rev', 'convoId', 'message', 'relatedProfiles'],
|
|
10674
10736
|
properties: {
|
|
10675
10737
|
rev: {
|
|
10676
10738
|
type: 'string',
|
|
@@ -10684,13 +10746,21 @@ export const schemaDict = {
|
|
|
10684
10746
|
type: 'ref',
|
|
10685
10747
|
ref: 'lex:chat.bsky.convo.defs#systemMessageView',
|
|
10686
10748
|
},
|
|
10749
|
+
relatedProfiles: {
|
|
10750
|
+
description: 'Profiles referred in the system message.',
|
|
10751
|
+
type: 'array',
|
|
10752
|
+
items: {
|
|
10753
|
+
type: 'ref',
|
|
10754
|
+
ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
|
|
10755
|
+
},
|
|
10756
|
+
},
|
|
10687
10757
|
},
|
|
10688
10758
|
},
|
|
10689
10759
|
logLockConvoPermanently: {
|
|
10690
10760
|
description:
|
|
10691
10761
|
'[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
10762
|
type: 'object',
|
|
10693
|
-
required: ['rev', 'convoId', 'message'],
|
|
10763
|
+
required: ['rev', 'convoId', 'message', 'relatedProfiles'],
|
|
10694
10764
|
properties: {
|
|
10695
10765
|
rev: {
|
|
10696
10766
|
type: 'string',
|
|
@@ -10704,6 +10774,14 @@ export const schemaDict = {
|
|
|
10704
10774
|
type: 'ref',
|
|
10705
10775
|
ref: 'lex:chat.bsky.convo.defs#systemMessageView',
|
|
10706
10776
|
},
|
|
10777
|
+
relatedProfiles: {
|
|
10778
|
+
description: 'Profiles referred in the system message.',
|
|
10779
|
+
type: 'array',
|
|
10780
|
+
items: {
|
|
10781
|
+
type: 'ref',
|
|
10782
|
+
ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
|
|
10783
|
+
},
|
|
10784
|
+
},
|
|
10707
10785
|
},
|
|
10708
10786
|
},
|
|
10709
10787
|
logEditGroup: {
|
|
@@ -11224,6 +11302,15 @@ export const schemaDict = {
|
|
|
11224
11302
|
],
|
|
11225
11303
|
},
|
|
11226
11304
|
},
|
|
11305
|
+
relatedProfiles: {
|
|
11306
|
+
description:
|
|
11307
|
+
'Set of all members who authored or reacted to the returned messages. Members referred to by system messages are also included.',
|
|
11308
|
+
type: 'array',
|
|
11309
|
+
items: {
|
|
11310
|
+
type: 'ref',
|
|
11311
|
+
ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
|
|
11312
|
+
},
|
|
11313
|
+
},
|
|
11227
11314
|
},
|
|
11228
11315
|
},
|
|
11229
11316
|
},
|
|
@@ -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 =
|
|
@@ -493,6 +512,7 @@ export interface GroupConvo {
|
|
|
493
512
|
name: string
|
|
494
513
|
/** The total number of members in the group conversation. */
|
|
495
514
|
memberCount: number
|
|
515
|
+
createdAt: string
|
|
496
516
|
joinLink?: ChatBskyGroupDefs.JoinLinkView
|
|
497
517
|
lockStatus: ConvoLockStatus
|
|
498
518
|
}
|
|
@@ -716,6 +736,8 @@ export interface LogAddMember {
|
|
|
716
736
|
rev: string
|
|
717
737
|
convoId: string
|
|
718
738
|
message: SystemMessageView
|
|
739
|
+
/** Profiles referred in the system message. */
|
|
740
|
+
relatedProfiles: ChatBskyActorDefs.ProfileViewBasic[]
|
|
719
741
|
}
|
|
720
742
|
|
|
721
743
|
const hashLogAddMember = 'logAddMember'
|
|
@@ -734,6 +756,8 @@ export interface LogRemoveMember {
|
|
|
734
756
|
rev: string
|
|
735
757
|
convoId: string
|
|
736
758
|
message: SystemMessageView
|
|
759
|
+
/** Profiles referred in the system message. */
|
|
760
|
+
relatedProfiles: ChatBskyActorDefs.ProfileViewBasic[]
|
|
737
761
|
}
|
|
738
762
|
|
|
739
763
|
const hashLogRemoveMember = 'logRemoveMember'
|
|
@@ -752,6 +776,8 @@ export interface LogMemberJoin {
|
|
|
752
776
|
rev: string
|
|
753
777
|
convoId: string
|
|
754
778
|
message: SystemMessageView
|
|
779
|
+
/** Profiles referred in the system message. */
|
|
780
|
+
relatedProfiles: ChatBskyActorDefs.ProfileViewBasic[]
|
|
755
781
|
}
|
|
756
782
|
|
|
757
783
|
const hashLogMemberJoin = 'logMemberJoin'
|
|
@@ -770,6 +796,8 @@ export interface LogMemberLeave {
|
|
|
770
796
|
rev: string
|
|
771
797
|
convoId: string
|
|
772
798
|
message: SystemMessageView
|
|
799
|
+
/** Profiles referred in the system message. */
|
|
800
|
+
relatedProfiles: ChatBskyActorDefs.ProfileViewBasic[]
|
|
773
801
|
}
|
|
774
802
|
|
|
775
803
|
const hashLogMemberLeave = 'logMemberLeave'
|
|
@@ -788,6 +816,8 @@ export interface LogLockConvo {
|
|
|
788
816
|
rev: string
|
|
789
817
|
convoId: string
|
|
790
818
|
message: SystemMessageView
|
|
819
|
+
/** Profiles referred in the system message. */
|
|
820
|
+
relatedProfiles: ChatBskyActorDefs.ProfileViewBasic[]
|
|
791
821
|
}
|
|
792
822
|
|
|
793
823
|
const hashLogLockConvo = 'logLockConvo'
|
|
@@ -806,6 +836,8 @@ export interface LogUnlockConvo {
|
|
|
806
836
|
rev: string
|
|
807
837
|
convoId: string
|
|
808
838
|
message: SystemMessageView
|
|
839
|
+
/** Profiles referred in the system message. */
|
|
840
|
+
relatedProfiles: ChatBskyActorDefs.ProfileViewBasic[]
|
|
809
841
|
}
|
|
810
842
|
|
|
811
843
|
const hashLogUnlockConvo = 'logUnlockConvo'
|
|
@@ -824,6 +856,8 @@ export interface LogLockConvoPermanently {
|
|
|
824
856
|
rev: string
|
|
825
857
|
convoId: string
|
|
826
858
|
message: SystemMessageView
|
|
859
|
+
/** Profiles referred in the system message. */
|
|
860
|
+
relatedProfiles: ChatBskyActorDefs.ProfileViewBasic[]
|
|
827
861
|
}
|
|
828
862
|
|
|
829
863
|
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 {
|