@atproto/bsky 0.0.37 → 0.0.39

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 (149) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/api/app/bsky/feed/getAuthorFeed.d.ts +2 -3
  3. package/dist/api/app/bsky/feed/getListFeed.d.ts +2 -2
  4. package/dist/api/app/bsky/feed/getTimeline.d.ts +4 -2
  5. package/dist/api/app/bsky/labeler/getServices.d.ts +3 -0
  6. package/dist/api/util.d.ts +9 -2
  7. package/dist/auth-verifier.d.ts +1 -1
  8. package/dist/context.d.ts +3 -0
  9. package/dist/data-plane/server/db/database-schema.d.ts +2 -2
  10. package/dist/data-plane/server/db/migrations/20240226T225725627Z-labelers.d.ts +3 -0
  11. package/dist/data-plane/server/db/migrations/index.d.ts +1 -0
  12. package/dist/data-plane/server/db/tables/labeler.d.ts +13 -0
  13. package/dist/data-plane/server/indexing/index.d.ts +2 -0
  14. package/dist/data-plane/server/indexing/plugins/labeler.d.ts +10 -0
  15. package/dist/data-plane/server/util.d.ts +6 -6
  16. package/dist/hydration/actor.d.ts +3 -0
  17. package/dist/hydration/hydrator.d.ts +27 -22
  18. package/dist/hydration/label.d.ts +23 -9
  19. package/dist/index.js +4100 -4645
  20. package/dist/index.js.map +3 -3
  21. package/dist/lexicon/index.d.ts +7 -27
  22. package/dist/lexicon/lexicons.d.ts +516 -1463
  23. package/dist/lexicon/types/app/bsky/actor/defs.d.ts +23 -1
  24. package/dist/lexicon/types/app/bsky/embed/record.d.ts +2 -1
  25. package/dist/lexicon/types/app/bsky/feed/defs.d.ts +1 -0
  26. package/dist/lexicon/types/app/bsky/graph/defs.d.ts +3 -0
  27. package/dist/lexicon/types/app/bsky/labeler/defs.d.ts +41 -0
  28. package/dist/lexicon/types/{com/atproto/admin/searchRepos.d.ts → app/bsky/labeler/getServices.d.ts} +7 -7
  29. package/dist/lexicon/types/app/bsky/labeler/service.d.ts +14 -0
  30. package/dist/lexicon/types/com/atproto/admin/defs.d.ts +0 -304
  31. package/dist/lexicon/types/com/atproto/label/defs.d.ts +23 -0
  32. package/dist/lexicon/types/com/atproto/server/describeServer.d.ts +7 -0
  33. package/dist/proto/bsky_connect.d.ts +7 -1
  34. package/dist/proto/bsky_pb.d.ts +25 -0
  35. package/dist/util.d.ts +7 -0
  36. package/dist/views/index.d.ts +3 -0
  37. package/dist/views/types.d.ts +2 -1
  38. package/package.json +14 -13
  39. package/proto/bsky.proto +12 -0
  40. package/src/api/app/bsky/actor/getProfile.ts +21 -17
  41. package/src/api/app/bsky/actor/getProfiles.ts +16 -7
  42. package/src/api/app/bsky/actor/getSuggestions.ts +18 -13
  43. package/src/api/app/bsky/actor/searchActors.ts +9 -5
  44. package/src/api/app/bsky/actor/searchActorsTypeahead.ts +12 -5
  45. package/src/api/app/bsky/feed/getActorFeeds.ts +16 -6
  46. package/src/api/app/bsky/feed/getActorLikes.ts +18 -8
  47. package/src/api/app/bsky/feed/getAuthorFeed.ts +18 -19
  48. package/src/api/app/bsky/feed/getFeed.ts +14 -7
  49. package/src/api/app/bsky/feed/getFeedGenerator.ts +8 -2
  50. package/src/api/app/bsky/feed/getFeedGenerators.ts +16 -5
  51. package/src/api/app/bsky/feed/getLikes.ts +13 -6
  52. package/src/api/app/bsky/feed/getListFeed.ts +13 -7
  53. package/src/api/app/bsky/feed/getPostThread.ts +15 -8
  54. package/src/api/app/bsky/feed/getPosts.ts +14 -5
  55. package/src/api/app/bsky/feed/getRepostedBy.ts +13 -6
  56. package/src/api/app/bsky/feed/getSuggestedFeeds.ts +8 -2
  57. package/src/api/app/bsky/feed/getTimeline.ts +14 -8
  58. package/src/api/app/bsky/feed/searchPosts.ts +9 -5
  59. package/src/api/app/bsky/graph/getBlocks.ts +10 -9
  60. package/src/api/app/bsky/graph/getFollowers.ts +23 -15
  61. package/src/api/app/bsky/graph/getFollows.ts +23 -15
  62. package/src/api/app/bsky/graph/getList.ts +14 -8
  63. package/src/api/app/bsky/graph/getListBlocks.ts +10 -7
  64. package/src/api/app/bsky/graph/getListMutes.ts +10 -7
  65. package/src/api/app/bsky/graph/getLists.ts +9 -7
  66. package/src/api/app/bsky/graph/getMutes.ts +10 -8
  67. package/src/api/app/bsky/graph/getSuggestedFollowsByActor.ts +10 -7
  68. package/src/api/app/bsky/graph/muteActor.ts +1 -1
  69. package/src/api/app/bsky/labeler/getServices.ts +46 -0
  70. package/src/api/app/bsky/notification/listNotifications.ts +12 -8
  71. package/src/api/app/bsky/unspecced/getPopularFeedGenerators.ts +6 -3
  72. package/src/api/com/atproto/admin/getAccountInfos.ts +10 -3
  73. package/src/api/index.ts +2 -0
  74. package/src/api/util.ts +19 -4
  75. package/src/auth-verifier.ts +2 -2
  76. package/src/context.ts +20 -0
  77. package/src/data-plane/server/db/database-schema.ts +4 -4
  78. package/src/data-plane/server/db/migrations/20240226T225725627Z-labelers.ts +27 -0
  79. package/src/data-plane/server/db/migrations/index.ts +1 -0
  80. package/src/data-plane/server/db/tables/labeler.ts +16 -0
  81. package/src/data-plane/server/indexing/index.ts +4 -0
  82. package/src/data-plane/server/indexing/plugins/labeler.ts +77 -0
  83. package/src/data-plane/server/routes/interactions.ts +17 -1
  84. package/src/data-plane/server/routes/labels.ts +4 -2
  85. package/src/data-plane/server/routes/profile.ts +15 -1
  86. package/src/data-plane/server/routes/records.ts +1 -0
  87. package/src/hydration/actor.ts +6 -0
  88. package/src/hydration/hydrator.ts +171 -97
  89. package/src/hydration/label.ts +106 -20
  90. package/src/index.ts +1 -3
  91. package/src/lexicon/index.ts +22 -137
  92. package/src/lexicon/lexicons.ts +552 -1635
  93. package/src/lexicon/types/app/bsky/actor/defs.ts +57 -1
  94. package/src/lexicon/types/app/bsky/embed/record.ts +2 -0
  95. package/src/lexicon/types/app/bsky/feed/defs.ts +1 -0
  96. package/src/lexicon/types/app/bsky/graph/defs.ts +3 -0
  97. package/src/lexicon/types/app/bsky/labeler/defs.ts +93 -0
  98. package/src/lexicon/types/{com/atproto/admin/searchRepos.ts → app/bsky/labeler/getServices.ts} +8 -8
  99. package/src/lexicon/types/app/bsky/labeler/service.ts +31 -0
  100. package/src/lexicon/types/com/atproto/admin/defs.ts +0 -694
  101. package/src/lexicon/types/com/atproto/label/defs.ts +78 -0
  102. package/src/lexicon/types/com/atproto/server/describeServer.ts +18 -0
  103. package/src/proto/bsky_connect.ts +11 -0
  104. package/src/proto/bsky_pb.ts +146 -0
  105. package/src/util.ts +44 -0
  106. package/src/views/index.ts +77 -8
  107. package/src/views/types.ts +6 -3
  108. package/tests/__snapshots__/feed-generation.test.ts.snap +12 -45
  109. package/tests/_util.ts +21 -0
  110. package/tests/data-plane/__snapshots__/indexing.test.ts.snap +20 -8
  111. package/tests/label-hydration.test.ts +162 -0
  112. package/tests/views/__snapshots__/author-feed.test.ts.snap +0 -46
  113. package/tests/views/__snapshots__/block-lists.test.ts.snap +7 -17
  114. package/tests/views/__snapshots__/blocks.test.ts.snap +0 -9
  115. package/tests/views/__snapshots__/labeler-service.test.ts.snap +156 -0
  116. package/tests/views/__snapshots__/list-feed.test.ts.snap +0 -20
  117. package/tests/views/__snapshots__/mute-lists.test.ts.snap +10 -18
  118. package/tests/views/__snapshots__/mutes.test.ts.snap +0 -4
  119. package/tests/views/__snapshots__/notifications.test.ts.snap +0 -9
  120. package/tests/views/__snapshots__/posts.test.ts.snap +0 -7
  121. package/tests/views/__snapshots__/profile.test.ts.snap +40 -6
  122. package/tests/views/__snapshots__/thread.test.ts.snap +0 -38
  123. package/tests/views/__snapshots__/threadgating.test.ts.snap +2 -0
  124. package/tests/views/__snapshots__/timeline.test.ts.snap +0 -145
  125. package/tests/views/labeler-service.test.ts +156 -0
  126. package/tests/views/takedown-labels.test.ts +133 -0
  127. package/tests/views/timeline.test.ts +7 -2
  128. package/dist/data-plane/server/db/tables/moderation.d.ts +0 -42
  129. package/dist/lexicon/types/com/atproto/admin/createCommunicationTemplate.d.ts +0 -37
  130. package/dist/lexicon/types/com/atproto/admin/deleteCommunicationTemplate.d.ts +0 -25
  131. package/dist/lexicon/types/com/atproto/admin/emitModerationEvent.d.ts +0 -45
  132. package/dist/lexicon/types/com/atproto/admin/getModerationEvent.d.ts +0 -29
  133. package/dist/lexicon/types/com/atproto/admin/getRecord.d.ts +0 -31
  134. package/dist/lexicon/types/com/atproto/admin/getRepo.d.ts +0 -30
  135. package/dist/lexicon/types/com/atproto/admin/listCommunicationTemplates.d.ts +0 -31
  136. package/dist/lexicon/types/com/atproto/admin/queryModerationEvents.d.ts +0 -48
  137. package/dist/lexicon/types/com/atproto/admin/queryModerationStatuses.d.ts +0 -50
  138. package/dist/lexicon/types/com/atproto/admin/updateCommunicationTemplate.d.ts +0 -39
  139. package/src/data-plane/server/db/tables/moderation.ts +0 -59
  140. package/src/lexicon/types/com/atproto/admin/createCommunicationTemplate.ts +0 -54
  141. package/src/lexicon/types/com/atproto/admin/deleteCommunicationTemplate.ts +0 -38
  142. package/src/lexicon/types/com/atproto/admin/emitModerationEvent.ts +0 -67
  143. package/src/lexicon/types/com/atproto/admin/getModerationEvent.ts +0 -41
  144. package/src/lexicon/types/com/atproto/admin/getRecord.ts +0 -43
  145. package/src/lexicon/types/com/atproto/admin/getRepo.ts +0 -42
  146. package/src/lexicon/types/com/atproto/admin/listCommunicationTemplates.ts +0 -44
  147. package/src/lexicon/types/com/atproto/admin/queryModerationEvents.ts +0 -73
  148. package/src/lexicon/types/com/atproto/admin/queryModerationStatuses.ts +0 -74
  149. package/src/lexicon/types/com/atproto/admin/updateCommunicationTemplate.ts +0 -57
