@atproto/pds 0.4.99 → 0.4.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/dist/actor-store/repo/transactor.d.ts +5 -5
- package/dist/actor-store/repo/transactor.d.ts.map +1 -1
- package/dist/actor-store/repo/transactor.js +38 -18
- package/dist/actor-store/repo/transactor.js.map +1 -1
- package/dist/actor-store/repo/util.d.ts +5 -0
- package/dist/actor-store/repo/util.d.ts.map +1 -0
- package/dist/actor-store/repo/util.js +25 -0
- package/dist/actor-store/repo/util.js.map +1 -0
- package/dist/api/com/atproto/repo/applyWrites.js +1 -1
- package/dist/api/com/atproto/repo/applyWrites.js.map +1 -1
- package/dist/api/com/atproto/repo/createRecord.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/createRecord.js +3 -3
- package/dist/api/com/atproto/repo/createRecord.js.map +1 -1
- package/dist/api/com/atproto/repo/deleteRecord.js +1 -1
- package/dist/api/com/atproto/repo/deleteRecord.js.map +1 -1
- package/dist/api/com/atproto/repo/putRecord.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/putRecord.js +1 -1
- package/dist/api/com/atproto/repo/putRecord.js.map +1 -1
- package/dist/api/com/atproto/server/activateAccount.d.ts.map +1 -1
- package/dist/api/com/atproto/server/activateAccount.js +4 -1
- package/dist/api/com/atproto/server/activateAccount.js.map +1 -1
- package/dist/api/com/atproto/server/createAccount.js +1 -1
- package/dist/api/com/atproto/server/createAccount.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/lexicon/lexicons.d.ts +100 -34
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +71 -15
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/getRepoStatus.d.ts +1 -1
- package/dist/lexicon/types/com/atproto/sync/getRepoStatus.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/listRepos.d.ts +1 -1
- package/dist/lexicon/types/com/atproto/sync/listRepos.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/listRepos.js.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/subscribeRepos.d.ts +25 -7
- package/dist/lexicon/types/com/atproto/sync/subscribeRepos.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/subscribeRepos.js +9 -0
- package/dist/lexicon/types/com/atproto/sync/subscribeRepos.js.map +1 -1
- package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts +2 -2
- package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts.map +1 -1
- package/dist/lexicon/types/tools/ozone/moderation/emitEvent.d.ts +1 -1
- package/dist/lexicon/types/tools/ozone/moderation/emitEvent.d.ts.map +1 -1
- package/dist/repo/types.d.ts +12 -1
- package/dist/repo/types.d.ts.map +1 -1
- package/dist/repo/types.js.map +1 -1
- package/dist/scripts/rebuild-repo.d.ts.map +1 -1
- package/dist/scripts/rebuild-repo.js +4 -1
- package/dist/scripts/rebuild-repo.js.map +1 -1
- package/dist/sequencer/events.d.ts +22 -16
- package/dist/sequencer/events.d.ts.map +1 -1
- package/dist/sequencer/events.js +31 -39
- package/dist/sequencer/events.js.map +1 -1
- package/dist/sequencer/sequencer.d.ts +2 -3
- package/dist/sequencer/sequencer.d.ts.map +1 -1
- package/dist/sequencer/sequencer.js +2 -2
- package/dist/sequencer/sequencer.js.map +1 -1
- package/package.json +6 -6
- package/src/actor-store/repo/transactor.ts +47 -21
- package/src/actor-store/repo/util.ts +22 -0
- package/src/api/com/atproto/repo/applyWrites.ts +1 -1
- package/src/api/com/atproto/repo/createRecord.ts +28 -31
- package/src/api/com/atproto/repo/deleteRecord.ts +1 -1
- package/src/api/com/atproto/repo/putRecord.ts +3 -3
- package/src/api/com/atproto/server/activateAccount.ts +4 -1
- package/src/api/com/atproto/server/createAccount.ts +1 -1
- package/src/index.ts +1 -1
- package/src/lexicon/lexicons.ts +80 -16
- package/src/lexicon/types/com/atproto/sync/getRepoStatus.ts +8 -1
- package/src/lexicon/types/com/atproto/sync/listRepos.ts +8 -1
- package/src/lexicon/types/com/atproto/sync/subscribeRepos.ts +41 -6
- package/src/lexicon/types/tools/ozone/moderation/defs.ts +2 -2
- package/src/lexicon/types/tools/ozone/moderation/emitEvent.ts +1 -0
- package/src/repo/types.ts +14 -1
- package/src/scripts/rebuild-repo.ts +4 -1
- package/src/sequencer/events.ts +35 -49
- package/src/sequencer/sequencer.ts +3 -5
- package/tests/crud.test.ts +1 -1
- package/tests/sequencer.test.ts +1 -5
- package/tests/sync/invertible-ops.test.ts +104 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.tests.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# @atproto/pds
|
2
2
|
|
3
|
+
## 0.4.101
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#3449](https://github.com/bluesky-social/atproto/pull/3449) [`7e3678c08`](https://github.com/bluesky-social/atproto/commit/7e3678c089d2faa1a884a52a4fb80b8116c9854f) Thanks [@dholms](https://github.com/dholms)! - Updated subscribeRepo to include prev CIDs for operations and covering proofs for all ops.
|
8
|
+
|
9
|
+
- [#3572](https://github.com/bluesky-social/atproto/pull/3572) [`9b643fbec`](https://github.com/bluesky-social/atproto/commit/9b643fbecac30de5cfdb80d0671bfa55e9f4512a) Thanks [@foysalit](https://github.com/foysalit)! - Make comment property optional on ozone comment event
|
10
|
+
|
11
|
+
- Updated dependencies [[`7e3678c08`](https://github.com/bluesky-social/atproto/commit/7e3678c089d2faa1a884a52a4fb80b8116c9854f), [`9b643fbec`](https://github.com/bluesky-social/atproto/commit/9b643fbecac30de5cfdb80d0671bfa55e9f4512a), [`6e382f67a`](https://github.com/bluesky-social/atproto/commit/6e382f67aa73532efadfea80ff96a27b526cb178)]:
|
12
|
+
- @atproto/repo@0.7.0
|
13
|
+
- @atproto/api@0.14.5
|
14
|
+
- @atproto/aws@0.2.16
|
15
|
+
|
16
|
+
## 0.4.100
|
17
|
+
|
18
|
+
### Patch Changes
|
19
|
+
|
20
|
+
- [#3561](https://github.com/bluesky-social/atproto/pull/3561) [`b9cb049d9`](https://github.com/bluesky-social/atproto/commit/b9cb049d940cc706681142ef498238f74e2f539c) Thanks [@foysalit](https://github.com/foysalit)! - Add Divert event to the list of allowed ozone events
|
21
|
+
|
22
|
+
- Updated dependencies [[`b9cb049d9`](https://github.com/bluesky-social/atproto/commit/b9cb049d940cc706681142ef498238f74e2f539c)]:
|
23
|
+
- @atproto/api@0.14.4
|
24
|
+
|
3
25
|
## 0.4.99
|
4
26
|
|
5
27
|
### Patch Changes
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { CID } from 'multiformats/cid';
|
2
2
|
import * as crypto from '@atproto/crypto';
|
3
|
-
import { BlobStore,
|
3
|
+
import { BlobStore, Repo } from '@atproto/repo';
|
4
4
|
import { AtUri } from '@atproto/syntax';
|
5
5
|
import { BackgroundQueue } from '../../background';
|
6
|
-
import { PreparedCreate, PreparedWrite } from '../../repo/types';
|
6
|
+
import { CommitDataWithOps, PreparedCreate, PreparedWrite } from '../../repo/types';
|
7
7
|
import { BlobTransactor } from '../blob/transactor';
|
8
8
|
import { ActorDb } from '../db';
|
9
9
|
import { RecordTransactor } from '../record/transactor';
|
@@ -21,9 +21,9 @@ export declare class RepoTransactor extends RepoReader {
|
|
21
21
|
storage: SqlRepoTransactor;
|
22
22
|
constructor(db: ActorDb, blobstore: BlobStore, did: string, signingKey: crypto.Keypair, backgroundQueue: BackgroundQueue, now?: string);
|
23
23
|
maybeLoadRepo(): Promise<Repo | null>;
|
24
|
-
createRepo(writes: PreparedCreate[]): Promise<
|
25
|
-
processWrites(writes: PreparedWrite[], swapCommitCid?: CID): Promise<
|
26
|
-
formatCommit(writes: PreparedWrite[], swapCommit?: CID): Promise<
|
24
|
+
createRepo(writes: PreparedCreate[]): Promise<CommitDataWithOps>;
|
25
|
+
processWrites(writes: PreparedWrite[], swapCommitCid?: CID): Promise<CommitDataWithOps>;
|
26
|
+
formatCommit(writes: PreparedWrite[], swapCommit?: CID): Promise<CommitDataWithOps>;
|
27
27
|
indexWrites(writes: PreparedWrite[], rev: string): Promise<void>;
|
28
28
|
getDuplicateRecordCids(cids: CID[], touchedUris: AtUri[]): Promise<CID[]>;
|
29
29
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"transactor.d.ts","sourceRoot":"","sources":["../../../src/actor-store/repo/transactor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAA;AACzC,OAAO,EAAE,SAAS,EAAE,
|
1
|
+
{"version":3,"file":"transactor.d.ts","sourceRoot":"","sources":["../../../src/actor-store/repo/transactor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAA;AACzC,OAAO,EAAE,SAAS,EAAE,IAAI,EAAgC,MAAM,eAAe,CAAA;AAC7E,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAEvC,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAElD,OAAO,EAGL,iBAAiB,EAEjB,cAAc,EACd,aAAa,EACd,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAGzD,qBAAa,cAAe,SAAQ,UAAU;IAMnC,EAAE,EAAE,OAAO;IACX,SAAS,EAAE,SAAS;IACpB,GAAG,EAAE,MAAM;IACX,UAAU,EAAE,MAAM,CAAC,OAAO;IAC1B,eAAe,EAAE,eAAe;IAChC,GAAG,EAAE,MAAM;IAVpB,IAAI,EAAE,cAAc,CAAA;IACpB,MAAM,EAAE,gBAAgB,CAAA;IACxB,OAAO,EAAE,iBAAiB,CAAA;gBAGjB,EAAE,EAAE,OAAO,EACX,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,MAAM,CAAC,OAAO,EAC1B,eAAe,EAAE,eAAe,EAChC,GAAG,GAAE,MAAiC;IAQzC,aAAa,IAAI,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;IASrC,UAAU,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAqBhE,aAAa,CACjB,MAAM,EAAE,aAAa,EAAE,EACvB,aAAa,CAAC,EAAE,GAAG,GAClB,OAAO,CAAC,iBAAiB,CAAC;IAcvB,YAAY,CAChB,MAAM,EAAE,aAAa,EAAE,EACvB,UAAU,CAAC,EAAE,GAAG,GACf,OAAO,CAAC,iBAAiB,CAAC;IAkFvB,WAAW,CAAC,MAAM,EAAE,aAAa,EAAE,EAAE,GAAG,EAAE,MAAM;IAuBhD,sBAAsB,CAC1B,IAAI,EAAE,GAAG,EAAE,EACX,WAAW,EAAE,KAAK,EAAE,GACnB,OAAO,CAAC,GAAG,EAAE,CAAC;CAclB"}
|
@@ -10,6 +10,7 @@ const transactor_1 = require("../blob/transactor");
|
|
10
10
|
const transactor_2 = require("../record/transactor");
|
11
11
|
const reader_1 = require("./reader");
|
12
12
|
const sql_repo_transactor_1 = require("./sql-repo-transactor");
|
13
|
+
const util_1 = require("./util");
|
13
14
|
class RepoTransactor extends reader_1.RepoReader {
|
14
15
|
constructor(db, blobstore, did, signingKey, backgroundQueue, now = new Date().toISOString()) {
|
15
16
|
super(db, blobstore);
|
@@ -81,14 +82,18 @@ class RepoTransactor extends reader_1.RepoReader {
|
|
81
82
|
}
|
82
83
|
async createRepo(writes) {
|
83
84
|
this.db.assertTransaction();
|
84
|
-
const
|
85
|
-
const commit = await repo_1.Repo.formatInitCommit(this.storage, this.did, this.signingKey, writeOps);
|
85
|
+
const commit = await repo_1.Repo.formatInitCommit(this.storage, this.did, this.signingKey, writes.map(repo_2.createWriteToOp));
|
86
86
|
await Promise.all([
|
87
87
|
this.storage.applyCommit(commit, true),
|
88
88
|
this.indexWrites(writes, commit.rev),
|
89
89
|
this.blob.processWriteBlobs(commit.rev, writes),
|
90
90
|
]);
|
91
|
-
return
|
91
|
+
return {
|
92
|
+
...commit,
|
93
|
+
ops: (0, util_1.commitOpsFromCreates)(writes),
|
94
|
+
blobs: (0, util_1.blobCidsFromWrites)(writes),
|
95
|
+
prevData: null,
|
96
|
+
};
|
92
97
|
}
|
93
98
|
async processWrites(writes, swapCommitCid) {
|
94
99
|
this.db.assertTransaction();
|
@@ -117,6 +122,7 @@ class RepoTransactor extends reader_1.RepoReader {
|
|
117
122
|
await this.storage.cacheRev(currRoot.rev);
|
118
123
|
const newRecordCids = [];
|
119
124
|
const delAndUpdateUris = [];
|
125
|
+
const commitOps = [];
|
120
126
|
for (const write of writes) {
|
121
127
|
const { action, uri, swapCid } = write;
|
122
128
|
if (action !== repo_1.WriteOpAction.Delete) {
|
@@ -125,25 +131,34 @@ class RepoTransactor extends reader_1.RepoReader {
|
|
125
131
|
if (action !== repo_1.WriteOpAction.Create) {
|
126
132
|
delAndUpdateUris.push(uri);
|
127
133
|
}
|
128
|
-
if (swapCid === undefined) {
|
129
|
-
continue;
|
130
|
-
}
|
131
134
|
const record = await this.record.getRecord(uri, null, true);
|
132
|
-
const currRecord = record
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
135
|
+
const currRecord = record ? cid_1.CID.parse(record.cid) : null;
|
136
|
+
const op = {
|
137
|
+
action,
|
138
|
+
path: (0, repo_1.formatDataKey)(uri.collection, uri.rkey),
|
139
|
+
cid: write.action === repo_1.WriteOpAction.Delete ? null : write.cid,
|
140
|
+
};
|
141
|
+
if (currRecord) {
|
142
|
+
op.prev = currRecord;
|
138
143
|
}
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
+
commitOps.push(op);
|
145
|
+
if (swapCid !== undefined) {
|
146
|
+
if (action === repo_1.WriteOpAction.Create && swapCid !== null) {
|
147
|
+
throw new types_1.BadRecordSwapError(currRecord); // There should be no current record for a create
|
148
|
+
}
|
149
|
+
if (action === repo_1.WriteOpAction.Update && swapCid === null) {
|
150
|
+
throw new types_1.BadRecordSwapError(currRecord); // There should be a current record for an update
|
151
|
+
}
|
152
|
+
if (action === repo_1.WriteOpAction.Delete && swapCid === null) {
|
153
|
+
throw new types_1.BadRecordSwapError(currRecord); // There should be a current record for a delete
|
154
|
+
}
|
155
|
+
if ((currRecord || swapCid) && !currRecord?.equals(swapCid)) {
|
156
|
+
throw new types_1.BadRecordSwapError(currRecord);
|
157
|
+
}
|
144
158
|
}
|
145
159
|
}
|
146
160
|
const repo = await repo_1.Repo.load(this.storage, currRoot.cid);
|
161
|
+
const prevData = repo.commit.data;
|
147
162
|
const writeOps = writes.map(repo_2.writeToOp);
|
148
163
|
const commit = await repo.formatCommit(writeOps, this.signingKey);
|
149
164
|
// find blocks that would be deleted but are referenced by another record
|
@@ -158,7 +173,12 @@ class RepoTransactor extends reader_1.RepoReader {
|
|
158
173
|
const missingBlocks = await this.storage.getBlocks(newRecordBlocks.missing);
|
159
174
|
commit.relevantBlocks.addMap(missingBlocks.blocks);
|
160
175
|
}
|
161
|
-
return
|
176
|
+
return {
|
177
|
+
...commit,
|
178
|
+
ops: commitOps,
|
179
|
+
blobs: (0, util_1.blobCidsFromWrites)(writes),
|
180
|
+
prevData,
|
181
|
+
};
|
162
182
|
}
|
163
183
|
async indexWrites(writes, rev) {
|
164
184
|
this.db.assertTransaction();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"transactor.js","sourceRoot":"","sources":["../../../src/actor-store/repo/transactor.ts"],"names":[],"mappings":";;;AAAA,0CAAsC;AAEtC,
|
1
|
+
{"version":3,"file":"transactor.js","sourceRoot":"","sources":["../../../src/actor-store/repo/transactor.ts"],"names":[],"mappings":";;;AAAA,0CAAsC;AAEtC,wCAA6E;AAE7E,sDAA0D;AAE1D,qCAAuD;AACvD,4CAOyB;AACzB,mDAAmD;AAEnD,qDAAuD;AACvD,qCAAqC;AACrC,+DAAyD;AACzD,iCAAiE;AAEjE,MAAa,cAAe,SAAQ,mBAAU;IAK5C,YACS,EAAW,EACX,SAAoB,EACpB,GAAW,EACX,UAA0B,EAC1B,eAAgC,EAChC,MAAc,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QAE7C,KAAK,CAAC,EAAE,EAAE,SAAS,CAAC,CAAA;QAPpB;;;;mBAAO,EAAE;WAAS;QAClB;;;;mBAAO,SAAS;WAAW;QAC3B;;;;mBAAO,GAAG;WAAQ;QAClB;;;;mBAAO,UAAU;WAAgB;QACjC;;;;mBAAO,eAAe;WAAiB;QACvC;;;;mBAAO,GAAG;WAAmC;QAV/C;;;;;WAAoB;QACpB;;;;;WAAwB;QACxB;;;;;WAA0B;QAWxB,IAAI,CAAC,IAAI,GAAG,IAAI,2BAAc,CAAC,EAAE,EAAE,SAAS,EAAE,eAAe,CAAC,CAAA;QAC9D,IAAI,CAAC,MAAM,GAAG,IAAI,6BAAgB,CAAC,EAAE,EAAE,SAAS,CAAC,CAAA;QACjD,IAAI,CAAC,OAAO,GAAG,IAAI,uCAAiB,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC,CAAA;IACpD,CAAC;IAED,KAAK,CAAC,aAAa;QACjB,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,EAAE,CAAC,EAAE;aACzB,UAAU,CAAC,WAAW,CAAC;aACvB,MAAM,CAAC,KAAK,CAAC;aACb,KAAK,CAAC,CAAC,CAAC;aACR,gBAAgB,EAAE,CAAA;QACrB,O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CAAC,KAAK,CAAC;aACb,OAAO,EAAE,CAAA;QACZ,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,SAAG,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAA;IAC7C,CAAC;CACF;AA/LD,wCA+LC"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { CidSet } from '@atproto/repo';
|
2
|
+
import { CommitOp, PreparedCreate, PreparedWrite } from '../../repo';
|
3
|
+
export declare const blobCidsFromWrites: (writes: PreparedWrite[]) => CidSet;
|
4
|
+
export declare const commitOpsFromCreates: (writes: PreparedCreate[]) => CommitOp[];
|
5
|
+
//# sourceMappingURL=util.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/actor-store/repo/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAiB,MAAM,eAAe,CAAA;AACrD,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAEpE,eAAO,MAAM,kBAAkB,WAAY,aAAa,EAAE,KAAG,MAU5D,CAAA;AAED,eAAO,MAAM,oBAAoB,WAAY,cAAc,EAAE,KAAG,QAAQ,EAMvE,CAAA"}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.commitOpsFromCreates = exports.blobCidsFromWrites = void 0;
|
4
|
+
const repo_1 = require("@atproto/repo");
|
5
|
+
const blobCidsFromWrites = (writes) => {
|
6
|
+
const blobCids = new repo_1.CidSet();
|
7
|
+
for (const w of writes) {
|
8
|
+
if (w.action === 'create' || w.action === 'update') {
|
9
|
+
for (const blob of w.blobs) {
|
10
|
+
blobCids.add(blob.cid);
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
return blobCids;
|
15
|
+
};
|
16
|
+
exports.blobCidsFromWrites = blobCidsFromWrites;
|
17
|
+
const commitOpsFromCreates = (writes) => {
|
18
|
+
return writes.map((w) => ({
|
19
|
+
action: 'create',
|
20
|
+
path: (0, repo_1.formatDataKey)(w.uri.collection, w.uri.rkey),
|
21
|
+
cid: w.cid,
|
22
|
+
}));
|
23
|
+
};
|
24
|
+
exports.commitOpsFromCreates = commitOpsFromCreates;
|
25
|
+
//# sourceMappingURL=util.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/actor-store/repo/util.ts"],"names":[],"mappings":";;;AAAA,wCAAqD;AAG9C,MAAM,kBAAkB,GAAG,CAAC,MAAuB,EAAU,EAAE;IACpE,MAAM,QAAQ,GAAG,IAAI,aAAM,EAAE,CAAA;IAC7B,KAAK,MAAM,CAAC,IAAI,MAAM,EAAE,CAAC;QACvB,IAAI,CAAC,CAAC,MAAM,KAAK,QAAQ,IAAI,CAAC,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;YACnD,KAAK,MAAM,IAAI,IAAI,CAAC,CAAC,KAAK,EAAE,CAAC;gBAC3B,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;YACxB,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,QAAQ,CAAA;AACjB,CAAC,CAAA;AAVY,QAAA,kBAAkB,sBAU9B;AAEM,MAAM,oBAAoB,GAAG,CAAC,MAAwB,EAAc,EAAE;IAC3E,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACxB,MAAM,EAAE,QAAiB;QACzB,IAAI,EAAE,IAAA,oBAAa,EAAC,CAAC,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;QACjD,GAAG,EAAE,CAAC,CAAC,GAAG;KACX,CAAC,CAAC,CAAA;AACL,CAAC,CAAA;AANY,QAAA,oBAAoB,wBAMhC"}
|
@@ -112,7 +112,7 @@ function default_1(server, ctx) {
|
|
112
112
|
}
|
113
113
|
}
|
114
114
|
});
|
115
|
-
await ctx.sequencer.sequenceCommit(did, commit
|
115
|
+
await ctx.sequencer.sequenceCommit(did, commit);
|
116
116
|
await ctx.accountManager.updateRepoRoot(did, commit.cid, commit.rev);
|
117
117
|
return {
|
118
118
|
encoding: 'application/json',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"applyWrites.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/repo/applyWrites.ts"],"names":[],"mappings":";;AAqCA,4BA8GC;AAnJD,0CAAsC;AACtC,wCAA6C;AAC7C,sDAA6E;AAG7E,wFAQ+D;AAC/D,2CAOyB;AAEzB,MAAM,eAAe,GAAG,CAAC,EAAE,KAAK,EAA2B,EAAE,EAAE;IAC7D,IAAI,MAAM,GAAG,CAAC,CAAA;IACd,KAAK,MAAM,EAAE,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QACnC,IAAI,IAAA,sBAAQ,EAAC,EAAE,CAAC,EAAE,CAAC;YACjB,MAAM,IAAI,CAAC,CAAA;QACb,CAAC;aAAM,IAAI,IAAA,sBAAQ,EAAC,EAAE,CAAC,EAAE,CAAC;YACxB,MAAM,IAAI,CAAC,CAAA;QACb,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,CAAC,CAAA;QACb,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAA;AACf,CAAC,CAAA;AAED,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC;QAClC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,cAAc,CAAC;YACpC,aAAa,EAAE,IAAI;YACnB,gBAAgB,EAAE,IAAI;SACvB,CAAC;QACF,SAAS,EAAE;YACT;gBACE,IAAI,EAAE,iBAAiB;gBACvB,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,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AK,CAAC,MAAM,EAAE,CAAC;QACrB,KAAK,oBAAa,CAAC,MAAM;YACvB,OAAO;gBACL,KAAK,EAAE,2CAA2C;gBAClD,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE;gBACzB,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE;gBACzB,gBAAgB,EAAE,KAAK,CAAC,gBAAgB;aAClB,CAAA;QAC1B,KAAK,oBAAa,CAAC,MAAM;YACvB,OAAO;gBACL,KAAK,EAAE,2CAA2C;gBAClD,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE;gBACzB,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE;gBACzB,gBAAgB,EAAE,KAAK,CAAC,gBAAgB;aAClB,CAAA;QAC1B,KAAK,oBAAa,CAAC,MAAM;YACvB,OAAO;gBACL,KAAK,EAAE,2CAA2C;aAC5B,CAAA;QAC1B;YACE,MAAM,IAAI,KAAK,CAAC,wBAAwB,KAAK,EAAE,CAAC,CAAA;IACpD,CAAC;AACH,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createRecord.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/repo/createRecord.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAS5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,
|
1
|
+
{"version":3,"file":"createRecord.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/repo/createRecord.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAS5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAsGvD"}
|
@@ -58,7 +58,7 @@ function default_1(server, ctx) {
|
|
58
58
|
}
|
59
59
|
throw err;
|
60
60
|
}
|
61
|
-
const
|
61
|
+
const commit = await ctx.actorStore.transact(did, async (actorTxn) => {
|
62
62
|
const backlinkConflicts = validate !== false
|
63
63
|
? await actorTxn.record.getBacklinkConflicts(write.uri, write.record)
|
64
64
|
: [];
|
@@ -70,7 +70,7 @@ function default_1(server, ctx) {
|
|
70
70
|
const writes = [...backlinkDeletions, write];
|
71
71
|
try {
|
72
72
|
const commit = await actorTxn.repo.processWrites(writes, swapCommitCid);
|
73
|
-
return
|
73
|
+
return commit;
|
74
74
|
}
|
75
75
|
catch (err) {
|
76
76
|
if (err instanceof repo_1.BadCommitSwapError) {
|
@@ -79,7 +79,7 @@ function default_1(server, ctx) {
|
|
79
79
|
throw err;
|
80
80
|
}
|
81
81
|
});
|
82
|
-
await ctx.sequencer.sequenceCommit(did, commit
|
82
|
+
await ctx.sequencer.sequenceCommit(did, commit);
|
83
83
|
await ctx.accountManager.updateRepoRoot(did, commit.cid, commit.rev);
|
84
84
|
return {
|
85
85
|
encoding: 'application/json',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createRecord.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/repo/createRecord.ts"],"names":[],"mappings":";;AAaA,
|
1
|
+
{"version":3,"file":"createRecord.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/repo/createRecord.ts"],"names":[],"mappings":";;AAaA,4BAsGC;AAnHD,0CAAsC;AACtC,4CAAuD;AACvD,sDAA6E;AAG7E,2CAMyB;AAEzB,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC;QACnC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,cAAc,CAAC;YACpC,aAAa,EAAE,IAAI;YACnB,gBAAgB,EAAE,IAAI;SACvB,CAAC;QACF,SA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oBACb,IAAI,GAAG,YAAY,yBAAkB,EAAE,CAAC;wBACtC,MAAM,IAAI,iCAAmB,CAAC,GAAG,CAAC,OAAO,EAAE,aAAa,CAAC,CAAA;oBAC3D,CAAC;oBACD,MAAM,GAAG,CAAA;gBACX,CAAC;YACH,CAAC,CAAC,CAAA;YAEF,MAAM,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,CAAA;YAC/C,MAAM,GAAG,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC,CAAA;YAEpE,OAAO;gBACL,QAAQ,EAAE,kBAAkB;gBAC5B,IAAI,EAAE;oBACJ,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE;oBACzB,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE;oBACzB,MAAM,EAAE;wBACN,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE;wBAC1B,GAAG,EAAE,MAAM,CAAC,GAAG;qBAChB;oBACD,gBAAgB,EAAE,KAAK,CAAC,gBAAgB;iBACzC;aACF,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC"}
|
@@ -64,7 +64,7 @@ function default_1(server, ctx) {
|
|
64
64
|
}
|
65
65
|
});
|
66
66
|
if (commit !== null) {
|
67
|
-
await ctx.sequencer.sequenceCommit(did, commit
|
67
|
+
await ctx.sequencer.sequenceCommit(did, commit);
|
68
68
|
await ctx.accountManager.updateRepoRoot(did, commit.cid, commit.rev);
|
69
69
|
}
|
70
70
|
return {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"deleteRecord.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/repo/deleteRecord.ts"],"names":[],"mappings":";;AAUA,4BA+EC;AAzFD,0CAAsC;AACtC,sDAA6E;AAG7E,2CAIyB;AAEzB,mBAAyB,MAAc,EAAE,GAAe;I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ACH,CAAC,CAAC,CAAA;YAEF,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;gBACpB,MAAM,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,CAAA;gBAC/C,MAAM,GAAG,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC,CAAA;YACtE,CAAC;YACD,OAAO;gBACL,QAAQ,EAAE,kBAAkB;gBAC5B,IAAI,EAAE;oBACJ,MAAM,EAAE,MAAM;wBACZ,CAAC,CAAC;4BACE,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE;4BAC1B,GAAG,EAAE,MAAM,CAAC,GAAG;yBAChB;wBACH,CAAC,CAAC,SAAS;iBACd;aACF,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"putRecord.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/repo/putRecord.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"putRecord.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/repo/putRecord.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAc5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QA4HvD"}
|
@@ -93,7 +93,7 @@ function default_1(server, ctx) {
|
|
93
93
|
return { commit, write };
|
94
94
|
});
|
95
95
|
if (commit !== null) {
|
96
|
-
await ctx.sequencer.sequenceCommit(did, commit
|
96
|
+
await ctx.sequencer.sequenceCommit(did, commit);
|
97
97
|
await ctx.accountManager.updateRepoRoot(did, commit.cid, commit.rev);
|
98
98
|
}
|
99
99
|
return {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"putRecord.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/repo/putRecord.ts"],"names":[],"mappings":";;AAoBA,4BA4HC;AAhJD,0CAAsC;AACtC,8CAA0C;
|
1
|
+
{"version":3,"file":"putRecord.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/repo/putRecord.ts"],"names":[],"mappings":";;AAoBA,4BA4HC;AAhJD,0CAAsC;AACtC,8CAA0C;AAC1C,4CAAuC;AACvC,sDAA6E;AAI7E,2DAAkD;AAElD,2CASyB;AAEzB,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC;QAChC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,cAAc,CAAC;YACpC,aAAa,EAAE,IAAI;YACnB,gBAAgB,EAAE,IAAI;SACvB,CAAC;QACF,SAAS,EAAE;YACT;gBACE,IAAI,EAAE,iBAAiB;gBACvB,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG;gBAC3C,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;aACpB;YACD;gBACE,IAAI,EAAE,gBAAgB;gBACtB,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG;gBAC3C,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;aACpB;SACF;QACD,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE;YACjC,MAAM,EACJ,IAAI,EACJ,UAAU,EACV,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,UAAU,EACV,UAAU,GACX,GAAG,KAAK,CAAC,IAAI,CAAA;YACd,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC,UAAU,CAAC,IAAI,EAAE;gBACxD,kBAAkB,EAAE,IAAI;aACzB,CAAC,CAAA;YA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CAAC,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;QAC1E,MAAM,CAAC,MAAM,GAAG,IAAI,iBAAO,CACzB,MAAM,CAAC,MAAM,CAAC,GAAG,EACjB,MAAM,CAAC,MAAM,CAAC,QAAQ,EACtB,IAAI,CAAC,IAAI,CACV,CAAA;IACH,CAAC;AACH,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"activateAccount.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/activateAccount.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAI5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,
|
1
|
+
{"version":3,"file":"activateAccount.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/activateAccount.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAI5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAqDvD"}
|
@@ -35,13 +35,16 @@ function default_1(server, ctx) {
|
|
35
35
|
newBlocks: blocks.blocks,
|
36
36
|
relevantBlocks: blocks.blocks,
|
37
37
|
removedCids: new repo_1.CidSet(),
|
38
|
+
ops: [],
|
39
|
+
blobs: new repo_1.CidSet(),
|
40
|
+
prevData: null,
|
38
41
|
};
|
39
42
|
});
|
40
43
|
// @NOTE: we're over-emitting for now for backwards compatibility, can reduce this in the future
|
41
44
|
const status = await ctx.accountManager.getAccountStatus(requester);
|
42
45
|
await ctx.sequencer.sequenceAccountEvt(requester, status);
|
43
46
|
await ctx.sequencer.sequenceIdentityEvt(requester, account.handle ?? syntax_1.INVALID_HANDLE);
|
44
|
-
await ctx.sequencer.sequenceCommit(requester, commitData
|
47
|
+
await ctx.sequencer.sequenceCommit(requester, commitData);
|
45
48
|
},
|
46
49
|
});
|
47
50
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"activateAccount.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/activateAccount.ts"],"names":[],"mappings":";;AAQA,
|
1
|
+
{"version":3,"file":"activateAccount.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/activateAccount.ts"],"names":[],"mappings":";;AAQA,4BAqDC;AA7DD,wCAAsC;AACtC,4CAAgD;AAChD,sDAA0D;AAG1D,0CAA6C;AAC7C,iCAAyD;AAEzD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC;QACxC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,UAAU,EAAE;QACnC,OAAO,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE;YAC/B,4HAA4H;YAC5H,IAAI,GAAG,CAAC,aAAa,EAAE,CAAC;gBACtB,MAAM,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,eAAe,CACxD,SAAS,EACT,IAAA,oBAAY,EAAC,GAAG,CAAC,CAClB,CAAA;gBACD,OAAM;YACR,CAAC;YAED,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YAEtC,MAAM,IAAA,uCAAgC,EAAC,GAAG,EAAE,SAAS,CAAC,CAAA;YAEtD,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC,UAAU,CAAC,SAAS,EAAE;gBAC7D,kBAAkB,EAAE,IAAI;aACzB,CAAC,CAAA;YACF,IAAI,CAAC,OAAO,EAAE,CAAC;gBACb,MAAM,IAAI,iCAAmB,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,CAAA;YACpE,CA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
await ctx.sequencer.sequenceIdentityEvt(did, handle);
|
77
77
|
await ctx.sequencer.sequenceAccountEvt(did, account_manager_1.AccountStatus.Active);
|
78
|
-
await ctx.sequencer.sequenceCommit(did, commit
|
78
|
+
await ctx.sequencer.sequenceCommit(did, commit);
|
79
79
|
}
|
80
80
|
await ctx.accountManager.updateRepoRoot(did, commit.cid, commit.rev);
|
81
81
|
await ctx.actorStore.clearReservedKeypair(signingKey.did(), did);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createAccount.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/createAccount.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,4BAiFC;AAlGD,kDAAmC;AACnC,2CAA4C;AAC5C,6EAA+D;AAC/D,4CAA4D;AAC5D,4CAA8E;AAC9E,gDAAkE;AAClE,sDAA6E;AAC7E,iEAA2D;AAE3D,+CAG2B;AAG3B,iCAA0C;AAE1C,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC;QACtC,SAAS,EAAE;YACT,UAAU,EAAE,CAAC,GAAG,eAAM;YACtB,MAAM,EAAE,GAAG;SACZ;QACD,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,uBAAuB;QAC9C,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE;YACtC,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,EAAE,GAAG,IAAI,IAAI,CAAA;YAC/C,MAAM,EACJ,GAAG,EACH,MAAM,EACN,KAAK,EACL,QAAQ,EACR,UAAU,EACV,UAAU,EACV,KAAK,EACL,WAAW,GACZ,GAAG,GAAG,CAAC,aAAa;gBACnB,CAAC,CAAC,MAAM,4BAA4B,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC;gBACrD,CAAC,CAAC,MAAM,yBAAyB,CAAC,GAAG,E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,CAAC,GAAG,EAAE,+BAAa,CAAC,MAAM,CAAC,CAAA;oBACjE,MAAM,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC,GAAG,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"createAccount.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/createAccount.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,4BAiFC;AAlGD,kDAAmC;AACnC,2CAA4C;AAC5C,6EAA+D;AAC/D,4CAA4D;AAC5D,4CAA8E;AAC9E,gDAAkE;AAClE,sDAA6E;AAC7E,iEAA2D;AAE3D,+CAG2B;AAG3B,iCAA0C;AAE1C,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC;QACtC,SAAS,EAAE;YACT,UAAU,EAAE,CAAC,GAAG,eAAM;YACtB,MAAM,EAAE,GAAG;SACZ;QACD,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,uBAAuB;QAC9C,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE;YACtC,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,EAAE,GAAG,IAAI,IAAI,CAAA;YAC/C,MAAM,EACJ,GAAG,EACH,MAAM,EACN,KAAK,EACL,QAAQ,EACR,UAAU,EACV,UAAU,EACV,KAAK,EACL,WAAW,GACZ,GAAG,GAAG,CAAC,aAAa;gBACnB,CAAC,CAAC,MAAM,4BAA4B,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC;gBACrD,CAAC,CAAC,MAAM,yBAAyB,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAA;YAE/D,IAAI,MAA+B,CAAA;YACnC,IAAI,KAAgD,CAAA;YACpD,MAAM,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,EAAE,UAAU,CAAC,CAAA;YA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A6D,EAC7D,oBAAoB,CACrB,CAAA;IACH,CAAC;AACH,CAAC,CAAA"}
|
package/dist/index.d.ts
CHANGED
@@ -12,7 +12,7 @@ export { createSecretKeyObject } from './auth-verifier';
|
|
12
12
|
export { type Handler as SkeletonHandler } from './lexicon/types/app/bsky/feed/getFeedSkeleton';
|
13
13
|
export { createServer as createLexiconServer } from './lexicon';
|
14
14
|
export * as sequencer from './sequencer';
|
15
|
-
export { type PreparedWrite } from './repo';
|
15
|
+
export { type CommitDataWithOps, type PreparedWrite } from './repo';
|
16
16
|
export * as repoPrepare from './repo/prepare';
|
17
17
|
export { scripts } from './scripts';
|
18
18
|
export declare class PDS {
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,sBAAsB,CAAA;AAG7B,OAAO,IAAI,MAAM,WAAW,CAAA;AAG5B,OAAO,OAAO,MAAM,SAAS,CAAA;AAW7B,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACtD,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAQzD,cAAc,UAAU,CAAA;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAA;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AACvD,OAAO,EAAE,KAAK,OAAO,IAAI,eAAe,EAAE,MAAM,+CAA+C,CAAA;AAC/F,OAAO,EAAE,YAAY,IAAI,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAC/D,OAAO,KAAK,SAAS,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,KAAK,aAAa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