@atproto/api 0.20.3 → 0.20.5

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 (32) hide show
  1. package/CHANGELOG.md +16 -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 +182 -32
  8. package/dist/client/lexicons.d.ts.map +1 -1
  9. package/dist/client/lexicons.js +108 -19
  10. package/dist/client/lexicons.js.map +1 -1
  11. package/dist/client/types/app/bsky/embed/external.d.ts +3 -0
  12. package/dist/client/types/app/bsky/embed/external.d.ts.map +1 -1
  13. package/dist/client/types/app/bsky/embed/external.js.map +1 -1
  14. package/dist/client/types/chat/bsky/convo/defs.d.ts +4 -0
  15. package/dist/client/types/chat/bsky/convo/defs.d.ts.map +1 -1
  16. package/dist/client/types/chat/bsky/convo/defs.js.map +1 -1
  17. package/dist/client/types/chat/bsky/convo/listConvoRequests.d.ts +1 -1
  18. package/dist/client/types/chat/bsky/convo/listConvoRequests.d.ts.map +1 -1
  19. package/dist/client/types/chat/bsky/convo/listConvoRequests.js.map +1 -1
  20. package/dist/client/types/chat/bsky/group/defs.d.ts +23 -0
  21. package/dist/client/types/chat/bsky/group/defs.d.ts.map +1 -1
  22. package/dist/client/types/chat/bsky/group/defs.js +14 -0
  23. package/dist/client/types/chat/bsky/group/defs.js.map +1 -1
  24. package/dist/client/types/chat/bsky/group/{getJoinLinkPreview.d.ts → getJoinLinkPreviews.d.ts} +4 -7
  25. package/dist/client/types/chat/bsky/group/getJoinLinkPreviews.d.ts.map +1 -0
  26. package/dist/client/types/chat/bsky/group/getJoinLinkPreviews.js +8 -0
  27. package/dist/client/types/chat/bsky/group/getJoinLinkPreviews.js.map +1 -0
  28. package/package.json +1 -1
  29. package/tsconfig.build.tsbuildinfo +1 -1
  30. package/dist/client/types/chat/bsky/group/getJoinLinkPreview.d.ts.map +0 -1
  31. package/dist/client/types/chat/bsky/group/getJoinLinkPreview.js +0 -21
  32. package/dist/client/types/chat/bsky/group/getJoinLinkPreview.js.map +0 -1
@@ -2668,6 +2668,14 @@ export const schemaDict = {
2668
2668
  },
2669
2669
  description: 'StrongRefs (uri+cid) of the Atmosphere records that backed this view.',
2670
2670
  },
2671
+ associatedProfiles: {
2672
+ type: 'array',
2673
+ items: {
2674
+ type: 'ref',
2675
+ ref: 'lex:app.bsky.actor.defs#profileViewBasic',
2676
+ },
2677
+ description: 'Profiles of the owners of the Atmosphere records that backed this view.',
2678
+ },
2671
2679
  },
2672
2680
  },
