@atproto/api 0.20.2 → 0.20.4
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 +16 -0
- package/README.md +4 -0
- package/dist/client/index.d.ts +3 -3
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +3 -8
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +160 -32
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +97 -19
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/embed/external.d.ts +2 -2
- package/dist/client/types/app/bsky/embed/external.d.ts.map +1 -1
- package/dist/client/types/app/bsky/embed/external.js.map +1 -1
- package/dist/client/types/chat/bsky/convo/defs.d.ts +2 -0
- package/dist/client/types/chat/bsky/convo/defs.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/convo/defs.js.map +1 -1
- package/dist/client/types/chat/bsky/convo/listConvoRequests.d.ts +1 -1
- package/dist/client/types/chat/bsky/convo/listConvoRequests.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/convo/listConvoRequests.js.map +1 -1
- package/dist/client/types/chat/bsky/group/defs.d.ts +23 -0
- package/dist/client/types/chat/bsky/group/defs.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/group/defs.js +14 -0
- package/dist/client/types/chat/bsky/group/defs.js.map +1 -1
- package/dist/client/types/chat/bsky/group/{getJoinLinkPreview.d.ts → getJoinLinkPreviews.d.ts} +4 -7
- package/dist/client/types/chat/bsky/group/getJoinLinkPreviews.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/group/getJoinLinkPreviews.js +8 -0
- package/dist/client/types/chat/bsky/group/getJoinLinkPreviews.js.map +1 -0
- package/package.json +2 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/client/types/chat/bsky/group/getJoinLinkPreview.d.ts.map +0 -1
- package/dist/client/types/chat/bsky/group/getJoinLinkPreview.js +0 -21
- package/dist/client/types/chat/bsky/group/getJoinLinkPreview.js.map +0 -1
package/dist/client/lexicons.js
CHANGED
|
@@ -2673,6 +2673,7 @@ export const schemaDict = {
|
|
|
2673
2673
|
viewExternalSource: {
|
|
2674
2674
|
type: 'object',
|
|
2675
2675
|
description: 'The source of an external embed, such as a standard.site publication.',
|
|
2676
|
+
required: ['uri', 'title'],
|
|
2676
2677
|
properties: {
|
|
2677
2678
|
uri: {
|
|
2678
2679
|
type: 'string',
|
|
@@ -10205,6 +10206,10 @@ export const schemaDict = {
|
|
|
10205
10206
|
type: 'string',
|
|
10206
10207
|
format: 'datetime',
|
|
10207
10208
|
},
|
|
10209
|
+
joinRequestCount: {
|
|
10210
|
+
type: 'integer',
|
|
10211
|
+
description: 'The total number of pending join requests for the group conversation. Only present for the owner. Capped at 21.',
|
|
10212
|
+
},
|
|
10208
10213
|
joinLink: {
|
|
10209
10214
|
type: 'ref',
|
|
10210
10215
|
ref: 'lex:chat.bsky.group.defs#joinLinkView',
|
|
@@ -11183,7 +11188,7 @@ export const schemaDict = {
|
|
|
11183
11188
|
defs: {
|
|
11184
11189
|
main: {
|
|
11185
11190
|
type: 'query',
|
|
11186
|
-
description: '[NOTE: This is under active development and should be considered unstable while this note is here]. Returns a page of incoming conversation requests for the user. Direct convo requests are returned as convoView; group join requests are returned as
|
|
11191
|
+
description: '[NOTE: This is under active development and should be considered unstable while this note is here]. Returns a page of incoming conversation requests for the user. Direct convo requests are returned as convoView; group join requests made by the user are returned as joinRequestConvoView.',
|
|
11187
11192
|
parameters: {
|
|
11188
11193
|
type: 'params',
|
|
11189
11194
|
properties: {
|
|
@@ -11213,7 +11218,7 @@ export const schemaDict = {
|
|
|
11213
11218
|
type: 'union',
|
|
11214
11219
|
refs: [
|
|
11215
11220
|
'lex:chat.bsky.convo.defs#convoView',
|
|
11216
|
-
'lex:chat.bsky.group.defs#
|
|
11221
|
+
'lex:chat.bsky.group.defs#joinRequestConvoView',
|
|
11217
11222
|
],
|
|
11218
11223
|
},
|
|
11219
11224
|
},
|
|
@@ -11993,8 +11998,20 @@ export const schemaDict = {
|
|
|
11993
11998
|
},
|
|
11994
11999
|
joinLinkPreviewView: {
|
|
11995
12000
|
type: 'object',
|
|
11996
|
-
required: [
|
|
12001
|
+
required: [
|
|
12002
|
+
'code',
|
|
12003
|
+
'name',
|
|
12004
|
+
'owner',
|
|
12005
|
+
'memberCount',
|
|
12006
|
+
'memberLimit',
|
|
12007
|
+
'requireApproval',
|
|
12008
|
+
'joinRule',
|
|
12009
|
+
'enabledStatus',
|
|
12010
|
+
],
|
|
11997
12011
|
properties: {
|
|
12012
|
+
code: {
|
|
12013
|
+
type: 'string',
|
|
12014
|
+
},
|
|
11998
12015
|
name: {
|
|
11999
12016
|
type: 'string',
|
|
12000
12017
|
},
|
|
@@ -12005,14 +12022,38 @@ export const schemaDict = {
|
|
|
12005
12022
|
memberCount: {
|
|
12006
12023
|
type: 'integer',
|
|
12007
12024
|
},
|
|
12025
|
+
memberLimit: {
|
|
12026
|
+
type: 'integer',
|
|
12027
|
+
},
|
|
12008
12028
|
requireApproval: {
|
|
12009
12029
|
type: 'boolean',
|
|
12010
12030
|
},
|
|
12031
|
+
joinRule: {
|
|
12032
|
+
type: 'ref',
|
|
12033
|
+
ref: 'lex:chat.bsky.group.defs#joinRule',
|
|
12034
|
+
},
|
|
12035
|
+
enabledStatus: {
|
|
12036
|
+
type: 'ref',
|
|
12037
|
+
ref: 'lex:chat.bsky.group.defs#linkEnabledStatus',
|
|
12038
|
+
},
|
|
12011
12039
|
convo: {
|
|
12012
12040
|
type: 'ref',
|
|
12013
12041
|
ref: 'lex:chat.bsky.convo.defs#convoView',
|
|
12014
12042
|
description: 'Present only if the request is authenticated and the user is a member of the group.',
|
|
12015
12043
|
},
|
|
12044
|
+
viewer: {
|
|
12045
|
+
type: 'ref',
|
|
12046
|
+
ref: 'lex:chat.bsky.group.defs#joinLinkViewerState',
|
|
12047
|
+
},
|
|
12048
|
+
},
|
|
12049
|
+
},
|
|
12050
|
+
joinLinkViewerState: {
|
|
12051
|
+
type: 'object',
|
|
12052
|
+
properties: {
|
|
12053
|
+
requestedAt: {
|
|
12054
|
+
type: 'string',
|
|
12055
|
+
format: 'datetime',
|
|
12056
|
+
},
|
|
12016
12057
|
},
|
|
12017
12058
|
},
|
|
12018
12059
|
joinRequestView: {
|
|
@@ -12032,6 +12073,40 @@ export const schemaDict = {
|
|
|
12032
12073
|
},
|
|
12033
12074
|
},
|
|
12034
12075
|
},
|
|
12076
|
+
joinRequestConvoView: {
|
|
12077
|
+
description: 'A join request from the perspective of the requester, including enough group context to render the request in a list (e.g. group name, owner, member count).',
|
|
12078
|
+
type: 'object',
|
|
12079
|
+
required: [
|
|
12080
|
+
'convoId',
|
|
12081
|
+
'name',
|
|
12082
|
+
'owner',
|
|
12083
|
+
'memberCount',
|
|
12084
|
+
'memberLimit',
|
|
12085
|
+
'requestedAt',
|
|
12086
|
+
],
|
|
12087
|
+
properties: {
|
|
12088
|
+
convoId: {
|
|
12089
|
+
type: 'string',
|
|
12090
|
+
},
|
|
12091
|
+
name: {
|
|
12092
|
+
type: 'string',
|
|
12093
|
+
},
|
|
12094
|
+
owner: {
|
|
12095
|
+
type: 'ref',
|
|
12096
|
+
ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
|
|
12097
|
+
},
|
|
12098
|
+
memberCount: {
|
|
12099
|
+
type: 'integer',
|
|
12100
|
+
},
|
|
12101
|
+
memberLimit: {
|
|
12102
|
+
type: 'integer',
|
|
12103
|
+
},
|
|
12104
|
+
requestedAt: {
|
|
12105
|
+
type: 'string',
|
|
12106
|
+
format: 'datetime',
|
|
12107
|
+
},
|
|
12108
|
+
},
|
|
12109
|
+
},
|
|
12035
12110
|
},
|
|
12036
12111
|
},
|
|
12037
12112
|
ChatBskyGroupDisableJoinLink: {
|
|
@@ -12234,24 +12309,24 @@ export const schemaDict = {
|
|
|
12234
12309
|
},
|
|
12235
12310
|
},
|
|
12236
12311
|
},
|
|
12237
|
-
|
|
12312
|
+
ChatBskyGroupGetJoinLinkPreviews: {
|
|
12238
12313
|
lexicon: 1,
|
|
12239
|
-
id: 'chat.bsky.group.
|
|
12314
|
+
id: 'chat.bsky.group.getJoinLinkPreviews',
|
|
12240
12315
|
defs: {
|
|
12241
12316
|
main: {
|
|
12242
12317
|
type: 'query',
|
|
12243
|
-
description: '[NOTE: This is under active development and should be considered unstable while this note is here]. Get public information about
|
|
12244
|
-
errors: [
|
|
12245
|
-
{
|
|
12246
|
-
name: 'InvalidCode',
|
|
12247
|
-
},
|
|
12248
|
-
],
|
|
12318
|
+
description: '[NOTE: This is under active development and should be considered unstable while this note is here]. Get public information about groups from join links. Invalid or disabled codes are silently omitted from results.',
|
|
12249
12319
|
parameters: {
|
|
12250
12320
|
type: 'params',
|
|
12251
|
-
required: ['
|
|
12321
|
+
required: ['codes'],
|
|
12252
12322
|
properties: {
|
|
12253
|
-
|
|
12254
|
-
type: '
|
|
12323
|
+
codes: {
|
|
12324
|
+
type: 'array',
|
|
12325
|
+
minLength: 1,
|
|
12326
|
+
maxLength: 50,
|
|
12327
|
+
items: {
|
|
12328
|
+
type: 'string',
|
|
12329
|
+
},
|
|
12255
12330
|
},
|
|
12256
12331
|
},
|
|
12257
12332
|
},
|
|
@@ -12259,11 +12334,14 @@ export const schemaDict = {
|
|
|
12259
12334
|
encoding: 'application/json',
|
|
12260
12335
|
schema: {
|
|
12261
12336
|
type: 'object',
|
|
12262
|
-
required: ['
|
|
12337
|
+
required: ['joinLinkPreviews'],
|
|
12263
12338
|
properties: {
|
|
12264
|
-
|
|
12265
|
-
type: '
|
|
12266
|
-
|
|
12339
|
+
joinLinkPreviews: {
|
|
12340
|
+
type: 'array',
|
|
12341
|
+
items: {
|
|
12342
|
+
type: 'ref',
|
|
12343
|
+
ref: 'lex:chat.bsky.group.defs#joinLinkPreviewView',
|
|
12344
|
+
},
|
|
12267
12345
|
},
|
|
12268
12346
|
},
|
|
12269
12347
|
},
|
|
@@ -24835,7 +24913,7 @@ export const ids = {
|
|
|
24835
24913
|
ChatBskyGroupEditGroup: 'chat.bsky.group.editGroup',
|
|
24836
24914
|
ChatBskyGroupEditJoinLink: 'chat.bsky.group.editJoinLink',
|
|
24837
24915
|
ChatBskyGroupEnableJoinLink: 'chat.bsky.group.enableJoinLink',
|
|
24838
|
-
|
|
24916
|
+
ChatBskyGroupGetJoinLinkPreviews: 'chat.bsky.group.getJoinLinkPreviews',
|
|
24839
24917
|
ChatBskyGroupListJoinRequests: 'chat.bsky.group.listJoinRequests',
|
|
24840
24918
|
ChatBskyGroupListMutualGroups: 'chat.bsky.group.listMutualGroups',
|
|
24841
24919
|
ChatBskyGroupRejectJoinRequest: 'chat.bsky.group.rejectJoinRequest',
|