@atproto/dev-env 0.3.26 → 0.3.28
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +22 -0
- package/dist/mock/index.js +3 -3
- package/dist/mock/index.js.map +1 -1
- package/dist/network.js +1 -1
- package/dist/network.js.map +1 -1
- package/dist/ozone.d.ts +3 -3
- package/dist/ozone.d.ts.map +1 -1
- package/dist/ozone.js +21 -3
- package/dist/ozone.js.map +1 -1
- package/package.json +5 -5
- package/src/mock/index.ts +3 -3
- package/src/network.ts +1 -1
- package/src/ozone.ts +21 -3
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# @atproto/dev-env
|
2
2
|
|
3
|
+
## 0.3.28
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#2460](https://github.com/bluesky-social/atproto/pull/2460) [`3ad051996`](https://github.com/bluesky-social/atproto/commit/3ad0519961e2437aa4870bf1358e6c275dcdee24) Thanks [@foysalit](https://github.com/foysalit)! - Add DB backed team member management for ozone
|
8
|
+
|
9
|
+
- Updated dependencies [[`3ad051996`](https://github.com/bluesky-social/atproto/commit/3ad0519961e2437aa4870bf1358e6c275dcdee24)]:
|
10
|
+
- @atproto/ozone@0.1.26
|
11
|
+
- @atproto/api@0.12.21
|
12
|
+
- @atproto/pds@0.4.37
|
13
|
+
- @atproto/bsky@0.0.64
|
14
|
+
|
15
|
+
## 0.3.27
|
16
|
+
|
17
|
+
### Patch Changes
|
18
|
+
|
19
|
+
- Updated dependencies [[`ea0f10b5d`](https://github.com/bluesky-social/atproto/commit/ea0f10b5d0d334eb587032c54d5ace9ea811cf26)]:
|
20
|
+
- @atproto/api@0.12.20
|
21
|
+
- @atproto/bsky@0.0.63
|
22
|
+
- @atproto/ozone@0.1.25
|
23
|
+
- @atproto/pds@0.4.36
|
24
|
+
|
3
25
|
## 0.3.26
|
4
26
|
|
5
27
|
### Patch Changes
|
package/dist/mock/index.js
CHANGED
@@ -83,19 +83,19 @@ async function generateMockSetup(env) {
|
|
83
83
|
handle: 'triage.test',
|
84
84
|
password: 'triage-pass',
|
85
85
|
});
|
86
|
-
env.ozone.
|
86
|
+
await env.ozone.addTriageDid(triageRes.data.did);
|
87
87
|
const modRes = await clients.loggedout.api.com.atproto.server.createAccount({
|
88
88
|
email: 'mod@test.com',
|
89
89
|
handle: 'mod.test',
|
90
90
|
password: 'mod-pass',
|
91
91
|
});
|
92
|
-
env.ozone.
|
92
|
+
await env.ozone.addModeratorDid(modRes.data.did);
|
93
93
|
const adminRes = await clients.loggedout.api.com.atproto.server.createAccount({
|
94
94
|
email: 'admin-mod@test.com',
|
95
95
|
handle: 'admin-mod.test',
|
96
96
|
password: 'admin-mod-pass',
|
97
97
|
});
|
98
|
-
env.ozone.addAdminDid(adminRes.data.did);
|
98
|
+
await env.ozone.addAdminDid(adminRes.data.did);
|
99
99
|
// Report one user
|
100
100
|
const reporter = picka(users);
|
101
101
|
await reporter.agent.api.com.atproto.moderation.createReport({
|
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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AM;SAC7D,CACF,CAAA;IACH,CAAC;AACH,CAAC;AAlfD,8CAkfC;AAED,SAAS,OAAO,CAAC,GAAW;IAC1B,OAAO,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;AAChD,CAAC;AAED,MAAM,WAAW,GAAG,KAAK,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"}
|
package/dist/network.js
CHANGED
@@ -146,7 +146,7 @@ class TestNetwork extends network_no_appview_1.TestNetworkNoAppView {
|
|
146
146
|
await ozoneServiceProfile.createServiceDetails(pds, modServiceUrl, {
|
147
147
|
inviteCode,
|
148
148
|
});
|
149
|
-
ozone.addAdminDid(ozoneDid);
|
149
|
+
await ozone.addAdminDid(ozoneDid);
|
150
150
|
(0, util_1.mockNetworkUtilities)(pds, bsky);
|
151
151
|
await pds.processAll();
|
152
152
|
await bsky.sub.background.processAll();
|
package/dist/network.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"network.js","sourceRoot":"","sources":["../src/network.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAA2B;AAC3B,yDAA0C;AAC1C,wDAA8B;AAC9B,oDAA0C;AAC1C,sDAAuD;AAEvD,+BAA+B;AAC/B,+BAA+B;AAC/B,iCAAiC;AACjC,mCA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AAC,UAAU,EAAE,KAAK,EAAE,CAAA;IAChC,CAAC;CACF;AA/KD,kCA+KC"}
|
package/dist/ozone.d.ts
CHANGED
@@ -16,9 +16,9 @@ export declare class TestOzone {
|
|
16
16
|
get ctx(): ozone.AppContext;
|
17
17
|
getClient(): AtpAgent;
|
18
18
|
getModClient(): ModeratorClient;
|
19
|
-
addAdminDid(did: string): void
|
20
|
-
addModeratorDid(did: string): void
|
21
|
-
addTriageDid(did: string): void
|
19
|
+
addAdminDid(did: string): Promise<void>;
|
20
|
+
addModeratorDid(did: string): Promise<void>;
|
21
|
+
addTriageDid(did: string): Promise<void>;
|
22
22
|
modHeaders(role?: 'admin' | 'moderator' | 'triage'): Promise<{
|
23
23
|
authorization: string;
|
24
24
|
}>;
|
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,MAAM,SAAS,CAAA;AAGhD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEpD,qBAAa,SAAS;IAEX,GAAG,EAAE,MAAM;IACX,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,KAAK,CAAC,YAAY;IAC1B,MAAM,EAAE,KAAK,CAAC,WAAW;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,SAA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/D,UAAU;IAKV,KAAK;CAIZ;AAED,eAAO,MAAM,cAAc,WACjB,MAAM,WACL,OAAO,KACf,QAAQ,MAAM,CAuBhB,CAAA"}
|
package/dist/ozone.js
CHANGED
@@ -158,13 +158,31 @@ class TestOzone {
|
|
158
158
|
getModClient() {
|
159
159
|
return new moderator_client_1.ModeratorClient(this);
|
160
160
|
}
|
161
|
-
addAdminDid(did) {
|
161
|
+
async addAdminDid(did) {
|
162
|
+
await this.ctx.teamService(this.ctx.db).create({
|
163
|
+
did,
|
164
|
+
disabled: false,
|
165
|
+
lastUpdatedBy: this.ctx.cfg.service.did,
|
166
|
+
role: 'tools.ozone.team.defs#roleAdmin',
|
167
|
+
});
|
162
168
|
this.ctx.cfg.access.admins.push(did);
|
163
169
|
}
|
164
|
-
addModeratorDid(did) {
|
170
|
+
async addModeratorDid(did) {
|
171
|
+
await this.ctx.teamService(this.ctx.db).create({
|
172
|
+
did,
|
173
|
+
disabled: false,
|
174
|
+
lastUpdatedBy: this.ctx.cfg.service.did,
|
175
|
+
role: 'tools.ozone.team.defs#roleModerator',
|
176
|
+
});
|
165
177
|
this.ctx.cfg.access.moderators.push(did);
|
166
178
|
}
|
167
|
-
addTriageDid(did) {
|
179
|
+
async addTriageDid(did) {
|
180
|
+
await this.ctx.teamService(this.ctx.db).create({
|
181
|
+
did,
|
182
|
+
disabled: false,
|
183
|
+
lastUpdatedBy: this.ctx.cfg.service.did,
|
184
|
+
role: 'tools.ozone.team.defs#roleTriage',
|
185
|
+
});
|
168
186
|
this.ctx.cfg.access.triage.push(did);
|
169
187
|
}
|
170
188
|
async modHeaders(role = 'moderator') {
|
package/dist/ozone.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ozone.js","sourceRoot":"","sources":["../src/ozone.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wDAA8B;AAC9B,iDAAkC;AAClC,kDAAmC;AACnC,sDAAuC;AACvC,sCAAuC;A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4
|
"license": "MIT",
|
5
5
|
"description": "Local development environment helper for atproto development",
|
6
6
|
"keywords": [
|
@@ -24,15 +24,15 @@
|
|
24
24
|
"get-port": "^5.1.1",
|
25
25
|
"multiformats": "^9.9.0",
|
26
26
|
"uint8arrays": "3.0.0",
|
27
|
-
"@atproto/api": "^0.12.
|
28
|
-
"@atproto/bsky": "^0.0.
|
27
|
+
"@atproto/api": "^0.12.21",
|
28
|
+
"@atproto/bsky": "^0.0.64",
|
29
29
|
"@atproto/bsync": "^0.0.3",
|
30
30
|
"@atproto/common-web": "^0.3.0",
|
31
31
|
"@atproto/crypto": "^0.4.0",
|
32
32
|
"@atproto/identity": "^0.4.0",
|
33
33
|
"@atproto/lexicon": "^0.4.0",
|
34
|
-
"@atproto/ozone": "^0.1.
|
35
|
-
"@atproto/pds": "^0.4.
|
34
|
+
"@atproto/ozone": "^0.1.26",
|
35
|
+
"@atproto/pds": "^0.4.37",
|
36
36
|
"@atproto/syntax": "^0.3.0",
|
37
37
|
"@atproto/xrpc-server": "^0.5.1"
|
38
38
|
},
|
package/src/mock/index.ts
CHANGED
@@ -95,13 +95,13 @@ export async function generateMockSetup(env: TestNetwork) {
|
|
95
95
|
handle: 'triage.test',
|
96
96
|
password: 'triage-pass',
|
97
97
|
})
|
98
|
-
env.ozone.
|
98
|
+
await env.ozone.addTriageDid(triageRes.data.did)
|
99
99
|
const modRes = await clients.loggedout.api.com.atproto.server.createAccount({
|
100
100
|
email: 'mod@test.com',
|
101
101
|
handle: 'mod.test',
|
102
102
|
password: 'mod-pass',
|
103
103
|
})
|
104
|
-
env.ozone.
|
104
|
+
await env.ozone.addModeratorDid(modRes.data.did)
|
105
105
|
const adminRes = await clients.loggedout.api.com.atproto.server.createAccount(
|
106
106
|
{
|
107
107
|
email: 'admin-mod@test.com',
|
@@ -109,7 +109,7 @@ export async function generateMockSetup(env: TestNetwork) {
|
|
109
109
|
password: 'admin-mod-pass',
|
110
110
|
},
|
111
111
|
)
|
112
|
-
env.ozone.addAdminDid(adminRes.data.did)
|
112
|
+
await env.ozone.addAdminDid(adminRes.data.did)
|
113
113
|
|
114
114
|
// Report one user
|
115
115
|
const reporter = picka(users)
|
package/src/network.ts
CHANGED
package/src/ozone.ts
CHANGED
@@ -111,15 +111,33 @@ export class TestOzone {
|
|
111
111
|
return new ModeratorClient(this)
|
112
112
|
}
|
113
113
|
|
114
|
-
addAdminDid(did: string) {
|
114
|
+
async addAdminDid(did: string) {
|
115
|
+
await this.ctx.teamService(this.ctx.db).create({
|
116
|
+
did,
|
117
|
+
disabled: false,
|
118
|
+
lastUpdatedBy: this.ctx.cfg.service.did,
|
119
|
+
role: 'tools.ozone.team.defs#roleAdmin',
|
120
|
+
})
|
115
121
|
this.ctx.cfg.access.admins.push(did)
|
116
122
|
}
|
117
123
|
|
118
|
-
addModeratorDid(did: string) {
|
124
|
+
async addModeratorDid(did: string) {
|
125
|
+
await this.ctx.teamService(this.ctx.db).create({
|
126
|
+
did,
|
127
|
+
disabled: false,
|
128
|
+
lastUpdatedBy: this.ctx.cfg.service.did,
|
129
|
+
role: 'tools.ozone.team.defs#roleModerator',
|
130
|
+
})
|
119
131
|
this.ctx.cfg.access.moderators.push(did)
|
120
132
|
}
|
121
133
|
|
122
|
-
addTriageDid(did: string) {
|
134
|
+
async addTriageDid(did: string) {
|
135
|
+
await this.ctx.teamService(this.ctx.db).create({
|
136
|
+
did,
|
137
|
+
disabled: false,
|
138
|
+
lastUpdatedBy: this.ctx.cfg.service.did,
|
139
|
+
role: 'tools.ozone.team.defs#roleTriage',
|
140
|
+
})
|
123
141
|
this.ctx.cfg.access.triage.push(did)
|
124
142
|
}
|
125
143
|
|