@atproto/dev-env 0.3.8 → 0.3.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -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,SAAS,EAAE,CAAA;IAC3D,CAAC;IAED,KAAK,CAAC,eAAe;QACnB,MAAM,OAAO,GACX,MAAM,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,CACjE,IAAI,CAAC,cAAc,CACpB,CAAA;QACH,MAAM,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC;YACnC,UAAU,EAAE,IAAI,CAAC,cAAc,CAAC,MAAM;YACtC,QAAQ,EAAE,IAAI,CAAC,c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AM;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
@@ -111,7 +111,7 @@ class TestOzone {
111
111
  version: '0.0.0',
112
112
  port,
113
113
  didPlcUrl: config.plcUrl,
114
- publicUrl: 'https://ozone.public.url',
114
+ publicUrl: url,
115
115
  serverDid,
116
116
  signingKeyHex,
117
117
  ...config,
package/dist/ozone.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"ozone.js","sourceRoot":"","sources":["../src/ozone.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wDAA8B;AAC9B,iDAAkC;AAClC,kDAAmC;AACnC,sDAAuC;AACvC,sCAAuC;AACvC,sDAAuD;AACvD,4CAA2D;AAE3D,mCAAwC;AACxC,iCAAw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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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/dev-env",
3
- "version": "0.3.8",
3
+ "version": "0.3.10",
4
4
  "license": "MIT",
5
5
  "description": "Local development environment helper for atproto development",
6
6
  "keywords": [
@@ -24,15 +24,15 @@
24
24
  "get-port": "^5.1.1",
25
25
  "multiformats": "^9.9.0",
26
26
  "uint8arrays": "3.0.0",
27
- "@atproto/api": "^0.12.6",
28
- "@atproto/bsky": "^0.0.48",
27
+ "@atproto/api": "^0.12.8",
28
+ "@atproto/bsky": "^0.0.50",
29
29
  "@atproto/bsync": "^0.0.3",
30
30
  "@atproto/common-web": "^0.3.0",
31
31
  "@atproto/crypto": "^0.4.0",
32
32
  "@atproto/identity": "^0.4.0",
33
33
  "@atproto/lexicon": "^0.4.0",
34
- "@atproto/ozone": "^0.1.10",
35
- "@atproto/pds": "^0.4.17",
34
+ "@atproto/ozone": "^0.1.12",
35
+ "@atproto/pds": "^0.4.19",
36
36
  "@atproto/syntax": "^0.3.0",
37
37
  "@atproto/xrpc-server": "^0.5.1"
38
38
  },
package/src/bin.ts CHANGED
@@ -37,6 +37,7 @@ const run = async () => {
37
37
  `🌞 Personal Data server started http://localhost:${network.pds.port}`,
38
38
  )
39
39
  console.log(`🗼 Ozone server started http://localhost:${network.ozone.port}`)
40
+ console.log(`🗼 Ozone service DID ${network.ozone.ctx.cfg.service.did}`)
40
41
  console.log(`🌅 Bsky Appview started http://localhost:${network.bsky.port}`)
41
42
  for (const fg of network.feedGens) {
42
43
  console.log(`🤖 Feed Generator started http://localhost:${fg.port}`)
package/src/bsky.ts CHANGED
@@ -58,6 +58,7 @@ export class TestBsky {
58
58
  didPlcUrl: cfg.plcUrl,
59
59
  publicUrl: 'https://bsky.public.url',
60
60
  serverDid,
61
+ alternateAudienceDids: [],
61
62
  dataplaneUrls: [`http://localhost:${dataplanePort}`],
62
63
  dataplaneHttpVersion: '1.1',
63
64
  bsyncUrl: `http://localhost:${bsyncPort}`,