@atcute/bluesky 2.0.1 → 2.0.2

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.
@@ -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';
@@ -2401,6 +2435,7 @@ declare module '@atcute/client/lexicons' {
2401
2435
  */
2402
2436
  displayName?: string;
2403
2437
  labels?: ComAtprotoLabelDefs.Label[];
2438
+ verification?: AppBskyActorDefs.VerificationState;
2404
2439
  viewer?: AppBskyActorDefs.ViewerState;
2405
2440
  }
2406
2441
  }
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';
@@ -2575,6 +2610,7 @@ declare module '@atcute/client/lexicons' {
2575
2610
  */
2576
2611
  displayName?: string;
2577
2612
  labels?: ComAtprotoLabelDefs.Label[];
2613
+ verification?: AppBskyActorDefs.VerificationState;
2578
2614
  viewer?: AppBskyActorDefs.ViewerState;
2579
2615
  }
2580
2616
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@atcute/bluesky",
4
- "version": "2.0.1",
4
+ "version": "2.0.2",
5
5
  "description": "Bluesky type definitions for atcute",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -21,8 +21,8 @@
21
21
  "@atcute/client": "^3.0.0"
22
22
  },
23
23
  "devDependencies": {
24
- "@atcute/client": "^3.0.1",
25
- "@atcute/lex-cli": "^1.1.0"
24
+ "@atcute/lex-cli": "^1.1.1",
25
+ "@atcute/client": "^3.0.1"
26
26
  },
27
27
  "scripts": {
28
28
  "build": "tsc",