@atproto/dev-env 0.3.28 → 0.3.30
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +23 -0
- 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/seed/client.ts +53 -2
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,28 @@
|
|
1
1
|
# @atproto/dev-env
|
2
2
|
|
3
|
+
## 0.3.30
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies [[`bc861a2c2`](https://github.com/bluesky-social/atproto/commit/bc861a2c25b4151fb7e070dc20d5e1e07da21863)]:
|
8
|
+
- @atproto/ozone@0.1.28
|
9
|
+
- @atproto/bsky@0.0.66
|
10
|
+
- @atproto/api@0.12.23
|
11
|
+
- @atproto/pds@0.4.39
|
12
|
+
|
13
|
+
## 0.3.29
|
14
|
+
|
15
|
+
### Patch Changes
|
16
|
+
|
17
|
+
- [#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)
|
18
|
+
|
19
|
+
- Updated dependencies [[`af7d3912a`](https://github.com/bluesky-social/atproto/commit/af7d3912a3b304a752ed72947eaa8cf28b35ec02), [`615a96ddc`](https://github.com/bluesky-social/atproto/commit/615a96ddc2965251cfab060dfc43fc1a51ef4bff)]:
|
20
|
+
- @atproto/ozone@0.1.27
|
21
|
+
- @atproto/bsky@0.0.65
|
22
|
+
- @atproto/api@0.12.22
|
23
|
+
- @atproto/pds@0.4.38
|
24
|
+
- @atproto/xrpc-server@0.5.2
|
25
|
+
|
3
26
|
## 0.3.28
|
4
27
|
|
5
28
|
### Patch Changes
|
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,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAA;AAO5D,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,EAAE,OAAO,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,qBAAa,SAAS;IACpB,GAAG,EAAE,KAAK,CAAA;IACV,GAAG,EAAE,GAAG,CAAA;gBAEI,GAAG,EAAE,KAAK,GAAG,MAAM,EAAE,GAAG,EAAE,GAAG,GAAG,MAAM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AAC;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,CAAC,GAAG,GAAG,SAAG,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAA;IACtC,CAAC;IAED,IAAI,GAAG;QACL,OAAO;YACL,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE;YACxB,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE;SACzB,CAAA;IACH,CAAC;IAED,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAA;IAC5B,CAAC;IA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,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.30",
|
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.23",
|
28
|
+
"@atproto/bsky": "^0.0.66",
|
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.28",
|
35
|
+
"@atproto/pds": "^0.4.39",
|
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/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 },
|