@atproto/pds 0.4.44 → 0.4.46
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +19 -0
- package/dist/api/app/bsky/feed/getFeed.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/getFeed.js +6 -2
- package/dist/api/app/bsky/feed/getFeed.js.map +1 -1
- package/dist/api/app/bsky/feed/getPostThread.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/getPostThread.js +2 -1
- package/dist/api/app/bsky/feed/getPostThread.js.map +1 -1
- package/dist/api/app/bsky/notification/registerPush.d.ts.map +1 -1
- package/dist/api/app/bsky/notification/registerPush.js +2 -1
- package/dist/api/app/bsky/notification/registerPush.js.map +1 -1
- package/dist/api/com/atproto/admin/sendEmail.d.ts.map +1 -1
- package/dist/api/com/atproto/admin/sendEmail.js +2 -1
- package/dist/api/com/atproto/admin/sendEmail.js.map +1 -1
- package/dist/api/com/atproto/repo/uploadBlob.js +1 -1
- package/dist/api/com/atproto/repo/uploadBlob.js.map +1 -1
- package/dist/api/com/atproto/server/createAccount.js +2 -2
- package/dist/api/com/atproto/server/createAccount.js.map +1 -1
- package/dist/api/com/atproto/server/getServiceAuth.d.ts.map +1 -1
- package/dist/api/com/atproto/server/getServiceAuth.js +13 -0
- package/dist/api/com/atproto/server/getServiceAuth.js.map +1 -1
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +0 -2
- package/dist/api/index.js.map +1 -1
- package/dist/auth-verifier.d.ts +7 -5
- package/dist/auth-verifier.d.ts.map +1 -1
- package/dist/auth-verifier.js +25 -6
- package/dist/auth-verifier.js.map +1 -1
- package/dist/context.d.ts +2 -2
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +4 -3
- package/dist/context.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +13 -36
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +17 -38
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/defs.d.ts +1 -1
- package/dist/lexicon/types/app/bsky/feed/defs.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/label/defs.d.ts +1 -1
- package/dist/lexicon/types/com/atproto/server/getServiceAuth.d.ts +5 -0
- package/dist/lexicon/types/com/atproto/server/getServiceAuth.d.ts.map +1 -1
- package/dist/pipethrough.d.ts +11 -2
- package/dist/pipethrough.d.ts.map +1 -1
- package/dist/pipethrough.js +41 -14
- package/dist/pipethrough.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/read-after-write/viewer.js +5 -4
- package/dist/read-after-write/viewer.js.map +1 -1
- package/package.json +6 -6
- package/src/api/app/bsky/feed/getFeed.ts +9 -2
- package/src/api/app/bsky/feed/getPostThread.ts +2 -1
- package/src/api/app/bsky/notification/registerPush.ts +6 -1
- package/src/api/com/atproto/admin/sendEmail.ts +3 -1
- package/src/api/com/atproto/repo/uploadBlob.ts +1 -1
- package/src/api/com/atproto/server/createAccount.ts +2 -2
- package/src/api/com/atproto/server/getServiceAuth.ts +20 -1
- package/src/api/index.ts +0 -2
- package/src/auth-verifier.ts +32 -10
- package/src/context.ts +4 -3
- package/src/lexicon/lexicons.ts +20 -39
- package/src/lexicon/types/app/bsky/feed/defs.ts +1 -1
- package/src/lexicon/types/com/atproto/label/defs.ts +1 -1
- package/src/lexicon/types/com/atproto/server/getServiceAuth.ts +5 -0
- package/src/pipethrough.ts +49 -15
- package/src/read-after-write/viewer.ts +8 -4
- package/tests/moderator-auth.test.ts +4 -0
- package/tests/proxied/notif.test.ts +1 -0
- package/tests/proxied/proxy-header.test.ts +1 -0
- package/dist/api/chat/index.d.ts +0 -4
- package/dist/api/chat/index.d.ts.map +0 -1
- package/dist/api/chat/index.js +0 -91
- package/dist/api/chat/index.js.map +0 -1
- package/dist/lexicon/types/app/bsky/feed/detach.d.ts +0 -15
- package/dist/lexicon/types/app/bsky/feed/detach.d.ts.map +0 -1
- package/dist/lexicon/types/app/bsky/feed/detach.js +0 -17
- package/dist/lexicon/types/app/bsky/feed/detach.js.map +0 -1
- package/src/api/chat/index.ts +0 -90
- package/src/lexicon/types/app/bsky/feed/detach.ts +0 -29
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,24 @@
|
|
1
1
|
# @atproto/pds
|
2
2
|
|
3
|
+
## 0.4.46
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#2668](https://github.com/bluesky-social/atproto/pull/2668) [`dc471da26`](https://github.com/bluesky-social/atproto/commit/dc471da267955d0962a8affaf983df60d962d97c) Thanks [@dholms](https://github.com/dholms)! - Add lxm and nonce to signed service auth tokens.
|
8
|
+
|
9
|
+
- Updated dependencies [[`dc471da26`](https://github.com/bluesky-social/atproto/commit/dc471da267955d0962a8affaf983df60d962d97c), [`dc471da26`](https://github.com/bluesky-social/atproto/commit/dc471da267955d0962a8affaf983df60d962d97c)]:
|
10
|
+
- @atproto/api@0.12.29
|
11
|
+
- @atproto/xrpc-server@0.6.0
|
12
|
+
|
13
|
+
## 0.4.45
|
14
|
+
|
15
|
+
### Patch Changes
|
16
|
+
|
17
|
+
- [#2676](https://github.com/bluesky-social/atproto/pull/2676) [`951a3df15`](https://github.com/bluesky-social/atproto/commit/951a3df15aa9c1f5b0a2b66cfb0e2eaf6198fe41) Thanks [@estrattonbailey](https://github.com/estrattonbailey)! - Remove `app.bsky.feed.detach` record, to be replaced by `app.bsky.feed.postgate` record in a future release.
|
18
|
+
|
19
|
+
- Updated dependencies [[`951a3df15`](https://github.com/bluesky-social/atproto/commit/951a3df15aa9c1f5b0a2b66cfb0e2eaf6198fe41)]:
|
20
|
+
- @atproto/api@0.12.28
|
21
|
+
|
3
22
|
## 0.4.44
|
4
23
|
|
5
24
|
### Patch Changes
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getFeed.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getFeed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;
|
1
|
+
{"version":3,"file":"getFeed.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getFeed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAI5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAuBvD"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const pipethrough_1 = require("../../../../pipethrough");
|
4
|
+
const lexicons_1 = require("../../../../lexicon/lexicons");
|
4
5
|
function default_1(server, ctx) {
|
5
6
|
const { appViewAgent } = ctx;
|
6
7
|
const { bskyAppView } = ctx.cfg;
|
@@ -10,8 +11,11 @@ function default_1(server, ctx) {
|
|
10
11
|
auth: ctx.authVerifier.accessStandard(),
|
11
12
|
handler: async ({ params, auth, req }) => {
|
12
13
|
const requester = auth.credentials.did;
|
13
|
-
const { data: feed } = await appViewAgent.api.app.bsky.feed.getFeedGenerator({ feed: params.feed }, await ctx.appviewAuthHeaders(requester));
|
14
|
-
return (0, pipethrough_1.pipethrough)(ctx, req, requester,
|
14
|
+
const { data: feed } = await appViewAgent.api.app.bsky.feed.getFeedGenerator({ feed: params.feed }, await ctx.appviewAuthHeaders(requester, lexicons_1.ids.AppBskyFeedGetFeedGenerator));
|
15
|
+
return (0, pipethrough_1.pipethrough)(ctx, req, requester, {
|
16
|
+
aud: feed.view.did,
|
17
|
+
lxm: lexicons_1.ids.AppBskyFeedGetFeedSkeleton,
|
18
|
+
});
|
15
19
|
},
|
16
20
|
});
|
17
21
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getFeed.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getFeed.ts"],"names":[],"mappings":";;AAEA,yDAAqD;
|
1
|
+
{"version":3,"file":"getFeed.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getFeed.ts"],"names":[],"mappings":";;AAEA,yDAAqD;AACrD,2DAAkD;AAElD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,EAAE,YAAY,EAAE,GAAG,GAAG,CAAA;IAC5B,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC,GAAG,CAAA;IAC/B,IAAI,CAAC,YAAY,IAAI,CAAC,WAAW;QAAE,OAAM;IACzC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;QAC3B,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,cAAc,EAAE;QACvC,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE;YACvC,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YAEtC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAClB,MAAM,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CACnD,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,EACrB,MAAM,GAAG,CAAC,kBAAkB,CAC1B,SAAS,EACT,cAAG,CAAC,2BAA2B,CAChC,CACF,CAAA;YACH,OAAO,IAAA,yBAAW,EAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE;gBACtC,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG;gBAClB,GAAG,EAAE,cAAG,CAAC,0BAA0B;aACpC,CAAC,CAAA;QACJ,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AAvBD,4BAuBC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getPostThread.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getPostThread.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;
|
1
|
+
{"version":3,"file":"getPostThread.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getPostThread.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAwB5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QA0CvD"}
|
@@ -9,6 +9,7 @@ const xrpc_1 = require("@atproto/xrpc");
|
|
9
9
|
const defs_1 = require("../../../../lexicon/types/app/bsky/feed/defs");
|
10
10
|
const read_after_write_1 = require("../../../../read-after-write");
|
11
11
|
const pipethrough_1 = require("../../../../pipethrough");
|
12
|
+
const lexicons_1 = require("../../../../lexicon/lexicons");
|
12
13
|
const METHOD_NSID = 'app.bsky.feed.getPostThread';
|
13
14
|
function default_1(server, ctx) {
|
14
15
|
const { bskyAppView } = ctx.cfg;
|
@@ -133,7 +134,7 @@ const readAfterWriteNotFound = async (ctx, localViewer, params, requester, heade
|
|
133
134
|
if (highestParent) {
|
134
135
|
try {
|
135
136
|
(0, node_assert_1.default)(ctx.appViewAgent);
|
136
|
-
const parentsRes = await ctx.appViewAgent.api.app.bsky.feed.getPostThread({ uri: highestParent, parentHeight: params.parentHeight, depth: 0 }, await ctx.appviewAuthHeaders(requester));
|
137
|
+
const parentsRes = await ctx.appViewAgent.api.app.bsky.feed.getPostThread({ uri: highestParent, parentHeight: params.parentHeight, depth: 0 }, await ctx.appviewAuthHeaders(requester, lexicons_1.ids.AppBskyFeedGetPostThread));
|
137
138
|
thread.parent = parentsRes.data.thread;
|
138
139
|
}
|
139
140
|
catch (err) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getPostThread.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getPostThread.ts"],"names":[],"mappings":";;;;;AAAA,8DAAgC;AAChC,4CAAuC;AACvC,wCAAkD;AAGlD,uEAGqD;AAMrD,mEAQqC;AACrC,yDAAqD;
|
1
|
+
{"version":3,"file":"getPostThread.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getPostThread.ts"],"names":[],"mappings":";;;;;AAAA,8DAAgC;AAChC,4CAAuC;AACvC,wCAAkD;AAGlD,uEAGqD;AAMrD,mEAQqC;AACrC,yDAAqD;AACrD,2DAAkD;AAElD,MAAM,WAAW,GAAG,6BAA6B,CAAA;AAEjD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC,GAAG,CAAA;IAC/B,IAAI,CAAC,WAAW;QAAE,OAAM;IACxB,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC;QACjC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,cAAc,EAAE;QACvC,OAAO,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE;YACvC,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YAEtC,IAAI,CAAC;gBACH,MAAM,GAAG,GAAG,MAAM,IAAA,yBAAW,EAAC,GAAG,EAAE,GAAG,EAAE,SAAS,CAAC,CAAA;gBAElD,OAAO,MAAM,IAAA,uCAAoB,EAC/B,GAAG,EACH,WAAW,EACX,SAAS,EACT,GAAG,EACH,kBAAkB,CACnB,CAAA;YACH,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,IAAI,GAAG,YAAY,gBAAS,IAAI,GAAG,CAAC,KAAK,KAAK,UAAU,EAAE,CAAC;oBACzD,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,CAAA;oBAC3B,MAAM,KAAK,GAAG,MAAM,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,EA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,EAAE;IACtE,IAAI,IAAA,uBAAgB,EAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QACpC,OAAO,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IACxC,CAAC;SAAM,CAAC;QACN,OAAQ,MAAM,CAAC,IAAI,CAAC,MAAqB,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,CAAA;IAC7D,CAAC;AACH,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"registerPush.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/notification/registerPush.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;
|
1
|
+
{"version":3,"file":"registerPush.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/notification/registerPush.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAQ5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAmCvD"}
|
@@ -5,6 +5,7 @@ const xrpc_server_1 = require("@atproto/xrpc-server");
|
|
5
5
|
const api_1 = require("@atproto/api");
|
6
6
|
const resolver_1 = require("../util/resolver");
|
7
7
|
const auth_verifier_1 = require("../../../../auth-verifier");
|
8
|
+
const lexicons_1 = require("../../../../lexicon/lexicons");
|
8
9
|
function default_1(server, ctx) {
|
9
10
|
const { appViewAgent } = ctx;
|
10
11
|
if (!appViewAgent)
|
@@ -16,7 +17,7 @@ function default_1(server, ctx) {
|
|
16
17
|
handler: async ({ auth, input }) => {
|
17
18
|
const { serviceDid } = input.body;
|
18
19
|
const { credentials: { did }, } = auth;
|
19
|
-
const authHeaders = await ctx.serviceAuthHeaders(did, serviceDid);
|
20
|
+
const authHeaders = await ctx.serviceAuthHeaders(did, serviceDid, lexicons_1.ids.AppBskyNotificationRegisterPush);
|
20
21
|
if (ctx.cfg.bskyAppView?.did === serviceDid) {
|
21
22
|
await appViewAgent.api.app.bsky.notification.registerPush(input.body, {
|
22
23
|
...authHeaders,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"registerPush.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/notification/registerPush.ts"],"names":[],"mappings":";;AAEA,gDAA4C;AAC5C,sDAA0D;AAC1D,sCAAuC;AACvC,+CAA4C;AAC5C,6DAAqD;
|
1
|
+
{"version":3,"file":"registerPush.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/notification/registerPush.ts"],"names":[],"mappings":";;AAEA,gDAA4C;AAC5C,sDAA0D;AAC1D,sCAAuC;AACvC,+CAA4C;AAC5C,6DAAqD;AACrD,2DAAkD;AAElD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,EAAE,YAAY,EAAE,GAAG,GAAG,CAAA;IAC5B,IAAI,CAAC,YAAY;QAAE,OAAM;IACzB,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC;QACxC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,cAAc,CAAC;YACpC,UAAU,EAAE,CAAC,yBAAS,CAAC,YAAY,CAAC;SACrC,CAAC;QACF,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE;YACjC,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC,IAAI,CAAA;YACjC,MAAM,EACJ,WAAW,EAAE,EAAE,GAAG,EAAE,GACrB,GAAG,IAAI,CAAA;YAER,MAAM,WAAW,GAAG,MAAM,GAAG,CAAC,kBAAkB,CAC9C,GAAG,EACH,UAAU,EACV,cAAG,CAAC,+BAA+B,CACpC,CAAA;YAED,IAAI,GAAG,CAAC,GAAG,CAAC,WAAW,EAAE,GAAG,KAAK,UAAU,EAAE,CAAC;gBAC5C,MAAM,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,EAAE;oBACpE,GAAG,WAAW;oBACd,QAAQ,EAAE,kBAAkB;iBAC7B,CAAC,CAAA;gBACF,OAAM;YACR,CAAC;YAED,MAAM,aAAa,GAAG,MAAM,WAAW,CAAC,GAAG,EAAE,UAAU,CAAC,CAAA;YACxD,MAAM,KAAK,GAAG,IAAI,cAAQ,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC,CAAA;YACtD,MAAM,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,EAAE;gBAC7D,GAAG,WAAW;gBACd,QAAQ,EAAE,kBAAkB;aAC7B,CAAC,CAAA;QACJ,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AAnCD,4BAmCC;AAED,MAAM,WAAW,GAAG,KAAK,EAAE,GAAe,EAAE,UAAkB,EAAE,EAAE;IAChE,MAAM,GAAG,GAAG,MAAM,IAAA,oBAAS,EAAC,GAAG,EAAE,UAAU,CAAC,CAAA;IAC5C,MAAM,aAAa,GAAG,IAAA,mBAAQ,EAAC,GAAG,CAAC,CAAA;IACnC,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,MAAM,IAAI,iCAAmB,CAC3B,yDAAyD,UAAU,EAAE,CACtE,CAAA;IACH,CAAC;IACD,OAAO,aAAa,CAAA;AACtB,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sendEmail.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/admin/sendEmail.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;
|
1
|
+
{"version":3,"file":"sendEmail.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/admin/sendEmail.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAI5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QA+CvD"}
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const node_assert_1 = __importDefault(require("node:assert"));
|
7
7
|
const xrpc_server_1 = require("@atproto/xrpc-server");
|
8
8
|
const proxy_1 = require("../../../proxy");
|
9
|
+
const lexicons_1 = require("../../../../lexicon/lexicons");
|
9
10
|
function default_1(server, ctx) {
|
10
11
|
server.com.atproto.admin.sendEmail({
|
11
12
|
auth: ctx.authVerifier.moderator,
|
@@ -22,7 +23,7 @@ function default_1(server, ctx) {
|
|
22
23
|
(0, node_assert_1.default)(ctx.cfg.entryway);
|
23
24
|
return (0, proxy_1.resultPassthru)(await ctx.entrywayAgent.com.atproto.admin.sendEmail(input.body, {
|
24
25
|
encoding: 'application/json',
|
25
|
-
...(await ctx.serviceAuthHeaders(recipientDid, ctx.cfg.entryway
|
26
|
+
...(await ctx.serviceAuthHeaders(recipientDid, ctx.cfg.entryway.did, lexicons_1.ids.ComAtprotoAdminSendEmail)),
|
26
27
|
}));
|
27
28
|
}
|
28
29
|
if (!account.email) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sendEmail.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/admin/sendEmail.ts"],"names":[],"mappings":";;;;;AAAA,8DAAgC;AAChC,sDAA0D;AAG1D,0CAA+C;
|
1
|
+
{"version":3,"file":"sendEmail.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/admin/sendEmail.ts"],"names":[],"mappings":";;;;;AAAA,8DAAgC;AAChC,sDAA0D;AAG1D,0CAA+C;AAC/C,2DAAkD;AAElD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,C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AAkB;gBAC5B,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;aACrB,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AA/CD,4BA+CC"}
|
@@ -4,7 +4,7 @@ const common_1 = require("@atproto/common");
|
|
4
4
|
const xrpc_server_1 = require("@atproto/xrpc-server");
|
5
5
|
function default_1(server, ctx) {
|
6
6
|
server.com.atproto.repo.uploadBlob({
|
7
|
-
auth: ctx.authVerifier.
|
7
|
+
auth: ctx.authVerifier.accessOrUserServiceAuth({
|
8
8
|
checkTakedown: true,
|
9
9
|
}),
|
10
10
|
rateLimit: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"uploadBlob.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/repo/uploadBlob.ts"],"names":[],"mappings":";;AAAA,4CAAqC;AACrC,sDAA2D;AAK3D,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC;QACjC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,
|
1
|
+
{"version":3,"file":"uploadBlob.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/repo/uploadBlob.ts"],"names":[],"mappings":";;AAAA,4CAAqC;AACrC,sDAA2D;AAK3D,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC;QACjC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,uBAAuB,CAAC;YAC7C,aAAa,EAAE,IAAI;SACpB,CAAC;QACF,SAAS,EAAE;YACT,UAAU,EAAE,YAAG;YACf,MAAM,EAAE,IAAI;SACb;QACD,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE;YACjC,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YAEtC,MAAM,IAAI,GAAG,MAAM,GA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2DC"}
|
@@ -41,9 +41,9 @@ function default_1(server, ctx) {
|
|
41
41
|
durationMs: 5 * common_1.MINUTE,
|
42
42
|
points: 100,
|
43
43
|
},
|
44
|
-
auth: ctx.authVerifier.
|
44
|
+
auth: ctx.authVerifier.userServiceAuthOptional,
|
45
45
|
handler: async ({ input, auth, req }) => {
|
46
|
-
const requester = auth.credentials?.
|
46
|
+
const requester = auth.credentials?.did ?? null;
|
47
47
|
const { did, handle, email, password, inviteCode, signingKey, plcOp, deactivated, } = ctx.entrywayAgent
|
48
48
|
? await validateInputsForEntrywayPds(ctx, input.body)
|
49
49
|
: await validateInputsForLocalPds(ctx, input.body, requester);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createAccount.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/createAccount.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAA4D;AAC5D,gDAAkE;AAClE,sDAA6E;AAC7E,4CAA8E;AAC9E,kDAAmC;AACnC,wEAAyC;AACzC,+CAG2B;AAI3B,iCAA0C;AAC1C,iEAA2D;AAE3D,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC;QACtC,SAAS,EAAE;YACT,UAAU,EAAE,CAAC,GAAG,eAAM;YACtB,MAAM,EAAE,GAAG;SACZ;QACD,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,
|
1
|
+
{"version":3,"file":"createAccount.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/createAccount.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAA4D;AAC5D,gDAAkE;AAClE,sDAA6E;AAC7E,4CAA8E;AAC9E,kDAAmC;AACnC,wEAAyC;AACzC,+CAG2B;AAI3B,iCAA0C;AAC1C,iEAA2D;AAE3D,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CA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AE;QAC5B,YAAY;QACZ,MAAM;QACN,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS;QAC9B,MAAM,EAAE,GAAG,CAAC,cAAc;KAC3B,CAAC,CAAA;IACF,OAAO;QACL,GAAG,EAAE,SAAS,CAAC,GAAG;QAClB,KAAK,EAAE,SAAS,CAAC,EAAE;KACpB,CAAA;AACH,CAAC,CAAA;AACD,MAAM,mBAAmB,GAAG,CAC1B,IAAiB,EACjB,QAIC,EACD,EAAE;IACF,yCAAyC;IACzC,qEAAqE;IACrE,mEAAmE;IACnE,IAAI,IAAI,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM,EAAE,CAAC;QACpC,MAAM,IAAI,iCAAmB,CAC3B,oDAAoD,EACpD,oBAAoB,CACrB,CAAA;IACH,CAAC;SAAM,IAAI,IAAI,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,EAAE,CAAC;QACrC,MAAM,IAAI,iCAAmB,CAC3B,2DAA2D,EAC3D,oBAAoB,CACrB,CAAA;IACH,CAAC;SAAM,IAAI,IAAI,CAAC,UAAU,KAAK,QAAQ,CAAC,UAAU,EAAE,CAAC;QACnD,MAAM,IAAI,iCAAmB,CAC3B,6DAA6D,EAC7D,oBAAoB,CACrB,CAAA;IACH,CAAC;AACH,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getServiceAuth.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/getServiceAuth.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"getServiceAuth.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/getServiceAuth.ts"],"names":[],"mappings":"AAEA,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAE5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAqCvD"}
|
@@ -1,15 +1,28 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const xrpc_server_1 = require("@atproto/xrpc-server");
|
4
|
+
const common_1 = require("@atproto/common");
|
4
5
|
function default_1(server, ctx) {
|
5
6
|
server.com.atproto.server.getServiceAuth({
|
6
7
|
auth: ctx.authVerifier.accessPrivileged(),
|
7
8
|
handler: async ({ params, auth }) => {
|
8
9
|
const did = auth.credentials.did;
|
9
10
|
const keypair = await ctx.actorStore.keypair(did);
|
11
|
+
const exp = params.exp ? params.exp * 1000 : undefined;
|
12
|
+
if (exp) {
|
13
|
+
const diff = exp - Date.now();
|
14
|
+
if (diff < 0) {
|
15
|
+
throw new xrpc_server_1.InvalidRequestError('expiration is in past', 'BadExpiration');
|
16
|
+
}
|
17
|
+
else if (diff > common_1.MINUTE) {
|
18
|
+
throw new xrpc_server_1.InvalidRequestError('cannot request a token with an expiration more than a minute in the future', 'BadExpiration');
|
19
|
+
}
|
20
|
+
}
|
10
21
|
const token = await (0, xrpc_server_1.createServiceJwt)({
|
11
22
|
iss: did,
|
12
23
|
aud: params.aud,
|
24
|
+
lxm: params.lxm ?? null,
|
25
|
+
exp,
|
13
26
|
keypair,
|
14
27
|
});
|
15
28
|
return {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getServiceAuth.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/getServiceAuth.ts"],"names":[],"mappings":";;AAAA,
|
1
|
+
{"version":3,"file":"getServiceAuth.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/getServiceAuth.ts"],"names":[],"mappings":";;AAAA,sDAA4E;AAC5E,4CAAwC;AAIxC,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,cAAc,CAAC;QACvC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,gBAAgB,EAAE;QACzC,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE;YAClC,MAAM,GAAG,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YAChC,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;YACjD,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,SAAS,CAAA;YACtD,IAAI,GAAG,EAAE,CAAC;gBACR,MAAM,IAAI,GAAG,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;gBAC7B,IAAI,IAAI,GAAG,CAAC,EAAE,CAAC;oBACb,MAAM,IAAI,iCAAmB,CAC3B,uBAAuB,EACvB,eAAe,CAChB,CAAA;gBACH,CAAC;qBAAM,IAAI,IAAI,GAAG,eAAM,EAAE,CAAC;oBACzB,MAAM,IAAI,iCAAmB,CAC3B,4EAA4E,EAC5E,eAAe,CAChB,CAAA;gBACH,CAAC;YACH,CAAC;YAED,MAAM,KAAK,GAAG,MAAM,IAAA,8BAAgB,EAAC;gBACnC,GAAG,EAAE,GAAG;gBACR,GAAG,EAAE,MAAM,CAAC,GAAG;gBACf,GAAG,EAAE,MAAM,CAAC,GAAG,IAAI,IAAI;gBACvB,GAAG;gBACH,OAAO;aACR,CAAC,CAAA;YACF,OAAO;gBACL,QAAQ,EAAE,kBAAkB;gBAC5B,IAAI,EAAE;oBACJ,KAAK;iBACN;aACF,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AArCD,4BAqCC"}
|
package/dist/api/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAGnC,OAAO,UAAU,MAAM,YAAY,CAAA;AAEnC,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,UAIvD"}
|
package/dist/api/index.js
CHANGED
@@ -5,11 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
const atproto_1 = __importDefault(require("./com/atproto"));
|
7
7
|
const bsky_1 = __importDefault(require("./app/bsky"));
|
8
|
-
const chat_1 = __importDefault(require("./chat"));
|
9
8
|
function default_1(server, ctx) {
|
10
9
|
(0, atproto_1.default)(server, ctx);
|
11
10
|
(0, bsky_1.default)(server, ctx);
|
12
|
-
(0, chat_1.default)(server, ctx);
|
13
11
|
return server;
|
14
12
|
}
|
15
13
|
exports.default = default_1;
|
package/dist/api/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;;;AACA,4DAAsC;AACtC,sDAAgC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;;;AACA,4DAAsC;AACtC,sDAAgC;AAGhC,mBAAyB,MAAc,EAAE,GAAe;IACtD,IAAA,iBAAU,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACvB,IAAA,cAAO,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACpB,OAAO,MAAM,CAAA;AACf,CAAC;AAJD,4BAIC"}
|
package/dist/auth-verifier.d.ts
CHANGED
@@ -47,6 +47,7 @@ type AccessOutput = {
|
|
47
47
|
did: string;
|
48
48
|
scope: AuthScope;
|
49
49
|
audience: string | undefined;
|
50
|
+
isPrivileged: boolean;
|
50
51
|
};
|
51
52
|
artifacts: string;
|
52
53
|
};
|
@@ -60,11 +61,11 @@ type RefreshOutput = {
|
|
60
61
|
};
|
61
62
|
artifacts: string;
|
62
63
|
};
|
63
|
-
type
|
64
|
+
type UserServiceAuthOutput = {
|
64
65
|
credentials: {
|
65
|
-
type: '
|
66
|
+
type: 'user_service_auth';
|
66
67
|
aud: string;
|
67
|
-
|
68
|
+
did: string;
|
68
69
|
};
|
69
70
|
};
|
70
71
|
type ValidatedBearer = {
|
@@ -103,8 +104,9 @@ export declare class AuthVerifier {
|
|
103
104
|
refreshExpired: (ctx: ReqCtx) => Promise<RefreshOutput>;
|
104
105
|
adminToken: (ctx: ReqCtx) => Promise<AdminTokenOutput>;
|
105
106
|
optionalAccessOrAdminToken: (ctx: ReqCtx) => Promise<AccessOutput | AdminTokenOutput | NullOutput>;
|
106
|
-
|
107
|
-
|
107
|
+
userServiceAuth: (ctx: ReqCtx) => Promise<UserServiceAuthOutput>;
|
108
|
+
userServiceAuthOptional: (ctx: ReqCtx) => Promise<UserServiceAuthOutput | NullOutput>;
|
109
|
+
accessOrUserServiceAuth: (opts?: Partial<AccessOpts>) => (ctx: ReqCtx) => Promise<UserServiceAuthOutput | AccessOutput>;
|
108
110
|
modService: (ctx: ReqCtx) => Promise<ModServiceOutput>;
|
109
111
|
moderator: (ctx: ReqCtx) => Promise<AdminTokenOutput | ModServiceOutput>;
|
110
112
|
protected validateAdminToken({ req, }: ReqCtx): Promise<AdminTokenOutput>;
|
@@ -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,EAEL,aAAa,EAEd,MAAM,yBAAyB,CAAA;AAQhC,OAAO,EAAE,UAAU,EAA0B,MAAM,mBAAmB,CAAA;AACtE,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7B,OAAO,KAAK,IAAI,MAAM,MAAM,CAAA;AAE5B,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAm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AA;AAOD,eAAO,MAAM,qBAAqB,WAAY,MAAM,KAAG,SAEtD,CAAA;AAED,eAAO,MAAM,qBAAqB,iBAAkB,MAAM,KAAG,SAG5D,CAAA"}
|
package/dist/auth-verifier.js
CHANGED
@@ -189,7 +189,7 @@ class AuthVerifier {
|
|
189
189
|
}
|
190
190
|
}
|
191
191
|
});
|
192
|
-
Object.defineProperty(this, "
|
192
|
+
Object.defineProperty(this, "userServiceAuth", {
|
193
193
|
enumerable: true,
|
194
194
|
configurable: true,
|
195
195
|
writable: true,
|
@@ -200,26 +200,39 @@ class AuthVerifier {
|
|
200
200
|
});
|
201
201
|
return {
|
202
202
|
credentials: {
|
203
|
-
type: '
|
203
|
+
type: 'user_service_auth',
|
204
204
|
aud: payload.aud,
|
205
|
-
|
205
|
+
did: payload.iss,
|
206
206
|
},
|
207
207
|
};
|
208
208
|
}
|
209
209
|
});
|
210
|
-
Object.defineProperty(this, "
|
210
|
+
Object.defineProperty(this, "userServiceAuthOptional", {
|
211
211
|
enumerable: true,
|
212
212
|
configurable: true,
|
213
213
|
writable: true,
|
214
214
|
value: async (ctx) => {
|
215
215
|
if (isBearerToken(ctx.req)) {
|
216
|
-
return await this.
|
216
|
+
return await this.userServiceAuth(ctx);
|
217
217
|
}
|
218
218
|
else {
|
219
219
|
return this.null(ctx);
|
220
220
|
}
|
221
221
|
}
|
222
222
|
});
|
223
|
+
Object.defineProperty(this, "accessOrUserServiceAuth", {
|
224
|
+
enumerable: true,
|
225
|
+
configurable: true,
|
226
|
+
writable: true,
|
227
|
+
value: (opts = {}) => async (ctx) => {
|
228
|
+
try {
|
229
|
+
return await this.accessStandard(opts)(ctx);
|
230
|
+
}
|
231
|
+
catch {
|
232
|
+
return await this.userServiceAuth(ctx);
|
233
|
+
}
|
234
|
+
}
|
235
|
+
});
|
223
236
|
Object.defineProperty(this, "modService", {
|
224
237
|
enumerable: true,
|
225
238
|
configurable: true,
|
@@ -386,6 +399,7 @@ class AuthVerifier {
|
|
386
399
|
did: result.claims.sub,
|
387
400
|
scope: AuthScope.Access,
|
388
401
|
audience: this.dids.pds,
|
402
|
+
isPrivileged: true,
|
389
403
|
},
|
390
404
|
artifacts: result.token,
|
391
405
|
};
|
@@ -405,12 +419,17 @@ class AuthVerifier {
|
|
405
419
|
}
|
406
420
|
async validateBearerAccessToken(ctx, scopes) {
|
407
421
|
const { did, scope, token, audience } = await this.validateBearerToken(ctx, scopes, { audience: this.dids.pds });
|
422
|
+
const isPrivileged = [
|
423
|
+
AuthScope.Access,
|
424
|
+
AuthScope.AppPassPrivileged,
|
425
|
+
].includes(scope);
|
408
426
|
return {
|
409
427
|
credentials: {
|
410
428
|
type: 'access',
|
411
429
|
did,
|
412
430
|
scope,
|
413
431
|
audience,
|
432
|
+
isPrivileged,
|
414
433
|
},
|
415
434
|
artifacts: token,
|
416
435
|
};
|
@@ -441,7 +460,7 @@ class AuthVerifier {
|
|
441
460
|
if (!jwtStr) {
|
442
461
|
throw new xrpc_server_1.AuthRequiredError('missing jwt', 'MissingJwt');
|
443
462
|
}
|
444
|
-
const payload = await (0, xrpc_server_1.verifyJwt)(jwtStr, opts.aud, getSigningKey);
|
463
|
+
const payload = await (0, xrpc_server_1.verifyJwt)(jwtStr, opts.aud, null, getSigningKey);
|
445
464
|
return { iss: payload.iss, aud: payload.aud };
|
446
465
|
}
|
447
466
|
null(ctx) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"auth-verifier.js","sourceRoot":"","sources":["../src/auth-verifier.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAyE;AAEzE,4DAIgC;AAChC,sDAM6B;AAC7B,gDAAsE;AAEtE,2CAA4B;AAC5B,8DAAoC;AAEpC,6BAAkC;AAClC,4CAAyD;AAQzD,sEAAsE;AACtE,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,0CAA6B,CAAA;IAC7B,4CAA+B,CAAA;IAC/B,4CAA+B,CAAA;IAC/B,gEAAmD,CAA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qBAAqB,yBAGjC;AAED,MAAM,UAAU,GAAG,IAAI,qBAAU,CAAC,WAAW,CAAC,CAAA;AAE9C,SAAS,IAAI,CAAC,GAAqB,EAAE,KAAa;IAChD,MAAM,OAAO,GAAG,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;IACrC,IAAI,OAAO,IAAI,IAAI,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;QACnD,GAAG,CAAC,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;IAC9B,CAAC;SAAM,CAAC;QACN,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;YAC5C,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YAChD,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;QAC3B,IAAI,CAAC,eAAe,EAAE,CAAC;YACrB,GAAG,CAAC,YAAY,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;QACjC,CAAC;IACH,CAAC;AACH,CAAC"}
|
package/dist/context.d.ts
CHANGED
@@ -69,12 +69,12 @@ export declare class AppContext {
|
|
69
69
|
cfg: ServerConfig;
|
70
70
|
constructor(opts: AppContextOptions);
|
71
71
|
static fromConfig(cfg: ServerConfig, secrets: ServerSecrets, overrides?: Partial<AppContextOptions>): Promise<AppContext>;
|
72
|
-
appviewAuthHeaders(did: string): Promise<{
|
72
|
+
appviewAuthHeaders(did: string, lxm: string): Promise<{
|
73
73
|
headers: {
|
74
74
|
authorization: string;
|
75
75
|
};
|
76
76
|
}>;
|
77
|
-
serviceAuthHeaders(did: string, aud: string): Promise<{
|
77
|
+
serviceAuthHeaders(did: string, aud: string, lxm: string): Promise<{
|
78
78
|
headers: {
|
79
79
|
authorization: string;
|
80
80
|
};
|
package/dist/context.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-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e,UAAU,CAAA"}
|
package/dist/context.js
CHANGED
@@ -379,15 +379,16 @@ class AppContext {
|
|
379
379
|
...(overrides ?? {}),
|
380
380
|
});
|
381
381
|
}
|
382
|
-
async appviewAuthHeaders(did) {
|
382
|
+
async appviewAuthHeaders(did, lxm) {
|
383
383
|
(0, node_assert_1.default)(this.cfg.bskyAppView);
|
384
|
-
return this.serviceAuthHeaders(did, this.cfg.bskyAppView.did);
|
384
|
+
return this.serviceAuthHeaders(did, this.cfg.bskyAppView.did, lxm);
|
385
385
|
}
|
386
|
-
async serviceAuthHeaders(did, aud) {
|
386
|
+
async serviceAuthHeaders(did, aud, lxm) {
|
387
387
|
const keypair = await this.actorStore.keypair(did);
|
388
388
|
return (0, xrpc_server_1.createServiceAuthHeaders)({
|
389
389
|
iss: did,
|
390
390
|
aud,
|
391
|
+
lxm,
|
391
392
|
keypair,
|
392
393
|
});
|
393
394
|
}
|