@atproto/api 0.20.3 → 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.
Files changed (29) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +4 -0
  3. package/dist/client/index.d.ts +3 -3
  4. package/dist/client/index.d.ts.map +1 -1
  5. package/dist/client/index.js +3 -8
  6. package/dist/client/index.js.map +1 -1
  7. package/dist/client/lexicons.d.ts +158 -32
  8. package/dist/client/lexicons.d.ts.map +1 -1
  9. package/dist/client/lexicons.js +96 -19
  10. package/dist/client/lexicons.js.map +1 -1
  11. package/dist/client/types/chat/bsky/convo/defs.d.ts +2 -0
  12. package/dist/client/types/chat/bsky/convo/defs.d.ts.map +1 -1
  13. package/dist/client/types/chat/bsky/convo/defs.js.map +1 -1
  14. package/dist/client/types/chat/bsky/convo/listConvoRequests.d.ts +1 -1
  15. package/dist/client/types/chat/bsky/convo/listConvoRequests.d.ts.map +1 -1
  16. package/dist/client/types/chat/bsky/convo/listConvoRequests.js.map +1 -1
  17. package/dist/client/types/chat/bsky/group/defs.d.ts +23 -0
  18. package/dist/client/types/chat/bsky/group/defs.d.ts.map +1 -1
  19. package/dist/client/types/chat/bsky/group/defs.js +14 -0
  20. package/dist/client/types/chat/bsky/group/defs.js.map +1 -1
  21. package/dist/client/types/chat/bsky/group/{getJoinLinkPreview.d.ts → getJoinLinkPreviews.d.ts} +4 -7
  22. package/dist/client/types/chat/bsky/group/getJoinLinkPreviews.d.ts.map +1 -0
  23. package/dist/client/types/chat/bsky/group/getJoinLinkPreviews.js +8 -0
  24. package/dist/client/types/chat/bsky/group/getJoinLinkPreviews.js.map +1 -0
  25. package/package.json +2 -2
  26. package/tsconfig.build.tsbuildinfo +1 -1
  27. package/dist/client/types/chat/bsky/group/getJoinLinkPreview.d.ts.map +0 -1
  28. package/dist/client/types/chat/bsky/group/getJoinLinkPreview.js +0 -21
  29. package/dist/client/types/chat/bsky/group/getJoinLinkPreview.js.map +0 -1
