@atproto/dev-env 0.4.7 → 0.5.0-next.0
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 +43 -0
- package/bin.js +1 -4
- package/dist/bin.d.ts +1 -1
- package/dist/bin.d.ts.map +1 -1
- package/dist/bin.js +8 -10
- package/dist/bin.js.map +1 -1
- package/dist/bsky.d.ts +1 -1
- package/dist/bsky.d.ts.map +1 -1
- package/dist/bsky.js +30 -113
- package/dist/bsky.js.map +1 -1
- package/dist/bsync.d.ts +1 -1
- package/dist/bsync.d.ts.map +1 -1
- package/dist/bsync.js +7 -62
- package/dist/bsync.js.map +1 -1
- package/dist/const.js +3 -6
- package/dist/const.js.map +1 -1
- package/dist/env.js +3 -8
- package/dist/env.js.map +1 -1
- package/dist/feed-gen.js +18 -78
- package/dist/feed-gen.js.map +1 -1
- package/dist/index.d.ts +14 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -55
- package/dist/index.js.map +1 -1
- package/dist/introspect.d.ts +4 -4
- package/dist/introspect.d.ts.map +1 -1
- package/dist/introspect.js +8 -25
- package/dist/introspect.js.map +1 -1
- package/dist/mock/data.js +2 -5
- package/dist/mock/data.js.map +1 -1
- package/dist/mock/img/blur-hash-avatar-b64.js +1 -3
- package/dist/mock/img/blur-hash-avatar-b64.js.map +1 -1
- package/dist/mock/img/labeled-img-b64.js +1 -3
- package/dist/mock/img/labeled-img-b64.js.map +1 -1
- package/dist/mock/index.d.ts +1 -1
- package/dist/mock/index.d.ts.map +1 -1
- package/dist/mock/index.js +29 -36
- package/dist/mock/index.js.map +1 -1
- package/dist/moderator-client.d.ts +4 -3
- package/dist/moderator-client.d.ts.map +1 -1
- package/dist/moderator-client.js +2 -17
- package/dist/moderator-client.js.map +1 -1
- package/dist/network-no-appview.d.ts +5 -5
- package/dist/network-no-appview.d.ts.map +1 -1
- package/dist/network-no-appview.js +14 -33
- package/dist/network-no-appview.js.map +1 -1
- package/dist/network.d.ts +7 -7
- package/dist/network.d.ts.map +1 -1
- package/dist/network.js +39 -104
- package/dist/network.js.map +1 -1
- package/dist/ozone.d.ts +2 -2
- package/dist/ozone.d.ts.map +1 -1
- package/dist/ozone.js +30 -106
- package/dist/ozone.js.map +1 -1
- package/dist/pds.d.ts +1 -1
- package/dist/pds.d.ts.map +1 -1
- package/dist/pds.js +29 -84
- package/dist/pds.js.map +1 -1
- package/dist/plc.d.ts +1 -1
- package/dist/plc.d.ts.map +1 -1
- package/dist/plc.js +9 -64
- package/dist/plc.js.map +1 -1
- package/dist/seed/author-feed.d.ts +2 -2
- package/dist/seed/author-feed.d.ts.map +1 -1
- package/dist/seed/author-feed.js +3 -8
- package/dist/seed/author-feed.js.map +1 -1
- package/dist/seed/basic.d.ts +3 -3
- package/dist/seed/basic.d.ts.map +1 -1
- package/dist/seed/basic.js +20 -26
- package/dist/seed/basic.js.map +1 -1
- package/dist/seed/client.d.ts +1 -1
- package/dist/seed/client.d.ts.map +1 -1
- package/dist/seed/client.js +29 -157
- package/dist/seed/client.js.map +1 -1
- package/dist/seed/follows.d.ts +1 -1
- package/dist/seed/follows.d.ts.map +1 -1
- package/dist/seed/follows.js +1 -3
- package/dist/seed/follows.js.map +1 -1
- package/dist/seed/index.d.ts +10 -10
- package/dist/seed/index.d.ts.map +1 -1
- package/dist/seed/index.js +10 -39
- package/dist/seed/index.js.map +1 -1
- package/dist/seed/likes.d.ts +2 -2
- package/dist/seed/likes.d.ts.map +1 -1
- package/dist/seed/likes.js +3 -8
- package/dist/seed/likes.js.map +1 -1
- package/dist/seed/quotes.d.ts +2 -2
- package/dist/seed/quotes.d.ts.map +1 -1
- package/dist/seed/quotes.js +3 -8
- package/dist/seed/quotes.js.map +1 -1
- package/dist/seed/reposts.d.ts +2 -2
- package/dist/seed/reposts.d.ts.map +1 -1
- package/dist/seed/reposts.js +3 -8
- package/dist/seed/reposts.js.map +1 -1
- package/dist/seed/thread-v2.d.ts +30 -30
- package/dist/seed/thread-v2.d.ts.map +1 -1
- package/dist/seed/thread-v2.js +35 -48
- package/dist/seed/thread-v2.js.map +1 -1
- package/dist/seed/users-bulk.d.ts +2 -2
- package/dist/seed/users-bulk.d.ts.map +1 -1
- package/dist/seed/users-bulk.js +3 -5
- package/dist/seed/users-bulk.js.map +1 -1
- package/dist/seed/users.d.ts +2 -2
- package/dist/seed/users.d.ts.map +1 -1
- package/dist/seed/users.js +1 -3
- package/dist/seed/users.js.map +1 -1
- package/dist/seed/verifications.d.ts +2 -2
- package/dist/seed/verifications.d.ts.map +1 -1
- package/dist/seed/verifications.js +3 -5
- package/dist/seed/verifications.js.map +1 -1
- package/dist/service-profile-lexicon.d.ts +2 -2
- package/dist/service-profile-lexicon.d.ts.map +1 -1
- package/dist/service-profile-lexicon.js +2 -6
- package/dist/service-profile-lexicon.js.map +1 -1
- package/dist/service-profile-ozone.d.ts +2 -2
- package/dist/service-profile-ozone.d.ts.map +1 -1
- package/dist/service-profile-ozone.js +6 -20
- package/dist/service-profile-ozone.js.map +1 -1
- package/dist/service-profile.d.ts +1 -1
- package/dist/service-profile.d.ts.map +1 -1
- package/dist/service-profile.js +6 -25
- package/dist/service-profile.js.map +1 -1
- package/dist/types.js +1 -2
- package/dist/util.d.ts +3 -3
- package/dist/util.d.ts.map +1 -1
- package/dist/util.js +13 -54
- package/dist/util.js.map +1 -1
- package/package.json +25 -20
- package/src/bin.ts +4 -4
- package/src/bsky.ts +2 -2
- package/src/bsync.ts +1 -1
- package/src/index.ts +14 -14
- package/src/introspect.ts +4 -4
- package/src/mock/index.ts +11 -8
- package/src/moderator-client.ts +2 -1
- package/src/network-no-appview.ts +6 -6
- package/src/network.ts +11 -11
- package/src/ozone.ts +4 -4
- package/src/pds.ts +2 -2
- package/src/plc.ts +1 -1
- package/src/seed/author-feed.ts +2 -2
- package/src/seed/basic.ts +6 -6
- package/src/seed/client.ts +3 -1
- package/src/seed/follows.ts +1 -1
- package/src/seed/index.ts +10 -10
- package/src/seed/likes.ts +2 -2
- package/src/seed/quotes.ts +2 -2
- package/src/seed/reposts.ts +2 -2
- package/src/seed/thread-v2.ts +13 -9
- package/src/seed/users-bulk.ts +1 -1
- package/src/seed/users.ts +1 -1
- package/src/seed/verifications.ts +2 -2
- package/src/service-profile-lexicon.ts +2 -2
- package/src/service-profile-ozone.ts +2 -2
- package/src/service-profile.ts +1 -1
- package/src/util.ts +3 -3
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"author-feed.js","sourceRoot":"","sources":["../../src/seed/author-feed.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"author-feed.js","sourceRoot":"","sources":["../../src/seed/author-feed.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAA;AAGlC,eAAe,KAAK,EAAE,EAAc,EAAE,EAAE;IACtC,MAAM,SAAS,CAAC,EAAE,CAAC,CAAA;IACnB,MAAM,EAAE,CAAC,aAAa,CAAC,KAAK,EAAE;QAC5B,KAAK,EAAE,cAAc;QACrB,MAAM,EAAE,UAAU;QAClB,QAAQ,EAAE,UAAU;KACrB,CAAC,CAAA;IACF,MAAM,EAAE,CAAC,aAAa,CAAC,MAAM,EAAE;QAC7B,KAAK,EAAE,eAAe;QACtB,MAAM,EAAE,WAAW;QACnB,QAAQ,EAAE,WAAW;KACtB,CAAC,CAAA;IAEF,MAAM,KAAK,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAA;IAC3B,MAAM,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,GAAG,CAAA;IACvB,MAAM,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAA;IAEzB;;OAEG;IACH,MAAM,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAA;IAC/B,MAAM,EAAE,CAAC,KAAK,CACZ,GAAG,EACH,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,C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,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,EACpB,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,EACpB,WAAW,CAAC,CAAC,CAAC,CACf,CAAA;IACD,MAAM,EAAE,CAAC,KAAK,CACZ,GAAG,EACH,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,EACpB,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,EACvB,cAAc,CAAC,CAAC,CAAC,CAClB,CAAA;IACD,MAAM,EAAE,CAAC,KAAK,CACZ,GAAG,EACH,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,EACpB,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,EACtB,cAAc,CAAC,CAAC,CAAC,CAClB,CAAA;IAED,0BAA0B;IAC1B,MAAM,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,SAAS,CAAC,GAAG,CAAC,CAAA;IAEnC,OAAO,EAAE,CAAA;AACX,CAAC,CAAA;AAED,MAAM,QAAQ,GAAG,CAAC,gBAAgB,EAAE,qBAAqB,CAAC,CAAA;AAC1D,MAAM,mBAAmB,GAAG;IAC1B,iBAAiB;IACjB,iBAAiB;IACjB,iBAAiB;CAClB,CAAA;AACD,MAAM,eAAe,GAAG,CAAC,sBAAsB,EAAE,sBAAsB,CAAC,CAAA;AACxE,MAAM,cAAc,GAAG,CAAC,qBAAqB,EAAE,qBAAqB,CAAC,CAAA;AACrE,MAAM,WAAW,GAAG,CAAC,qBAAqB,CAAC,CAAA","sourcesContent":["import basicSeed from './basic.js'\nimport { SeedClient } from './client.js'\n\nexport default async (sc: SeedClient) => {\n await basicSeed(sc)\n await sc.createAccount('eve', {\n email: 'eve@test.com',\n handle: 'eve.test',\n password: 'eve-pass',\n })\n await sc.createAccount('fred', {\n email: 'fred@test.com',\n handle: 'fred.test',\n password: 'fred-pass',\n })\n\n const alice = sc.dids.alice\n const eve = sc.dids.eve\n const fred = sc.dids.fred\n\n /*\n * Self thread\n */\n await sc.post(eve, evePosts[0])\n await sc.reply(\n eve,\n sc.posts[eve][0].ref,\n sc.posts[eve][0].ref,\n eveOwnThreadReplies[0],\n )\n await sc.reply(\n eve,\n sc.posts[eve][0].ref,\n sc.replies[eve][0].ref,\n eveOwnThreadReplies[1],\n )\n await sc.reply(\n eve,\n sc.posts[eve][0].ref,\n sc.replies[eve][1].ref,\n eveOwnThreadReplies[2],\n )\n\n /**\n * Two replies to Alice\n */\n await sc.reply(\n eve,\n sc.posts[alice][1].ref,\n sc.posts[alice][1].ref,\n eveAliceReplies[0],\n )\n await sc.reply(\n eve,\n sc.posts[alice][1].ref,\n sc.replies[eve][3].ref,\n eveAliceReplies[1],\n )\n\n /**\n * Two replies to Fred, who replied to Eve's root post. This creates a\n * \"detached\" thread, where one Fred post breaks the continuity.\n */\n await sc.post(eve, evePosts[1])\n const fredReply = await sc.reply(\n fred,\n sc.posts[eve][1].ref,\n sc.posts[eve][1].ref,\n fredReplies[0],\n )\n await sc.reply(\n eve,\n sc.posts[eve][1].ref,\n sc.replies[fred][0].ref,\n eveFredReplies[0],\n )\n await sc.reply(\n eve,\n sc.posts[eve][1].ref,\n sc.replies[eve][4].ref,\n eveFredReplies[1],\n )\n\n // a repost for eve's feed\n await sc.repost(eve, fredReply.ref)\n\n return sc\n}\n\nconst evePosts = ['eve own thread', 'eve detached thread']\nconst eveOwnThreadReplies = [\n 'eve own reply 1',\n 'eve own reply 2',\n 'eve own reply 3',\n]\nconst eveAliceReplies = ['eve reply to alice 1', 'eve reply to alice 2']\nconst eveFredReplies = ['eve reply to fred 1', 'eve reply to fred 2']\nconst fredReplies = ['fred reply to eve 1']\n"]}
|
package/dist/seed/basic.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { SeedClient } from './client';
|
|
1
|
+
import { TestNetworkNoAppView } from '../network-no-appview.js';
|
|
2
|
+
import { TestNetwork } from '../network.js';
|
|
3
|
+
import { SeedClient } from './client.js';
|
|
4
4
|
declare const _default: (sc: SeedClient<TestNetwork | TestNetworkNoAppView>, users?: boolean) => Promise<SeedClient<TestNetworkNoAppView | TestNetwork>>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const posts: {
|
package/dist/seed/basic.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic.d.ts","sourceRoot":"","sources":["../../src/seed/basic.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"basic.d.ts","sourceRoot":"","sources":["../../src/seed/basic.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;yBAItC,IAAI,UAAU,CAAC,WAAW,GAAG,oBAAoB,CAAC,EAClD,eAAY;AAFd,wBAuJC;AAED,eAAO,MAAM,KAAK;;;;;CAKjB,CAAA;AAED,eAAO,MAAM,OAAO;;;;CAInB,CAAA"}
|
package/dist/seed/basic.js
CHANGED
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.replies = exports.posts = void 0;
|
|
7
|
-
const const_1 = require("../const");
|
|
8
|
-
const network_1 = require("../network");
|
|
9
|
-
const users_1 = __importDefault(require("./users"));
|
|
10
|
-
exports.default = async (sc, users = true) => {
|
|
1
|
+
import { EXAMPLE_LABELER } from '../const.js';
|
|
2
|
+
import { TestNetwork } from '../network.js';
|
|
3
|
+
import usersSeed from './users.js';
|
|
4
|
+
export default async (sc, users = true) => {
|
|
11
5
|
if (users)
|
|
12
|
-
await (
|
|
6
|
+
await usersSeed(sc);
|
|
13
7
|
const alice = sc.dids.alice;
|
|
14
8
|
const bob = sc.dids.bob;
|
|
15
9
|
const carol = sc.dids.carol;
|
|
@@ -27,21 +21,21 @@ exports.default = async (sc, users = true) => {
|
|
|
27
21
|
await sc.follow(bob, alice);
|
|
28
22
|
await sc.follow(bob, carol, createdAtMicroseconds());
|
|
29
23
|
await sc.follow(dan, bob, createdAtTimezone());
|
|
30
|
-
await sc.post(alice,
|
|
24
|
+
await sc.post(alice, posts.alice[0], undefined, undefined, undefined, {
|
|
31
25
|
labels: {
|
|
32
26
|
$type: 'com.atproto.label.defs#selfLabels',
|
|
33
27
|
values: [{ val: 'self-label' }],
|
|
34
28
|
},
|
|
35
29
|
});
|
|
36
|
-
await sc.post(bob,
|
|
30
|
+
await sc.post(bob, posts.bob[0], undefined, undefined, undefined, {
|
|
37
31
|
langs: ['en-US', 'i-klingon'],
|
|
38
32
|
});
|
|
39
33
|
const img1 = await sc.uploadFile(carol, '../dev-env/assets/key-landscape-small.jpg', 'image/jpeg');
|
|
40
34
|
const img2 = await sc.uploadFile(carol, '../dev-env/assets/key-alt.jpg', 'image/jpeg');
|
|
41
|
-
await sc.post(carol,
|
|
35
|
+
await sc.post(carol, posts.carol[0], undefined, [img1, img2], // Contains both images and a quote
|
|
42
36
|
sc.posts[bob][0].ref);
|
|
43
|
-
await sc.post(dan,
|
|
44
|
-
await sc.post(dan,
|
|
37
|
+
await sc.post(dan, posts.dan[0]);
|
|
38
|
+
await sc.post(dan, posts.dan[1], [
|
|
45
39
|
{
|
|
46
40
|
index: { byteStart: 0, byteEnd: 18 },
|
|
47
41
|
features: [
|
|
@@ -52,9 +46,9 @@ exports.default = async (sc, users = true) => {
|
|
|
52
46
|
],
|
|
53
47
|
},
|
|
54
48
|
], undefined, sc.posts[carol][0].ref);
|
|
55
|
-
await sc.post(alice,
|
|
56
|
-
await sc.post(bob,
|
|
57
|
-
await sc.post(alice,
|
|
49
|
+
await sc.post(alice, posts.alice[1], undefined, undefined, undefined, createdAtMicroseconds());
|
|
50
|
+
await sc.post(bob, posts.bob[1], undefined, undefined, undefined, createdAtTimezone());
|
|
51
|
+
await sc.post(alice, posts.alice[2], undefined, undefined, sc.posts[dan][1].ref);
|
|
58
52
|
await sc.like(bob, sc.posts[alice][1].ref);
|
|
59
53
|
await sc.like(bob, sc.posts[alice][2].ref);
|
|
60
54
|
await sc.like(carol, sc.posts[alice][1].ref);
|
|
@@ -65,14 +59,14 @@ exports.default = async (sc, users = true) => {
|
|
|
65
59
|
const replyImg = await sc.uploadFile(bob, '../dev-env/assets/key-landscape-small.jpg', 'image/jpeg');
|
|
66
60
|
// must ensure ordering of replies in indexing
|
|
67
61
|
await sc.network.processAll();
|
|
68
|
-
await sc.reply(bob, sc.posts[alice][1].ref, sc.posts[alice][1].ref,
|
|
69
|
-
await sc.reply(carol, sc.posts[alice][1].ref, sc.posts[alice][1].ref,
|
|
62
|
+
await sc.reply(bob, sc.posts[alice][1].ref, sc.posts[alice][1].ref, replies.bob[0], undefined, [replyImg]);
|
|
63
|
+
await sc.reply(carol, sc.posts[alice][1].ref, sc.posts[alice][1].ref, replies.carol[0]);
|
|
70
64
|
await sc.network.processAll();
|
|
71
|
-
const alicesReplyToBob = await sc.reply(alice, sc.posts[alice][1].ref, sc.replies[bob][0].ref,
|
|
65
|
+
const alicesReplyToBob = await sc.reply(alice, sc.posts[alice][1].ref, sc.replies[bob][0].ref, replies.alice[0]);
|
|
72
66
|
await sc.repost(carol, sc.posts[dan][1].ref);
|
|
73
67
|
await sc.repost(dan, sc.posts[alice][1].ref);
|
|
74
68
|
await sc.repost(dan, alicesReplyToBob.ref);
|
|
75
|
-
if (sc.network instanceof
|
|
69
|
+
if (sc.network instanceof TestNetwork) {
|
|
76
70
|
const bsky = sc.network.bsky;
|
|
77
71
|
await createLabel(bsky, {
|
|
78
72
|
val: 'test-label',
|
|
@@ -92,13 +86,13 @@ exports.default = async (sc, users = true) => {
|
|
|
92
86
|
}
|
|
93
87
|
return sc;
|
|
94
88
|
};
|
|
95
|
-
|
|
89
|
+
export const posts = {
|
|
96
90
|
alice: ['hey there', 'again', 'yoohoo label_me'],
|
|
97
91
|
bob: ['bob back at it again!', 'bobby boy here', 'yoohoo'],
|
|
98
92
|
carol: ['hi im carol'],
|
|
99
93
|
dan: ['dan here!', '@alice.bluesky.xyz is the best'],
|
|
100
94
|
};
|
|
101
|
-
|
|
95
|
+
export const replies = {
|
|
102
96
|
alice: ['thanks bob'],
|
|
103
97
|
bob: ['hear that label_me label_me_2'],
|
|
104
98
|
carol: ['of course'],
|
|
@@ -112,7 +106,7 @@ const createLabel = async (bsky, opts) => {
|
|
|
112
106
|
val: opts.val,
|
|
113
107
|
cts: new Date().toISOString(),
|
|
114
108
|
neg: false,
|
|
115
|
-
src:
|
|
109
|
+
src: EXAMPLE_LABELER, // this did is also configured on labelsFromIssuerDids
|
|
116
110
|
})
|
|
117
111
|
.execute();
|
|
118
112
|
};
|
package/dist/seed/basic.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic.js","sourceRoot":"","sources":["../../src/seed/basic.ts"],"names":[],"mappings":";;;;;;AACA,oCAA0C;AAC1C,wCAAwC;AAGxC,oDAA+B;AAE/B,kBAAe,KAAK,EAClB,EAAkD,EAClD,KAAK,GAAG,IAAI,EACZ,EAAE;IACF,IAAI,KAAK;QAAE,MAAM,IAAA,eAAS,EAAC,EAAE,CAAC,CAAA;IAE9B,MAAM,KAAK,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAA;IAC3B,MAAM,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,GAAG,CAAA;IACvB,MAAM,KAAK,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAA;IAC3B,MAAM,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,GAAG,CAAA;IACv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,OAAO,GAAG;IACrB,KAAK,EAAE,CAAC,YAAY,CAAC;IACrB,GAAG,EAAE,CAAC,+BAA+B,CAAC;IACtC,KAAK,EAAE,CAAC,WAAW,CAAC;CACrB,CAAA;AAED,MAAM,WAAW,GAAG,KAAK,EACvB,IAAc,EACd,IAA+C,EAC/C,EAAE;IACF,MAAM,IAAI,CAAC,EAAE,CAAC,EAAE;SACb,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,uBAAe,EAAE,sDAAsD;KAC7E,CAAC;SACD,OAAO,EAAE,CAAA;AACd,CAAC,CAAA","sourcesContent":["import { TestBsky } from '../bsky'\nimport { EXAMPLE_LABELER } from '../const'\nimport { TestNetwork } from '../network'\nimport { TestNetworkNoAppView } from '../network-no-appview'\nimport { SeedClient } from './client'\nimport usersSeed from './users'\n\nexport default async (\n sc: SeedClient<TestNetwork | TestNetworkNoAppView>,\n users = true,\n) => {\n if (users) await usersSeed(sc)\n\n const alice = sc.dids.alice\n const bob = sc.dids.bob\n const carol = sc.dids.carol\n const dan = sc.dids.dan\n const createdAtMicroseconds = () => ({\n createdAt: new Date().toISOString().replace('Z', '000Z'), // microseconds\n })\n const createdAtTimezone = () => ({\n createdAt: new Date().toISOString().replace('Z', '+00:00'), // iso timezone format\n })\n\n await sc.follow(alice, bob)\n await sc.follow(alice, carol)\n await sc.follow(alice, dan)\n await sc.follow(carol, alice)\n await sc.follow(bob, alice)\n await sc.follow(bob, carol, createdAtMicroseconds())\n await sc.follow(dan, bob, createdAtTimezone())\n await sc.post(alice, posts.alice[0], undefined, undefined, undefined, {\n labels: {\n $type: 'com.atproto.label.defs#selfLabels',\n values: [{ val: 'self-label' }],\n },\n })\n await sc.post(bob, posts.bob[0], undefined, undefined, undefined, {\n langs: ['en-US', 'i-klingon'],\n })\n const img1 = await sc.uploadFile(\n carol,\n '../dev-env/assets/key-landscape-small.jpg',\n 'image/jpeg',\n )\n const img2 = await sc.uploadFile(\n carol,\n '../dev-env/assets/key-alt.jpg',\n 'image/jpeg',\n )\n await sc.post(\n carol,\n posts.carol[0],\n undefined,\n [img1, img2], // Contains both images and a quote\n sc.posts[bob][0].ref,\n )\n await sc.post(dan, posts.dan[0])\n await sc.post(\n dan,\n posts.dan[1],\n [\n {\n index: { byteStart: 0, byteEnd: 18 },\n features: [\n {\n $type: `app.bsky.richtext.facet#mention`,\n did: alice,\n },\n ],\n },\n ],\n undefined,\n sc.posts[carol][0].ref, // This post contains an images embed\n )\n await sc.post(\n alice,\n posts.alice[1],\n undefined,\n undefined,\n undefined,\n createdAtMicroseconds(),\n )\n await sc.post(\n bob,\n posts.bob[1],\n undefined,\n undefined,\n undefined,\n createdAtTimezone(),\n )\n await sc.post(\n alice,\n posts.alice[2],\n undefined,\n undefined,\n sc.posts[dan][1].ref, // This post contains a record embed which contains an images embed\n )\n await sc.like(bob, sc.posts[alice][1].ref)\n await sc.like(bob, sc.posts[alice][2].ref)\n await sc.like(carol, sc.posts[alice][1].ref)\n await sc.like(carol, sc.posts[alice][2].ref)\n await sc.like(dan, sc.posts[alice][1].ref)\n await sc.like(alice, sc.posts[carol][0].ref, createdAtMicroseconds())\n await sc.like(bob, sc.posts[carol][0].ref, createdAtTimezone())\n\n const replyImg = await sc.uploadFile(\n bob,\n '../dev-env/assets/key-landscape-small.jpg',\n 'image/jpeg',\n )\n // must ensure ordering of replies in indexing\n await sc.network.processAll()\n await sc.reply(\n bob,\n sc.posts[alice][1].ref,\n sc.posts[alice][1].ref,\n replies.bob[0],\n undefined,\n [replyImg],\n )\n await sc.reply(\n carol,\n sc.posts[alice][1].ref,\n sc.posts[alice][1].ref,\n replies.carol[0],\n )\n await sc.network.processAll()\n const alicesReplyToBob = await sc.reply(\n alice,\n sc.posts[alice][1].ref,\n sc.replies[bob][0].ref,\n replies.alice[0],\n )\n await sc.repost(carol, sc.posts[dan][1].ref)\n await sc.repost(dan, sc.posts[alice][1].ref)\n await sc.repost(dan, alicesReplyToBob.ref)\n\n if (sc.network instanceof TestNetwork) {\n const bsky = sc.network.bsky\n await createLabel(bsky, {\n val: 'test-label',\n uri: sc.posts[alice][2].ref.uriStr,\n cid: sc.posts[alice][2].ref.cidStr,\n })\n await createLabel(bsky, {\n val: 'test-label',\n uri: sc.replies[bob][0].ref.uriStr,\n cid: sc.replies[bob][0].ref.cidStr,\n })\n await createLabel(bsky, {\n val: 'test-label-2',\n uri: sc.replies[bob][0].ref.uriStr,\n cid: sc.replies[bob][0].ref.cidStr,\n })\n }\n\n return sc\n}\n\nexport const posts = {\n alice: ['hey there', 'again', 'yoohoo label_me'],\n bob: ['bob back at it again!', 'bobby boy here', 'yoohoo'],\n carol: ['hi im carol'],\n dan: ['dan here!', '@alice.bluesky.xyz is the best'],\n}\n\nexport const replies = {\n alice: ['thanks bob'],\n bob: ['hear that label_me label_me_2'],\n carol: ['of course'],\n}\n\nconst createLabel = async (\n bsky: TestBsky,\n opts: { uri: string; cid: string; val: string },\n) => {\n await bsky.db.db\n .insertInto('label')\n .values({\n uri: opts.uri,\n cid: opts.cid,\n val: opts.val,\n cts: new Date().toISOString(),\n neg: false,\n src: EXAMPLE_LABELER, // this did is also configured on labelsFromIssuerDids\n })\n .execute()\n}\n"]}
|
|
1
|
+
{"version":3,"file":"basic.js","sourceRoot":"","sources":["../../src/seed/basic.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,OAAO,SAAS,MAAM,YAAY,CAAA;AAElC,eAAe,KAAK,EAClB,EAAkD,EAClD,KAAK,GAAG,IAAI,EACZ,EAAE;IACF,IAAI,KAAK;QAAE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AA;AACX,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,KAAK,EAAE,CAAC,WAAW,EAAE,OAAO,EAAE,iBAAiB,CAAC;IAChD,GAAG,EAAE,CAAC,uBAAuB,EAAE,gBAAgB,EAAE,QAAQ,CAAC;IAC1D,KAAK,EAAE,CAAC,aAAa,CAAC;IACtB,GAAG,EAAE,CAAC,WAAW,EAAE,gCAAgC,CAAC;CACrD,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,KAAK,EAAE,CAAC,YAAY,CAAC;IACrB,GAAG,EAAE,CAAC,+BAA+B,CAAC;IACtC,KAAK,EAAE,CAAC,WAAW,CAAC;CACrB,CAAA;AAED,MAAM,WAAW,GAAG,KAAK,EACvB,IAAc,EACd,IAA+C,EAC/C,EAAE;IACF,MAAM,IAAI,CAAC,EAAE,CAAC,EAAE;SACb,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,eAAe,EAAE,sDAAsD;KAC7E,CAAC;SACD,OAAO,EAAE,CAAA;AACd,CAAC,CAAA","sourcesContent":["import { TestBsky } from '../bsky.js'\nimport { EXAMPLE_LABELER } from '../const.js'\nimport { TestNetworkNoAppView } from '../network-no-appview.js'\nimport { TestNetwork } from '../network.js'\nimport { SeedClient } from './client.js'\nimport usersSeed from './users.js'\n\nexport default async (\n sc: SeedClient<TestNetwork | TestNetworkNoAppView>,\n users = true,\n) => {\n if (users) await usersSeed(sc)\n\n const alice = sc.dids.alice\n const bob = sc.dids.bob\n const carol = sc.dids.carol\n const dan = sc.dids.dan\n const createdAtMicroseconds = () => ({\n createdAt: new Date().toISOString().replace('Z', '000Z'), // microseconds\n })\n const createdAtTimezone = () => ({\n createdAt: new Date().toISOString().replace('Z', '+00:00'), // iso timezone format\n })\n\n await sc.follow(alice, bob)\n await sc.follow(alice, carol)\n await sc.follow(alice, dan)\n await sc.follow(carol, alice)\n await sc.follow(bob, alice)\n await sc.follow(bob, carol, createdAtMicroseconds())\n await sc.follow(dan, bob, createdAtTimezone())\n await sc.post(alice, posts.alice[0], undefined, undefined, undefined, {\n labels: {\n $type: 'com.atproto.label.defs#selfLabels',\n values: [{ val: 'self-label' }],\n },\n })\n await sc.post(bob, posts.bob[0], undefined, undefined, undefined, {\n langs: ['en-US', 'i-klingon'],\n })\n const img1 = await sc.uploadFile(\n carol,\n '../dev-env/assets/key-landscape-small.jpg',\n 'image/jpeg',\n )\n const img2 = await sc.uploadFile(\n carol,\n '../dev-env/assets/key-alt.jpg',\n 'image/jpeg',\n )\n await sc.post(\n carol,\n posts.carol[0],\n undefined,\n [img1, img2], // Contains both images and a quote\n sc.posts[bob][0].ref,\n )\n await sc.post(dan, posts.dan[0])\n await sc.post(\n dan,\n posts.dan[1],\n [\n {\n index: { byteStart: 0, byteEnd: 18 },\n features: [\n {\n $type: `app.bsky.richtext.facet#mention`,\n did: alice,\n },\n ],\n },\n ],\n undefined,\n sc.posts[carol][0].ref, // This post contains an images embed\n )\n await sc.post(\n alice,\n posts.alice[1],\n undefined,\n undefined,\n undefined,\n createdAtMicroseconds(),\n )\n await sc.post(\n bob,\n posts.bob[1],\n undefined,\n undefined,\n undefined,\n createdAtTimezone(),\n )\n await sc.post(\n alice,\n posts.alice[2],\n undefined,\n undefined,\n sc.posts[dan][1].ref, // This post contains a record embed which contains an images embed\n )\n await sc.like(bob, sc.posts[alice][1].ref)\n await sc.like(bob, sc.posts[alice][2].ref)\n await sc.like(carol, sc.posts[alice][1].ref)\n await sc.like(carol, sc.posts[alice][2].ref)\n await sc.like(dan, sc.posts[alice][1].ref)\n await sc.like(alice, sc.posts[carol][0].ref, createdAtMicroseconds())\n await sc.like(bob, sc.posts[carol][0].ref, createdAtTimezone())\n\n const replyImg = await sc.uploadFile(\n bob,\n '../dev-env/assets/key-landscape-small.jpg',\n 'image/jpeg',\n )\n // must ensure ordering of replies in indexing\n await sc.network.processAll()\n await sc.reply(\n bob,\n sc.posts[alice][1].ref,\n sc.posts[alice][1].ref,\n replies.bob[0],\n undefined,\n [replyImg],\n )\n await sc.reply(\n carol,\n sc.posts[alice][1].ref,\n sc.posts[alice][1].ref,\n replies.carol[0],\n )\n await sc.network.processAll()\n const alicesReplyToBob = await sc.reply(\n alice,\n sc.posts[alice][1].ref,\n sc.replies[bob][0].ref,\n replies.alice[0],\n )\n await sc.repost(carol, sc.posts[dan][1].ref)\n await sc.repost(dan, sc.posts[alice][1].ref)\n await sc.repost(dan, alicesReplyToBob.ref)\n\n if (sc.network instanceof TestNetwork) {\n const bsky = sc.network.bsky\n await createLabel(bsky, {\n val: 'test-label',\n uri: sc.posts[alice][2].ref.uriStr,\n cid: sc.posts[alice][2].ref.cidStr,\n })\n await createLabel(bsky, {\n val: 'test-label',\n uri: sc.replies[bob][0].ref.uriStr,\n cid: sc.replies[bob][0].ref.cidStr,\n })\n await createLabel(bsky, {\n val: 'test-label-2',\n uri: sc.replies[bob][0].ref.uriStr,\n cid: sc.replies[bob][0].ref.cidStr,\n })\n }\n\n return sc\n}\n\nexport const posts = {\n alice: ['hey there', 'again', 'yoohoo label_me'],\n bob: ['bob back at it again!', 'bobby boy here', 'yoohoo'],\n carol: ['hi im carol'],\n dan: ['dan here!', '@alice.bluesky.xyz is the best'],\n}\n\nexport const replies = {\n alice: ['thanks bob'],\n bob: ['hear that label_me label_me_2'],\n carol: ['of course'],\n}\n\nconst createLabel = async (\n bsky: TestBsky,\n opts: { uri: string; cid: string; val: string },\n) => {\n await bsky.db.db\n .insertInto('label')\n .values({\n uri: opts.uri,\n cid: opts.cid,\n val: opts.val,\n cts: new Date().toISOString(),\n neg: false,\n src: EXAMPLE_LABELER, // this did is also configured on labelsFromIssuerDids\n })\n .execute()\n}\n"]}
|
package/dist/seed/client.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { AppBskyActorProfile, AppBskyFeedLike, AppBskyFeedPost, AppBskyFeedRepos
|
|
|
3
3
|
import { CidString, Client } from '@atproto/lex';
|
|
4
4
|
import { BlobRef } from '@atproto/lexicon';
|
|
5
5
|
import { AtUri, AtUriString, DidString } from '@atproto/syntax';
|
|
6
|
-
import { TestNetworkNoAppView } from '../network-no-appview';
|
|
6
|
+
import { TestNetworkNoAppView } from '../network-no-appview.js';
|
|
7
7
|
export type ImageRef = {
|
|
8
8
|
image: BlobRef;
|
|
9
9
|
alt: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/seed/client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/seed/client.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,wBAAwB,EACxB,oBAAoB,EACpB,QAAQ,EACR,gCAAgC,EACjC,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAe/D,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,EAAE,OAAO,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,qBAAa,SAAS;IACpB,GAAG,EAAE,KAAK,CAAA;IACV,GAAG,EAAE,GAAG,CAA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,GAAG,WAAW,EACvC,SAAS,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,MAAM,CAAC;IA0BxC,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;IAmBvD,iBAAiB,CACrB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EAAE,EAChB,KAAK,CAAC,EAAE,MAAM,EAAE;IA2BZ,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS;IActD,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS;IAYvD,YAAY,CAAC,IAAI,EAAE;QACvB,UAAU,EAAE,gCAAgC,CAAC,WAAW,CAAC,YAAY,CAAC,CAAA;QACtE,OAAO,EAAE,gCAAgC,CAAC,WAAW,CAAC,SAAS,CAAC,CAAA;QAChE,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,UAAU,EAAE,MAAM,CAAA;KACnB;IAYK,MAAM,CACV,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,SAAS,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,MAAM,CAAC;IAkBhD,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;IAa1C,UAAU,CAAC,GAAG,EAAE,MAAM;;;IAItB,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM;;;CAG9B"}
|
package/dist/seed/client.js
CHANGED
|
@@ -1,35 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
exports.SeedClient = exports.RecordRef = void 0;
|
|
7
|
-
const promises_1 = __importDefault(require("node:fs/promises"));
|
|
8
|
-
const node_path_1 = __importDefault(require("node:path"));
|
|
9
|
-
const cid_1 = require("multiformats/cid");
|
|
10
|
-
const syntax_1 = require("@atproto/syntax");
|
|
1
|
+
import fs from 'node:fs/promises';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
4
|
+
import { CID } from 'multiformats/cid';
|
|
5
|
+
import { AtUri } from '@atproto/syntax';
|
|
11
6
|
// Makes it simple to create data via the XRPC client,
|
|
12
7
|
// and keeps track of all created data in memory for convenience.
|
|
13
8
|
let AVATAR_IMG;
|
|
14
9
|
// AVATAR_PATH is defined in a non-CWD-dependant way, so this works
|
|
15
10
|
// for any consumer of this package, even outside the atproto repo.
|
|
16
|
-
const
|
|
17
|
-
|
|
11
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
12
|
+
const AVATAR_PATH = path.resolve(__dirname, '../../assets/key-portrait-small.jpg');
|
|
13
|
+
export class RecordRef {
|
|
18
14
|
constructor(uri, cid) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
configurable: true,
|
|
22
|
-
writable: true,
|
|
23
|
-
value: void 0
|
|
24
|
-
});
|
|
25
|
-
Object.defineProperty(this, "cid", {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
configurable: true,
|
|
28
|
-
writable: true,
|
|
29
|
-
value: void 0
|
|
30
|
-
});
|
|
31
|
-
this.uri = new syntax_1.AtUri(uri.toString());
|
|
32
|
-
this.cid = cid_1.CID.parse(cid.toString());
|
|
15
|
+
this.uri = new AtUri(uri.toString());
|
|
16
|
+
this.cid = CID.parse(cid.toString());
|
|
33
17
|
}
|
|
34
18
|
get raw() {
|
|
35
19
|
return {
|
|
@@ -44,111 +28,11 @@ class RecordRef {
|
|
|
44
28
|
return this.cid.toString();
|
|
45
29
|
}
|
|
46
30
|
}
|
|
47
|
-
|
|
48
|
-
class SeedClient {
|
|
31
|
+
export class SeedClient {
|
|
49
32
|
constructor(network, agent, client) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
writable: true,
|
|
54
|
-
value: network
|
|
55
|
-
});
|
|
56
|
-
Object.defineProperty(this, "agent", {
|
|
57
|
-
enumerable: true,
|
|
58
|
-
configurable: true,
|
|
59
|
-
writable: true,
|
|
60
|
-
value: agent
|
|
61
|
-
});
|
|
62
|
-
Object.defineProperty(this, "client", {
|
|
63
|
-
enumerable: true,
|
|
64
|
-
configurable: true,
|
|
65
|
-
writable: true,
|
|
66
|
-
value: client
|
|
67
|
-
});
|
|
68
|
-
Object.defineProperty(this, "accounts", {
|
|
69
|
-
enumerable: true,
|
|
70
|
-
configurable: true,
|
|
71
|
-
writable: true,
|
|
72
|
-
value: void 0
|
|
73
|
-
});
|
|
74
|
-
Object.defineProperty(this, "profiles", {
|
|
75
|
-
enumerable: true,
|
|
76
|
-
configurable: true,
|
|
77
|
-
writable: true,
|
|
78
|
-
value: void 0
|
|
79
|
-
});
|
|
80
|
-
Object.defineProperty(this, "follows", {
|
|
81
|
-
enumerable: true,
|
|
82
|
-
configurable: true,
|
|
83
|
-
writable: true,
|
|
84
|
-
value: void 0
|
|
85
|
-
});
|
|
86
|
-
Object.defineProperty(this, "blocks", {
|
|
87
|
-
enumerable: true,
|
|
88
|
-
configurable: true,
|
|
89
|
-
writable: true,
|
|
90
|
-
value: void 0
|
|
91
|
-
});
|
|
92
|
-
Object.defineProperty(this, "mutes", {
|
|
93
|
-
enumerable: true,
|
|
94
|
-
configurable: true,
|
|
95
|
-
writable: true,
|
|
96
|
-
value: void 0
|
|
97
|
-
});
|
|
98
|
-
Object.defineProperty(this, "posts", {
|
|
99
|
-
enumerable: true,
|
|
100
|
-
configurable: true,
|
|
101
|
-
writable: true,
|
|
102
|
-
value: void 0
|
|
103
|
-
});
|
|
104
|
-
Object.defineProperty(this, "likes", {
|
|
105
|
-
enumerable: true,
|
|
106
|
-
configurable: true,
|
|
107
|
-
writable: true,
|
|
108
|
-
value: void 0
|
|
109
|
-
});
|
|
110
|
-
Object.defineProperty(this, "replies", {
|
|
111
|
-
enumerable: true,
|
|
112
|
-
configurable: true,
|
|
113
|
-
writable: true,
|
|
114
|
-
value: void 0
|
|
115
|
-
});
|
|
116
|
-
Object.defineProperty(this, "reposts", {
|
|
117
|
-
enumerable: true,
|
|
118
|
-
configurable: true,
|
|
119
|
-
writable: true,
|
|
120
|
-
value: void 0
|
|
121
|
-
});
|
|
122
|
-
Object.defineProperty(this, "lists", {
|
|
123
|
-
enumerable: true,
|
|
124
|
-
configurable: true,
|
|
125
|
-
writable: true,
|
|
126
|
-
value: void 0
|
|
127
|
-
});
|
|
128
|
-
Object.defineProperty(this, "feedgens", {
|
|
129
|
-
enumerable: true,
|
|
130
|
-
configurable: true,
|
|
131
|
-
writable: true,
|
|
132
|
-
value: void 0
|
|
133
|
-
});
|
|
134
|
-
Object.defineProperty(this, "starterpacks", {
|
|
135
|
-
enumerable: true,
|
|
136
|
-
configurable: true,
|
|
137
|
-
writable: true,
|
|
138
|
-
value: void 0
|
|
139
|
-
});
|
|
140
|
-
Object.defineProperty(this, "verifications", {
|
|
141
|
-
enumerable: true,
|
|
142
|
-
configurable: true,
|
|
143
|
-
writable: true,
|
|
144
|
-
value: void 0
|
|
145
|
-
});
|
|
146
|
-
Object.defineProperty(this, "dids", {
|
|
147
|
-
enumerable: true,
|
|
148
|
-
configurable: true,
|
|
149
|
-
writable: true,
|
|
150
|
-
value: void 0
|
|
151
|
-
});
|
|
33
|
+
this.network = network;
|
|
34
|
+
this.agent = agent;
|
|
35
|
+
this.client = client;
|
|
152
36
|
this.accounts = {};
|
|
153
37
|
this.profiles = {};
|
|
154
38
|
this.follows = {};
|
|
@@ -180,7 +64,7 @@ class SeedClient {
|
|
|
180
64
|
await this.agent.com.atproto.identity.updateHandle({ handle }, { encoding: 'application/json', headers: this.getHeaders(by) });
|
|
181
65
|
}
|
|
182
66
|
async createProfile(by, displayName, description, selfLabels, joinedViaStarterPack, overrides) {
|
|
183
|
-
AVATAR_IMG
|
|
67
|
+
AVATAR_IMG ??= await fs.readFile(AVATAR_PATH);
|
|
184
68
|
let avatarBlob;
|
|
185
69
|
{
|
|
186
70
|
const res = await this.agent.com.atproto.repo.uploadBlob(AVATAR_IMG, {
|
|
@@ -229,13 +113,12 @@ class SeedClient {
|
|
|
229
113
|
return this.profiles[by];
|
|
230
114
|
}
|
|
231
115
|
async follow(from, to, overrides) {
|
|
232
|
-
var _a;
|
|
233
116
|
const res = await this.agent.app.bsky.graph.follow.create({ repo: from }, {
|
|
234
117
|
subject: to,
|
|
235
118
|
createdAt: new Date().toISOString(),
|
|
236
119
|
...overrides,
|
|
237
120
|
}, this.getHeaders(from));
|
|
238
|
-
|
|
121
|
+
this.follows[from] ??= {};
|
|
239
122
|
this.follows[from][to] = new RecordRef(res.uri, res.cid);
|
|
240
123
|
return this.follows[from][to];
|
|
241
124
|
}
|
|
@@ -248,13 +131,12 @@ class SeedClient {
|
|
|
248
131
|
delete this.follows[from][to];
|
|
249
132
|
}
|
|
250
133
|
async block(from, to, overrides) {
|
|
251
|
-
var _a;
|
|
252
134
|
const res = await this.agent.app.bsky.graph.block.create({ repo: from }, {
|
|
253
135
|
subject: to,
|
|
254
136
|
createdAt: new Date().toISOString(),
|
|
255
137
|
...overrides,
|
|
256
138
|
}, this.getHeaders(from));
|
|
257
|
-
|
|
139
|
+
this.blocks[from] ??= {};
|
|
258
140
|
this.blocks[from][to] = new RecordRef(res.uri, res.cid);
|
|
259
141
|
return this.blocks[from][to];
|
|
260
142
|
}
|
|
@@ -267,16 +149,14 @@ class SeedClient {
|
|
|
267
149
|
delete this.blocks[from][to];
|
|
268
150
|
}
|
|
269
151
|
async mute(from, to) {
|
|
270
|
-
var _a;
|
|
271
152
|
await this.agent.app.bsky.graph.muteActor({
|
|
272
153
|
actor: to,
|
|
273
154
|
}, { headers: this.getHeaders(from) });
|
|
274
|
-
|
|
155
|
+
this.mutes[from] ??= new Set();
|
|
275
156
|
this.mutes[from].add(to);
|
|
276
157
|
return this.mutes[from][to];
|
|
277
158
|
}
|
|
278
159
|
async post(by, text, facets, images, quote, overrides) {
|
|
279
|
-
var _a;
|
|
280
160
|
const imageEmbed = images && {
|
|
281
161
|
$type: 'app.bsky.embed.images',
|
|
282
162
|
images,
|
|
@@ -300,7 +180,7 @@ class SeedClient {
|
|
|
300
180
|
createdAt: new Date().toISOString(),
|
|
301
181
|
...overrides,
|
|
302
182
|
}, this.getHeaders(by));
|
|
303
|
-
|
|
183
|
+
this.posts[by] ??= [];
|
|
304
184
|
const post = {
|
|
305
185
|
text,
|
|
306
186
|
ref: new RecordRef(res.uri, res.cid),
|
|
@@ -317,7 +197,7 @@ class SeedClient {
|
|
|
317
197
|
}, this.getHeaders(by));
|
|
318
198
|
}
|
|
319
199
|
async uploadFile(by, filePath, encoding) {
|
|
320
|
-
const file = await
|
|
200
|
+
const file = await fs.readFile(filePath);
|
|
321
201
|
const res = await this.agent.com.atproto.repo.uploadBlob(file, {
|
|
322
202
|
headers: this.getHeaders(by),
|
|
323
203
|
encoding,
|
|
@@ -325,18 +205,16 @@ class SeedClient {
|
|
|
325
205
|
return { image: res.data.blob, alt: filePath };
|
|
326
206
|
}
|
|
327
207
|
async like(by, subject, overrides) {
|
|
328
|
-
var _a;
|
|
329
208
|
const res = await this.agent.app.bsky.feed.like.create({ repo: by }, {
|
|
330
209
|
subject: subject.raw,
|
|
331
210
|
createdAt: new Date().toISOString(),
|
|
332
211
|
...overrides,
|
|
333
212
|
}, this.getHeaders(by));
|
|
334
|
-
|
|
335
|
-
this.likes[by][subject.uriStr] = new
|
|
213
|
+
this.likes[by] ??= {};
|
|
214
|
+
this.likes[by][subject.uriStr] = new AtUri(res.uri);
|
|
336
215
|
return this.likes[by][subject.uriStr];
|
|
337
216
|
}
|
|
338
217
|
async reply(by, root, parent, text, facets, images, overrides) {
|
|
339
|
-
var _a;
|
|
340
218
|
const embed = images
|
|
341
219
|
? {
|
|
342
220
|
$type: 'app.bsky.embed.images',
|
|
@@ -354,7 +232,7 @@ class SeedClient {
|
|
|
354
232
|
createdAt: new Date().toISOString(),
|
|
355
233
|
...overrides,
|
|
356
234
|
}, this.getHeaders(by));
|
|
357
|
-
|
|
235
|
+
this.replies[by] ??= [];
|
|
358
236
|
const reply = {
|
|
359
237
|
text,
|
|
360
238
|
ref: new RecordRef(res.uri, res.cid),
|
|
@@ -364,19 +242,17 @@ class SeedClient {
|
|
|
364
242
|
return reply;
|
|
365
243
|
}
|
|
366
244
|
async repost(by, subject, overrides) {
|
|
367
|
-
var _a;
|
|
368
245
|
const res = await this.agent.app.bsky.feed.repost.create({ repo: by }, {
|
|
369
246
|
subject: subject.raw,
|
|
370
247
|
createdAt: new Date().toISOString(),
|
|
371
248
|
...overrides,
|
|
372
249
|
}, this.getHeaders(by));
|
|
373
|
-
|
|
250
|
+
this.reposts[by] ??= [];
|
|
374
251
|
const repost = new RecordRef(res.uri, res.cid);
|
|
375
252
|
this.reposts[by].push(repost);
|
|
376
253
|
return repost;
|
|
377
254
|
}
|
|
378
255
|
async createList(by, name, purpose, overrides) {
|
|
379
|
-
var _a;
|
|
380
256
|
const res = await this.agent.app.bsky.graph.list.create({ repo: by }, {
|
|
381
257
|
name,
|
|
382
258
|
purpose: purpose === 'mod'
|
|
@@ -387,7 +263,7 @@ class SeedClient {
|
|
|
387
263
|
createdAt: new Date().toISOString(),
|
|
388
264
|
...(overrides || {}),
|
|
389
265
|
}, this.getHeaders(by));
|
|
390
|
-
|
|
266
|
+
this.lists[by] ??= {};
|
|
391
267
|
const ref = new RecordRef(res.uri, res.cid);
|
|
392
268
|
this.lists[by][ref.uriStr] = {
|
|
393
269
|
ref: ref,
|
|
@@ -396,13 +272,12 @@ class SeedClient {
|
|
|
396
272
|
return ref;
|
|
397
273
|
}
|
|
398
274
|
async createFeedGen(by, feedDid, name) {
|
|
399
|
-
var _a;
|
|
400
275
|
const res = await this.agent.app.bsky.feed.generator.create({ repo: by }, {
|
|
401
276
|
did: feedDid,
|
|
402
277
|
displayName: name,
|
|
403
278
|
createdAt: new Date().toISOString(),
|
|
404
279
|
}, this.getHeaders(by));
|
|
405
|
-
|
|
280
|
+
this.feedgens[by] ??= {};
|
|
406
281
|
const ref = new RecordRef(res.uri, res.cid);
|
|
407
282
|
this.feedgens[by][ref.uriStr] = {
|
|
408
283
|
ref: ref,
|
|
@@ -411,7 +286,6 @@ class SeedClient {
|
|
|
411
286
|
return ref;
|
|
412
287
|
}
|
|
413
288
|
async createStarterPack(by, name, actors, feeds) {
|
|
414
|
-
var _a;
|
|
415
289
|
const list = await this.createList(by, 'n/a', 'reference');
|
|
416
290
|
for (const did of actors) {
|
|
417
291
|
await this.addToList(by, did, list);
|
|
@@ -422,7 +296,7 @@ class SeedClient {
|
|
|
422
296
|
feeds: feeds?.map((uri) => ({ uri })),
|
|
423
297
|
createdAt: new Date().toISOString(),
|
|
424
298
|
}, this.getHeaders(by));
|
|
425
|
-
|
|
299
|
+
this.starterpacks[by] ??= {};
|
|
426
300
|
const ref = new RecordRef(res.uri, res.cid);
|
|
427
301
|
this.starterpacks[by][ref.uriStr] = {
|
|
428
302
|
ref: ref,
|
|
@@ -460,7 +334,6 @@ class SeedClient {
|
|
|
460
334
|
return result.data;
|
|
461
335
|
}
|
|
462
336
|
async verify(by, subject, handle, displayName, overrides) {
|
|
463
|
-
var _a;
|
|
464
337
|
const res = await this.agent.app.bsky.graph.verification.create({ repo: by }, {
|
|
465
338
|
subject,
|
|
466
339
|
createdAt: new Date().toISOString(),
|
|
@@ -468,8 +341,8 @@ class SeedClient {
|
|
|
468
341
|
displayName,
|
|
469
342
|
...overrides,
|
|
470
343
|
}, this.getHeaders(by));
|
|
471
|
-
|
|
472
|
-
this.verifications[by][subject] = new
|
|
344
|
+
this.verifications[by] ??= {};
|
|
345
|
+
this.verifications[by][subject] = new AtUri(res.uri);
|
|
473
346
|
return this.verifications[by][subject];
|
|
474
347
|
}
|
|
475
348
|
async unverify(by, subject) {
|
|
@@ -487,5 +360,4 @@ class SeedClient {
|
|
|
487
360
|
return { authorization: `Bearer ${jwt}` };
|
|
488
361
|
}
|
|
489
362
|
}
|
|
490
|
-
exports.SeedClient = SeedClient;
|
|
491
363
|
//# sourceMappingURL=client.js.map
|