@atproto/dev-env 0.3.9 → 0.3.11
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +20 -0
- package/dist/bin.js +5 -0
- package/dist/bin.js.map +1 -1
- package/dist/bsky.d.ts.map +1 -1
- package/dist/bsky.js +1 -0
- package/dist/bsky.js.map +1 -1
- package/dist/introspect.d.ts +14 -0
- package/dist/introspect.d.ts.map +1 -0
- package/dist/introspect.js +58 -0
- package/dist/introspect.js.map +1 -0
- package/dist/mock/index.d.ts.map +1 -1
- package/dist/mock/index.js +0 -299
- package/dist/mock/index.js.map +1 -1
- package/dist/network.d.ts +3 -1
- package/dist/network.d.ts.map +1 -1
- package/dist/network.js +47 -9
- package/dist/network.js.map +1 -1
- package/dist/ozone-service-profile.d.ts +23 -0
- package/dist/ozone-service-profile.d.ts.map +1 -0
- package/dist/ozone-service-profile.js +392 -0
- package/dist/ozone-service-profile.js.map +1 -0
- package/dist/ozone.js +1 -1
- package/dist/ozone.js.map +1 -1
- package/dist/types.d.ts +4 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +8 -5
- package/src/bin.ts +7 -0
- package/src/bsky.ts +1 -0
- package/src/introspect.ts +54 -0
- package/src/mock/index.ts +0 -322
- package/src/network.ts +56 -9
- package/src/ozone-service-profile.ts +420 -0
- package/src/ozone.ts +1 -1
- package/src/types.ts +5 -0
package/dist/network.js
CHANGED
@@ -36,14 +36,15 @@ const plc_1 = require("./plc");
|
|
36
36
|
const pds_1 = require("./pds");
|
37
37
|
const bsky_1 = require("./bsky");
|
38
38
|
const ozone_1 = require("./ozone");
|
39
|
+
const ozone_service_profile_1 = require("./ozone-service-profile");
|
39
40
|
const util_1 = require("./util");
|
40
41
|
const network_no_appview_1 = require("./network-no-appview");
|
41
|
-
const crypto_1 = require("@atproto/crypto");
|
42
42
|
const const_1 = require("./const");
|
43
|
+
const introspect_1 = require("./introspect");
|
43
44
|
const ADMIN_USERNAME = 'admin';
|
44
45
|
const ADMIN_PASSWORD = 'admin-pass';
|
45
46
|
class TestNetwork extends network_no_appview_1.TestNetworkNoAppView {
|
46
|
-
constructor(plc, pds, bsky, ozone) {
|
47
|
+
constructor(plc, pds, bsky, ozone, introspect) {
|
47
48
|
super(plc, pds);
|
48
49
|
Object.defineProperty(this, "plc", {
|
49
50
|
enumerable: true,
|
@@ -69,6 +70,12 @@ class TestNetwork extends network_no_appview_1.TestNetworkNoAppView {
|
|
69
70
|
writable: true,
|
70
71
|
value: ozone
|
71
72
|
});
|
73
|
+
Object.defineProperty(this, "introspect", {
|
74
|
+
enumerable: true,
|
75
|
+
configurable: true,
|
76
|
+
writable: true,
|
77
|
+
value: introspect
|
78
|
+
});
|
72
79
|
}
|
73
80
|
static async create(params = {}) {
|
74
81
|
const redisHost = process.env.REDIS_HOST;
|
@@ -80,8 +87,15 @@ class TestNetwork extends network_no_appview_1.TestNetworkNoAppView {
|
|
80
87
|
const bskyPort = params.bsky?.port ?? (await (0, get_port_1.default)());
|
81
88
|
const pdsPort = params.pds?.port ?? (await (0, get_port_1.default)());
|
82
89
|
const ozonePort = params.ozone?.port ?? (await (0, get_port_1.default)());
|
83
|
-
const
|
84
|
-
|
90
|
+
const thirdPartyPdsProps = {
|
91
|
+
didPlcUrl: plc.url,
|
92
|
+
...params.pds,
|
93
|
+
inviteRequired: false,
|
94
|
+
port: await (0, get_port_1.default)(),
|
95
|
+
};
|
96
|
+
const thirdPartyPds = await pds_1.TestPds.create(thirdPartyPdsProps);
|
97
|
+
const ozoneServiceProfile = new ozone_service_profile_1.OzoneServiceProfile(thirdPartyPds);
|
98
|
+
const { did: ozoneDid, key: ozoneKey } = await ozoneServiceProfile.createDidAndKey();
|
85
99
|
const bsky = await bsky_1.TestBsky.create({
|
86
100
|
port: bskyPort,
|
87
101
|
plcUrl: plc.url,
|
@@ -94,21 +108,23 @@ class TestNetwork extends network_no_appview_1.TestNetworkNoAppView {
|
|
94
108
|
labelsFromIssuerDids: [ozoneDid, const_1.EXAMPLE_LABELER],
|
95
109
|
...params.bsky,
|
96
110
|
});
|
97
|
-
const
|
111
|
+
const modServiceUrl = `http://localhost:${ozonePort}`;
|
112
|
+
const pdsProps = {
|
98
113
|
port: pdsPort,
|
99
114
|
didPlcUrl: plc.url,
|
100
115
|
bskyAppViewUrl: bsky.url,
|
101
116
|
bskyAppViewDid: bsky.ctx.cfg.serverDid,
|
102
|
-
modServiceUrl
|
117
|
+
modServiceUrl,
|
103
118
|
modServiceDid: ozoneDid,
|
104
119
|
...params.pds,
|
105
|
-
}
|
120
|
+
};
|
121
|
+
const pds = await pds_1.TestPds.create(pdsProps);
|
106
122
|
const ozone = await ozone_1.TestOzone.create({
|
107
123
|
port: ozonePort,
|
108
124
|
plcUrl: plc.url,
|
109
125
|
signingKey: ozoneKey,
|
110
126
|
serverDid: ozoneDid,
|
111
|
-
dbPostgresSchema: `ozone_${dbPostgresSchema}`,
|
127
|
+
dbPostgresSchema: `ozone_${dbPostgresSchema || 'db'}`,
|
112
128
|
dbPostgresUrl,
|
113
129
|
appviewUrl: bsky.url,
|
114
130
|
appviewDid: bsky.ctx.cfg.serverDid,
|
@@ -117,8 +133,29 @@ class TestNetwork extends network_no_appview_1.TestNetworkNoAppView {
|
|
117
133
|
pdsDid: pds.ctx.cfg.service.did,
|
118
134
|
...params.ozone,
|
119
135
|
});
|
136
|
+
let inviteCode;
|
137
|
+
if (pdsProps.inviteRequired) {
|
138
|
+
const { data: invite } = await pds
|
139
|
+
.getClient()
|
140
|
+
.api.com.atproto.server.createInviteCode({ useCount: 1 }, {
|
141
|
+
encoding: 'application/json',
|
142
|
+
headers: pds.adminAuthHeaders(),
|
143
|
+
});
|
144
|
+
inviteCode = invite.code;
|
145
|
+
}
|
146
|
+
await ozoneServiceProfile.createServiceDetails(pds, modServiceUrl, {
|
147
|
+
inviteCode,
|
148
|
+
});
|
149
|
+
ozone.addAdminDid(ozoneDid);
|
120
150
|
(0, util_1.mockNetworkUtilities)(pds, bsky);
|
121
|
-
|
151
|
+
await pds.processAll();
|
152
|
+
await bsky.sub.background.processAll();
|
153
|
+
await thirdPartyPds.close();
|
154
|
+
let introspect = undefined;
|
155
|
+
if (params.introspect?.port) {
|
156
|
+
introspect = await introspect_1.IntrospectServer.start(params.introspect.port, plc, pds, bsky, ozone);
|
157
|
+
}
|
158
|
+
return new TestNetwork(plc, pds, bsky, ozone, introspect);
|
122
159
|
}
|
123
160
|
async processFullSubscription(timeout = 5000) {
|
124
161
|
const sub = this.bsky.sub;
|
@@ -163,6 +200,7 @@ class TestNetwork extends network_no_appview_1.TestNetworkNoAppView {
|
|
163
200
|
await this.bsky.close();
|
164
201
|
await this.pds.close();
|
165
202
|
await this.plc.close();
|
203
|
+
await this.introspect?.close();
|
166
204
|
}
|
167
205
|
}
|
168
206
|
exports.TestNetwork = TestNetwork;
|
package/dist/network.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"network.js","sourceRoot":"","sources":["../src/network.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAA2B;AAC3B,yDAA0C;AAC1C,wDAA8B;AAC9B,oDAA0C;AAC1C,sDAAuD;AAEvD,+BAA+B;AAC/B,+BAA+B;AAC/B,iCAAiC;AACjC,
|
1
|
+
{"version":3,"file":"network.js","sourceRoot":"","sources":["../src/network.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAA2B;AAC3B,yDAA0C;AAC1C,wDAA8B;AAC9B,oDAA0C;AAC1C,sDAAuD;AAEvD,+BAA+B;AAC/B,+BAA+B;AAC/B,iCAAiC;AACjC,mCAAmC;AACnC,mEAA6D;AAC7D,iCAA6C;AAC7C,6DAA2D;AAC3D,mCAAyC;AACzC,6CAA+C;AAE/C,MAAM,cAAc,GAAG,OAAO,CAAA;AAC9B,MAAM,cAAc,GAAG,YAAY,CAAA;AAEnC,MAAa,WAAY,SAAQ,yCAAoB;IACnD,YACS,GAAY,EACZ,GAAY,EACZ,IAAc,EACd,KAAgB,EAChB,UAA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GAAG,CAAC,CAAA;QAC1D,MAAM,GAAG,GAAG,MAAM,IAAA,8BAAgB,EAAC;YACjC,GAAG,EAAE,GAAG;YACR,GAAG,EAAE,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,SAAS;YACvC,OAAO;SACR,CAAC,CAAA;QACF,OAAO,EAAE,aAAa,EAAE,UAAU,GAAG,EAAE,EAAE,CAAA;IAC3C,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,EACjB,QAAQ,GAAG,cAAc,EACzB,QAAQ,GAAG,cAAc,GAI1B;QACC,OAAO;YACL,aAAa,EACX,QAAQ;gBACR,WAAW,CAAC,QAAQ,CAClB,WAAW,CAAC,UAAU,CAAC,GAAG,QAAQ,IAAI,QAAQ,EAAE,EAAE,MAAM,CAAC,EACzD,WAAW,CACZ;SACJ,CAAA;IACH,CAAC;IAED,KAAK,CAAC,KAAK;QACT,MAAM,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;QACxD,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAA;QACxB,MAAM,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAA;QACvB,MAAM,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAA;QACtB,MAAM,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAA;QACtB,MAAM,IAAI,CAAC,UAAU,EAAE,KAAK,EAAE,CAAA;IAChC,CAAC;CACF;AA/KD,kCA+KC"}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { TestPds } from './pds';
|
2
|
+
import { AtpAgent } from '@atproto/api';
|
3
|
+
import { Secp256k1Keypair } from '@atproto/crypto';
|
4
|
+
export declare class OzoneServiceProfile {
|
5
|
+
thirdPartyPds: TestPds;
|
6
|
+
did?: string;
|
7
|
+
key?: Secp256k1Keypair;
|
8
|
+
thirdPartyPdsClient: AtpAgent;
|
9
|
+
modUserDetails: {
|
10
|
+
email: string;
|
11
|
+
handle: string;
|
12
|
+
password: string;
|
13
|
+
};
|
14
|
+
constructor(thirdPartyPds: TestPds);
|
15
|
+
createDidAndKey(): Promise<{
|
16
|
+
did: string;
|
17
|
+
key: Secp256k1Keypair;
|
18
|
+
}>;
|
19
|
+
createServiceDetails(pds: TestPds, ozoneUrl: string, userDetails?: {
|
20
|
+
inviteCode?: string;
|
21
|
+
}): Promise<void>;
|
22
|
+
}
|
23
|
+
//# sourceMappingURL=ozone-service-profile.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ozone-service-profile.d.ts","sourceRoot":"","sources":["../src/ozone-service-profile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAElD,qBAAa,mBAAmB;IAWJ,aAAa,EAAE,OAAO;IAVhD,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,gBAAgB,CAAA;IACtB,mBAAmB,EAAE,QAAQ,CAAA;IAE7B,cAAc;;;;MAIb;gBAEyB,aAAa,EAAE,OAAO;IAI1C,eAAe;;;;IAef,oBAAoB,CACxB,GAAG,EAAE,OAAO,EACZ,QAAQ,EAAE,MAAM,EAChB,WAAW,GAAE;QAAE,UAAU,CAAC,EAAE,MAAM,CAAA;KAAO;CA8X5C"}
|
@@ -0,0 +1,392 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OzoneServiceProfile = void 0;
|
4
|
+
const crypto_1 = require("@atproto/crypto");
|
5
|
+
class OzoneServiceProfile {
|
6
|
+
constructor(thirdPartyPds) {
|
7
|
+
Object.defineProperty(this, "thirdPartyPds", {
|
8
|
+
enumerable: true,
|
9
|
+
configurable: true,
|
10
|
+
writable: true,
|
11
|
+
value: thirdPartyPds
|
12
|
+
});
|
13
|
+
Object.defineProperty(this, "did", {
|
14
|
+
enumerable: true,
|
15
|
+
configurable: true,
|
16
|
+
writable: true,
|
17
|
+
value: void 0
|
18
|
+
});
|
19
|
+
Object.defineProperty(this, "key", {
|
20
|
+
enumerable: true,
|
21
|
+
configurable: true,
|
22
|
+
writable: true,
|
23
|
+
value: void 0
|
24
|
+
});
|
25
|
+
Object.defineProperty(this, "thirdPartyPdsClient", {
|
26
|
+
enumerable: true,
|
27
|
+
configurable: true,
|
28
|
+
writable: true,
|
29
|
+
value: void 0
|
30
|
+
});
|
31
|
+
Object.defineProperty(this, "modUserDetails", {
|
32
|
+
enumerable: true,
|
33
|
+
configurable: true,
|
34
|
+
writable: true,
|
35
|
+
value: {
|
36
|
+
email: 'mod-authority@test.com',
|
37
|
+
handle: 'mod-authority.test',
|
38
|
+
password: 'hunter2',
|
39
|
+
}
|
40
|
+
});
|
41
|
+
this.thirdPartyPdsClient = this.thirdPartyPds.getClient();
|
42
|
+
}
|
43
|
+
async createDidAndKey() {
|
44
|
+
const modUser = await this.thirdPartyPdsClient.api.com.atproto.server.createAccount(this.modUserDetails);
|
45
|
+
await this.thirdPartyPdsClient.login({
|
46
|
+
identifier: this.modUserDetails.handle,
|
47
|
+
password: this.modUserDetails.password,
|
48
|
+
});
|
49
|
+
this.did = modUser.data.did;
|
50
|
+
this.key = await crypto_1.Secp256k1Keypair.create({ exportable: true });
|
51
|
+
return { did: this.did, key: this.key };
|
52
|
+
}
|
53
|
+
async createServiceDetails(pds, ozoneUrl, userDetails = {}) {
|
54
|
+
if (!this.did || !this.key) {
|
55
|
+
throw new Error('No DID/key found!');
|
56
|
+
}
|
57
|
+
const pdsClient = pds.getClient();
|
58
|
+
const describeRes = await pdsClient.api.com.atproto.server.describeServer();
|
59
|
+
const newServerDid = describeRes.data.did;
|
60
|
+
const serviceJwtRes = await this.thirdPartyPdsClient.com.atproto.server.getServiceAuth({
|
61
|
+
aud: newServerDid,
|
62
|
+
});
|
63
|
+
const serviceJwt = serviceJwtRes.data.token;
|
64
|
+
const accountResponse = await pdsClient.api.com.atproto.server.createAccount({
|
65
|
+
...this.modUserDetails,
|
66
|
+
...userDetails,
|
67
|
+
did: this.did,
|
68
|
+
}, {
|
69
|
+
headers: { authorization: `Bearer ${serviceJwt}` },
|
70
|
+
encoding: 'application/json',
|
71
|
+
});
|
72
|
+
pdsClient.api.setHeader('Authorization', `Bearer ${accountResponse.data.accessJwt}`);
|
73
|
+
const getDidCredentials = await pdsClient.com.atproto.identity.getRecommendedDidCredentials();
|
74
|
+
await this.thirdPartyPdsClient.com.atproto.identity.requestPlcOperationSignature();
|
75
|
+
const tokenRes = await this.thirdPartyPds.ctx.accountManager.db.db
|
76
|
+
.selectFrom('email_token')
|
77
|
+
.selectAll()
|
78
|
+
.where('did', '=', this.did)
|
79
|
+
.where('purpose', '=', 'plc_operation')
|
80
|
+
.executeTakeFirst();
|
81
|
+
const token = tokenRes?.token;
|
82
|
+
const plcOperationData = {
|
83
|
+
token,
|
84
|
+
...getDidCredentials.data,
|
85
|
+
};
|
86
|
+
if (!plcOperationData.services)
|
87
|
+
plcOperationData.services = {};
|
88
|
+
plcOperationData.services['atproto_labeler'] = {
|
89
|
+
type: 'AtprotoLabeler',
|
90
|
+
endpoint: ozoneUrl,
|
91
|
+
};
|
92
|
+
if (!plcOperationData.verificationMethods)
|
93
|
+
plcOperationData.verificationMethods = {};
|
94
|
+
plcOperationData.verificationMethods['atproto_label'] = this.key.did();
|
95
|
+
const plcOp = await this.thirdPartyPdsClient.com.atproto.identity.signPlcOperation(plcOperationData);
|
96
|
+
await pdsClient.com.atproto.identity.submitPlcOperation({
|
97
|
+
operation: plcOp.data.operation,
|
98
|
+
});
|
99
|
+
await pdsClient.api.com.atproto.server.activateAccount();
|
100
|
+
await pdsClient.api.app.bsky.actor.profile.create({ repo: this.did }, {
|
101
|
+
displayName: 'Dev-env Moderation',
|
102
|
+
description: `The pretend version of mod.bsky.app`,
|
103
|
+
});
|
104
|
+
await pdsClient.api.app.bsky.labeler.service.create({ repo: this.did, rkey: 'self' }, {
|
105
|
+
policies: {
|
106
|
+
labelValues: [
|
107
|
+
'!hide',
|
108
|
+
'!warn',
|
109
|
+
'porn',
|
110
|
+
'sexual',
|
111
|
+
'nudity',
|
112
|
+
'sexual-figurative',
|
113
|
+
'graphic-media',
|
114
|
+
'self-harm',
|
115
|
+
'sensitive',
|
116
|
+
'extremist',
|
117
|
+
'intolerant',
|
118
|
+
'threat',
|
119
|
+
'rude',
|
120
|
+
'illicit',
|
121
|
+
'security',
|
122
|
+
'unsafe-link',
|
123
|
+
'impersonation',
|
124
|
+
'misinformation',
|
125
|
+
'scam',
|
126
|
+
'engagement-farming',
|
127
|
+
'spam',
|
128
|
+
'rumor',
|
129
|
+
'misleading',
|
130
|
+
'inauthentic',
|
131
|
+
],
|
132
|
+
labelValueDefinitions: [
|
133
|
+
{
|
134
|
+
identifier: 'spam',
|
135
|
+
blurs: 'content',
|
136
|
+
severity: 'inform',
|
137
|
+
defaultSetting: 'hide',
|
138
|
+
adultOnly: false,
|
139
|
+
locales: [
|
140
|
+
{
|
141
|
+
lang: 'en',
|
142
|
+
name: 'Spam',
|
143
|
+
description: 'Unwanted, repeated, or unrelated actions that bother users.',
|
144
|
+
},
|
145
|
+
],
|
146
|
+
},
|
147
|
+
{
|
148
|
+
identifier: 'impersonation',
|
149
|
+
blurs: 'none',
|
150
|
+
severity: 'inform',
|
151
|
+
defaultSetting: 'hide',
|
152
|
+
adultOnly: false,
|
153
|
+
locales: [
|
154
|
+
{
|
155
|
+
lang: 'en',
|
156
|
+
name: 'Impersonation',
|
157
|
+
description: 'Pretending to be someone else without permission.',
|
158
|
+
},
|
159
|
+
],
|
160
|
+
},
|
161
|
+
{
|
162
|
+
identifier: 'scam',
|
163
|
+
blurs: 'content',
|
164
|
+
severity: 'alert',
|
165
|
+
defaultSetting: 'hide',
|
166
|
+
adultOnly: false,
|
167
|
+
locales: [
|
168
|
+
{
|
169
|
+
lang: 'en',
|
170
|
+
name: 'Scam',
|
171
|
+
description: 'Scams, phishing & fraud.',
|
172
|
+
},
|
173
|
+
],
|
174
|
+
},
|
175
|
+
{
|
176
|
+
identifier: 'intolerant',
|
177
|
+
blurs: 'content',
|
178
|
+
severity: 'alert',
|
179
|
+
defaultSetting: 'warn',
|
180
|
+
adultOnly: false,
|
181
|
+
locales: [
|
182
|
+
{
|
183
|
+
lang: 'en',
|
184
|
+
name: 'Intolerance',
|
185
|
+
description: 'Discrimination against protected groups.',
|
186
|
+
},
|
187
|
+
],
|
188
|
+
},
|
189
|
+
{
|
190
|
+
identifier: 'self-harm',
|
191
|
+
blurs: 'content',
|
192
|
+
severity: 'alert',
|
193
|
+
defaultSetting: 'warn',
|
194
|
+
adultOnly: false,
|
195
|
+
locales: [
|
196
|
+
{
|
197
|
+
lang: 'en',
|
198
|
+
name: 'Self-Harm',
|
199
|
+
description: 'Promotes self-harm, including graphic images, glorifying discussions, or triggering stories.',
|
200
|
+
},
|
201
|
+
],
|
202
|
+
},
|
203
|
+
{
|
204
|
+
identifier: 'security',
|
205
|
+
blurs: 'content',
|
206
|
+
severity: 'alert',
|
207
|
+
defaultSetting: 'hide',
|
208
|
+
adultOnly: false,
|
209
|
+
locales: [
|
210
|
+
{
|
211
|
+
lang: 'en',
|
212
|
+
name: 'Security Concerns',
|
213
|
+
description: 'May be unsafe and could harm your device, steal your info, or get your account hacked.',
|
214
|
+
},
|
215
|
+
],
|
216
|
+
},
|
217
|
+
{
|
218
|
+
identifier: 'misleading',
|
219
|
+
blurs: 'content',
|
220
|
+
severity: 'alert',
|
221
|
+
defaultSetting: 'warn',
|
222
|
+
adultOnly: false,
|
223
|
+
locales: [
|
224
|
+
{
|
225
|
+
lang: 'en',
|
226
|
+
name: 'Misleading',
|
227
|
+
description: 'Altered images/videos, deceptive links, or false statements.',
|
228
|
+
},
|
229
|
+
],
|
230
|
+
},
|
231
|
+
{
|
232
|
+
identifier: 'threat',
|
233
|
+
blurs: 'content',
|
234
|
+
severity: 'inform',
|
235
|
+
defaultSetting: 'hide',
|
236
|
+
adultOnly: false,
|
237
|
+
locales: [
|
238
|
+
{
|
239
|
+
lang: 'en',
|
240
|
+
name: 'Threats',
|
241
|
+
description: 'Promotes violence or harm towards others, including threats, incitement, or advocacy of harm.',
|
242
|
+
},
|
243
|
+
],
|
244
|
+
},
|
245
|
+
{
|
246
|
+
identifier: 'unsafe-link',
|
247
|
+
blurs: 'content',
|
248
|
+
severity: 'alert',
|
249
|
+
defaultSetting: 'hide',
|
250
|
+
adultOnly: false,
|
251
|
+
locales: [
|
252
|
+
{
|
253
|
+
lang: 'en',
|
254
|
+
name: 'Unsafe link',
|
255
|
+
description: 'Links to harmful sites with malware, phishing, or violating content that risk security and privacy.',
|
256
|
+
},
|
257
|
+
],
|
258
|
+
},
|
259
|
+
{
|
260
|
+
identifier: 'illicit',
|
261
|
+
blurs: 'content',
|
262
|
+
severity: 'alert',
|
263
|
+
defaultSetting: 'hide',
|
264
|
+
adultOnly: false,
|
265
|
+
locales: [
|
266
|
+
{
|
267
|
+
lang: 'en',
|
268
|
+
name: 'Illicit',
|
269
|
+
description: 'Promoting or selling potentially illicit goods, services, or activities.',
|
270
|
+
},
|
271
|
+
],
|
272
|
+
},
|
273
|
+
{
|
274
|
+
identifier: 'misinformation',
|
275
|
+
blurs: 'content',
|
276
|
+
severity: 'inform',
|
277
|
+
defaultSetting: 'warn',
|
278
|
+
adultOnly: false,
|
279
|
+
locales: [
|
280
|
+
{
|
281
|
+
lang: 'en',
|
282
|
+
name: 'Misinformation',
|
283
|
+
description: 'Spreading false or misleading info, including unverified claims and harmful conspiracy theories.',
|
284
|
+
},
|
285
|
+
],
|
286
|
+
},
|
287
|
+
{
|
288
|
+
identifier: 'rumor',
|
289
|
+
blurs: 'content',
|
290
|
+
severity: 'inform',
|
291
|
+
defaultSetting: 'warn',
|
292
|
+
adultOnly: false,
|
293
|
+
locales: [
|
294
|
+
{
|
295
|
+
lang: 'en',
|
296
|
+
name: 'Rumor',
|
297
|
+
description: 'Approach with caution, as these claims lack evidence from credible sources.',
|
298
|
+
},
|
299
|
+
],
|
300
|
+
},
|
301
|
+
{
|
302
|
+
identifier: 'rude',
|
303
|
+
blurs: 'content',
|
304
|
+
severity: 'inform',
|
305
|
+
defaultSetting: 'hide',
|
306
|
+
adultOnly: false,
|
307
|
+
locales: [
|
308
|
+
{
|
309
|
+
lang: 'en',
|
310
|
+
name: 'Rude',
|
311
|
+
description: 'Rude or impolite, including crude language and disrespectful comments, without constructive purpose.',
|
312
|
+
},
|
313
|
+
],
|
314
|
+
},
|
315
|
+
{
|
316
|
+
identifier: 'extremist',
|
317
|
+
blurs: 'content',
|
318
|
+
severity: 'alert',
|
319
|
+
defaultSetting: 'hide',
|
320
|
+
adultOnly: false,
|
321
|
+
locales: [
|
322
|
+
{
|
323
|
+
lang: 'en',
|
324
|
+
name: 'Extremist',
|
325
|
+
description: 'Radical views advocating violence, hate, or discrimination against individuals or groups.',
|
326
|
+
},
|
327
|
+
],
|
328
|
+
},
|
329
|
+
{
|
330
|
+
identifier: 'sensitive',
|
331
|
+
blurs: 'content',
|
332
|
+
severity: 'alert',
|
333
|
+
defaultSetting: 'warn',
|
334
|
+
adultOnly: false,
|
335
|
+
locales: [
|
336
|
+
{
|
337
|
+
lang: 'en',
|
338
|
+
name: 'Sensitive',
|
339
|
+
description: 'May be upsetting, covering topics like substance abuse or mental health issues, cautioning sensitive viewers.',
|
340
|
+
},
|
341
|
+
],
|
342
|
+
},
|
343
|
+
{
|
344
|
+
identifier: 'engagement-farming',
|
345
|
+
blurs: 'content',
|
346
|
+
severity: 'alert',
|
347
|
+
defaultSetting: 'hide',
|
348
|
+
adultOnly: false,
|
349
|
+
locales: [
|
350
|
+
{
|
351
|
+
lang: 'en',
|
352
|
+
name: 'Engagement Farming',
|
353
|
+
description: 'Insincere content or bulk actions aimed at gaining followers, including frequent follows, posts, and likes.',
|
354
|
+
},
|
355
|
+
],
|
356
|
+
},
|
357
|
+
{
|
358
|
+
identifier: 'inauthentic',
|
359
|
+
blurs: 'content',
|
360
|
+
severity: 'alert',
|
361
|
+
defaultSetting: 'hide',
|
362
|
+
adultOnly: false,
|
363
|
+
locales: [
|
364
|
+
{
|
365
|
+
lang: 'en',
|
366
|
+
name: 'Inauthentic Account',
|
367
|
+
description: 'Bot or a person pretending to be someone else.',
|
368
|
+
},
|
369
|
+
],
|
370
|
+
},
|
371
|
+
{
|
372
|
+
identifier: 'sexual-figurative',
|
373
|
+
blurs: 'media',
|
374
|
+
severity: 'none',
|
375
|
+
defaultSetting: 'show',
|
376
|
+
adultOnly: true,
|
377
|
+
locales: [
|
378
|
+
{
|
379
|
+
lang: 'en',
|
380
|
+
name: 'Sexually Suggestive (Cartoon)',
|
381
|
+
description: 'Art with explicit or suggestive sexual themes, including provocative imagery or partial nudity.',
|
382
|
+
},
|
383
|
+
],
|
384
|
+
},
|
385
|
+
],
|
386
|
+
},
|
387
|
+
createdAt: new Date().toISOString(),
|
388
|
+
});
|
389
|
+
}
|
390
|
+
}
|
391
|
+
exports.OzoneServiceProfile = OzoneServiceProfile;
|
392
|
+
//# sourceMappingURL=ozone-service-profile.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ozone-service-profile.js","sourceRoot":"","sources":["../src/ozone-service-profile.ts"],"names":[],"mappings":";;;AAEA,4CAAkD;AAElD,MAAa,mBAAmB;IAW9B,YAA0B,aAAsB;QAA7B;;;;mBAAO,aAAa;WAAS;QAVhD;;;;;WAAY;QACZ;;;;;WAAsB;QACtB;;;;;WAA6B;QAE7B;;;;mBAAiB;gBACf,KAAK,EAAE,wBAAwB;gBAC/B,MAAM,EAAE,oBAAoB;gBAC5B,QAAQ,EAAE,SAAS;aACpB;WAAA;QAGC,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC,aAAa,CAAC,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W;wBACvB,KAAK,EAAE,SAAS;wBAChB,QAAQ,EAAE,OAAO;wBACjB,cAAc,EAAE,MAAM;wBACtB,SAAS,EAAE,KAAK;wBAChB,OAAO,EAAE;4BACP;gCACE,IAAI,EAAE,IAAI;gCACV,IAAI,EAAE,WAAW;gCACjB,WAAW,EACT,+GAA+G;6BAClH;yBACF;qBACF;oBACD;wBACE,UAAU,EAAE,oBAAoB;wBAChC,KAAK,EAAE,SAAS;wBAChB,QAAQ,EAAE,OAAO;wBACjB,cAAc,EAAE,MAAM;wBACtB,SAAS,EAAE,KAAK;wBAChB,OAAO,EAAE;4BACP;gCACE,IAAI,EAAE,IAAI;gCACV,IAAI,EAAE,oBAAoB;gCAC1B,WAAW,EACT,6GAA6G;6BAChH;yBACF;qBACF;oBACD;wBACE,UAAU,EAAE,aAAa;wBACzB,KAAK,EAAE,SAAS;wBAChB,QAAQ,EAAE,OAAO;wBACjB,cAAc,EAAE,MAAM;wBACtB,SAAS,EAAE,KAAK;wBAChB,OAAO,EAAE;4BACP;gCACE,IAAI,EAAE,IAAI;gCACV,IAAI,EAAE,qBAAqB;gCAC3B,WAAW,EAAE,gDAAgD;6BAC9D;yBACF;qBACF;oBACD;wBACE,UAAU,EAAE,mBAAmB;wBAC/B,KAAK,EAAE,OAAO;wBACd,QAAQ,EAAE,MAAM;wBAChB,cAAc,EAAE,MAAM;wBACtB,SAAS,EAAE,IAAI;wBACf,OAAO,EAAE;4BACP;gCACE,IAAI,EAAE,IAAI;gCACV,IAAI,EAAE,+BAA+B;gCACrC,WAAW,EACT,iGAAiG;6BACpG;yBACF;qBACF;iBACF;aACF;YACD,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACpC,CACF,CAAA;IACH,CAAC;CACF;AA/ZD,kDA+ZC"}
|
package/dist/ozone.js
CHANGED
package/dist/ozone.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ozone.js","sourceRoot":"","sources":["../src/ozone.ts"],"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OAAO,EAAE,aAAa,EAAE,UAAU,GAAG,EAAE,EAAE,CAAA;IAC3C,CAAC;IAED,KAAK,CAAC,UAAU;QACd,MAAM,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,UAAU,EAAE,CAAA;QAC3C,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAA;IAChC,CAAC;IAED,KAAK,CAAC,KAAK;QACT,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAA;QAC3B,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAA;IAC7B,CAAC;CACF;AAzID,8BAyIC;AAEM,MAAM,cAAc,GAAG,KAAK,EACjC,MAAc,EACd,OAAgB,EACC,EAAE;IACnB,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IACxC,MAAM,KAAK,GAAG,MAAM,GAAG,CAAC,aAAa,CACnC;QACE,IAAI,EAAE,eAAe;QACrB,WAAW,EAAE,EAAE;QACf,YAAY,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;QAC7B,mBAAmB,EAAE;YACnB,aAAa,EAAE,OAAO,CAAC,GAAG,EAAE;SAC7B;QACD,QAAQ,EAAE;YACR,eAAe,EAAE;gBACf,IAAI,EAAE,gBAAgB;gBACtB,QAAQ,EAAE,0BAA0B;aACrC;SACF;QACD,IAAI,EAAE,IAAI;KACX,EACD,OAAO,CACR,CAAA;IACD,MAAM,GAAG,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC,KAAK,CAAC,CAAA;IAC3C,MAAM,SAAS,CAAC,aAAa,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;IACzC,OAAO,GAAG,CAAA;AACZ,CAAC,CAAA;AA1BY,QAAA,cAAc,kBA0B1B"}
|
package/dist/types.d.ts
CHANGED
@@ -3,6 +3,9 @@ import * as bsky from '@atproto/bsky';
|
|
3
3
|
import * as bsync from '@atproto/bsync';
|
4
4
|
import * as ozone from '@atproto/ozone';
|
5
5
|
import { ExportableKeypair, Keypair } from '@atproto/crypto';
|
6
|
+
export type IntrospectConfig = {
|
7
|
+
port?: number;
|
8
|
+
};
|
6
9
|
export type PlcConfig = {
|
7
10
|
port?: number;
|
8
11
|
version?: string;
|
@@ -39,6 +42,7 @@ export type TestServerParams = {
|
|
39
42
|
plc: Partial<PlcConfig>;
|
40
43
|
bsky: Partial<BskyConfig>;
|
41
44
|
ozone: Partial<OzoneConfig>;
|
45
|
+
introspect: Partial<IntrospectConfig>;
|
42
46
|
};
|
43
47
|
export type DidAndKey = {
|
44
48
|
did: string;
|
package/dist/types.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,cAAc,CAAA;AACnC,OAAO,KAAK,IAAI,MAAM,eAAe,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,gBAAgB,CAAA;AACvC,OAAO,KAAK,KAAK,MAAM,gBAAgB,CAAA;AACvC,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAE5D,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,GAAG;IACvD,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG;IACpD,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,gBAAgB,EAAE,MAAM,CAAA;IACxB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,M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