@@ -10206,6 +10206,10 @@ export const schemaDict = {
10206
10206
  type: 'string',
10207
10207
  format: 'datetime',
10208
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
+ },
10209
10213
  joinLink: {
10210
10214
  type: 'ref',
10211
10215
  ref: 'lex:chat.bsky.group.defs#joinLinkView',
@@ -11184,7 +11188,7 @@ export const schemaDict = {
11184
11188
  defs: {
11185
11189
  main: {
11186
11190
  type: 'query',
11187
- 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 joinRequestView.',
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.',
11188
11192
  parameters: {
11189
11193
  type: 'params',
11190
11194
  properties: {
@@ -11214,7 +11218,7 @@ export const schemaDict = {
11214
11218
  type: 'union',
11215
11219
  refs: [
11216
11220
  'lex:chat.bsky.convo.defs#convoView',
11217
- 'lex:chat.bsky.group.defs#joinRequestView',
11221
+ 'lex:chat.bsky.group.defs#joinRequestConvoView',
11218
11222
  ],
11219
11223
  },
11220
11224
  },
@@ -11994,8 +11998,20 @@ export const schemaDict = {
11994
11998
  },
11995
11999
  joinLinkPreviewView: {
11996
12000
  type: 'object',
11997
- required: ['name', 'owner', 'memberCount', 'requireApproval'],
12001
+ required: [
12002
+ 'code',
12003
+ 'name',
12004
+ 'owner',
12005
+ 'memberCount',
12006
+ 'memberLimit',
12007
+ 'requireApproval',
12008
+ 'joinRule',
12009
+ 'enabledStatus',
12010
+ ],
11998
12011
  properties: {
12012
+ code: {
12013
+ type: 'string',
12014
+ },
11999
12015
  name: {
12000
12016
  type: 'string',
12001
12017
  },
@@ -12006,14 +12022,38 @@ export const schemaDict = {
12006
12022
  memberCount: {
12007
12023
  type: 'integer',
12008
12024
  },
12025
+ memberLimit: {
12026
+ type: 'integer',
12027
+ },
12009
12028
  requireApproval: {
12010
12029
  type: 'boolean',
12011
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
+ },
12012
12039
  convo: {
12013
12040
  type: 'ref',
12014
12041
  ref: 'lex:chat.bsky.convo.defs#convoView',
12015
12042
  description: 'Present only if the request is authenticated and the user is a member of the group.',
12016
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
+ },
12017
12057
  },
12018
12058
  },
12019
12059
  joinRequestView: {
@@ -12033,6 +12073,40 @@ export const schemaDict = {
12033
12073
  },
12034
12074
  },
12035
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
+ },
12036
12110
  },
12037
12111
  },
12038
12112
  ChatBskyGroupDisableJoinLink: {
@@ -12235,24 +12309,24 @@ export const schemaDict = {
12235
12309
  },
12236
12310
  },
12237
12311
  },
12238
- ChatBskyGroupGetJoinLinkPreview: {
12312
+ ChatBskyGroupGetJoinLinkPreviews: {
12239
12313
  lexicon: 1,
12240
- id: 'chat.bsky.group.getJoinLinkPreview',
12314
+ id: 'chat.bsky.group.getJoinLinkPreviews',
12241
12315
  defs: {
12242
12316
  main: {
12243
12317
  type: 'query',
12244
- description: '[NOTE: This is under active development and should be considered unstable while this note is here]. Get public information about a group from an join link.',
12245
- errors: [
12246
- {
12247
- name: 'InvalidCode',
12248
- },
12249
- ],
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.',
12250
12319
  parameters: {
12251
12320
  type: 'params',
12252
- required: ['code'],
12321
+ required: ['codes'],
12253
12322
  properties: {
12254
- code: {
12255
- type: 'string',
12323
+ codes: {
12324
+ type: 'array',
12325
+ minLength: 1,
12326
+ maxLength: 50,
12327
+ items: {
12328
+ type: 'string',
12329
+ },
12256
12330
  },
12257
12331
  },
12258
12332
  },
@@ -12260,11 +12334,14 @@ export const schemaDict = {
12260
12334
  encoding: 'application/json',
12261
12335
  schema: {
12262
12336
  type: 'object',
12263
- required: ['joinLinkPreview'],
12337
+ required: ['joinLinkPreviews'],
12264
12338
  properties: {
12265
- joinLinkPreview: {
12266
- type: 'ref',
12267
- ref: 'lex:chat.bsky.group.defs#joinLinkPreviewView',
12339
+ joinLinkPreviews: {
12340
+ type: 'array',
12341
+ items: {
12342
+ type: 'ref',
12343
+ ref: 'lex:chat.bsky.group.defs#joinLinkPreviewView',
12344
+ },
12268
12345
  },
12269
12346
  },
12270
12347
  },
@@ -24836,7 +24913,7 @@ export const ids = {
24836
24913
  ChatBskyGroupEditGroup: 'chat.bsky.group.editGroup',
24837
24914
  ChatBskyGroupEditJoinLink: 'chat.bsky.group.editJoinLink',
24838
24915
  ChatBskyGroupEnableJoinLink: 'chat.bsky.group.enableJoinLink',
24839
- ChatBskyGroupGetJoinLinkPreview: 'chat.bsky.group.getJoinLinkPreview',
24916
+ ChatBskyGroupGetJoinLinkPreviews: 'chat.bsky.group.getJoinLinkPreviews',
24840
24917
  ChatBskyGroupListJoinRequests: 'chat.bsky.group.listJoinRequests',
24841
24918
  ChatBskyGroupListMutualGroups: 'chat.bsky.group.listMutualGroups',
24842
24919
  ChatBskyGroupRejectJoinRequest: 'chat.bsky.group.rejectJoinRequest',