@atproto/pds 0.4.104 → 0.4.105
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/account-manager/{index.d.ts → account-manager.d.ts} +26 -35
- package/dist/account-manager/account-manager.d.ts.map +1 -0
- package/dist/account-manager/{index.js → account-manager.js} +52 -207
- package/dist/account-manager/account-manager.js.map +1 -0
- package/dist/account-manager/helpers/account.d.ts +3 -3
- package/dist/account-manager/helpers/device-account.d.ts +15 -15
- package/dist/account-manager/helpers/device-account.d.ts.map +1 -1
- package/dist/account-manager/helpers/device-account.js +2 -1
- package/dist/account-manager/helpers/device-account.js.map +1 -1
- package/dist/account-manager/helpers/token.d.ts +98 -98
- package/dist/account-manager/oauth-store.d.ts +58 -0
- package/dist/account-manager/oauth-store.d.ts.map +1 -0
- package/dist/account-manager/oauth-store.js +417 -0
- package/dist/account-manager/oauth-store.js.map +1 -0
- package/dist/actor-store/record/reader.d.ts +3 -3
- package/dist/actor-store/repo/reader.d.ts +2 -0
- package/dist/actor-store/repo/reader.d.ts.map +1 -1
- package/dist/actor-store/repo/reader.js +9 -0
- package/dist/actor-store/repo/reader.js.map +1 -1
- package/dist/actor-store/repo/sql-repo-reader.d.ts +1 -1
- package/dist/actor-store/repo/transactor.d.ts.map +1 -1
- package/dist/actor-store/repo/transactor.js +13 -4
- package/dist/actor-store/repo/transactor.js.map +1 -1
- package/dist/api/com/atproto/admin/deleteAccount.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/deleteAccount.js +2 -3
- package/dist/api/com/atproto/admin/deleteAccount.js.map +1 -1
- package/dist/api/com/atproto/admin/updateAccountHandle.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/updateAccountHandle.js +2 -6
- package/dist/api/com/atproto/admin/updateAccountHandle.js.map +1 -1
- package/dist/api/com/atproto/identity/resolveHandle.d.ts.map +1 -1
- package/dist/api/com/atproto/identity/resolveHandle.js +2 -36
- package/dist/api/com/atproto/identity/resolveHandle.js.map +1 -1
- package/dist/api/com/atproto/identity/updateHandle.d.ts.map +1 -1
- package/dist/api/com/atproto/identity/updateHandle.js +1 -7
- package/dist/api/com/atproto/identity/updateHandle.js.map +1 -1
- package/dist/api/com/atproto/server/activateAccount.d.ts.map +1 -1
- package/dist/api/com/atproto/server/activateAccount.js +2 -18
- package/dist/api/com/atproto/server/activateAccount.js.map +1 -1
- package/dist/api/com/atproto/server/createAccount.d.ts.map +1 -1
- package/dist/api/com/atproto/server/createAccount.js +5 -7
- package/dist/api/com/atproto/server/createAccount.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/deleteAccount.d.ts.map +1 -1
- package/dist/api/com/atproto/server/deleteAccount.js +2 -3
- package/dist/api/com/atproto/server/deleteAccount.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/refreshSession.js +1 -1
- package/dist/api/com/atproto/server/refreshSession.js.map +1 -1
- package/dist/api/com/atproto/sync/getRecord.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/getRecord.js.map +1 -1
- package/dist/api/com/atproto/sync/getRepoStatus.js +1 -1
- package/dist/api/com/atproto/sync/getRepoStatus.js.map +1 -1
- package/dist/api/com/atproto/sync/listRepos.js +1 -1
- package/dist/api/com/atproto/sync/listRepos.js.map +1 -1
- package/dist/api/com/atproto/sync/subscribeRepos.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/subscribeRepos.js +2 -10
- package/dist/api/com/atproto/sync/subscribeRepos.js.map +1 -1
- package/dist/app-view.d.ts +14 -0
- package/dist/app-view.d.ts.map +1 -0
- package/dist/app-view.js +36 -0
- package/dist/app-view.js.map +1 -0
- package/dist/auth-routes.d.ts +1 -1
- package/dist/auth-routes.d.ts.map +1 -1
- package/dist/auth-routes.js +9 -3
- package/dist/auth-routes.js.map +1 -1
- package/dist/auth-verifier.d.ts +1 -1
- package/dist/auth-verifier.d.ts.map +1 -1
- package/dist/config/config.d.ts +3 -2
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +17 -7
- package/dist/config/config.js.map +1 -1
- package/dist/config/env.d.ts +4 -0
- package/dist/config/env.d.ts.map +1 -1
- package/dist/config/env.js +5 -0
- package/dist/config/env.js.map +1 -1
- package/dist/context.d.ts +4 -4
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +24 -18
- package/dist/context.js.map +1 -1
- package/dist/handle/index.d.ts +0 -7
- package/dist/handle/index.d.ts.map +1 -1
- package/dist/handle/index.js +4 -58
- package/dist/handle/index.js.map +1 -1
- package/dist/image/image-url.d.ts +8 -0
- package/dist/image/image-url.d.ts.map +1 -0
- package/dist/image/image-url.js +26 -0
- package/dist/image/image-url.js.map +1 -0
- package/dist/lexicon/index.d.ts +6 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +12 -0
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +304 -130
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +168 -67
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/embed/video.d.ts +1 -0
- package/dist/lexicon/types/app/bsky/embed/video.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/embed/video.js.map +1 -1
- package/dist/lexicon/types/com/atproto/identity/defs.d.ts +17 -0
- package/dist/lexicon/types/com/atproto/identity/defs.d.ts.map +1 -0
- package/dist/lexicon/types/com/atproto/identity/defs.js +16 -0
- package/dist/lexicon/types/com/atproto/identity/defs.js.map +1 -0
- package/dist/lexicon/types/com/atproto/identity/refreshIdentity.d.ts +39 -0
- package/dist/lexicon/types/com/atproto/identity/refreshIdentity.d.ts.map +1 -0
- package/dist/lexicon/types/com/atproto/identity/refreshIdentity.js +7 -0
- package/dist/lexicon/types/com/atproto/identity/refreshIdentity.js.map +1 -0
- package/dist/lexicon/types/com/atproto/identity/resolveDid.d.ts +40 -0
- package/dist/lexicon/types/com/atproto/identity/resolveDid.d.ts.map +1 -0
- package/dist/lexicon/types/com/atproto/identity/resolveDid.js +7 -0
- package/dist/lexicon/types/com/atproto/identity/resolveDid.js.map +1 -0
- package/dist/lexicon/types/com/atproto/identity/resolveHandle.d.ts +1 -0
- package/dist/lexicon/types/com/atproto/identity/resolveHandle.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/identity/resolveIdentity.d.ts +36 -0
- package/dist/lexicon/types/com/atproto/identity/resolveIdentity.d.ts.map +1 -0
- package/dist/lexicon/types/com/atproto/identity/resolveIdentity.js +7 -0
- package/dist/lexicon/types/com/atproto/identity/resolveIdentity.js.map +1 -0
- package/dist/lexicon/types/com/atproto/sync/subscribeRepos.d.ts +1 -30
- package/dist/lexicon/types/com/atproto/sync/subscribeRepos.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/subscribeRepos.js +0 -27
- package/dist/lexicon/types/com/atproto/sync/subscribeRepos.js.map +1 -1
- package/dist/mailer/index.d.ts +5 -5
- package/dist/mailer/index.d.ts.map +1 -1
- package/dist/mailer/index.js +6 -5
- package/dist/mailer/index.js.map +1 -1
- package/dist/read-after-write/viewer.d.ts +1 -1
- package/dist/read-after-write/viewer.d.ts.map +1 -1
- package/dist/repo/types.d.ts +6 -2
- 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 +2 -1
- package/dist/scripts/rebuild-repo.js.map +1 -1
- package/dist/sequencer/db/schema.d.ts +1 -1
- package/dist/sequencer/db/schema.d.ts.map +1 -1
- package/dist/sequencer/events.d.ts +29 -41
- package/dist/sequencer/events.d.ts.map +1 -1
- package/dist/sequencer/events.js +24 -58
- 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 +5 -17
- package/dist/sequencer/sequencer.js.map +1 -1
- package/package.json +15 -15
- package/src/account-manager/{index.ts → account-manager.ts} +107 -307
- package/src/account-manager/helpers/device-account.ts +1 -0
- package/src/account-manager/oauth-store.ts +494 -0
- package/src/actor-store/repo/reader.ts +11 -0
- package/src/actor-store/repo/transactor.ts +15 -4
- package/src/api/com/atproto/admin/deleteAccount.ts +2 -3
- package/src/api/com/atproto/admin/updateAccountHandle.ts +7 -8
- package/src/api/com/atproto/identity/resolveHandle.ts +2 -11
- package/src/api/com/atproto/identity/updateHandle.ts +4 -7
- package/src/api/com/atproto/server/activateAccount.ts +4 -18
- package/src/api/com/atproto/server/createAccount.ts +10 -11
- package/src/api/com/atproto/server/createSession.ts +1 -1
- package/src/api/com/atproto/server/deleteAccount.ts +2 -3
- package/src/api/com/atproto/server/getSession.ts +1 -1
- package/src/api/com/atproto/server/refreshSession.ts +1 -1
- package/src/api/com/atproto/sync/getRecord.ts +0 -1
- package/src/api/com/atproto/sync/getRepoStatus.ts +1 -1
- package/src/api/com/atproto/sync/listRepos.ts +1 -1
- package/src/api/com/atproto/sync/subscribeRepos.ts +2 -9
- package/src/app-view.ts +24 -0
- package/src/auth-routes.ts +9 -3
- package/src/auth-verifier.ts +1 -1
- package/src/config/config.ts +25 -13
- package/src/config/env.ts +12 -0
- package/src/context.ts +44 -24
- package/src/handle/index.ts +6 -52
- package/src/image/image-url.ts +16 -0
- package/src/lexicon/index.ts +36 -0
- package/src/lexicon/lexicons.ts +183 -67
- package/src/lexicon/types/app/bsky/embed/video.ts +1 -0
- package/src/lexicon/types/com/atproto/identity/defs.ts +30 -0
- package/src/lexicon/types/com/atproto/identity/refreshIdentity.ts +52 -0
- package/src/lexicon/types/com/atproto/identity/resolveDid.ts +52 -0
- package/src/lexicon/types/com/atproto/identity/resolveHandle.ts +1 -0
- package/src/lexicon/types/com/atproto/identity/resolveIdentity.ts +48 -0
- package/src/lexicon/types/com/atproto/sync/subscribeRepos.ts +0 -59
- package/src/mailer/index.ts +7 -5
- package/src/read-after-write/viewer.ts +1 -1
- package/src/repo/types.ts +7 -2
- package/src/scripts/rebuild-repo.ts +4 -1
- package/src/sequencer/db/schema.ts +1 -8
- package/src/sequencer/events.ts +29 -75
- package/src/sequencer/sequencer.ts +9 -23
- package/tests/account-deletion.test.ts +3 -5
- package/tests/oauth.test.ts +286 -71
- package/tests/sequencer.test.ts +18 -27
- package/tests/sync/subscribe-repos.test.ts +67 -45
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/account-manager/index.d.ts.map +0 -1
- package/dist/account-manager/index.js.map +0 -1
- package/dist/actor-store/repo/util.d.ts +0 -5
- package/dist/actor-store/repo/util.d.ts.map +0 -1
- package/dist/actor-store/repo/util.js +0 -25
- package/dist/actor-store/repo/util.js.map +0 -1
- package/dist/oauth/provider.d.ts +0 -10
- package/dist/oauth/provider.d.ts.map +0 -1
- package/dist/oauth/provider.js +0 -38
- package/dist/oauth/provider.js.map +0 -1
- package/src/actor-store/repo/util.ts +0 -22
- package/src/oauth/provider.ts +0 -59
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"app-view.d.ts","sourceRoot":"","sources":["../src/app-view.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,qBAAa,OAAO;IACX,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,QAAQ,CAAA;IACtB,OAAO,CAAC,aAAa,CAAC,CAAQ;gBAElB,OAAO,EAAE,cAAc;IAMnC,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;CAG3E"}
|
package/dist/app-view.js
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.AppView = void 0;
|
4
|
+
const node_util_1 = require("node:util");
|
5
|
+
const api_1 = require("@atproto/api");
|
6
|
+
class AppView {
|
7
|
+
constructor(options) {
|
8
|
+
Object.defineProperty(this, "did", {
|
9
|
+
enumerable: true,
|
10
|
+
configurable: true,
|
11
|
+
writable: true,
|
12
|
+
value: void 0
|
13
|
+
});
|
14
|
+
Object.defineProperty(this, "agent", {
|
15
|
+
enumerable: true,
|
16
|
+
configurable: true,
|
17
|
+
writable: true,
|
18
|
+
value: void 0
|
19
|
+
});
|
20
|
+
Object.defineProperty(this, "cdnUrlPattern", {
|
21
|
+
enumerable: true,
|
22
|
+
configurable: true,
|
23
|
+
writable: true,
|
24
|
+
value: void 0
|
25
|
+
});
|
26
|
+
this.did = options.did;
|
27
|
+
this.agent = new api_1.AtpAgent({ service: options.url });
|
28
|
+
this.cdnUrlPattern = options.cdnUrlPattern;
|
29
|
+
}
|
30
|
+
getImageUrl(pattern, did, cid) {
|
31
|
+
if (this.cdnUrlPattern)
|
32
|
+
return (0, node_util_1.format)(this.cdnUrlPattern, pattern, did, cid);
|
33
|
+
}
|
34
|
+
}
|
35
|
+
exports.AppView = AppView;
|
36
|
+
//# sourceMappingURL=app-view.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"app-view.js","sourceRoot":"","sources":["../src/app-view.ts"],"names":[],"mappings":";;;AAAA,yCAAkC;AAClC,sCAAuC;AAQvC,MAAa,OAAO;IAKlB,YAAY,OAAuB;QAJ5B;;;;;WAAW;QACX;;;;;WAAe;QACd;;;;;WAAsB;QAG5B,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAA;QACtB,IAAI,CAAC,KAAK,GAAG,IAAI,cAAQ,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,GAAG,EAAE,CAAC,CAAA;QACnD,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,CAAA;IAC5C,CAAC;IAED,WAAW,CAAC,OAAe,EAAE,GAAW,EAAE,GAAW;QACnD,IAAI,IAAI,CAAC,aAAa;YAAE,OAAO,IAAA,kBAAM,EAAC,IAAI,CAAC,aAAa,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAA;IAC9E,CAAC;CACF;AAdD,0BAcC"}
|
package/dist/auth-routes.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
import { Router } from 'express';
|
2
2
|
import { AppContext } from './context';
|
3
|
-
export declare const createRouter: ({
|
3
|
+
export declare const createRouter: ({ oauthProvider, cfg }: AppContext) => Router;
|
4
4
|
//# sourceMappingURL=auth-routes.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"auth-routes.d.ts","sourceRoot":"","sources":["../src/auth-routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAEhC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;
|
1
|
+
{"version":3,"file":"auth-routes.d.ts","sourceRoot":"","sources":["../src/auth-routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAEhC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAGtC,eAAO,MAAM,YAAY,2BAA4B,UAAU,KAAG,MAoCjE,CAAA"}
|
package/dist/auth-routes.js
CHANGED
@@ -3,7 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createRouter = void 0;
|
4
4
|
const express_1 = require("express");
|
5
5
|
const oauth_provider_1 = require("@atproto/oauth-provider");
|
6
|
-
const
|
6
|
+
const logger_1 = require("./logger");
|
7
|
+
const createRouter = ({ oauthProvider, cfg }) => {
|
7
8
|
const router = (0, express_1.Router)();
|
8
9
|
const oauthProtectedResourceMetadata = oauth_provider_1.oauthProtectedResourceMetadataSchema.parse({
|
9
10
|
resource: cfg.service.publicUrl,
|
@@ -22,8 +23,13 @@ const createRouter = ({ authProvider, cfg }) => {
|
|
22
23
|
res.setHeader('Access-Control-Allow-Headers', '*');
|
23
24
|
res.status(200).json(oauthProtectedResourceMetadata);
|
24
25
|
});
|
25
|
-
if (
|
26
|
-
|
26
|
+
if (oauthProvider) {
|
27
|
+
const oauthMiddleware = oauthProvider.httpHandler({
|
28
|
+
onError: (req, res, err, message) => {
|
29
|
+
logger_1.oauthLogger.error({ err, req }, message);
|
30
|
+
},
|
31
|
+
});
|
32
|
+
router.use(oauthMiddleware);
|
27
33
|
}
|
28
34
|
return router;
|
29
35
|
};
|
package/dist/auth-routes.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"auth-routes.js","sourceRoot":"","sources":["../src/auth-routes.ts"],"names":[],"mappings":";;;AAAA,qCAAgC;AAChC,4DAA8E;
|
1
|
+
{"version":3,"file":"auth-routes.js","sourceRoot":"","sources":["../src/auth-routes.ts"],"names":[],"mappings":";;;AAAA,qCAAgC;AAChC,4DAA8E;AAE9E,qCAAsC;AAE/B,MAAM,YAAY,GAAG,CAAC,EAAE,aAAa,EAAE,GAAG,EAAc,EAAU,EAAE;IACzE,MAAM,MAAM,GAAG,IAAA,gBAAM,GAAE,CAAA;IAEvB,MAAM,8BAA8B,GAClC,qDAAoC,CAAC,KAAK,CAAC;QACzC,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC,SAAS;QAC/B,qBAAqB,EAAE,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC;QACnE,wBAAwB,EAAE,CAAC,QAAQ,CAAC;QACpC,gBAAgB,EAAE,EAAE;QACpB,sBAAsB,EAAE,qBAAqB;KAC9C,CAAC,CAAA;IAEJ,IACE,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO;QACpB,CAAC,8BAA8B,CAAC,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,EAC/D,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAA;IAC3D,CAAC;IAED,MAAM,CAAC,GAAG,CAAC,uCAAuC,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QAC/D,GAAG,CAAC,SAAS,CAAC,6BAA6B,EAAE,GAAG,CAAC,CAAA;QACjD,GAAG,CAAC,SAAS,CAAC,6BAA6B,EAAE,GAAG,CAAC,CAAA;QACjD,GAAG,CAAC,SAAS,CAAC,8BAA8B,EAAE,GAAG,CAAC,CAAA;QAClD,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAA;IACtD,CAAC,CAAC,CAAA;IAEF,IAAI,aAAa,EAAE,CAAC;QAClB,MAAM,eAAe,GAAG,aAAa,CAAC,WAAW,CAAC;YAChD,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE;gBAClC,oBAAW,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,OAAO,CAAC,CAAA;YAC1C,CAAC;SACF,CAAC,CAAA;QACF,MAAM,CAAC,GAAG,CAAC,eAAe,CAAC,CAAA;IAC7B,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC,CAAA;AApCY,QAAA,YAAY,gBAoCxB"}
|
package/dist/auth-verifier.d.ts
CHANGED
@@ -3,7 +3,7 @@ import * as jose from 'jose';
|
|
3
3
|
import { IdResolver } from '@atproto/identity';
|
4
4
|
import { OAuthVerifier } from '@atproto/oauth-provider';
|
5
5
|
import { AuthVerifierContext, StreamAuthVerifierContext } from '@atproto/xrpc-server';
|
6
|
-
import { AccountManager } from './account-manager';
|
6
|
+
import { AccountManager } from './account-manager/account-manager';
|
7
7
|
type ReqCtx = AuthVerifierContext | StreamAuthVerifierContext;
|
8
8
|
export declare enum AuthScope {
|
9
9
|
Access = "com.atproto.access",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"auth-verifier.d.ts","sourceRoot":"","sources":["../src/auth-verifier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAoC,MAAM,aAAa,CAAA;AAEzE,OAAO,KAAK,IAAI,MAAM,MAAM,CAAA;AAG5B,OAAO,EAAE,UAAU,EAA0B,MAAM,mBAAmB,CAAA;AACtE,OAAO,EAEL,aAAa,EAEd,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAEL,mBAAmB,EAGnB,yBAAyB,EAI1B,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"auth-verifier.d.ts","sourceRoot":"","sources":["../src/auth-verifier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAoC,MAAM,aAAa,CAAA;AAEzE,OAAO,KAAK,IAAI,MAAM,MAAM,CAAA;AAG5B,OAAO,EAAE,UAAU,EAA0B,MAAM,mBAAmB,CAAA;AACtE,OAAO,EAEL,aAAa,EAEd,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAEL,mBAAmB,EAGnB,yBAAyB,EAI1B,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAGlE,KAAK,MAAM,GAAG,mBAAmB,GAAG,yBAAyB,CAAA;AAG7D,oBAAY,SAAS;IACnB,MAAM,uBAAuB;IAC7B,OAAO,wBAAwB;IAC/B,OAAO,wBAAwB;IAC/B,iBAAiB,kCAAkC;IACnD,YAAY,6BAA6B;IACzC,SAAS,0BAA0B;CACpC;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,UAAU,EAAE,SAAS,EAAE,CAAA;IACvB,aAAa,EAAE,OAAO,CAAA;IACtB,gBAAgB,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,oBAAY,UAAU;IACpB,KAAK,IAAA;IACL,OAA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AAM,EACX,MAAM,EAAE,SAAS,EAAE,GAClB,OAAO,CAAC,YAAY,CAAC;cAsBR,gBAAgB,CAC9B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;KAAE;;;;IA2CpD,SAAS,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU;IAOvC,aAAa,CACX,IAAI,EAAE,YAAY,GAAG,gBAAgB,GAAG,UAAU,EAClD,GAAG,EAAE,MAAM,GACV,OAAO;cAUM,SAAS,CACvB,KAAK,EAAE,MAAM,EACb,aAAa,CAAC,EAAE,IAAI,CAAC,gBAAgB;IAevC,SAAS,CAAC,cAAc,CAAC,GAAG,EAAE,MAAM;CAOrC;AAKD,aAAK,QAAQ;IACX,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,eAAO,MAAM,wBAAwB,mBACnB,MAAM,KACrB,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,CAqB/C,CAAA;AAsBD,eAAO,MAAM,cAAc,yBACH,MAAM,KAC3B;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG,IAc3C,CAAA;AAOD,eAAO,MAAM,qBAAqB,WAAY,MAAM,KAAG,SAEtD,CAAA;AAED,eAAO,MAAM,qBAAqB,iBAAkB,MAAM,KAAG,SAG5D,CAAA"}
|
package/dist/config/config.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { BrandingConfig, HcaptchaConfig } from '@atproto/oauth-provider';
|
2
2
|
import { ServerEnvironment } from './env';
|
3
3
|
export declare const envToCfg: (env: ServerEnvironment) => ServerConfig;
|
4
4
|
export type ServerConfig = {
|
@@ -102,7 +102,8 @@ export type ProxyConfig = {
|
|
102
102
|
export type OAuthConfig = {
|
103
103
|
issuer: string;
|
104
104
|
provider: false | {
|
105
|
-
|
105
|
+
hcaptcha?: HcaptchaConfig;
|
106
|
+
branding: BrandingConfig;
|
106
107
|
};
|
107
108
|
};
|
108
109
|
export type InvitesConfig = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAKzC,eAAO,MAAM,QAAQ,QAAS,iBAAiB,KAAG,YAmUjD,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,aAAa,CAAA;IACtB,EAAE,EAAE,cAAc,CAAA;IAClB,UAAU,EAAE,gBAAgB,CAAA;IAC5B,SAAS,EAAE,iBAAiB,GAAG,mBAAmB,CAAA;IAClD,QAAQ,EAAE,cAAc,CAAA;IACxB,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAA;IAC/B,OAAO,EAAE,aAAa,CAAA;IACtB,KAAK,EAAE,WAAW,GAAG,IAAI,CAAA;IACzB,eAAe,EAAE,WAAW,GAAG,IAAI,CAAA;IACnC,YAAY,EAAE,kBAAkB,CAAA;IAChC,WAAW,EAAE,iBAAiB,GAAG,IAAI,CAAA;IACrC,UAAU,EAAE,gBAAgB,GAAG,IAAI,CAAA;IACnC,aAAa,EAAE,mBAAmB,GAAG,IAAI,CAAA;IACzC,KAAK,EAAE,kBAAkB,GAAG,IAAI,CAAA;IAChC,UAAU,EAAE,gBAAgB,CAAA;IAC5B,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,KAAK,EAAE,WAAW,CAAA;IAClB,KAAK,EAAE,WA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CAAA;AAEL,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAA;IACjB,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,gBAAgB,GACxB;IACE,OAAO,EAAE,IAAI,CAAA;IACb,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;CACrB,GACD;IAAE,OAAO,EAAE,KAAK,CAAA;CAAE,CAAA;AAEtB,MAAM,MAAM,iBAAiB,GAAG;IAC9B,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA"}
|
package/dist/config/config.js
CHANGED
@@ -222,36 +222,46 @@ const envToCfg = (env) => {
|
|
222
222
|
: {
|
223
223
|
issuer: serviceCfg.publicUrl,
|
224
224
|
provider: {
|
225
|
-
|
225
|
+
hcaptcha: env.hcaptchaSiteKey &&
|
226
|
+
env.hcaptchaSecretKey &&
|
227
|
+
env.hcaptchaTokenSalt
|
228
|
+
? {
|
229
|
+
siteKey: env.hcaptchaSiteKey,
|
230
|
+
secretKey: env.hcaptchaSecretKey,
|
231
|
+
tokenSalt: env.hcaptchaTokenSalt,
|
232
|
+
}
|
233
|
+
: undefined,
|
234
|
+
branding: {
|
226
235
|
name: env.serviceName ?? 'Personal PDS',
|
227
236
|
logo: env.logoUrl,
|
228
237
|
colors: {
|
229
238
|
brand: env.brandColor,
|
230
239
|
error: env.errorColor,
|
231
240
|
warning: env.warningColor,
|
241
|
+
success: env.successColor,
|
232
242
|
},
|
233
243
|
links: [
|
234
244
|
{
|
235
|
-
title: 'Home',
|
245
|
+
title: { en: 'Home', fr: 'Accueil' },
|
236
246
|
href: env.homeUrl,
|
237
|
-
rel: '
|
247
|
+
rel: 'canonical', // Prevents login page from being indexed
|
238
248
|
},
|
239
249
|
{
|
240
|
-
title: 'Terms of Service',
|
250
|
+
title: { en: 'Terms of Service' },
|
241
251
|
href: env.termsOfServiceUrl,
|
242
252
|
rel: 'terms-of-service',
|
243
253
|
},
|
244
254
|
{
|
245
|
-
title: 'Privacy Policy',
|
255
|
+
title: { en: 'Privacy Policy' },
|
246
256
|
href: env.privacyPolicyUrl,
|
247
257
|
rel: 'privacy-policy',
|
248
258
|
},
|
249
259
|
{
|
250
|
-
title: 'Support',
|
260
|
+
title: { en: 'Support' },
|
251
261
|
href: env.supportUrl,
|
252
262
|
rel: 'help',
|
253
263
|
},
|
254
|
-
].filter((f) => f.href != null),
|
264
|
+
].filter((f) => f.href != null && f.href !== ''),
|
255
265
|
},
|
256
266
|
},
|
257
267
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":";;;;;;AAAA,8DAAgC;AAChC,0DAA4B;AAC5B,4CAAmD;AAInD,iCAAiC;AACjC,gEAAgE;AAEzD,MAAM,QAAQ,GAAG,CAAC,GAAsB,EAAgB,EAAE;IAC/D,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,IAAI,IAAI,CAAA;IAC7B,MAAM,QAAQ,GAAG,GAAG,CAAC,QAAQ,IAAI,WAAW,CAAA;IAC5C,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,WAAW,EAAE,cAAc;QAC3B,UAAU,EAAE,aAAa;QACzB,aAAa,EAAE,gBAAgB;QAC/B,KAAK,EAAE,QAAQ;QACf,UAAU,EAAE,aAAa;QACzB,QAAQ,EAAE,WAAW;QACrB,KAAK,EAAE,QAAQ;QACf,KAAK,EAAE,QAAQ;QACf,KAAK,EAAE,QAAQ;KAChB,CAAA;AACH,CAAC,CAAA;AAnUY,QAAA,QAAQ,YAmUpB"}
|
package/dist/config/env.d.ts
CHANGED
@@ -14,9 +14,13 @@ export type ServerEnvironment = {
|
|
14
14
|
acceptingImports?: boolean;
|
15
15
|
blobUploadLimit?: number;
|
16
16
|
devMode?: boolean;
|
17
|
+
hcaptchaSiteKey?: string;
|
18
|
+
hcaptchaSecretKey?: string;
|
19
|
+
hcaptchaTokenSalt?: string;
|
17
20
|
brandColor?: string;
|
18
21
|
errorColor?: string;
|
19
22
|
warningColor?: string;
|
23
|
+
successColor?: string;
|
20
24
|
dataDirectory?: string;
|
21
25
|
disableWalAutoCheckpoint?: boolean;
|
22
26
|
accountDbLocation?: string;
|
package/dist/config/env.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/config/env.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,QAAO,
|
1
|
+
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/config/env.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,QAAO,iBAyI1B,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAE9B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,gBAAgB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GnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IAGtB,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,+BAA+B,CAAC,EAAE,MAAM,CAAA;IAGxC,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAG/B,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAG7B,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAChC,CAAA"}
|
package/dist/config/env.js
CHANGED
@@ -19,10 +19,15 @@ const readEnv = () => {
|
|
19
19
|
acceptingImports: (0, common_1.envBool)('PDS_ACCEPTING_REPO_IMPORTS'),
|
20
20
|
blobUploadLimit: (0, common_1.envInt)('PDS_BLOB_UPLOAD_LIMIT'),
|
21
21
|
devMode: (0, common_1.envBool)('PDS_DEV_MODE'),
|
22
|
+
// OAuth
|
23
|
+
hcaptchaSiteKey: (0, common_1.envStr)('PDS_HCAPTCHA_SITE_KEY'),
|
24
|
+
hcaptchaSecretKey: (0, common_1.envStr)('PDS_HCAPTCHA_SECRET_KEY'),
|
25
|
+
hcaptchaTokenSalt: (0, common_1.envStr)('PDS_HCAPTCHA_TOKEN_SALT'),
|
22
26
|
// branding
|
23
27
|
brandColor: (0, common_1.envStr)('PDS_PRIMARY_COLOR'),
|
24
28
|
errorColor: (0, common_1.envStr)('PDS_ERROR_COLOR'),
|
25
29
|
warningColor: (0, common_1.envStr)('PDS_WARNING_COLOR'),
|
30
|
+
successColor: (0, common_1.envStr)('PDS_SUCCESS_COLOR'),
|
26
31
|
// database
|
27
32
|
dataDirectory: (0, common_1.envStr)('PDS_DATA_DIRECTORY'),
|
28
33
|
disableWalAutoCheckpoint: (0, common_1.envBool)('PDS_SQLITE_DISABLE_WAL_AUTO_CHECKPOINT'),
|
package/dist/config/env.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../src/config/env.ts"],"names":[],"mappings":";;;AAAA,4CAAkE;AAE3D,MAAM,OAAO,GAAG,GAAsB,EAAE;IAC7C,OAAO;QACL,UAAU;QACV,IAAI,EAAE,IAAA,eAAM,EAAC,UAAU,CAAC;QACxB,QAAQ,EAAE,IAAA,eAAM,EAAC,cAAc,CAAC;QAChC,UAAU,EAAE,IAAA,eAAM,EAAC,iBAAiB,CAAC;QACrC,WAAW,EAAE,IAAA,eAAM,EAAC,kBAAkB,CAAC;QACvC,OAAO,EAAE,IAAA,eAAM,EAAC,aAAa,CAAC;QAC9B,OAAO,EAAE,IAAA,eAAM,EAAC,cAAc,CAAC;QAC/B,OAAO,EAAE,IAAA,eAAM,EAAC,cAAc,CAAC;QAC/B,gBAAgB,EAAE,IAAA,eAAM,EAAC,wBAAwB,CAAC;QAClD,UAAU,EAAE,IAAA,eAAM,EAAC,iBAAiB,CAAC;QACrC,iBAAiB,EAAE,IAAA,eAAM,EAAC,0BAA0B,CAAC;QACrD,mBAAmB,EAAE,IAAA,eAAM,EAAC,2BAA2B,CAAC;QACxD,gBAAgB,EAAE,IAAA,gBAAO,EAAC,4BAA4B,CAAC;QACvD,eAAe,EAAE,IAAA,eAAM,EAAC,uBAAuB,CAAC;QAChD,OAAO,EAAE,IAAA,gBAAO,EAAC,cAAc,CAAC;QAEhC,WAAW;QACX,UAAU,EAAE,IAAA,eAAM,EAAC,mBAAmB,CAAC;QACvC,UAAU,EAAE,IAAA,eAAM,EAAC,iBAAiB,CAAC;QACrC,YAAY,EAAE,IAAA,eAAM,EAAC,mBAAmB,CAAC;QAEzC,WAAW;QACX,aAAa,EAAE,IAAA,eAAM,EAAC,oBAAoB,CAAC;QAC3C,wBAA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BAAkB,EAAE,IAAA,gBAAO,EAAC,2BAA2B,CAAC;QAExD,QAAQ;QACR,mBAAmB,EAAE,IAAA,eAAM,EAAC,2BAA2B,CAAC;QACxD,oBAAoB,EAAE,IAAA,eAAM,EAAC,4BAA4B,CAAC;QAE1D,WAAW;QACX,QAAQ,EAAE,IAAA,gBAAO,EAAC,cAAc,CAAC;QAEjC,UAAU;QACV,UAAU,EAAE,IAAA,eAAM,EAAC,iBAAiB,CAAC;QACrC,SAAS,EAAE,IAAA,eAAM,EAAC,gBAAgB,CAAC;QACnC,aAAa,EAAE,IAAA,eAAM,EAAC,oBAAoB,CAAC;QAE3C,MAAM;QACN,sBAAsB,EAAE,IAAA,eAAM,EAAC,iCAAiC,CAAC;QACjE,SAAS;QACT,+BAA+B,EAAE,IAAA,eAAM,EACrC,2CAA2C,CAC5C;QAED,kCAAkC;QAClC,qBAAqB,EAAE,IAAA,gBAAO,EAAC,6BAA6B,CAAC;QAE7D,QAAQ;QACR,oBAAoB,EAAE,IAAA,eAAM,EAAC,6BAA6B,CAAC;QAE3D,QAAQ;QACR,eAAe,EAAE,IAAA,gBAAO,EAAC,uBAAuB,CAAC;QACjD,mBAAmB,EAAE,IAAA,eAAM,EAAC,2BAA2B,CAAC;QACxD,gBAAgB,EAAE,IAAA,eAAM,EAAC,wBAAwB,CAAC;QAClD,oBAAoB,EAAE,IAAA,eAAM,EAAC,6BAA6B,CAAC;QAC3D,eAAe,EAAE,IAAA,eAAM,EAAC,uBAAuB,CAAC;QAChD,qBAAqB,EAAE,IAAA,gBAAO,EAAC,6BAA6B,CAAC;KAC9D,CAAA;AACH,CAAC,CAAA;AAzIY,QAAA,OAAO,WAyInB"}
|
package/dist/context.d.ts
CHANGED
@@ -5,10 +5,11 @@ import * as undici from 'undici';
|
|
5
5
|
import { AtpAgent } from '@atproto/api';
|
6
6
|
import * as crypto from '@atproto/crypto';
|
7
7
|
import { IdResolver } from '@atproto/identity';
|
8
|
+
import { OAuthProvider } from '@atproto/oauth-provider';
|
8
9
|
import { BlobStore } from '@atproto/repo';
|
9
10
|
import { RateLimiterCreator } from '@atproto/xrpc-server';
|
10
11
|
import { Fetch } from '@atproto-labs/fetch-node';
|
11
|
-
import { AccountManager } from './account-manager';
|
12
|
+
import { AccountManager } from './account-manager/account-manager';
|
12
13
|
import { ActorStore } from './actor-store/actor-store';
|
13
14
|
import { AuthVerifier } from './auth-verifier';
|
14
15
|
import { BackgroundQueue } from './background';
|
@@ -18,7 +19,6 @@ import { Crawlers } from './crawlers';
|
|
18
19
|
import { DidSqliteCache } from './did-cache';
|
19
20
|
import { ServerMailer } from './mailer';
|
20
21
|
import { ModerationMailer } from './mailer/moderation';
|
21
|
-
import { PdsOAuthProvider } from './oauth/provider';
|
22
22
|
import { LocalViewerCreator } from './read-after-write/viewer';
|
23
23
|
import { Sequencer } from './sequencer';
|
24
24
|
export type AppContextOptions = {
|
@@ -42,7 +42,7 @@ export type AppContextOptions = {
|
|
42
42
|
entrywayAgent?: AtpAgent;
|
43
43
|
proxyAgent: undici.Dispatcher;
|
44
44
|
safeFetch: Fetch;
|
45
|
-
|
45
|
+
oauthProvider?: OAuthProvider;
|
46
46
|
authVerifier: AuthVerifier;
|
47
47
|
plcRotationKey: crypto.Keypair;
|
48
48
|
cfg: ServerConfig;
|
@@ -69,7 +69,7 @@ export declare class AppContext {
|
|
69
69
|
proxyAgent: undici.Dispatcher;
|
70
70
|
safeFetch: Fetch;
|
71
71
|
authVerifier: AuthVerifier;
|
72
|
-
|
72
|
+
oauthProvider?: OAuthProvider;
|
73
73
|
plcRotationKey: crypto.Keypair;
|
74
74
|
cfg: ServerConfig;
|
75
75
|
constructor(opts: AppContextOptions);
|
package/dist/context.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,GAAG,MAAM,cAAc,CAAA;AACnC,OAAO,OAAO,MAAM,SAAS,CAAA;A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AAM,EAAE,GAAG,EAAE,MAAM;;;;;IAUxD,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;CAS3D"}
|
package/dist/context.js
CHANGED
@@ -38,7 +38,8 @@ const identity_1 = require("@atproto/identity");
|
|
38
38
|
const oauth_provider_1 = require("@atproto/oauth-provider");
|
39
39
|
const xrpc_server_1 = require("@atproto/xrpc-server");
|
40
40
|
const fetch_node_1 = require("@atproto-labs/fetch-node");
|
41
|
-
const account_manager_1 = require("./account-manager");
|
41
|
+
const account_manager_1 = require("./account-manager/account-manager");
|
42
|
+
const oauth_store_1 = require("./account-manager/oauth-store");
|
42
43
|
const actor_store_1 = require("./actor-store/actor-store");
|
43
44
|
const proxy_1 = require("./api/proxy");
|
44
45
|
const auth_verifier_1 = require("./auth-verifier");
|
@@ -51,7 +52,6 @@ const image_url_builder_1 = require("./image/image-url-builder");
|
|
51
52
|
const logger_1 = require("./logger");
|
52
53
|
const mailer_1 = require("./mailer");
|
53
54
|
const moderation_1 = require("./mailer/moderation");
|
54
|
-
const provider_1 = require("./oauth/provider");
|
55
55
|
const viewer_1 = require("./read-after-write/viewer");
|
56
56
|
const redis_1 = require("./redis");
|
57
57
|
const sequencer_1 = require("./sequencer");
|
@@ -183,7 +183,7 @@ class AppContext {
|
|
183
183
|
writable: true,
|
184
184
|
value: void 0
|
185
185
|
});
|
186
|
-
Object.defineProperty(this, "
|
186
|
+
Object.defineProperty(this, "oauthProvider", {
|
187
187
|
enumerable: true,
|
188
188
|
configurable: true,
|
189
189
|
writable: true,
|
@@ -222,7 +222,7 @@ class AppContext {
|
|
222
222
|
this.proxyAgent = opts.proxyAgent;
|
223
223
|
this.safeFetch = opts.safeFetch;
|
224
224
|
this.authVerifier = opts.authVerifier;
|
225
|
-
this.
|
225
|
+
this.oauthProvider = opts.oauthProvider;
|
226
226
|
this.plcRotationKey = opts.plcRotationKey;
|
227
227
|
this.cfg = opts.cfg;
|
228
228
|
}
|
@@ -303,7 +303,7 @@ class AppContext {
|
|
303
303
|
blobstore,
|
304
304
|
backgroundQueue,
|
305
305
|
});
|
306
|
-
const accountManager = new account_manager_1.AccountManager(
|
306
|
+
const accountManager = new account_manager_1.AccountManager(idResolver, jwtSecretKey, cfg.service.did, cfg.identity.serviceHandleDomains, cfg.db);
|
307
307
|
await accountManager.migrateOrThrow();
|
308
308
|
const plcRotationKey = secrets.plcRotationKey.provider === 'kms'
|
309
309
|
? await aws_1.KmsKeypair.load({
|
@@ -358,24 +358,30 @@ class AppContext {
|
|
358
358
|
logResponse: false,
|
359
359
|
logError: false,
|
360
360
|
});
|
361
|
-
const
|
362
|
-
? new
|
361
|
+
const oauthProvider = cfg.oauth.provider
|
362
|
+
? new oauth_provider_1.OAuthProvider({
|
363
363
|
issuer: cfg.oauth.issuer,
|
364
|
-
keyset: [
|
365
|
-
|
366
|
-
await oauth_provider_1.JoseKey.fromKeyLike(jwtSecretKey, undefined, 'HS256'),
|
367
|
-
],
|
368
|
-
accountManager,
|
364
|
+
keyset: [await oauth_provider_1.JoseKey.fromKeyLike(jwtSecretKey, undefined, 'HS256')],
|
365
|
+
store: new oauth_store_1.OAuthStore(accountManager, actorStore, imageUrlBuilder, backgroundQueue, mailer, sequencer, plcClient, plcRotationKey, cfg.service.publicUrl, cfg.identity.recoveryDidKey),
|
369
366
|
redis: redisScratch,
|
370
367
|
dpopSecret: secrets.dpopSecret,
|
371
|
-
|
368
|
+
inviteCodeRequired: cfg.invites.required,
|
369
|
+
availableUserDomains: cfg.identity.serviceHandleDomains,
|
370
|
+
hcaptcha: cfg.oauth.provider.hcaptcha,
|
371
|
+
branding: cfg.oauth.provider.branding,
|
372
372
|
safeFetch,
|
373
|
-
|
374
|
-
|
375
|
-
|
373
|
+
metadata: {
|
374
|
+
protected_resources: [new URL(cfg.oauth.issuer).origin],
|
375
|
+
scopes_supported: ['transition:generic', 'transition:chat.bsky'],
|
376
|
+
},
|
377
|
+
// If the PDS is both an authorization server & resource server (no
|
378
|
+
// entryway), there is no need to use JWTs as access tokens. Instead,
|
379
|
+
// the PDS can use tokenId as access tokens. This allows the PDS to
|
380
|
+
// always use up-to-date token data from the token store.
|
381
|
+
accessTokenType: oauth_provider_1.AccessTokenType.id,
|
376
382
|
})
|
377
383
|
: undefined;
|
378
|
-
const oauthVerifier =
|
384
|
+
const oauthVerifier = oauthProvider ?? // OAuthProvider extends OAuthVerifier
|
379
385
|
new oauth_provider_1.OAuthVerifier({
|
380
386
|
issuer: cfg.oauth.issuer,
|
381
387
|
keyset: [await oauth_provider_1.JoseKey.fromKeyLike(jwtPublicKey, undefined, 'ES256K')],
|
@@ -414,7 +420,7 @@ class AppContext {
|
|
414
420
|
proxyAgent,
|
415
421
|
safeFetch,
|
416
422
|
authVerifier,
|
417
|
-
|
423
|
+
oauthProvider,
|
418
424
|
plcRotationKey,
|
419
425
|
cfg,
|
420
426
|
...(overrides ?? {}),
|
package/dist/context.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8DAAgC;AAChC,kDAAmC;AAGnC,uDAAwC;AACxC,+CAAgC;AAChC,sCAAuC;AACvC,sCAAsD;AACtD,wDAAyC;AACzC,gDAA8C;AAC9C,4DAAgE;AAEhE,sDAM6B;AAC7B,yDAMiC;AACjC,uDAAkD;AAClD,2DAAsD;AACtD,uCAAwD;AACxD,mDAIwB;AACxB,6CAA8C;AAC9C,mDAA6C;AAE7C,yCAAqC;AACrC,2CAA4C;AAC5C,qDAAgD;AAChD,iEAA2D;AAC3D,qCAAsC;AACtC,qCAAuC;AACvC,oDAAsD;AACtD,+CAAmD;AACnD,sDAA2E;AAC3E,mCAAwC;AACxC,2CAAuC;AA6BvC,MAAa,UAAU;IA0BrB,YAAY,IAAuB;QAzB5B;;;;;WAAsB;QACtB;;;;;WAAqC;QACrC;;;;;WAA+B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A;QAClD,OAAO,IAAA,8BAAgB,EAAC;YACtB,GAAG,EAAE,GAAG;YACR,GAAG;YACH,GAAG;YACH,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;CACF;AAtXD,gCAsXC"}
|
package/dist/handle/index.d.ts
CHANGED
@@ -1,10 +1,3 @@
|
|
1
|
-
import { AppContext } from '../context';
|
2
|
-
export declare const normalizeAndValidateHandle: (opts: {
|
3
|
-
ctx: AppContext;
|
4
|
-
handle: string;
|
5
|
-
did?: string;
|
6
|
-
allowReserved?: boolean;
|
7
|
-
}) => Promise<string>;
|
8
1
|
export declare const baseNormalizeAndValidate: (handle: string) => string;
|
9
2
|
export declare const isServiceDomain: (handle: string, availableUserDomains: string[]) => boolean;
|
10
3
|
export declare const ensureHandleServiceConstraints: (handle: string, availableUserDomains: string[], allowReserved?: boolean) => void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/handle/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/handle/index.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,wBAAwB,WAAY,MAAM,WAStD,CAAA;AAED,eAAO,MAAM,eAAe,WAClB,MAAM,wBACQ,MAAM,EAAE,KAC7B,OAEF,CAAA;AAED,eAAO,MAAM,8BAA8B,WACjC,MAAM,wBACQ,MAAM,EAAE,8BAE7B,IAmBF,CAAA"}
|