@atcute/bluesky 3.3.4 → 4.0.0
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/dist/lexicons/index.d.ts +1 -0
- package/dist/lexicons/index.d.ts.map +1 -1
- package/dist/lexicons/index.js +1 -0
- package/dist/lexicons/index.js.map +1 -1
- package/dist/lexicons/types/app/bsky/embed/external.d.ts +4 -0
- package/dist/lexicons/types/app/bsky/embed/external.d.ts.map +1 -1
- package/dist/lexicons/types/app/bsky/embed/external.js +4 -0
- package/dist/lexicons/types/app/bsky/embed/external.js.map +1 -1
- package/dist/lexicons/types/chat/bsky/actor/defs.d.ts +10 -1
- package/dist/lexicons/types/chat/bsky/actor/defs.d.ts.map +1 -1
- package/dist/lexicons/types/chat/bsky/actor/defs.js +5 -1
- package/dist/lexicons/types/chat/bsky/actor/defs.js.map +1 -1
- package/dist/lexicons/types/chat/bsky/convo/defs.d.ts +114 -23
- package/dist/lexicons/types/chat/bsky/convo/defs.d.ts.map +1 -1
- package/dist/lexicons/types/chat/bsky/convo/defs.js +129 -23
- package/dist/lexicons/types/chat/bsky/convo/defs.js.map +1 -1
- package/dist/lexicons/types/chat/bsky/convo/getConvoMembers.d.ts +33 -0
- package/dist/lexicons/types/chat/bsky/convo/getConvoMembers.d.ts.map +1 -0
- package/dist/lexicons/types/chat/bsky/convo/getConvoMembers.js +26 -0
- package/dist/lexicons/types/chat/bsky/convo/getConvoMembers.js.map +1 -0
- package/dist/lexicons/types/chat/bsky/convo/getMessages.d.ts +5 -0
- package/dist/lexicons/types/chat/bsky/convo/getMessages.d.ts.map +1 -1
- package/dist/lexicons/types/chat/bsky/convo/getMessages.js +7 -0
- package/dist/lexicons/types/chat/bsky/convo/getMessages.js.map +1 -1
- package/dist/lexicons/types/chat/bsky/group/addMembers.d.ts +2 -0
- package/dist/lexicons/types/chat/bsky/group/addMembers.d.ts.map +1 -1
- package/dist/lexicons/types/chat/bsky/group/addMembers.js +4 -0
- package/dist/lexicons/types/chat/bsky/group/addMembers.js.map +1 -1
- package/dist/limits.d.ts +35 -35
- package/dist/limits.d.ts.map +1 -1
- package/dist/limits.js +11 -11
- package/dist/limits.js.map +1 -1
- package/lib/lexicons/index.ts +1 -0
- package/lib/lexicons/types/app/bsky/embed/external.ts +4 -0
- package/lib/lexicons/types/chat/bsky/actor/defs.ts +8 -1
- package/lib/lexicons/types/chat/bsky/convo/defs.ts +133 -23
- package/lib/lexicons/types/chat/bsky/convo/getConvoMembers.ts +45 -0
- package/lib/lexicons/types/chat/bsky/convo/getMessages.ts +8 -0
- package/lib/lexicons/types/chat/bsky/group/addMembers.ts +4 -0
- package/lib/limits.ts +11 -11
- package/package.json +5 -5
|
@@ -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.
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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(
|
|
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
|
|
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
|
|
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
|
|
588
|
+
return systemMessageReferredUserSchema;
|
|
488
589
|
},
|
|
489
590
|
get removedBy() {
|
|
490
|
-
return
|
|
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
|
|
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/lib/limits.ts
CHANGED
|
@@ -3,28 +3,28 @@
|
|
|
3
3
|
|
|
4
4
|
/** limits for `app.bsky.feed.post` */
|
|
5
5
|
export const feedPost = {
|
|
6
|
-
text: { maxGraphemes: 300, maxLength: 3_000 },
|
|
7
|
-
langs: { maxItems: 3 },
|
|
8
6
|
tags: {
|
|
9
7
|
maxItems: 8,
|
|
10
8
|
item: { maxGraphemes: 64, maxLength: 640 },
|
|
11
9
|
},
|
|
10
|
+
text: { maxGraphemes: 300, maxLength: 3_000 },
|
|
11
|
+
langs: { maxItems: 3 },
|
|
12
12
|
} as const;
|
|
13
13
|
|
|
14
14
|
/** limits for `app.bsky.actor.profile` */
|
|
15
15
|
export const actorProfile = {
|
|
16
|
-
displayName: { maxGraphemes: 64, maxLength: 640 },
|
|
17
|
-
description: { maxGraphemes: 256, maxLength: 2_560 },
|
|
18
|
-
pronouns: { maxGraphemes: 20, maxLength: 200 },
|
|
19
16
|
avatar: { maxSize: 1_000_000 },
|
|
20
17
|
banner: { maxSize: 1_000_000 },
|
|
18
|
+
pronouns: { maxGraphemes: 20, maxLength: 200 },
|
|
19
|
+
description: { maxGraphemes: 256, maxLength: 2_560 },
|
|
20
|
+
displayName: { maxGraphemes: 64, maxLength: 640 },
|
|
21
21
|
} as const;
|
|
22
22
|
|
|
23
23
|
/** limits for `app.bsky.feed.generator` */
|
|
24
24
|
export const feedGenerator = {
|
|
25
|
-
displayName: { maxGraphemes: 24, maxLength: 240 },
|
|
26
|
-
description: { maxGraphemes: 300, maxLength: 3_000 },
|
|
27
25
|
avatar: { maxSize: 1_000_000 },
|
|
26
|
+
description: { maxGraphemes: 300, maxLength: 3_000 },
|
|
27
|
+
displayName: { maxGraphemes: 24, maxLength: 240 },
|
|
28
28
|
} as const;
|
|
29
29
|
|
|
30
30
|
/** limits for `app.bsky.feed.threadgate` */
|
|
@@ -35,22 +35,22 @@ export const feedThreadgate = {
|
|
|
35
35
|
|
|
36
36
|
/** limits for `app.bsky.feed.postgate` */
|
|
37
37
|
export const feedPostgate = {
|
|
38
|
-
detachedEmbeddingUris: { maxItems: 50 },
|
|
39
38
|
embeddingRules: { maxItems: 5 },
|
|
39
|
+
detachedEmbeddingUris: { maxItems: 50 },
|
|
40
40
|
} as const;
|
|
41
41
|
|
|
42
42
|
/** limits for `app.bsky.graph.list` */
|
|
43
43
|
export const graphList = {
|
|
44
44
|
name: { maxLength: 64, minLength: 1 },
|
|
45
|
-
description: { maxGraphemes: 300, maxLength: 3_000 },
|
|
46
45
|
avatar: { maxSize: 1_000_000 },
|
|
46
|
+
description: { maxGraphemes: 300, maxLength: 3_000 },
|
|
47
47
|
} as const;
|
|
48
48
|
|
|
49
49
|
/** limits for `app.bsky.graph.starterpack` */
|
|
50
50
|
export const graphStarterpack = {
|
|
51
51
|
name: { maxGraphemes: 50, maxLength: 500, minLength: 1 },
|
|
52
|
-
description: { maxGraphemes: 300, maxLength: 3_000 },
|
|
53
52
|
feeds: { maxItems: 3 },
|
|
53
|
+
description: { maxGraphemes: 300, maxLength: 3_000 },
|
|
54
54
|
} as const;
|
|
55
55
|
|
|
56
56
|
/** limits for `app.bsky.embed.images` */
|
|
@@ -63,9 +63,9 @@ export const embedImages = {
|
|
|
63
63
|
|
|
64
64
|
/** limits for `app.bsky.embed.video` */
|
|
65
65
|
export const embedVideo = {
|
|
66
|
+
alt: { maxGraphemes: 1_000, maxLength: 10_000 },
|
|
66
67
|
video: { maxSize: 100_000_000 },
|
|
67
68
|
captions: { maxItems: 20 },
|
|
68
|
-
alt: { maxGraphemes: 1_000, maxLength: 10_000 },
|
|
69
69
|
caption: {
|
|
70
70
|
file: { maxSize: 20_000 },
|
|
71
71
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atcute/bluesky",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Bluesky (app.bsky.* and chat.bsky.*) schema definitions",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"atcute",
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@atcute/
|
|
34
|
-
"@atcute/
|
|
33
|
+
"@atcute/atproto": "^4.0.0",
|
|
34
|
+
"@atcute/lexicons": "^2.0.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@atcute/bluesky": "file:",
|
|
38
38
|
"@atproto/api": "^0.19.14",
|
|
39
39
|
"vitest": "^4.1.5",
|
|
40
|
-
"@atcute/lex-cli": "^
|
|
40
|
+
"@atcute/lex-cli": "^3.0.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@atcute/lexicons": "^
|
|
43
|
+
"@atcute/lexicons": "^2.0.0"
|
|
44
44
|
},
|
|
45
45
|
"atcute:lexicons": {
|
|
46
46
|
"mappings": {
|