@atproto/dev-env 0.3.27 → 0.3.29
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +25 -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/dist/seed/client.d.ts +12 -2
- package/dist/seed/client.d.ts.map +1 -1
- package/dist/seed/client.js +36 -2
- package/dist/seed/client.js.map +1 -1
- package/package.json +6 -6
- package/src/mock/index.ts +3 -3
- package/src/network.ts +1 -1
- package/src/ozone.ts +21 -3
- package/src/seed/client.ts +53 -2
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,30 @@
|
|
1
1
|
# @atproto/dev-env
|
2
2
|
|
3
|
+
## 0.3.29
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#2553](https://github.com/bluesky-social/atproto/pull/2553) [`af7d3912a`](https://github.com/bluesky-social/atproto/commit/af7d3912a3b304a752ed72947eaa8cf28b35ec02) Thanks [@devinivy](https://github.com/devinivy)! - Support for starter packs (app.bsky.graph.starterpack)
|
8
|
+
|
9
|
+
- Updated dependencies [[`af7d3912a`](https://github.com/bluesky-social/atproto/commit/af7d3912a3b304a752ed72947eaa8cf28b35ec02), [`615a96ddc`](https://github.com/bluesky-social/atproto/commit/615a96ddc2965251cfab060dfc43fc1a51ef4bff)]:
|
10
|
+
- @atproto/ozone@0.1.27
|
11
|
+
- @atproto/bsky@0.0.65
|
12
|
+
- @atproto/api@0.12.22
|
13
|
+
- @atproto/pds@0.4.38
|
14
|
+
- @atproto/xrpc-server@0.5.2
|
15
|
+
|
16
|
+
## 0.3.28
|
17
|
+
|
18
|
+
### Patch Changes
|
19
|
+
|
20
|
+
- [#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
|
21
|
+
|
22
|
+
- Updated dependencies [[`3ad051996`](https://github.com/bluesky-social/atproto/commit/3ad0519961e2437aa4870bf1358e6c275dcdee24)]:
|
23
|
+
- @atproto/ozone@0.1.26
|
24
|
+
- @atproto/api@0.12.21
|
25
|
+
- @atproto/pds@0.4.37
|
26
|
+
- @atproto/bsky@0.0.64
|
27
|
+
|
3
28
|
## 0.3.27
|
4
29
|
|
5
30
|
### 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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EAAE,YAAY,CAAC,GAAG,CAAC,CAAC,MAAM;SAC/D,CACF,CAAA;QACD,MAAM,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAChD,EAAE,IAAI,EAAE,GAAG,CAAC,GAAG,EAAE,EACjB;YACE,OAAO,EAAE,KAAK,CAAC,GAAG;YAClB,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACnC,IAAI,EAAE,IAAI,iBAAS,CAAC,WAAW,CAAC,GAAG,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC,MAAM;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,mCAAmC;AACnC,mEAA6D;AAC7D,iCAA6C;AAC7C,6DAA2D;AAC3D,mCAAyC;AACzC,6CAA+C;AAE/C,MAAM,cAAc,GAAG,OAAO,CAAA;AAC9B,MAAM,cAAc,GAAG,YAAY,CAAA;AAEnC,MAAa,WAAY,SAAQ,yCAAoB;IACnD,YACS,GAAY,EACZ,GAAY,EACZ,IAAc,EACd,KAAgB,EAChB,UAA6B;QAEpC,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;QANf;;;;mBAAO,GAAG;WAAS;QACnB;;;;mBAAO,GAAG;WAAS;QACnB;;;;mBAAO,IAAI;WAAU;QACrB;;;;mBAAO,KAAK;WAAW;QACvB;;;;mBAAO,UAAU;WAAmB;IAGtC,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,MAAM,CACjB,SAAoC,EAAE;QAEtC,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAA;QACxC,MAAM,aAAa,GAAG,MAAM,CAAC,aAAa,IAAI,OAAO,CAAC,GAAG,CAAC,eAAe,CAAA;QACzE,IAAA,gBAAM,EAAC,aAAa,EAAE,gCAAgC,CAAC,CAAA;QACvD,IAAA,gBAAM,EAAC,SAAS,EAAE,8BAA8B,CAAC,CAAA;QACjD,MAAM,gBAAgB,GACpB,MAAM,CAAC,gBAAgB,IAAI,O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,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;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,M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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;IAIT,YAAY;IAIN,WAAW,CAAC,GAAG,EAAE,MAAM;IAUvB,eAAe,CAAC,GAAG,EAAE,MAAM;IAU3B,YAAY,CAAC,GAAG,EAAE,MAAM;IAUxB,UAAU,CAAC,IAAI,GAAE,OAAO,GAAG,WAAW,GAAG,QAAsB;;;IAe/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;AACvC,sDAAuD;AACvD,4CAA2D;AAE3D,mCAAwC;AACxC,iCAAwC;AACxC,yDAAoD;AAEpD,MAAa,SAAS;IACpB,YACS,GAAW,EACX,IAAY,EACZ,MAA0B,EAC1B,MAAyB,EACzB,UAAqB,EACrB,cAAyB,EACzB,WAAsB;QAN7B;;;;mBAAO,GAAG;WAAQ;QAClB;;;;mBAAO,IAAI;WAAQ;QACnB;;;;mBAAO,MAAM;WAAoB;QACjC;;;;mBAAO,MAAM;WAAmB;QAChC;;;;mBAAO,UAAU;WAAW;QAC5B;;;;mBAAO,cAAc;WAAW;QAChC;;;;mBAAO,WAAW;WAAW;IAC5B,CAAC;IAEJ,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAmB;QACrC,MAAM,cAAc,GAClB,MAAM,CAAC,UAAU,IAAI,CAAC,MAAM,yBAAgB,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;QAC5E,MAAM,aAAa,GAAG,GAAG,CAAC,QAAQ,CAAC,MAAM,cAAc,CAAC,MAAM,EAAE,EAAE,KAAK,CAAC,CAAA;QACxE,IAAI,SAAS,GAAG,MAAM,CAAC,SAAS,CAAA;QAChC,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,SAAS,GAAG,MAAM,IAAA,sBAAc,EAAC,MAAM,C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;aACrC;SACF;QACD,IAAI,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/dist/seed/client.d.ts
CHANGED
@@ -36,6 +36,7 @@ export declare class SeedClient<Network extends TestNetworkNoAppView = TestNetwo
|
|
36
36
|
cid: string;
|
37
37
|
mimeType: string;
|
38
38
|
};
|
39
|
+
joinedViaStarterPack: RecordRef | undefined;
|
39
40
|
ref: RecordRef;
|
40
41
|
}>;
|
41
42
|
follows: Record<string, Record<string, RecordRef>>;
|
@@ -61,6 +62,12 @@ export declare class SeedClient<Network extends TestNetworkNoAppView = TestNetwo
|
|
61
62
|
ref: RecordRef;
|
62
63
|
items: Record<string, RecordRef>;
|
63
64
|
}>>;
|
65
|
+
starterpacks: Record<string, Record<string, {
|
66
|
+
ref: RecordRef;
|
67
|
+
name: string;
|
68
|
+
list: RecordRef;
|
69
|
+
feeds: string[];
|
70
|
+
}>>;
|
64
71
|
dids: Record<string, string>;
|
65
72
|
constructor(network: Network, agent: AtpAgent);
|
66
73
|
createAccount(shortName: string, params: {
|
@@ -77,13 +84,14 @@ export declare class SeedClient<Network extends TestNetworkNoAppView = TestNetwo
|
|
77
84
|
password: string;
|
78
85
|
}>;
|
79
86
|
updateHandle(by: string, handle: string): Promise<void>;
|
80
|
-
createProfile(by: string, displayName: string, description: string, selfLabels?: string[]): Promise<{
|
87
|
+
createProfile(by: string, displayName: string, description: string, selfLabels?: string[], joinedViaStarterPack?: RecordRef): Promise<{
|
81
88
|
displayName: string;
|
82
89
|
description: string;
|
83
90
|
avatar: {
|
84
91
|
cid: string;
|
85
92
|
mimeType: string;
|
86
93
|
};
|
94
|
+
joinedViaStarterPack: RecordRef | undefined;
|
87
95
|
ref: RecordRef;
|
88
96
|
}>;
|
89
97
|
updateProfile(by: string, record: Record<string, unknown>): Promise<{
|
@@ -93,6 +101,7 @@ export declare class SeedClient<Network extends TestNetworkNoAppView = TestNetwo
|
|
93
101
|
cid: string;
|
94
102
|
mimeType: string;
|
95
103
|
};
|
104
|
+
joinedViaStarterPack: RecordRef | undefined;
|
96
105
|
ref: RecordRef;
|
97
106
|
}>;
|
98
107
|
follow(from: string, to: string, overrides?: Partial<AppBskyGraphFollow.Record>): Promise<RecordRef>;
|
@@ -114,8 +123,9 @@ export declare class SeedClient<Network extends TestNetworkNoAppView = TestNetwo
|
|
114
123
|
images: ImageRef[];
|
115
124
|
}>;
|
116
125
|
repost(by: string, subject: RecordRef): Promise<RecordRef>;
|
117
|
-
createList(by: string, name: string, purpose: 'mod' | 'curate', overrides?: Partial<AppBskyGraphList.Record>): Promise<RecordRef>;
|
126
|
+
createList(by: string, name: string, purpose: 'mod' | 'curate' | 'reference', overrides?: Partial<AppBskyGraphList.Record>): Promise<RecordRef>;
|
118
127
|
createFeedGen(by: string, feedDid: string, name: string): Promise<RecordRef>;
|
128
|
+
createStarterPack(by: string, name: string, actors: string[], feeds?: string[]): Promise<RecordRef>;
|
119
129
|
addToList(by: string, subject: string, list: RecordRef): Promise<RecordRef>;
|
120
130
|
rmFromList(by: string, subject: string, list: RecordRef): Promise<void>;
|
121
131
|
createReport(opts: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/seed/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,QAAQ,EAAE,EACf,gCAAgC,EAChC,eAAe,EACf,oBAAoB,EACpB,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,O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IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,oBAAoB,CAAC,IAAI,EAAE,EACpC,MAAM,CAAC,EAAE,QAAQ,EAAE;;;;;IAgCf,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS;IAYrC,UAAU,CACd,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,KAAK,GAAG,QAAQ,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;IAYD,UAAU,CAAC,GAAG,EAAE,MAAM;;;IAItB,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM;;;CAG9B"}
|
package/dist/seed/client.js
CHANGED
@@ -115,6 +115,12 @@ class SeedClient {
|
|
115
115
|
writable: true,
|
116
116
|
value: void 0
|
117
117
|
});
|
118
|
+
Object.defineProperty(this, "starterpacks", {
|
119
|
+
enumerable: true,
|
120
|
+
configurable: true,
|
121
|
+
writable: true,
|
122
|
+
value: void 0
|
123
|
+
});
|
118
124
|
Object.defineProperty(this, "dids", {
|
119
125
|
enumerable: true,
|
120
126
|
configurable: true,
|
@@ -131,6 +137,7 @@ class SeedClient {
|
|
131
137
|
this.reposts = {};
|
132
138
|
this.lists = {};
|
133
139
|
this.feedgens = {};
|
140
|
+
this.starterpacks = {};
|
134
141
|
this.dids = {};
|
135
142
|
}
|
136
143
|
async createAccount(shortName, params) {
|
@@ -146,7 +153,7 @@ class SeedClient {
|
|
146
153
|
async updateHandle(by, handle) {
|
147
154
|
await this.agent.api.com.atproto.identity.updateHandle({ handle }, { encoding: 'application/json', headers: this.getHeaders(by) });
|
148
155
|
}
|
149
|
-
async createProfile(by, displayName, description, selfLabels) {
|
156
|
+
async createProfile(by, displayName, description, selfLabels, joinedViaStarterPack) {
|
150
157
|
AVATAR_IMG ?? (AVATAR_IMG = await promises_1.default.readFile('../dev-env/src/seed/img/key-portrait-small.jpg'));
|
151
158
|
let avatarBlob;
|
152
159
|
{
|
@@ -167,11 +174,14 @@ class SeedClient {
|
|
167
174
|
values: selfLabels.map((val) => ({ val })),
|
168
175
|
}
|
169
176
|
: undefined,
|
177
|
+
joinedViaStarterPack: joinedViaStarterPack?.raw,
|
178
|
+
createdAt: new Date().toISOString(),
|
170
179
|
}, this.getHeaders(by));
|
171
180
|
this.profiles[by] = {
|
172
181
|
displayName,
|
173
182
|
description,
|
174
183
|
avatar: avatarBlob,
|
184
|
+
joinedViaStarterPack,
|
175
185
|
ref: new RecordRef(res.uri, res.cid),
|
176
186
|
};
|
177
187
|
}
|
@@ -330,7 +340,9 @@ class SeedClient {
|
|
330
340
|
name,
|
331
341
|
purpose: purpose === 'mod'
|
332
342
|
? 'app.bsky.graph.defs#modlist'
|
333
|
-
: '
|
343
|
+
: purpose === 'curate'
|
344
|
+
? 'app.bsky.graph.defs#curatelist'
|
345
|
+
: 'app.bsky.graph.defs#referencelist',
|
334
346
|
createdAt: new Date().toISOString(),
|
335
347
|
...(overrides || {}),
|
336
348
|
}, this.getHeaders(by));
|
@@ -357,6 +369,28 @@ class SeedClient {
|
|
357
369
|
};
|
358
370
|
return ref;
|
359
371
|
}
|
372
|
+
async createStarterPack(by, name, actors, feeds) {
|
373
|
+
var _a;
|
374
|
+
const list = await this.createList(by, 'n/a', 'reference');
|
375
|
+
for (const did of actors) {
|
376
|
+
await this.addToList(by, did, list);
|
377
|
+
}
|
378
|
+
const res = await this.agent.api.app.bsky.graph.starterpack.create({ repo: by }, {
|
379
|
+
name,
|
380
|
+
list: list.uriStr,
|
381
|
+
feeds: feeds?.map((uri) => ({ uri })),
|
382
|
+
createdAt: new Date().toISOString(),
|
383
|
+
}, this.getHeaders(by));
|
384
|
+
(_a = this.starterpacks)[by] ?? (_a[by] = {});
|
385
|
+
const ref = new RecordRef(res.uri, res.cid);
|
386
|
+
this.starterpacks[by][ref.uriStr] = {
|
387
|
+
ref: ref,
|
388
|
+
list,
|
389
|
+
feeds: feeds ?? [],
|
390
|
+
name,
|
391
|
+
};
|
392
|
+
return ref;
|
393
|
+
}
|
360
394
|
async addToList(by, subject, list) {
|
361
395
|
const res = await this.agent.api.app.bsky.graph.listitem.create({ repo: by }, { subject, list: list.uriStr, createdAt: new Date().toISOString() }, this.getHeaders(by));
|
362
396
|
const ref = new RecordRef(res.uri, res.cid);
|
package/dist/seed/client.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/seed/client.ts"],"names":[],"mappings":";;;;;;AAAA,2DAA4B;AAC5B,0CAAsC;AAStC,4CAAuC;AAIvC,sDAAsD;AACtD,iEAAiE;AAEjE,IAAI,UAAkC,CAAA;AAOtC,MAAa,SAAS;IAIpB,YAAY,GAAmB,EAAE,GAAiB;QAHlD;;;;;WAAU;QACV;;;;;WAAQ;QAGN,IAAI,CAAC,GAAG,GAAG,IAAI,cAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAA;QACpC,IAAI,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AC,KAAK,CAAC,QAAQ,CAAC,MAAM,CACjD,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,CAAC,GAAG,CAAC,IAAI,EAAE,EACtC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CACpB,CAAA;QACD,OAAO,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;IACjC,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,IAKlB;QACC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,CAAA;QACxD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,CACrE,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,EAC/B;YACE,QAAQ,EAAE,kBAAkB;YAC5B,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;SACrC,CACF,CAAA;QACD,OAAO,MAAM,CAAC,IAAI,CAAA;IACpB,CAAC;IAED,UAAU,CAAC,GAAW;QACpB,OAAO,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,CAAA;IAC5D,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,GAAW;QAC3B,OAAO,EAAE,aAAa,EAAE,UAAU,GAAG,EAAE,EAAE,CAAA;IAC3C,CAAC;CACF;AArfD,gCAqfC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atproto/dev-env",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.29",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "Local development environment helper for atproto development",
|
6
6
|
"keywords": [
|
@@ -24,17 +24,17 @@
|
|
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.22",
|
28
|
+
"@atproto/bsky": "^0.0.65",
|
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.27",
|
35
|
+
"@atproto/pds": "^0.4.38",
|
36
36
|
"@atproto/syntax": "^0.3.0",
|
37
|
-
"@atproto/xrpc-server": "^0.5.
|
37
|
+
"@atproto/xrpc-server": "^0.5.2"
|
38
38
|
},
|
39
39
|
"devDependencies": {
|
40
40
|
"@types/express": "^4.17.13"
|
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
|
|
package/src/seed/client.ts
CHANGED
@@ -67,6 +67,7 @@ export class SeedClient<
|
|
67
67
|
displayName: string
|
68
68
|
description: string
|
69
69
|
avatar: { cid: string; mimeType: string }
|
70
|
+
joinedViaStarterPack: RecordRef | undefined
|
70
71
|
ref: RecordRef
|
71
72
|
}
|
72
73
|
>
|
@@ -90,6 +91,18 @@ export class SeedClient<
|
|
90
91
|
string,
|
91
92
|
Record<string, { ref: RecordRef; items: Record<string, RecordRef> }>
|
92
93
|
>
|
94
|
+
starterpacks: Record<
|
95
|
+
string,
|
96
|
+
Record<
|
97
|
+
string,
|
98
|
+
{
|
99
|
+
ref: RecordRef
|
100
|
+
name: string
|
101
|
+
list: RecordRef
|
102
|
+
feeds: string[]
|
103
|
+
}
|
104
|
+
>
|
105
|
+
>
|
93
106
|
dids: Record<string, string>
|
94
107
|
|
95
108
|
constructor(
|
@@ -106,6 +119,7 @@ export class SeedClient<
|
|
106
119
|
this.reposts = {}
|
107
120
|
this.lists = {}
|
108
121
|
this.feedgens = {}
|
122
|
+
this.starterpacks = {}
|
109
123
|
this.dids = {}
|
110
124
|
}
|
111
125
|
|
@@ -141,6 +155,7 @@ export class SeedClient<
|
|
141
155
|
displayName: string,
|
142
156
|
description: string,
|
143
157
|
selfLabels?: string[],
|
158
|
+
joinedViaStarterPack?: RecordRef,
|
144
159
|
) {
|
145
160
|
AVATAR_IMG ??= await fs.readFile(
|
146
161
|
'../dev-env/src/seed/img/key-portrait-small.jpg',
|
@@ -168,6 +183,8 @@ export class SeedClient<
|
|
168
183
|
values: selfLabels.map((val) => ({ val })),
|
169
184
|
}
|
170
185
|
: undefined,
|
186
|
+
joinedViaStarterPack: joinedViaStarterPack?.raw,
|
187
|
+
createdAt: new Date().toISOString(),
|
171
188
|
},
|
172
189
|
this.getHeaders(by),
|
173
190
|
)
|
@@ -175,6 +192,7 @@ export class SeedClient<
|
|
175
192
|
displayName,
|
176
193
|
description,
|
177
194
|
avatar: avatarBlob,
|
195
|
+
joinedViaStarterPack,
|
178
196
|
ref: new RecordRef(res.uri, res.cid),
|
179
197
|
}
|
180
198
|
}
|
@@ -403,7 +421,7 @@ export class SeedClient<
|
|
403
421
|
async createList(
|
404
422
|
by: string,
|
405
423
|
name: string,
|
406
|
-
purpose: 'mod' | 'curate',
|
424
|
+
purpose: 'mod' | 'curate' | 'reference',
|
407
425
|
overrides?: Partial<AppBskyGraphList.Record>,
|
408
426
|
) {
|
409
427
|
const res = await this.agent.api.app.bsky.graph.list.create(
|
@@ -413,7 +431,9 @@ export class SeedClient<
|
|
413
431
|
purpose:
|
414
432
|
purpose === 'mod'
|
415
433
|
? 'app.bsky.graph.defs#modlist'
|
416
|
-
: '
|
434
|
+
: purpose === 'curate'
|
435
|
+
? 'app.bsky.graph.defs#curatelist'
|
436
|
+
: 'app.bsky.graph.defs#referencelist',
|
417
437
|
createdAt: new Date().toISOString(),
|
418
438
|
...(overrides || {}),
|
419
439
|
},
|
@@ -447,6 +467,37 @@ export class SeedClient<
|
|
447
467
|
return ref
|
448
468
|
}
|
449
469
|
|
470
|
+
async createStarterPack(
|
471
|
+
by: string,
|
472
|
+
name: string,
|
473
|
+
actors: string[],
|
474
|
+
feeds?: string[],
|
475
|
+
) {
|
476
|
+
const list = await this.createList(by, 'n/a', 'reference')
|
477
|
+
for (const did of actors) {
|
478
|
+
await this.addToList(by, did, list)
|
479
|
+
}
|
480
|
+
const res = await this.agent.api.app.bsky.graph.starterpack.create(
|
481
|
+
{ repo: by },
|
482
|
+
{
|
483
|
+
name,
|
484
|
+
list: list.uriStr,
|
485
|
+
feeds: feeds?.map((uri) => ({ uri })),
|
486
|
+
createdAt: new Date().toISOString(),
|
487
|
+
},
|
488
|
+
this.getHeaders(by),
|
489
|
+
)
|
490
|
+
this.starterpacks[by] ??= {}
|
491
|
+
const ref = new RecordRef(res.uri, res.cid)
|
492
|
+
this.starterpacks[by][ref.uriStr] = {
|
493
|
+
ref: ref,
|
494
|
+
list,
|
495
|
+
feeds: feeds ?? [],
|
496
|
+
name,
|
497
|
+
}
|
498
|
+
return ref
|
499
|
+
}
|
500
|
+
|
450
501
|
async addToList(by: string, subject: string, list: RecordRef) {
|
451
502
|
const res = await this.agent.api.app.bsky.graph.listitem.create(
|
452
503
|
{ repo: by },
|