@atproto/bsky 0.0.27 → 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.
Files changed (78) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/LICENSE.txt +1 -1
  3. package/dist/auto-moderator/index.d.ts +1 -14
  4. package/dist/context.d.ts +0 -3
  5. package/dist/db/index.js +34593 -3478
  6. package/dist/db/index.js.map +3 -3
  7. package/dist/db/pagination.d.ts +1 -0
  8. package/dist/index.d.ts +0 -4
  9. package/dist/index.js +1667 -1786
  10. package/dist/index.js.map +3 -3
  11. package/dist/indexer/config.d.ts +0 -8
  12. package/dist/lexicon/index.d.ts +2 -2
  13. package/dist/lexicon/lexicons.d.ts +67 -47
  14. package/dist/lexicon/types/com/atproto/admin/defs.d.ts +2 -2
  15. package/dist/lexicon/types/com/atproto/admin/queryModerationEvents.d.ts +7 -0
  16. package/dist/lexicon/types/{app/bsky/unspecced/getTimelineSkeleton.d.ts → com/atproto/temp/checkSignupQueue.d.ts} +3 -6
  17. package/package.json +6 -5
  18. package/src/api/app/bsky/actor/getSuggestions.ts +1 -1
  19. package/src/api/app/bsky/actor/searchActors.ts +1 -0
  20. package/src/api/app/bsky/feed/getActorFeeds.ts +6 -0
  21. package/src/api/app/bsky/feed/getActorLikes.ts +4 -0
  22. package/src/api/app/bsky/feed/getAuthorFeed.ts +4 -0
  23. package/src/api/app/bsky/feed/getFeed.ts +8 -5
  24. package/src/api/app/bsky/feed/getLikes.ts +4 -0
  25. package/src/api/app/bsky/feed/getListFeed.ts +4 -0
  26. package/src/api/app/bsky/feed/getRepostedBy.ts +4 -0
  27. package/src/api/app/bsky/feed/getSuggestedFeeds.ts +1 -1
  28. package/src/api/app/bsky/feed/getTimeline.ts +4 -0
  29. package/src/api/app/bsky/feed/searchPosts.ts +1 -0
  30. package/src/api/app/bsky/graph/getBlocks.ts +7 -0
  31. package/src/api/app/bsky/graph/getFollowers.ts +4 -0
  32. package/src/api/app/bsky/graph/getFollows.ts +4 -0
  33. package/src/api/app/bsky/graph/getList.ts +4 -0
  34. package/src/api/app/bsky/graph/getListBlocks.ts +4 -0
  35. package/src/api/app/bsky/graph/getListMutes.ts +7 -0
  36. package/src/api/app/bsky/graph/getLists.ts +7 -0
  37. package/src/api/app/bsky/graph/getMutes.ts +7 -0
  38. package/src/api/app/bsky/notification/listNotifications.ts +3 -0
  39. package/src/api/app/bsky/unspecced/getPopularFeedGenerators.ts +7 -1
  40. package/src/api/index.ts +0 -6
  41. package/src/auto-moderator/index.ts +9 -176
  42. package/src/context.ts +0 -6
  43. package/src/db/pagination.ts +3 -0
  44. package/src/index.ts +1 -6
  45. package/src/indexer/config.ts +0 -29
  46. package/src/lexicon/index.ts +12 -12
  47. package/src/lexicon/lexicons.ts +72 -50
  48. package/src/lexicon/types/com/atproto/admin/defs.ts +2 -0
  49. package/src/lexicon/types/com/atproto/admin/queryModerationEvents.ts +13 -0
  50. package/src/lexicon/types/{app/bsky/unspecced/getTimelineSkeleton.ts → com/atproto/temp/checkSignupQueue.ts} +4 -8
  51. package/src/logger.ts +32 -0
  52. package/tests/auto-moderator/labeler.test.ts +2 -0
  53. package/tests/feed-generation.test.ts +0 -6
  54. package/tests/views/notifications.test.ts +9 -0
  55. package/tests/views/timeline.test.ts +8 -0
  56. package/dist/api/app/bsky/feed/describeFeedGenerator.d.ts +0 -3
  57. package/dist/api/app/bsky/feed/getFeedSkeleton.d.ts +0 -3
  58. package/dist/api/app/bsky/unspecced/getTimelineSkeleton.d.ts +0 -3
  59. package/dist/auto-moderator/abyss.d.ts +0 -48
  60. package/dist/auto-moderator/fuzzy-matcher.d.ts +0 -14
  61. package/dist/feed-gen/bsky-team.d.ts +0 -3
  62. package/dist/feed-gen/hot-classic.d.ts +0 -3
  63. package/dist/feed-gen/index.d.ts +0 -2
  64. package/dist/feed-gen/mutuals.d.ts +0 -3
  65. package/dist/feed-gen/types.d.ts +0 -15
  66. package/src/api/app/bsky/feed/describeFeedGenerator.ts +0 -21
  67. package/src/api/app/bsky/feed/getFeedSkeleton.ts +0 -30
  68. package/src/api/app/bsky/unspecced/getTimelineSkeleton.ts +0 -26
  69. package/src/auto-moderator/abyss.ts +0 -114
  70. package/src/auto-moderator/fuzzy-matcher.ts +0 -126
  71. package/src/feed-gen/bsky-team.ts +0 -42
  72. package/src/feed-gen/hot-classic.ts +0 -55
  73. package/src/feed-gen/index.ts +0 -17
  74. package/src/feed-gen/mutuals.ts +0 -57
  75. package/src/feed-gen/types.ts +0 -32
  76. package/tests/algos/hot-classic.test.ts +0 -87
  77. package/tests/auto-moderator/fuzzy-matcher.test.ts +0 -163
  78. package/tests/auto-moderator/takedowns.test.ts +0 -202
@@ -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?: {