@atproto/dev-env 0.3.34-rc.0 → 0.3.34

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,40 +1,14 @@
1
1
  # @atproto/dev-env
2
2
 
3
- ## 0.3.34-rc.0
3
+ ## 0.3.34
4
4
 
5
5
  ### Patch Changes
6
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
7
+ - Updated dependencies [[`77c5306d2`](https://github.com/bluesky-social/atproto/commit/77c5306d2a40d7edd20def73163b8f93f3a30ee7)]:
8
+ - @atproto/ozone@0.1.32
9
+ - @atproto/bsky@0.0.70
10
+ - @atproto/api@0.12.26
11
+ - @atproto/pds@0.4.43
38
12
 
39
13
  ## 0.3.33
40
14
 
@@ -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,IAAI,QAAQ;IAMrB,SAAS,IAAI,MAAM;IAQnB,gBAAgB;;;IAMV,KAAK;CAOZ"}
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
@@ -155,7 +155,7 @@ class TestBsky {
155
155
  }
156
156
  getClient() {
157
157
  const agent = new api_1.AtpAgent({ service: this.url });
158
- agent.configureLabelers([const_1.EXAMPLE_LABELER]);
158
+ agent.configureLabelersHeader([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":[],"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Ae,CAAC,CAAC,CAAA;QAChD,OAAO,KAAK,CAAA;IACd,CAAC;IAED,SAAS;QACP,MAAM,CAAC,QAAQ,CAAC,GAAG,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"}
@@ -1 +1 @@
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"}
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,iBAkfvD"}
@@ -31,57 +31,74 @@ async function generateMockSetup(env) {
31
31
  }
32
32
  throw new Error('Not found');
33
33
  };
34
- const loggedOut = env.pds.getClient();
34
+ const clients = {
35
+ loggedout: env.pds.getClient(),
36
+ alice: env.pds.getClient(),
37
+ bob: env.pds.getClient(),
38
+ carla: env.pds.getClient(),
39
+ };
35
40
  const users = [
36
41
  {
37
42
  email: 'alice@test.com',
43
+ did: '',
38
44
  handle: `alice.test`,
39
45
  password: 'hunter2',
46
+ agent: clients.alice,
40
47
  },
41
48
  {
42
49
  email: 'bob@test.com',
50
+ did: '',
43
51
  handle: `bob.test`,
44
52
  password: 'hunter2',
53
+ agent: clients.bob,
45
54
  },
46
55
  {
47
56
  email: 'carla@test.com',
57
+ did: '',
48
58
  handle: `carla.test`,
49
59
  password: 'hunter2',
60
+ agent: clients.carla,
50
61
  },
51
62
  ];
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 }, {
63
+ const alice = users[0];
64
+ const bob = users[1];
65
+ const carla = users[2];
66
+ let _i = 1;
67
+ for (const user of users) {
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 }, {
57
76
  displayName: ucfirst(user.handle).slice(0, -5),
58
- description: `Test user ${i}`,
77
+ description: `Test user ${_i++}`,
59
78
  });
60
- return client;
61
- }));
62
- const [alice, bob, carla] = userAgents;
79
+ }
63
80
  // Create moderator accounts