@@ -35,6 +35,7 @@ export interface ProfileViewDetailed {
35
35
  followersCount?: number;
36
36
  followsCount?: number;
37
37
  postsCount?: number;
38
+ associated?: ProfileAssociated;
38
39
  indexedAt?: string;
39
40
  viewer?: ViewerState;
40
41
  labels?: ComAtprotoLabelDefs.Label[];
@@ -42,6 +43,14 @@ export interface ProfileViewDetailed {
42
43
  }
43
44
  export declare function isProfileViewDetailed(v: unknown): v is ProfileViewDetailed;
44
45
  export declare function validateProfileViewDetailed(v: unknown): ValidationResult;
46
+ export interface ProfileAssociated {
47
+ lists?: number;
48
+ feedgens?: number;
49
+ labeler?: boolean;
50
+ [k: string]: unknown;
51
+ }
52
+ export declare function isProfileAssociated(v: unknown): v is ProfileAssociated;
53
+ export declare function validateProfileAssociated(v: unknown): ValidationResult;
45
54
  export interface ViewerState {
46
55
  muted?: boolean;
47
56
  mutedByList?: AppBskyGraphDefs.ListViewBasic;
@@ -65,8 +74,9 @@ export interface AdultContentPref {
65
74
  export declare function isAdultContentPref(v: unknown): v is AdultContentPref;
66
75
  export declare function validateAdultContentPref(v: unknown): ValidationResult;
67
76
  export interface ContentLabelPref {
77
+ labelerDid?: string;
68
78
  label: string;
69
- visibility: 'show' | 'warn' | 'hide' | (string & {});
79
+ visibility: 'ignore' | 'show' | 'warn' | 'hide' | (string & {});
70
80
  [k: string]: unknown;
71
81
  }
72
82
  export declare function isContentLabelPref(v: unknown): v is ContentLabelPref;
@@ -129,3 +139,15 @@ export interface HiddenPostsPref {
129
139
  }
130
140
  export declare function isHiddenPostsPref(v: unknown): v is HiddenPostsPref;
131
141
  export declare function validateHiddenPostsPref(v: unknown): ValidationResult;
142
+ export interface LabelersPref {
143
+ labelers: LabelerPrefItem[];
144
+ [k: string]: unknown;
145
+ }
146
+ export declare function isLabelersPref(v: unknown): v is LabelersPref;
147
+ export declare function validateLabelersPref(v: unknown): ValidationResult;
148
+ export interface LabelerPrefItem {
149
+ did: string;
150
+ [k: string]: unknown;
151
+ }
152
+ export declare function isLabelerPrefItem(v: unknown): v is LabelerPrefItem;
153
+ export declare function validateLabelerPrefItem(v: unknown): ValidationResult;
@@ -2,6 +2,7 @@ import { ValidationResult } from '@atproto/lexicon';
2
2
  import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
3
3
  import * as AppBskyFeedDefs from '../feed/defs';
4
4
  import * as AppBskyGraphDefs from '../graph/defs';
5
+ import * as AppBskyLabelerDefs from '../labeler/defs';
5
6
  import * as AppBskyActorDefs from '../actor/defs';
6
7
  import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs';
7
8
  import * as AppBskyEmbedImages from './images';
@@ -14,7 +15,7 @@ export interface Main {
14
15
  export declare function isMain(v: unknown): v is Main;
15
16
  export declare function validateMain(v: unknown): ValidationResult;
16
17
  export interface View {
17
- record: ViewRecord | ViewNotFound | ViewBlocked | AppBskyFeedDefs.GeneratorView | AppBskyGraphDefs.ListView | {
18
+ record: ViewRecord | ViewNotFound | ViewBlocked | AppBskyFeedDefs.GeneratorView | AppBskyGraphDefs.ListView | AppBskyLabelerDefs.LabelerView | {
18
19
  $type: string;
19
20
  [k: string]: unknown;
20
21
  };
@@ -112,6 +112,7 @@ export interface GeneratorView {
112
112
  descriptionFacets?: AppBskyRichtextFacet.Main[];
113
113
  avatar?: string;
114
114
  likeCount?: number;
115
+ labels?: ComAtprotoLabelDefs.Label[];
115
116
  viewer?: GeneratorViewerState;
116
117
  indexedAt: string;
117
118
  [k: string]: unknown;
@@ -1,4 +1,5 @@
1
1
  import { ValidationResult } from '@atproto/lexicon';
2
+ import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs';
2
3
  import * as AppBskyActorDefs from '../actor/defs';
3
4
  import * as AppBskyRichtextFacet from '../richtext/facet';
4
5
  export interface ListViewBasic {
@@ -7,6 +8,7 @@ export interface ListViewBasic {
7
8
  name: string;
8
9
  purpose: ListPurpose;
9
10
  avatar?: string;
11
+ labels?: ComAtprotoLabelDefs.Label[];
10
12
  viewer?: ListViewerState;
11
13
  indexedAt?: string;
12
14
  [k: string]: unknown;
@@ -22,6 +24,7 @@ export interface ListView {
22
24
  description?: string;
23
25
  descriptionFacets?: AppBskyRichtextFacet.Main[];
24
26
  avatar?: string;
27
+ labels?: ComAtprotoLabelDefs.Label[];
25
28
  viewer?: ListViewerState;
26
29
  indexedAt: string;
27
30
  [k: string]: unknown;
@@ -0,0 +1,41 @@
1
+ import { ValidationResult } from '@atproto/lexicon';
2
+ import * as AppBskyActorDefs from '../actor/defs';
3
+ import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs';
4
+ export interface LabelerView {
5
+ uri: string;
6
+ cid: string;
7
+ creator: AppBskyActorDefs.ProfileView;
8
+ likeCount?: number;
9
+ viewer?: LabelerViewerState;
10
+ indexedAt: string;
11
+ labels?: ComAtprotoLabelDefs.Label[];
12
+ [k: string]: unknown;
13
+ }
14
+ export declare function isLabelerView(v: unknown): v is LabelerView;
15
+ export declare function validateLabelerView(v: unknown): ValidationResult;
16
+ export interface LabelerViewDetailed {
17
+ uri: string;
18
+ cid: string;
19
+ creator: AppBskyActorDefs.ProfileView;
20
+ policies: LabelerPolicies;
21
+ likeCount?: number;
22
+ viewer?: LabelerViewerState;
23
+ indexedAt: string;
24
+ labels?: ComAtprotoLabelDefs.Label[];
25
+ [k: string]: unknown;
26
+ }
27
+ export declare function isLabelerViewDetailed(v: unknown): v is LabelerViewDetailed;
28
+ export declare function validateLabelerViewDetailed(v: unknown): ValidationResult;
29
+ export interface LabelerViewerState {
30
+ like?: string;
31
+ [k: string]: unknown;
32
+ }
33
+ export declare function isLabelerViewerState(v: unknown): v is LabelerViewerState;
34
+ export declare function validateLabelerViewerState(v: unknown): ValidationResult;
35
+ export interface LabelerPolicies {
36
+ labelValues: ComAtprotoLabelDefs.LabelValue[];
37
+ labelValueDefinitions?: ComAtprotoLabelDefs.LabelValueDefinition[];
38
+ [k: string]: unknown;
39
+ }
40
+ export declare function isLabelerPolicies(v: unknown): v is LabelerPolicies;
41
+ export declare function validateLabelerPolicies(v: unknown): ValidationResult;
@@ -1,16 +1,16 @@
1
1
  import express from 'express';
2
2
  import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
3
- import * as ComAtprotoAdminDefs from './defs';
3
+ import * as AppBskyLabelerDefs from './defs';
4
4
  export interface QueryParams {
5
- term?: string;
6
- q?: string;
7
- limit: number;
8
- cursor?: string;
5
+ dids: string[];
6
+ detailed: boolean;
9
7
  }
10
8
  export type InputSchema = undefined;
11
9
  export interface OutputSchema {
12
- cursor?: string;
13
- repos: ComAtprotoAdminDefs.RepoView[];
10
+ views: (AppBskyLabelerDefs.LabelerView | AppBskyLabelerDefs.LabelerViewDetailed | {
11
+ $type: string;
12
+ [k: string]: unknown;
13
+ })[];
14
14
  [k: string]: unknown;
15
15
  }
16
16
  export type HandlerInput = undefined;
@@ -0,0 +1,14 @@
1
+ import { ValidationResult } from '@atproto/lexicon';
2
+ import * as AppBskyLabelerDefs from './defs';
3
+ import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs';
4
+ export interface Record {
5
+ policies: AppBskyLabelerDefs.LabelerPolicies;
6
+ labels?: ComAtprotoLabelDefs.SelfLabels | {
7
+ $type: string;
8
+ [k: string]: unknown;
9
+ };
10
+ createdAt: string;
11
+ [k: string]: unknown;
12
+ }
13
+ export declare function isRecord(v: unknown): v is Record;
14
+ export declare function validateRecord(v: unknown): ValidationResult;
@@ -1,8 +1,5 @@
1
1
  import { ValidationResult } from '@atproto/lexicon';
2
- import * as ComAtprotoRepoStrongRef from '../repo/strongRef';
3
- import * as ComAtprotoModerationDefs from '../moderation/defs';
4
2
  import * as ComAtprotoServerDefs from '../server/defs';
5
- import * as ComAtprotoLabelDefs from '../label/defs';
6
3
  export interface StatusAttr {
7
4
  applied: boolean;
8
5
  ref?: string;
@@ -10,130 +7,6 @@ export interface StatusAttr {
10
7
  }
11
8
  export declare function isStatusAttr(v: unknown): v is StatusAttr;
12
9
  export declare function validateStatusAttr(v: unknown): ValidationResult;
13
- export interface ModEventView {
14
- id: number;
15
- event: ModEventTakedown | ModEventReverseTakedown | ModEventComment | ModEventReport | ModEventLabel | ModEventAcknowledge | ModEventEscalate | ModEventMute | ModEventEmail | ModEventResolveAppeal | {
16
- $type: string;
17
- [k: string]: unknown;
18
- };
19
- subject: RepoRef | ComAtprotoRepoStrongRef.Main | {
20
- $type: string;
21
- [k: string]: unknown;
22
- };
23
- subjectBlobCids: string[];
24
- createdBy: string;
25
- createdAt: string;
26
- creatorHandle?: string;
27
- subjectHandle?: string;
28
- [k: string]: unknown;
29
- }
30
- export declare function isModEventView(v: unknown): v is ModEventView;
31
- export declare function validateModEventView(v: unknown): ValidationResult;
32
- export interface ModEventViewDetail {
33
- id: number;
34
- event: ModEventTakedown | ModEventReverseTakedown | ModEventComment | ModEventReport | ModEventLabel | ModEventAcknowledge | ModEventEscalate | ModEventMute | ModEventEmail | ModEventResolveAppeal | {
35
- $type: string;
36
- [k: string]: unknown;
37
- };
38
- subject: RepoView | RepoViewNotFound | RecordView | RecordViewNotFound | {
39
- $type: string;
40
- [k: string]: unknown;
41
- };
42
- subjectBlobs: BlobView[];
43
- createdBy: string;
44
- createdAt: string;
45
- [k: string]: unknown;
46
- }
47
- export declare function isModEventViewDetail(v: unknown): v is ModEventViewDetail;
48
- export declare function validateModEventViewDetail(v: unknown): ValidationResult;
49
- export interface ReportView {
50
- id: number;
51
- reasonType: ComAtprotoModerationDefs.ReasonType;
52
- comment?: string;
53
- subjectRepoHandle?: string;
54
- subject: RepoRef | ComAtprotoRepoStrongRef.Main | {
55
- $type: string;
56
- [k: string]: unknown;
57
- };
58
- reportedBy: string;
59
- createdAt: string;
60
- resolvedByActionIds: number[];
61
- [k: string]: unknown;
62
- }
63
- export declare function isReportView(v: unknown): v is ReportView;
64
- export declare function validateReportView(v: unknown): ValidationResult;
65
- export interface SubjectStatusView {
66
- id: number;
67
- subject: RepoRef | ComAtprotoRepoStrongRef.Main | {
68
- $type: string;
69
- [k: string]: unknown;
70
- };
71
- subjectBlobCids?: string[];
72
- subjectRepoHandle?: string;
73
- updatedAt: string;
74
- createdAt: string;
75
- reviewState: SubjectReviewState;
76
- comment?: string;
77
- muteUntil?: string;
78
- lastReviewedBy?: string;
79
- lastReviewedAt?: string;
80
- lastReportedAt?: string;
81
- lastAppealedAt?: string;
82
- takendown?: boolean;
83
- appealed?: boolean;
84
- suspendUntil?: string;
85
- tags?: string[];
86
- [k: string]: unknown;
87
- }
88
- export declare function isSubjectStatusView(v: unknown): v is SubjectStatusView;
89
- export declare function validateSubjectStatusView(v: unknown): ValidationResult;
90
- export interface ReportViewDetail {
91
- id: number;
92
- reasonType: ComAtprotoModerationDefs.ReasonType;
93
- comment?: string;
94
- subject: RepoView | RepoViewNotFound | RecordView | RecordViewNotFound | {
95
- $type: string;
96
- [k: string]: unknown;
97
- };
98
- subjectStatus?: SubjectStatusView;
99
- reportedBy: string;
100
- createdAt: string;
101
- resolvedByActions: ModEventView[];
102
- [k: string]: unknown;
103
- }
104
- export declare function isReportViewDetail(v: unknown): v is ReportViewDetail;
105
- export declare function validateReportViewDetail(v: unknown): ValidationResult;
106
- export interface RepoView {
107
- did: string;
108
- handle: string;
109
- email?: string;
110
- relatedRecords: {}[];
111
- indexedAt: string;
112
- moderation: Moderation;
113
- invitedBy?: ComAtprotoServerDefs.InviteCode;
114
- invitesDisabled?: boolean;
115
- inviteNote?: string;
116
- [k: string]: unknown;
117
- }
118
- export declare function isRepoView(v: unknown): v is RepoView;
119
- export declare function validateRepoView(v: unknown): ValidationResult;
120
- export interface RepoViewDetail {
121
- did: string;
122
- handle: string;
123
- email?: string;
124
- relatedRecords: {}[];
125
- indexedAt: string;
126
- moderation: ModerationDetail;
127
- labels?: ComAtprotoLabelDefs.Label[];
128
- invitedBy?: ComAtprotoServerDefs.InviteCode;
129
- invites?: ComAtprotoServerDefs.InviteCode[];
130
- invitesDisabled?: boolean;
131
- inviteNote?: string;
132
- emailConfirmedAt?: string;
133
- [k: string]: unknown;
134
- }
135
- export declare function isRepoViewDetail(v: unknown): v is RepoViewDetail;
136
- export declare function validateRepoViewDetail(v: unknown): ValidationResult;
137
10
  export interface AccountView {
138
11
  did: string;
139
12
  handle: string;
@@ -149,12 +22,6 @@ export interface AccountView {
149
22
  }
150
23
  export declare function isAccountView(v: unknown): v is AccountView;
151
24
  export declare function validateAccountView(v: unknown): ValidationResult;
152
- export interface RepoViewNotFound {
153
- did: string;
154
- [k: string]: unknown;
155
- }
156
- export declare function isRepoViewNotFound(v: unknown): v is RepoViewNotFound;
157
- export declare function validateRepoViewNotFound(v: unknown): ValidationResult;
158
25
  export interface RepoRef {
159
26
  did: string;
160
27
  [k: string]: unknown;
@@ -169,174 +36,3 @@ export interface RepoBlobRef {
169
36
  }
170
37
  export declare function isRepoBlobRef(v: unknown): v is RepoBlobRef;
171
38
  export declare function validateRepoBlobRef(v: unknown): ValidationResult;
172
- export interface RecordView {
173
- uri: string;
174
- cid: string;
175
- value: {};
176
- blobCids: string[];
177
- indexedAt: string;
178
- moderation: Moderation;
179
- repo: RepoView;
180
- [k: string]: unknown;
181
- }
182
- export declare function isRecordView(v: unknown): v is RecordView;
183
- export declare function validateRecordView(v: unknown): ValidationResult;
184
- export interface RecordViewDetail {
185
- uri: string;
186
- cid: string;
187
- value: {};
188
- blobs: BlobView[];
189
- labels?: ComAtprotoLabelDefs.Label[];
190
- indexedAt: string;
191
- moderation: ModerationDetail;
192
- repo: RepoView;
193
- [k: string]: unknown;
194
- }
195
- export declare function isRecordViewDetail(v: unknown): v is RecordViewDetail;
196
- export declare function validateRecordViewDetail(v: unknown): ValidationResult;
197
- export interface RecordViewNotFound {
198
- uri: string;
199
- [k: string]: unknown;
200
- }
201
- export declare function isRecordViewNotFound(v: unknown): v is RecordViewNotFound;
202
- export declare function validateRecordViewNotFound(v: unknown): ValidationResult;
203
- export interface Moderation {
204
- subjectStatus?: SubjectStatusView;
205
- [k: string]: unknown;
206
- }
207
- export declare function isModeration(v: unknown): v is Moderation;
208
- export declare function validateModeration(v: unknown): ValidationResult;
209
- export interface ModerationDetail {
210
- subjectStatus?: SubjectStatusView;
211
- [k: string]: unknown;
212
- }
213
- export declare function isModerationDetail(v: unknown): v is ModerationDetail;
214
- export declare function validateModerationDetail(v: unknown): ValidationResult;
215
- export interface BlobView {
216
- cid: string;
217
- mimeType: string;
218
- size: number;
219
- createdAt: string;
220
- details?: ImageDetails | VideoDetails | {
221
- $type: string;
222
- [k: string]: unknown;
223
- };
224
- moderation?: Moderation;
225
- [k: string]: unknown;
226
- }
227
- export declare function isBlobView(v: unknown): v is BlobView;
228
- export declare function validateBlobView(v: unknown): ValidationResult;
229
- export interface ImageDetails {
230
- width: number;
231
- height: number;
232
- [k: string]: unknown;
233
- }
234
- export declare function isImageDetails(v: unknown): v is ImageDetails;
235
- export declare function validateImageDetails(v: unknown): ValidationResult;
236
- export interface VideoDetails {
237
- width: number;
238
- height: number;
239
- length: number;
240
- [k: string]: unknown;
241
- }
242
- export declare function isVideoDetails(v: unknown): v is VideoDetails;
243
- export declare function validateVideoDetails(v: unknown): ValidationResult;
244
- export type SubjectReviewState = 'lex:com.atproto.admin.defs#reviewOpen' | 'lex:com.atproto.admin.defs#reviewEscalated' | 'lex:com.atproto.admin.defs#reviewClosed' | (string & {});
245
- export declare const REVIEWOPEN = "com.atproto.admin.defs#reviewOpen";
246
- export declare const REVIEWESCALATED = "com.atproto.admin.defs#reviewEscalated";
247
- export declare const REVIEWCLOSED = "com.atproto.admin.defs#reviewClosed";
248
- export interface ModEventTakedown {
249
- comment?: string;
250
- durationInHours?: number;
251
- [k: string]: unknown;
252
- }
253
- export declare function isModEventTakedown(v: unknown): v is ModEventTakedown;
254
- export declare function validateModEventTakedown(v: unknown): ValidationResult;
255
- export interface ModEventReverseTakedown {
256
- comment?: string;
257
- [k: string]: unknown;
258
- }
259
- export declare function isModEventReverseTakedown(v: unknown): v is ModEventReverseTakedown;
260
- export declare function validateModEventReverseTakedown(v: unknown): ValidationResult;
261
- export interface ModEventResolveAppeal {
262
- comment?: string;
263
- [k: string]: unknown;
264
- }
265
- export declare function isModEventResolveAppeal(v: unknown): v is ModEventResolveAppeal;
266
- export declare function validateModEventResolveAppeal(v: unknown): ValidationResult;
267
- export interface ModEventComment {
268
- comment: string;
269
- sticky?: boolean;
270
- [k: string]: unknown;
271
- }
272
- export declare function isModEventComment(v: unknown): v is ModEventComment;
273
- export declare function validateModEventComment(v: unknown): ValidationResult;
274
- export interface ModEventReport {
275
- comment?: string;
276
- reportType: ComAtprotoModerationDefs.ReasonType;
277
- [k: string]: unknown;
278
- }
279
- export declare function isModEventReport(v: unknown): v is ModEventReport;
280
- export declare function validateModEventReport(v: unknown): ValidationResult;
281
- export interface ModEventLabel {
282
- comment?: string;
283
- createLabelVals: string[];
284
- negateLabelVals: string[];
285
- [k: string]: unknown;
286
- }
287
- export declare function isModEventLabel(v: unknown): v is ModEventLabel;
288
- export declare function validateModEventLabel(v: unknown): ValidationResult;
289
- export interface ModEventAcknowledge {
290
- comment?: string;
291
- [k: string]: unknown;
292
- }
293
- export declare function isModEventAcknowledge(v: unknown): v is ModEventAcknowledge;
294
- export declare function validateModEventAcknowledge(v: unknown): ValidationResult;
295
- export interface ModEventEscalate {
296
- comment?: string;
297
- [k: string]: unknown;
298
- }
299
- export declare function isModEventEscalate(v: unknown): v is ModEventEscalate;
300
- export declare function validateModEventEscalate(v: unknown): ValidationResult;
301
- export interface ModEventMute {
302
- comment?: string;
303
- durationInHours: number;
304
- [k: string]: unknown;
305
- }
306
- export declare function isModEventMute(v: unknown): v is ModEventMute;
307
- export declare function validateModEventMute(v: unknown): ValidationResult;
308
- export interface ModEventUnmute {
309
- comment?: string;
310
- [k: string]: unknown;
311
- }
312
- export declare function isModEventUnmute(v: unknown): v is ModEventUnmute;
313
- export declare function validateModEventUnmute(v: unknown): ValidationResult;
314
- export interface ModEventEmail {
315
- subjectLine: string;
316
- content?: string;
317
- comment?: string;
318
- [k: string]: unknown;
319
- }
320
- export declare function isModEventEmail(v: unknown): v is ModEventEmail;
321
- export declare function validateModEventEmail(v: unknown): ValidationResult;
322
- export interface ModEventTag {
323
- add: string[];
324
- remove: string[];
325
- comment?: string;
326
- [k: string]: unknown;
327
- }
328
- export declare function isModEventTag(v: unknown): v is ModEventTag;
329
- export declare function validateModEventTag(v: unknown): ValidationResult;
330
- export interface CommunicationTemplateView {
331
- id: string;
332
- name: string;
333
- subject?: string;
334
- contentMarkdown: string;
335
- disabled: boolean;
336
- lastUpdatedBy: string;
337
- createdAt: string;
338
- updatedAt: string;
339
- [k: string]: unknown;
340
- }
341
- export declare function isCommunicationTemplateView(v: unknown): v is CommunicationTemplateView;
342
- export declare function validateCommunicationTemplateView(v: unknown): ValidationResult;
@@ -1,11 +1,14 @@
1
1
  import { ValidationResult } from '@atproto/lexicon';
2
2
  export interface Label {
3
+ ver?: number;
3
4
  src: string;
4
5
  uri: string;
5
6
  cid?: string;
6
7
  val: string;
7
8
  neg?: boolean;
8
9
  cts: string;
10
+ exp?: string;
11
+ sig?: Uint8Array;
9
12
  [k: string]: unknown;
10
13
  }
11
14
  export declare function isLabel(v: unknown): v is Label;
@@ -22,3 +25,23 @@ export interface SelfLabel {
22
25
  }
23
26
  export declare function isSelfLabel(v: unknown): v is SelfLabel;
24
27
  export declare function validateSelfLabel(v: unknown): ValidationResult;
28
+ export interface LabelValueDefinition {
29
+ identifier: string;
30
+ severity: 'inform' | 'alert' | 'none' | (string & {});
31
+ blurs: 'content' | 'media' | 'none' | (string & {});
32
+ defaultSetting: 'ignore' | 'warn' | 'hide' | (string & {});
33
+ adultOnly?: boolean;
34
+ locales: LabelValueDefinitionStrings[];
35
+ [k: string]: unknown;
36
+ }
37
+ export declare function isLabelValueDefinition(v: unknown): v is LabelValueDefinition;
38
+ export declare function validateLabelValueDefinition(v: unknown): ValidationResult;
39
+ export interface LabelValueDefinitionStrings {
40
+ lang: string;
41
+ name: string;
42
+ description: string;
43
+ [k: string]: unknown;
44
+ }
45
+ export declare function isLabelValueDefinitionStrings(v: unknown): v is LabelValueDefinitionStrings;
46
+ export declare function validateLabelValueDefinitionStrings(v: unknown): ValidationResult;
47
+ export type LabelValue = '!hide' | '!no-promote' | '!warn' | '!no-unauthenticated' | 'dmca-violation' | 'doxxing' | 'porn' | 'sexual' | 'nudity' | 'nsfl' | 'gore' | (string & {});
@@ -9,6 +9,7 @@ export interface OutputSchema {
9
9
  phoneVerificationRequired?: boolean;
10
10
  availableUserDomains: string[];
11
11
  links?: Links;
12
+ contact?: Contact;
12
13
  did: string;
13
14
  [k: string]: unknown;
14
15
  }
@@ -40,3 +41,9 @@ export interface Links {
40
41
  }
41
42
  export declare function isLinks(v: unknown): v is Links;
42
43
  export declare function validateLinks(v: unknown): ValidationResult;
44
+ export interface Contact {
45
+ email?: string;
46
+ [k: string]: unknown;
47
+ }
48
+ export declare function isContact(v: unknown): v is Contact;
49
+ export declare function validateContact(v: unknown): ValidationResult;
@@ -1,4 +1,4 @@
1
- import { ClearActorMutelistSubscriptionsRequest, ClearActorMutelistSubscriptionsResponse, ClearActorMutesRequest, ClearActorMutesResponse, CreateActorMutelistSubscriptionRequest, CreateActorMutelistSubscriptionResponse, CreateActorMuteRequest, CreateActorMuteResponse, DeleteActorMutelistSubscriptionRequest, DeleteActorMutelistSubscriptionResponse, DeleteActorMuteRequest, DeleteActorMuteResponse, GetActorFeedsRequest, GetActorFeedsResponse, GetActorFollowsActorsRequest, GetActorFollowsActorsResponse, GetActorLikesRequest, GetActorLikesResponse, GetActorListsRequest, GetActorListsResponse, GetActorMutesActorRequest, GetActorMutesActorResponse, GetActorMutesActorViaListRequest, GetActorMutesActorViaListResponse, GetActorRepostsRequest, GetActorRepostsResponse, GetActorsRequest, GetActorsResponse, GetActorTakedownRequest, GetActorTakedownResponse, GetAuthorFeedRequest, GetAuthorFeedResponse, GetBidirectionalBlockRequest, GetBidirectionalBlockResponse, GetBidirectionalBlockViaListRequest, GetBidirectionalBlockViaListResponse, GetBlobTakedownRequest, GetBlobTakedownResponse, GetBlockExistenceRequest, GetBlockExistenceResponse, GetBlocklistSubscriptionRequest, GetBlocklistSubscriptionResponse, GetBlocklistSubscriptionsRequest, GetBlocklistSubscriptionsResponse, GetBlockRecordsRequest, GetBlockRecordsResponse, GetBlocksRequest, GetBlocksResponse, GetCountsForUsersRequest, GetCountsForUsersResponse, GetDidsByHandlesRequest, GetDidsByHandlesResponse, GetFeedGeneratorRecordsRequest, GetFeedGeneratorRecordsResponse, GetFeedGeneratorStatusRequest, GetFeedGeneratorStatusResponse, GetFollowersRequest, GetFollowersResponse, GetFollowRecordsRequest, GetFollowRecordsResponse, GetFollowsRequest, GetFollowsResponse, GetFollowSuggestionsRequest, GetFollowSuggestionsResponse, GetIdentityByDidRequest, GetIdentityByDidResponse, GetIdentityByHandleRequest, GetIdentityByHandleResponse, GetInteractionCountsRequest, GetInteractionCountsResponse, GetLabelsRequest, GetLabelsResponse, GetLatestRevRequest, GetLatestRevResponse, GetLikeRecordsRequest, GetLikeRecordsResponse, GetLikesByActorAndSubjectsRequest, GetLikesByActorAndSubjectsResponse, GetLikesBySubjectRequest, GetLikesBySubjectResponse, GetListBlockRecordsRequest, GetListBlockRecordsResponse, GetListCountRequest, GetListCountResponse, GetListFeedRequest, GetListFeedResponse, GetListItemRecordsRequest, GetListItemRecordsResponse, GetListMembershipRequest, GetListMembershipResponse, GetListMembersRequest, GetListMembersResponse, GetListRecordsRequest, GetListRecordsResponse, GetMutelistSubscriptionRequest, GetMutelistSubscriptionResponse, GetMutelistSubscriptionsRequest, GetMutelistSubscriptionsResponse, GetMutesRequest, GetMutesResponse, GetNotificationSeenRequest, GetNotificationSeenResponse, GetNotificationsRequest, GetNotificationsResponse, GetPostRecordsRequest, GetPostRecordsResponse, GetPostReplyCountsRequest, GetPostReplyCountsResponse, GetProfileRecordsRequest, GetProfileRecordsResponse, GetRecordTakedownRequest, GetRecordTakedownResponse, GetRelationshipsRequest, GetRelationshipsResponse, GetRepostRecordsRequest, GetRepostRecordsResponse, GetRepostsByActorAndSubjectsRequest, GetRepostsByActorAndSubjectsResponse, GetRepostsBySubjectRequest, GetRepostsBySubjectResponse, GetSuggestedEntitiesRequest, GetSuggestedEntitiesResponse, GetSuggestedFeedsRequest, GetSuggestedFeedsResponse, GetThreadGateRecordsRequest, GetThreadGateRecordsResponse, GetThreadRequest, GetThreadResponse, GetTimelineRequest, GetTimelineResponse, GetUnreadNotificationCountRequest, GetUnreadNotificationCountResponse, PingRequest, PingResponse, SearchActorsRequest, SearchActorsResponse, SearchFeedGeneratorsRequest, SearchFeedGeneratorsResponse, SearchPostsRequest, SearchPostsResponse, TakedownActorRequest, TakedownActorResponse, TakedownBlobRequest, TakedownBlobResponse, TakedownRecordRequest, TakedownRecordResponse, UntakedownActorRequest, UntakedownActorResponse, UntakedownBlobRequest, UntakedownBlobResponse, UntakedownRecordRequest, UntakedownRecordResponse, UpdateNotificationSeenRequest, UpdateNotificationSeenResponse } from './bsky_pb.ts';
1
+ import { ClearActorMutelistSubscriptionsRequest, ClearActorMutelistSubscriptionsResponse, ClearActorMutesRequest, ClearActorMutesResponse, CreateActorMutelistSubscriptionRequest, CreateActorMutelistSubscriptionResponse, CreateActorMuteRequest, CreateActorMuteResponse, DeleteActorMutelistSubscriptionRequest, DeleteActorMutelistSubscriptionResponse, DeleteActorMuteRequest, DeleteActorMuteResponse, GetActorFeedsRequest, GetActorFeedsResponse, GetActorFollowsActorsRequest, GetActorFollowsActorsResponse, GetActorLikesRequest, GetActorLikesResponse, GetActorListsRequest, GetActorListsResponse, GetActorMutesActorRequest, GetActorMutesActorResponse, GetActorMutesActorViaListRequest, GetActorMutesActorViaListResponse, GetActorRepostsRequest, GetActorRepostsResponse, GetActorsRequest, GetActorsResponse, GetActorTakedownRequest, GetActorTakedownResponse, GetAuthorFeedRequest, GetAuthorFeedResponse, GetBidirectionalBlockRequest, GetBidirectionalBlockResponse, GetBidirectionalBlockViaListRequest, GetBidirectionalBlockViaListResponse, GetBlobTakedownRequest, GetBlobTakedownResponse, GetBlockExistenceRequest, GetBlockExistenceResponse, GetBlocklistSubscriptionRequest, GetBlocklistSubscriptionResponse, GetBlocklistSubscriptionsRequest, GetBlocklistSubscriptionsResponse, GetBlockRecordsRequest, GetBlockRecordsResponse, GetBlocksRequest, GetBlocksResponse, GetCountsForUsersRequest, GetCountsForUsersResponse, GetDidsByHandlesRequest, GetDidsByHandlesResponse, GetFeedGeneratorRecordsRequest, GetFeedGeneratorRecordsResponse, GetFeedGeneratorStatusRequest, GetFeedGeneratorStatusResponse, GetFollowersRequest, GetFollowersResponse, GetFollowRecordsRequest, GetFollowRecordsResponse, GetFollowsRequest, GetFollowsResponse, GetFollowSuggestionsRequest, GetFollowSuggestionsResponse, GetIdentityByDidRequest, GetIdentityByDidResponse, GetIdentityByHandleRequest, GetIdentityByHandleResponse, GetInteractionCountsRequest, GetInteractionCountsResponse, GetLabelerRecordsRequest, GetLabelerRecordsResponse, GetLabelsRequest, GetLabelsResponse, GetLatestRevRequest, GetLatestRevResponse, GetLikeRecordsRequest, GetLikeRecordsResponse, GetLikesByActorAndSubjectsRequest, GetLikesByActorAndSubjectsResponse, GetLikesBySubjectRequest, GetLikesBySubjectResponse, GetListBlockRecordsRequest, GetListBlockRecordsResponse, GetListCountRequest, GetListCountResponse, GetListFeedRequest, GetListFeedResponse, GetListItemRecordsRequest, GetListItemRecordsResponse, GetListMembershipRequest, GetListMembershipResponse, GetListMembersRequest, GetListMembersResponse, GetListRecordsRequest, GetListRecordsResponse, GetMutelistSubscriptionRequest, GetMutelistSubscriptionResponse, GetMutelistSubscriptionsRequest, GetMutelistSubscriptionsResponse, GetMutesRequest, GetMutesResponse, GetNotificationSeenRequest, GetNotificationSeenResponse, GetNotificationsRequest, GetNotificationsResponse, GetPostRecordsRequest, GetPostRecordsResponse, GetPostReplyCountsRequest, GetPostReplyCountsResponse, GetProfileRecordsRequest, GetProfileRecordsResponse, GetRecordTakedownRequest, GetRecordTakedownResponse, GetRelationshipsRequest, GetRelationshipsResponse, GetRepostRecordsRequest, GetRepostRecordsResponse, GetRepostsByActorAndSubjectsRequest, GetRepostsByActorAndSubjectsResponse, GetRepostsBySubjectRequest, GetRepostsBySubjectResponse, GetSuggestedEntitiesRequest, GetSuggestedEntitiesResponse, GetSuggestedFeedsRequest, GetSuggestedFeedsResponse, GetThreadGateRecordsRequest, GetThreadGateRecordsResponse, GetThreadRequest, GetThreadResponse, GetTimelineRequest, GetTimelineResponse, GetUnreadNotificationCountRequest, GetUnreadNotificationCountResponse, PingRequest, PingResponse, SearchActorsRequest, SearchActorsResponse, SearchFeedGeneratorsRequest, SearchFeedGeneratorsResponse, SearchPostsRequest, SearchPostsResponse, TakedownActorRequest, TakedownActorResponse, TakedownBlobRequest, TakedownBlobResponse, TakedownRecordRequest, TakedownRecordResponse, UntakedownActorRequest, UntakedownActorResponse, UntakedownBlobRequest, UntakedownBlobResponse, UntakedownRecordRequest, UntakedownRecordResponse, UpdateNotificationSeenRequest, UpdateNotificationSeenResponse } from './bsky_pb.ts';
2
2
  import { MethodKind } from '@bufbuild/protobuf';
3
3
  export declare const Service: {
4
4
  readonly typeName: "bsky.Service";
@@ -69,6 +69,12 @@ export declare const Service: {
69
69
  readonly O: typeof GetThreadGateRecordsResponse;
70
70
  readonly kind: MethodKind.Unary;
71
71
  };
72
+ readonly getLabelerRecords: {
73
+ readonly name: "GetLabelerRecords";
74
+ readonly I: typeof GetLabelerRecordsRequest;
75
+ readonly O: typeof GetLabelerRecordsResponse;
76
+ readonly kind: MethodKind.Unary;
77
+ };
72
78
  readonly getActorFollowsActors: {
73
79
  readonly name: "GetActorFollowsActors";
74
80
  readonly I: typeof GetActorFollowsActorsRequest;
@@ -279,6 +279,28 @@ export declare class GetThreadGateRecordsResponse extends Message<GetThreadGateR
279
279
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetThreadGateRecordsResponse;
280
280
  static equals(a: GetThreadGateRecordsResponse | PlainMessage<GetThreadGateRecordsResponse> | undefined, b: GetThreadGateRecordsResponse | PlainMessage<GetThreadGateRecordsResponse> | undefined): boolean;
281
281
  }
282
+ export declare class GetLabelerRecordsRequest extends Message<GetLabelerRecordsRequest> {
283
+ uris: string[];
284
+ constructor(data?: PartialMessage<GetLabelerRecordsRequest>);
285
+ static readonly runtime: typeof proto3;
286
+ static readonly typeName = "bsky.GetLabelerRecordsRequest";
287
+ static readonly fields: FieldList;
288
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetLabelerRecordsRequest;
289
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetLabelerRecordsRequest;
290
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetLabelerRecordsRequest;
291
+ static equals(a: GetLabelerRecordsRequest | PlainMessage<GetLabelerRecordsRequest> | undefined, b: GetLabelerRecordsRequest | PlainMessage<GetLabelerRecordsRequest> | undefined): boolean;
292
+ }
293
+ export declare class GetLabelerRecordsResponse extends Message<GetLabelerRecordsResponse> {
294
+ records: Record[];
295
+ constructor(data?: PartialMessage<GetLabelerRecordsResponse>);
296
+ static readonly runtime: typeof proto3;
297
+ static readonly typeName = "bsky.GetLabelerRecordsResponse";
298
+ static readonly fields: FieldList;
299
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetLabelerRecordsResponse;
300
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetLabelerRecordsResponse;
301
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetLabelerRecordsResponse;
302
+ static equals(a: GetLabelerRecordsResponse | PlainMessage<GetLabelerRecordsResponse> | undefined, b: GetLabelerRecordsResponse | PlainMessage<GetLabelerRecordsResponse> | undefined): boolean;
303
+ }
282
304
  export declare class GetActorFollowsActorsRequest extends Message<GetActorFollowsActorsRequest> {
283
305
  actorDid: string;
284
306
  targetDids: string[];
@@ -490,6 +512,8 @@ export declare class GetCountsForUsersResponse extends Message<GetCountsForUsers
490
512
  reposts: number[];
491
513
  following: number[];
492
514
  followers: number[];
515
+ lists: number[];
516
+ feeds: number[];
493
517
  constructor(data?: PartialMessage<GetCountsForUsersResponse>);
494
518
  static readonly runtime: typeof proto3;
495
519
  static readonly typeName = "bsky.GetCountsForUsersResponse";
@@ -602,6 +626,7 @@ export declare class ActorInfo extends Message<ActorInfo> {
602
626
  takenDown: boolean;
603
627
  takedownRef: string;
604
628
  tombstonedAt?: Timestamp;
629
+ labeler: boolean;
605
630
  constructor(data?: PartialMessage<ActorInfo>);
606
631
  static readonly runtime: typeof proto3;
607
632
  static readonly typeName = "bsky.ActorInfo";
package/dist/util.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ export type ParsedLabelers = {
2
+ dids: string[];
3
+ redact: Set<string>;
4
+ };
5
+ export declare const parseLabelerHeader: (header: string | undefined) => ParsedLabelers | null;
6
+ export declare const defaultLabelerHeader: (dids: string[]) => ParsedLabelers;
7
+ export declare const formatLabelerHeader: (parsed: ParsedLabelers) => string;
@@ -6,6 +6,7 @@ import { ListView, ListViewBasic } from '../lexicon/types/app/bsky/graph/defs';
6
6
  import { Embed, EmbedBlocked, EmbedNotFound, EmbedView, ExternalEmbed, ExternalEmbedView, ImagesEmbed, ImagesEmbedView, MaybePostView, NotificationView, PostEmbedView, RecordEmbed, RecordEmbedView, RecordWithMedia, RecordWithMediaView } from './types';
7
7
  import { Label } from '../hydration/label';
8
8
  import { FeedItem, Repost } from '../hydration/feed';
9
+ import { LabelerView, LabelerViewDetailed } from '../lexicon/types/app/bsky/labeler/defs';
9
10
  import { Notification } from '../proto/bsky_pb';
10
11
  export declare class Views {
11
12
  imgUriBuilder: ImageUriBuilder;
@@ -25,6 +26,8 @@ export declare class Views {
25
26
  cid?: string;
26
27
  record?: Record<string, unknown>;
27
28
  }): Label[];
29
+ labeler(did: string, state: HydrationState): LabelerView | undefined;
30
+ labelerDetailed(did: string, state: HydrationState): LabelerViewDetailed | undefined;
28
31
  feedItemBlocksAndMutes(item: FeedItem, state: HydrationState): {
29
32
  originatorMuted: boolean;
30
33
  originatorBlocked: boolean;