@atproto/ozone 0.0.7 → 0.0.8

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 (45) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/LICENSE.txt +1 -1
  3. package/dist/db/index.js +15 -1
  4. package/dist/db/index.js.map +3 -3
  5. package/dist/db/migrations/20240201T051104136Z-mod-event-blobs.d.ts +3 -0
  6. package/dist/db/migrations/index.d.ts +1 -0
  7. package/dist/db/schema/moderation_event.d.ts +1 -0
  8. package/dist/db/types.d.ts +1 -0
  9. package/dist/index.js +276 -202
  10. package/dist/index.js.map +3 -3
  11. package/dist/lexicon/index.d.ts +0 -2
  12. package/dist/lexicon/lexicons.d.ts +38 -47
  13. package/dist/lexicon/types/com/atproto/admin/defs.d.ts +2 -2
  14. package/dist/lexicon/types/com/atproto/admin/queryModerationEvents.d.ts +7 -0
  15. package/dist/mod-service/index.d.ts +13 -4
  16. package/dist/mod-service/subject.d.ts +3 -0
  17. package/dist/mod-service/types.d.ts +2 -0
  18. package/package.json +5 -5
  19. package/src/api/admin/emitModerationEvent.ts +9 -6
  20. package/src/api/admin/queryModerationEvents.ts +14 -0
  21. package/src/api/moderation/util.ts +1 -0
  22. package/src/api/temp/fetchLabels.ts +36 -21
  23. package/src/context.ts +1 -0
  24. package/src/daemon/context.ts +1 -0
  25. package/src/db/migrations/20240201T051104136Z-mod-event-blobs.ts +15 -0
  26. package/src/db/migrations/index.ts +1 -0
  27. package/src/db/schema/moderation_event.ts +1 -0
  28. package/src/db/types.ts +6 -1
  29. package/src/lexicon/index.ts +0 -12
  30. package/src/lexicon/lexicons.ts +43 -50
  31. package/src/lexicon/types/com/atproto/admin/defs.ts +2 -0
  32. package/src/lexicon/types/com/atproto/admin/queryModerationEvents.ts +13 -0
  33. package/src/mod-service/index.ts +142 -64
  34. package/src/mod-service/status.ts +3 -2
  35. package/src/mod-service/subject.ts +9 -2
  36. package/src/mod-service/types.ts +4 -0
  37. package/src/mod-service/views.ts +1 -1
  38. package/tests/__snapshots__/get-record.test.ts.snap +16 -0
  39. package/tests/__snapshots__/get-repo.test.ts.snap +9 -1
  40. package/tests/moderation-appeals.test.ts +1 -1
  41. package/tests/moderation-events.test.ts +161 -8
  42. package/tests/moderation-statuses.test.ts +55 -0
  43. package/tests/moderation.test.ts +133 -34
  44. package/dist/lexicon/types/app/bsky/unspecced/getTimelineSkeleton.d.ts +0 -35
  45. package/src/lexicon/types/app/bsky/unspecced/getTimelineSkeleton.ts +0 -49
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atproto/ozone
2
2
 
3
+ ## 0.0.8
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.7
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
 
package/dist/db/index.js CHANGED
@@ -33515,7 +33515,8 @@ var import_stream2 = require("stream");
33515
33515
  var migrations_exports = {};
33516
33516
  __export(migrations_exports, {
33517
33517
  _20231219T205730722Z: () => T205730722Z_init_exports,
33518
- _20240116T085607200Z: () => T085607200Z_communication_template_exports
33518
+ _20240116T085607200Z: () => T085607200Z_communication_template_exports,
33519
+ _20240201T051104136Z: () => T051104136Z_mod_event_blobs_exports
33519
33520
  });
33520
33521
 
33521
33522
  // src/db/migrations/20231219T205730722Z-init.ts
@@ -33573,6 +33574,19 @@ async function down2(db) {
33573
33574
  await db.schema.dropTable("communication_template");
33574
33575
  }
33575
33576
 
33577
+ // src/db/migrations/20240201T051104136Z-mod-event-blobs.ts
33578
+ var T051104136Z_mod_event_blobs_exports = {};
33579
+ __export(T051104136Z_mod_event_blobs_exports, {
33580
+ down: () => down3,
33581
+ up: () => up3
33582
+ });
33583
+ async function up3(db) {
33584
+ await db.schema.alterTable("moderation_event").addColumn("subjectBlobCids", "jsonb").execute();
33585
+ }
33586
+ async function down3(db) {
33587
+ await db.schema.alterTable("moderation_event").dropColumn("subjectBlobCids").execute();
33588
+ }
33589
+
33576
33590
  // src/db/migrations/provider.ts
33577
33591
  var CtxMigrationProvider = class {
33578
33592
  constructor(migrations, ctx) {