64
- const triageRes = await loggedOut.com.atproto.server.createAccount({
81
+ const triageRes = await clients.loggedout.api.com.atproto.server.createAccount({
65
82
  email: 'triage@test.com',
66
83
  handle: 'triage.test',
67
84
  password: 'triage-pass',
68
85
  });
69
86
  await env.ozone.addTriageDid(triageRes.data.did);
70
- const modRes = await loggedOut.com.atproto.server.createAccount({
87
+ const modRes = await clients.loggedout.api.com.atproto.server.createAccount({
71
88
  email: 'mod@test.com',
72
89
  handle: 'mod.test',
73
90
  password: 'mod-pass',
74
91
  });
75
92
  await env.ozone.addModeratorDid(modRes.data.did);
76
- const adminRes = await loggedOut.com.atproto.server.createAccount({
93
+ const adminRes = await clients.loggedout.api.com.atproto.server.createAccount({
77
94
  email: 'admin-mod@test.com',
78
95
  handle: 'admin-mod.test',
79
96
  password: 'admin-mod-pass',
80
97
  });
81
98
  await env.ozone.addAdminDid(adminRes.data.did);
82
99
  // Report one user
83
- const reporter = picka(userAgents);
84
- await reporter.com.atproto.moderation.createReport({
100
+ const reporter = picka(users);
101
+ await reporter.agent.api.com.atproto.moderation.createReport({
85
102
  reasonType: picka([
86
103
  api_1.COM_ATPROTO_MODERATION.DefsReasonSpam,
87
104
  api_1.COM_ATPROTO_MODERATION.DefsReasonOther,
@@ -89,13 +106,13 @@ async function generateMockSetup(env) {
89
106
  reason: picka(["Didn't look right to me", undefined, undefined]),
90
107
  subject: {
91
108
  $type: 'com.atproto.admin.defs#repoRef',
92
- did: picka(userAgents).did,
109
+ did: picka(users).did,
93
110
  },
94
111
  });
95
112
  // everybody follows everybody
96
113
  const follow = async (author, subject) => {
97
- await author.app.bsky.graph.follow.create({ repo: author.accountDid }, {
98
- subject: subject.accountDid,
114
+ await author.agent.api.app.bsky.graph.follow.create({ repo: author.did }, {
115
+ subject: subject.did,
99
116
  createdAt: date.next().value,
100
117
  });
101
118
  };
@@ -108,22 +125,22 @@ async function generateMockSetup(env) {
108
125
  // a set of posts and reposts
109
126
  const posts = [];
110
127
  for (let i = 0; i < data_1.postTexts.length; i++) {
111
- const author = picka(userAgents);
112
- const post = await author.app.bsky.feed.post.create({ repo: author.did }, {
128
+ const author = picka(users);
129
+ const post = await author.agent.api.app.bsky.feed.post.create({ repo: author.did }, {
113
130
  text: data_1.postTexts[i],
114
131
  createdAt: date.next().value,
115
132
  });
116
133
  posts.push(post);
117
134
  if (rand(10) === 0) {
118
- const reposter = picka(userAgents);
119
- await reposter.app.bsky.feed.repost.create({ repo: reposter.did }, {
135
+ const reposter = picka(users);
136
+ await reposter.agent.api.app.bsky.feed.repost.create({ repo: reposter.did }, {
120
137
  subject: picka(posts),
121
138
  createdAt: date.next().value,
122
139
  });
123
140
  }
124
141
  if (rand(6) === 0) {
125
- const reporter = picka(userAgents);
126
- await reporter.com.atproto.moderation.createReport({
142
+ const reporter = picka(users);
143
+ await reporter.agent.api.com.atproto.moderation.createReport({
127
144
  reasonType: picka([
128
145
  api_1.COM_ATPROTO_MODERATION.DefsReasonSpam,
129
146
  api_1.COM_ATPROTO_MODERATION.DefsReasonOther,
@@ -139,10 +156,10 @@ async function generateMockSetup(env) {
139
156
  }
140
157
  // make some naughty posts & label them
141
158
  const file = Buffer.from(labeled_img_b64_1.default, 'base64');
142
- const uploadedImg = await bob.com.atproto.repo.uploadBlob(file, {
159
+ const uploadedImg = await bob.agent.api.com.atproto.repo.uploadBlob(file, {
143
160
  encoding: 'image/png',
144
161
  });
145
- const labeledPost = await bob.app.bsky.feed.post.create({ repo: bob.accountDid }, {
162
+ const labeledPost = await bob.agent.api.app.bsky.feed.post.create({ repo: bob.did }, {
146
163
  text: 'naughty post',
147
164
  embed: {
148
165
  $type: 'app.bsky.embed.images',
@@ -155,7 +172,7 @@ async function generateMockSetup(env) {
155
172
  },
156
173
  createdAt: date.next().value,
157
174
  });
158
- const filteredPost = await bob.app.bsky.feed.post.create({ repo: bob.accountDid }, {
175
+ const filteredPost = await bob.agent.api.app.bsky.feed.post.create({ repo: bob.did }, {
159
176
  text: 'reallly bad post should be deleted',
160
177
  createdAt: date.next().value,
161
178
  });
@@ -173,12 +190,12 @@ async function generateMockSetup(env) {
173
190
  for (let i = 0; i < 100; i++) {
174
191
  const targetUri = picka(posts).uri;
175
192
  const urip = new syntax_1.AtUri(targetUri);
176
- const target = await alice.app.bsky.feed.post.get({
193
+ const target = await alice.agent.api.app.bsky.feed.post.get({
177
194
  repo: urip.host,
178
195
  rkey: urip.rkey,
179
196
  });
180
- const author = picka(userAgents);
181
- posts.push(await author.app.bsky.feed.post.create({ repo: author.did }, {
197
+ const author = picka(users);
198
+ posts.push(await author.agent.api.app.bsky.feed.post.create({ repo: author.did }, {
182
199
  text: picka(data_1.replyTexts),
183
200
  reply: {
184
201
  root: target.value.reply ? target.value.reply.root : target,
@@ -189,9 +206,9 @@ async function generateMockSetup(env) {
189
206
  }
190
207
  // a set of likes
191
208
  for (const post of posts) {
192
- for (const user of userAgents) {
209
+ for (const user of users) {
193
210
  if (rand(3) === 0) {
194
- await user.app.bsky.feed.like.create({ repo: user.did }, {
211
+ await user.agent.api.app.bsky.feed.like.create({ repo: user.did }, {
195
212
  subject: post,
196
213
  createdAt: date.next().value,
197
214
  });
@@ -199,7 +216,7 @@ async function generateMockSetup(env) {
199
216
  }
200
217
  }
201
218
  // a couple feed generators that returns some posts
202
- const fg1Uri = syntax_1.AtUri.make(alice.accountDid, 'app.bsky.feed.generator', 'alice-favs');
219
+ const fg1Uri = syntax_1.AtUri.make(alice.did, 'app.bsky.feed.generator', 'alice-favs');
203
220
  const fg1 = await env.createFeedGen({
204
221
  [fg1Uri.toString()]: async () => {
205
222
  const feed = posts
@@ -214,17 +231,17 @@ async function generateMockSetup(env) {
214
231
  },
215
232
  });
216
233
  const avatarImg = Buffer.from(blur_hash_avatar_b64_1.default, 'base64');
217
- const avatarRes = await alice.com.atproto.repo.uploadBlob(avatarImg, {
234
+ const avatarRes = await alice.agent.api.com.atproto.repo.uploadBlob(avatarImg, {
218
235
  encoding: 'image/png',
219
236
  });
220
- const fgAliceRes = await alice.app.bsky.feed.generator.create({ repo: alice.accountDid, rkey: fg1Uri.rkey }, {
237
+ const fgAliceRes = await alice.agent.api.app.bsky.feed.generator.create({ repo: alice.did, rkey: fg1Uri.rkey }, {
221
238
  did: fg1.did,
222
239
  displayName: 'alices feed',
223
240
  description: 'all my fav stuff',
224
241
  avatar: avatarRes.data.blob,
225
242
  createdAt: date.next().value,
226
243
  });
227
- await alice.app.bsky.feed.post.create({ repo: alice.accountDid }, {
244
+ await alice.agent.api.app.bsky.feed.post.create({ repo: alice.did }, {
228
245
  text: 'check out my algorithm!',
229
246
  embed: {
230
247
  $type: 'app.bsky.embed.record',
@@ -233,12 +250,12 @@ async function generateMockSetup(env) {
233
250
  createdAt: date.next().value,
234
251
  });
235
252
  for (const user of [alice, bob, carla]) {
236
- await user.app.bsky.feed.like.create({ repo: user.did }, {
253
+ await user.agent.api.app.bsky.feed.like.create({ repo: user.did }, {
237
254
  subject: fgAliceRes,
238
255
  createdAt: date.next().value,
239
256
  });
240
257
  }
241
- const fg2Uri = syntax_1.AtUri.make(bob.accountDid, 'app.bsky.feed.generator', 'bob-redux');
258
+ const fg2Uri = syntax_1.AtUri.make(bob.did, 'app.bsky.feed.generator', 'bob-redux');
242
259
  const fg2 = await env.createFeedGen({
243
260
  [fg2Uri.toString()]: async () => {
244
261
  const feed = posts
@@ -252,12 +269,12 @@ async function generateMockSetup(env) {
252
269
  };
253
270
  },
254
271
  });
255
- const fgBobRes = await bob.app.bsky.feed.generator.create({ repo: bob.accountDid, rkey: fg2Uri.rkey }, {
272
+ const fgBobRes = await bob.agent.api.app.bsky.feed.generator.create({ repo: bob.did, rkey: fg2Uri.rkey }, {
256
273
  did: fg2.did,
257
274
  displayName: 'Bobby boy hot new algo',
258
275
  createdAt: date.next().value,
259
276
  });
260
- await alice.app.bsky.feed.post.create({ repo: alice.accountDid }, {
277
+ await alice.agent.api.app.bsky.feed.post.create({ repo: alice.did }, {
261
278
  text: `bobs feed is neat too`,
262
279
  embed: {
263
280
  $type: 'app.bsky.embed.record',
@@ -267,17 +284,18 @@ async function generateMockSetup(env) {
267
284
  });
268
285
  // create a labeler account
269
286
  {
270
- const labeler = env.pds.getClient();
271
- const res = await labeler.createAccount({
287
+ const res = await clients.loggedout.api.com.atproto.server.createAccount({
272
288
  email: 'labeler@test.com',
273
289
  handle: 'labeler.test',
274
290
  password: 'hunter2',
275
291
  });
276
- await labeler.app.bsky.actor.profile.create({ repo: res.data.did }, {
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 }, {
277
295
  displayName: 'Test Labeler',
278
296
  description: `Labeling things across the atmosphere`,
279
297
  });
280
- await labeler.app.bsky.labeler.service.create({ repo: res.data.did, rkey: 'self' }, {
298
+ await agent.api.app.bsky.labeler.service.create({ repo: res.data.did, rkey: 'self' }, {
281
299
  policies: {
282
300
  labelValues: [
283
301
  '!hide',
@@ -361,25 +379,25 @@ async function generateMockSetup(env) {
361
379
  createdAt: date.next().value,
362
380
  });
363
381
  await createLabel(env.bsky.db, {
364
- uri: alice.accountDid,
382
+ uri: alice.did,
365
383
  cid: '',
366
384
  val: 'rude',
367
385
  src: res.data.did,
368
386
  });
369
387
  await createLabel(env.bsky.db, {
370
- uri: `at://${alice.accountDid}/app.bsky.feed.generator/alice-favs`,
388
+ uri: `at://${alice.did}/app.bsky.feed.generator/alice-favs`,
371
389
  cid: '',
372
390
  val: 'cool',
373
391
  src: res.data.did,
374
392
  });
375
393
  await createLabel(env.bsky.db, {
376
- uri: bob.accountDid,
394
+ uri: bob.did,
377
395
  cid: '',
378
396
  val: 'cool',
379
397
  src: res.data.did,
380
398
  });
381
399
  await createLabel(env.bsky.db, {
382
- uri: carla.accountDid,
400
+ uri: carla.did,
383
401
  cid: '',
384
402
  val: 'spam',
385
403
  src: res.data.did,
@@ -387,25 +405,25 @@ async function generateMockSetup(env) {
387
405
  }
388
406
  // Create lists and add people to the lists
389
407
  {
390
- const flowerLovers = await alice.app.bsky.graph.list.create({ repo: alice.accountDid }, {
408
+ const flowerLovers = await alice.agent.api.app.bsky.graph.list.create({ repo: alice.did }, {
391
409
  name: 'Flower Lovers',
392
410
  purpose: 'app.bsky.graph.defs#curatelist',
393
411
  createdAt: new Date().toISOString(),
394
412
  description: 'A list of posts about flowers',
395
413
  });
396
- const labelHaters = await bob.app.bsky.graph.list.create({ repo: bob.accountDid }, {
414
+ const labelHaters = await bob.agent.api.app.bsky.graph.list.create({ repo: bob.did }, {
397
415
  name: 'Label Haters',
398
416
  purpose: 'app.bsky.graph.defs#modlist',
399
417
  createdAt: new Date().toISOString(),
400
418
  description: 'A list of people who hate labels',
401
419
  });
402
- await alice.app.bsky.graph.listitem.create({ repo: alice.accountDid }, {
403
- subject: bob.accountDid,
420
+ await alice.agent.api.app.bsky.graph.listitem.create({ repo: alice.did }, {
421
+ subject: bob.did,
404
422
  createdAt: new Date().toISOString(),
405
423
  list: new index_1.RecordRef(flowerLovers.uri, flowerLovers.cid).uriStr,
406
424
  });
407
- await bob.app.bsky.graph.listitem.create({ repo: bob.accountDid }, {
408
- subject: alice.accountDid,
425
+ await bob.agent.api.app.bsky.graph.listitem.create({ repo: bob.did }, {
426
+ subject: alice.did,
409
427
  createdAt: new Date().toISOString(),
410
428
  list: new index_1.RecordRef(labelHaters.uri, labelHaters.cid).uriStr,
411
429
  });
@@ -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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,EACvB,EAAY,EACZ,IAA6D,EAC7D,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"}
@@ -1,4 +1,4 @@
1
- import { AtpAgent, ToolsOzoneModerationEmitEvent as EmitModerationEvent, ToolsOzoneModerationQueryStatuses as QueryModerationStatuses, ToolsOzoneModerationQueryEvents as QueryModerationEvents } from '@atproto/api';
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,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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C,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"}
@@ -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.tools.ozone.moderation.getEvent({ id }, {
21
+ const result = await this.agent.api.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.tools.ozone.moderation.queryStatuses(input, {
27
+ const result = await this.agent.api.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.tools.ozone.moderation.queryEvents(input, {
33
+ const result = await this.agent.api.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.tools.ozone.moderation.emitEvent({ event, subject, subjectBlobCids, createdBy, reason }, {
40
+ const result = await this.agent.api.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.tools.ozone.moderation.emitEvent({
48
+ const result = await this.agent.api.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":";;;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,EAAU,EAAE,IAAe;QACxC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,CAC7D,EAAE,EAAE,EAAE,EACN;YACE,OAAO,EAAE,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC;SAC3C,CACF,CAAA;QACD,OAAO,MAAM,CAAC,IAAI,CAAA;IACpB,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,KAA0B,EAAE,IAAe;QAC7D,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC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C,UAAU,CAAC,SAAS,CAC9D;YACE,OAAO;YACP,KAAK,EAAE;gBACL,KAAK,EAAE,qDAAqD;gBAC5D,OAAO,EAAE,MAAM;aAChB;YACD,SAAS;SACV,EACD;YACE,QAAQ,EAAE,kBAAkB;YAC5B,OAAO,EAAE,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC;SAC3C,CACF,CAAA;QACD,OAAO,MAAM,CAAC,IAAI,CAAA;IACpB,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,IAKC,EACD,IAAe;QAEf,MAAM,EAAE,eAAe,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAA;QACzC,OAAO,IAAI,CAAC,SAAS,CACnB;YACE,KAAK,EAAE;gBACL,KAAK,EAAE,8CAA8C;gBACrD,eAAe;aAChB;YACD,GAAG,IAAI;SACR,EACD,IAAI,CACL,CAAA;IACH,CAAC;IAED,KAAK,CAAC,sBAAsB,CAC1B,IAIC,EACD,IAAe;QAEf,OAAO,IAAI,CAAC,SAAS,CACnB;YACE,KAAK,EAAE;gBACL,KAAK,EAAE,qDAAqD;aAC7D;YACD,GAAG,IAAI;SACR,EACD,IAAI,CACL,CAAA;IACH,CAAC;CACF;AAhID,0CAgIC"}
1
+ {"version":3,"file":"moderator-client.js","sourceRoot":"","sources":["../src/moderator-client.ts"],"names":[],"mappings":";;;AAYA,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,EAAU,EAAE,IAAe;QACxC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,CACjE,EAAE,EAAE,EAAE,EACN;YACE,OAAO,EAAE,MAAM,IAAI,CAAC,KA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IAED,KAAK,CAAC,aAAa,CACjB,IAKC,EACD,IAAe;QAEf,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,GAAG,EAAE,SAAS,GAAG,mBAAmB,EAAE,GAAG,IAAI,CAAA;QACvE,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,SAAS,CAClE;YACE,OAAO;YACP,KAAK,EAAE;gBACL,KAAK,EAAE,qDAAqD;gBAC5D,OAAO,EAAE,MAAM;aAChB;YACD,SAAS;SACV,EACD;YACE,QAAQ,EAAE,kBAAkB;YAC5B,OAAO,EAAE,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC;SAC3C,CACF,CAAA;QACD,OAAO,MAAM,CAAC,IAAI,CAAA;IACpB,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,IAKC,EACD,IAAe;QAEf,MAAM,EAAE,eAAe,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAA;QACzC,OAAO,IAAI,CAAC,SAAS,CACnB;YACE,KAAK,EAAE;gBACL,KAAK,EAAE,8CAA8C;gBACrD,eAAe;aAChB;YACD,GAAG,IAAI;SACR,EACD,IAAI,CACL,CAAA;IACH,CAAC;IAED,KAAK,CAAC,sBAAsB,CAC1B,IAIC,EACD,IAAe;QAEf,OAAO,IAAI,CAAC,SAAS,CACnB;YACE,KAAK,EAAE;gBACL,KAAK,EAAE,qDAAqD;aAC7D;YACD,GAAG,IAAI;SACR,EACD,IAAI,CACL,CAAA;IACH,CAAC;CACF;AAnID,0CAmIC"}
@@ -1 +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;;;;IAQf,oBAAoB,CACxB,GAAG,EAAE,OAAO,EACZ,QAAQ,EAAE,MAAM,EAChB,WAAW,GAAE;QAAE,UAAU,CAAC,EAAE,MAAM,CAAA;KAAO;CA6X5C"}
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"}
@@ -41,8 +41,12 @@ class OzoneServiceProfile {
41
41
  this.thirdPartyPdsClient = this.thirdPartyPds.getClient();
42
42
  }
43
43
  async createDidAndKey() {
44
- await this.thirdPartyPdsClient.createAccount(this.modUserDetails);
45
- this.did = this.thirdPartyPdsClient.accountDid;
44
+ const modUser = await this.thirdPartyPdsClient.api.com.atproto.server.createAccount(this.modUserDetails);
45
+ await this.thirdPartyPdsClient.login({
46
+ identifier: this.modUserDetails.handle,
47
+ password: this.modUserDetails.password,
48
+ });
49
+ this.did = modUser.data.did;
46
50
  this.key = await crypto_1.Secp256k1Keypair.create({ exportable: true });
47
51
  return { did: this.did, key: this.key };
48
52
  }
@@ -51,13 +55,13 @@ class OzoneServiceProfile {
51
55
  throw new Error('No DID/key found!');
52
56
  }
53
57
  const pdsClient = pds.getClient();
54
- const describeRes = await pdsClient.com.atproto.server.describeServer();
58
+ const describeRes = await pdsClient.api.com.atproto.server.describeServer();
55
59
  const newServerDid = describeRes.data.did;
56
60
  const serviceJwtRes = await this.thirdPartyPdsClient.com.atproto.server.getServiceAuth({
57
61
  aud: newServerDid,
58
62
  });
59
63
  const serviceJwt = serviceJwtRes.data.token;
60
- await pdsClient.createAccount({
64
+ const accountResponse = await pdsClient.api.com.atproto.server.createAccount({
61
65
  ...this.modUserDetails,
62
66
  ...userDetails,
63
67
  did: this.did,
@@ -65,10 +69,7 @@ class OzoneServiceProfile {
65
69
  headers: { authorization: `Bearer ${serviceJwt}` },
66
70
  encoding: 'application/json',
67
71
  });
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;
72
+ pdsClient.api.setHeader('Authorization', `Bearer ${accountResponse.data.accessJwt}`);
72
73
  const getDidCredentials = await pdsClient.com.atproto.identity.getRecommendedDidCredentials();
73
74
  await this.thirdPartyPdsClient.com.atproto.identity.requestPlcOperationSignature();
74
75
  const tokenRes = await this.thirdPartyPds.ctx.accountManager.db.db
@@ -95,12 +96,12 @@ class OzoneServiceProfile {
95
96
  await pdsClient.com.atproto.identity.submitPlcOperation({
96
97
  operation: plcOp.data.operation,
97
98
  });
98
- await pdsClient.com.atproto.server.activateAccount();
99
- await pdsClient.app.bsky.actor.profile.create({ repo: this.did }, {
99
+ await pdsClient.api.com.atproto.server.activateAccount();
100
+ await pdsClient.api.app.bsky.actor.profile.create({ repo: this.did }, {
100
101
  displayName: 'Dev-env Moderation',
101
102
  description: `The pretend version of mod.bsky.app`,
102
103
  });
103
- await pdsClient.app.bsky.labeler.service.create({ repo: this.did, rkey: 'self' }, {
104
+ await pdsClient.api.app.bsky.labeler.service.create({ repo: this.did, rkey: 'self' }, {
104
105
  policies: {
105
106
  labelValues: [
106
107
  '!hide',