@atproto/pds 0.4.33 → 0.4.35
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +17 -0
- package/dist/account-manager/db/migrations/004-oauth.d.ts +4 -0
- package/dist/account-manager/db/migrations/004-oauth.d.ts.map +1 -0
- package/dist/account-manager/db/migrations/004-oauth.js +106 -0
- package/dist/account-manager/db/migrations/004-oauth.js.map +1 -0
- package/dist/account-manager/db/migrations/index.d.ts +2 -0
- package/dist/account-manager/db/migrations/index.d.ts.map +1 -1
- package/dist/account-manager/db/migrations/index.js +2 -0
- package/dist/account-manager/db/migrations/index.js.map +1 -1
- package/dist/account-manager/db/schema/authorization-request.d.ts +19 -0
- package/dist/account-manager/db/schema/authorization-request.d.ts.map +1 -0
- package/dist/account-manager/db/schema/authorization-request.js +5 -0
- package/dist/account-manager/db/schema/authorization-request.js.map +1 -0
- package/dist/account-manager/db/schema/device-account.d.ts +14 -0
- package/dist/account-manager/db/schema/device-account.d.ts.map +1 -0
- package/dist/account-manager/db/schema/device-account.js +5 -0
- package/dist/account-manager/db/schema/device-account.js.map +1 -0
- package/dist/account-manager/db/schema/device.d.ts +16 -0
- package/dist/account-manager/db/schema/device.d.ts.map +1 -0
- package/dist/account-manager/db/schema/device.js +5 -0
- package/dist/account-manager/db/schema/device.js.map +1 -0
- package/dist/account-manager/db/schema/index.d.ts +11 -1
- package/dist/account-manager/db/schema/index.d.ts.map +1 -1
- package/dist/account-manager/db/schema/token.d.ts +24 -0
- package/dist/account-manager/db/schema/token.d.ts.map +1 -0
- package/dist/account-manager/db/schema/token.js +5 -0
- package/dist/account-manager/db/schema/token.js.map +1 -0
- package/dist/account-manager/db/schema/used-refresh-token.d.ts +12 -0
- package/dist/account-manager/db/schema/used-refresh-token.d.ts.map +1 -0
- package/dist/account-manager/db/schema/used-refresh-token.js +5 -0
- package/dist/account-manager/db/schema/used-refresh-token.js.map +1 -0
- package/dist/account-manager/helpers/account.d.ts +27 -5
- package/dist/account-manager/helpers/account.d.ts.map +1 -1
- package/dist/account-manager/helpers/account.js +15 -14
- package/dist/account-manager/helpers/account.js.map +1 -1
- package/dist/account-manager/helpers/authorization-request.d.ts +12 -0
- package/dist/account-manager/helpers/authorization-request.d.ts.map +1 -0
- package/dist/account-manager/helpers/authorization-request.js +59 -0
- package/dist/account-manager/helpers/authorization-request.js.map +1 -0
- package/dist/account-manager/helpers/device-account.d.ts +108 -0
- package/dist/account-manager/helpers/device-account.d.ts.map +1 -0
- package/dist/account-manager/helpers/device-account.js +82 -0
- package/dist/account-manager/helpers/device-account.js.map +1 -0
- package/dist/account-manager/helpers/device.d.ts +9 -0
- package/dist/account-manager/helpers/device.d.ts.map +1 -0
- package/dist/account-manager/helpers/device.js +32 -0
- package/dist/account-manager/helpers/device.js.map +1 -0
- package/dist/account-manager/helpers/token.d.ts +485 -0
- package/dist/account-manager/helpers/token.d.ts.map +1 -0
- package/dist/account-manager/helpers/token.js +123 -0
- package/dist/account-manager/helpers/token.js.map +1 -0
- package/dist/account-manager/helpers/used-refresh-token.d.ts +10 -0
- package/dist/account-manager/helpers/used-refresh-token.d.ts.map +1 -0
- package/dist/account-manager/helpers/used-refresh-token.js +25 -0
- package/dist/account-manager/helpers/used-refresh-token.js.map +1 -0
- package/dist/account-manager/index.d.ts +36 -6
- package/dist/account-manager/index.d.ts.map +1 -1
- package/dist/account-manager/index.js +223 -22
- package/dist/account-manager/index.js.map +1 -1
- package/dist/actor-store/preference/reader.d.ts +2 -1
- package/dist/actor-store/preference/reader.d.ts.map +1 -1
- package/dist/actor-store/preference/reader.js +3 -1
- package/dist/actor-store/preference/reader.js.map +1 -1
- package/dist/actor-store/preference/transactor.d.ts +2 -1
- package/dist/actor-store/preference/transactor.d.ts.map +1 -1
- package/dist/actor-store/preference/transactor.js +7 -1
- package/dist/actor-store/preference/transactor.js.map +1 -1
- package/dist/actor-store/preference/util.d.ts +3 -0
- package/dist/actor-store/preference/util.d.ts.map +1 -0
- package/dist/actor-store/preference/util.js +12 -0
- package/dist/actor-store/preference/util.js.map +1 -0
- package/dist/actor-store/record/reader.d.ts +1 -1
- package/dist/api/app/bsky/actor/getPreferences.d.ts.map +1 -1
- package/dist/api/app/bsky/actor/getPreferences.js +1 -6
- package/dist/api/app/bsky/actor/getPreferences.js.map +1 -1
- package/dist/api/app/bsky/actor/putPreferences.d.ts.map +1 -1
- package/dist/api/app/bsky/actor/putPreferences.js +1 -1
- package/dist/api/app/bsky/actor/putPreferences.js.map +1 -1
- package/dist/api/app/bsky/util/resolver.d.ts +1 -1
- package/dist/api/com/atproto/server/createSession.d.ts.map +1 -1
- package/dist/api/com/atproto/server/createSession.js +7 -31
- package/dist/api/com/atproto/server/createSession.js.map +1 -1
- package/dist/api/com/atproto/server/deleteSession.d.ts.map +1 -1
- package/dist/api/com/atproto/server/deleteSession.js +14 -13
- package/dist/api/com/atproto/server/deleteSession.js.map +1 -1
- package/dist/api/com/atproto/server/getSession.d.ts.map +1 -1
- package/dist/api/com/atproto/server/getSession.js +4 -2
- package/dist/api/com/atproto/server/getSession.js.map +1 -1
- package/dist/api/com/atproto/server/refreshSession.d.ts.map +1 -1
- package/dist/api/com/atproto/server/refreshSession.js +4 -2
- package/dist/api/com/atproto/server/refreshSession.js.map +1 -1
- package/dist/api/com/atproto/sync/getRepoStatus.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/getRepoStatus.js +2 -1
- package/dist/api/com/atproto/sync/getRepoStatus.js.map +1 -1
- package/dist/api/com/atproto/sync/listRepos.js +2 -2
- package/dist/api/com/atproto/sync/listRepos.js.map +1 -1
- package/dist/api/proxy.d.ts.map +1 -1
- package/dist/api/proxy.js +15 -2
- package/dist/api/proxy.js.map +1 -1
- package/dist/auth-routes.d.ts +4 -0
- package/dist/auth-routes.d.ts.map +1 -0
- package/dist/auth-routes.js +24 -0
- package/dist/auth-routes.js.map +1 -0
- package/dist/auth-verifier.d.ts +32 -11
- package/dist/auth-verifier.d.ts.map +1 -1
- package/dist/auth-verifier.js +238 -79
- package/dist/auth-verifier.js.map +1 -1
- package/dist/config/config.d.ts +12 -0
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +45 -0
- package/dist/config/config.js.map +1 -1
- package/dist/config/env.d.ts +8 -0
- package/dist/config/env.d.ts.map +1 -1
- package/dist/config/env.js +10 -0
- package/dist/config/env.js.map +1 -1
- package/dist/config/secrets.d.ts +1 -0
- package/dist/config/secrets.d.ts.map +1 -1
- package/dist/config/secrets.js +1 -0
- package/dist/config/secrets.js.map +1 -1
- package/dist/context.d.ts +6 -0
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +71 -13
- package/dist/context.js.map +1 -1
- package/dist/db/cast.d.ts +15 -0
- package/dist/db/cast.d.ts.map +1 -0
- package/dist/db/cast.js +66 -0
- package/dist/db/cast.js.map +1 -0
- package/dist/db/db.d.ts +2 -2
- package/dist/db/db.d.ts.map +1 -1
- package/dist/db/db.js +9 -7
- package/dist/db/db.js.map +1 -1
- package/dist/db/index.d.ts +1 -0
- package/dist/db/index.d.ts.map +1 -1
- package/dist/db/index.js +1 -0
- package/dist/db/index.js.map +1 -1
- package/dist/error.d.ts.map +1 -1
- package/dist/error.js +5 -0
- package/dist/error.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/lexicon/index.d.ts +4 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +8 -0
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +51 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +51 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/defs.d.ts +1 -0
- package/dist/lexicon/types/app/bsky/feed/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/muteThread.d.ts +29 -0
- package/dist/lexicon/types/app/bsky/graph/muteThread.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/graph/muteThread.js +3 -0
- package/dist/lexicon/types/app/bsky/graph/muteThread.js.map +1 -0
- package/dist/lexicon/types/app/bsky/graph/unmuteThread.d.ts +29 -0
- package/dist/lexicon/types/app/bsky/graph/unmuteThread.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/graph/unmuteThread.js +3 -0
- package/dist/lexicon/types/app/bsky/graph/unmuteThread.js.map +1 -0
- package/dist/logger.d.ts +13 -11
- package/dist/logger.d.ts.map +1 -1
- package/dist/logger.js +80 -64
- package/dist/logger.js.map +1 -1
- package/dist/oauth/detailed-account-store.d.ts +27 -0
- package/dist/oauth/detailed-account-store.d.ts.map +1 -0
- package/dist/oauth/detailed-account-store.js +76 -0
- package/dist/oauth/detailed-account-store.js.map +1 -0
- package/dist/oauth/provider.d.ts +16 -0
- package/dist/oauth/provider.d.ts.map +1 -0
- package/dist/oauth/provider.js +45 -0
- package/dist/oauth/provider.js.map +1 -0
- package/dist/pipethrough.d.ts.map +1 -1
- package/dist/pipethrough.js.map +1 -1
- package/dist/sequencer/events.d.ts +2 -2
- package/example.env +21 -3
- package/package.json +9 -7
- package/src/account-manager/db/migrations/004-oauth.ts +122 -0
- package/src/account-manager/db/migrations/index.ts +2 -0
- package/src/account-manager/db/schema/authorization-request.ts +26 -0
- package/src/account-manager/db/schema/device-account.ts +15 -0
- package/src/account-manager/db/schema/device.ts +18 -0
- package/src/account-manager/db/schema/index.ts +15 -0
- package/src/account-manager/db/schema/token.ts +34 -0
- package/src/account-manager/db/schema/used-refresh-token.ts +13 -0
- package/src/account-manager/helpers/account.ts +16 -21
- package/src/account-manager/helpers/authorization-request.ts +82 -0
- package/src/account-manager/helpers/device-account.ts +135 -0
- package/src/account-manager/helpers/device.ts +45 -0
- package/src/account-manager/helpers/token.ts +185 -0
- package/src/account-manager/helpers/used-refresh-token.ts +30 -0
- package/src/account-manager/index.ts +325 -20
- package/src/actor-store/preference/reader.ts +8 -2
- package/src/actor-store/preference/transactor.ts +10 -0
- package/src/actor-store/preference/util.ts +8 -0
- package/src/api/app/bsky/actor/getPreferences.ts +2 -9
- package/src/api/app/bsky/actor/putPreferences.ts +5 -1
- package/src/api/com/atproto/server/createSession.ts +8 -44
- package/src/api/com/atproto/server/deleteSession.ts +14 -20
- package/src/api/com/atproto/server/getSession.ts +7 -2
- package/src/api/com/atproto/server/refreshSession.ts +6 -2
- package/src/api/com/atproto/sync/getRepoStatus.ts +3 -1
- package/src/api/com/atproto/sync/listRepos.ts +1 -1
- package/src/api/proxy.ts +18 -2
- package/src/auth-routes.ts +27 -0
- package/src/auth-verifier.ts +312 -92
- package/src/config/config.ts +66 -0
- package/src/config/env.ts +24 -0
- package/src/config/secrets.ts +2 -0
- package/src/context.ts +80 -14
- package/src/db/cast.ts +59 -0
- package/src/db/db.ts +15 -12
- package/src/db/index.ts +1 -0
- package/src/error.ts +7 -0
- package/src/index.ts +2 -0
- package/src/lexicon/index.ts +24 -0
- package/src/lexicon/lexicons.ts +52 -0
- package/src/lexicon/types/app/bsky/feed/defs.ts +1 -0
- package/src/lexicon/types/app/bsky/graph/muteThread.ts +38 -0
- package/src/lexicon/types/app/bsky/graph/unmuteThread.ts +38 -0
- package/src/logger.ts +83 -38
- package/src/oauth/detailed-account-store.ts +96 -0
- package/src/oauth/provider.ts +77 -0
- package/src/pipethrough.ts +3 -2
- package/tests/preferences.test.ts +67 -1
- package/tests/proxied/__snapshots__/feedgen.test.ts.snap +4 -1
- package/tests/proxied/__snapshots__/views.test.ts.snap +116 -38
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAI5D,OAAO,KAAK,gBAAgB,MAAM,eAAe,CAAA;AACjD,OAAO,KAAK,kBAAkB,MAAM,iBAAiB,CAAA;AACrD,OAAO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AA0D;AAC1D,eAAO,MAAM,kBAAkB,0CAA0C,CAAA;AACzE,4DAA4D;AAC5D,eAAO,MAAM,oBAAoB,4CAA4C,CAAA;AAC7E,oEAAoE;AACpE,eAAO,MAAM,iBAAiB,yCAAyC,CAAA;AACvE,iCAAiC;AACjC,eAAO,MAAM,eAAe,uCAAuC,CAAA;AACnE,+BAA+B;AAC/B,eAAO,MAAM,eAAe,uCAAuC,CAAA;AACnE,kCAAkC;AAClC,eAAO,MAAM,iBAAiB,yCAAyC,CAAA;AACvE,oCAAoC;AACpC,eAAO,MAAM,gBAAgB,wCAAwC,CAAA;AACrE,gCAAgC;AAChC,eAAO,MAAM,gBAAgB,wCAAwC,CAAA;AACrE,gCAAgC;AAChC,eAAO,MAAM,gBAAgB,wCAAwC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/defs.ts"],"names":[],"mappings":";;;AAIA,mDAA+C;AAC/C,2CAAiD;AAgCjD,SAAgB,UAAU,CAAC,CAAU;IACnC,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC,IAAI,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,KAAK,6BAA6B,CAC7E,CAAA;AACH,CAAC;AAJD,gCAIC;AAED,SAAgB,gBAAgB,CAAC,CAAU;IACzC,OAAO,mBAAQ,CAAC,QAAQ,CAAC,6BAA6B,EAAE,CAAC,CAAC,CAAA;AAC5D,CAAC;AAFD,4CAEC;
|
1
|
+
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/defs.ts"],"names":[],"mappings":";;;AAIA,mDAA+C;AAC/C,2CAAiD;AAgCjD,SAAgB,UAAU,CAAC,CAAU;IACnC,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC,IAAI,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC,IA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AA,WAAW,GAAG,gCAAgC,CAAA;AAC3D,4CAA4C;AAC/B,QAAA,gBAAgB,GAAG,qCAAqC,CAAA;AACrE,0DAA0D;AAC7C,QAAA,kBAAkB,GAAG,uCAAuC,CAAA;AACzE,4DAA4D;AAC/C,QAAA,oBAAoB,GAAG,yCAAyC,CAAA;AAC7E,oEAAoE;AACvD,QAAA,iBAAiB,GAAG,sCAAsC,CAAA;AACvE,iCAAiC;AACpB,QAAA,eAAe,GAAG,oCAAoC,CAAA;AACnE,+BAA+B;AAClB,QAAA,eAAe,GAAG,oCAAoC,CAAA;AACnE,kCAAkC;AACrB,QAAA,iBAAiB,GAAG,sCAAsC,CAAA;AACvE,oCAAoC;AACvB,QAAA,gBAAgB,GAAG,qCAAqC,CAAA;AACrE,gCAAgC;AACnB,QAAA,gBAAgB,GAAG,qCAAqC,CAAA;AACrE,gCAAgC;AACnB,QAAA,gBAAgB,GAAG,qCAAqC,CAAA"}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express';
|
5
|
+
import { HandlerAuth } from '@atproto/xrpc-server';
|
6
|
+
export interface QueryParams {
|
7
|
+
}
|
8
|
+
export interface InputSchema {
|
9
|
+
root: string;
|
10
|
+
[k: string]: unknown;
|
11
|
+
}
|
12
|
+
export interface HandlerInput {
|
13
|
+
encoding: 'application/json';
|
14
|
+
body: InputSchema;
|
15
|
+
}
|
16
|
+
export interface HandlerError {
|
17
|
+
status: number;
|
18
|
+
message?: string;
|
19
|
+
}
|
20
|
+
export type HandlerOutput = HandlerError | void;
|
21
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
22
|
+
auth: HA;
|
23
|
+
params: QueryParams;
|
24
|
+
input: HandlerInput;
|
25
|
+
req: express.Request;
|
26
|
+
res: express.Response;
|
27
|
+
};
|
28
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
29
|
+
//# sourceMappingURL=muteThread.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"muteThread.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/muteThread.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,WAAW,EAAsB,MAAM,sBAAsB,CAAA;AAEtE,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,IAAI,CAAA;AAC/C,MAAM,MAAM,aAAa,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI;IAC1D,IAAI,EAAE,EAAE,CAAA;IACR,MAAM,EAAE,WAAW,CAAA;IACnB,KAAK,EAAE,YAAY,CAAA;IACnB,GAAG,EAAE,OAAO,CAAC,OAAO,CAAA;IACpB,GAAG,EAAE,OAAO,CAAC,QAAQ,CAAA;CACtB,CAAA;AACD,MAAM,MAAM,OAAO,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI,CACpD,GAAG,EAAE,aAAa,CAAC,EAAE,CAAC,KACnB,OAAO,CAAC,aAAa,CAAC,GAAG,aAAa,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"muteThread.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/muteThread.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express';
|
5
|
+
import { HandlerAuth } from '@atproto/xrpc-server';
|
6
|
+
export interface QueryParams {
|
7
|
+
}
|
8
|
+
export interface InputSchema {
|
9
|
+
root: string;
|
10
|
+
[k: string]: unknown;
|
11
|
+
}
|
12
|
+
export interface HandlerInput {
|
13
|
+
encoding: 'application/json';
|
14
|
+
body: InputSchema;
|
15
|
+
}
|
16
|
+
export interface HandlerError {
|
17
|
+
status: number;
|
18
|
+
message?: string;
|
19
|
+
}
|
20
|
+
export type HandlerOutput = HandlerError | void;
|
21
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
22
|
+
auth: HA;
|
23
|
+
params: QueryParams;
|
24
|
+
input: HandlerInput;
|
25
|
+
req: express.Request;
|
26
|
+
res: express.Response;
|
27
|
+
};
|
28
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
29
|
+
//# sourceMappingURL=unmuteThread.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"unmuteThread.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/unmuteThread.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,WAAW,EAAsB,MAAM,sBAAsB,CAAA;AAEtE,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,IAAI,CAAA;AAC/C,MAAM,MAAM,aAAa,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI;IAC1D,IAAI,EAAE,EAAE,CAAA;IACR,MAAM,EAAE,WAAW,CAAA;IACnB,KAAK,EAAE,YAAY,CAAA;IACnB,GAAG,EAAE,OAAO,CAAC,OAAO,CAAA;IACpB,GAAG,EAAE,OAAO,CAAC,QAAQ,CAAA;CACtB,CAAA;AACD,MAAM,MAAM,OAAO,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI,CACpD,GAAG,EAAE,aAAa,CAAC,EAAE,CAAC,KACnB,OAAO,CAAC,aAAa,CAAC,GAAG,aAAa,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"unmuteThread.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/unmuteThread.ts"],"names":[],"mappings":""}
|
package/dist/logger.d.ts
CHANGED
@@ -1,12 +1,14 @@
|
|
1
|
-
|
2
|
-
export declare const dbLogger: pino.Logger<
|
3
|
-
export declare const didCacheLogger: pino.Logger<
|
4
|
-
export declare const readStickyLogger: pino.Logger<
|
5
|
-
export declare const redisLogger: pino.Logger<
|
6
|
-
export declare const seqLogger: pino.Logger<
|
7
|
-
export declare const mailerLogger: pino.Logger<
|
8
|
-
export declare const labelerLogger: pino.Logger<
|
9
|
-
export declare const crawlerLogger: pino.Logger<
|
10
|
-
export declare const httpLogger: pino.Logger<
|
11
|
-
export declare const
|
1
|
+
/// <reference types="node/http" />
|
2
|
+
export declare const dbLogger: import("pino").default.Logger<never>;
|
3
|
+
export declare const didCacheLogger: import("pino").default.Logger<never>;
|
4
|
+
export declare const readStickyLogger: import("pino").default.Logger<never>;
|
5
|
+
export declare const redisLogger: import("pino").default.Logger<never>;
|
6
|
+
export declare const seqLogger: import("pino").default.Logger<never>;
|
7
|
+
export declare const mailerLogger: import("pino").default.Logger<never>;
|
8
|
+
export declare const labelerLogger: import("pino").default.Logger<never>;
|
9
|
+
export declare const crawlerLogger: import("pino").default.Logger<never>;
|
10
|
+
export declare const httpLogger: import("pino").default.Logger<never>;
|
11
|
+
export declare const fetchLogger: import("pino").default.Logger<never>;
|
12
|
+
export declare const oauthLogger: import("pino").default.Logger<never>;
|
13
|
+
export declare const loggerMiddleware: import("pino-http").HttpLogger<import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, never>;
|
12
14
|
//# sourceMappingURL=logger.d.ts.map
|
package/dist/logger.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,QAAQ,sCAA4B,CAAA;AACjD,eAAO,MAAM,cAAc,sCAAmC,CAAA;AAC9D,eAAO,MAAM,gBAAgB,sCAAqC,CAAA;AAClE,eAAO,MAAM,WAAW,sCAA+B,CAAA;AACvD,eAAO,MAAM,SAAS,sCAAmC,CAAA;AACzD,eAAO,MAAM,YAAY,sCAAgC,CAAA;AACzD,eAAO,MAAM,aAAa,sCAAiC,CAAA;AAC3D,eAAO,MAAM,aAAa,sCAAiC,CAAA;AAC3D,eAAO,MAAM,UAAU,sCAAyB,CAAA;AAChD,eAAO,MAAM,WAAW,sCAA+B,CAAA;AACvD,eAAO,MAAM,WAAW,sCAA+B,CAAA;AAEvD,eAAO,MAAM,gBAAgB,sIAM3B,CAAA"}
|
package/dist/logger.js
CHANGED
@@ -1,37 +1,12 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
-
}) : function(o, v) {
|
16
|
-
o["default"] = v;
|
17
|
-
});
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
-
if (mod && mod.__esModule) return mod;
|
20
|
-
var result = {};
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
-
__setModuleDefault(result, mod);
|
23
|
-
return result;
|
24
|
-
};
|
25
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
27
4
|
};
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
-
exports.loggerMiddleware = exports.httpLogger = exports.crawlerLogger = exports.labelerLogger = exports.mailerLogger = exports.seqLogger = exports.redisLogger = exports.readStickyLogger = exports.didCacheLogger = exports.dbLogger = void 0;
|
30
|
-
const pino_1 =
|
6
|
+
exports.loggerMiddleware = exports.oauthLogger = exports.fetchLogger = exports.httpLogger = exports.crawlerLogger = exports.labelerLogger = exports.mailerLogger = exports.seqLogger = exports.redisLogger = exports.readStickyLogger = exports.didCacheLogger = exports.dbLogger = void 0;
|
7
|
+
const pino_1 = require("pino");
|
31
8
|
const pino_http_1 = __importDefault(require("pino-http"));
|
32
9
|
const common_1 = require("@atproto/common");
|
33
|
-
const jose = __importStar(require("jose"));
|
34
|
-
const auth_verifier_1 = require("./auth-verifier");
|
35
10
|
exports.dbLogger = (0, common_1.subsystemLogger)('pds:db');
|
36
11
|
exports.didCacheLogger = (0, common_1.subsystemLogger)('pds:did-cache');
|
37
12
|
exports.readStickyLogger = (0, common_1.subsystemLogger)('pds:read-sticky');
|
@@ -41,46 +16,87 @@ exports.mailerLogger = (0, common_1.subsystemLogger)('pds:mailer');
|
|
41
16
|
exports.labelerLogger = (0, common_1.subsystemLogger)('pds:labeler');
|
42
17
|
exports.crawlerLogger = (0, common_1.subsystemLogger)('pds:crawler');
|
43
18
|
exports.httpLogger = (0, common_1.subsystemLogger)('pds');
|
19
|
+
exports.fetchLogger = (0, common_1.subsystemLogger)('pds:fetch');
|
20
|
+
exports.oauthLogger = (0, common_1.subsystemLogger)('pds:oauth');
|
44
21
|
exports.loggerMiddleware = (0, pino_http_1.default)({
|
45
22
|
logger: exports.httpLogger,
|
46
23
|
serializers: {
|
47
|
-
err:
|
48
|
-
|
49
|
-
code: err?.code,
|
50
|
-
message: err?.message,
|
51
|
-
};
|
52
|
-
},
|
53
|
-
req: (req) => {
|
54
|
-
const serialized = pino_1.default.stdSerializers.req(req);
|
55
|
-
const authHeader = serialized.headers.authorization || '';
|
56
|
-
let auth = undefined;
|
57
|
-
if (authHeader.startsWith('Bearer ')) {
|
58
|
-
const token = authHeader.slice('Bearer '.length);
|
59
|
-
const { sub } = jose.decodeJwt(token);
|
60
|
-
if (sub) {
|
61
|
-
auth = 'Bearer ' + sub;
|
62
|
-
}
|
63
|
-
else {
|
64
|
-
auth = 'Bearer Invalid';
|
65
|
-
}
|
66
|
-
}
|
67
|
-
if (authHeader.startsWith('Basic ')) {
|
68
|
-
const parsed = (0, auth_verifier_1.parseBasicAuth)(authHeader);
|
69
|
-
if (!parsed) {
|
70
|
-
auth = 'Basic Invalid';
|
71
|
-
}
|
72
|
-
else {
|
73
|
-
auth = 'Basic ' + parsed.username;
|
74
|
-
}
|
75
|
-
}
|
76
|
-
return {
|
77
|
-
...serialized,
|
78
|
-
headers: {
|
79
|
-
...serialized.headers,
|
80
|
-
authorization: auth,
|
81
|
-
},
|
82
|
-
};
|
83
|
-
},
|
24
|
+
err: errSerializer,
|
25
|
+
req: reqSerializer,
|
84
26
|
},
|
85
27
|
});
|
28
|
+
function errSerializer(err) {
|
29
|
+
return {
|
30
|
+
code: err?.code,
|
31
|
+
message: err?.message,
|
32
|
+
};
|
33
|
+
}
|
34
|
+
function reqSerializer(req) {
|
35
|
+
const serialized = pino_1.stdSerializers.req(req);
|
36
|
+
serialized.headers = obfuscateHeaders(serialized.headers);
|
37
|
+
return serialized;
|
38
|
+
}
|
39
|
+
function obfuscateHeaders(headers) {
|
40
|
+
const obfuscatedHeaders = {};
|
41
|
+
for (const key in headers) {
|
42
|
+
if (key.toLowerCase() === 'authorization') {
|
43
|
+
obfuscatedHeaders[key] = obfuscateAuthHeader(headers[key]);
|
44
|
+
}
|
45
|
+
else if (key.toLowerCase() === 'dpop') {
|
46
|
+
obfuscatedHeaders[key] = obfuscateJws(headers[key]) || 'Invalid';
|
47
|
+
}
|
48
|
+
else {
|
49
|
+
obfuscatedHeaders[key] = headers[key];
|
50
|
+
}
|
51
|
+
}
|
52
|
+
return obfuscatedHeaders;
|
53
|
+
}
|
54
|
+
function obfuscateAuthHeader(authHeader) {
|
55
|
+
// This is a hot path (runs on every request). Avoid using split() or regex.
|
56
|
+
const spaceIdx = authHeader.indexOf(' ');
|
57
|
+
if (spaceIdx === -1)
|
58
|
+
return 'Invalid';
|
59
|
+
const type = authHeader.slice(0, spaceIdx);
|
60
|
+
switch (type.toLowerCase()) {
|
61
|
+
case 'bearer':
|
62
|
+
return `${type} ${obfuscateBearer(authHeader.slice(spaceIdx + 1))}`;
|
63
|
+
case 'dpop':
|
64
|
+
return `${type} ${obfuscateJws(authHeader.slice(spaceIdx + 1)) || 'Invalid'}`;
|
65
|
+
case 'basic':
|
66
|
+
return `${type} ${obfuscateBasic(authHeader.slice(spaceIdx + 1)) || 'Invalid'}`;
|
67
|
+
default:
|
68
|
+
return `Invalid`;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
function obfuscateBasic(token) {
|
72
|
+
if (!token)
|
73
|
+
return null;
|
74
|
+
const buffer = Buffer.from(token, 'base64');
|
75
|
+
if (!buffer.length)
|
76
|
+
return null; // Buffer.from will silently ignore invalid base64 chars
|
77
|
+
const authHeader = buffer.toString('utf8');
|
78
|
+
const colIdx = authHeader.indexOf(':');
|
79
|
+
if (colIdx === -1)
|
80
|
+
return null;
|
81
|
+
const username = authHeader.slice(0, colIdx);
|
82
|
+
return `${username}:***`;
|
83
|
+
}
|
84
|
+
function obfuscateBearer(token) {
|
85
|
+
return obfuscateJws(token) || obfuscateToken(token);
|
86
|
+
}
|
87
|
+
function obfuscateToken(token) {
|
88
|
+
return token ? '***' : '';
|
89
|
+
}
|
90
|
+
function obfuscateJws(token) {
|
91
|
+
const firstDot = token.indexOf('.');
|
92
|
+
if (firstDot === -1)
|
93
|
+
return null;
|
94
|
+
const secondDot = token.indexOf('.', firstDot + 1);
|
95
|
+
if (secondDot === -1)
|
96
|
+
return null;
|
97
|
+
if (token.indexOf('.', secondDot + 1) !== -1)
|
98
|
+
return null;
|
99
|
+
// Strip the signature
|
100
|
+
return token.slice(0, secondDot) + '.obfuscated';
|
101
|
+
}
|
86
102
|
//# sourceMappingURL=logger.js.map
|
package/dist/logger.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":";;;;;;AAAA,+BAAqC;AACrC,0DAAgC;AAChC,4CAAiD;AAEpC,QAAA,QAAQ,GAAG,IAAA,wBAAe,EAAC,QAAQ,CAAC,CAAA;AACpC,QAAA,cAAc,GAAG,IAAA,wBAAe,EAAC,eAAe,CAAC,CAAA;AACjD,QAAA,gBAAgB,GAAG,IAAA,wBAAe,EAAC,iBAAiB,CAAC,CAAA;AACrD,QAAA,WAAW,GAAG,IAAA,wBAAe,EAAC,WAAW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eviceId, LoginCredentials } from '@atproto/oauth-provider';
|
2
|
+
import { AccountManager } from '../account-manager/index';
|
3
|
+
import { ActorStore } from '../actor-store/index';
|
4
|
+
import { LocalViewerCreator } from '../read-after-write/index';
|
5
|
+
/**
|
6
|
+
* Although the {@link AccountManager} class implements the {@link AccountStore}
|
7
|
+
* interface, the accounts it returns do not contain any profile information
|
8
|
+
* (display name, avatar, etc). This is due to the fact that the account manager
|
9
|
+
* does not have access to the account's repos. The {@link DetailedAccountStore}
|
10
|
+
* is a wrapper around the {@link AccountManager} that enriches the accounts
|
11
|
+
* with profile information using the account's repos through the
|
12
|
+
* {@link ActorStore}.
|
13
|
+
*/
|
14
|
+
export declare class DetailedAccountStore implements AccountStore {
|
15
|
+
private accountManager;
|
16
|
+
private actorStore;
|
17
|
+
private localViewer;
|
18
|
+
constructor(accountManager: AccountManager, actorStore: ActorStore, localViewer: LocalViewerCreator);
|
19
|
+
private getProfile;
|
20
|
+
private enrichAccountInfo;
|
21
|
+
authenticateAccount(credentials: LoginCredentials, deviceId: DeviceId): Promise<AccountInfo | null>;
|
22
|
+
addAuthorizedClient(deviceId: DeviceId, sub: string, clientId: string): Promise<void>;
|
23
|
+
getDeviceAccount(deviceId: DeviceId, sub: string): Promise<AccountInfo | null>;
|
24
|
+
listDeviceAccounts(deviceId: DeviceId): Promise<AccountInfo[]>;
|
25
|
+
removeDeviceAccount(deviceId: DeviceId, sub: string): Promise<void>;
|
26
|
+
}
|
27
|
+
//# sourceMappingURL=detailed-account-store.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"detailed-account-store.d.ts","sourceRoot":"","sources":["../../src/oauth/detailed-account-store.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,gBAAgB,EACjB,MAAM,yBAAyB,CAAA;AAEhC,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAE9D;;;;;;;;GAQG;AACH,qBAAa,oBAAqB,YAAW,YAAY;IAErD,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,UAAU;IAClB,OAAO,CAAC,WAAW;gBAFX,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,kBAAkB;YAG3B,UAAU;YAQV,iBAAiB;IAezB,mBAAmB,CACvB,WAAW,EAAE,gBAAgB,EAC7B,QAAQ,EAAE,QAAQ,GACjB,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;IASxB,mBAAmB,CACvB,QAAQ,EAAE,QAAQ,EAClB,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC;IAIV,gBAAgB,CACpB,QAAQ,EAAE,QAAQ,EAClB,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;IASxB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAS9D,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAG1E"}
|
@@ -0,0 +1,76 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DetailedAccountStore = void 0;
|
4
|
+
/**
|
5
|
+
* Although the {@link AccountManager} class implements the {@link AccountStore}
|
6
|
+
* interface, the accounts it returns do not contain any profile information
|
7
|
+
* (display name, avatar, etc). This is due to the fact that the account manager
|
8
|
+
* does not have access to the account's repos. The {@link DetailedAccountStore}
|
9
|
+
* is a wrapper around the {@link AccountManager} that enriches the accounts
|
10
|
+
* with profile information using the account's repos through the
|
11
|
+
* {@link ActorStore}.
|
12
|
+
*/
|
13
|
+
class DetailedAccountStore {
|
14
|
+
constructor(accountManager, actorStore, localViewer) {
|
15
|
+
Object.defineProperty(this, "accountManager", {
|
16
|
+
enumerable: true,
|
17
|
+
configurable: true,
|
18
|
+
writable: true,
|
19
|
+
value: accountManager
|
20
|
+
});
|
21
|
+
Object.defineProperty(this, "actorStore", {
|
22
|
+
enumerable: true,
|
23
|
+
configurable: true,
|
24
|
+
writable: true,
|
25
|
+
value: actorStore
|
26
|
+
});
|
27
|
+
Object.defineProperty(this, "localViewer", {
|
28
|
+
enumerable: true,
|
29
|
+
configurable: true,
|
30
|
+
writable: true,
|
31
|
+
value: localViewer
|
32
|
+
});
|
33
|
+
}
|
34
|
+
async getProfile(did) {
|
35
|
+
// TODO: Should we cache this?
|
36
|
+
return this.actorStore.read(did, async (actorStoreReader) => {
|
37
|
+
const localViewer = this.localViewer(actorStoreReader);
|
38
|
+
return localViewer.getProfileBasic();
|
39
|
+
});
|
40
|
+
}
|
41
|
+
async enrichAccountInfo(accountInfo) {
|
42
|
+
const { account } = accountInfo;
|
43
|
+
if (!account.picture || !account.name) {
|
44
|
+
const profile = await this.getProfile(account.sub);
|
45
|
+
if (profile) {
|
46
|
+
account.picture || (account.picture = profile.avatar);
|
47
|
+
account.name || (account.name = profile.displayName);
|
48
|
+
}
|
49
|
+
}
|
50
|
+
return accountInfo;
|
51
|
+
}
|
52
|
+
async authenticateAccount(credentials, deviceId) {
|
53
|
+
const accountInfo = await this.accountManager.authenticateAccount(credentials, deviceId);
|
54
|
+
if (!accountInfo)
|
55
|
+
return null;
|
56
|
+
return this.enrichAccountInfo(accountInfo);
|
57
|
+
}
|
58
|
+
async addAuthorizedClient(deviceId, sub, clientId) {
|
59
|
+
return this.accountManager.addAuthorizedClient(deviceId, sub, clientId);
|
60
|
+
}
|
61
|
+
async getDeviceAccount(deviceId, sub) {
|
62
|
+
const accountInfo = await this.accountManager.getDeviceAccount(deviceId, sub);
|
63
|
+
if (!accountInfo)
|
64
|
+
return null;
|
65
|
+
return this.enrichAccountInfo(accountInfo);
|
66
|
+
}
|
67
|
+
async listDeviceAccounts(deviceId) {
|
68
|
+
const accountInfos = await this.accountManager.listDeviceAccounts(deviceId);
|
69
|
+
return Promise.all(accountInfos.map(async (accountInfo) => this.enrichAccountInfo(accountInfo)));
|
70
|
+
}
|
71
|
+
async removeDeviceAccount(deviceId, sub) {
|
72
|
+
return this.accountManager.removeDeviceAccount(deviceId, sub);
|
73
|
+
}
|
74
|
+
}
|
75
|
+
exports.DetailedAccountStore = DetailedAccountStore;
|
76
|
+
//# sourceMappingURL=detailed-account-store.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"detailed-account-store.js","sourceRoot":"","sources":["../../src/oauth/detailed-account-store.ts"],"names":[],"mappings":";;;AAYA;;;;;;;;GAQG;AACH,MAAa,oBAAoB;IAC/B,YACU,cAA8B,EAC9B,UAAsB,EACtB,WAA+B;QAFvC;;;;mBAAQ,cAAc;WAAgB;QACtC;;;;mBAAQ,UAAU;WAAY;QAC9B;;;;mBAAQ,WAAW;WAAoB;IACtC,CAAC;IAEI,KAAK,CAAC,UAAU,CAAC,GAAW;QAClC,8BAA8B;QAC9B,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE,gBAAgB,EAAE,EAAE;YAC1D,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAA;YACtD,OAAO,WAAW,CAAC,eAAe,EAAE,CAAA;QACtC,CAAC,CAAC,CAAA;IACJ,CAAC;IAEO,KAAK,CAAC,iBAAiB,CAC7B,WAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,WAAW,CAAA;QAC/B,IAAI,CAAC,OAAO,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YACtC,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;YAClD,IAAI,OAAO,EAAE,CAAC;gBACZ,OA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CAAC,QAAkB,EAAE,GAAW;QACvD,OAAO,IAAI,CAAC,cAAc,CAAC,mBAAmB,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAA;IAC/D,CAAC;CACF;AA1ED,oDA0EC"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/// <reference types="node/http" />
|
2
|
+
/// <reference types="pino-http" />
|
3
|
+
import { OAuthProvider, OAuthProviderOptions } from '@atproto/oauth-provider';
|
4
|
+
import { AccountManager } from '../account-manager/index';
|
5
|
+
import { ActorStore } from '../actor-store/index';
|
6
|
+
import { LocalViewerCreator } from '../read-after-write/index';
|
7
|
+
export type AuthProviderOptions = {
|
8
|
+
accountManager: AccountManager;
|
9
|
+
actorStore: ActorStore;
|
10
|
+
localViewer: LocalViewerCreator;
|
11
|
+
} & Pick<OAuthProviderOptions, 'issuer' | 'redis' | 'keyset' | 'dpopSecret' | 'customization'> & Required<Pick<OAuthProviderOptions, 'safeFetch'>>;
|
12
|
+
export declare class PdsOAuthProvider extends OAuthProvider {
|
13
|
+
constructor({ accountManager, actorStore, localViewer, keyset, redis, dpopSecret, issuer, customization, safeFetch, }: AuthProviderOptions);
|
14
|
+
createRouter(): import("@atproto/oauth-provider").Handler<void, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>>;
|
15
|
+
}
|
16
|
+
//# sourceMappingURL=provider.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/oauth/provider.ts"],"names":[],"mappings":";;AAAA,OAAO,EAEL,aAAa,EACb,oBAAoB,EACrB,MAAM,yBAAyB,CAAA;AAEhC,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAG9D,MAAM,MAAM,mBAAmB,GAAG;IAChC,cAAc,EAAE,cAAc,CAAA;IAC9B,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,kBAAkB,CAAA;CAChC,GAAG,IAAI,CACN,oBAAoB,EACpB,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,YAAY,GAAG,eAAe,CAC/D,GACC,QAAQ,CAAC,IAAI,CAAC,oBAAoB,EAAE,WAAW,CAAC,CAAC,CAAA;AAEnD,qBAAa,gBAAiB,SAAQ,aAAa;gBACrC,EACV,cAAc,EACd,UAAU,EACV,WAAW,EACX,MAAM,EACN,KAAK,EACL,UAAU,EACV,MAAM,EACN,aAAa,EACb,SAAS,GACV,EAAE,mBAAmB;IAsCtB,YAAY;CAKb"}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PdsOAuthProvider = void 0;
|
4
|
+
const oauth_provider_1 = require("@atproto/oauth-provider");
|
5
|
+
const logger_1 = require("../logger");
|
6
|
+
const detailed_account_store_1 = require("./detailed-account-store");
|
7
|
+
class PdsOAuthProvider extends oauth_provider_1.OAuthProvider {
|
8
|
+
constructor({ accountManager, actorStore, localViewer, keyset, redis, dpopSecret, issuer, customization, safeFetch, }) {
|
9
|
+
super({
|
10
|
+
issuer,
|
11
|
+
keyset,
|
12
|
+
dpopSecret,
|
13
|
+
redis,
|
14
|
+
safeFetch,
|
15
|
+
customization,
|
16
|
+
metadata: {
|
17
|
+
// PdsOAuthProvider is used when the PDS is both an authorization server
|
18
|
+
// & resource server, in which case the issuer origin is also the
|
19
|
+
// resource server uri.
|
20
|
+
protected_resources: [new URL(issuer).origin],
|
21
|
+
},
|
22
|
+
accountStore: new detailed_account_store_1.DetailedAccountStore(accountManager, actorStore, localViewer),
|
23
|
+
requestStore: accountManager,
|
24
|
+
deviceStore: accountManager,
|
25
|
+
tokenStore: accountManager,
|
26
|
+
// If the PDS is both an authorization server & resource server (no
|
27
|
+
// entryway), there is no need to use JWTs as access tokens. Instead,
|
28
|
+
// the PDS can use tokenId as access tokens. This allows the PDS to
|
29
|
+
// always use up-to-date token data from the token store.
|
30
|
+
accessTokenType: oauth_provider_1.AccessTokenType.id,
|
31
|
+
onClientInfo: (clientId) => ({
|
32
|
+
isFirstParty: clientId === 'https://bsky.app/',
|
33
|
+
// @TODO make client client list configurable:
|
34
|
+
isTrusted: undefined,
|
35
|
+
}),
|
36
|
+
});
|
37
|
+
}
|
38
|
+
createRouter() {
|
39
|
+
return this.httpHandler({
|
40
|
+
onError: (req, res, err, message) => logger_1.oauthLogger.error({ err }, message),
|
41
|
+
});
|
42
|
+
}
|
43
|
+
}
|
44
|
+
exports.PdsOAuthProvider = PdsOAuthProvider;
|
45
|
+
//# sourceMappingURL=provider.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../../src/oauth/provider.ts"],"names":[],"mappings":";;;AAAA,4DAIgC;AAIhC,sCAAuC;AAEvC,qEAA+D;AAY/D,MAAa,gBAAiB,SAAQ,8BAAa;IACjD,YAAY,EACV,cAAc,EACd,UAAU,EACV,WAAW,EACX,MAAM,EACN,KAAK,EACL,UAAU,EACV,MAAM,EACN,aAAa,EACb,SAAS,GACW;QACpB,KAAK,CAAC;YACJ,MAAM;YACN,MAAM;YACN,UAAU;YACV,KAAK;YACL,SAAS;YACT,aAAa;YACb,QAAQ,EAAE;gBACR,wEAAwE;gBACxE,iEAAiE;gBACjE,uBAAuB;gBACvB,mBAAmB,EAAE,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC;aAC9C;YAED,YAAY,EAAE,IAAI,6CAAoB,CACpC,cAAc,EACd,UAAU,EACV,WAAW,CACZ;YACD,YAAY,EAAE,cAAc;YAC5B,WAAW,EAAE,cAAc;YAC3B,UAAU,EAAE,cAAc;YAE1B,mEAAmE;YACnE,qEAAqE;YACrE,mEAAmE;YACnE,yDAAyD;YACzD,eAAe,EAAE,gCAAe,CAAC,EAAE;YAEnC,YAAY,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;gBAC3B,YAAY,EAAE,QAAQ,KAAK,mBAAmB;gBAC9C,8CAA8C;gBAC9C,SAAS,EAAE,SAAS;aACrB,CAAC;SACH,CAAC,CAAA;IACJ,CAAC;IAED,YAAY;QACV,OAAO,IAAI,CAAC,WAAW,CAAC;YACtB,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,CAAC,oBAAW,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,EAAE,OAAO,CAAC;SACzE,CAAC,CAAA;IACJ,CAAC;CACF;AAtDD,4CAsDC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pipethrough.d.ts","sourceRoot":"","sources":["../src/pipethrough.ts"],"names":[],"mappings":";;AAAA,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,QAAQ,EAA2B,MAAM,kBAAkB,CAAA;AACpE,OAAO,EACL,eAAe,EACf,kBAAkB,EAEnB,MAAM,sBAAsB,CAAA;AAK7B,OAAO,UAAU,MAAM,WAAW,CAAA;AAElC,eAAO,MAAM,YAAY,QAAS,UAAU,KAAG,
|
1
|
+
{"version":3,"file":"pipethrough.d.ts","sourceRoot":"","sources":["../src/pipethrough.ts"],"names":[],"mappings":";;AAAA,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,QAAQ,EAA2B,MAAM,kBAAkB,CAAA;AACpE,OAAO,EACL,eAAe,EACf,kBAAkB,EAEnB,MAAM,sBAAsB,CAAA;AAK7B,OAAO,UAAU,MAAM,WAAW,CAAA;AAElC,eAAO,MAAM,YAAY,QAAS,UAAU,KAAG,eAiB9C,CAAA;AAED,eAAO,MAAM,WAAW,QACjB,UAAU,OACV,eAAe,aACT,MAAM,GAAG,IAAI,gBACV,MAAM,KACnB,QAAQ,kBAAkB,CAM5B,CAAA;AAED,eAAO,MAAM,oBAAoB,QAC1B,UAAU,OAC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