@atproto/dev-env 0.3.32 → 0.3.34-rc.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +47 -0
- package/dist/bsky.d.ts.map +1 -1
- package/dist/bsky.js +1 -1
- package/dist/bsky.js.map +1 -1
- package/dist/mock/index.d.ts.map +1 -1
- package/dist/mock/index.js +54 -72
- package/dist/mock/index.js.map +1 -1
- package/dist/moderator-client.d.ts +1 -1
- package/dist/moderator-client.d.ts.map +1 -1
- package/dist/moderator-client.js +5 -5
- package/dist/moderator-client.js.map +1 -1
- package/dist/ozone-service-profile.d.ts.map +1 -1
- package/dist/ozone-service-profile.js +11 -12
- package/dist/ozone-service-profile.js.map +1 -1
- package/dist/ozone.d.ts.map +1 -1
- package/dist/ozone.js +3 -1
- package/dist/ozone.js.map +1 -1
- package/dist/pds.js +1 -1
- package/dist/pds.js.map +1 -1
- package/dist/seed/client.d.ts +2 -2
- package/dist/seed/client.d.ts.map +1 -1
- package/dist/seed/client.js +21 -21
- package/dist/seed/client.js.map +1 -1
- package/package.json +9 -9
- package/src/bsky.ts +2 -2
- package/src/mock/index.ts +95 -114
- package/src/moderator-client.ts +9 -11
- package/src/ozone-service-profile.ts +21 -29
- package/src/ozone.ts +5 -3
- package/src/pds.ts +1 -1
- package/src/seed/client.ts +30 -23
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,52 @@
|
|
1
1
|
# @atproto/dev-env
|
2
2
|
|
3
|
+
## 0.3.34-rc.0
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#2483](https://github.com/bluesky-social/atproto/pull/2483) [`2ded0156b`](https://github.com/bluesky-social/atproto/commit/2ded0156b9adf33b9cce66583a375bff922d383b) Thanks [@matthieusieben](https://github.com/matthieusieben)! - **New Features**:
|
8
|
+
|
9
|
+
1. Improved Separation of Concerns: We've restructured the XRPC HTTP call
|
10
|
+
dispatcher into a distinct class. This means cleaner code organization and
|
11
|
+
better clarity on responsibilities.
|
12
|
+
2. Enhanced Evolutivity: With this refactor, the XRPC client is now more
|
13
|
+
adaptable to various use cases. You can easily extend and customize the
|
14
|
+
dispatcher perform session management, retries, and more.
|
15
|
+
|
16
|
+
**Compatibility**:
|
17
|
+
|
18
|
+
Most of the changes introduced in this version are backward-compatible. However,
|
19
|
+
there are a couple of breaking changes you should be aware of:
|
20
|
+
|
21
|
+
- Customizing `fetchHandler`: The ability to customize the fetchHandler on the
|
22
|
+
XRPC Client and AtpAgent classes has been modified. Please review your code if
|
23
|
+
you rely on custom fetch handlers.
|
24
|
+
- Managing Sessions: Previously, you had the ability to manage sessions directly
|
25
|
+
through AtpAgent instances. Now, session management must be handled through a
|
26
|
+
dedicated `SessionManager` instance. If you were making authenticated
|
27
|
+
requests, you'll need to update your code to use explicit session management.
|
28
|
+
- The `fetch()` method, as well as WhatWG compliant `Request` and `Headers`
|
29
|
+
constructors, must be globally available in your environment.
|
30
|
+
|
31
|
+
- Updated dependencies [[`2ded0156b`](https://github.com/bluesky-social/atproto/commit/2ded0156b9adf33b9cce66583a375bff922d383b), [`2ded0156b`](https://github.com/bluesky-social/atproto/commit/2ded0156b9adf33b9cce66583a375bff922d383b), [`2ded0156b`](https://github.com/bluesky-social/atproto/commit/2ded0156b9adf33b9cce66583a375bff922d383b)]:
|
32
|
+
- @atproto/lexicon@0.4.1-rc.0
|
33
|
+
- @atproto/api@0.13.0-rc.0
|
34
|
+
- @atproto/ozone@0.1.32-rc.0
|
35
|
+
- @atproto/bsky@0.0.70-rc.0
|
36
|
+
- @atproto/pds@0.4.43-rc.0
|
37
|
+
- @atproto/xrpc-server@0.5.4-rc.0
|
38
|
+
|
39
|
+
## 0.3.33
|
40
|
+
|
41
|
+
### Patch Changes
|
42
|
+
|
43
|
+
- Updated dependencies [[`12dcdb668`](https://github.com/bluesky-social/atproto/commit/12dcdb668c8ec0f8a89689c326ab3e9dbc6d2f3c), [`76c91f832`](https://github.com/bluesky-social/atproto/commit/76c91f8325363c95e25349e8e236aa2f70e63d5b)]:
|
44
|
+
- @atproto/api@0.12.25
|
45
|
+
- @atproto/bsync@0.0.5
|
46
|
+
- @atproto/bsky@0.0.69
|
47
|
+
- @atproto/ozone@0.1.31
|
48
|
+
- @atproto/pds@0.4.42
|
49
|
+
|
3
50
|
## 0.3.32
|
4
51
|
|
5
52
|
### Patch Changes
|
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;IAgFvD,IAAI,GAAG,IAAI,IAAI,CAAC,UAAU,CAEzB;IAED,SAAS;
|
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,IAAI,QAAQ;IAMrB,SAAS,IAAI,MAAM;IAQnB,gBAAgB;;;IAMV,KAAK;CAOZ"}
|
package/dist/bsky.js
CHANGED
@@ -155,7 +155,7 @@ class TestBsky {
|
|
155
155
|
}
|
156
156
|
getClient() {
|
157
157
|
const agent = new api_1.AtpAgent({ service: this.url });
|
158
|
-
agent.
|
158
|
+
agent.configureLabelers([const_1.EXAMPLE_LABELER]);
|
159
159
|
return agent;
|
160
160
|
}
|
161
161
|
adminAuth() {
|
package/dist/bsky.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bsky.js","sourceRoot":"","sources":["../src/bsky.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wDAA8B;AAC9B,iDAAkC;AAClC,oDAAqC;AACrC,sCAA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appings":"AAGA,OAAO,EAA8B,WAAW,EAAE,MAAM,UAAU,CAAA;AAkBlE,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,WAAW,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mock/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAA8B,WAAW,EAAE,MAAM,UAAU,CAAA;AAkBlE,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,WAAW,iBA+dvD"}
|
package/dist/mock/index.js
CHANGED
@@ -31,74 +31,57 @@ async function generateMockSetup(env) {
|
|
31
31
|
}
|
32
32
|
throw new Error('Not found');
|
33
33
|
};
|
34
|
-
const
|
35
|
-
loggedout: env.pds.getClient(),
|
36
|
-
alice: env.pds.getClient(),
|
37
|
-
bob: env.pds.getClient(),
|
38
|
-
carla: env.pds.getClient(),
|
39
|
-
};
|
34
|
+
const loggedOut = env.pds.getClient();
|
40
35
|
const users = [
|
41
36
|
{
|
42
37
|
email: 'alice@test.com',
|
43
|
-
did: '',
|
44
38
|
handle: `alice.test`,
|
45
39
|
password: 'hunter2',
|
46
|
-
agent: clients.alice,
|
47
40
|
},
|
48
41
|
{
|
49
42
|
email: 'bob@test.com',
|
50
|
-
did: '',
|
51
43
|
handle: `bob.test`,
|
52
44
|
password: 'hunter2',
|
53
|
-
agent: clients.bob,
|
54
45
|
},
|
55
46
|
{
|
56
47
|
email: 'carla@test.com',
|
57
|
-
did: '',
|
58
48
|
handle: `carla.test`,
|
59
49
|
password: 'hunter2',
|
60
|
-
agent: clients.carla,
|
61
50
|
},
|
62
51
|
];
|
63
|
-
const
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
const res = await clients.loggedout.api.com.atproto.server.createAccount({
|
69
|
-
email: user.email,
|
70
|
-
handle: user.handle,
|
71
|
-
password: user.password,
|
72
|
-
});
|
73
|
-
user.agent.api.setHeader('Authorization', `Bearer ${res.data.accessJwt}`);
|
74
|
-
user.did = res.data.did;
|
75
|
-
await user.agent.api.app.bsky.actor.profile.create({ repo: user.did }, {
|
52
|
+
const userAgents = await Promise.all(users.map(async (user, i) => {
|
53
|
+
const client = env.pds.getClient();
|
54
|
+
await client.createAccount(user);
|
55
|
+
client.assertAuthenticated();
|
56
|
+
await client.app.bsky.actor.profile.create({ repo: client.did }, {
|
76
57
|
displayName: ucfirst(user.handle).slice(0, -5),
|
77
|
-
description: `Test user ${
|
58
|
+
description: `Test user ${i}`,
|
78
59
|
});
|
79
|
-
|
60
|
+
return client;
|
61
|
+
}));
|
62
|
+
const [alice, bob, carla] = userAgents;
|
80
63
|
// Create moderator accounts
|
81
|
-
const triageRes = await
|
64
|
+
const triageRes = await loggedOut.com.atproto.server.createAccount({
|
82
65
|
email: 'triage@test.com',
|
83
66
|
handle: 'triage.test',
|
84
67
|
password: 'triage-pass',
|
85
68
|
});
|
86
69
|
await env.ozone.addTriageDid(triageRes.data.did);
|
87
|
-
const modRes = await
|
70
|
+
const modRes = await loggedOut.com.atproto.server.createAccount({
|
88
71
|
email: 'mod@test.com',
|
89
72
|
handle: 'mod.test',
|
90
73
|
password: 'mod-pass',
|
91
74
|
});
|
92
75
|
await env.ozone.addModeratorDid(modRes.data.did);
|
93
|
-
const adminRes = await
|
76
|
+
const adminRes = await loggedOut.com.atproto.server.createAccount({
|
94
77
|
email: 'admin-mod@test.com',
|
95
78
|
handle: 'admin-mod.test',
|
96
79
|
password: 'admin-mod-pass',
|
97
80
|
});
|
98
81
|
await env.ozone.addAdminDid(adminRes.data.did);
|
99
82
|
// Report one user
|
100
|
-
const reporter = picka(
|
101
|
-
await reporter.
|
83
|
+
const reporter = picka(userAgents);
|
84
|
+
await reporter.com.atproto.moderation.createReport({
|
102
85
|
reasonType: picka([
|
103
86
|
api_1.COM_ATPROTO_MODERATION.DefsReasonSpam,
|
104
87
|
api_1.COM_ATPROTO_MODERATION.DefsReasonOther,
|
@@ -106,13 +89,13 @@ async function generateMockSetup(env) {
|
|
106
89
|
reason: picka(["Didn't look right to me", undefined, undefined]),
|
107
90
|
subject: {
|
108
91
|
$type: 'com.atproto.admin.defs#repoRef',
|
109
|
-
did: picka(
|
92
|
+
did: picka(userAgents).did,
|
110
93
|
},
|
111
94
|
});
|
112
95
|
// everybody follows everybody
|
113
96
|
const follow = async (author, subject) => {
|
114
|
-
await author.
|
115
|
-
subject: subject.
|
97
|
+
await author.app.bsky.graph.follow.create({ repo: author.accountDid }, {
|
98
|
+
subject: subject.accountDid,
|
116
99
|
createdAt: date.next().value,
|
117
100
|
});
|
118
101
|
};
|
@@ -125,22 +108,22 @@ async function generateMockSetup(env) {
|
|
125
108
|
// a set of posts and reposts
|
126
109
|
const posts = [];
|
127
110
|
for (let i = 0; i < data_1.postTexts.length; i++) {
|
128
|
-
const author = picka(
|
129
|
-
const post = await author.
|
111
|
+
const author = picka(userAgents);
|
112
|
+
const post = await author.app.bsky.feed.post.create({ repo: author.did }, {
|
130
113
|
text: data_1.postTexts[i],
|
131
114
|
createdAt: date.next().value,
|
132
115
|
});
|
133
116
|
posts.push(post);
|
134
117
|
if (rand(10) === 0) {
|
135
|
-
const reposter = picka(
|
136
|
-
await reposter.
|
118
|
+
const reposter = picka(userAgents);
|
119
|
+
await reposter.app.bsky.feed.repost.create({ repo: reposter.did }, {
|
137
120
|
subject: picka(posts),
|
138
121
|
createdAt: date.next().value,
|
139
122
|
});
|
140
123
|
}
|
141
124
|
if (rand(6) === 0) {
|
142
|
-
const reporter = picka(
|
143
|
-
await reporter.
|
125
|
+
const reporter = picka(userAgents);
|
126
|
+
await reporter.com.atproto.moderation.createReport({
|
144
127
|
reasonType: picka([
|
145
128
|
api_1.COM_ATPROTO_MODERATION.DefsReasonSpam,
|
146
129
|
api_1.COM_ATPROTO_MODERATION.DefsReasonOther,
|
@@ -156,10 +139,10 @@ async function generateMockSetup(env) {
|
|
156
139
|
}
|
157
140
|
// make some naughty posts & label them
|
158
141
|
const file = Buffer.from(labeled_img_b64_1.default, 'base64');
|
159
|
-
const uploadedImg = await bob.
|
142
|
+
const uploadedImg = await bob.com.atproto.repo.uploadBlob(file, {
|
160
143
|
encoding: 'image/png',
|
161
144
|
});
|
162
|
-
const labeledPost = await bob.
|
145
|
+
const labeledPost = await bob.app.bsky.feed.post.create({ repo: bob.accountDid }, {
|
163
146
|
text: 'naughty post',
|
164
147
|
embed: {
|
165
148
|
$type: 'app.bsky.embed.images',
|
@@ -172,7 +155,7 @@ async function generateMockSetup(env) {
|
|
172
155
|
},
|
173
156
|
createdAt: date.next().value,
|
174
157
|
});
|
175
|
-
const filteredPost = await bob.
|
158
|
+
const filteredPost = await bob.app.bsky.feed.post.create({ repo: bob.accountDid }, {
|
176
159
|
text: 'reallly bad post should be deleted',
|
177
160
|
createdAt: date.next().value,
|
178
161
|
});
|
@@ -190,12 +173,12 @@ async function generateMockSetup(env) {
|
|
190
173
|
for (let i = 0; i < 100; i++) {
|
191
174
|
const targetUri = picka(posts).uri;
|
192
175
|
const urip = new syntax_1.AtUri(targetUri);
|
193
|
-
const target = await alice.
|
176
|
+
const target = await alice.app.bsky.feed.post.get({
|
194
177
|
repo: urip.host,
|
195
178
|
rkey: urip.rkey,
|
196
179
|
});
|
197
|
-
const author = picka(
|
198
|
-
posts.push(await author.
|
180
|
+
const author = picka(userAgents);
|
181
|
+
posts.push(await author.app.bsky.feed.post.create({ repo: author.did }, {
|
199
182
|
text: picka(data_1.replyTexts),
|
200
183
|
reply: {
|
201
184
|
root: target.value.reply ? target.value.reply.root : target,
|
@@ -206,9 +189,9 @@ async function generateMockSetup(env) {
|
|
206
189
|
}
|
207
190
|
// a set of likes
|
208
191
|
for (const post of posts) {
|
209
|
-
for (const user of
|
192
|
+
for (const user of userAgents) {
|
210
193
|
if (rand(3) === 0) {
|
211
|
-
await user.
|
194
|
+
await user.app.bsky.feed.like.create({ repo: user.did }, {
|
212
195
|
subject: post,
|
213
196
|
createdAt: date.next().value,
|
214
197
|
});
|
@@ -216,7 +199,7 @@ async function generateMockSetup(env) {
|
|
216
199
|
}
|
217
200
|
}
|
218
201
|
// a couple feed generators that returns some posts
|
219
|
-
const fg1Uri = syntax_1.AtUri.make(alice.
|
202
|
+
const fg1Uri = syntax_1.AtUri.make(alice.accountDid, 'app.bsky.feed.generator', 'alice-favs');
|
220
203
|
const fg1 = await env.createFeedGen({
|
221
204
|
[fg1Uri.toString()]: async () => {
|
222
205
|
const feed = posts
|
@@ -231,17 +214,17 @@ async function generateMockSetup(env) {
|
|
231
214
|
},
|
232
215
|
});
|
233
216
|
const avatarImg = Buffer.from(blur_hash_avatar_b64_1.default, 'base64');
|
234
|
-
const avatarRes = await alice.
|
217
|
+
const avatarRes = await alice.com.atproto.repo.uploadBlob(avatarImg, {
|
235
218
|
encoding: 'image/png',
|
236
219
|
});
|
237
|
-
const fgAliceRes = await alice.
|
220
|
+
const fgAliceRes = await alice.app.bsky.feed.generator.create({ repo: alice.accountDid, rkey: fg1Uri.rkey }, {
|
238
221
|
did: fg1.did,
|
239
222
|
displayName: 'alices feed',
|
240
223
|
description: 'all my fav stuff',
|
241
224
|
avatar: avatarRes.data.blob,
|
242
225
|
createdAt: date.next().value,
|
243
226
|
});
|
244
|
-
await alice.
|
227
|
+
await alice.app.bsky.feed.post.create({ repo: alice.accountDid }, {
|
245
228
|
text: 'check out my algorithm!',
|
246
229
|
embed: {
|
247
230
|
$type: 'app.bsky.embed.record',
|
@@ -250,12 +233,12 @@ async function generateMockSetup(env) {
|
|
250
233
|
createdAt: date.next().value,
|
251
234
|
});
|
252
235
|
for (const user of [alice, bob, carla]) {
|
253
|
-
await user.
|
236
|
+
await user.app.bsky.feed.like.create({ repo: user.did }, {
|
254
237
|
subject: fgAliceRes,
|
255
238
|
createdAt: date.next().value,
|
256
239
|
});
|
257
240
|
}
|
258
|
-
const fg2Uri = syntax_1.AtUri.make(bob.
|
241
|
+
const fg2Uri = syntax_1.AtUri.make(bob.accountDid, 'app.bsky.feed.generator', 'bob-redux');
|
259
242
|
const fg2 = await env.createFeedGen({
|
260
243
|
[fg2Uri.toString()]: async () => {
|
261
244
|
const feed = posts
|
@@ -269,12 +252,12 @@ async function generateMockSetup(env) {
|
|
269
252
|
};
|
270
253
|
},
|
271
254
|
});
|
272
|
-
const fgBobRes = await bob.
|
255
|
+
const fgBobRes = await bob.app.bsky.feed.generator.create({ repo: bob.accountDid, rkey: fg2Uri.rkey }, {
|
273
256
|
did: fg2.did,
|
274
257
|
displayName: 'Bobby boy hot new algo',
|
275
258
|
createdAt: date.next().value,
|
276
259
|
});
|
277
|
-
await alice.
|
260
|
+
await alice.app.bsky.feed.post.create({ repo: alice.accountDid }, {
|
278
261
|
text: `bobs feed is neat too`,
|
279
262
|
embed: {
|
280
263
|
$type: 'app.bsky.embed.record',
|
@@ -284,18 +267,17 @@ async function generateMockSetup(env) {
|
|
284
267
|
});
|
285
268
|
// create a labeler account
|
286
269
|
{
|
287
|
-
const
|
270
|
+
const labeler = env.pds.getClient();
|
271
|
+
const res = await labeler.createAccount({
|
288
272
|
email: 'labeler@test.com',
|
289
273
|
handle: 'labeler.test',
|
290
274
|
password: 'hunter2',
|
291
275
|
});
|
292
|
-
|
293
|
-
agent.api.setHeader('Authorization', `Bearer ${res.data.accessJwt}`);
|
294
|
-
await agent.api.app.bsky.actor.profile.create({ repo: res.data.did }, {
|
276
|
+
await labeler.app.bsky.actor.profile.create({ repo: res.data.did }, {
|
295
277
|
displayName: 'Test Labeler',
|
296
278
|
description: `Labeling things across the atmosphere`,
|
297
279
|
});
|
298
|
-
await
|
280
|
+
await labeler.app.bsky.labeler.service.create({ repo: res.data.did, rkey: 'self' }, {
|
299
281
|
policies: {
|
300
282
|
labelValues: [
|
301
283
|
'!hide',
|
@@ -379,25 +361,25 @@ async function generateMockSetup(env) {
|
|
379
361
|
createdAt: date.next().value,
|
380
362
|
});
|
381
363
|
await createLabel(env.bsky.db, {
|
382
|
-
uri: alice.
|
364
|
+
uri: alice.accountDid,
|
383
365
|
cid: '',
|
384
366
|
val: 'rude',
|
385
367
|
src: res.data.did,
|
386
368
|
});
|
387
369
|
await createLabel(env.bsky.db, {
|
388
|
-
uri: `at://${alice.
|
370
|
+
uri: `at://${alice.accountDid}/app.bsky.feed.generator/alice-favs`,
|
389
371
|
cid: '',
|
390
372
|
val: 'cool',
|
391
373
|
src: res.data.did,
|
392
374
|
});
|
393
375
|
await createLabel(env.bsky.db, {
|
394
|
-
uri: bob.
|
376
|
+
uri: bob.accountDid,
|
395
377
|
cid: '',
|
396
378
|
val: 'cool',
|
397
379
|
src: res.data.did,
|
398
380
|
});
|
399
381
|
await createLabel(env.bsky.db, {
|
400
|
-
uri: carla.
|
382
|
+
uri: carla.accountDid,
|
401
383
|
cid: '',
|
402
384
|
val: 'spam',
|
403
385
|
src: res.data.did,
|
@@ -405,25 +387,25 @@ async function generateMockSetup(env) {
|
|
405
387
|
}
|
406
388
|
// Create lists and add people to the lists
|
407
389
|
{
|
408
|
-
const flowerLovers = await alice.
|
390
|
+
const flowerLovers = await alice.app.bsky.graph.list.create({ repo: alice.accountDid }, {
|
409
391
|
name: 'Flower Lovers',
|
410
392
|
purpose: 'app.bsky.graph.defs#curatelist',
|
411
393
|
createdAt: new Date().toISOString(),
|
412
394
|
description: 'A list of posts about flowers',
|
413
395
|
});
|
414
|
-
const labelHaters = await bob.
|
396
|
+
const labelHaters = await bob.app.bsky.graph.list.create({ repo: bob.accountDid }, {
|
415
397
|
name: 'Label Haters',
|
416
398
|
purpose: 'app.bsky.graph.defs#modlist',
|
417
399
|
createdAt: new Date().toISOString(),
|
418
400
|
description: 'A list of people who hate labels',
|
419
401
|
});
|
420
|
-
await alice.
|
421
|
-
subject: bob.
|
402
|
+
await alice.app.bsky.graph.listitem.create({ repo: alice.accountDid }, {
|
403
|
+
subject: bob.accountDid,
|
422
404
|
createdAt: new Date().toISOString(),
|
423
405
|
list: new index_1.RecordRef(flowerLovers.uri, flowerLovers.cid).uriStr,
|
424
406
|
});
|
425
|
-
await bob.
|
426
|
-
subject: alice.
|
407
|
+
await bob.app.bsky.graph.listitem.create({ repo: bob.accountDid }, {
|
408
|
+
subject: alice.accountDid,
|
427
409
|
createdAt: new Date().toISOString(),
|
428
410
|
list: new index_1.RecordRef(labelHaters.uri, labelHaters.cid).uriStr,
|
429
411
|
});
|
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,oCAAkE;AAClE,iCAA8C;AAC9C,4EAAiD;AACjD,sFAAoD;AAEpD,OAAO;AACP,+BAA+B;AAC/B,4DAA4D;AAC5D,oCAAoC;AACpC,8DAA8D;AAC9D,QAAQ,CAAC,CAAC,OAAO;IACf,IAAI,KAAK,GAAG,aAAa,CAAA;IACzB,OAAO,IAAI,EAAE,CAAC;QACZ,MAAM,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,CAAA;QACnC,KAAK,IAAI,GAAG,CAAA;IACd,CAAC;AACH,CAAC;AAEM,KAAK,UAAU,iBAAiB,CAAC,GAAgB;IACtD,MAAM,IAAI,GAAG,OAAO,EAAE,CAAA;IAEtB,MAAM,IAAI,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAA;IACzD,MAAM,KAAK,GAAG,CAAI,GAAa,EAAK,EAAE;QACpC,IAAI,GAAG,CAAC,MAAM,EAAE,CAAC;YACf,OAAO,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAA;QACxC,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,WAAW,CAAC,CAAA;IAC9B,CAAC,CAAA;IAED,MAAM,OAAO,GAAG;QACd,SAAS,EAAE,GAAG,CAAC,GAAG,CAAC,SAAS,EAAE;QAC9B,KAAK,EAAE,GAAG,CAAC,GAAG,CAAC,SAAS,E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4 @@
|
|
1
|
-
import AtpAgent,
|
1
|
+
import { AtpAgent, ToolsOzoneModerationEmitEvent as EmitModerationEvent, ToolsOzoneModerationQueryStatuses as QueryModerationStatuses, ToolsOzoneModerationQueryEvents as QueryModerationEvents } from '@atproto/api';
|
2
2
|
import { TestOzone } from './ozone';
|
3
3
|
type TakeActionInput = EmitModerationEvent.InputSchema;
|
4
4
|
type QueryStatusesParams = QueryModerationStatuses.QueryParams;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"moderator-client.d.ts","sourceRoot":"","sources":["../src/moderator-client.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,
|
1
|
+
{"version":3,"file":"moderator-client.d.ts","sourceRoot":"","sources":["../src/moderator-client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,6BAA6B,IAAI,mBAAmB,EACpD,iCAAiC,IAAI,uBAAuB,EAC5D,+BAA+B,IAAI,qBAAqB,EACzD,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEnC,KAAK,eAAe,GAAG,mBAAmB,CAAC,WAAW,CAAA;AACtD,KAAK,mBAAmB,GAAG,uBAAuB,CAAC,WAAW,CAAA;AAC9D,KAAK,iBAAiB,GAAG,qBAAqB,CAAC,WAAW,CAAA;AAC1D,KAAK,QAAQ,GAAG,OAAO,GAAG,WAAW,GAAG,QAAQ,CAAA;AAEhD,qBAAa,eAAe;IAEP,KAAK,EAAE,SAAS;IADnC,KAAK,EAAE,QAAQ,CAAA;gBACI,KAAK,EAAE,SAAS;IAI7B,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,QAAQ;IAUpC,aAAa,CAAC,KAAK,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,QAAQ;IAUzD,WAAW,CAAC,KAAK,EAAE,iBAAiB,EAAE,IAAI,CAAC,EAAE,QAAQ;IAOrD,SAAS,CACb,IAAI,EAAE;QACJ,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,CAAA;QAC/B,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAA;QACnC,eAAe,CAAC,EAAE,eAAe,CAAC,iBAAiB,CAAC,CAAA;QACpD,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAA;KAC/B,EACD,IAAI,CAAC,EAAE,QAAQ;IAmBX,aAAa,CACjB,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAA;QACV,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAA;QACnC,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,SAAS,CAAC,EAAE,MAAM,CAAA;KACnB,EACD,IAAI,CAAC,EAAE,QAAQ;IAoBX,eAAe,CACnB,IAAI,EAAE;QACJ,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAA;QACnC,eAAe,CAAC,EAAE,eAAe,CAAC,iBAAiB,CAAC,CAAA;QACpD,eAAe,CAAC,EAAE,MAAM,CAAA;QACxB,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,EACD,IAAI,CAAC,EAAE,QAAQ;IAeX,sBAAsB,CAC1B,IAAI,EAAE;QACJ,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAA;QACnC,eAAe,CAAC,EAAE,eAAe,CAAC,iBAAiB,CAAC,CAAA;QACpD,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,EACD,IAAI,CAAC,EAAE,QAAQ;CAYlB"}
|
package/dist/moderator-client.js
CHANGED
@@ -18,26 +18,26 @@ class ModeratorClient {
|
|
18
18
|
this.agent = ozone.getClient();
|
19
19
|
}
|
20
20
|
async getEvent(id, role) {
|
21
|
-
const result = await this.agent.
|
21
|
+
const result = await this.agent.tools.ozone.moderation.getEvent({ id }, {
|
22
22
|
headers: await this.ozone.modHeaders(role),
|
23
23
|
});
|
24
24
|
return result.data;
|
25
25
|
}
|
26
26
|
async queryStatuses(input, role) {
|
27
|
-
const result = await this.agent.
|
27
|
+
const result = await this.agent.tools.ozone.moderation.queryStatuses(input, {
|
28
28
|
headers: await this.ozone.modHeaders(role),
|
29
29
|
});
|
30
30
|
return result.data;
|
31
31
|
}
|
32
32
|
async queryEvents(input, role) {
|
33
|
-
const result = await this.agent.
|
33
|
+
const result = await this.agent.tools.ozone.moderation.queryEvents(input, {
|
34
34
|
headers: await this.ozone.modHeaders(role),
|
35
35
|
});
|
36
36
|
return result.data;
|
37
37
|
}
|
38
38
|
async emitEvent(opts, role) {
|
39
39
|
const { event, subject, subjectBlobCids, reason = 'X', createdBy = 'did:example:admin', } = opts;
|
40
|
-
const result = await this.agent.
|
40
|
+
const result = await this.agent.tools.ozone.moderation.emitEvent({ event, subject, subjectBlobCids, createdBy, reason }, {
|
41
41
|
encoding: 'application/json',
|
42
42
|
headers: await this.ozone.modHeaders(role),
|
43
43
|
});
|
@@ -45,7 +45,7 @@ class ModeratorClient {
|
|
45
45
|
}
|
46
46
|
async reverseAction(opts, role) {
|
47
47
|
const { subject, reason = 'X', createdBy = 'did:example:admin' } = opts;
|
48
|
-
const result = await this.agent.
|
48
|
+
const result = await this.agent.tools.ozone.moderation.emitEvent({
|
49
49
|
subject,
|
50
50
|
event: {
|
51
51
|
$type: 'tools.ozone.moderation.defs#modEventReverseTakedown',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"moderator-client.js","sourceRoot":"","sources":["../src/moderator-client.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"moderator-client.js","sourceRoot":"","sources":["../src/moderator-client.ts"],"names":[],"mappings":";;;AAaA,MAAa,eAAe;IAE1B,YAAmB,KAAgB;QAAvB;;;;mBAAO,KAAK;WAAW;QADnC;;;;;WAAe;QAEb,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;IAChC,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,E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ile.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;;;;
|
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;;;;IAQf,oBAAoB,CACxB,GAAG,EAAE,OAAO,EACZ,QAAQ,EAAE,MAAM,EAChB,WAAW,GAAE;QAAE,UAAU,CAAC,EAAE,MAAM,CAAA;KAAO;CA6X5C"}
|
@@ -41,12 +41,8 @@ class OzoneServiceProfile {
|
|
41
41
|
this.thirdPartyPdsClient = this.thirdPartyPds.getClient();
|
42
42
|
}
|
43
43
|
async createDidAndKey() {
|
44
|
-
|
45
|
-
|
46
|
-
identifier: this.modUserDetails.handle,
|
47
|
-
password: this.modUserDetails.password,
|
48
|
-
});
|
49
|
-
this.did = modUser.data.did;
|
44
|
+
await this.thirdPartyPdsClient.createAccount(this.modUserDetails);
|
45
|
+
this.did = this.thirdPartyPdsClient.accountDid;
|
50
46
|
this.key = await crypto_1.Secp256k1Keypair.create({ exportable: true });
|
51
47
|
return { did: this.did, key: this.key };
|
52
48
|
}
|
@@ -55,13 +51,13 @@ class OzoneServiceProfile {
|
|
55
51
|
throw new Error('No DID/key found!');
|
56
52
|
}
|
57
53
|
const pdsClient = pds.getClient();
|
58
|
-
const describeRes = await pdsClient.
|
54
|
+
const describeRes = await pdsClient.com.atproto.server.describeServer();
|
59
55
|
const newServerDid = describeRes.data.did;
|
60
56
|
const serviceJwtRes = await this.thirdPartyPdsClient.com.atproto.server.getServiceAuth({
|
61
57
|
aud: newServerDid,
|
62
58
|
});
|
63
59
|
const serviceJwt = serviceJwtRes.data.token;
|
64
|
-
|
60
|
+
await pdsClient.createAccount({
|
65
61
|
...this.modUserDetails,
|
66
62
|
...userDetails,
|
67
63
|
did: this.did,
|
@@ -69,7 +65,10 @@ class OzoneServiceProfile {
|
|
69
65
|
headers: { authorization: `Bearer ${serviceJwt}` },
|
70
66
|
encoding: 'application/json',
|
71
67
|
});
|
72
|
-
|
68
|
+
// For some reason, the tests fail if the client uses the PDS URL to make
|
69
|
+
// its requests. This is a workaround to make the tests pass by simulating
|
70
|
+
// old behavior (that was not relying on the session management).
|
71
|
+
pdsClient.sessionManager.pdsUrl = undefined;
|
73
72
|
const getDidCredentials = await pdsClient.com.atproto.identity.getRecommendedDidCredentials();
|
74
73
|
await this.thirdPartyPdsClient.com.atproto.identity.requestPlcOperationSignature();
|
75
74
|
const tokenRes = await this.thirdPartyPds.ctx.accountManager.db.db
|
@@ -96,12 +95,12 @@ class OzoneServiceProfile {
|
|
96
95
|
await pdsClient.com.atproto.identity.submitPlcOperation({
|
97
96
|
operation: plcOp.data.operation,
|
98
97
|
});
|
99
|
-
await pdsClient.
|
100
|
-
await pdsClient.
|
98
|
+
await pdsClient.com.atproto.server.activateAccount();
|
99
|
+
await pdsClient.app.bsky.actor.profile.create({ repo: this.did }, {
|
101
100
|
displayName: 'Dev-env Moderation',
|
102
101
|
description: `The pretend version of mod.bsky.app`,
|
103
102
|
});
|
104
|
-
await pdsClient.
|
103
|
+
await pdsClient.app.bsky.labeler.service.create({ repo: this.did, rkey: 'self' }, {
|
105
104
|
policies: {
|
106
105
|
labelValues: [
|
107
106
|
'!hide',
|