@atcute/bluesky 3.3.3 → 3.3.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 (41) hide show
  1. package/dist/lexicons/index.d.ts +1 -0
  2. package/dist/lexicons/index.d.ts.map +1 -1
  3. package/dist/lexicons/index.js +1 -0
  4. package/dist/lexicons/index.js.map +1 -1
  5. package/dist/lexicons/types/app/bsky/actor/defs.d.ts +1 -0
  6. package/dist/lexicons/types/app/bsky/actor/defs.d.ts.map +1 -1
  7. package/dist/lexicons/types/app/bsky/actor/defs.js +2 -0
  8. package/dist/lexicons/types/app/bsky/actor/defs.js.map +1 -1
  9. package/dist/lexicons/types/app/bsky/embed/external.d.ts +4 -0
  10. package/dist/lexicons/types/app/bsky/embed/external.d.ts.map +1 -1
  11. package/dist/lexicons/types/app/bsky/embed/external.js +4 -0
  12. package/dist/lexicons/types/app/bsky/embed/external.js.map +1 -1
  13. package/dist/lexicons/types/chat/bsky/actor/defs.d.ts +10 -1
  14. package/dist/lexicons/types/chat/bsky/actor/defs.d.ts.map +1 -1
  15. package/dist/lexicons/types/chat/bsky/actor/defs.js +5 -1
  16. package/dist/lexicons/types/chat/bsky/actor/defs.js.map +1 -1
  17. package/dist/lexicons/types/chat/bsky/convo/defs.d.ts +114 -23
  18. package/dist/lexicons/types/chat/bsky/convo/defs.d.ts.map +1 -1
  19. package/dist/lexicons/types/chat/bsky/convo/defs.js +129 -23
  20. package/dist/lexicons/types/chat/bsky/convo/defs.js.map +1 -1
  21. package/dist/lexicons/types/chat/bsky/convo/getConvoMembers.d.ts +33 -0
  22. package/dist/lexicons/types/chat/bsky/convo/getConvoMembers.d.ts.map +1 -0
  23. package/dist/lexicons/types/chat/bsky/convo/getConvoMembers.js +26 -0
  24. package/dist/lexicons/types/chat/bsky/convo/getConvoMembers.js.map +1 -0
  25. package/dist/lexicons/types/chat/bsky/convo/getMessages.d.ts +5 -0
  26. package/dist/lexicons/types/chat/bsky/convo/getMessages.d.ts.map +1 -1
  27. package/dist/lexicons/types/chat/bsky/convo/getMessages.js +7 -0
  28. package/dist/lexicons/types/chat/bsky/convo/getMessages.js.map +1 -1
  29. package/dist/lexicons/types/chat/bsky/group/addMembers.d.ts +2 -0
  30. package/dist/lexicons/types/chat/bsky/group/addMembers.d.ts.map +1 -1
  31. package/dist/lexicons/types/chat/bsky/group/addMembers.js +4 -0
  32. package/dist/lexicons/types/chat/bsky/group/addMembers.js.map +1 -1
  33. package/lib/lexicons/index.ts +1 -0
  34. package/lib/lexicons/types/app/bsky/actor/defs.ts +3 -0
  35. package/lib/lexicons/types/app/bsky/embed/external.ts +4 -0
  36. package/lib/lexicons/types/chat/bsky/actor/defs.ts +8 -1
  37. package/lib/lexicons/types/chat/bsky/convo/defs.ts +133 -23
  38. package/lib/lexicons/types/chat/bsky/convo/getConvoMembers.ts +45 -0
  39. package/lib/lexicons/types/chat/bsky/convo/getMessages.ts +8 -0
  40. package/lib/lexicons/types/chat/bsky/group/addMembers.ts +4 -0
  41. package/package.json +11 -7
@@ -3,6 +3,10 @@ import * as v from '@atcute/lexicons/validations';
3
3
 
