@atproto/pds 0.4.77 → 0.4.79
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 +18 -0
- package/dist/account-manager/helpers/auth.d.ts +1 -1
- package/dist/account-manager/helpers/auth.d.ts.map +1 -1
- package/dist/account-manager/helpers/auth.js +3 -1
- package/dist/account-manager/helpers/auth.js.map +1 -1
- package/dist/account-manager/index.d.ts +2 -1
- package/dist/account-manager/index.d.ts.map +1 -1
- package/dist/account-manager/index.js +13 -8
- package/dist/account-manager/index.js.map +1 -1
- package/dist/api/app/bsky/actor/getPreferences.d.ts.map +1 -1
- package/dist/api/app/bsky/actor/getPreferences.js +4 -1
- package/dist/api/app/bsky/actor/getPreferences.js.map +1 -1
- package/dist/api/com/atproto/identity/requestPlcOperationSignature.d.ts.map +1 -1
- package/dist/api/com/atproto/identity/requestPlcOperationSignature.js +2 -1
- package/dist/api/com/atproto/identity/requestPlcOperationSignature.js.map +1 -1
- package/dist/api/com/atproto/index.d.ts.map +1 -1
- package/dist/api/com/atproto/index.js +2 -0
- package/dist/api/com/atproto/index.js.map +1 -1
- package/dist/api/com/atproto/moderation/createReport.d.ts +4 -0
- package/dist/api/com/atproto/moderation/createReport.d.ts.map +1 -0
- package/dist/api/com/atproto/moderation/createReport.js +28 -0
- package/dist/api/com/atproto/moderation/createReport.js.map +1 -0
- package/dist/api/com/atproto/moderation/index.d.ts +4 -0
- package/dist/api/com/atproto/moderation/index.d.ts.map +1 -0
- package/dist/api/com/atproto/moderation/index.js +11 -0
- package/dist/api/com/atproto/moderation/index.js.map +1 -0
- package/dist/api/com/atproto/server/createSession.d.ts.map +1 -1
- package/dist/api/com/atproto/server/createSession.js +6 -2
- package/dist/api/com/atproto/server/createSession.js.map +1 -1
- package/dist/api/com/atproto/server/deactivateAccount.d.ts.map +1 -1
- package/dist/api/com/atproto/server/deactivateAccount.js +2 -1
- package/dist/api/com/atproto/server/deactivateAccount.js.map +1 -1
- package/dist/api/com/atproto/server/getServiceAuth.d.ts.map +1 -1
- package/dist/api/com/atproto/server/getServiceAuth.js +10 -1
- package/dist/api/com/atproto/server/getServiceAuth.js.map +1 -1
- package/dist/api/com/atproto/sync/deprecated/getCheckout.js +1 -1
- package/dist/api/com/atproto/sync/deprecated/getCheckout.js.map +1 -1
- package/dist/api/com/atproto/sync/deprecated/getHead.js +1 -1
- package/dist/api/com/atproto/sync/deprecated/getHead.js.map +1 -1
- package/dist/api/com/atproto/sync/getBlob.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/getBlob.js +4 -1
- package/dist/api/com/atproto/sync/getBlob.js.map +1 -1
- package/dist/api/com/atproto/sync/getBlocks.js +1 -1
- package/dist/api/com/atproto/sync/getBlocks.js.map +1 -1
- package/dist/api/com/atproto/sync/getLatestCommit.js +1 -1
- package/dist/api/com/atproto/sync/getLatestCommit.js.map +1 -1
- package/dist/api/com/atproto/sync/getRecord.js +1 -1
- package/dist/api/com/atproto/sync/getRecord.js.map +1 -1
- package/dist/api/com/atproto/sync/getRepo.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/getRepo.js +4 -1
- package/dist/api/com/atproto/sync/getRepo.js.map +1 -1
- package/dist/api/com/atproto/sync/listBlobs.d.ts.map +1 -1
- package/dist/api/com/atproto/sync/listBlobs.js +4 -1
- package/dist/api/com/atproto/sync/listBlobs.js.map +1 -1
- package/dist/auth-verifier.d.ts +3 -2
- package/dist/auth-verifier.d.ts.map +1 -1
- package/dist/auth-verifier.js +3 -2
- package/dist/auth-verifier.js.map +1 -1
- package/dist/basic-routes.d.ts.map +1 -1
- package/dist/basic-routes.js +20 -1
- package/dist/basic-routes.js.map +1 -1
- package/dist/lexicon/index.d.ts +2 -2
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/lexicons.d.ts +36 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +18 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/com/atproto/server/createSession.d.ts +2 -0
- package/dist/lexicon/types/com/atproto/server/createSession.d.ts.map +1 -1
- package/dist/lexicon/types/tools/ozone/moderation/queryStatuses.d.ts +6 -0
- package/dist/lexicon/types/tools/ozone/moderation/queryStatuses.d.ts.map +1 -1
- package/dist/pipethrough.d.ts +4 -0
- package/dist/pipethrough.d.ts.map +1 -1
- package/dist/pipethrough.js +1 -0
- package/dist/pipethrough.js.map +1 -1
- package/package.json +5 -5
- package/src/account-manager/helpers/auth.ts +5 -1
- package/src/account-manager/index.ts +14 -11
- package/src/api/app/bsky/actor/getPreferences.ts +4 -1
- package/src/api/com/atproto/identity/requestPlcOperationSignature.ts +2 -1
- package/src/api/com/atproto/index.ts +2 -0
- package/src/api/com/atproto/moderation/createReport.ts +36 -0
- package/src/api/com/atproto/moderation/index.ts +7 -0
- package/src/api/com/atproto/server/createSession.ts +11 -2
- package/src/api/com/atproto/server/deactivateAccount.ts +2 -1
- package/src/api/com/atproto/server/getServiceAuth.ts +14 -1
- package/src/api/com/atproto/sync/deprecated/getCheckout.ts +1 -1
- package/src/api/com/atproto/sync/deprecated/getHead.ts +1 -1
- package/src/api/com/atproto/sync/getBlob.ts +4 -1
- package/src/api/com/atproto/sync/getBlocks.ts +1 -1
- package/src/api/com/atproto/sync/getLatestCommit.ts +1 -1
- package/src/api/com/atproto/sync/getRecord.ts +1 -1
- package/src/api/com/atproto/sync/getRepo.ts +4 -1
- package/src/api/com/atproto/sync/listBlobs.ts +4 -1
- package/src/auth-verifier.ts +13 -10
- package/src/basic-routes.ts +20 -3
- package/src/lexicon/index.ts +2 -2
- package/src/lexicon/lexicons.ts +22 -0
- package/src/lexicon/types/com/atproto/server/createSession.ts +2 -0
- package/src/lexicon/types/tools/ozone/moderation/queryStatuses.ts +6 -0
- package/src/pipethrough.ts +1 -2
- package/tests/__snapshots__/takedown-appeal.test.ts.snap +30 -0
- package/tests/account-deactivation.test.ts +1 -1
- package/tests/account-migration.test.ts +3 -3
- package/tests/auth.test.ts +10 -11
- package/tests/blob-deletes.test.ts +8 -8
- package/tests/crud.test.ts +4 -12
- package/tests/file-uploads.test.ts +5 -11
- package/tests/moderation.test.ts +1 -1
- package/tests/proxied/__snapshots__/admin.test.ts.snap +32 -7
- package/tests/proxied/__snapshots__/feedgen.test.ts.snap +4 -4
- package/tests/proxied/__snapshots__/views.test.ts.snap +32 -32
- package/tests/proxied/read-after-write.test.ts +2 -2
- package/tests/seeds/basic.ts +3 -3
- package/tests/takedown-appeal.test.ts +157 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.tests.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# @atproto/pds
|
2
2
|
|
3
|
+
## 0.4.79
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#3251](https://github.com/bluesky-social/atproto/pull/3251) [`6d308b857`](https://github.com/bluesky-social/atproto/commit/6d308b857ba2a514ee3c75ebdef7225e298ed7d7) Thanks [@foysalit](https://github.com/foysalit)! - Allow takendown account scope on access tokens. Allow takendown accounts to createReports at discretion of the moderation service
|
8
|
+
|
9
|
+
- [#3273](https://github.com/bluesky-social/atproto/pull/3273) [`b4674a61a`](https://github.com/bluesky-social/atproto/commit/b4674a61a92ca96f89ac06e705e08c2e6af07e1b) Thanks [@dholms](https://github.com/dholms)! - Allow takendown accounts to perform account migration
|
10
|
+
|
11
|
+
- Updated dependencies [[`6d308b857`](https://github.com/bluesky-social/atproto/commit/6d308b857ba2a514ee3c75ebdef7225e298ed7d7), [`9ea2cce9a`](https://github.com/bluesky-social/atproto/commit/9ea2cce9a4c0a08994a8cb5abc81dc4bc2221d0c)]:
|
12
|
+
- @atproto/api@0.13.23
|
13
|
+
|
14
|
+
## 0.4.78
|
15
|
+
|
16
|
+
### Patch Changes
|
17
|
+
|
18
|
+
- Updated dependencies [[`f22383cee`](https://github.com/bluesky-social/atproto/commit/f22383cee8feb8b9f761c801ab6e07ad8dc019ed)]:
|
19
|
+
- @atproto/api@0.13.22
|
20
|
+
|
3
21
|
## 0.4.77
|
4
22
|
|
5
23
|
### Patch Changes
|
@@ -58,7 +58,7 @@ export declare const revokeRefreshToken: (db: AccountDb, id: string) => Promise<
|
|
58
58
|
export declare const revokeRefreshTokensByDid: (db: AccountDb, did: string) => Promise<boolean>;
|
59
59
|
export declare const revokeAppPasswordRefreshToken: (db: AccountDb, did: string, appPassName: string) => Promise<boolean>;
|
60
60
|
export declare const getRefreshTokenId: () => string;
|
61
|
-
export declare const formatScope: (appPassword: AppPassDescript | null) => AuthScope;
|
61
|
+
export declare const formatScope: (appPassword: AppPassDescript | null, isSoftDeleted?: boolean) => AuthScope;
|
62
62
|
export declare class ConcurrentRefreshError extends Error {
|
63
63
|
}
|
64
64
|
//# sourceMappingURL=auth.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/account-manager/helpers/auth.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAIvC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAE5C,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,EAAE,SAAS,CAAA;IAChB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG;IAAE,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAA;AAEhF,eAAO,MAAM,YAAY,SAAgB;IACvC,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,SAAS,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,E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CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAC5B,KAAG,OAAO,CAAC,MAAM,CAmBjB,CAAA;AAGD,eAAO,MAAM,kBAAkB,QAAS,MAAM,KAG5B,YACjB,CAAA;AAED,eAAO,MAAM,iBAAiB,OACxB,SAAS,WACJ,YAAY,eACR,eAAe,GAAG,IAAI,2CAcpC,CAAA;AAED,eAAO,MAAM,eAAe,OAAc,SAAS,MAAM,MAAM;;;;;;;;;SA0B9D,CAAA;AAED,eAAO,MAAM,0BAA0B,OACjC,SAAS,OACR,MAAM,OACN,MAAM,kBAQZ,CAAA;AAED,eAAO,MAAM,qBAAqB,OAC5B,SAAS,QACP;IACJ,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;CACf,kBAgBF,CAAA;AAED,eAAO,MAAM,kBAAkB,OAAc,SAAS,MAAM,MAAM,qBAKjE,CAAA;AAED,eAAO,MAAM,wBAAwB,OAAc,SAAS,OAAO,MAAM,qBAKxE,CAAA;AAED,eAAO,MAAM,6BAA6B,OACpC,SAAS,OACR,MAAM,eACE,MAAM,qBAUpB,CAAA;AAED,eAAO,MAAM,iBAAiB,cAE7B,CAAA;AAED,eAAO,MAAM,WAAW,gBACT,eAAe,GAAG,IAAI,kBACnB,OAAO,KACtB,SAMF,CAAA;AAED,qBAAa,sBAAuB,SAAQ,KAAK;CAAG"}
|
@@ -159,7 +159,9 @@ const getRefreshTokenId = () => {
|
|
159
159
|
return ui8.toString(crypto.randomBytes(32), 'base64');
|
160
160
|
};
|
161
161
|
exports.getRefreshTokenId = getRefreshTokenId;
|
162
|
-
const formatScope = (appPassword) => {
|
162
|
+
const formatScope = (appPassword, isSoftDeleted) => {
|
163
|
+
if (isSoftDeleted)
|
164
|
+
return auth_verifier_1.AuthScope.Takendown;
|
163
165
|
if (!appPassword)
|
164
166
|
return auth_verifier_1.AuthScope.Access;
|
165
167
|
return appPassword.privileged
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/account-manager/helpers/auth.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8DAAgC;AAEhC,2CAA4B;AAC5B,iDAAkC;AAClC,wDAAyC;AACzC,uDAA+C;AAYxC,MAAM,YAAY,GAAG,KAAK,EAAE,IAOlC,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,IAAI,CAAA;IAC/D,MAAM,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAChD,IAAA,yBAAiB,EAAC,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;QAChE,IAAA,0BAAkB,EAAC,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC;KAChE,CAAC,CAAA;IACF,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,CAAA;AAClC,CAAC,CAAA;AAdY,QAAA,YAAY,gBAcxB;AAEM,MAAM,iBAAiB,GAAG,CAAC,IAMjC,EAAmB,EAAE;IACpB,MAAM,EACJ,GAAG,EACH,MAAM,EACN,UAAU,EACV,KAAK,GAAG,yBAAS,CAAC,MAAM,EACxB,SAAS,GAAG,SAAS,GACtB,GAAG,IAAI,CAAA;IACR,MAAM,MAAM,GAAG,IAAI,IAAI,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC;SACvC,kBAAkB,CAAC;QAClB,GAAG,EAAE,QAAQ,EAAE,8CAA8C;QAC7D,GAAG,EAAE,OAAO,EAAE,gCAAgC;KAC/C,CAAC;SACD,WAAW,CAAC,UAAU,CAAC;S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nC,aAAuB,EACZ,EAAE;IACb,IAAI,aAAa;QAAE,OAAO,yBAAS,CAAC,SAAS,CAAA;IAC7C,IAAI,CAAC,WAAW;QAAE,OAAO,yBAAS,CAAC,MAAM,CAAA;IACzC,OAAO,WAAW,CAAC,UAAU;QAC3B,CAAC,CAAC,yBAAS,CAAC,iBAAiB;QAC7B,CAAC,CAAC,yBAAS,CAAC,OAAO,CAAA;AACvB,CAAC,CAAA;AATY,QAAA,WAAW,eASvB;AAED,MAAa,sBAAuB,SAAQ,KAAK;CAAG;AAApD,wDAAoD"}
|
@@ -46,7 +46,7 @@ export declare class AccountManager implements AccountStore, RequestStore, Devic
|
|
46
46
|
updateRepoRoot(did: string, cid: CID, rev: string): Promise<void>;
|
47
47
|
deactivateAccount(did: string, deleteAfter: string | null): Promise<void>;
|
48
48
|
activateAccount(did: string): Promise<void>;
|
49
|
-
createSession(did: string, appPassword: password.AppPassDescript | null): Promise<{
|
49
|
+
createSession(did: string, appPassword: password.AppPassDescript | null, isSoftDeleted?: boolean): Promise<{
|
50
50
|
accessJwt: string;
|
51
51
|
refreshJwt: string;
|
52
52
|
}>;
|
@@ -58,6 +58,7 @@ export declare class AccountManager implements AccountStore, RequestStore, Devic
|
|
58
58
|
}): Promise<{
|
59
59
|
user: ActorAccount;
|
60
60
|
appPassword: password.AppPassDescript | null;
|
61
|
+
isSoftDeleted: boolean;
|
61
62
|
}>;
|
62
63
|
createAppPassword(did: string, name: string, privileged: boolean): Promise<import("../lexicon/types/com/atproto/server/createAppPassword").AppPassword>;
|
63
64
|
listAppPasswords(did: string): Promise<{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/account-manager/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,EACX,YAAY,EACZ,IAAI,EACJ,UAAU,EACV,QAAQ,EACR,WAAW,EACX,kBAAkB,EAClB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,SAAS,EACT,YAAY,E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AAC;IAKtD,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAK5C,WAAW,CACf,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,OAAO,EACnB,eAAe,EAAE,YAAY,EAC7B,OAAO,EAAE,YAAY,GACpB,OAAO,CAAC,IAAI,CAAC;IA6BV,uBAAuB,CAC3B,YAAY,EAAE,YAAY,GACzB,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;IAatB,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;CAI7D"}
|
@@ -171,15 +171,18 @@ class AccountManager {
|
|
171
171
|
}
|
172
172
|
// Auth
|
173
173
|
// ----------
|
174
|
-
async createSession(did, appPassword) {
|
174
|
+
async createSession(did, appPassword, isSoftDeleted = false) {
|
175
175
|
const { accessJwt, refreshJwt } = await auth.createTokens({
|
176
176
|
did,
|
177
177
|
jwtKey: this.jwtKey,
|
178
178
|
serviceDid: this.serviceDid,
|
179
|
-
scope: auth.formatScope(appPassword),
|
179
|
+
scope: auth.formatScope(appPassword, isSoftDeleted),
|
180
180
|
});
|
181
|
-
|
182
|
-
|
181
|
+
// For soft deleted accounts don't store refresh token so that it can't be rotated.
|
182
|
+
if (!isSoftDeleted) {
|
183
|
+
const refreshPayload = auth.decodeRefreshToken(refreshJwt);
|
184
|
+
await auth.storeRefreshToken(this.db, refreshPayload, appPassword);
|
185
|
+
}
|
183
186
|
return { accessJwt, refreshJwt };
|
184
187
|
}
|
185
188
|
async rotateRefreshToken(id) {
|
@@ -249,18 +252,20 @@ class AccountManager {
|
|
249
252
|
if (!user) {
|
250
253
|
throw new xrpc_server_1.AuthRequiredError('Invalid identifier or password');
|
251
254
|
}
|
255
|
+
const isSoftDeleted = (0, db_1.softDeleted)(user);
|
252
256
|
let appPassword = null;
|
253
257
|
const validAccountPass = await this.verifyAccountPassword(user.did, password);
|
254
258
|
if (!validAccountPass) {
|
259
|
+
// takendown/suspended accounts cannot login with app password
|
260
|
+
if (isSoftDeleted) {
|
261
|
+
throw new xrpc_server_1.AuthRequiredError('Invalid identifier or password');
|
262
|
+
}
|
255
263
|
appPassword = await this.verifyAppPassword(user.did, password);
|
256
264
|
if (appPassword === null) {
|
257
265
|
throw new xrpc_server_1.AuthRequiredError('Invalid identifier or password');
|
258
266
|
}
|
259
267
|
}
|
260
|
-
|
261
|
-
throw new xrpc_server_1.AuthRequiredError('Account has been taken down', 'AccountTakedown');
|
262
|
-
}
|
263
|
-
return { user, appPassword };
|
268
|
+
return { user, appPassword, isSoftDeleted };
|
264
269
|
}
|
265
270
|
finally {
|
266
271
|
// Mitigate timing attacks
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/account-manager/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAA4C;AAqB5C,sDAAwD;AAIxD,oDAA4C;AAE5C,8BAAmC;AAEnC,6BAAuE;AACvE,2DAA4C;AAC5C,+CAA+D;AAC/D,qDAAsC;AACtC,6EAA8D;AAC9D,yDAA0C;AAC1C,wEAAyD;AACzD,kEAAmD;AACnD,yDAA0C;AAC1C,6DAA8C;AAC9C,qDAAsC;AACtC,yDAA0C;AAC1C,uDAAwC;AACxC,+EAAgE;AAEhE,6CAAsE;AAA7D,wGAAA,aAAa,OAAA;AAAE,8GAAA,mBAAmB,OAAA;AAE3C,MAAa,cAAc;IAKzB,YACU,eAAgC,EACxC,UAAkB,EACV,MAAiB,EACjB,UAAkB,EAC1B,wBAAwB,GAAG,KAAK;QAJhC;;;;mBAAQ,eAAe;WAAiB;QAExC;;;;mBAAQ,MAAM;WAAW;QACzB;;;;mBAAQ,UAAU;WAAQ;QAN5B;;;;;WAAa;QASX,IAAI,CAAC,EAAE,GAAG,IAAA,UAAK,EAAC,UAAU,EAAE,wBAAwB,CAAC,CAAA;IACvD,CAAC;IAED,KAAK,CAAC,cAAc;QAClB,MAAM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,wCAkqBC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getPreferences.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/actor/getPreferences.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;
|
1
|
+
{"version":3,"file":"getPreferences.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/actor/getPreferences.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAG5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAiBvD"}
|
@@ -1,11 +1,14 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.default = default_1;
|
4
|
+
const auth_verifier_1 = require("../../../../auth-verifier");
|
4
5
|
function default_1(server, ctx) {
|
5
6
|
if (!ctx.cfg.bskyAppView)
|
6
7
|
return;
|
7
8
|
server.app.bsky.actor.getPreferences({
|
8
|
-
auth: ctx.authVerifier.accessStandard(
|
9
|
+
auth: ctx.authVerifier.accessStandard({
|
10
|
+
additional: [auth_verifier_1.AuthScope.Takendown],
|
11
|
+
}),
|
9
12
|
handler: async ({ auth }) => {
|
10
13
|
const requester = auth.credentials.did;
|
11
14
|
const preferences = await ctx.actorStore.read(requester, (store) => store.pref.getPreferences('app.bsky', auth.credentials.scope));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getPreferences.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/actor/getPreferences.ts"],"names":[],"mappings":";;
|
1
|
+
{"version":3,"file":"getPreferences.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/actor/getPreferences.ts"],"names":[],"mappings":";;AAIA,4BAiBC;AAnBD,6DAAqD;AAErD,mBAAyB,MAAc,EAAE,GAAe;IACtD,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,WAAW;QAAE,OAAM;IAChC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC;QACnC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,cAAc,CAAC;YACpC,UAAU,EAAE,CAAC,yBAAS,CAAC,SAAS,CAAC;SAClC,CAAC;QACF,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;YAC1B,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YACtC,MAAM,WAAW,GAAG,MAAM,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CACjE,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,UAAU,EAAE,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAC9D,CAAA;YACD,OAAO;gBACL,QAAQ,EAAE,kBAAkB;gBAC5B,IAAI,EAAE,EAAE,WAAW,EAAE;aACtB,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"requestPlcOperationSignature.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/identity/requestPlcOperationSignature.ts"],"names":[],"mappings":"AAIA,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;
|
1
|
+
{"version":3,"file":"requestPlcOperationSignature.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/identity/requestPlcOperationSignature.ts"],"names":[],"mappings":"AAIA,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAI5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAkCvD"}
|
@@ -7,9 +7,10 @@ exports.default = default_1;
|
|
7
7
|
const node_assert_1 = __importDefault(require("node:assert"));
|
8
8
|
const xrpc_server_1 = require("@atproto/xrpc-server");
|
9
9
|
const lexicons_1 = require("../../../../lexicon/lexicons");
|
10
|
+
const auth_verifier_1 = require("../../../../auth-verifier");
|
10
11
|
function default_1(server, ctx) {
|
11
12
|
server.com.atproto.identity.requestPlcOperationSignature({
|
12
|
-
auth: ctx.authVerifier.accessFull(),
|
13
|
+
auth: ctx.authVerifier.accessFull({ additional: [auth_verifier_1.AuthScope.Takendown] }),
|
13
14
|
handler: async ({ auth }) => {
|
14
15
|
if (ctx.entrywayAgent) {
|
15
16
|
(0, node_assert_1.default)(ctx.cfg.entryway);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"requestPlcOperationSignature.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/identity/requestPlcOperationSignature.ts"],"names":[],"mappings":";;;;;
|
1
|
+
{"version":3,"file":"requestPlcOperationSignature.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/identity/requestPlcOperationSignature.ts"],"names":[],"mappings":";;;;;AASA,4BAkCC;AA3CD,8DAAgC;AAEhC,sDAA0D;AAI1D,2DAAkD;AAClD,6DAAqD;AAErD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAAC;QACvD,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,UAAU,EAAE,CAAC,yBAAS,CAAC,SAAS,CAAC,EAAE,CAAC;QACxE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;YAC1B,IAAI,GAAG,CAAC,aAAa,EAAE,CAAC;gBACtB,IAAA,qBAAM,EAAC,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;gBACxB,MAAM,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CACvE,SAAS,EACT,MAAM,GAAG,CAAC,kBAAkB,CAC1B,IAAI,CAAC,WAAW,CAAC,GAAG,EACpB,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,EACpB,cAAG,CAAC,8CAA8C,CACnD,CACF,CAAA;gBACD,OAAM;YACR,CAAC;YAED,MAAM,GAAG,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YAChC,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC,UAAU,CAAC,GAAG,EAAE;gBACvD,kBAAkB,EAAE,IAAI;gBACxB,gBAAgB,EAAE,IAAI;aACvB,CAAC,CAAA;YACF,IAAI,CAAC,OAAO,EAAE,CAAC;gBACb,MAAM,IAAI,iCAAmB,CAAC,mBAAmB,CAAC,CAAA;YACpD,CAAC;iBAAM,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;gBAC1B,MAAM,IAAI,iCAAmB,CAAC,wCAAwC,CAAC,CAAA;YACzE,CAAC;YACD,MAAM,KAAK,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC,gBAAgB,CACrD,GAAG,EACH,eAAe,CAChB,CAAA;YACD,MAAM,GAAG,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAA;QACrE,CAAC;KACF,CAAC,CAAA;AACJ,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/com/atproto/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/com/atproto/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AASzC,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAQvD"}
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.default = default_1;
|
7
7
|
const admin_1 = __importDefault(require("./admin"));
|
8
8
|
const identity_1 = __importDefault(require("./identity"));
|
9
|
+
const moderation_1 = __importDefault(require("./moderation"));
|
9
10
|
const repo_1 = __importDefault(require("./repo"));
|
10
11
|
const server_1 = __importDefault(require("./server"));
|
11
12
|
const sync_1 = __importDefault(require("./sync"));
|
@@ -13,6 +14,7 @@ const temp_1 = __importDefault(require("./temp"));
|
|
13
14
|
function default_1(server, ctx) {
|
14
15
|
(0, admin_1.default)(server, ctx);
|
15
16
|
(0, identity_1.default)(server, ctx);
|
17
|
+
(0, moderation_1.default)(server, ctx);
|
16
18
|
(0, repo_1.default)(server, ctx);
|
17
19
|
(0, server_1.default)(server, ctx);
|
18
20
|
(0, sync_1.default)(server, ctx);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/com/atproto/index.ts"],"names":[],"mappings":";;;;;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/com/atproto/index.ts"],"names":[],"mappings":";;;;;AAUA,4BAQC;AAhBD,oDAA2B;AAC3B,0DAAiC;AACjC,8DAAqC;AACrC,kDAAyB;AACzB,sDAAoC;AACpC,kDAAyB;AACzB,kDAAyB;AAEzB,mBAAyB,MAAc,EAAE,GAAe;IACtD,IAAA,eAAK,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAClB,IAAA,kBAAQ,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACrB,IAAA,oBAAU,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACvB,IAAA,cAAI,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACjB,IAAA,gBAAa,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC1B,IAAA,cAAI,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACjB,IAAA,cAAI,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AACnB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"createReport.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/moderation/createReport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAM5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QA4BvD"}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = default_1;
|
4
|
+
const pipethrough_1 = require("../../../../pipethrough");
|
5
|
+
const lexicons_1 = require("../../../../lexicon/lexicons");
|
6
|
+
const api_1 = require("@atproto/api");
|
7
|
+
const auth_verifier_1 = require("../../../../auth-verifier");
|
8
|
+
function default_1(server, ctx) {
|
9
|
+
server.com.atproto.moderation.createReport({
|
10
|
+
auth: ctx.authVerifier.accessStandard({
|
11
|
+
additional: [auth_verifier_1.AuthScope.Takendown],
|
12
|
+
}),
|
13
|
+
handler: async ({ auth, input, req }) => {
|
14
|
+
const { url, did: aud } = await (0, pipethrough_1.parseProxyInfo)(ctx, req, lexicons_1.ids.ComAtprotoModerationCreateReport);
|
15
|
+
const agent = new api_1.AtpAgent({ service: url });
|
16
|
+
const serviceAuth = await ctx.serviceAuthHeaders(auth.credentials.did, aud, lexicons_1.ids.ComAtprotoModerationCreateReport);
|
17
|
+
const res = await agent.com.atproto.moderation.createReport(input.body, {
|
18
|
+
...serviceAuth,
|
19
|
+
encoding: 'application/json',
|
20
|
+
});
|
21
|
+
return {
|
22
|
+
encoding: 'application/json',
|
23
|
+
body: res.data,
|
24
|
+
};
|
25
|
+
},
|
26
|
+
});
|
27
|
+
}
|
28
|
+
//# sourceMappingURL=createReport.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"createReport.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/moderation/createReport.ts"],"names":[],"mappings":";;AAOA,4BA4BC;AAjCD,yDAAwD;AACxD,2DAAkD;AAClD,sCAAuC;AACvC,6DAAqD;AAErD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC;QACzC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,cAAc,CAAC;YACpC,UAAU,EAAE,CAAC,yBAAS,CAAC,SAAS,CAAC;SAClC,CAAC;QACF,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE;YACtC,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,MAAM,IAAA,4BAAc,EAC5C,GAAG,EACH,GAAG,EACH,cAAG,CAAC,gCAAgC,CACrC,CAAA;YACD,MAAM,KAAK,GAAG,IAAI,cAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAA;YAC5C,MAAM,WAAW,GAAG,MAAM,GAAG,CAAC,kBAAkB,CAC9C,IAAI,CAAC,WAAW,CAAC,GAAG,EACpB,GAAG,EACH,cAAG,CAAC,gCAAgC,CACrC,CAAA;YACD,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,EAAE;gBACtE,GAAG,WAAW;gBACd,QAAQ,EAAE,kBAAkB;aAC7B,CAAC,CAAA;YAEF,OAAO;gBACL,QAAQ,EAAE,kBAAkB;gBAC5B,IAAI,EAAE,GAAG,CAAC,IAAI;aACf,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/moderation/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAG5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAEvD"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.default = default_1;
|
7
|
+
const createReport_1 = __importDefault(require("./createReport"));
|
8
|
+
function default_1(server, ctx) {
|
9
|
+
(0, createReport_1.default)(server, ctx);
|
10
|
+
}
|
11
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/moderation/index.ts"],"names":[],"mappings":";;;;;AAIA,4BAEC;AAJD,kEAAyC;AAEzC,mBAAyB,MAAc,EAAE,GAAe;IACtD,IAAA,sBAAY,EAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AAC3B,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createSession.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/createSession.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"createSession.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/createSession.ts"],"names":[],"mappings":"AAKA,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAI5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAyDvD"}
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = default_1;
|
4
4
|
const common_1 = require("@atproto/common");
|
5
5
|
const syntax_1 = require("@atproto/syntax");
|
6
|
+
const xrpc_server_1 = require("@atproto/xrpc-server");
|
6
7
|
const account_manager_1 = require("../../../../account-manager");
|
7
8
|
const proxy_1 = require("../../../proxy");
|
8
9
|
const util_1 = require("./util");
|
@@ -24,9 +25,12 @@ function default_1(server, ctx) {
|
|
24
25
|
if (ctx.entrywayAgent) {
|
25
26
|
return (0, proxy_1.resultPassthru)(await ctx.entrywayAgent.com.atproto.server.createSession(input.body, (0, proxy_1.authPassthru)(req, true)));
|
26
27
|
}
|
27
|
-
const { user, appPassword } = await ctx.accountManager.login(input.body);
|
28
|
+
const { user, isSoftDeleted, appPassword } = await ctx.accountManager.login(input.body);
|
29
|
+
if (!input.body.allowTakendown && isSoftDeleted) {
|
30
|
+
throw new xrpc_server_1.AuthRequiredError('Account has been taken down', 'AccountTakedown');
|
31
|
+
}
|
28
32
|
const [{ accessJwt, refreshJwt }, didDoc] = await Promise.all([
|
29
|
-
ctx.accountManager.createSession(user.did, appPassword),
|
33
|
+
ctx.accountManager.createSession(user.did, appPassword, isSoftDeleted),
|
30
34
|
(0, util_1.didDocForSession)(ctx, user.did),
|
31
35
|
]);
|
32
36
|
const { status, active } = (0, account_manager_1.formatAccountStatus)(user);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createSession.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/createSession.ts"],"names":[],"mappings":";;
|
1
|
+
{"version":3,"file":"createSession.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/createSession.ts"],"names":[],"mappings":";;AAUA,4BAyDC;AAnED,4CAA6C;AAC7C,4CAAgD;AAChD,sDAAwD;AAExD,iEAAiE;AAGjE,0CAA6D;AAC7D,iCAAyC;AAEzC,mBAAyB,MAAc,EAA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Ac,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,EAAE,WAAW,EAAE,aAAa,CAAC;gBACtE,IAAA,uBAAgB,EAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC;aAChC,CAAC,CAAA;YAEF,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,qCAAmB,EAAC,IAAI,CAAC,CAAA;YAEpD,OAAO;gBACL,QAAQ,EAAE,kBAAkB;gBAC5B,IAAI,EAAE;oBACJ,GAAG,EAAE,IAAI,CAAC,GAAG;oBACb,MAAM;oBACN,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,uBAAc;oBACrC,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,SAAS;oBAC9B,cAAc,EAAE,CAAC,CAAC,IAAI,CAAC,gBAAgB;oBACvC,SAAS;oBACT,UAAU;oBACV,MAAM;oBACN,MAAM;iBACP;aACF,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"deactivateAccount.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/deactivateAccount.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"deactivateAccount.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/deactivateAccount.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAG5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAsBvD"}
|
@@ -1,10 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.default = default_1;
|
4
|
+
const auth_verifier_1 = require("../../../../auth-verifier");
|
4
5
|
const proxy_1 = require("../../../proxy");
|
5
6
|
function default_1(server, ctx) {
|
6
7
|
server.com.atproto.server.deactivateAccount({
|
7
|
-
auth: ctx.authVerifier.accessFull(),
|
8
|
+
auth: ctx.authVerifier.accessFull({ additional: [auth_verifier_1.AuthScope.Takendown] }),
|
8
9
|
handler: async ({ req, auth, input }) => {
|
9
10
|
// in the case of entryway, the full flow is deactivateAccount (PDS) -> deactivateAccount (Entryway) -> updateSubjectStatus(PDS)
|
10
11
|
if (ctx.entrywayAgent) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"deactivateAccount.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/deactivateAccount.ts"],"names":[],"mappings":";;
|
1
|
+
{"version":3,"file":"deactivateAccount.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/deactivateAccount.ts"],"names":[],"mappings":";;AAKA,4BAsBC;AA3BD,6DAAqD;AAGrD,0CAA6C;AAE7C,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC;QAC1C,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,UAAU,EAAE,CAAC,yBAAS,CAAC,SAAS,CAAC,EAAE,CAAC;QACxE,OAAO,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE;YACtC,gIAAgI;YAChI,IAAI,GAAG,CAAC,aAAa,EAAE,CAAC;gBACtB,MAAM,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAC1D,KAAK,CAAC,IAAI,EACV,IAAA,oBAAY,EAAC,GAAG,CAAC,CAClB,CAAA;gBACD,OAAM;YACR,CAAC;YAED,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YACtC,MAAM,GAAG,CAAC,cAAc,CAAC,iBAAiB,CACxC,SAAS,EACT,KAAK,CAAC,IAAI,CAAC,WAAW,IAAI,IAAI,CAC/B,CAAA;YACD,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAA;YACnE,MAAM,GAAG,CAAC,SAAS,CAAC,kBAAkB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAA;QAC3D,CAAC;KACF,CAAC,CAAA;AACJ,CAAC"}
|
@@ -1 +1 @@
|
|
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;
|
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;AAK5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAoEvD"}
|
@@ -4,13 +4,22 @@ exports.default = default_1;
|
|
4
4
|
const xrpc_server_1 = require("@atproto/xrpc-server");
|
5
5
|
const common_1 = require("@atproto/common");
|
6
6
|
const pipethrough_1 = require("../../../../pipethrough");
|
7
|
+
const auth_verifier_1 = require("../../../../auth-verifier");
|
8
|
+
const lexicons_1 = require("../../../../lexicon/lexicons");
|
7
9
|
function default_1(server, ctx) {
|
8
10
|
server.com.atproto.server.getServiceAuth({
|
9
|
-
auth: ctx.authVerifier.accessStandard(
|
11
|
+
auth: ctx.authVerifier.accessStandard({
|
12
|
+
additional: [auth_verifier_1.AuthScope.Takendown],
|
13
|
+
}),
|
10
14
|
handler: async ({ params, auth }) => {
|
11
15
|
const did = auth.credentials.did;
|
12
16
|
const { aud, lxm = null } = params;
|
13
17
|
const exp = params.exp ? params.exp * 1000 : undefined;
|
18
|
+
// Takendown accounts should not be able to generate service auth tokens except for methods necessary for account migration
|
19
|
+
if (auth.credentials.scope === auth_verifier_1.AuthScope.Takendown &&
|
20
|
+
lxm !== lexicons_1.ids.ComAtprotoServerCreateAccount) {
|
21
|
+
throw new xrpc_server_1.InvalidRequestError('Bad token scope', 'InvalidToken');
|
22
|
+
}
|
14
23
|
if (exp) {
|
15
24
|
const diff = exp - Date.now();
|
16
25
|
if (diff < 0) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getServiceAuth.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/getServiceAuth.ts"],"names":[],"mappings":";;
|
1
|
+
{"version":3,"file":"getServiceAuth.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/getServiceAuth.ts"],"names":[],"mappings":";;AAQA,4BAoEC;AA5ED,sDAA4E;AAC5E,4CAA8C;AAG9C,yDAA+E;AAC/E,6DAAqD;AACrD,2DAAkD;AAElD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,cAAc,CAAC;QACvC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,cAAc,CAAC;YACpC,UAAU,EAAE,CAAC,yBAAS,CAAC,SAAS,CAAC;SAClC,CAAC;QACF,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE;YAClC,MAAM,GAAG,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YAChC,MAAM,EAAE,GAAG,EAAE,GAAG,GAAG,IAAI,EAAE,GAAG,MAAM,CAAA;YAClC,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,SAAS,CAAA;YAEtD,2HAA2H;YAC3H,IACE,IAAI,CAAC,WAAW,CAAC,KAAK,KAAK,yBAAS,CAAC,SAAS;gBAC9C,GAAG,KAAK,cAAG,CAAC,6BAA6B,EACzC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J,KAAK;iBACN;aACF,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC"}
|
@@ -5,7 +5,7 @@ const getRepo_1 = require("../getRepo");
|
|
5
5
|
const util_1 = require("../util");
|
6
6
|
function default_1(server, ctx) {
|
7
7
|
server.com.atproto.sync.getCheckout({
|
8
|
-
auth: ctx.authVerifier.optionalAccessOrAdminToken,
|
8
|
+
auth: ctx.authVerifier.optionalAccessOrAdminToken(),
|
9
9
|
handler: async ({ params, auth }) => {
|
10
10
|
const { did } = params;
|
11
11
|
await (0, util_1.assertRepoAvailability)(ctx, did, ctx.authVerifier.isUserOrAdmin(auth, did));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getCheckout.js","sourceRoot":"","sources":["../../../../../../src/api/com/atproto/sync/deprecated/getCheckout.ts"],"names":[],"mappings":";;AAKA,4BAmBC;AAtBD,wCAAyC;AACzC,kCAAgD;AAEhD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC;QAClC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,0BAA0B;
|
1
|
+
{"version":3,"file":"getCheckout.js","sourceRoot":"","sources":["../../../../../../src/api/com/atproto/sync/deprecated/getCheckout.ts"],"names":[],"mappings":";;AAKA,4BAmBC;AAtBD,wCAAyC;AACzC,kCAAgD;AAEhD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC;QAClC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,0BAA0B,EAAE;QACnD,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE;YAClC,MAAM,EAAE,GAAG,EAAE,GAAG,MAAM,CAAA;YACtB,MAAM,IAAA,6BAAsB,EAC1B,GAAG,EACH,GAAG,EACH,GAAG,CAAC,YAAY,CAAC,aAAa,CAAC,IAAI,EAAE,GAAG,CAAC,CAC1C,CAAA;YAED,MAAM,SAAS,GAAG,MAAM,IAAA,sBAAY,EAAC,GAAG,EAAE,GAAG,CAAC,CAAA;YAE9C,OAAO;gBACL,QAAQ,EAAE,0BAA0B;gBACpC,IAAI,EAAE,SAAS;aAChB,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC"}
|
@@ -5,7 +5,7 @@ const xrpc_server_1 = require("@atproto/xrpc-server");
|
|
5
5
|
const util_1 = require("../util");
|
6
6
|
function default_1(server, ctx) {
|
7
7
|
server.com.atproto.sync.getHead({
|
8
|
-
auth: ctx.authVerifier.optionalAccessOrAdminToken,
|
8
|
+
auth: ctx.authVerifier.optionalAccessOrAdminToken(),
|
9
9
|
handler: async ({ params, auth }) => {
|
10
10
|
const { did } = params;
|
11
11
|
await (0, util_1.assertRepoAvailability)(ctx, did, ctx.authVerifier.isUserOrAdmin(auth, did));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getHead.js","sourceRoot":"","sources":["../../../../../../src/api/com/atproto/sync/deprecated/getHead.ts"],"names":[],"mappings":";;AAKA,4BA0BC;AA/BD,sDAA0D;AAG1D,kCAAgD;AAEhD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC;QAC9B,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,0BAA0B;
|
1
|
+
{"version":3,"file":"getHead.js","sourceRoot":"","sources":["../../../../../../src/api/com/atproto/sync/deprecated/getHead.ts"],"names":[],"mappings":";;AAKA,4BA0BC;AA/BD,sDAA0D;AAG1D,kCAAgD;AAEhD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC;QAC9B,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,0BAA0B,EAAE;QACnD,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE;YAClC,MAAM,EAAE,GAAG,EAAE,GAAG,MAAM,CAAA;YACtB,MAAM,IAAA,6BAAsB,EAC1B,GAAG,EACH,GAAG,EACH,GAAG,CAAC,YAAY,CAAC,aAAa,CAAC,IAAI,EAAE,GAAG,CAAC,CAC1C,CAAA;YAED,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,EAAE,CACpD,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAC7B,CAAA;YACD,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;gBAClB,MAAM,IAAI,iCAAmB,CAC3B,gCAAgC,GAAG,EAAE,EACrC,cAAc,CACf,CAAA;YACH,CAAC;YACD,OAAO;gBACL,QAAQ,EAAE,kBAAkB;gBAC5B,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE;aAChC,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getBlob.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/sync/getBlob.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;
|
1
|
+
{"version":3,"file":"getBlob.d.ts","sourceRoot":"","sources":["../../../../../src/api/com/atproto/sync/getBlob.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAM5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAsCvD"}
|