@atproto/pds 0.4.102 → 0.4.104
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/api/com/atproto/admin/sendEmail.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/sendEmail.js +2 -7
- package/dist/api/com/atproto/admin/sendEmail.js.map +1 -1
- package/dist/api/com/atproto/admin/updateAccountEmail.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/updateAccountEmail.js +1 -2
- package/dist/api/com/atproto/admin/updateAccountEmail.js.map +1 -1
- package/dist/api/com/atproto/admin/updateAccountPassword.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/updateAccountPassword.js +1 -2
- package/dist/api/com/atproto/admin/updateAccountPassword.js.map +1 -1
- package/dist/api/com/atproto/identity/requestPlcOperationSignature.d.ts.map +1 -1
- package/dist/api/com/atproto/identity/requestPlcOperationSignature.js +2 -7
- package/dist/api/com/atproto/identity/requestPlcOperationSignature.js.map +1 -1
- package/dist/api/com/atproto/identity/signPlcOperation.d.ts.map +1 -1
- package/dist/api/com/atproto/identity/signPlcOperation.js +2 -7
- package/dist/api/com/atproto/identity/signPlcOperation.js.map +1 -1
- package/dist/api/com/atproto/identity/updateHandle.d.ts.map +1 -1
- package/dist/api/com/atproto/identity/updateHandle.js +2 -7
- package/dist/api/com/atproto/identity/updateHandle.js.map +1 -1
- package/dist/api/com/atproto/repo/applyWrites.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/applyWrites.js +12 -7
- 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 +12 -8
- package/dist/api/com/atproto/repo/createRecord.js.map +1 -1
- package/dist/api/com/atproto/repo/deleteRecord.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/deleteRecord.js +12 -7
- package/dist/api/com/atproto/repo/deleteRecord.js.map +1 -1
- package/dist/api/com/atproto/repo/listRecords.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/listRecords.js +1 -3
- package/dist/api/com/atproto/repo/listRecords.js.map +1 -1
- package/dist/api/com/atproto/repo/putRecord.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/putRecord.js +11 -8
- 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 +1 -2
- package/dist/api/com/atproto/server/activateAccount.js.map +1 -1
- package/dist/api/com/atproto/server/confirmEmail.d.ts.map +1 -1
- package/dist/api/com/atproto/server/confirmEmail.js +2 -7
- package/dist/api/com/atproto/server/confirmEmail.js.map +1 -1
- package/dist/api/com/atproto/server/createAppPassword.d.ts.map +1 -1
- package/dist/api/com/atproto/server/createAppPassword.js +2 -7
- package/dist/api/com/atproto/server/createAppPassword.js.map +1 -1
- package/dist/api/com/atproto/server/createSession.js +1 -1
- package/dist/api/com/atproto/server/createSession.js.map +1 -1
- package/dist/api/com/atproto/server/deactivateAccount.d.ts.map +1 -1
- package/dist/api/com/atproto/server/deactivateAccount.js +1 -2
- package/dist/api/com/atproto/server/deactivateAccount.js.map +1 -1
- package/dist/api/com/atproto/server/deleteAccount.d.ts.map +1 -1
- package/dist/api/com/atproto/server/deleteAccount.js +1 -2
- package/dist/api/com/atproto/server/deleteAccount.js.map +1 -1
- package/dist/api/com/atproto/server/deleteSession.d.ts.map +1 -1
- package/dist/api/com/atproto/server/deleteSession.js +2 -3
- package/dist/api/com/atproto/server/deleteSession.js.map +1 -1
- package/dist/api/com/atproto/server/getAccountInviteCodes.d.ts.map +1 -1
- package/dist/api/com/atproto/server/getAccountInviteCodes.js +2 -7
- package/dist/api/com/atproto/server/getAccountInviteCodes.js.map +1 -1
- package/dist/api/com/atproto/server/getSession.js +1 -1
- package/dist/api/com/atproto/server/getSession.js.map +1 -1
- package/dist/api/com/atproto/server/listAppPasswords.d.ts.map +1 -1
- package/dist/api/com/atproto/server/listAppPasswords.js +2 -7
- package/dist/api/com/atproto/server/listAppPasswords.js.map +1 -1
- package/dist/api/com/atproto/server/refreshSession.js +1 -1
- package/dist/api/com/atproto/server/refreshSession.js.map +1 -1
- package/dist/api/com/atproto/server/requestAccountDelete.d.ts.map +1 -1
- package/dist/api/com/atproto/server/requestAccountDelete.js +2 -7
- package/dist/api/com/atproto/server/requestAccountDelete.js.map +1 -1
- package/dist/api/com/atproto/server/requestEmailConfirmation.d.ts.map +1 -1
- package/dist/api/com/atproto/server/requestEmailConfirmation.js +2 -7
- package/dist/api/com/atproto/server/requestEmailConfirmation.js.map +1 -1
- package/dist/api/com/atproto/server/requestEmailUpdate.d.ts.map +1 -1
- package/dist/api/com/atproto/server/requestEmailUpdate.js +2 -7
- package/dist/api/com/atproto/server/requestEmailUpdate.js.map +1 -1
- package/dist/api/com/atproto/server/requestPasswordReset.d.ts.map +1 -1
- package/dist/api/com/atproto/server/requestPasswordReset.js +1 -2
- package/dist/api/com/atproto/server/requestPasswordReset.js.map +1 -1
- package/dist/api/com/atproto/server/resetPassword.d.ts.map +1 -1
- package/dist/api/com/atproto/server/resetPassword.js +1 -2
- package/dist/api/com/atproto/server/resetPassword.js.map +1 -1
- package/dist/api/com/atproto/server/revokeAppPassword.d.ts.map +1 -1
- package/dist/api/com/atproto/server/revokeAppPassword.js +2 -7
- package/dist/api/com/atproto/server/revokeAppPassword.js.map +1 -1
- package/dist/api/com/atproto/server/updateEmail.d.ts.map +1 -1
- package/dist/api/com/atproto/server/updateEmail.js +2 -7
- package/dist/api/com/atproto/server/updateEmail.js.map +1 -1
- package/dist/api/com/atproto/sync/getRecord.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/getRecord.js +1 -4
- package/dist/api/com/atproto/sync/getRecord.js.map +1 -1
- package/dist/api/com/atproto/temp/checkSignupQueue.js +1 -1
- package/dist/api/com/atproto/temp/checkSignupQueue.js.map +1 -1
- package/dist/api/proxy.d.ts +7 -8
- package/dist/api/proxy.d.ts.map +1 -1
- package/dist/api/proxy.js +14 -6
- package/dist/api/proxy.js.map +1 -1
- package/dist/context.d.ts +7 -0
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +12 -0
- package/dist/context.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +108 -28
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +54 -14
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/labeler/defs.d.ts +7 -0
- package/dist/lexicon/types/app/bsky/labeler/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/labeler/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/labeler/service.d.ts +7 -0
- package/dist/lexicon/types/app/bsky/labeler/service.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/labeler/service.js.map +1 -1
- package/dist/lexicon/types/com/atproto/moderation/defs.d.ts +2 -0
- package/dist/lexicon/types/com/atproto/moderation/defs.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/repo/listRecords.d.ts +0 -4
- package/dist/lexicon/types/com/atproto/repo/listRecords.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/repo/listRecords.js.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/getRecord.d.ts +0 -2
- package/dist/lexicon/types/com/atproto/sync/getRecord.d.ts.map +1 -1
- package/dist/oauth/provider.d.ts +2 -2
- package/dist/oauth/provider.d.ts.map +1 -1
- package/dist/oauth/provider.js +2 -1
- package/dist/oauth/provider.js.map +1 -1
- package/package.json +5 -5
- package/src/api/com/atproto/admin/sendEmail.ts +3 -5
- package/src/api/com/atproto/admin/updateAccountEmail.ts +1 -2
- package/src/api/com/atproto/admin/updateAccountPassword.ts +1 -2
- package/src/api/com/atproto/identity/requestPlcOperationSignature.ts +3 -5
- package/src/api/com/atproto/identity/signPlcOperation.ts +3 -5
- package/src/api/com/atproto/identity/updateHandle.ts +3 -6
- package/src/api/com/atproto/repo/applyWrites.ts +21 -11
- package/src/api/com/atproto/repo/createRecord.ts +19 -14
- package/src/api/com/atproto/repo/deleteRecord.ts +26 -14
- package/src/api/com/atproto/repo/listRecords.ts +1 -11
- package/src/api/com/atproto/repo/putRecord.ts +24 -16
- package/src/api/com/atproto/server/activateAccount.ts +1 -2
- package/src/api/com/atproto/server/confirmEmail.ts +3 -5
- package/src/api/com/atproto/server/createAppPassword.ts +3 -6
- package/src/api/com/atproto/server/createSession.ts +2 -2
- package/src/api/com/atproto/server/deactivateAccount.ts +1 -2
- package/src/api/com/atproto/server/deleteAccount.ts +1 -2
- package/src/api/com/atproto/server/deleteSession.ts +2 -3
- package/src/api/com/atproto/server/getAccountInviteCodes.ts +3 -5
- package/src/api/com/atproto/server/getSession.ts +2 -2
- package/src/api/com/atproto/server/listAppPasswords.ts +3 -5
- package/src/api/com/atproto/server/refreshSession.ts +2 -2
- package/src/api/com/atproto/server/requestAccountDelete.ts +3 -5
- package/src/api/com/atproto/server/requestEmailConfirmation.ts +3 -5
- package/src/api/com/atproto/server/requestEmailUpdate.ts +3 -5
- package/src/api/com/atproto/server/requestPasswordReset.ts +1 -2
- package/src/api/com/atproto/server/resetPassword.ts +1 -2
- package/src/api/com/atproto/server/revokeAppPassword.ts +3 -5
- package/src/api/com/atproto/server/updateEmail.ts +3 -5
- package/src/api/com/atproto/sync/getRecord.ts +1 -3
- package/src/api/com/atproto/temp/checkSignupQueue.ts +2 -2
- package/src/api/proxy.ts +19 -19
- package/src/context.ts +19 -0
- package/src/index.ts +1 -1
- package/src/lexicon/lexicons.ts +60 -17
- package/src/lexicon/types/app/bsky/labeler/defs.ts +7 -0
- package/src/lexicon/types/app/bsky/labeler/service.ts +7 -0
- package/src/lexicon/types/com/atproto/moderation/defs.ts +3 -0
- package/src/lexicon/types/com/atproto/repo/listRecords.ts +0 -4
- package/src/lexicon/types/com/atproto/sync/getRecord.ts +0 -2
- package/src/oauth/provider.ts +3 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# @atproto/pds
|
2
2
|
|
3
|
+
## 0.4.104
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#3580](https://github.com/bluesky-social/atproto/pull/3580) [`d4e14b7bd`](https://github.com/bluesky-social/atproto/commit/d4e14b7bdc7752476757ecfe96343d146411b784) Thanks [@dholms](https://github.com/dholms)! - Fix bug where racing writes to the same repository can get sequenced out-of-order.
|
8
|
+
|
9
|
+
- [#2506](https://github.com/bluesky-social/atproto/pull/2506) [`27b0a7be1`](https://github.com/bluesky-social/atproto/commit/27b0a7be1ed1b6e098114791d84ec9dc844db552) Thanks [@bnewbold](https://github.com/bnewbold)! - remove some deprecated fields from com.atproto Lexicons
|
10
|
+
|
11
|
+
- [#3553](https://github.com/bluesky-social/atproto/pull/3553) [`5cce76670`](https://github.com/bluesky-social/atproto/commit/5cce7667058981561340107e0124093203e796e3) Thanks [@devinivy](https://github.com/devinivy)! - Add x-forwarded-for to PDS-proxied requests to entryway
|
12
|
+
|
13
|
+
- Updated dependencies [[`99e2809ca`](https://github.com/bluesky-social/atproto/commit/99e2809ca2ebf70acaa10254f140a8dd0fad4305), [`27b0a7be1`](https://github.com/bluesky-social/atproto/commit/27b0a7be1ed1b6e098114791d84ec9dc844db552), [`11d8d21be`](https://github.com/bluesky-social/atproto/commit/11d8d21beac4b79ac44b930197761f9d08dbb492)]:
|
14
|
+
- @atproto/api@0.14.7
|
15
|
+
|
16
|
+
## 0.4.103
|
17
|
+
|
18
|
+
### Patch Changes
|
19
|
+
|
20
|
+
- [#3557](https://github.com/bluesky-social/atproto/pull/3557) [`82d5a2d36`](https://github.com/bluesky-social/atproto/commit/82d5a2d3617c40caab7a18e46c709c4b3c48e7f8) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Only trust one level of proxying when computing IP during OAuthFlows
|
21
|
+
|
22
|
+
- Updated dependencies [[`82d5a2d36`](https://github.com/bluesky-social/atproto/commit/82d5a2d3617c40caab7a18e46c709c4b3c48e7f8), [`82d5a2d36`](https://github.com/bluesky-social/atproto/commit/82d5a2d3617c40caab7a18e46c709c4b3c48e7f8)]:
|
23
|
+
- @atproto/oauth-provider@0.4.0
|
24
|
+
|
3
25
|
## 0.4.102
|
4
26
|
|
5
27
|
### Patch Changes
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sendEmail.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/admin/sendEmail.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"sendEmail.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/admin/sendEmail.ts"],"names":[],"mappings":"AACA,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,QA8CvD"}
|
@@ -1,17 +1,13 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
3
|
exports.default = default_1;
|
7
|
-
const node_assert_1 = __importDefault(require("node:assert"));
|
8
4
|
const xrpc_server_1 = require("@atproto/xrpc-server");
|
9
5
|
const lexicons_1 = require("../../../../lexicon/lexicons");
|
10
6
|
const proxy_1 = require("../../../proxy");
|
11
7
|
function default_1(server, ctx) {
|
12
8
|
server.com.atproto.admin.sendEmail({
|
13
9
|
auth: ctx.authVerifier.moderator,
|
14
|
-
handler: async ({ input }) => {
|
10
|
+
handler: async ({ input, req }) => {
|
15
11
|
const { content, recipientDid, subject = 'Message via your PDS', } = input.body;
|
16
12
|
const account = await ctx.accountManager.getAccount(recipientDid, {
|
17
13
|
includeDeactivated: true,
|
@@ -21,8 +17,7 @@ function default_1(server, ctx) {
|
|
21
17
|
throw new xrpc_server_1.InvalidRequestError('Recipient not found');
|
22
18
|
}
|
23
19
|
if (ctx.entrywayAgent) {
|
24
|
-
(0,
|
25
|
-
return (0, proxy_1.resultPassthru)(await ctx.entrywayAgent.com.atproto.admin.sendEmail(input.body, await ctx.serviceAuthHeaders(recipientDid, ctx.cfg.entryway.did, lexicons_1.ids.ComAtprotoAdminSendEmail)));
|
20
|
+
return (0, proxy_1.resultPassthru)(await ctx.entrywayAgent.com.atproto.admin.sendEmail(input.body, await ctx.entrywayAuthHeaders(req, recipientDid, lexicons_1.ids.ComAtprotoAdminSendEmail)));
|
26
21
|
}
|
27
22
|
if (!account.email) {
|
28
23
|
throw new xrpc_server_1.InvalidRequestError('account does not have an email address');
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sendEmail.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/admin/sendEmail.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"sendEmail.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/admin/sendEmail.ts"],"names":[],"mappings":";;AAMA,4BA8CC;AApDD,sDAA0D;AAG1D,2DAAkD;AAClD,0CAA+C;AAE/C,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC;QACjC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,SAAS;QAChC,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE;YAChC,MAAM,EACJ,OAAO,EACP,YAAY,EACZ,OAAO,GAAG,sBAAsB,GACjC,GAAG,KAAK,CAAC,IAAI,CAAA;YAEd,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC,UAAU,CAAC,YAAY,EAAE;gBAChE,kBAAkB,EAAE,IAAI;gBACxB,gBAAgB,EAAE,IAAI;aACvB,CAAC,CAAA;YACF,IAAI,CAAC,OAAO,EAAE,CAAC;gBACb,MAAM,IAAI,iCAAmB,CAAC,qBAAqB,CAAC,CAAA;YACtD,CAAC;YAED,IAAI,GAAG,CAAC,aAAa,EAAE,CAAC;gBACtB,OAAO,IAAA,sBAAc,EACnB,MAAM,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,CACjD,KAAK,CAAC,IAAI,EACV,MAAM,GAAG,CAAC,mBAAmB,CAC3B,GAAG,EACH,YAAY,EACZ,cAAG,CAAC,wBAAwB,CAC7B,CACF,CACF,CAAA;YACH,CAAC;YAED,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;gBACnB,MAAM,IAAI,iCAAmB,CAAC,wCAAwC,CAAC,CAAA;YACzE,CAAC;YAED,MAAM,GAAG,CAAC,gBAAgB,CAAC,IAAI,CAC7B,EAAE,OAAO,EAAE,EACX,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,CAAC,KAAK,EAAE,CAC/B,CAAA;YAED,OAAO;gBACL,QAAQ,EAAE,kBAAkB;gBAC5B,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;aACrB,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"updateAccountEmail.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/admin/updateAccountEmail.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;
|
1
|
+
{"version":3,"file":"updateAccountEmail.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/admin/updateAccountEmail.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAE5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QA4BvD"}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.default = default_1;
|
4
4
|
const xrpc_server_1 = require("@atproto/xrpc-server");
|
5
|
-
const util_1 = require("./util");
|
6
5
|
function default_1(server, ctx) {
|
7
6
|
server.com.atproto.admin.updateAccountEmail({
|
8
7
|
auth: ctx.authVerifier.adminToken,
|
@@ -15,7 +14,7 @@ function default_1(server, ctx) {
|
|
15
14
|
throw new xrpc_server_1.InvalidRequestError(`Account does not exist: ${input.body.account}`);
|
16
15
|
}
|
17
16
|
if (ctx.entrywayAgent) {
|
18
|
-
await ctx.entrywayAgent.com.atproto.admin.updateAccountEmail(input.body,
|
17
|
+
await ctx.entrywayAgent.com.atproto.admin.updateAccountEmail(input.body, ctx.entrywayPassthruHeaders(req));
|
19
18
|
return;
|
20
19
|
}
|
21
20
|
await ctx.accountManager.updateEmail({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"updateAccountEmail.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/admin/updateAccountEmail.ts"],"names":[],"mappings":";;
|
1
|
+
{"version":3,"file":"updateAccountEmail.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/admin/updateAccountEmail.ts"],"names":[],"mappings":";;AAIA,4BA4BC;AAhCD,sDAA0D;AAI1D,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,kBAAkB,CAAC;QAC1C,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,UAAU;QACjC,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE;YAChC,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE;gBACtE,kBAAkB,EAAE,IAAI;gBACxB,gBAAgB,EAAE,IAAI;aACvB,CAAC,CAAA;YACF,IAAI,CAAC,OAAO,EAAE,CAAC;gBACb,MAAM,IAAI,iCAAmB,CAC3B,2BAA2B,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAChD,CAAA;YACH,CAAC;YAED,IAAI,GAAG,CAAC,aAAa,EAAE,CAAC;gBACtB,MAAM,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,kBAAkB,CAC1D,KAAK,CAAC,IAAI,EACV,GAAG,CAAC,uBAAuB,CAAC,GAAG,CAAC,CACjC,CAAA;gBACD,OAAM;YACR,CAAC;YAED,MAAM,GAAG,CAAC,cAAc,CAAC,WAAW,CAAC;gBACnC,GAAG,EAAE,OAAO,CAAC,GAAG;gBAChB,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK;aACxB,CAAC,CAAA;QACJ,CAAC;KACF,CAAC,CAAA;AACJ,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"updateAccountPassword.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/admin/updateAccountPassword.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;
|
1
|
+
{"version":3,"file":"updateAccountPassword.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/admin/updateAccountPassword.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAE5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAgBvD"}
|
@@ -1,13 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.default = default_1;
|
4
|
-
const util_1 = require("./util");
|
5
4
|
function default_1(server, ctx) {
|
6
5
|
server.com.atproto.admin.updateAccountPassword({
|
7
6
|
auth: ctx.authVerifier.adminToken,
|
8
7
|
handler: async ({ input, req }) => {
|
9
8
|
if (ctx.entrywayAgent) {
|
10
|
-
await ctx.entrywayAgent.com.atproto.admin.updateAccountPassword(input.body,
|
9
|
+
await ctx.entrywayAgent.com.atproto.admin.updateAccountPassword(input.body, ctx.entrywayPassthruHeaders(req));
|
11
10
|
return;
|
12
11
|
}
|
13
12
|
const { did, password } = input.body;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"updateAccountPassword.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/admin/updateAccountPassword.ts"],"names":[],"mappings":";;
|
1
|
+
{"version":3,"file":"updateAccountPassword.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/admin/updateAccountPassword.ts"],"names":[],"mappings":";;AAGA,4BAgBC;AAhBD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,qBAAqB,CAAC;QAC7C,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,UAAU;QACjC,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE;YAChC,IAAI,GAAG,CAAC,aAAa,EAAE,CAAC;gBACtB,MAAM,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,qBAAqB,CAC7D,KAAK,CAAC,IAAI,EACV,GAAG,CAAC,uBAAuB,CAAC,GAAG,CAAC,CACjC,CAAA;gBACD,OAAM;YACR,CAAC;YAED,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC,IAAI,CAAA;YACpC,MAAM,GAAG,CAAC,cAAc,CAAC,qBAAqB,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAA;QACnE,CAAC;KACF,CAAC,CAAA;AACJ,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"requestPlcOperationSignature.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/identity/requestPlcOperationSignature.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"requestPlcOperationSignature.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/identity/requestPlcOperationSignature.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAG5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAiCvD"}
|
@@ -1,20 +1,15 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
3
|
exports.default = default_1;
|
7
|
-
const node_assert_1 = __importDefault(require("node:assert"));
|
8
4
|
const xrpc_server_1 = require("@atproto/xrpc-server");
|
9
5
|
const auth_verifier_1 = require("../../../../auth-verifier");
|
10
6
|
const lexicons_1 = require("../../../../lexicon/lexicons");
|
11
7
|
function default_1(server, ctx) {
|
12
8
|
server.com.atproto.identity.requestPlcOperationSignature({
|
13
9
|
auth: ctx.authVerifier.accessFull({ additional: [auth_verifier_1.AuthScope.Takendown] }),
|
14
|
-
handler: async ({ auth }) => {
|
10
|
+
handler: async ({ auth, req }) => {
|
15
11
|
if (ctx.entrywayAgent) {
|
16
|
-
(
|
17
|
-
await ctx.entrywayAgent.com.atproto.identity.requestPlcOperationSignature(undefined, await ctx.serviceAuthHeaders(auth.credentials.did, ctx.cfg.entryway.did, lexicons_1.ids.ComAtprotoIdentityRequestPlcOperationSignature));
|
12
|
+
await ctx.entrywayAgent.com.atproto.identity.requestPlcOperationSignature(undefined, await ctx.entrywayAuthHeaders(req, auth.credentials.did, lexicons_1.ids.ComAtprotoIdentityRequestPlcOperationSignature));
|
18
13
|
return;
|
19
14
|
}
|
20
15
|
const did = auth.credentials.did;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"requestPlcOperationSignature.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/identity/requestPlcOperationSignature.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"requestPlcOperationSignature.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/identity/requestPlcOperationSignature.ts"],"names":[],"mappings":";;AAMA,4BAiCC;AAvCD,sDAA0D;AAC1D,6DAAqD;AAGrD,2DAAkD;AAElD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAAC;QACvD,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,UAAU,EAAE,CAAC,yBAAS,CAAC,SAAS,CAAC,EAAE,CAAC;QACxE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE;YAC/B,IAAI,GAAG,CAAC,aAAa,EAAE,CAAC;gBACtB,MAAM,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CACvE,SAAS,EACT,MAAM,GAAG,CAAC,mBAAmB,CAC3B,GAAG,EACH,IAAI,CAAC,WAAW,CAAC,GAAG,EACpB,cAAG,CAAC,8CAA8C,CACnD,CACF,CAAA;gBACD,OAAM;YACR,CAAC;YAED,MAAM,GAAG,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YAChC,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC,UAAU,CAAC,GAAG,EAAE;gBACvD,kBAAkB,EAAE,IAAI;gBACxB,gBAAgB,EAAE,IAAI;aACvB,CAAC,CAAA;YACF,IAAI,CAAC,OAAO,EAAE,CAAC;gBACb,MAAM,IAAI,iCAAmB,CAAC,mBAAmB,CAAC,CAAA;YACpD,CAAC;iBAAM,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;gBAC1B,MAAM,IAAI,iCAAmB,CAAC,wCAAwC,CAAC,CAAA;YACzE,CAAC;YACD,MAAM,KAAK,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC,gBAAgB,CACrD,GAAG,EACH,eAAe,CAChB,CAAA;YACD,MAAM,GAAG,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAA;QACrE,CAAC;KACF,CAAC,CAAA;AACJ,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"signPlcOperation.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/identity/signPlcOperation.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"signPlcOperation.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/identity/signPlcOperation.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,QA8DvD"}
|
@@ -22,12 +22,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
22
|
__setModuleDefault(result, mod);
|
23
23
|
return result;
|
24
24
|
};
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
27
|
-
};
|
28
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
26
|
exports.default = default_1;
|
30
|
-
const node_assert_1 = __importDefault(require("node:assert"));
|
31
27
|
const plc = __importStar(require("@did-plc/lib"));
|
32
28
|
const common_1 = require("@atproto/common");
|
33
29
|
const xrpc_server_1 = require("@atproto/xrpc-server");
|
@@ -36,10 +32,9 @@ const proxy_1 = require("../../../proxy");
|
|
36
32
|
function default_1(server, ctx) {
|
37
33
|
server.com.atproto.identity.signPlcOperation({
|
38
34
|
auth: ctx.authVerifier.accessFull(),
|
39
|
-
handler: async ({ auth, input }) => {
|
35
|
+
handler: async ({ auth, input, req }) => {
|
40
36
|
if (ctx.entrywayAgent) {
|
41
|
-
(0,
|
42
|
-
return (0, proxy_1.resultPassthru)(await ctx.entrywayAgent.com.atproto.identity.signPlcOperation(input.body, await ctx.serviceAuthHeaders(auth.credentials.did, ctx.cfg.entryway.did, lexicons_1.ids.ComAtprotoIdentitySignPlcOperation)));
|
37
|
+
return (0, proxy_1.resultPassthru)(await ctx.entrywayAgent.com.atproto.identity.signPlcOperation(input.body, await ctx.entrywayAuthHeaders(req, auth.credentials.did, lexicons_1.ids.ComAtprotoIdentitySignPlcOperation)));
|
43
38
|
}
|
44
39
|
const did = auth.credentials.did;
|
45
40
|
const { token } = input.body;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"signPlcOperation.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/identity/signPlcOperation.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"signPlcOperation.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/identity/signPlcOperation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAQA,4BA8DC;AAtED,kDAAmC;AACnC,4CAAuC;AACvC,sDAA0D;AAG1D,2DAAkD;AAClD,0CAA+C;AAE/C,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC;QAC3C,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,UAAU,EAAE;QACnC,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE;YACtC,IAAI,GAAG,CAAC,aAAa,EA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AAQ;gBACN,mDAAmD;gBAClD,KAAK,CAAC,IAAI,CAAC,QAE2C;oBACvD,MAAM,CAAC,QAAQ;aAClB,CAAC,CACH,CAAA;YACD,OAAO;gBACL,QAAQ,EAAE,kBAAkB;gBAC5B,IAAI,EAAE;oBACJ,SAAS;iBACV;aACF,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"updateHandle.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/identity/updateHandle.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"updateHandle.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/identity/updateHandle.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAEhD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAI5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAmFvD"}
|
@@ -1,10 +1,6 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
3
|
exports.default = default_1;
|
7
|
-
const node_assert_1 = __importDefault(require("node:assert"));
|
8
4
|
const common_1 = require("@atproto/common");
|
9
5
|
const xrpc_server_1 = require("@atproto/xrpc-server");
|
10
6
|
const handle_1 = require("../../../../handle");
|
@@ -25,16 +21,15 @@ function default_1(server, ctx) {
|
|
25
21
|
calcKey: ({ auth }) => auth.credentials.did,
|
26
22
|
},
|
27
23
|
],
|
28
|
-
handler: async ({ auth, input }) => {
|
24
|
+
handler: async ({ auth, input, req }) => {
|
29
25
|
const requester = auth.credentials.did;
|
30
26
|
if (ctx.entrywayAgent) {
|
31
|
-
(0, node_assert_1.default)(ctx.cfg.entryway);
|
32
27
|
// the full flow is:
|
33
28
|
// -> entryway(identity.updateHandle) [update handle, submit plc op]
|
34
29
|
// -> pds(admin.updateAccountHandle) [track handle, sequence handle update]
|
35
30
|
await ctx.entrywayAgent.com.atproto.identity.updateHandle(
|
36
31
|
// @ts-expect-error "did" is not in the schema
|
37
|
-
{ did: requester, handle: input.body.handle }, await ctx.
|
32
|
+
{ did: requester, handle: input.body.handle }, await ctx.entrywayAuthHeaders(req, auth.credentials.did, lexicons_1.ids.ComAtprotoIdentityUpdateHandle));
|
38
33
|
return;
|
39
34
|
}
|
40
35
|
const handle = await (0, handle_1.normalizeAndValidateHandle)({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"updateHandle.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/identity/updateHandle.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"updateHandle.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/identity/updateHandle.ts"],"names":[],"mappings":";;AAQA,4BAmFC;AA3FD,4CAA6C;AAC7C,sDAA0D;AAE1D,+CAA+D;AAE/D,2DAAkD;AAClD,+CAA+C;AAE/C,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC;QACvC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,cAAc,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;QAC9D,SAAS,EAAE;YACT;gBACE,UAAU,EAAE,CAAC,GAAG,eAAM;gBACtB,MAAM,EAAE,EAAE;gBACV,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG;aAC5C;YACD;gBACE,UAAU,EAAE,YAAG;gBACf,MAAM,EAAE,EAAE;gBACV,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG;aAC5C;SACF;QACD,OA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AE,CAAC;wBAC/B,MAAM,IAAI,iCAAmB,CAC3B,2CAA2C,CAC5C,CAAA;oBACH,CAAC;gBACH,CAAC;gBACD,MAAM,GAAG,CAAC,cAAc,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,CAAA;YAC1D,CAAC;iBAAM,CAAC;gBACN,oFAAoF;gBACpF,iDAAiD;gBACjD,IAAI,OAAO,CAAC,GAAG,KAAK,SAAS,EAAE,CAAC;oBAC9B,MAAM,IAAI,iCAAmB,CAAC,yBAAyB,MAAM,EAAE,CAAC,CAAA;gBAClE,CAAC;YACH,CAAC;YAED,IAAI,CAAC;gBACH,MAAM,GAAG,CAAC,SAAS,CAAC,oBAAoB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAA;gBAC3D,MAAM,GAAG,CAAC,SAAS,CAAC,mBAAmB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAA;YAC5D,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,mBAAU,CAAC,KAAK,CACd,EAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,EAC/B,kCAAkC,CACnC,CAAA;YACH,CAAC;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"applyWrites.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/repo/applyWrites.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;
|
1
|
+
{"version":3,"file":"applyWrites.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/repo/applyWrites.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAkC5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAuHvD"}
|
@@ -5,6 +5,7 @@ const cid_1 = require("multiformats/cid");
|
|
5
5
|
const repo_1 = require("@atproto/repo");
|
6
6
|
const xrpc_server_1 = require("@atproto/xrpc-server");
|
7
7
|
const applyWrites_1 = require("../../../../lexicon/types/com/atproto/repo/applyWrites");
|
8
|
+
const logger_1 = require("../../../../logger");
|
8
9
|
const repo_2 = require("../../../../repo");
|
9
10
|
const ratelimitPoints = ({ input }) => {
|
10
11
|
let points = 0;
|
@@ -100,20 +101,24 @@ function default_1(server, ctx) {
|
|
100
101
|
}
|
101
102
|
const swapCommitCid = swapCommit ? cid_1.CID.parse(swapCommit) : undefined;
|
102
103
|
const commit = await ctx.actorStore.transact(did, async (actorTxn) => {
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
catch (err) {
|
104
|
+
const commit = await actorTxn.repo
|
105
|
+
.processWrites(writes, swapCommitCid)
|
106
|
+
.catch((err) => {
|
107
107
|
if (err instanceof repo_2.BadCommitSwapError) {
|
108
108
|
throw new xrpc_server_1.InvalidRequestError(err.message, 'InvalidSwap');
|
109
109
|
}
|
110
110
|
else {
|
111
111
|
throw err;
|
112
112
|
}
|
113
|
-
}
|
113
|
+
});
|
114
|
+
await ctx.sequencer.sequenceCommit(did, commit);
|
115
|
+
return commit;
|
116
|
+
});
|
117
|
+
await ctx.accountManager
|
118
|
+
.updateRepoRoot(did, commit.cid, commit.rev)
|
119
|
+
.catch((err) => {
|
120
|
+
logger_1.dbLogger.error({ err, did, cid: commit.cid, rev: commit.rev }, 'failed to update account root');
|
114
121
|
});
|
115
|
-
await ctx.sequencer.sequenceCommit(did, commit);
|
116
|
-
await ctx.accountManager.updateRepoRoot(did, commit.cid, commit.rev);
|
117
122
|
return {
|
118
123
|
encoding: 'application/json',
|
119
124
|
body: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"applyWrites.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/repo/applyWrites.ts"],"names":[],"mappings":";;
|
1
|
+
{"version":3,"file":"applyWrites.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/repo/applyWrites.ts"],"names":[],"mappings":";;AAsCA,4BAuHC;AA7JD,0CAAsC;AACtC,wCAA6C;AAC7C,sDAA6E;AAG7E,wFAQ+D;AAC/D,+CAA6C;AAC7C,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,CAAC,WAAW,CAAC,GAAG;gBAC3C,UAAU,EAAE,eAAe;aAC5B;YACD;gBACE,IAAI,EAAE,gBAAgB;gBACtB,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG;gBAC3C,UAAU,EAAE,eAAe;aAC5B;S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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;
|
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;AAU5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QA0GvD"}
|
@@ -4,6 +4,7 @@ exports.default = default_1;
|
|
4
4
|
const cid_1 = require("multiformats/cid");
|
5
5
|
const syntax_1 = require("@atproto/syntax");
|
6
6
|
const xrpc_server_1 = require("@atproto/xrpc-server");
|
7
|
+
const logger_1 = require("../../../../logger");
|
7
8
|
const repo_1 = require("../../../../repo");
|
8
9
|
function default_1(server, ctx) {
|
9
10
|
server.com.atproto.repo.createRecord({
|
@@ -68,19 +69,22 @@ function default_1(server, ctx) {
|
|
68
69
|
rkey: uri.rkey,
|
69
70
|
}));
|
70
71
|
const writes = [...backlinkDeletions, write];
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
}
|
75
|
-
catch (err) {
|
72
|
+
const commit = await actorTxn.repo
|
73
|
+
.processWrites(writes, swapCommitCid)
|
74
|
+
.catch((err) => {
|
76
75
|
if (err instanceof repo_1.BadCommitSwapError) {
|
77
76
|
throw new xrpc_server_1.InvalidRequestError(err.message, 'InvalidSwap');
|
78
77
|
}
|
79
78
|
throw err;
|
80
|
-
}
|
79
|
+
});
|
80
|
+
await ctx.sequencer.sequenceCommit(did, commit);
|
81
|
+
return commit;
|
82
|
+
});
|
83
|
+
await ctx.accountManager
|
84
|
+
.updateRepoRoot(did, commit.cid, commit.rev)
|
85
|
+
.catch((err) => {
|
86
|
+
logger_1.dbLogger.error({ err, did, cid: commit.cid, rev: commit.rev }, 'failed to update account root');
|
81
87
|
});
|
82
|
-
await ctx.sequencer.sequenceCommit(did, commit);
|
83
|
-
await ctx.accountManager.updateRepoRoot(did, commit.cid, commit.rev);
|
84
88
|
return {
|
85
89
|
encoding: 'application/json',
|
86
90
|
body: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createRecord.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/repo/createRecord.ts"],"names":[],"mappings":";;
|
1
|
+
{"version":3,"file":"createRecord.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/repo/createRecord.ts"],"names":[],"mappings":";;AAcA,4BA0GC;AAxHD,0CAAsC;AACtC,4CAAuD;AACvD,sDAA6E;AAG7E,+CAA6C;AAC7C,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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AAM,EAAE,MAAM,qBAAqB,CAAA;
|
1
|
+
{"version":3,"file":"deleteRecord.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/repo/deleteRecord.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAQ5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QA0FvD"}
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = default_1;
|
4
4
|
const cid_1 = require("multiformats/cid");
|
5
5
|
const xrpc_server_1 = require("@atproto/xrpc-server");
|
6
|
+
const logger_1 = require("../../../../logger");
|
6
7
|
const repo_1 = require("../../../../repo");
|
7
8
|
function default_1(server, ctx) {
|
8
9
|
server.com.atproto.repo.deleteRecord({
|
@@ -50,10 +51,9 @@ function default_1(server, ctx) {
|
|
50
51
|
if (!record) {
|
51
52
|
return null; // No-op if record already doesn't exist
|
52
53
|
}
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
catch (err) {
|
54
|
+
const commit = await actorTxn.repo
|
55
|
+
.processWrites([write], swapCommitCid)
|
56
|
+
.catch((err) => {
|
57
57
|
if (err instanceof repo_1.BadCommitSwapError ||
|
58
58
|
err instanceof repo_1.BadRecordSwapError) {
|
59
59
|
throw new xrpc_server_1.InvalidRequestError(err.message, 'InvalidSwap');
|
@@ -61,11 +61,16 @@ function default_1(server, ctx) {
|
|
61
61
|
else {
|
62
62
|
throw err;
|
63
63
|
}
|
64
|
-
}
|
64
|
+
});
|
65
|
+
await ctx.sequencer.sequenceCommit(did, commit);
|
66
|
+
return commit;
|
65
67
|
});
|
66
68
|
if (commit !== null) {
|
67
|
-
await ctx.
|
68
|
-
|
69
|
+
await ctx.accountManager
|
70
|
+
.updateRepoRoot(did, commit.cid, commit.rev)
|
71
|
+
.catch((err) => {
|
72
|
+
logger_1.dbLogger.error({ err, did, cid: commit.cid, rev: commit.rev }, 'failed to update account root');
|
73
|
+
});
|
69
74
|
}
|
70
75
|
return {
|
71
76
|
encoding: 'application/json',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"deleteRecord.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/repo/deleteRecord.ts"],"names":[],"mappings":";;
|
1
|
+
{"version":3,"file":"deleteRecord.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/repo/deleteRecord.ts"],"names":[],"mappings":";;AAWA,4BA0FC;AArGD,0CAAsC;AACtC,sDAA6E;AAG7E,+CAA6C;AAC7C,2CAIyB;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,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,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;YACjC,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC,IAAI,CAAA;YACrE,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,cAAc,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AAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAE5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,
|
1
|
+
{"version":3,"file":"listRecords.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/repo/listRecords.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAE5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QA8BvD"}
|
@@ -5,7 +5,7 @@ const syntax_1 = require("@atproto/syntax");
|
|
5
5
|
const xrpc_server_1 = require("@atproto/xrpc-server");
|
6
6
|
function default_1(server, ctx) {
|
7
7
|
server.com.atproto.repo.listRecords(async ({ params }) => {
|
8
|
-
const { repo, collection, limit = 50, cursor,
|
8
|
+
const { repo, collection, limit = 50, cursor, reverse = false } = params;
|
9
9
|
const did = await ctx.accountManager.getDidForActor(repo);
|
10
10
|
if (!did) {
|
11
11
|
throw new xrpc_server_1.InvalidRequestError(`Could not find repo: ${repo}`);
|
@@ -15,8 +15,6 @@ function default_1(server, ctx) {
|
|
15
15
|
limit,
|
16
16
|
reverse,
|
17
17
|
cursor,
|
18
|
-
rkeyStart,
|
19
|
-
rkeyEnd,
|
20
18
|
}));
|
21
19
|
const lastRecord = records.at(-1);
|
22
20
|
const lastUri = lastRecord && new syntax_1.AtUri(lastRecord?.uri);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"listRecords.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/repo/listRecords.ts"],"names":[],"mappings":";;AAKA,
|
1
|
+
{"version":3,"file":"listRecords.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/repo/listRecords.ts"],"names":[],"mappings":";;AAKA,4BA8BC;AAn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BAAqB,CAAA;AAc5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,
|
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,QAoIvD"}
|
@@ -6,6 +6,7 @@ const lexicon_1 = require("@atproto/lexicon");
|
|
6
6
|
const syntax_1 = require("@atproto/syntax");
|
7
7
|
const xrpc_server_1 = require("@atproto/xrpc-server");
|
8
8
|
const lexicons_1 = require("../../../../lexicon/lexicons");
|
9
|
+
const logger_1 = require("../../../../logger");
|
9
10
|
const repo_1 = require("../../../../repo");
|
10
11
|
function default_1(server, ctx) {
|
11
12
|
server.com.atproto.repo.putRecord({
|
@@ -77,11 +78,9 @@ function default_1(server, ctx) {
|
|
77
78
|
write,
|
78
79
|
};
|
79
80
|
}
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
}
|
84
|
-
catch (err) {
|
81
|
+
const commit = await actorTxn.repo
|
82
|
+
.processWrites([write], swapCommitCid)
|
83
|
+
.catch((err) => {
|
85
84
|
if (err instanceof repo_1.BadCommitSwapError ||
|
86
85
|
err instanceof repo_1.BadRecordSwapError) {
|
87
86
|
throw new xrpc_server_1.InvalidRequestError(err.message, 'InvalidSwap');
|
@@ -89,12 +88,16 @@ function default_1(server, ctx) {
|
|
89
88
|
else {
|
90
89
|
throw err;
|
91
90
|
}
|
92
|
-
}
|
91
|
+
});
|
92
|
+
await ctx.sequencer.sequenceCommit(did, commit);
|
93
93
|
return { commit, write };
|
94
94
|
});
|
95
95
|
if (commit !== null) {
|
96
|
-
await ctx.
|
97
|
-
|
96
|
+
await ctx.accountManager
|
97
|
+
.updateRepoRoot(did, commit.cid, commit.rev)
|
98
|
+
.catch((err) => {
|
99
|
+
logger_1.dbLogger.error({ err, did, cid: commit.cid, rev: commit.rev }, 'failed to update account root');
|
100
|
+
});
|
98
101
|
}
|
99
102
|
return {
|
100
103
|
encoding: 'application/json',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"putRecord.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/repo/putRecord.ts"],"names":[],"mappings":";;AAoBA,
|
1
|
+
{"version":3,"file":"putRecord.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/repo/putRecord.ts"],"names":[],"mappings":";;AAoBA,4BAoIC;AAxJD,0CAAsC;AACtC,8CAA0C;AAC1C,4CAAuC;AACvC,sDAA6E;AAI7E,2DAAkD;AAElD,+CAA6C;AAC7C,2CAQyB;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,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C,IAAI,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;IACD,IAAI,MAAM,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;QACtD,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC,IAAI,CAAC,IAAI,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;
|
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;AAG5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAqDvD"}
|