@atproto/ozone 0.0.6 → 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.
- package/CHANGELOG.md +14 -0
- package/LICENSE.txt +1 -1
- package/dist/db/index.js +15 -1
- package/dist/db/index.js.map +3 -3
- package/dist/db/migrations/20240201T051104136Z-mod-event-blobs.d.ts +3 -0
- package/dist/db/migrations/index.d.ts +1 -0
- package/dist/db/schema/moderation_event.d.ts +1 -0
- package/dist/db/types.d.ts +1 -0
- package/dist/index.js +440 -294
- package/dist/index.js.map +3 -3
- package/dist/lexicon/index.d.ts +2 -2
- package/dist/lexicon/lexicons.d.ts +67 -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/dist/lexicon/types/{app/bsky/unspecced/getTimelineSkeleton.d.ts → com/atproto/temp/checkSignupQueue.d.ts} +3 -6
- package/dist/mod-service/index.d.ts +13 -4
- package/dist/mod-service/subject.d.ts +3 -0
- package/dist/mod-service/types.d.ts +2 -0
- package/package.json +6 -6
- package/src/api/admin/emitModerationEvent.ts +9 -6
- package/src/api/admin/queryModerationEvents.ts +14 -0
- package/src/api/moderation/util.ts +1 -0
- package/src/api/temp/fetchLabels.ts +36 -21
- package/src/context.ts +1 -0
- package/src/daemon/context.ts +1 -0
- package/src/db/migrations/20240201T051104136Z-mod-event-blobs.ts +15 -0
- package/src/db/migrations/index.ts +1 -0
- package/src/db/schema/moderation_event.ts +1 -0
- package/src/db/types.ts +6 -1
- package/src/lexicon/index.ts +12 -12
- package/src/lexicon/lexicons.ts +72 -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/lexicon/types/{app/bsky/unspecced/getTimelineSkeleton.ts → com/atproto/temp/checkSignupQueue.ts} +4 -8
- package/src/mod-service/index.ts +142 -64
- package/src/mod-service/status.ts +3 -2
- package/src/mod-service/subject.ts +9 -2
- package/src/mod-service/types.ts +4 -0
- package/src/mod-service/views.ts +1 -1
- package/tests/__snapshots__/get-record.test.ts.snap +16 -0
- package/tests/__snapshots__/get-repo.test.ts.snap +9 -1
- package/tests/moderation-appeals.test.ts +1 -1
- package/tests/moderation-events.test.ts +161 -8
- package/tests/moderation-statuses.test.ts +55 -0
- package/tests/moderation.test.ts +133 -34
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
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
|
+
|
|
10
|
+
## 0.0.7
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`8994d363`](https://github.com/bluesky-social/atproto/commit/8994d3633adad1c02569d6d44ae896e18195e8e2)]:
|
|
15
|
+
- @atproto/api@0.9.5
|
|
16
|
+
|
|
3
17
|
## 0.0.6
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/LICENSE.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Dual MIT/Apache-2.0 License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2022-
|
|
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) {
|