@atproto/bsky 0.0.13 → 0.0.15

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 (51) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/api/app/bsky/feed/searchPosts.d.ts +3 -0
  3. package/dist/api/com/atproto/temp/fetchLabels.d.ts +3 -0
  4. package/dist/config.d.ts +2 -2
  5. package/dist/context.d.ts +1 -1
  6. package/dist/index.js +723 -443
  7. package/dist/index.js.map +3 -3
  8. package/dist/lexicon/index.d.ts +7 -0
  9. package/dist/lexicon/lexicons.d.ts +63 -0
  10. package/dist/lexicon/types/com/atproto/admin/defs.d.ts +2 -0
  11. package/dist/lexicon/types/com/atproto/server/getSession.d.ts +1 -0
  12. package/dist/lexicon/types/com/atproto/temp/fetchLabels.d.ts +33 -0
  13. package/package.json +10 -11
  14. package/src/api/app/bsky/actor/getSuggestions.ts +45 -21
  15. package/src/api/app/bsky/feed/getPostThread.ts +16 -4
  16. package/src/api/app/bsky/feed/searchPosts.ts +127 -0
  17. package/src/api/com/atproto/admin/reverseModerationAction.ts +3 -3
  18. package/src/api/com/atproto/admin/takeModerationAction.ts +2 -2
  19. package/src/api/com/atproto/admin/util.ts +3 -1
  20. package/src/api/com/atproto/temp/fetchLabels.ts +30 -0
  21. package/src/api/index.ts +4 -0
  22. package/src/config.ts +6 -6
  23. package/src/context.ts +11 -9
  24. package/src/db/periodic-moderation-action-reversal.ts +1 -9
  25. package/src/lexicon/index.ts +22 -0
  26. package/src/lexicon/lexicons.ts +192 -129
  27. package/src/lexicon/types/app/bsky/actor/defs.ts +2 -2
  28. package/src/lexicon/types/app/bsky/actor/searchActors.ts +2 -2
  29. package/src/lexicon/types/app/bsky/actor/searchActorsTypeahead.ts +2 -2
  30. package/src/lexicon/types/app/bsky/feed/searchPosts.ts +3 -3
  31. package/src/lexicon/types/app/bsky/graph/defs.ts +2 -2
  32. package/src/lexicon/types/app/bsky/unspecced/searchActorsSkeleton.ts +4 -4
  33. package/src/lexicon/types/app/bsky/unspecced/searchPostsSkeleton.ts +3 -3
  34. package/src/lexicon/types/com/atproto/admin/defs.ts +5 -3
  35. package/src/lexicon/types/com/atproto/admin/disableAccountInvites.ts +1 -1
  36. package/src/lexicon/types/com/atproto/admin/enableAccountInvites.ts +1 -1
  37. package/src/lexicon/types/com/atproto/admin/getModerationReports.ts +3 -3
  38. package/src/lexicon/types/com/atproto/admin/takeModerationAction.ts +1 -1
  39. package/src/lexicon/types/com/atproto/label/defs.ts +9 -9
  40. package/src/lexicon/types/com/atproto/label/queryLabels.ts +2 -2
  41. package/src/lexicon/types/com/atproto/repo/applyWrites.ts +1 -1
  42. package/src/lexicon/types/com/atproto/repo/createRecord.ts +2 -2
  43. package/src/lexicon/types/com/atproto/repo/deleteRecord.ts +2 -2
  44. package/src/lexicon/types/com/atproto/repo/listRecords.ts +1 -1
  45. package/src/lexicon/types/com/atproto/repo/putRecord.ts +3 -3
  46. package/src/lexicon/types/com/atproto/server/getSession.ts +1 -0
  47. package/src/lexicon/types/com/atproto/sync/listBlobs.ts +1 -1
  48. package/src/lexicon/types/com/atproto/sync/subscribeRepos.ts +4 -4
  49. package/src/lexicon/types/com/atproto/temp/fetchLabels.ts +47 -0
  50. package/tests/admin/get-repo.test.ts +33 -0
  51. package/tests/views/suggestions.test.ts +15 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @atproto/bsky
2
2
 
3
+ ## 0.0.15
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`e1b5f253`](https://github.com/bluesky-social/atproto/commit/e1b5f2537a5ba4d8b951a741269b604856028ae5)]:
8
+ - @atproto/crypto@0.3.0
9
+ - @atproto/xrpc-server@0.4.1
10
+ - @atproto/identity@0.3.2
11
+ - @atproto/repo@0.3.5
12
+ - @atproto/api@0.6.23
13
+
14
+ ## 0.0.14
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [[`772736a0`](https://github.com/bluesky-social/atproto/commit/772736a01081f39504e1b19a1b3687783bb78f07)]:
19
+ - @atproto/api@0.6.23
20
+
3
21
  ## 0.0.13
4
22
 
5
23
  ### Patch Changes
@@ -0,0 +1,3 @@
1
+ import AppContext from '../../../../context';
2
+ import { Server } from '../../../../lexicon';
3
+ export default function (server: Server, ctx: AppContext): void;
@@ -0,0 +1,3 @@
1
+ import { Server } from '../../../../lexicon';
2
+ import AppContext from '../../../../context';
3
+ export default function (server: Server, ctx: AppContext): void;
package/dist/config.d.ts CHANGED
@@ -20,7 +20,7 @@ export interface ServerConfigValues {
20
20
  adminPassword: string;
21
21
  moderatorPassword?: string;
22
22
  triagePassword?: string;
23
- moderationActionReverseUrl?: string;
23
+ moderationPushUrl?: string;
24
24
  }
25
25
  export declare class ServerConfig {
26
26
  private cfg;
@@ -50,5 +50,5 @@ export declare class ServerConfig {
50
50
  get adminPassword(): string;
51
51
  get moderatorPassword(): string | undefined;
52
52
  get triagePassword(): string | undefined;
53
- get moderationActionReverseUrl(): string | undefined;
53
+ get moderationPushUrl(): string | undefined;
54
54
  }
package/dist/context.d.ts CHANGED
@@ -15,6 +15,7 @@ import { LabelCache } from './label-cache';
15
15
  import { NotificationServer } from './notifications';
16
16
  export declare class AppContext {
17
17
  private opts;
18
+ moderationPushAgent: AtpAgent | undefined;
18
19
  constructor(opts: {
19
20
  db: DatabaseCoordinator;
20
21
  imgUriBuilder: ImageUriBuilder;
@@ -114,7 +115,6 @@ export declare class AppContext {
114
115
  };
115
116
  }>;
116
117
  serviceAuthJwt(aud: string): Promise<string>;
117
- pdsAdminAgent(did: string): Promise<AtpAgent>;
118
118
  get backgroundQueue(): BackgroundQueue;
119
119
  get algos(): MountedAlgos;
120
120
  }