@atproto/dev-env 0.3.40 → 0.3.41
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +10 -0
- 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/network.d.ts +1 -1
- package/dist/network.d.ts.map +1 -1
- package/dist/network.js +2 -2
- package/dist/network.js.map +1 -1
- package/dist/ozone.d.ts +1 -1
- package/dist/ozone.d.ts.map +1 -1
- package/dist/ozone.js +2 -2
- package/dist/ozone.js.map +1 -1
- package/package.json +6 -6
- package/src/moderator-client.ts +20 -5
- package/src/network.ts +2 -2
- package/src/ozone.ts +5 -2
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# @atproto/dev-env
|
2
2
|
|
3
|
+
## 0.3.41
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies [[`acbacbbd5`](https://github.com/bluesky-social/atproto/commit/acbacbbd5621473b14ee7a6a3132f675806d23b1), [`acbacbbd5`](https://github.com/bluesky-social/atproto/commit/acbacbbd5621473b14ee7a6a3132f675806d23b1), [`50c0ec176`](https://github.com/bluesky-social/atproto/commit/50c0ec176c223c90e7c86e1e0c059455fecfa9ae), [`50c0ec176`](https://github.com/bluesky-social/atproto/commit/50c0ec176c223c90e7c86e1e0c059455fecfa9ae), [`50c0ec176`](https://github.com/bluesky-social/atproto/commit/50c0ec176c223c90e7c86e1e0c059455fecfa9ae), [`50c0ec176`](https://github.com/bluesky-social/atproto/commit/50c0ec176c223c90e7c86e1e0c059455fecfa9ae)]:
|
8
|
+
- @atproto/xrpc-server@0.6.2
|
9
|
+
- @atproto/pds@0.4.50
|
10
|
+
- @atproto/ozone@0.1.38
|
11
|
+
- @atproto/bsky@0.0.76
|
12
|
+
|
3
13
|
## 0.3.40
|
4
14
|
|
5
15
|
### Patch Changes
|
@@ -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,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;
|
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,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+19,19 @@ class ModeratorClient {
|
|
19
19
|
}
|
20
20
|
async getEvent(id, role) {
|
21
21
|
const result = await this.agent.tools.ozone.moderation.getEvent({ id }, {
|
22
|
-
headers: await this.ozone.modHeaders(role),
|
22
|
+
headers: await this.ozone.modHeaders('tools.ozone.moderation.getEvent', role),
|
23
23
|
});
|
24
24
|
return result.data;
|
25
25
|
}
|
26
26
|
async queryStatuses(input, role) {
|
27
27
|
const result = await this.agent.tools.ozone.moderation.queryStatuses(input, {
|
28
|
-
headers: await this.ozone.modHeaders(role),
|
28
|
+
headers: await this.ozone.modHeaders('tools.ozone.moderation.queryStatuses', role),
|
29
29
|
});
|
30
30
|
return result.data;
|
31
31
|
}
|
32
32
|
async queryEvents(input, role) {
|
33
33
|
const result = await this.agent.tools.ozone.moderation.queryEvents(input, {
|
34
|
-
headers: await this.ozone.modHeaders(role),
|
34
|
+
headers: await this.ozone.modHeaders('tools.ozone.moderation.queryEvents', role),
|
35
35
|
});
|
36
36
|
return result.data;
|
37
37
|
}
|
@@ -39,7 +39,7 @@ class ModeratorClient {
|
|
39
39
|
const { event, subject, subjectBlobCids, reason = 'X', createdBy = 'did:example:admin', } = opts;
|
40
40
|
const result = await this.agent.tools.ozone.moderation.emitEvent({ event, subject, subjectBlobCids, createdBy, reason }, {
|
41
41
|
encoding: 'application/json',
|
42
|
-
headers: await this.ozone.modHeaders(role),
|
42
|
+
headers: await this.ozone.modHeaders('tools.ozone.moderation.emitEvent', role),
|
43
43
|
});
|
44
44
|
return result.data;
|
45
45
|
}
|
@@ -54,7 +54,7 @@ class ModeratorClient {
|
|
54
54
|
createdBy,
|
55
55
|
}, {
|
56
56
|
encoding: 'application/json',
|
57
|
-
headers: await this.ozone.modHeaders(role),
|
57
|
+
headers: await this.ozone.modHeaders('tools.ozone.moderation.emitEvent', role),
|
58
58
|
});
|
59
59
|
return result.data;
|
60
60
|
}
|
@@ -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,
|
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,CAClC,iCAAiC,EACjC,IAAI,CACL;SACF,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,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,aAAa,CAClE,KAAK,EACL;YACE,OAAO,EAAE,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,CAClC,sCAAsC,EACtC,IAAI,CACL;SACF,C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EACD;YACE,QAAQ,EAAE,kBAAkB;YAC5B,OAAO,EAAE,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,CAClC,kCAAkC,EAClC,IAAI,CACL;SACF,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;AA/ID,0CA+IC"}
|
package/dist/network.d.ts
CHANGED
@@ -15,7 +15,7 @@ export declare class TestNetwork extends TestNetworkNoAppView {
|
|
15
15
|
static create(params?: Partial<TestServerParams>): Promise<TestNetwork>;
|
16
16
|
processFullSubscription(timeout?: number): Promise<void>;
|
17
17
|
processAll(timeout?: number): Promise<void>;
|
18
|
-
serviceHeaders(did: string, aud?: string): Promise<{
|
18
|
+
serviceHeaders(did: string, lxm: string, aud?: string): Promise<{
|
19
19
|
authorization: string;
|
20
20
|
}>;
|
21
21
|
adminHeaders({ username, password, }: {
|
package/dist/network.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"network.d.ts","sourceRoot":"","sources":["../src/network.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAC/B,OAAO,EAAE,OAA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IACZ,GAAG,EAAE,OAAO;IACZ,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,SAAS;IAChB,UAAU,CAAC;gBAJX,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,SAAS,EAChB,UAAU,CAAC,8BAAkB;WAKzB,MAAM,CACjB,MAAM,GAAE,OAAO,CAAC,gBAAgB,CAAM,GACrC,OAAO,CAAC,WAAW,CAAC;IAwGjB,uBAAuB,CAAC,OAAO,SAAO;IAgBtC,UAAU,CAAC,OAAO,CAAC,EAAE,MAAM;IAO3B,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM;;;IAWrD,YAAY,CAAC,EACjB,QAAyB,EACzB,QAAyB,GAC1B,EAAE;QACD,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;KAClB;;;IAWK,KAAK;CAQZ"}
|
package/dist/network.js
CHANGED
@@ -179,12 +179,12 @@ class TestNetwork extends network_no_appview_1.TestNetworkNoAppView {
|
|
179
179
|
await this.processFullSubscription(timeout);
|
180
180
|
await this.bsky.sub.background.processAll();
|
181
181
|
}
|
182
|
-
async serviceHeaders(did, aud) {
|
182
|
+
async serviceHeaders(did, lxm, aud) {
|
183
183
|
const keypair = await this.pds.ctx.actorStore.keypair(did);
|
184
184
|
const jwt = await (0, xrpc_server_1.createServiceJwt)({
|
185
185
|
iss: did,
|
186
186
|
aud: aud ?? this.bsky.ctx.cfg.serverDid,
|
187
|
-
lxm
|
187
|
+
lxm,
|
188
188
|
keypair,
|
189
189
|
});
|
190
190
|
return { authorization: `Bearer ${jwt}` };
|
package/dist/network.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"network.js","sourceRoot":"","sources":["../src/network.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA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,CAClB,WAAW,CAAC,UAAU,CAAC,GAAG,QAAQ,IAAI,QAAQ,EAAE,EAAE,MAAM,CAAC,EACzD,WAAW,CACZ;SACJ,CAAA;IACH,CAAC;IAED,KAAK,CAAC,KAAK;QACT,MAAM,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;QACxD,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAA;QACxB,MAAM,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAA;QACvB,MAAM,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAA;QACtB,MAAM,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAA;QACtB,MAAM,IAAI,CAAC,UAAU,EAAE,KAAK,EAAE,CAAA;IAChC,CAAC;CACF;AAhLD,kCAgLC"}
|
package/dist/ozone.d.ts
CHANGED
@@ -19,7 +19,7 @@ export declare class TestOzone {
|
|
19
19
|
addAdminDid(did: string): Promise<void>;
|
20
20
|
addModeratorDid(did: string): Promise<void>;
|
21
21
|
addTriageDid(did: string): Promise<void>;
|
22
|
-
modHeaders(role?: 'admin' | 'moderator' | 'triage'): Promise<{
|
22
|
+
modHeaders(lxm: string, role?: 'admin' | 'moderator' | 'triage'): Promise<{
|
23
23
|
authorization: string;
|
24
24
|
}>;
|
25
25
|
processAll(): Promise<void>;
|
package/dist/ozone.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ozone.d.ts","sourceRoot":"","sources":["../src/ozone.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,gBAAgB,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,OAAO,EAAE,OAAO,EAAoB,MAAM,iBAAiB,CAAA;AAC3D,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE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W;IACzB,UAAU,EAAE,SAAS;IACrB,cAAc,EAAE,SAAS;IACzB,WAAW,EAAE,SAAS;gBANtB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,KAAK,CAAC,YAAY,EAC1B,MAAM,EAAE,KAAK,CAAC,WAAW,EACzB,UAAU,EAAE,SAAS,EACrB,cAAc,EAAE,SAAS,EACzB,WAAW,EAAE,SAAS;WAGlB,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,SAAS,CAAC;IA8E5D,IAAI,GAAG,IAAI,KAAK,CAAC,UAAU,CAE1B;IAED,SAAS,IAAI,QAAQ;IAMrB,YAAY;IAIN,WAAW,CAAC,GAAG,EAAE,MAAM;IAUvB,eAAe,CAAC,GAAG,EAAE,MAAM;IAU3B,YAAY,CAAC,GAAG,EAAE,MAAM;IAUxB,UAAU,CACd,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,OAAO,GAAG,WAAW,GAAG,QAAsB;;;IAiBhD,UAAU;IAKV,KAAK;CAIZ;AAED,eAAO,MAAM,cAAc,WACjB,MAAM,WACL,OAAO,KACf,QAAQ,MAAM,CAuBhB,CAAA"}
|
package/dist/ozone.js
CHANGED
@@ -187,7 +187,7 @@ class TestOzone {
|
|
187
187
|
});
|
188
188
|
this.ctx.cfg.access.triage.push(did);
|
189
189
|
}
|
190
|
-
async modHeaders(role = 'moderator') {
|
190
|
+
async modHeaders(lxm, role = 'moderator') {
|
191
191
|
const account = role === 'admin'
|
192
192
|
? this.adminAccnt
|
193
193
|
: role === 'moderator'
|
@@ -196,7 +196,7 @@ class TestOzone {
|
|
196
196
|
const jwt = await (0, xrpc_server_1.createServiceJwt)({
|
197
197
|
iss: account.did,
|
198
198
|
aud: this.ctx.cfg.service.did,
|
199
|
-
lxm
|
199
|
+
lxm,
|
200
200
|
keypair: account.key,
|
201
201
|
});
|
202
202
|
return { authorization: `Bearer ${jwt}` };
|
package/dist/ozone.js.map
CHANGED
@@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EAAE,IAAI;KACX,EACD,OAAO,CACR,CAAA;IACD,MAAM,GAAG,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC,KAAK,CAAC,CAAA;IAC3C,MAAM,SAAS,CAAC,aAAa,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;IACzC,OAAO,GAAG,CAAA;AACZ,CAAC,CAAA;AA1BY,QAAA,cAAc,kBA0B1B"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atproto/dev-env",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.41",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "Local development environment helper for atproto development",
|
6
6
|
"keywords": [
|
@@ -25,16 +25,16 @@
|
|
25
25
|
"multiformats": "^9.9.0",
|
26
26
|
"uint8arrays": "3.0.0",
|
27
27
|
"@atproto/api": "^0.13.1",
|
28
|
-
"@atproto/bsky": "^0.0.
|
29
|
-
"@atproto/bsync": "^0.0.5",
|
28
|
+
"@atproto/bsky": "^0.0.76",
|
30
29
|
"@atproto/common-web": "^0.3.0",
|
30
|
+
"@atproto/bsync": "^0.0.5",
|
31
31
|
"@atproto/crypto": "^0.4.0",
|
32
32
|
"@atproto/identity": "^0.4.0",
|
33
33
|
"@atproto/lexicon": "^0.4.1",
|
34
|
-
"@atproto/ozone": "^0.1.
|
35
|
-
"@atproto/pds": "^0.4.
|
34
|
+
"@atproto/ozone": "^0.1.38",
|
35
|
+
"@atproto/pds": "^0.4.50",
|
36
36
|
"@atproto/syntax": "^0.3.0",
|
37
|
-
"@atproto/xrpc-server": "^0.6.
|
37
|
+
"@atproto/xrpc-server": "^0.6.2"
|
38
38
|
},
|
39
39
|
"devDependencies": {
|
40
40
|
"@types/express": "^4.17.13"
|
package/src/moderator-client.ts
CHANGED
@@ -21,7 +21,10 @@ export class ModeratorClient {
|
|
21
21
|
const result = await this.agent.tools.ozone.moderation.getEvent(
|
22
22
|
{ id },
|
23
23
|
{
|
24
|
-
headers: await this.ozone.modHeaders(
|
24
|
+
headers: await this.ozone.modHeaders(
|
25
|
+
'tools.ozone.moderation.getEvent',
|
26
|
+
role,
|
27
|
+
),
|
25
28
|
},
|
26
29
|
)
|
27
30
|
return result.data
|
@@ -31,7 +34,10 @@ export class ModeratorClient {
|
|
31
34
|
const result = await this.agent.tools.ozone.moderation.queryStatuses(
|
32
35
|
input,
|
33
36
|
{
|
34
|
-
headers: await this.ozone.modHeaders(
|
37
|
+
headers: await this.ozone.modHeaders(
|
38
|
+
'tools.ozone.moderation.queryStatuses',
|
39
|
+
role,
|
40
|
+
),
|
35
41
|
},
|
36
42
|
)
|
37
43
|
return result.data
|
@@ -39,7 +45,10 @@ export class ModeratorClient {
|
|
39
45
|
|
40
46
|
async queryEvents(input: QueryEventsParams, role?: ModLevel) {
|
41
47
|
const result = await this.agent.tools.ozone.moderation.queryEvents(input, {
|
42
|
-
headers: await this.ozone.modHeaders(
|
48
|
+
headers: await this.ozone.modHeaders(
|
49
|
+
'tools.ozone.moderation.queryEvents',
|
50
|
+
role,
|
51
|
+
),
|
43
52
|
})
|
44
53
|
return result.data
|
45
54
|
}
|
@@ -66,7 +75,10 @@ export class ModeratorClient {
|
|
66
75
|
{ event, subject, subjectBlobCids, createdBy, reason },
|
67
76
|
{
|
68
77
|
encoding: 'application/json',
|
69
|
-
headers: await this.ozone.modHeaders(
|
78
|
+
headers: await this.ozone.modHeaders(
|
79
|
+
'tools.ozone.moderation.emitEvent',
|
80
|
+
role,
|
81
|
+
),
|
70
82
|
},
|
71
83
|
)
|
72
84
|
return result.data
|
@@ -93,7 +105,10 @@ export class ModeratorClient {
|
|
93
105
|
},
|
94
106
|
{
|
95
107
|
encoding: 'application/json',
|
96
|
-
headers: await this.ozone.modHeaders(
|
108
|
+
headers: await this.ozone.modHeaders(
|
109
|
+
'tools.ozone.moderation.emitEvent',
|
110
|
+
role,
|
111
|
+
),
|
97
112
|
},
|
98
113
|
)
|
99
114
|
return result.data
|
package/src/network.ts
CHANGED
@@ -157,12 +157,12 @@ export class TestNetwork extends TestNetworkNoAppView {
|
|
157
157
|
await this.bsky.sub.background.processAll()
|
158
158
|
}
|
159
159
|
|
160
|
-
async serviceHeaders(did: string, aud?: string) {
|
160
|
+
async serviceHeaders(did: string, lxm: string, aud?: string) {
|
161
161
|
const keypair = await this.pds.ctx.actorStore.keypair(did)
|
162
162
|
const jwt = await createServiceJwt({
|
163
163
|
iss: did,
|
164
164
|
aud: aud ?? this.bsky.ctx.cfg.serverDid,
|
165
|
-
lxm
|
165
|
+
lxm,
|
166
166
|
keypair,
|
167
167
|
})
|
168
168
|
return { authorization: `Bearer ${jwt}` }
|
package/src/ozone.ts
CHANGED
@@ -143,7 +143,10 @@ export class TestOzone {
|
|
143
143
|
this.ctx.cfg.access.triage.push(did)
|
144
144
|
}
|
145
145
|
|
146
|
-
async modHeaders(
|
146
|
+
async modHeaders(
|
147
|
+
lxm: string,
|
148
|
+
role: 'admin' | 'moderator' | 'triage' = 'moderator',
|
149
|
+
) {
|
147
150
|
const account =
|
148
151
|
role === 'admin'
|
149
152
|
? this.adminAccnt
|
@@ -153,7 +156,7 @@ export class TestOzone {
|
|
153
156
|
const jwt = await createServiceJwt({
|
154
157
|
iss: account.did,
|
155
158
|
aud: this.ctx.cfg.service.did,
|
156
|
-
lxm
|
159
|
+
lxm,
|
157
160
|
keypair: account.key,
|
158
161
|
})
|
159
162
|
return { authorization: `Bearer ${jwt}` }
|