@atproto/api 0.20.9 → 0.20.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 +14 -0
- package/dist/client/lexicons.d.ts +76 -32
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +46 -16
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/chat/bsky/embed/joinLink.d.ts +4 -1
- package/dist/client/types/chat/bsky/embed/joinLink.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/embed/joinLink.js.map +1 -1
- package/dist/client/types/chat/bsky/group/defs.d.ts +19 -2
- 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/getJoinLinkPreviews.d.ts +4 -1
- package/dist/client/types/chat/bsky/group/getJoinLinkPreviews.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/group/getJoinLinkPreviews.js.map +1 -1
- package/package.json +3 -3
- package/tsconfig.build.json +2 -2
- package/tsconfig.json +2 -2
- package/tsconfig.tests.json +2 -2
package/dist/client/lexicons.js
CHANGED
|
@@ -11919,8 +11919,12 @@ export const schemaDict = {
|
|
|
11919
11919
|
required: ['joinLinkPreview'],
|
|
11920
11920
|
properties: {
|
|
11921
11921
|
joinLinkPreview: {
|
|
11922
|
-
type: '
|
|
11923
|
-
|
|
11922
|
+
type: 'union',
|
|
11923
|
+
refs: [
|
|
11924
|
+
'lex:chat.bsky.group.defs#joinLinkPreviewView',
|
|
11925
|
+
'lex:chat.bsky.group.defs#disabledJoinLinkPreviewView',
|
|
11926
|
+
'lex:chat.bsky.group.defs#invalidJoinLinkPreviewView',
|
|
11927
|
+
],
|
|
11924
11928
|
},
|
|
11925
11929
|
},
|
|
11926
11930
|
},
|
|
@@ -12105,8 +12109,8 @@ export const schemaDict = {
|
|
|
12105
12109
|
name: {
|
|
12106
12110
|
type: 'string',
|
|
12107
12111
|
minLength: 1,
|
|
12108
|
-
maxGraphemes:
|
|
12109
|
-
maxLength:
|
|
12112
|
+
maxGraphemes: 50,
|
|
12113
|
+
maxLength: 500,
|
|
12110
12114
|
},
|
|
12111
12115
|
},
|
|
12112
12116
|
},
|
|
@@ -12195,6 +12199,7 @@ export const schemaDict = {
|
|
|
12195
12199
|
knownValues: ['anyone', 'followedByOwner'],
|
|
12196
12200
|
},
|
|
12197
12201
|
joinLinkView: {
|
|
12202
|
+
description: 'Join link view to be used within a group view, so the convo is surrounding, not specified inside this view.',
|
|
12198
12203
|
type: 'object',
|
|
12199
12204
|
required: [
|
|
12200
12205
|
'code',
|
|
@@ -12225,8 +12230,10 @@ export const schemaDict = {
|
|
|
12225
12230
|
},
|
|
12226
12231
|
},
|
|
12227
12232
|
joinLinkPreviewView: {
|
|
12233
|
+
description: 'Preview that can be shown in feeds, including to unauthenticated viewers.',
|
|
12228
12234
|
type: 'object',
|
|
12229
12235
|
required: [
|
|
12236
|
+
'convoId',
|
|
12230
12237
|
'code',
|
|
12231
12238
|
'name',
|
|
12232
12239
|
'owner',
|
|
@@ -12234,9 +12241,11 @@ export const schemaDict = {
|
|
|
12234
12241
|
'memberLimit',
|
|
12235
12242
|
'requireApproval',
|
|
12236
12243
|
'joinRule',
|
|
12237
|
-
'enabledStatus',
|
|
12238
12244
|
],
|
|
12239
12245
|
properties: {
|
|
12246
|
+
convoId: {
|
|
12247
|
+
type: 'string',
|
|
12248
|
+
},
|
|
12240
12249
|
code: {
|
|
12241
12250
|
type: 'string',
|
|
12242
12251
|
},
|
|
@@ -12260,10 +12269,6 @@ export const schemaDict = {
|
|
|
12260
12269
|
type: 'ref',
|
|
12261
12270
|
ref: 'lex:chat.bsky.group.defs#joinRule',
|
|
12262
12271
|
},
|
|
12263
|
-
enabledStatus: {
|
|
12264
|
-
type: 'ref',
|
|
12265
|
-
ref: 'lex:chat.bsky.group.defs#linkEnabledStatus',
|
|
12266
|
-
},
|
|
12267
12272
|
convo: {
|
|
12268
12273
|
type: 'ref',
|
|
12269
12274
|
ref: 'lex:chat.bsky.convo.defs#convoView',
|
|
@@ -12275,6 +12280,26 @@ export const schemaDict = {
|
|
|
12275
12280
|
},
|
|
12276
12281
|
},
|
|
12277
12282
|
},
|
|
12283
|
+
disabledJoinLinkPreviewView: {
|
|
12284
|
+
description: 'Preview for a disabled join link. Carries only the code so clients can correlate with the input and render a disabled state.',
|
|
12285
|
+
type: 'object',
|
|
12286
|
+
required: ['code'],
|
|
12287
|
+
properties: {
|
|
12288
|
+
code: {
|
|
12289
|
+
type: 'string',
|
|
12290
|
+
},
|
|
12291
|
+
},
|
|
12292
|
+
},
|
|
12293
|
+
invalidJoinLinkPreviewView: {
|
|
12294
|
+
description: 'Preview for a join link code that does not map to an existing link. Carries only the code so clients can correlate with the input and render an invalid state.',
|
|
12295
|
+
type: 'object',
|
|
12296
|
+
required: ['code'],
|
|
12297
|
+
properties: {
|
|
12298
|
+
code: {
|
|
12299
|
+
type: 'string',
|
|
12300
|
+
},
|
|
12301
|
+
},
|
|
12302
|
+
},
|
|
12278
12303
|
joinLinkViewerState: {
|
|
12279
12304
|
type: 'object',
|
|
12280
12305
|
properties: {
|
|
@@ -12285,6 +12310,7 @@ export const schemaDict = {
|
|
|
12285
12310
|
},
|
|
12286
12311
|
},
|
|
12287
12312
|
joinRequestView: {
|
|
12313
|
+
description: 'A join request from the perspective of the group owner.',
|
|
12288
12314
|
type: 'object',
|
|
12289
12315
|
required: ['convoId', 'requestedBy', 'requestedAt'],
|
|
12290
12316
|
properties: {
|
|
@@ -12310,7 +12336,7 @@ export const schemaDict = {
|
|
|
12310
12336
|
'owner',
|
|
12311
12337
|
'memberCount',
|
|
12312
12338
|
'memberLimit',
|
|
12313
|
-
'
|
|
12339
|
+
'viewer',
|
|
12314
12340
|
],
|
|
12315
12341
|
properties: {
|
|
12316
12342
|
convoId: {
|
|
@@ -12329,9 +12355,9 @@ export const schemaDict = {
|
|
|
12329
12355
|
memberLimit: {
|
|
12330
12356
|
type: 'integer',
|
|
12331
12357
|
},
|
|
12332
|
-
|
|
12333
|
-
type: '
|
|
12334
|
-
|
|
12358
|
+
viewer: {
|
|
12359
|
+
type: 'ref',
|
|
12360
|
+
ref: 'lex:chat.bsky.group.defs#joinLinkViewerState',
|
|
12335
12361
|
},
|
|
12336
12362
|
},
|
|
12337
12363
|
},
|
|
@@ -12543,7 +12569,7 @@ export const schemaDict = {
|
|
|
12543
12569
|
defs: {
|
|
12544
12570
|
main: {
|
|
12545
12571
|
type: 'query',
|
|
12546
|
-
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.
|
|
12572
|
+
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. The output array matches the input codes one-to-one by position (and each view also carries its 'code'). Disabled codes return a disabledJoinLinkPreviewView, and codes that do not map to a previewable link return an invalidJoinLinkPreviewView.",
|
|
12547
12573
|
parameters: {
|
|
12548
12574
|
type: 'params',
|
|
12549
12575
|
required: ['codes'],
|
|
@@ -12567,8 +12593,12 @@ export const schemaDict = {
|
|
|
12567
12593
|
joinLinkPreviews: {
|
|
12568
12594
|
type: 'array',
|
|
12569
12595
|
items: {
|
|
12570
|
-
type: '
|
|
12571
|
-
|
|
12596
|
+
type: 'union',
|
|
12597
|
+
refs: [
|
|
12598
|
+
'lex:chat.bsky.group.defs#joinLinkPreviewView',
|
|
12599
|
+
'lex:chat.bsky.group.defs#disabledJoinLinkPreviewView',
|
|
12600
|
+
'lex:chat.bsky.group.defs#invalidJoinLinkPreviewView',
|
|
12601
|
+
],
|
|
12572
12602
|
},
|
|
12573
12603
|
},
|
|
12574
12604
|
},
|