4
4
  const _externalSchema = /*#__PURE__*/ v.object({
5
5
  $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.embed.external#external')),
6
+ /**
7
+ * The URI of the Atmosphere record representing this external content, if it exists. Example: a site.standard.document record.
8
+ */
9
+ associatedRecord: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()),
6
10
  description: /*#__PURE__*/ v.string(),
7
11
  /**
8
12
  * @accept image/*
@@ -23,6 +23,9 @@ const _groupConvoMemberSchema = /*#__PURE__*/ v.object({
23
23
  },
24
24
  });
25
25
  const _memberRoleSchema = /*#__PURE__*/ v.string<'owner' | 'standard' | (string & {})>();
26
+ const _pastGroupConvoMemberSchema = /*#__PURE__*/ v.object({
27
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.actor.defs#pastGroupConvoMember')),
28
+ });
26
29
  const _profileViewBasicSchema = /*#__PURE__*/ v.object({
27
30
  $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.actor.defs#profileViewBasic')),
28
31
  get associated() {
@@ -51,7 +54,7 @@ const _profileViewBasicSchema = /*#__PURE__*/ v.object({
51
54
  */
52
55
  get kind() {
53
56
  return /*#__PURE__*/ v.optional(
54
- /*#__PURE__*/ v.variant([directConvoMemberSchema, groupConvoMemberSchema]),
57
+ /*#__PURE__*/ v.variant([directConvoMemberSchema, groupConvoMemberSchema, pastGroupConvoMemberSchema]),
55
58
  );
56
59
  },
57
60
  get labels() {
@@ -68,19 +71,23 @@ const _profileViewBasicSchema = /*#__PURE__*/ v.object({
68
71
  type directConvoMember$schematype = typeof _directConvoMemberSchema;
69
72
  type groupConvoMember$schematype = typeof _groupConvoMemberSchema;
70
73
  type memberRole$schematype = typeof _memberRoleSchema;
74
+ type pastGroupConvoMember$schematype = typeof _pastGroupConvoMemberSchema;
71
75
  type profileViewBasic$schematype = typeof _profileViewBasicSchema;
72
76
 
73
77
  export interface directConvoMemberSchema extends directConvoMember$schematype {}
74
78
  export interface groupConvoMemberSchema extends groupConvoMember$schematype {}
75
79
  export interface memberRoleSchema extends memberRole$schematype {}
80
+ export interface pastGroupConvoMemberSchema extends pastGroupConvoMember$schematype {}
76
81
  export interface profileViewBasicSchema extends profileViewBasic$schematype {}
77
82
 
78
83
  export const directConvoMemberSchema = _directConvoMemberSchema as directConvoMemberSchema;
79
84
  export const groupConvoMemberSchema = _groupConvoMemberSchema as groupConvoMemberSchema;
80
85
  export const memberRoleSchema = _memberRoleSchema as memberRoleSchema;
86
+ export const pastGroupConvoMemberSchema = _pastGroupConvoMemberSchema as pastGroupConvoMemberSchema;
81
87
  export const profileViewBasicSchema = _profileViewBasicSchema as profileViewBasicSchema;
82
88
 
83
89
  export interface DirectConvoMember extends v.InferInput<typeof directConvoMemberSchema> {}
84
90
  export interface GroupConvoMember extends v.InferInput<typeof groupConvoMemberSchema> {}
85
91
  export type MemberRole = v.InferInput<typeof memberRoleSchema>;
92
+ export interface PastGroupConvoMember extends v.InferInput<typeof pastGroupConvoMemberSchema> {}
86
93
  export interface ProfileViewBasic extends v.InferInput<typeof profileViewBasicSchema> {}
@@ -29,7 +29,7 @@ const _convoViewSchema = /*#__PURE__*/ v.object({
29
29
  return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([messageAndReactionViewSchema]));
30
30
  },
31
31
  /**
32
- * Members of this conversation. For direct convos, it will be an immutable list of the 2 members. For group convos, it will a list of important members (the first few members, the viewer, the member who invited the viewer, the member who sent the last message, the member who sent the last reaction), but will not contain the full list of members. NOTE: TBD an endpoint to list all members.
32
+ * Members of this conversation. For direct convos, it will be an immutable list of the 2 members. For group convos, it will a list of important members (the first few members, the viewer, the member who invited the viewer, the member who sent the last message, the member who sent the last reaction), but will not contain the full list of members. Use chat.bsky.convo.getConvoMembers to list all members.
33
33
  */
34
34
  get members() {
35
35
  return /*#__PURE__*/ v.array(ChatBskyActorDefs.profileViewBasicSchema);
@@ -58,6 +58,7 @@ const _directConvoSchema = /*#__PURE__*/ v.object({
58
58
  });
59
59
  const _groupConvoSchema = /*#__PURE__*/ v.object({
60
60
  $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#groupConvo')),
61
+ createdAt: /*#__PURE__*/ v.datetimeString(),
61
62
  get joinLink() {
62
63
  return /*#__PURE__*/ v.optional(ChatBskyGroupDefs.joinLinkViewSchema);
63
64
  },
@@ -67,6 +68,10 @@ const _groupConvoSchema = /*#__PURE__*/ v.object({
67
68
  get lockStatus() {
68
69
  return convoLockStatusSchema;
69
70
  },
71
+ /**
72
+ * The total number of members in the group conversation.
73
+ */
74
+ memberCount: /*#__PURE__*/ v.integer(),
70
75
  /**
71
76
  * The display name of the group conversation.
72
77
  * @maxLength 1280
@@ -85,8 +90,17 @@ const _logAcceptConvoSchema = /*#__PURE__*/ v.object({
85
90
  const _logAddMemberSchema = /*#__PURE__*/ v.object({
86
91
  $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logAddMember')),
87
92
  convoId: /*#__PURE__*/ v.string(),
93
+ /**
94
+ * A system message with data of type #systemMessageDataAddMember
95
+ */
88
96
  get message() {
89
- return systemMessageDataAddMemberSchema;
97
+ return systemMessageViewSchema;
98
+ },
99
+ /**
100
+ * Profiles referred in the system message.
101
+ */
102
+ get relatedProfiles() {
103
+ return /*#__PURE__*/ v.array(ChatBskyActorDefs.profileViewBasicSchema);
90
104
  },
91
105
  rev: /*#__PURE__*/ v.string(),
92
106
  });
@@ -99,6 +113,12 @@ const _logAddReactionSchema = /*#__PURE__*/ v.object({
99
113
  get reaction() {
100
114
  return reactionViewSchema;
101
115
  },
116
+ /**
117
+ * Profiles referred in the message and reaction views. This isn't required for compatibility, because it was added later, but should generally be present.
118
+ */
119
+ get relatedProfiles() {
120
+ return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ChatBskyActorDefs.profileViewBasicSchema));
121
+ },
102
122
  rev: /*#__PURE__*/ v.string(),
103
123
  });
104
124
  const _logApproveJoinRequestSchema = /*#__PURE__*/ v.object({
@@ -120,8 +140,11 @@ const _logBeginConvoSchema = /*#__PURE__*/ v.object({
120
140
  const _logCreateJoinLinkSchema = /*#__PURE__*/ v.object({
121
141
  $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logCreateJoinLink')),
122
142
  convoId: /*#__PURE__*/ v.string(),
143
+ /**
144
+ * A system message with data of type #systemMessageDataCreateJoinLink
145
+ */
123
146
  get message() {
124
- return systemMessageDataCreateJoinLinkSchema;
147
+ return systemMessageViewSchema;
125
148
  },
126
149
  rev: /*#__PURE__*/ v.string(),
127
150
  });
@@ -131,6 +154,12 @@ const _logCreateMessageSchema = /*#__PURE__*/ v.object({
131
154
  get message() {
132
155
  return /*#__PURE__*/ v.variant([deletedMessageViewSchema, messageViewSchema]);
133
156
  },
157
+ /**
158
+ * Profiles referred to in the message view. This isn't required for compatibility, because it was added later, but should generally be present.
159
+ */
160
+ get relatedProfiles() {
161
+ return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ChatBskyActorDefs.profileViewBasicSchema));
162
+ },
134
163
  rev: /*#__PURE__*/ v.string(),
135
164
  });
136
165
  const _logDeleteMessageSchema = /*#__PURE__*/ v.object({
@@ -144,32 +173,44 @@ const _logDeleteMessageSchema = /*#__PURE__*/ v.object({
144
173
  const _logDisableJoinLinkSchema = /*#__PURE__*/ v.object({
145
174
  $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logDisableJoinLink')),
146
175
  convoId: /*#__PURE__*/ v.string(),
176
+ /**
177
+ * A system message with data of type #systemMessageDataDisableJoinLink
178
+ */
147
179
  get message() {
148
- return systemMessageDataDisableJoinLinkSchema;
180
+ return systemMessageViewSchema;
149
181
  },
150
182
  rev: /*#__PURE__*/ v.string(),
151
183
  });
152
184
  const _logEditGroupSchema = /*#__PURE__*/ v.object({
153
185
  $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logEditGroup')),
154
186
  convoId: /*#__PURE__*/ v.string(),
187
+ /**
188
+ * A system message with data of type #systemMessageDataEditGroup
189
+ */
155
190
  get message() {
156
- return systemMessageDataEditGroupSchema;
191
+ return systemMessageViewSchema;
157
192
  },
158
193
  rev: /*#__PURE__*/ v.string(),
159
194
  });
160
195
  const _logEditJoinLinkSchema = /*#__PURE__*/ v.object({
161
196
  $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logEditJoinLink')),
162
197
  convoId: /*#__PURE__*/ v.string(),
198
+ /**
199
+ * A system message with data of type #systemMessageDataEditJoinLink
200
+ */
163
201
  get message() {
164
- return systemMessageDataEditJoinLinkSchema;
202
+ return systemMessageViewSchema;
165
203
  },
166
204
  rev: /*#__PURE__*/ v.string(),
167
205
  });
168
206
  const _logEnableJoinLinkSchema = /*#__PURE__*/ v.object({
169
207
  $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logEnableJoinLink')),
170
208
  convoId: /*#__PURE__*/ v.string(),
209
+ /**
210
+ * A system message with data of type #systemMessageDataEnableJoinLink
211
+ */
171
212
  get message() {
172
- return systemMessageDataEnableJoinLinkSchema;
213
+ return systemMessageViewSchema;
173
214
  },
174
215
  rev: /*#__PURE__*/ v.string(),
175
216
  });
@@ -192,32 +233,68 @@ const _logLeaveConvoSchema = /*#__PURE__*/ v.object({
192
233
  const _logLockConvoSchema = /*#__PURE__*/ v.object({
193
234
  $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logLockConvo')),
194
235
  convoId: /*#__PURE__*/ v.string(),
236
+ /**
237
+ * A system message with data of type #systemMessageDataLockConvo
238
+ */
195
239
  get message() {
196
- return systemMessageDataLockConvoSchema;
240
+ return systemMessageViewSchema;
241
+ },
242
+ /**
243
+ * Profiles referred in the system message.
244
+ */
245
+ get relatedProfiles() {
246
+ return /*#__PURE__*/ v.array(ChatBskyActorDefs.profileViewBasicSchema);
197
247
  },
198
248
  rev: /*#__PURE__*/ v.string(),
199
249
  });
200
250
  const _logLockConvoPermanentlySchema = /*#__PURE__*/ v.object({
201
251
  $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logLockConvoPermanently')),
202
252
  convoId: /*#__PURE__*/ v.string(),
253
+ /**
254
+ * A system message with data of type #systemMessageDataLockConvoPermanently
255
+ */
203
256
  get message() {
204
- return systemMessageDataLockConvoPermanentlySchema;
257
+ return systemMessageViewSchema;
258
+ },
259
+ /**
260
+ * Profiles referred in the system message.
261
+ */
262
+ get relatedProfiles() {
263
+ return /*#__PURE__*/ v.array(ChatBskyActorDefs.profileViewBasicSchema);
205
264
  },
206
265
  rev: /*#__PURE__*/ v.string(),
207
266
  });
208
267
  const _logMemberJoinSchema = /*#__PURE__*/ v.object({
209
268
  $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logMemberJoin')),
210
269
  convoId: /*#__PURE__*/ v.string(),
270
+ /**
271
+ * A system message with data of type #systemMessageDataMemberJoin
272
+ */
211
273
  get message() {
212
- return systemMessageDataMemberJoinSchema;
274
+ return systemMessageViewSchema;
275
+ },
276
+ /**
277
+ * Profiles referred in the system message.
278
+ */
279
+ get relatedProfiles() {
280
+ return /*#__PURE__*/ v.array(ChatBskyActorDefs.profileViewBasicSchema);
213
281
  },
214
282
  rev: /*#__PURE__*/ v.string(),
215
283
  });
216
284
  const _logMemberLeaveSchema = /*#__PURE__*/ v.object({
217
285
  $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logMemberLeave')),
218
286
  convoId: /*#__PURE__*/ v.string(),
287
+ /**
288
+ * A system message with data of type #systemMessageDataMemberLeave
289
+ */
219
290
  get message() {
220
- return systemMessageDataMemberLeaveSchema;
291
+ return systemMessageViewSchema;
292
+ },
293
+ /**
294
+ * Profiles referred in the system message.
295
+ */
296
+ get relatedProfiles() {
297
+ return /*#__PURE__*/ v.array(ChatBskyActorDefs.profileViewBasicSchema);
221
298
  },
222
299
  rev: /*#__PURE__*/ v.string(),
223
300
  });
@@ -261,8 +338,17 @@ const _logRejectJoinRequestSchema = /*#__PURE__*/ v.object({
261
338
  const _logRemoveMemberSchema = /*#__PURE__*/ v.object({
262
339
  $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logRemoveMember')),
263
340
  convoId: /*#__PURE__*/ v.string(),
341
+ /**
342
+ * A system message with data of type #systemMessageDataRemoveMember
343
+ */
264
344
  get message() {
265
- return systemMessageDataRemoveMemberSchema;
345
+ return systemMessageViewSchema;
346
+ },
347
+ /**
348
+ * Profiles referred in the system message.
349
+ */
350
+ get relatedProfiles() {
351
+ return /*#__PURE__*/ v.array(ChatBskyActorDefs.profileViewBasicSchema);
266
352
  },
267
353
  rev: /*#__PURE__*/ v.string(),
268
354
  });
@@ -275,13 +361,28 @@ const _logRemoveReactionSchema = /*#__PURE__*/ v.object({
275
361
  get reaction() {
276
362
  return reactionViewSchema;
277
363
  },
364
+ /**
365
+ * Profiles referred in the message and reaction views. This isn't required for compatibility, because it was added later, but should generally be present.
366
+ */
367
+ get relatedProfiles() {
368
+ return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ChatBskyActorDefs.profileViewBasicSchema));
369
+ },
278
370
  rev: /*#__PURE__*/ v.string(),
279
371
  });
280
372
  const _logUnlockConvoSchema = /*#__PURE__*/ v.object({
281
373
  $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#logUnlockConvo')),
282
374
  convoId: /*#__PURE__*/ v.string(),
375
+ /**
376
+ * A system message with data of type #systemMessageDataUnlockConvo
377
+ */
283
378
  get message() {
284
- return systemMessageDataUnlockConvoSchema;
379
+ return systemMessageViewSchema;
380
+ },
381
+ /**
382
+ * Profiles referred in the system message.
383
+ */
384
+ get relatedProfiles() {
385
+ return /*#__PURE__*/ v.array(ChatBskyActorDefs.profileViewBasicSchema);
285
386
  },
286
387
  rev: /*#__PURE__*/ v.string(),
287
388
  });
@@ -376,13 +477,13 @@ const _reactionViewSenderSchema = /*#__PURE__*/ v.object({
376
477
  const _systemMessageDataAddMemberSchema = /*#__PURE__*/ v.object({
377
478
  $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#systemMessageDataAddMember')),
378
479
  get addedBy() {
379
- return ChatBskyActorDefs.profileViewBasicSchema;
480
+ return systemMessageReferredUserSchema;
380
481
  },
381
482
  /**
382
483
  * Current view of the member who was added.
383
484
  */
384
485
  get member() {
385
- return ChatBskyActorDefs.profileViewBasicSchema;
486
+ return systemMessageReferredUserSchema;
386
487
  },
387
488
  /**
388
489
  * Role the user was added to the group with. The role from 'member' will reflect the current data, not historical.
@@ -428,7 +529,7 @@ const _systemMessageDataLockConvoSchema = /*#__PURE__*/ v.object({
428
529
  * Current view of the member who locked the group.
429
530
  */
430
531
  get lockedBy() {
431
- return ChatBskyActorDefs.profileViewBasicSchema;
532
+ return systemMessageReferredUserSchema;
432
533
  },
433
534
  });
434
535
  const _systemMessageDataLockConvoPermanentlySchema = /*#__PURE__*/ v.object({
@@ -439,7 +540,7 @@ const _systemMessageDataLockConvoPermanentlySchema = /*#__PURE__*/ v.object({
439
540
  * Current view of the member who locked the group.
440
541
  */
441
542
  get lockedBy() {
442
- return ChatBskyActorDefs.profileViewBasicSchema;
543
+ return systemMessageReferredUserSchema;
443
544
  },
444
545
  });
445
546
  const _systemMessageDataMemberJoinSchema = /*#__PURE__*/ v.object({
@@ -450,13 +551,13 @@ const _systemMessageDataMemberJoinSchema = /*#__PURE__*/ v.object({
450
551
  * If join link was configured to require approval, this will be set to who approved the request. Undefined if approval was not required.
451
552
  */
452
553
  get approvedBy() {
453
- return /*#__PURE__*/ v.optional(ChatBskyActorDefs.profileViewBasicSchema);
554
+ return /*#__PURE__*/ v.optional(systemMessageReferredUserSchema);
454
555
  },
455
556
  /**
456
557
  * Current view of the member who joined.
457
558
  */
458
559
  get member() {
459
- return ChatBskyActorDefs.profileViewBasicSchema;
560
+ return systemMessageReferredUserSchema;
460
561
  },
461
562
  /**
462
563
  * Role the user was added to the group with. The role from 'member' will reflect the current data, not historical.
@@ -473,7 +574,7 @@ const _systemMessageDataMemberLeaveSchema = /*#__PURE__*/ v.object({
473
574
  * Current view of the member who left the group.
474
575
  */
475
576
  get member() {
476
- return ChatBskyActorDefs.profileViewBasicSchema;
577
+ return systemMessageReferredUserSchema;
477
578
  },
478
579
  });
479
580
  const _systemMessageDataRemoveMemberSchema = /*#__PURE__*/ v.object({
@@ -484,10 +585,10 @@ const _systemMessageDataRemoveMemberSchema = /*#__PURE__*/ v.object({
484
585
  * Current view of the member who was removed.
485
586
  */
486
587
  get member() {
487
- return ChatBskyActorDefs.profileViewBasicSchema;
588
+ return systemMessageReferredUserSchema;
488
589
  },
489
590
  get removedBy() {
490
- return ChatBskyActorDefs.profileViewBasicSchema;
591
+ return systemMessageReferredUserSchema;
491
592
  },
492
593
  });
493
594
  const _systemMessageDataUnlockConvoSchema = /*#__PURE__*/ v.object({
@@ -498,9 +599,13 @@ const _systemMessageDataUnlockConvoSchema = /*#__PURE__*/ v.object({
498
599
  * Current view of the member who unlocked the group.
499
600
  */
500
601
  get unlockedBy() {
501
- return ChatBskyActorDefs.profileViewBasicSchema;
602
+ return systemMessageReferredUserSchema;
502
603
  },
503
604
  });
605
+ const _systemMessageReferredUserSchema = /*#__PURE__*/ v.object({
606
+ $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#systemMessageReferredUser')),
607
+ did: /*#__PURE__*/ v.didString(),
608
+ });
504
609
  const _systemMessageViewSchema = /*#__PURE__*/ v.object({
505
610
  $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('chat.bsky.convo.defs#systemMessageView')),
506
611
  get data() {
@@ -577,6 +682,7 @@ type systemMessageDataMemberJoin$schematype = typeof _systemMessageDataMemberJoi
577
682
  type systemMessageDataMemberLeave$schematype = typeof _systemMessageDataMemberLeaveSchema;
578
683
  type systemMessageDataRemoveMember$schematype = typeof _systemMessageDataRemoveMemberSchema;
579
684
  type systemMessageDataUnlockConvo$schematype = typeof _systemMessageDataUnlockConvoSchema;
685
+ type systemMessageReferredUser$schematype = typeof _systemMessageReferredUserSchema;
580
686
  type systemMessageView$schematype = typeof _systemMessageViewSchema;
581
687
 
582
688
  export interface convoKindSchema extends convoKind$schematype {}
@@ -632,6 +738,7 @@ export interface systemMessageDataMemberJoinSchema extends systemMessageDataMemb
632
738
  export interface systemMessageDataMemberLeaveSchema extends systemMessageDataMemberLeave$schematype {}
633
739
  export interface systemMessageDataRemoveMemberSchema extends systemMessageDataRemoveMember$schematype {}
634
740
  export interface systemMessageDataUnlockConvoSchema extends systemMessageDataUnlockConvo$schematype {}
741
+ export interface systemMessageReferredUserSchema extends systemMessageReferredUser$schematype {}
635
742
  export interface systemMessageViewSchema extends systemMessageView$schematype {}
636
743
 
637
744
  export const convoKindSchema = _convoKindSchema as convoKindSchema;
@@ -699,6 +806,8 @@ export const systemMessageDataRemoveMemberSchema =
699
806
  _systemMessageDataRemoveMemberSchema as systemMessageDataRemoveMemberSchema;
700
807
  export const systemMessageDataUnlockConvoSchema =
701
808
  _systemMessageDataUnlockConvoSchema as systemMessageDataUnlockConvoSchema;
809
+ export const systemMessageReferredUserSchema =
810
+ _systemMessageReferredUserSchema as systemMessageReferredUserSchema;
702
811
  export const systemMessageViewSchema = _systemMessageViewSchema as systemMessageViewSchema;
703
812
 
704
813
  export type ConvoKind = v.InferInput<typeof convoKindSchema>;
@@ -770,4 +879,5 @@ export interface SystemMessageDataRemoveMember extends v.InferInput<
770
879
  export interface SystemMessageDataUnlockConvo extends v.InferInput<
771
880
  typeof systemMessageDataUnlockConvoSchema
772
881
  > {}
882
+ export interface SystemMessageReferredUser extends v.InferInput<typeof systemMessageReferredUserSchema> {}
773
883
  export interface SystemMessageView extends v.InferInput<typeof systemMessageViewSchema> {}
@@ -0,0 +1,45 @@
1
+ import type {} from '@atcute/lexicons';
2
+ import type {} from '@atcute/lexicons/ambient';
3
+ import * as v from '@atcute/lexicons/validations';
4
+
5
+ import * as ChatBskyActorDefs from '../actor/defs.ts';
6
+
7
+ const _mainSchema = /*#__PURE__*/ v.query('chat.bsky.convo.getConvoMembers', {
8
+ params: /*#__PURE__*/ v.object({
9
+ convoId: /*#__PURE__*/ v.string(),
10
+ cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
11
+ /**
12
+ * @minimum 1
13
+ * @maximum 100
14
+ * @default 50
15
+ */
16
+ limit: /*#__PURE__*/ v.optional(
17
+ /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]),
18
+ 50,
19
+ ),
20
+ }),
21
+ output: {
22
+ type: 'lex',
23
+ schema: /*#__PURE__*/ v.object({
24
+ cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
25
+ get members() {
26
+ return /*#__PURE__*/ v.array(ChatBskyActorDefs.profileViewBasicSchema);
27
+ },
28
+ }),
29
+ },
30
+ });
31
+
32
+ type main$schematype = typeof _mainSchema;
33
+
34
+ export interface mainSchema extends main$schematype {}
35
+
36
+ export const mainSchema = _mainSchema as mainSchema;
37
+
38
+ export interface $params extends v.InferInput<mainSchema['params']> {}
39
+ export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
40
+
41
+ declare module '@atcute/lexicons/ambient' {
42
+ interface XRPCQueries {
43
+ 'chat.bsky.convo.getConvoMembers': mainSchema;
44
+ }
45
+ }
@@ -2,6 +2,8 @@ import type {} from '@atcute/lexicons';
2
2
  import type {} from '@atcute/lexicons/ambient';
3
3
  import * as v from '@atcute/lexicons/validations';
4
4
 
5
+ import * as ChatBskyActorDefs from '../actor/defs.ts';
6
+
5
7
  import * as ChatBskyConvoDefs from './defs.ts';
6
8
 
7
9
  const _mainSchema = /*#__PURE__*/ v.query('chat.bsky.convo.getMessages', {
@@ -31,6 +33,12 @@ const _mainSchema = /*#__PURE__*/ v.query('chat.bsky.convo.getMessages', {
31
33
  ]),
32
34
  );
33
35
  },
36
+ /**
37
+ * Set of all members who authored or reacted to the returned messages. Members referred to by system messages are also included.
38
+ */
39
+ get relatedProfiles() {
40
+ return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ChatBskyActorDefs.profileViewBasicSchema));
41
+ },
34
42
  }),
35
43
  },
36
44
  });
@@ -2,6 +2,7 @@ import type {} from '@atcute/lexicons';
2
2
  import type {} from '@atcute/lexicons/ambient';
3
3
  import * as v from '@atcute/lexicons/validations';
4
4
 
5
+ import * as ChatBskyActorDefs from '../actor/defs.ts';
5
6
  import * as ChatBskyConvoDefs from '../convo/defs.ts';
6
7
 
7
8
  const _mainSchema = /*#__PURE__*/ v.procedure('chat.bsky.group.addMembers', {
@@ -21,6 +22,9 @@ const _mainSchema = /*#__PURE__*/ v.procedure('chat.bsky.group.addMembers', {
21
22
  output: {
22
23
  type: 'lex',
23
24
  schema: /*#__PURE__*/ v.object({
25
+ get addedMembers() {
26
+ return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(ChatBskyActorDefs.profileViewBasicSchema));
27
+ },
24
28
  get convo() {
25
29
  return ChatBskyConvoDefs.convoViewSchema;
26
30
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atcute/bluesky",
3
- "version": "3.3.3",
3
+ "version": "3.3.5",
4
4
  "description": "Bluesky (app.bsky.* and chat.bsky.*) schema definitions",
5
5
  "keywords": [
6
6
  "atcute",
@@ -16,7 +16,8 @@
16
16
  "dist/",
17
17
  "lib/",
18
18
  "!lib/**/*.bench.ts",
19
- "!lib/**/*.test.ts"
19
+ "!lib/**/*.test.ts",
20
+ "!dist/**/*.{test,bench}.*"
20
21
  ],
21
22
  "type": "module",
22
23
  "exports": {
@@ -29,15 +30,18 @@
29
30
  "access": "public"
30
31
  },
31
32
  "dependencies": {
32
- "@atcute/atproto": "^3.1.11",
33
- "@atcute/lexicons": "^1.3.0"
33
+ "@atcute/atproto": "^3.1.12",
34
+ "@atcute/lexicons": "^1.3.1"
34
35
  },
35
36
  "devDependencies": {
36
37
  "@atcute/bluesky": "file:",
37
- "@atproto/api": "^0.19.8",
38
- "vitest": "^4.1.4",
38
+ "@atproto/api": "^0.19.14",
39
+ "vitest": "^4.1.5",
39
40
  "@atcute/lex-cli": "^2.8.1"
40
41
  },
42
+ "peerDependencies": {
43
+ "@atcute/lexicons": "^1.0.0"
44
+ },
41
45
  "atcute:lexicons": {
42
46
  "mappings": {
43
47
  "app.bsky.*": {
@@ -51,7 +55,7 @@
51
55
  }
52
56
  },
53
57
  "scripts": {
54
- "build": "tsgo --project tsconfig.build.json",
58
+ "build": "tsgo",
55
59
  "pull": "lex-cli pull",
56
60
  "test": "vitest",
57
61
  "generate": "pnpm run generate:lexicons; pnpm run generate:limits",