@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/dist/db/pagination.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export declare abstract class GenericKeyset<R, LR extends LabeledResult> {
|
|
|
14
14
|
abstract labelResult(result: R): LR;
|
|
15
15
|
abstract labeledResultToCursor(labeled: LR): Cursor;
|
|
16
16
|
abstract cursorToLabeledResult(cursor: Cursor): LR;
|
|
17
|
+
static clearlyBad(cursor?: string): boolean;
|
|
17
18
|
packFromResult(results: R | R[]): string | undefined;
|
|
18
19
|
pack(labeled?: LR): string | undefined;
|
|
19
20
|
unpack(cursorStr?: string): LR | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -7,18 +7,15 @@ import { DatabaseCoordinator } from './db';
|
|
|
7
7
|
import { ServerConfig } from './config';
|
|
8
8
|
import AppContext from './context';
|
|
9
9
|
import { ImageInvalidator } from './image/invalidator';
|
|
10
|
-
import { MountedAlgos } from './feed-gen/types';
|
|
11
10
|
import { Keypair } from '@atproto/crypto';
|
|
12
11
|
import { Redis } from './redis';
|
|
13
12
|
export type { ServerConfigValues } from './config';
|
|
14
|
-
export type { MountedAlgos } from './feed-gen/types';
|
|
15
13
|
export { ServerConfig } from './config';
|
|
16
14
|
export { Database, PrimaryDatabase, DatabaseCoordinator } from './db';
|
|
17
15
|
export { Redis } from './redis';
|
|
18
16
|
export { ViewMaintainer } from './db/views';
|
|
19
17
|
export { AppContext } from './context';
|
|
20
18
|
export type { ImageInvalidator } from './image/invalidator';
|
|
21
|
-
export { makeAlgos } from './feed-gen';
|
|
22
19
|
export * from './daemon';
|
|
23
20
|
export * from './indexer';
|
|
24
21
|
export * from './ingester';
|
|
@@ -38,7 +35,6 @@ export declare class BskyAppView {
|
|
|
38
35
|
config: ServerConfig;
|
|
39
36
|
signingKey: Keypair;
|
|
40
37
|
imgInvalidator?: ImageInvalidator;
|
|
41
|
-
algos?: MountedAlgos;
|
|
42
38
|
}): BskyAppView;
|
|
43
39
|
start(): Promise<http.Server>;
|
|
44
40
|
destroy(opts?: {
|