2673
2681
  viewExternalSource: {
@@ -10206,10 +10214,18 @@ export const schemaDict = {
10206
10214
  type: 'string',
10207
10215
  format: 'datetime',
10208
10216
  },
10217
+ joinRequestCount: {
10218
+ type: 'integer',
10219
+ description: 'The total number of pending join requests for the group conversation. Only present for the owner. Capped at 21.',
10220
+ },
10209
10221
  joinLink: {
10210
10222
  type: 'ref',
10211
10223
  ref: 'lex:chat.bsky.group.defs#joinLinkView',
10212
10224
  },
10225
+ memberLimit: {
10226
+ type: 'integer',
10227
+ description: 'The maximum number of members allowed in the group conversation.',
10228
+ },
10213
10229
  lockStatus: {
10214
10230
  description: 'The lock status of the conversation.',
10215
10231
  type: 'ref',
@@ -11184,7 +11200,7 @@ export const schemaDict = {
11184
11200
  defs: {
11185
11201
  main: {
11186
11202
  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.',
11203
+ 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
11204
  parameters: {
11189
11205
  type: 'params',
11190
11206
  properties: {
@@ -11214,7 +11230,7 @@ export const schemaDict = {
11214
11230
  type: 'union',
11215
11231
  refs: [
11216
11232
  'lex:chat.bsky.convo.defs#convoView',
11217
- 'lex:chat.bsky.group.defs#joinRequestView',
11233
+ 'lex:chat.bsky.group.defs#joinRequestConvoView',
11218
11234
  ],
11219
11235
  },
11220
11236
  },
@@ -11994,8 +12010,20 @@ export const schemaDict = {
11994
12010
  },
11995
12011
  joinLinkPreviewView: {
11996
12012
  type: 'object',
11997
- required: ['name', 'owner', 'memberCount', 'requireApproval'],
12013
+ required: [
12014
+ 'code',
12015
+ 'name',
12016
+ 'owner',
12017
+ 'memberCount',
12018
+ 'memberLimit',
12019
+ 'requireApproval',
12020
+ 'joinRule',
12021
+ 'enabledStatus',
12022
+ ],
11998
12023
  properties: {
12024
+ code: {
12025
+ type: 'string',
12026
+ },
11999
12027
  name: {
12000
12028
  type: 'string',
12001
12029
  },
@@ -12006,14 +12034,38 @@ export const schemaDict = {
12006
12034
  memberCount: {
12007
12035
  type: 'integer',
12008
12036
  },
12037
+ memberLimit: {
12038
+ type: 'integer',
12039
+ },
12009
12040
  requireApproval: {
12010
12041
  type: 'boolean',
12011
12042
  },
12043
+ joinRule: {
12044
+ type: 'ref',
12045
+ ref: 'lex:chat.bsky.group.defs#joinRule',
12046
+ },
12047
+ enabledStatus: {
12048
+ type: 'ref',
12049
+ ref: 'lex:chat.bsky.group.defs#linkEnabledStatus',
12050
+ },
12012
12051
  convo: {
12013
12052
  type: 'ref',
12014
12053
  ref: 'lex:chat.bsky.convo.defs#convoView',
12015
12054
  description: 'Present only if the request is authenticated and the user is a member of the group.',
12016
12055
  },
12056
+ viewer: {
12057
+ type: 'ref',
12058
+ ref: 'lex:chat.bsky.group.defs#joinLinkViewerState',
12059
+ },
12060
+ },
12061
+ },
12062
+ joinLinkViewerState: {
12063
+ type: 'object',
12064
+ properties: {
12065
+ requestedAt: {
12066
+ type: 'string',
12067
+ format: 'datetime',
12068
+ },
12017
12069
  },
12018
12070
  },
12019
12071
  joinRequestView: {
@@ -12033,6 +12085,40 @@ export const schemaDict = {
12033
12085
  },
12034
12086
  },
12035
12087
  },
12088
+ joinRequestConvoView: {
12089
+ 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).',
12090
+ type: 'object',
12091
+ required: [
12092
+ 'convoId',
12093
+ 'name',
12094
+ 'owner',
12095
+ 'memberCount',
12096
+ 'memberLimit',
12097
+ 'requestedAt',
12098
+ ],
12099
+ properties: {
12100
+ convoId: {
12101
+ type: 'string',
12102
+ },
12103
+ name: {
12104
+ type: 'string',
12105
+ },
12106
+ owner: {
12107
+ type: 'ref',
12108
+ ref: 'lex:chat.bsky.actor.defs#profileViewBasic',
12109
+ },
12110
+ memberCount: {
12111
+ type: 'integer',
12112
+ },
12113
+ memberLimit: {
12114
+ type: 'integer',
12115
+ },
12116
+ requestedAt: {
12117
+ type: 'string',
12118
+ format: 'datetime',
12119
+ },
12120
+ },
12121
+ },
12036
12122
  },
12037
12123
  },
12038
12124
  ChatBskyGroupDisableJoinLink: {
@@ -12235,24 +12321,24 @@ export const schemaDict = {
12235
12321
  },
12236
12322
  },
12237
12323
  },
12238
- ChatBskyGroupGetJoinLinkPreview: {
12324
+ ChatBskyGroupGetJoinLinkPreviews: {
12239
12325
  lexicon: 1,
12240
- id: 'chat.bsky.group.getJoinLinkPreview',
12326
+ id: 'chat.bsky.group.getJoinLinkPreviews',
12241
12327
  defs: {
12242
12328
  main: {
12243
12329
  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
- ],
12330
+ 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
12331
  parameters: {
12251
12332
  type: 'params',
12252
- required: ['code'],
12333
+ required: ['codes'],
12253
12334
  properties: {
12254
- code: {
12255
- type: 'string',
12335
+ codes: {
12336
+ type: 'array',
12337
+ minLength: 1,
12338
+ maxLength: 50,
12339
+ items: {
12340
+ type: 'string',
12341
+ },
12256
12342
  },
12257
12343
  },
12258
12344
  },
@@ -12260,11 +12346,14 @@ export const schemaDict = {
12260
12346
  encoding: 'application/json',
12261
12347
  schema: {
12262
12348
  type: 'object',
12263
- required: ['joinLinkPreview'],
12349
+ required: ['joinLinkPreviews'],
12264
12350
  properties: {
12265
- joinLinkPreview: {
12266
- type: 'ref',
12267
- ref: 'lex:chat.bsky.group.defs#joinLinkPreviewView',
12351
+ joinLinkPreviews: {
12352
+ type: 'array',
12353
+ items: {
12354
+ type: 'ref',
12355
+ ref: 'lex:chat.bsky.group.defs#joinLinkPreviewView',
12356
+ },
12268
12357
  },
12269
12358
  },
12270
12359
  },
@@ -24836,7 +24925,7 @@ export const ids = {
24836
24925
  ChatBskyGroupEditGroup: 'chat.bsky.group.editGroup',
24837
24926
  ChatBskyGroupEditJoinLink: 'chat.bsky.group.editJoinLink',
24838
24927
  ChatBskyGroupEnableJoinLink: 'chat.bsky.group.enableJoinLink',
24839
- ChatBskyGroupGetJoinLinkPreview: 'chat.bsky.group.getJoinLinkPreview',
24928
+ ChatBskyGroupGetJoinLinkPreviews: 'chat.bsky.group.getJoinLinkPreviews',
24840
24929
  ChatBskyGroupListJoinRequests: 'chat.bsky.group.listJoinRequests',
24841
24930
  ChatBskyGroupListMutualGroups: 'chat.bsky.group.listMutualGroups',
24842
24931
  ChatBskyGroupRejectJoinRequest: 'chat.bsky.group.rejectJoinRequest',