@atproto/bsky 0.0.28 → 0.0.29
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/CHANGELOG.md +7 -0
- package/LICENSE.txt +1 -1
- package/dist/auto-moderator/index.d.ts +1 -14
- package/dist/context.d.ts +0 -3
- package/dist/db/index.js +34593 -3478
- package/dist/db/index.js.map +3 -3
- package/dist/db/pagination.d.ts +1 -0
- package/dist/index.d.ts +0 -4
- package/dist/index.js +1531 -1723
- package/dist/index.js.map +3 -3
- package/dist/indexer/config.d.ts +0 -8
- package/dist/lexicon/index.d.ts +0 -2
- package/dist/lexicon/lexicons.d.ts +38 -47
- package/dist/lexicon/types/com/atproto/admin/defs.d.ts +2 -2
- package/dist/lexicon/types/com/atproto/admin/queryModerationEvents.d.ts +7 -0
- package/package.json +7 -6
- package/src/api/app/bsky/actor/getSuggestions.ts +1 -1
- package/src/api/app/bsky/actor/searchActors.ts +1 -0
- package/src/api/app/bsky/feed/getActorFeeds.ts +6 -0
- package/src/api/app/bsky/feed/getActorLikes.ts +4 -0
- package/src/api/app/bsky/feed/getAuthorFeed.ts +4 -0
- package/src/api/app/bsky/feed/getFeed.ts +8 -5
- package/src/api/app/bsky/feed/getLikes.ts +4 -0
- package/src/api/app/bsky/feed/getListFeed.ts +4 -0
- package/src/api/app/bsky/feed/getRepostedBy.ts +4 -0
- package/src/api/app/bsky/feed/getSuggestedFeeds.ts +1 -1
- package/src/api/app/bsky/feed/getTimeline.ts +4 -0
- package/src/api/app/bsky/feed/searchPosts.ts +1 -0
- package/src/api/app/bsky/graph/getBlocks.ts +7 -0
- package/src/api/app/bsky/graph/getFollowers.ts +4 -0
- package/src/api/app/bsky/graph/getFollows.ts +4 -0
- package/src/api/app/bsky/graph/getList.ts +4 -0
- package/src/api/app/bsky/graph/getListBlocks.ts +4 -0
- package/src/api/app/bsky/graph/getListMutes.ts +7 -0
- package/src/api/app/bsky/graph/getLists.ts +7 -0
- package/src/api/app/bsky/graph/getMutes.ts +7 -0
- package/src/api/app/bsky/notification/listNotifications.ts +3 -0
- package/src/api/app/bsky/unspecced/getPopularFeedGenerators.ts +7 -1
- package/src/api/index.ts +0 -6
- package/src/auto-moderator/index.ts +9 -176
- package/src/context.ts +0 -6
- package/src/db/pagination.ts +3 -0
- package/src/index.ts +1 -6
- package/src/indexer/config.ts +0 -29
- package/src/lexicon/index.ts +0 -12
- package/src/lexicon/lexicons.ts +43 -50
- package/src/lexicon/types/com/atproto/admin/defs.ts +2 -0
- package/src/lexicon/types/com/atproto/admin/queryModerationEvents.ts +13 -0
- package/src/logger.ts +32 -0
- package/tests/auto-moderator/labeler.test.ts +2 -0
- package/tests/feed-generation.test.ts +0 -6
- package/tests/views/notifications.test.ts +9 -0
- package/tests/views/timeline.test.ts +8 -0
- package/dist/api/app/bsky/feed/describeFeedGenerator.d.ts +0 -3
- package/dist/api/app/bsky/feed/getFeedSkeleton.d.ts +0 -3
- package/dist/api/app/bsky/unspecced/getTimelineSkeleton.d.ts +0 -3
- package/dist/auto-moderator/abyss.d.ts +0 -48
- package/dist/auto-moderator/fuzzy-matcher.d.ts +0 -14
- package/dist/feed-gen/bsky-team.d.ts +0 -3
- package/dist/feed-gen/hot-classic.d.ts +0 -3
- package/dist/feed-gen/index.d.ts +0 -2
- package/dist/feed-gen/mutuals.d.ts +0 -3
- package/dist/feed-gen/types.d.ts +0 -15
- package/dist/lexicon/types/app/bsky/unspecced/getTimelineSkeleton.d.ts +0 -35
- package/src/api/app/bsky/feed/describeFeedGenerator.ts +0 -21
- package/src/api/app/bsky/feed/getFeedSkeleton.ts +0 -30
- package/src/api/app/bsky/unspecced/getTimelineSkeleton.ts +0 -26
- package/src/auto-moderator/abyss.ts +0 -114
- package/src/auto-moderator/fuzzy-matcher.ts +0 -126
- package/src/feed-gen/bsky-team.ts +0 -42
- package/src/feed-gen/hot-classic.ts +0 -55
- package/src/feed-gen/index.ts +0 -17
- package/src/feed-gen/mutuals.ts +0 -57
- package/src/feed-gen/types.ts +0 -32
- package/src/lexicon/types/app/bsky/unspecced/getTimelineSkeleton.ts +0 -49
- package/tests/algos/hot-classic.test.ts +0 -87
- package/tests/auto-moderator/fuzzy-matcher.test.ts +0 -163
- package/tests/auto-moderator/takedowns.test.ts +0 -202
package/CHANGELOG.md
CHANGED
package/LICENSE.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Dual MIT/Apache-2.0 License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2022-
|
|
3
|
+
Copyright (c) 2022-2024 Bluesky PBC, and Contributors
|
|
4
4
|
|
|
5
5
|
Except as otherwise noted in individual files, this software is licensed under the MIT license (<http://opensource.org/licenses/MIT>), or the Apache License, Version 2.0 (<http://www.apache.org/licenses/LICENSE-2.0>).
|
|
6
6
|
|
|
@@ -5,10 +5,8 @@ import { IdResolver } from '@atproto/identity';
|
|
|
5
5
|
import { BackgroundQueue } from '../background';
|
|
6
6
|
import { IndexerConfig } from '../indexer/config';
|
|
7
7
|
import { CID } from 'multiformats/cid';
|
|
8
|
-
import { ImageFlagger } from './abyss';
|
|
9
8
|
import { ImgLabeler } from './hive';
|
|
10
9
|
import { TextLabeler } from './keyword';
|
|
11
|
-
import { TextFlagger } from './fuzzy-matcher';
|
|
12
10
|
export declare class AutoModerator {
|
|
13
11
|
ctx: {
|
|
14
12
|
db: PrimaryDatabase;
|
|
@@ -17,8 +15,6 @@ export declare class AutoModerator {
|
|
|
17
15
|
backgroundQueue: BackgroundQueue;
|
|
18
16
|
};
|
|
19
17
|
pushAgent: AtpAgent;
|
|
20
|
-
imageFlagger?: ImageFlagger;
|
|
21
|
-
textFlagger?: TextFlagger;
|
|
22
18
|
imgLabeler?: ImgLabeler;
|
|
23
19
|
textLabeler?: TextLabeler;
|
|
24
20
|
constructor(ctx: {
|
|
@@ -28,17 +24,8 @@ export declare class AutoModerator {
|
|
|
28
24
|
backgroundQueue: BackgroundQueue;
|
|
29
25
|
});
|
|
30
26
|
processRecord(uri: AtUri, cid: CID, obj: unknown): void;
|
|
31
|
-
processHandle(
|
|
27
|
+
processHandle(_handle: string, _did: string): void;
|
|
32
28
|
labelRecord(uri: AtUri, recordCid: CID, text: string[], imgs: CID[]): Promise<void>;
|
|
33
|
-
flagRecordText(uri: AtUri, cid: CID, text: string[]): Promise<void>;
|
|
34
|
-
flagSubjectText(text: string, subject: {
|
|
35
|
-
did: string;
|
|
36
|
-
} | {
|
|
37
|
-
uri: AtUri;
|
|
38
|
-
cid: CID;
|
|
39
|
-
}): Promise<void>;
|
|
40
|
-
checkImgForTakedown(uri: AtUri, recordCid: CID, imgCids: CID[]): Promise<void>;
|
|
41
|
-
persistTakedown(uri: AtUri, recordCid: CID, takedownCids: CID[], labels: string[]): Promise<void>;
|
|
42
29
|
pushLabels(uri: AtUri, cid: CID, labels: string[]): Promise<void>;
|
|
43
30
|
processAll(): Promise<void>;
|
|
44
31
|
}
|
package/dist/context.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ import { ImageUriBuilder } from './image/uri';
|
|
|
8
8
|
import { Services } from './services';
|
|
9
9
|
import DidRedisCache from './did-cache';
|
|
10
10
|
import { BackgroundQueue } from './background';
|
|
11
|
-
import { MountedAlgos } from './feed-gen/types';
|
|
12
11
|
import { Redis } from './redis';
|
|
13
12
|
import { AuthVerifier } from './auth-verifier';
|
|
14
13
|
import { BsyncClient } from './bsync';
|
|
@@ -28,7 +27,6 @@ export declare class AppContext {
|
|
|
28
27
|
searchAgent?: AtpAgent;
|
|
29
28
|
bsyncClient?: BsyncClient;
|
|
30
29
|
courierClient?: CourierClient;
|
|
31
|
-
algos: MountedAlgos;
|
|
32
30
|
authVerifier: AuthVerifier;
|
|
33
31
|
});
|
|
34
32
|
get db(): DatabaseCoordinator;
|
|
@@ -46,6 +44,5 @@ export declare class AppContext {
|
|
|
46
44
|
get authVerifier(): AuthVerifier;
|
|
47
45
|
serviceAuthJwt(aud: string): Promise<string>;
|
|
48
46
|
get backgroundQueue(): BackgroundQueue;
|
|
49
|
-
get algos(): MountedAlgos;
|
|
50
47
|
}
|
|
51
48
|
export default AppContext;
|