@atproto/dev-env 0.3.9 → 0.3.10
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +10 -0
- package/dist/bin.js +1 -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/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.map +1 -1
- package/dist/network.js +33 -7
- 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/package.json +5 -5
- package/src/bin.ts +1 -0
- package/src/bsky.ts +1 -0
- package/src/mock/index.ts +0 -322
- package/src/network.ts +41 -8
- package/src/ozone-service-profile.ts +420 -0
- package/src/ozone.ts +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# @atproto/dev-env
|
2
2
|
|
3
|
+
## 0.3.10
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies [[`58f719cc1`](https://github.com/bluesky-social/atproto/commit/58f719cc1c8d0ebd5ad7cf11221372b671cd7857)]:
|
8
|
+
- @atproto/api@0.12.8
|
9
|
+
- @atproto/bsky@0.0.50
|
10
|
+
- @atproto/ozone@0.1.12
|
11
|
+
- @atproto/pds@0.4.19
|
12
|
+
|
3
13
|
## 0.3.9
|
4
14
|
|
5
15
|
### Patch Changes
|
package/dist/bin.js
CHANGED
@@ -32,6 +32,7 @@ const run = async () => {
|
|
32
32
|
console.log(`👤 DID Placeholder server started http://localhost:${network.plc.port}`);
|
33
33
|
console.log(`🌞 Personal Data server started http://localhost:${network.pds.port}`);
|
34
34
|
console.log(`🗼 Ozone server started http://localhost:${network.ozone.port}`);
|
35
|
+
console.log(`🗼 Ozone service DID ${network.ozone.ctx.cfg.service.did}`);
|
35
36
|
console.log(`🌅 Bsky Appview started http://localhost:${network.bsky.port}`);
|
36
37
|
for (const fg of network.feedGens) {
|
37
38
|
console.log(`🤖 Feed Generator started http://localhost:${fg.port}`);
|
package/dist/bin.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";;AAAA,iBAAc;AACd,iCAA0C;AAC1C,uCAAuC;AACvC,iCAAmC;AAEnC,MAAM,GAAG,GAAG,KAAK,IAAI,EAAE;IACrB,OAAO,CAAC,GAAG,CAAC;;;;;;;;uBAQS,CAAC,CAAA;IAEtB,MAAM,OAAO,GAAG,MAAM,qBAAW,CAAC,MAAM,CAAC;QACvC,GAAG,EAAE;YACH,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,WAAW;YACrB,uBAAuB,EAAE,IAAI;SAC9B;QACD,IAAI,EAAE;YACJ,gBAAgB,EAAE,MAAM;YACxB,IAAI,EAAE,IAAI;YACV,SAAS,EAAE,uBAAuB;SACnC;QACD,GAAG,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;KACpB,CAAC,CAAA;IACF,IAAA,iBAAU,EAAC,OAAO,CAAC,GAAG,CAAC,CAAA;IACvB,MAAM,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAA;IAEhC,OAAO,CAAC,GAAG,CACT,sDAAsD,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,CACzE,CAAA;IACD,OAAO,CAAC,GAAG,CACT,oDAAoD,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,CACvE,CAAA;IACD,OAAO,CAAC,GAAG,CAAC,4CAA4C,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAA;IAC7E,OAAO,CAAC,GAAG,CAAC,4CAA4C,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAA;IAC5E,KAAK,MAAM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C,4CAA4C,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAA;IAC5E,KAAK,MAAM,EAAE,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;QAClC,OAAO,CAAC,GAAG,CAAC,8CAA8C,EAAE,CAAC,IAAI,EAAE,CAAC,CAAA;IACtE,CAAC;AACH,CAAC,CAAA;AAED,GAAG,EAAE,CAAA"}
|
package/dist/bsky.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bsky.d.ts","sourceRoot":"","sources":["../src/bsky.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,eAAe,CAAA;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAIvC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAGpC,cAAc,eAAe,CAAA;AAE7B,qBAAa,QAAQ;IAEV,GAAG,EAAE,MAAM;IACX,IAAI,EAAE,MAAM;IACZ,EAAE,EAAE,IAAI,CAAC,QAAQ;IACjB,MAAM,EAAE,IAAI,CAAC,WAAW;IACxB,SAAS,EAAE,IAAI,CAAC,eAAe;IAC/B,KAAK,EAAE,IAAI,CAAC,SAAS;IACrB,GAAG,EAAE,IAAI,CAAC,gBAAgB;gBAN1B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,IAAI,CAAC,QAAQ,EACjB,MAAM,EAAE,IAAI,CAAC,WAAW,EACxB,SAAS,EAAE,IAAI,CAAC,eAAe,EAC/B,KAAK,EAAE,IAAI,CAAC,SAAS,EACrB,GAAG,EAAE,IAAI,CAAC,gBAAgB;WAGtB,MAAM,CAAC,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC,QAAQ,CAAC;
|
1
|
+
{"version":3,"file":"bsky.d.ts","sourceRoot":"","sources":["../src/bsky.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,eAAe,CAAA;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAIvC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAGpC,cAAc,eAAe,CAAA;AAE7B,qBAAa,QAAQ;IAEV,GAAG,EAAE,MAAM;IACX,IAAI,EAAE,MAAM;IACZ,EAAE,EAAE,IAAI,CAAC,QAAQ;IACjB,MAAM,EAAE,IAAI,CAAC,WAAW;IACxB,SAAS,EAAE,IAAI,CAAC,eAAe;IAC/B,KAAK,EAAE,IAAI,CAAC,SAAS;IACrB,GAAG,EAAE,IAAI,CAAC,gBAAgB;gBAN1B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,IAAI,CAAC,QAAQ,EACjB,MAAM,EAAE,IAAI,CAAC,WAAW,EACxB,SAAS,EAAE,IAAI,CAAC,eAAe,EAC/B,KAAK,EAAE,IAAI,CAAC,SAAS,EACrB,GAAG,EAAE,IAAI,CAAC,gBAAgB;WAGtB,MAAM,CAAC,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC,QAAQ,CAAC;IAgFvD,IAAI,GAAG,IAAI,IAAI,CAAC,UAAU,CAEzB;IAED,SAAS;IAMT,SAAS,IAAI,MAAM;IAQnB,gBAAgB;;;IAMV,KAAK;CAOZ"}
|
package/dist/bsky.js
CHANGED
@@ -112,6 +112,7 @@ class TestBsky {
|
|
112
112
|
didPlcUrl: cfg.plcUrl,
|
113
113
|
publicUrl: 'https://bsky.public.url',
|
114
114
|
serverDid,
|
115
|
+
alternateAudienceDids: [],
|
115
116
|
dataplaneUrls: [`http://localhost:${dataplanePort}`],
|
116
117
|
dataplaneHttpVersion: '1.1',
|
117
118
|
bsyncUrl: `http://localhost:${bsyncPort}`,
|
package/dist/bsky.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bsky.js","sourceRoot":"","sources":["../src/bsky.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wDAA8B;AAC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G,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,cAAc,CAAA;QAC9C,OAAO,CACL,QAAQ;YACR,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,SAAS,QAAQ,EAAE,EAAE,MAAM,CAAC,EAAE,WAAW,CAAC,CACvE,CAAA;IACH,CAAC;IAED,gBAAgB;QACd,OAAO;YACL,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE;SAChC,CAAA;IACH,CAAC;IAED,KAAK,CAAC,KAAK;QACT,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAA;QAC3B,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAA;QAC1B,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,CAAA;QAC9B,MAAM,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAA;QACxB,MAAM,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,CAAA;IACvB,CAAC;CACF;AA1HD,4BA0HC"}
|
package/dist/mock/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mock/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAmB,WAAW,EAAE,MAAM,UAAU,CAAA;AAkBvD,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,WAAW,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mock/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAmB,WAAW,EAAE,MAAM,UAAU,CAAA;AAkBvD,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,WAAW,iBA4cvD"}
|
package/dist/mock/index.js
CHANGED
@@ -282,305 +282,6 @@ async function generateMockSetup(env) {
|
|
282
282
|
},
|
283
283
|
createdAt: date.next().value,
|
284
284
|
});
|
285
|
-
// create the dev-env moderator
|
286
|
-
{
|
287
|
-
const res = await clients.loggedout.api.com.atproto.server.createAccount({
|
288
|
-
email: 'mod-authority@test.com',
|
289
|
-
handle: 'mod-authority.test',
|
290
|
-
password: 'hunter2',
|
291
|
-
});
|
292
|
-
const agent = env.pds.getClient();
|
293
|
-
agent.api.setHeader('Authorization', `Bearer ${res.data.accessJwt}`);
|
294
|
-
await agent.api.app.bsky.actor.profile.create({ repo: res.data.did }, {
|
295
|
-
displayName: 'Dev-env Moderation',
|
296
|
-
description: `The pretend version of mod.bsky.app`,
|
297
|
-
});
|
298
|
-
await agent.api.app.bsky.labeler.service.create({ repo: res.data.did, rkey: 'self' }, {
|
299
|
-
policies: {
|
300
|
-
labelValues: [
|
301
|
-
'!hide',
|
302
|
-
'!warn',
|
303
|
-
'porn',
|
304
|
-
'sexual',
|
305
|
-
'nudity',
|
306
|
-
'sexual-figurative',
|
307
|
-
'graphic-media',
|
308
|
-
'self-harm',
|
309
|
-
'sensitive',
|
310
|
-
'extremist',
|
311
|
-
'intolerant',
|
312
|
-
'threat',
|
313
|
-
'rude',
|
314
|
-
'illicit',
|
315
|
-
'security',
|
316
|
-
'unsafe-link',
|
317
|
-
'impersonation',
|
318
|
-
'misinformation',
|
319
|
-
'scam',
|
320
|
-
'engagement-farming',
|
321
|
-
'spam',
|
322
|
-
'rumor',
|
323
|
-
'misleading',
|
324
|
-
'inauthentic',
|
325
|
-
],
|
326
|
-
labelValueDefinitions: [
|
327
|
-
{
|
328
|
-
identifier: 'spam',
|
329
|
-
blurs: 'content',
|
330
|
-
severity: 'inform',
|
331
|
-
defaultSetting: 'hide',
|
332
|
-
adultOnly: false,
|
333
|
-
locales: [
|
334
|
-
{
|
335
|
-
lang: 'en',
|
336
|
-
name: 'Spam',
|
337
|
-
description: 'Unwanted, repeated, or unrelated actions that bother users.',
|
338
|
-
},
|
339
|
-
],
|
340
|
-
},
|
341
|
-
{
|
342
|
-
identifier: 'impersonation',
|
343
|
-
blurs: 'none',
|
344
|
-
severity: 'inform',
|
345
|
-
defaultSetting: 'hide',
|
346
|
-
adultOnly: false,
|
347
|
-
locales: [
|
348
|
-
{
|
349
|
-
lang: 'en',
|
350
|
-
name: 'Impersonation',
|
351
|
-
description: 'Pretending to be someone else without permission.',
|
352
|
-
},
|
353
|
-
],
|
354
|
-
},
|
355
|
-
{
|
356
|
-
identifier: 'scam',
|
357
|
-
blurs: 'content',
|
358
|
-
severity: 'alert',
|
359
|
-
defaultSetting: 'hide',
|
360
|
-
adultOnly: false,
|
361
|
-
locales: [
|
362
|
-
{
|
363
|
-
lang: 'en',
|
364
|
-
name: 'Scam',
|
365
|
-
description: 'Scams, phishing & fraud.',
|
366
|
-
},
|
367
|
-
],
|
368
|
-
},
|
369
|
-
{
|
370
|
-
identifier: 'intolerant',
|
371
|
-
blurs: 'content',
|
372
|
-
severity: 'alert',
|
373
|
-
defaultSetting: 'warn',
|
374
|
-
adultOnly: false,
|
375
|
-
locales: [
|
376
|
-
{
|
377
|
-
lang: 'en',
|
378
|
-
name: 'Intolerance',
|
379
|
-
description: 'Discrimination against protected groups.',
|
380
|
-
},
|
381
|
-
],
|
382
|
-
},
|
383
|
-
{
|
384
|
-
identifier: 'self-harm',
|
385
|
-
blurs: 'content',
|
386
|
-
severity: 'alert',
|
387
|
-
defaultSetting: 'warn',
|
388
|
-
adultOnly: false,
|
389
|
-
locales: [
|
390
|
-
{
|
391
|
-
lang: 'en',
|
392
|
-
name: 'Self-Harm',
|
393
|
-
description: 'Promotes self-harm, including graphic images, glorifying discussions, or triggering stories.',
|
394
|
-
},
|
395
|
-
],
|
396
|
-
},
|
397
|
-
{
|
398
|
-
identifier: 'security',
|
399
|
-
blurs: 'content',
|
400
|
-
severity: 'alert',
|
401
|
-
defaultSetting: 'hide',
|
402
|
-
adultOnly: false,
|
403
|
-
locales: [
|
404
|
-
{
|
405
|
-
lang: 'en',
|
406
|
-
name: 'Security Concerns',
|
407
|
-
description: 'May be unsafe and could harm your device, steal your info, or get your account hacked.',
|
408
|
-
},
|
409
|
-
],
|
410
|
-
},
|
411
|
-
{
|
412
|
-
identifier: 'misleading',
|
413
|
-
blurs: 'content',
|
414
|
-
severity: 'alert',
|
415
|
-
defaultSetting: 'warn',
|
416
|
-
adultOnly: false,
|
417
|
-
locales: [
|
418
|
-
{
|
419
|
-
lang: 'en',
|
420
|
-
name: 'Misleading',
|
421
|
-
description: 'Altered images/videos, deceptive links, or false statements.',
|
422
|
-
},
|
423
|
-
],
|
424
|
-
},
|
425
|
-
{
|
426
|
-
identifier: 'threat',
|
427
|
-
blurs: 'content',
|
428
|
-
severity: 'inform',
|
429
|
-
defaultSetting: 'hide',
|
430
|
-
adultOnly: false,
|
431
|
-
locales: [
|
432
|
-
{
|
433
|
-
lang: 'en',
|
434
|
-
name: 'Threats',
|
435
|
-
description: 'Promotes violence or harm towards others, including threats, incitement, or advocacy of harm.',
|
436
|
-
},
|
437
|
-
],
|
438
|
-
},
|
439
|
-
{
|
440
|
-
identifier: 'unsafe-link',
|
441
|
-
blurs: 'content',
|
442
|
-
severity: 'alert',
|
443
|
-
defaultSetting: 'hide',
|
444
|
-
adultOnly: false,
|
445
|
-
locales: [
|
446
|
-
{
|
447
|
-
lang: 'en',
|
448
|
-
name: 'Unsafe link',
|
449
|
-
description: 'Links to harmful sites with malware, phishing, or violating content that risk security and privacy.',
|
450
|
-
},
|
451
|
-
],
|
452
|
-
},
|
453
|
-
{
|
454
|
-
identifier: 'illicit',
|
455
|
-
blurs: 'content',
|
456
|
-
severity: 'alert',
|
457
|
-
defaultSetting: 'hide',
|
458
|
-
adultOnly: false,
|
459
|
-
locales: [
|
460
|
-
{
|
461
|
-
lang: 'en',
|
462
|
-
name: 'Illicit',
|
463
|
-
description: 'Promoting or selling potentially illicit goods, services, or activities.',
|
464
|
-
},
|
465
|
-
],
|
466
|
-
},
|
467
|
-
{
|
468
|
-
identifier: 'misinformation',
|
469
|
-
blurs: 'content',
|
470
|
-
severity: 'inform',
|
471
|
-
defaultSetting: 'warn',
|
472
|
-
adultOnly: false,
|
473
|
-
locales: [
|
474
|
-
{
|
475
|
-
lang: 'en',
|
476
|
-
name: 'Misinformation',
|
477
|
-
description: 'Spreading false or misleading info, including unverified claims and harmful conspiracy theories.',
|
478
|
-
},
|
479
|
-
],
|
480
|
-
},
|
481
|
-
{
|
482
|
-
identifier: 'rumor',
|
483
|
-
blurs: 'content',
|
484
|
-
severity: 'inform',
|
485
|
-
defaultSetting: 'warn',
|
486
|
-
adultOnly: false,
|
487
|
-
locales: [
|
488
|
-
{
|
489
|
-
lang: 'en',
|
490
|
-
name: 'Rumor',
|
491
|
-
description: 'Approach with caution, as these claims lack evidence from credible sources.',
|
492
|
-
},
|
493
|
-
],
|
494
|
-
},
|
495
|
-
{
|
496
|
-
identifier: 'rude',
|
497
|
-
blurs: 'content',
|
498
|
-
severity: 'inform',
|
499
|
-
defaultSetting: 'hide',
|
500
|
-
adultOnly: false,
|
501
|
-
locales: [
|
502
|
-
{
|
503
|
-
lang: 'en',
|
504
|
-
name: 'Rude',
|
505
|
-
description: 'Rude or impolite, including crude language and disrespectful comments, without constructive purpose.',
|
506
|
-
},
|
507
|
-
],
|
508
|
-
},
|
509
|
-
{
|
510
|
-
identifier: 'extremist',
|
511
|
-
blurs: 'content',
|
512
|
-
severity: 'alert',
|
513
|
-
defaultSetting: 'hide',
|
514
|
-
adultOnly: false,
|
515
|
-
locales: [
|
516
|
-
{
|
517
|
-
lang: 'en',
|
518
|
-
name: 'Extremist',
|
519
|
-
description: 'Radical views advocating violence, hate, or discrimination against individuals or groups.',
|
520
|
-
},
|
521
|
-
],
|
522
|
-
},
|
523
|
-
{
|
524
|
-
identifier: 'sensitive',
|
525
|
-
blurs: 'content',
|
526
|
-
severity: 'alert',
|
527
|
-
defaultSetting: 'warn',
|
528
|
-
adultOnly: false,
|
529
|
-
locales: [
|
530
|
-
{
|
531
|
-
lang: 'en',
|
532
|
-
name: 'Sensitive',
|
533
|
-
description: 'May be upsetting, covering topics like substance abuse or mental health issues, cautioning sensitive viewers.',
|
534
|
-
},
|
535
|
-
],
|
536
|
-
},
|
537
|
-
{
|
538
|
-
identifier: 'engagement-farming',
|
539
|
-
blurs: 'content',
|
540
|
-
severity: 'alert',
|
541
|
-
defaultSetting: 'hide',
|
542
|
-
adultOnly: false,
|
543
|
-
locales: [
|
544
|
-
{
|
545
|
-
lang: 'en',
|
546
|
-
name: 'Engagement Farming',
|
547
|
-
description: 'Insincere content or bulk actions aimed at gaining followers, including frequent follows, posts, and likes.',
|
548
|
-
},
|
549
|
-
],
|
550
|
-
},
|
551
|
-
{
|
552
|
-
identifier: 'inauthentic',
|
553
|
-
blurs: 'content',
|
554
|
-
severity: 'alert',
|
555
|
-
defaultSetting: 'hide',
|
556
|
-
adultOnly: false,
|
557
|
-
locales: [
|
558
|
-
{
|
559
|
-
lang: 'en',
|
560
|
-
name: 'Inauthentic Account',
|
561
|
-
description: 'Bot or a person pretending to be someone else.',
|
562
|
-
},
|
563
|
-
],
|
564
|
-
},
|
565
|
-
{
|
566
|
-
identifier: 'sexual-figurative',
|
567
|
-
blurs: 'media',
|
568
|
-
severity: 'none',
|
569
|
-
defaultSetting: 'show',
|
570
|
-
adultOnly: true,
|
571
|
-
locales: [
|
572
|
-
{
|
573
|
-
lang: 'en',
|
574
|
-
name: 'Sexually Suggestive (Cartoon)',
|
575
|
-
description: 'Art with explicit or suggestive sexual themes, including provocative imagery or partial nudity.',
|
576
|
-
},
|
577
|
-
],
|
578
|
-
},
|
579
|
-
],
|
580
|
-
},
|
581
|
-
createdAt: date.next().value,
|
582
|
-
});
|
583
|
-
}
|
584
285
|
// create a labeler account
|
585
286
|
{
|
586
287
|
const res = await clients.loggedout.api.com.atproto.server.createAccount({
|
package/dist/mock/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/mock/index.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAuC;AACvC,sCAA+D;AAE/D,oCAAuD;AACvD,iCAA8C;AAC9C,4EAAiD;AACjD,sFAAoD;AAEpD,OAAO;AACP,+BAA+B;AAC/B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,EAAE;IACF,MAAM,EAAE,CAAC,EAAE;SACR,UAAU,CAAC,OAAO,CAAC;SACnB,MAAM,CAAC;QACN,GAAG,EAAE,IAAI,CAAC,GAAG;QACb,GAAG,EAAE,IAAI,CAAC,GAAG;QACb,GAAG,EAAE,IAAI,CAAC,GAAG;QACb,GAAG,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QAC7B,GAAG,EAAE,KAAK;QACV,GAAG,EAAE,IAAI,CAAC,GAAG,IAAI,uBAAe;KACjC,CAAC;SACD,OAAO,EAAE,CAAA;AACd,CAAC,CAAA"}
|
package/dist/network.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"network.d.ts","sourceRoot":"","sources":["../src/network.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AACjC,OAAO,EAAE,SAAS,
|
1
|
+
{"version":3,"file":"network.d.ts","sourceRoot":"","sources":["../src/network.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAGnC,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAM3D,qBAAa,WAAY,SAAQ,oBAAoB;IAE1C,GAAG,EAAE,OAAO;IACZ,GAAG,EAAE,OAAO;IACZ,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,SAAS;gBAHhB,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,SAAS;WAKZ,MAAM,CACjB,MAAM,GAAE,OAAO,CAAC,gBAAgB,CAAM,GACrC,OAAO,CAAC,WAAW,CAAC;IA6FjB,uBAAuB,CAAC,OAAO,SAAO;IAgBtC,UAAU,CAAC,OAAO,CAAC,EAAE,MAAM;IAO3B,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM;;;IAUxC,YAAY,CAAC,EACjB,QAAyB,EACzB,QAAyB,GAC1B,EAAE;QACD,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;KAClB;;;IAWK,KAAK;CAOZ"}
|
package/dist/network.js
CHANGED
@@ -36,9 +36,9 @@ 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
43
|
const ADMIN_USERNAME = 'admin';
|
44
44
|
const ADMIN_PASSWORD = 'admin-pass';
|
@@ -80,8 +80,15 @@ class TestNetwork extends network_no_appview_1.TestNetworkNoAppView {
|
|
80
80
|
const bskyPort = params.bsky?.port ?? (await (0, get_port_1.default)());
|
81
81
|
const pdsPort = params.pds?.port ?? (await (0, get_port_1.default)());
|
82
82
|
const ozonePort = params.ozone?.port ?? (await (0, get_port_1.default)());
|
83
|
-
const
|
84
|
-
|
83
|
+
const thirdPartyPdsProps = {
|
84
|
+
didPlcUrl: plc.url,
|
85
|
+
...params.pds,
|
86
|
+
inviteRequired: false,
|
87
|
+
port: await (0, get_port_1.default)(),
|
88
|
+
};
|
89
|
+
const thirdPartyPds = await pds_1.TestPds.create(thirdPartyPdsProps);
|
90
|
+
const ozoneServiceProfile = new ozone_service_profile_1.OzoneServiceProfile(thirdPartyPds);
|
91
|
+
const { did: ozoneDid, key: ozoneKey } = await ozoneServiceProfile.createDidAndKey();
|
85
92
|
const bsky = await bsky_1.TestBsky.create({
|
86
93
|
port: bskyPort,
|
87
94
|
plcUrl: plc.url,
|
@@ -94,21 +101,23 @@ class TestNetwork extends network_no_appview_1.TestNetworkNoAppView {
|
|
94
101
|
labelsFromIssuerDids: [ozoneDid, const_1.EXAMPLE_LABELER],
|
95
102
|
...params.bsky,
|
96
103
|
});
|
97
|
-
const
|
104
|
+
const modServiceUrl = `http://localhost:${ozonePort}`;
|
105
|
+
const pdsProps = {
|
98
106
|
port: pdsPort,
|
99
107
|
didPlcUrl: plc.url,
|
100
108
|
bskyAppViewUrl: bsky.url,
|
101
109
|
bskyAppViewDid: bsky.ctx.cfg.serverDid,
|
102
|
-
modServiceUrl
|
110
|
+
modServiceUrl,
|
103
111
|
modServiceDid: ozoneDid,
|
104
112
|
...params.pds,
|
105
|
-
}
|
113
|
+
};
|
114
|
+
const pds = await pds_1.TestPds.create(pdsProps);
|
106
115
|
const ozone = await ozone_1.TestOzone.create({
|
107
116
|
port: ozonePort,
|
108
117
|
plcUrl: plc.url,
|
109
118
|
signingKey: ozoneKey,
|
110
119
|
serverDid: ozoneDid,
|
111
|
-
dbPostgresSchema: `ozone_${dbPostgresSchema}`,
|
120
|
+
dbPostgresSchema: `ozone_${dbPostgresSchema || 'db'}`,
|
112
121
|
dbPostgresUrl,
|
113
122
|
appviewUrl: bsky.url,
|
114
123
|
appviewDid: bsky.ctx.cfg.serverDid,
|
@@ -117,7 +126,24 @@ class TestNetwork extends network_no_appview_1.TestNetworkNoAppView {
|
|
117
126
|
pdsDid: pds.ctx.cfg.service.did,
|
118
127
|
...params.ozone,
|
119
128
|
});
|
129
|
+
let inviteCode;
|
130
|
+
if (pdsProps.inviteRequired) {
|
131
|
+
const { data: invite } = await pds
|
132
|
+
.getClient()
|
133
|
+
.api.com.atproto.server.createInviteCode({ useCount: 1 }, {
|
134
|
+
encoding: 'application/json',
|
135
|
+
headers: pds.adminAuthHeaders(),
|
136
|
+
});
|
137
|
+
inviteCode = invite.code;
|
138
|
+
}
|
139
|
+
await ozoneServiceProfile.createServiceDetails(pds, modServiceUrl, {
|
140
|
+
inviteCode,
|
141
|
+
});
|
142
|
+
ozone.addAdminDid(ozoneDid);
|
120
143
|
(0, util_1.mockNetworkUtilities)(pds, bsky);
|
144
|
+
await pds.processAll();
|
145
|
+
await bsky.sub.background.processAll();
|
146
|
+
await thirdPartyPds.close();
|
121
147
|
return new TestNetwork(plc, pds, bsky, ozone);
|
122
148
|
}
|
123
149
|
async processFullSubscription(timeout = 5000) {
|
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;AAEzC,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;QAEvB,K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,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;IACxB,CAAC;CACF;AAlKD,kCAkKC"}
|
@@ -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"}
|