@atcute/bluesky 2.0.1 → 2.0.3
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.d.ts +44 -4
- package/lib/lexicons.ts +46 -2
- package/package.json +2 -2
package/dist/lexicons.d.ts
CHANGED
|
@@ -155,7 +155,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
155
155
|
*/
|
|
156
156
|
threadgateAllowRules?: Brand.Union<AppBskyFeedThreadgate.FollowerRule | AppBskyFeedThreadgate.FollowingRule | AppBskyFeedThreadgate.ListRule | AppBskyFeedThreadgate.MentionRule>[];
|
|
157
157
|
}
|
|
158
|
-
type Preferences = Brand.Union<AdultContentPref | BskyAppStatePref | ContentLabelPref | FeedViewPref | HiddenPostsPref | InterestsPref | LabelersPref | MutedWordsPref | PersonalDetailsPref | PostInteractionSettingsPref | SavedFeedsPref | SavedFeedsPrefV2 | ThreadViewPref>[];
|
|
158
|
+
type Preferences = Brand.Union<AdultContentPref | BskyAppStatePref | ContentLabelPref | FeedViewPref | HiddenPostsPref | InterestsPref | LabelersPref | MutedWordsPref | PersonalDetailsPref | PostInteractionSettingsPref | SavedFeedsPref | SavedFeedsPrefV2 | ThreadViewPref | VerificationPrefs>[];
|
|
159
159
|
interface ProfileAssociated {
|
|
160
160
|
[Brand.Type]?: 'app.bsky.actor.defs#profileAssociated';
|
|
161
161
|
chat?: ProfileAssociatedChat;
|
|
@@ -187,6 +187,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
187
187
|
displayName?: string;
|
|
188
188
|
indexedAt?: string;
|
|
189
189
|
labels?: ComAtprotoLabelDefs.Label[];
|
|
190
|
+
verification?: VerificationState;
|
|
190
191
|
viewer?: ViewerState;
|
|
191
192
|
}
|
|
192
193
|
interface ProfileViewBasic {
|
|
@@ -202,6 +203,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
202
203
|
*/
|
|
203
204
|
displayName?: string;
|
|
204
205
|
labels?: ComAtprotoLabelDefs.Label[];
|
|
206
|
+
verification?: VerificationState;
|
|
205
207
|
viewer?: ViewerState;
|
|
206
208
|
}
|
|
207
209
|
interface ProfileViewDetailed {
|
|
@@ -229,6 +231,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
229
231
|
labels?: ComAtprotoLabelDefs.Label[];
|
|
230
232
|
pinnedPost?: ComAtprotoRepoStrongRef.Main;
|
|
231
233
|
postsCount?: number;
|
|
234
|
+
verification?: VerificationState;
|
|
232
235
|
viewer?: ViewerState;
|
|
233
236
|
}
|
|
234
237
|
interface SavedFeed {
|
|
@@ -255,6 +258,37 @@ declare module '@atcute/client/lexicons' {
|
|
|
255
258
|
/** Sorting mode for threads. */
|
|
256
259
|
sort?: 'hotness' | 'most-likes' | 'newest' | 'oldest' | 'random' | (string & {});
|
|
257
260
|
}
|
|
261
|
+
/** Preferences for how verified accounts appear in the app. */
|
|
262
|
+
interface VerificationPrefs {
|
|
263
|
+
[Brand.Type]?: 'app.bsky.actor.defs#verificationPrefs';
|
|
264
|
+
/**
|
|
265
|
+
* Hide the blue check badges for verified accounts and trusted verifiers.
|
|
266
|
+
* @default false
|
|
267
|
+
*/
|
|
268
|
+
hideBadges?: boolean;
|
|
269
|
+
}
|
|
270
|
+
/** Represents the verification information about the user this object is attached to. */
|
|
271
|
+
interface VerificationState {
|
|
272
|
+
[Brand.Type]?: 'app.bsky.actor.defs#verificationState';
|
|
273
|
+
/** The user's status as a trusted verifier. */
|
|
274
|
+
trustedVerifierStatus: 'invalid' | 'none' | 'valid' | (string & {});
|
|
275
|
+
/** All verifications issued by trusted verifiers on behalf of this user. Verifications by untrusted verifiers are not included. */
|
|
276
|
+
verifications: VerificationView[];
|
|
277
|
+
/** The user's status as a verified account. */
|
|
278
|
+
verifiedStatus: 'invalid' | 'none' | 'valid' | (string & {});
|
|
279
|
+
}
|
|
280
|
+
/** An individual verification for an associated subject. */
|
|
281
|
+
interface VerificationView {
|
|
282
|
+
[Brand.Type]?: 'app.bsky.actor.defs#verificationView';
|
|
283
|
+
/** Timestamp when the verification was created. */
|
|
284
|
+
createdAt: string;
|
|
285
|
+
/** The user who issued this verification. */
|
|
286
|
+
issuer: At.Did;
|
|
287
|
+
/** True if the verification passes validation, otherwise false. */
|
|
288
|
+
isValid: boolean;
|
|
289
|
+
/** The AT-URI of the verification record. */
|
|
290
|
+
uri: At.ResourceUri;
|
|
291
|
+
}
|
|
258
292
|
/** Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authed requests. */
|
|
259
293
|
interface ViewerState {
|
|
260
294
|
[Brand.Type]?: 'app.bsky.actor.defs#viewerState';
|
|
@@ -1848,6 +1882,11 @@ declare module '@atcute/client/lexicons' {
|
|
|
1848
1882
|
subjectTypes?: ComAtprotoModerationDefs.SubjectType[];
|
|
1849
1883
|
}
|
|
1850
1884
|
}
|
|
1885
|
+
namespace AppBskyNotificationDefs {
|
|
1886
|
+
interface RecordDeleted {
|
|
1887
|
+
[Brand.Type]?: 'app.bsky.notification.defs#recordDeleted';
|
|
1888
|
+
}
|
|
1889
|
+
}
|
|
1851
1890
|
/** Count the number of unread notifications for the requesting account. Requires auth. */
|
|
1852
1891
|
namespace AppBskyNotificationGetUnreadCount {
|
|
1853
1892
|
interface Params {
|
|
@@ -1890,8 +1929,8 @@ declare module '@atcute/client/lexicons' {
|
|
|
1890
1929
|
cid: At.Cid;
|
|
1891
1930
|
indexedAt: string;
|
|
1892
1931
|
isRead: boolean;
|
|
1893
|
-
/** Expected values are 'like', 'repost', 'follow', 'mention', 'reply', 'quote',
|
|
1894
|
-
reason: 'follow' | 'like' | 'mention' | 'quote' | 'reply' | 'repost' | 'starterpack-joined' | (string & {});
|
|
1932
|
+
/** Expected values are 'like', 'repost', 'follow', 'mention', 'reply', 'quote', 'starterpack-joined', 'verified', and 'unverified'. */
|
|
1933
|
+
reason: 'follow' | 'like' | 'mention' | 'quote' | 'reply' | 'repost' | 'starterpack-joined' | 'unverified' | 'verified' | (string & {});
|
|
1895
1934
|
record: unknown;
|
|
1896
1935
|
uri: At.ResourceUri;
|
|
1897
1936
|
labels?: ComAtprotoLabelDefs.Label[];
|
|
@@ -2393,7 +2432,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
2393
2432
|
handle: At.Handle;
|
|
2394
2433
|
associated?: AppBskyActorDefs.ProfileAssociated;
|
|
2395
2434
|
avatar?: At.GenericUri;
|
|
2396
|
-
/** Set to true when the actor cannot actively participate in
|
|
2435
|
+
/** Set to true when the actor cannot actively participate in conversations */
|
|
2397
2436
|
chatDisabled?: boolean;
|
|
2398
2437
|
/**
|
|
2399
2438
|
* Maximum string length: 640 \
|
|
@@ -2401,6 +2440,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
2401
2440
|
*/
|
|
2402
2441
|
displayName?: string;
|
|
2403
2442
|
labels?: ComAtprotoLabelDefs.Label[];
|
|
2443
|
+
verification?: AppBskyActorDefs.VerificationState;
|
|
2404
2444
|
viewer?: AppBskyActorDefs.ViewerState;
|
|
2405
2445
|
}
|
|
2406
2446
|
}
|
package/lib/lexicons.ts
CHANGED
|
@@ -179,6 +179,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
179
179
|
| SavedFeedsPref
|
|
180
180
|
| SavedFeedsPrefV2
|
|
181
181
|
| ThreadViewPref
|
|
182
|
+
| VerificationPrefs
|
|
182
183
|
>[];
|
|
183
184
|
interface ProfileAssociated {
|
|
184
185
|
[Brand.Type]?: 'app.bsky.actor.defs#profileAssociated';
|
|
@@ -211,6 +212,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
211
212
|
displayName?: string;
|
|
212
213
|
indexedAt?: string;
|
|
213
214
|
labels?: ComAtprotoLabelDefs.Label[];
|
|
215
|
+
verification?: VerificationState;
|
|
214
216
|
viewer?: ViewerState;
|
|
215
217
|
}
|
|
216
218
|
interface ProfileViewBasic {
|
|
@@ -226,6 +228,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
226
228
|
*/
|
|
227
229
|
displayName?: string;
|
|
228
230
|
labels?: ComAtprotoLabelDefs.Label[];
|
|
231
|
+
verification?: VerificationState;
|
|
229
232
|
viewer?: ViewerState;
|
|
230
233
|
}
|
|
231
234
|
interface ProfileViewDetailed {
|
|
@@ -253,6 +256,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
253
256
|
labels?: ComAtprotoLabelDefs.Label[];
|
|
254
257
|
pinnedPost?: ComAtprotoRepoStrongRef.Main;
|
|
255
258
|
postsCount?: number;
|
|
259
|
+
verification?: VerificationState;
|
|
256
260
|
viewer?: ViewerState;
|
|
257
261
|
}
|
|
258
262
|
interface SavedFeed {
|
|
@@ -279,6 +283,37 @@ declare module '@atcute/client/lexicons' {
|
|
|
279
283
|
/** Sorting mode for threads. */
|
|
280
284
|
sort?: 'hotness' | 'most-likes' | 'newest' | 'oldest' | 'random' | (string & {});
|
|
281
285
|
}
|
|
286
|
+
/** Preferences for how verified accounts appear in the app. */
|
|
287
|
+
interface VerificationPrefs {
|
|
288
|
+
[Brand.Type]?: 'app.bsky.actor.defs#verificationPrefs';
|
|
289
|
+
/**
|
|
290
|
+
* Hide the blue check badges for verified accounts and trusted verifiers.
|
|
291
|
+
* @default false
|
|
292
|
+
*/
|
|
293
|
+
hideBadges?: boolean;
|
|
294
|
+
}
|
|
295
|
+
/** Represents the verification information about the user this object is attached to. */
|
|
296
|
+
interface VerificationState {
|
|
297
|
+
[Brand.Type]?: 'app.bsky.actor.defs#verificationState';
|
|
298
|
+
/** The user's status as a trusted verifier. */
|
|
299
|
+
trustedVerifierStatus: 'invalid' | 'none' | 'valid' | (string & {});
|
|
300
|
+
/** All verifications issued by trusted verifiers on behalf of this user. Verifications by untrusted verifiers are not included. */
|
|
301
|
+
verifications: VerificationView[];
|
|
302
|
+
/** The user's status as a verified account. */
|
|
303
|
+
verifiedStatus: 'invalid' | 'none' | 'valid' | (string & {});
|
|
304
|
+
}
|
|
305
|
+
/** An individual verification for an associated subject. */
|
|
306
|
+
interface VerificationView {
|
|
307
|
+
[Brand.Type]?: 'app.bsky.actor.defs#verificationView';
|
|
308
|
+
/** Timestamp when the verification was created. */
|
|
309
|
+
createdAt: string;
|
|
310
|
+
/** The user who issued this verification. */
|
|
311
|
+
issuer: At.Did;
|
|
312
|
+
/** True if the verification passes validation, otherwise false. */
|
|
313
|
+
isValid: boolean;
|
|
314
|
+
/** The AT-URI of the verification record. */
|
|
315
|
+
uri: At.ResourceUri;
|
|
316
|
+
}
|
|
282
317
|
/** Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authed requests. */
|
|
283
318
|
interface ViewerState {
|
|
284
319
|
[Brand.Type]?: 'app.bsky.actor.defs#viewerState';
|
|
@@ -1992,6 +2027,12 @@ declare module '@atcute/client/lexicons' {
|
|
|
1992
2027
|
}
|
|
1993
2028
|
}
|
|
1994
2029
|
|
|
2030
|
+
namespace AppBskyNotificationDefs {
|
|
2031
|
+
interface RecordDeleted {
|
|
2032
|
+
[Brand.Type]?: 'app.bsky.notification.defs#recordDeleted';
|
|
2033
|
+
}
|
|
2034
|
+
}
|
|
2035
|
+
|
|
1995
2036
|
/** Count the number of unread notifications for the requesting account. Requires auth. */
|
|
1996
2037
|
namespace AppBskyNotificationGetUnreadCount {
|
|
1997
2038
|
interface Params {
|
|
@@ -2035,7 +2076,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
2035
2076
|
cid: At.Cid;
|
|
2036
2077
|
indexedAt: string;
|
|
2037
2078
|
isRead: boolean;
|
|
2038
|
-
/** Expected values are 'like', 'repost', 'follow', 'mention', 'reply', 'quote',
|
|
2079
|
+
/** Expected values are 'like', 'repost', 'follow', 'mention', 'reply', 'quote', 'starterpack-joined', 'verified', and 'unverified'. */
|
|
2039
2080
|
reason:
|
|
2040
2081
|
| 'follow'
|
|
2041
2082
|
| 'like'
|
|
@@ -2044,6 +2085,8 @@ declare module '@atcute/client/lexicons' {
|
|
|
2044
2085
|
| 'reply'
|
|
2045
2086
|
| 'repost'
|
|
2046
2087
|
| 'starterpack-joined'
|
|
2088
|
+
| 'unverified'
|
|
2089
|
+
| 'verified'
|
|
2047
2090
|
| (string & {});
|
|
2048
2091
|
record: unknown;
|
|
2049
2092
|
uri: At.ResourceUri;
|
|
@@ -2567,7 +2610,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
2567
2610
|
handle: At.Handle;
|
|
2568
2611
|
associated?: AppBskyActorDefs.ProfileAssociated;
|
|
2569
2612
|
avatar?: At.GenericUri;
|
|
2570
|
-
/** Set to true when the actor cannot actively participate in
|
|
2613
|
+
/** Set to true when the actor cannot actively participate in conversations */
|
|
2571
2614
|
chatDisabled?: boolean;
|
|
2572
2615
|
/**
|
|
2573
2616
|
* Maximum string length: 640 \
|
|
@@ -2575,6 +2618,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
2575
2618
|
*/
|
|
2576
2619
|
displayName?: string;
|
|
2577
2620
|
labels?: ComAtprotoLabelDefs.Label[];
|
|
2621
|
+
verification?: AppBskyActorDefs.VerificationState;
|
|
2578
2622
|
viewer?: AppBskyActorDefs.ViewerState;
|
|
2579
2623
|
}
|
|
2580
2624
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@atcute/bluesky",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.3",
|
|
5
5
|
"description": "Bluesky type definitions for atcute",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@atcute/client": "^3.0.1",
|
|
25
|
-
"@atcute/lex-cli": "^1.1.
|
|
25
|
+
"@atcute/lex-cli": "^1.1.1"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "tsc",
|