@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.
Files changed (78) hide show
  1. package/CHANGELOG.md +7 -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 +1531 -1723
  10. package/dist/index.js.map +3 -3
  11. package/dist/indexer/config.d.ts +0 -8
  12. package/dist/lexicon/index.d.ts +0 -2
  13. package/dist/lexicon/lexicons.d.ts +38 -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/package.json +7 -6
  17. package/src/api/app/bsky/actor/getSuggestions.ts +1 -1
  18. package/src/api/app/bsky/actor/searchActors.ts +1 -0
  19. package/src/api/app/bsky/feed/getActorFeeds.ts +6 -0
  20. package/src/api/app/bsky/feed/getActorLikes.ts +4 -0
  21. package/src/api/app/bsky/feed/getAuthorFeed.ts +4 -0
  22. package/src/api/app/bsky/feed/getFeed.ts +8 -5
  23. package/src/api/app/bsky/feed/getLikes.ts +4 -0
  24. package/src/api/app/bsky/feed/getListFeed.ts +4 -0
  25. package/src/api/app/bsky/feed/getRepostedBy.ts +4 -0
  26. package/src/api/app/bsky/feed/getSuggestedFeeds.ts +1 -1
  27. package/src/api/app/bsky/feed/getTimeline.ts +4 -0
  28. package/src/api/app/bsky/feed/searchPosts.ts +1 -0
  29. package/src/api/app/bsky/graph/getBlocks.ts +7 -0
  30. package/src/api/app/bsky/graph/getFollowers.ts +4 -0
  31. package/src/api/app/bsky/graph/getFollows.ts +4 -0
  32. package/src/api/app/bsky/graph/getList.ts +4 -0
  33. package/src/api/app/bsky/graph/getListBlocks.ts +4 -0
  34. package/src/api/app/bsky/graph/getListMutes.ts +7 -0
  35. package/src/api/app/bsky/graph/getLists.ts +7 -0
  36. package/src/api/app/bsky/graph/getMutes.ts +7 -0
  37. package/src/api/app/bsky/notification/listNotifications.ts +3 -0
  38. package/src/api/app/bsky/unspecced/getPopularFeedGenerators.ts +7 -1
  39. package/src/api/index.ts +0 -6
  40. package/src/auto-moderator/index.ts +9 -176
  41. package/src/context.ts +0 -6
  42. package/src/db/pagination.ts +3 -0
  43. package/src/index.ts +1 -6
  44. package/src/indexer/config.ts +0 -29
  45. package/src/lexicon/index.ts +0 -12
  46. package/src/lexicon/lexicons.ts +43 -50
  47. package/src/lexicon/types/com/atproto/admin/defs.ts +2 -0
  48. package/src/lexicon/types/com/atproto/admin/queryModerationEvents.ts +13 -0
  49. package/src/logger.ts +32 -0
  50. package/tests/auto-moderator/labeler.test.ts +2 -0
  51. package/tests/feed-generation.test.ts +0 -6
  52. package/tests/views/notifications.test.ts +9 -0
  53. package/tests/views/timeline.test.ts +8 -0
  54. package/dist/api/app/bsky/feed/describeFeedGenerator.d.ts +0 -3
  55. package/dist/api/app/bsky/feed/getFeedSkeleton.d.ts +0 -3
  56. package/dist/api/app/bsky/unspecced/getTimelineSkeleton.d.ts +0 -3
  57. package/dist/auto-moderator/abyss.d.ts +0 -48
  58. package/dist/auto-moderator/fuzzy-matcher.d.ts +0 -14
  59. package/dist/feed-gen/bsky-team.d.ts +0 -3
  60. package/dist/feed-gen/hot-classic.d.ts +0 -3
  61. package/dist/feed-gen/index.d.ts +0 -2
  62. package/dist/feed-gen/mutuals.d.ts +0 -3
  63. package/dist/feed-gen/types.d.ts +0 -15
  64. package/dist/lexicon/types/app/bsky/unspecced/getTimelineSkeleton.d.ts +0 -35
  65. package/src/api/app/bsky/feed/describeFeedGenerator.ts +0 -21
  66. package/src/api/app/bsky/feed/getFeedSkeleton.ts +0 -30
  67. package/src/api/app/bsky/unspecced/getTimelineSkeleton.ts +0 -26
  68. package/src/auto-moderator/abyss.ts +0 -114
  69. package/src/auto-moderator/fuzzy-matcher.ts +0 -126
  70. package/src/feed-gen/bsky-team.ts +0 -42
  71. package/src/feed-gen/hot-classic.ts +0 -55
  72. package/src/feed-gen/index.ts +0 -17
  73. package/src/feed-gen/mutuals.ts +0 -57
  74. package/src/feed-gen/types.ts +0 -32
  75. package/src/lexicon/types/app/bsky/unspecced/getTimelineSkeleton.ts +0 -49
  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
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atproto/bsky
2
2
 
3
+ ## 0.0.29
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`e4ec7af03`](https://github.com/bluesky-social/atproto/commit/e4ec7af03608949fc3b00a845f547a77599b5ad0)]:
8
+ - @atproto/api@0.9.6
9
+
3
10
  ## 0.0.28
4
11
 
5
12
  ### Patch Changes
package/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  Dual MIT/Apache-2.0 License
2
2
 
3
- Copyright (c) 2022-2023 Bluesky PBC, and Contributors
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(handle: string, did: string): void;
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;