@atproto/pds 0.4.11 → 0.4.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/account-manager/helpers/invite.d.ts.map +1 -1
  3. package/dist/account-manager/helpers/invite.js.map +1 -1
  4. package/dist/actor-store/blob/reader.d.ts.map +1 -1
  5. package/dist/actor-store/blob/reader.js.map +1 -1
  6. package/dist/actor-store/index.d.ts +1 -0
  7. package/dist/actor-store/index.d.ts.map +1 -1
  8. package/dist/actor-store/index.js +1 -0
  9. package/dist/actor-store/index.js.map +1 -1
  10. package/dist/actor-store/record/transactor.d.ts.map +1 -1
  11. package/dist/actor-store/record/transactor.js.map +1 -1
  12. package/dist/actor-store/repo/reader.d.ts.map +1 -1
  13. package/dist/actor-store/repo/reader.js.map +1 -1
  14. package/dist/actor-store/repo/sql-repo-transactor.d.ts.map +1 -1
  15. package/dist/actor-store/repo/sql-repo-transactor.js.map +1 -1
  16. package/dist/api/app/bsky/feed/getPostThread.d.ts.map +1 -1
  17. package/dist/api/app/bsky/feed/getPostThread.js +1 -2
  18. package/dist/api/app/bsky/feed/getPostThread.js.map +1 -1
  19. package/dist/api/com/atproto/repo/uploadBlob.d.ts.map +1 -1
  20. package/dist/api/com/atproto/repo/uploadBlob.js.map +1 -1
  21. package/dist/context.d.ts +4 -4
  22. package/dist/context.d.ts.map +1 -1
  23. package/dist/context.js.map +1 -1
  24. package/dist/db/migrator.d.ts.map +1 -1
  25. package/dist/db/migrator.js.map +1 -1
  26. package/dist/db/pagination.d.ts.map +1 -1
  27. package/dist/db/pagination.js.map +1 -1
  28. package/dist/disk-blobstore.d.ts.map +1 -1
  29. package/dist/disk-blobstore.js +3 -1
  30. package/dist/disk-blobstore.js.map +1 -1
  31. package/dist/lexicon/lexicons.d.ts +14 -0
  32. package/dist/lexicon/lexicons.d.ts.map +1 -1
  33. package/dist/lexicon/lexicons.js +15 -1
  34. package/dist/lexicon/lexicons.js.map +1 -1
  35. package/dist/lexicon/types/com/atproto/sync/getRecord.d.ts +1 -1
  36. package/dist/lexicon/types/com/atproto/sync/getRecord.d.ts.map +1 -1
  37. package/dist/mailer/index.js.map +1 -1
  38. package/dist/pipethrough.d.ts.map +1 -1
  39. package/dist/pipethrough.js.map +1 -1
  40. package/dist/read-after-write/util.d.ts.map +1 -1
  41. package/dist/read-after-write/util.js +1 -2
  42. package/dist/read-after-write/util.js.map +1 -1
  43. package/dist/read-after-write/viewer.d.ts +2 -4
  44. package/dist/read-after-write/viewer.d.ts.map +1 -1
  45. package/dist/read-after-write/viewer.js +4 -10
  46. package/dist/read-after-write/viewer.js.map +1 -1
  47. package/dist/sequencer/outbox.d.ts.map +1 -1
  48. package/dist/sequencer/outbox.js.map +1 -1
  49. package/package.json +3 -3
  50. package/src/account-manager/helpers/invite.ts +10 -7
  51. package/src/actor-store/blob/reader.ts +4 -1
  52. package/src/actor-store/index.ts +2 -0
  53. package/src/actor-store/record/transactor.ts +4 -1
  54. package/src/actor-store/repo/reader.ts +4 -1
  55. package/src/actor-store/repo/sql-repo-transactor.ts +5 -1
  56. package/src/api/app/bsky/feed/getPostThread.ts +1 -2
  57. package/src/api/com/atproto/repo/uploadBlob.ts +2 -3
  58. package/src/context.ts +4 -10
  59. package/src/db/migrator.ts +4 -1
  60. package/src/db/pagination.ts +4 -1
  61. package/src/disk-blobstore.ts +3 -1
  62. package/src/lexicon/lexicons.ts +16 -1
  63. package/src/lexicon/types/com/atproto/sync/getRecord.ts +1 -1
  64. package/src/mailer/index.ts +1 -1
  65. package/src/pipethrough.ts +7 -4
  66. package/src/read-after-write/util.ts +1 -2
  67. package/src/read-after-write/viewer.ts +8 -8
  68. package/src/sequencer/outbox.ts +4 -1
  69. package/tests/account-deletion.test.ts +7 -0
  70. package/tests/entryway.test.ts +2 -3
@@ -11,7 +11,7 @@ export interface QueryParams {
11
11
  collection: string;
12
12
  /** Record Key */
13
13
  rkey: string;
14
- /** An optional past commit CID. */
14
+ /** DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit */
15
15
  commit?: string;
16
16
  }
17
17
  export type InputSchema = undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"getRecord.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/sync/getRecord.ts"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7B,OAAO,MAAM,MAAM,QAAQ,CAAA;AAK3B,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAEtE,MAAM,WAAW,WAAW;IAC1B,2BAA2B;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,MAAM,CAAA;IAClB,iBAAiB;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,mCAAmC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AACnC,MAAM,MAAM,YAAY,GAAG,SAAS,CAAA;AAEpC,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,0BAA0B,CAAA;IACpC,IAAI,EAAE,UAAU,GAAG,MAAM,CAAC,QAAQ,CAAA;IAClC,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,GAAG,kBAAkB,CAAA;AAC9E,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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O,MAAM,mBAAmB,QACzB,UAAU,OACV,eAAe,cACR,MAAM,gBACJ,MAAM;SACJ,GAAG;aAAW;QAAE,aAAa,CAAC,EAAE,MAAM,CAAA;KAAE;EAuBzD,CAAA;AAED,eAAO,MAAM,OAAO,QAAe,GAAG,WAAW,WAAW;;;;EAuB3D,CAAA;AAuBD,eAAO,MAAM,QAAQ,YAAa,MAAM,OAAO,kBAAkB,MAKhE,CAAA"}
1
+ {"version":3,"file":"pipethrough.d.ts","sourceRoot":"","sources":["../src/pipethrough.ts"],"names":[],"mappings":";;AAAA,OAAO,OAAO,MAAM,SAAS,CAAA;AAG7B,OAAO,EAAE,QAAQ,EAA2B,MAAM,kBAAkB,CAAA;AACpE,OAAO,EAAE,kBAAkB,EAAuB,MAAM,sBAAsB,CAAA;AAK9E,OAAO,UAAU,MAAM,WAAW,CAAA;AA2BlC,eAAO,MAAM,WAAW,QACjB,UAAU,OACV,eAAe,cACR,MAAM,gBACJ,MAAM,KACnB,QAAQ,kBAAkB,CAW5B,CAAA;AAED,eAAO,MAAM,oBAAoB,QAC1B,UAAU,OACV,eAAe,QACd,QAAQ,cACF,MAAM,gBACJ,MAAM;;;;EAerB,CAAA;AAED,eAAO,MAAM,gBAAgB,QACtB,UAAU,OACV,eAAe;SACJ,MAAM;gBAAc,MAAM;cAgB3C,CAAA;AAQD,eAAO,MAAM,mBAAmB,QACzB,UAAU,OACV,eAAe,cACR,MAAM,gBACJ,MAAM;SACJ,GAAG;aAAW;QAAE,aAAa,CAAC,EAAE,MAAM,CAAA;KAAE;EAuBzD,CAAA;AAED,eAAO,MAAM,OAAO,QAAe,GAAG,WAAW,WAAW;;;;EAuB3D,CAAA;AA0BD,eAAO,MAAM,QAAQ,YAAa,MAAM,OAAO,kBAAkB,MAKhE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipethrough.js","sourceRoot":"","sources":["../src/pipethrough.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,i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WAC1B,UAAU,QACT,MAAM,aACD,MAAM,OACZ,kBAAkB;;;;uBASxB,CAAA;AAED,eAAO,MAAM,sBAAsB,WAC5B,UAAU,QACT,MAAM,aACD,MAAM,OACZ,kBAAkB;;;;uBAgBxB,CAAA;AAED,eAAO,MAAM,oBAAoB,qBAEzB,MAAM,uBAUZ,CAAA"}
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../src/read-after-write/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAEvC,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEhE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAKzD,eAAO,MAAM,UAAU,YAAa,OAAO,KAAG,MAAM,GAAG,SAEtD,CAAA;AAED,eAAO,MAAM,WAAW,UAAW,YAAY,KAAG,MAAM,GAAG,SAS1D,CAAA;AAED,eAAO,MAAM,oBAAoB,WAC1B,UAAU,QACT,MAAM,aACD,MAAM,OACZ,kBAAkB;;;;uBASxB,CAAA;AAED,eAAO,MAAM,sBAAsB,WAC5B,UAAU,QACT,MAAM,aACD,MAAM,OACZ,kBAAkB;;;;uBAexB,CAAA;AAED,eAAO,MAAM,oBAAoB,qBAEzB,MAAM,uBAUZ,CAAA"}
@@ -40,8 +40,7 @@ const readAfterWriteInternal = async (ctx, nsid, requester, res, munge) => {
40
40
  if (local.count === 0) {
41
41
  return res;
42
42
  }
43
- const keypair = await ctx.actorStore.keypair(requester);
44
- const localViewer = ctx.localViewer(store, keypair);
43
+ const localViewer = ctx.localViewer(store);
45
44
  const parsedRes = (0, pipethrough_1.parseRes)(nsid, res);
46
45
  const data = await munge(localViewer, parsedRes, local, requester);
47
46
  return (0, exports.formatMungedResponse)(data, (0, exports.getLocalLag)(local));
@@ -1 +1 @@
1
- {"version":3,"file":"util.js","sourceRoot":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,5 +1,4 @@
1
1
  import { AtpAgent } from '@atproto/api';
2
- import { Keypair } from '@atproto/crypto';
3
2
  import { Record as PostRecord } from '../lexicon/types/app/bsky/feed/post';
4
3
  import { Record as ProfileRecord } from '../lexicon/types/app/bsky/actor/profile';
5
4
  import { ProfileViewBasic, ProfileView, ProfileViewDetailed } from '../lexicon/types/app/bsky/actor/defs';
@@ -12,10 +11,10 @@ import { ActorStoreReader } from '../actor-store';
12
11
  import { LocalRecords, RecordDescript } from './types';
13
12
  import { AccountManager } from '../account-manager';
14
13
  type CommonSignedUris = 'avatar' | 'banner' | 'feed_thumbnail' | 'feed_fullsize';
14
+ export type LocalViewerCreator = (actorStore: ActorStoreReader) => LocalViewer;
15
15
  export declare class LocalViewer {
16
16
  did: string;
17
17
  actorStore: ActorStoreReader;
18
- actorKey: Keypair;
19
18
  accountManager: AccountManager;
20
19
  pdsHostname: string;
21
20
  appViewAgent?: AtpAgent;
@@ -23,7 +22,6 @@ export declare class LocalViewer {
23
22
  appviewCdnUrlPattern?: string;
24
23
  constructor(params: {
25
24
  actorStore: ActorStoreReader;
26
- actorKey: Keypair;
27
25
  accountManager: AccountManager;
28
26
  pdsHostname: string;
29
27
  appViewAgent?: AtpAgent;
@@ -36,7 +34,7 @@ export declare class LocalViewer {
36
34
  appViewAgent?: AtpAgent;
37
35
  appviewDid?: string;
38
36
  appviewCdnUrlPattern?: string;
39
- }): (actorStore: ActorStoreReader, actorKey: Keypair) => LocalViewer;
37
+ }): LocalViewerCreator;
40
38
  getImageUrl(pattern: CommonSignedUris, cid: string): string;
41
39
  serviceAuthHeaders(did: string): Promise<{
42
40
  headers: {
@@ -1 +1 @@
1
- {"version":3,"file":"viewer.d.ts","sourceRoot":"","sources":["../../src/read-after-write/viewer.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAEzC,OAAO,EAAE,MAAM,I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AiBrB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAc7C,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,aAAa;;;;;;;;;;;;;;;;;;;IA4BpD,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,eAAe,CAAC;YAcvD,yBAAyB;IAoDjC,0BAA0B,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;IAazE,sBAAsB,CACpB,IAAI,EAAE,gBAAgB,EACtB,MAAM,EAAE,aAAa,GACpB,gBAAgB;IAUnB,iBAAiB,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,GAAG,WAAW;IAOxE,qBAAqB,CACnB,IAAI,EAAE,mBAAmB,EACzB,MAAM,EAAE,aAAa,GACpB,mBAAmB;CAQvB;AAED,eAAO,MAAM,kBAAkB,eACjB,gBAAgB,OACvB,MAAM,KACV,QAAQ,YAAY,CA0CtB,CAAA"}
@@ -28,12 +28,6 @@ class LocalViewer {
28
28
  writable: true,
29
29
  value: void 0
30
30
  });
31
- Object.defineProperty(this, "actorKey", {
32
- enumerable: true,
33
- configurable: true,
34
- writable: true,
35
- value: void 0
36
- });
37
31
  Object.defineProperty(this, "accountManager", {
38
32
  enumerable: true,
39
33
  configurable: true,
@@ -66,7 +60,6 @@ class LocalViewer {
66
60
  });
67
61
  this.did = params.actorStore.did;
68
62
  this.actorStore = params.actorStore;
69
- this.actorKey = params.actorKey;
70
63
  this.accountManager = params.accountManager;
71
64
  this.pdsHostname = params.pdsHostname;
72
65
  this.appViewAgent = params.appViewAgent;
@@ -74,8 +67,8 @@ class LocalViewer {
74
67
  this.appviewCdnUrlPattern = params.appviewCdnUrlPattern;
75
68
  }
76
69
  static creator(params) {
77
- return (actorStore, actorKey) => {
78
- return new LocalViewer({ ...params, actorStore, actorKey });
70
+ return (actorStore) => {
71
+ return new LocalViewer({ ...params, actorStore });
79
72
  };
80
73
  }
81
74
  getImageUrl(pattern, cid) {
@@ -88,10 +81,11 @@ class LocalViewer {
88
81
  if (!this.appviewDid) {
89
82
  throw new Error('Could not find bsky appview did');
90
83
  }
84
+ const keypair = await this.actorStore.keypair();
91
85
  return (0, xrpc_server_1.createServiceAuthHeaders)({
92
86
  iss: did,
93
87
  aud: this.appviewDid,
94
- keypair: this.actorKey,
88
+ keypair,
95
89
  });
96
90
  }
97
91
  async getRecordsSinceRev(rev) {
@@ -1 +1 @@
1
- {"version":3,"file":"viewer.js","sourceRoot":"","sources":["../../src/read-after-write/viewer.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAuB;AACvB,0CAAsC;AACtC,4CAAuD;AACvD,wCAA+C;AAG/C,sDAA+D;AAG/D,kDAAyC;AAYzC,mEAG+C;AAC/C,uEAGiD;AACjD,mEAK+C;AAC/C,qFAGwD;AAOxD,MAAa,WAAW;IAUtB,YAAY,MAQX;QAjBD;;;;;WAAW;QACX;;;;;WAA4B;QAC5B;;;;;WAAiB;QACjB;;;;;WAA8B;QAC9B;;;;;WAAmB;QACnB;;;;;WAAuB;QACvB;;;;;WAAmB;QACnB;;;;;WAA6B;QAW3B,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,GAAG,CAAA;QAChC,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,CAAA;QACnC,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAA;QAC/B,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,CAAA;QAC3C,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAA;QACrC,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC,YAAY,CAAA;QACvC,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,CAAA;QACnC,IAAI,CAAC,oBAAoB,GAAG,MAAM,CAAC,oBAAoB,C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kB,CACvD,CAAA;AACH,CAAC,CAAA;AA7CY,QAAA,kBAAkB,sBA6C9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"outbox.d.ts","sourceRoot":"","sources":["../../src/sequencer/outbox.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAwB,MAAM,iBAAiB,CAAA;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,CAAA;AAGrC,MAAM,MAAM,UAAU,GAAG;IACvB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,qBAAa,MAAM;IAOE,SAAS,EAAE,SAAS;IANvC,OAAO,CAAC,QAAQ,CAAQ;IACxB,QAAQ,SAAK;IAEb,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;gBAEX,SAAS,EAAE,SAAS,EAAE,IAAI,GAAE,OAAO,CAAC,UAAU,CAAM;IAehE,MAAM,CACX,cAAc,CAAC,EAAE,MAAM,EACvB,MAAM,CAAC,EAAE,WAAW,GACnB,cAAc,CAAC,MAAM,CAAC;IAsElB,WAAW,CAAC,cAAc,EAAE,MAAM;CAgB1C;AAED,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"outbox.d.ts","sourceRoot":"","sources":["../../src/sequencer/outbox.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAwB,MAAM,iBAAiB,CAAA;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,CAAA;AAGrC,MAAM,MAAM,UAAU,GAAG;IACvB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,qBAAa,MAAM;IAQR,SAAS,EAAE,SAAS;IAP7B,OAAO,CAAC,QAAQ,CAAQ;IACxB,QAAQ,SAAK;IAEb,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;gBAGrB,SAAS,EAAE,SAAS,EAC3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MAAM,GAAG,CAAC;gBAAE,MAAK;QAC5B,CAAC;IACH,CAAC;CACF;AAlHD,wBAkHC;AAED,kBAAe,MAAM,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/pds",
3
- "version": "0.4.11",
3
+ "version": "0.4.12",
4
4
  "license": "MIT",
5
5
  "description": "Reference implementation of atproto Personal Data Server (PDS)",
6
6
  "keywords": [
@@ -47,10 +47,10 @@
47
47
  "@atproto/aws": "^0.2.0",
48
48
  "@atproto/common": "^0.4.0",
49
49
  "@atproto/crypto": "^0.4.0",
50
- "@atproto/identity": "^0.4.0",
51
50
  "@atproto/lexicon": "^0.4.0",
52
- "@atproto/repo": "^0.4.0",
53
51
  "@atproto/syntax": "^0.3.0",
52
+ "@atproto/repo": "^0.4.0",
53
+ "@atproto/identity": "^0.4.0",
54
54
  "@atproto/xrpc": "^0.5.0",
55
55
  "@atproto/xrpc-server": "^0.5.0"
56
56
  },
@@ -43,7 +43,7 @@ export const createAccountInviteCodes = async (
43
43
  forAccount,
44
44
  createdBy: forAccount,
45
45
  createdAt: now,
46
- } as InviteCode),
46
+ }) as InviteCode,
47
47
  )
48
48
  await db.executeWithRetry(db.db.insertInto('invite_code').values(rows))
49
49
 
@@ -199,12 +199,15 @@ export const getInvitedByForAccounts = async (
199
199
  uses: uses[row.code] ?? [],
200
200
  disabled: row.disabled === 1,
201
201
  }))
202
- return codeDetails.reduce((acc, cur) => {
203
- for (const use of cur.uses) {
204
- acc[use.usedBy] = cur
205
- }
206
- return acc
207
- }, {} as Record<string, CodeDetail>)
202
+ return codeDetails.reduce(
203
+ (acc, cur) => {
204
+ for (const use of cur.uses) {
205
+ acc[use.usedBy] = cur
206
+ }
207
+ return acc
208
+ },
209
+ {} as Record<string, CodeDetail>,
210
+ )
208
211
  }
209
212
 
210
213
  export const disableInviteCodes = async (
@@ -7,7 +7,10 @@ import { countAll, countDistinct, notSoftDeletedClause } from '../../db/util'
7
7
  import { StatusAttr } from '../../lexicon/types/com/atproto/admin/defs'
8
8
 
9
9
  export class BlobReader {
10
- constructor(public db: ActorDb, public blobstore: BlobStore) {}
10
+ constructor(
11
+ public db: ActorDb,
12
+ public blobstore: BlobStore,
13
+ ) {}
11
14
 
12
15
  async getBlob(
13
16
  cid: CID,
@@ -256,6 +256,7 @@ const createActorReader = (
256
256
  repo: new RepoReader(db, blobstore(did)),
257
257
  record: new RecordReader(db),
258
258
  pref: new PreferenceReader(db),
259
+ keypair: getKeypair,
259
260
  transact: async <T>(fn: ActorStoreTransactFn<T>): Promise<T> => {
260
261
  const keypair = await getKeypair()
261
262
  return db.transaction((dbTxn) => {
@@ -276,6 +277,7 @@ export type ActorStoreReader = {
276
277
  repo: RepoReader
277
278
  record: RecordReader
278
279
  pref: PreferenceReader
280
+ keypair: () => Promise<Keypair>
279
281
  transact: <T>(fn: ActorStoreTransactFn<T>) => Promise<T>
280
282
  }
281
283
 
@@ -8,7 +8,10 @@ import { StatusAttr } from '../../lexicon/types/com/atproto/admin/defs'
8
8
  import { RepoRecord } from '@atproto/lexicon'
9
9
 
10
10
  export class RecordTransactor extends RecordReader {
11
- constructor(public db: ActorDb, public blobstore: BlobStore) {
11
+ constructor(
12
+ public db: ActorDb,
13
+ public blobstore: BlobStore,
14
+ ) {
12
15
  super(db)
13
16
  }
14
17
 
@@ -9,7 +9,10 @@ export class RepoReader {
9
9
  record: RecordReader
10
10
  storage: SqlRepoReader
11
11
 
12
- constructor(public db: ActorDb, public blobstore: BlobStore) {
12
+ constructor(
13
+ public db: ActorDb,
14
+ public blobstore: BlobStore,
15
+ ) {
13
16
  this.blob = new BlobReader(db, blobstore)
14
17
  this.record = new RecordReader(db)
15
18
  this.storage = new SqlRepoReader(db)
@@ -8,7 +8,11 @@ export class SqlRepoTransactor extends SqlRepoReader implements RepoStorage {
8
8
  cache: BlockMap = new BlockMap()
9
9
  now: string
10
10
 
11
- constructor(public db: ActorDb, public did: string, now?: string) {
11
+ constructor(
12
+ public db: ActorDb,
13
+ public did: string,
14
+ now?: string,
15
+ ) {
12
16
  super(db)
13
17
  this.now = now ?? new Date().toISOString()
14
18
  }
@@ -46,9 +46,8 @@ export default function (server: Server, ctx: AppContext) {
46
46
  } catch (err) {
47
47
  if (err instanceof XRPCError && err.error === 'NotFound') {
48
48
  const headers = err.headers
49
- const keypair = await ctx.actorStore.keypair(requester)
50
49
  const local = await ctx.actorStore.read(requester, (store) => {
51
- const localViewer = ctx.localViewer(store, keypair)
50
+ const localViewer = ctx.localViewer(store)
52
51
  return readAfterWriteNotFound(
53
52
  ctx,
54
53
  localViewer,
@@ -21,9 +21,8 @@ export default function (server: Server, ctx: AppContext) {
21
21
  )
22
22
 
23
23
  return store.transact(async (actorTxn) => {
24
- const blobRef = await actorTxn.repo.blob.trackUntetheredBlob(
25
- metadata,
26
- )
24
+ const blobRef =
25
+ await actorTxn.repo.blob.trackUntetheredBlob(metadata)
27
26
 
28
27
  // make the blob permanent if an associated record is already indexed
29
28
  const recordsForBlob = await actorTxn.repo.blob.getRecordsForBlob(
package/src/context.ts CHANGED
@@ -23,16 +23,13 @@ import { DidSqliteCache } from './did-cache'
23
23
  import { Crawlers } from './crawlers'
24
24
  import { DiskBlobStore } from './disk-blobstore'
25
25
  import { getRedisClient } from './redis'
26
- import { ActorStore, ActorStoreReader } from './actor-store'
27
- import { LocalViewer } from './read-after-write/viewer'
26
+ import { ActorStore } from './actor-store'
27
+ import { LocalViewer, LocalViewerCreator } from './read-after-write/viewer'
28
28
 
29
29
  export type AppContextOptions = {
30
30
  actorStore: ActorStore
31
31
  blobstore: (did: string) => BlobStore
32
- localViewer: (
33
- actorStore: ActorStoreReader,
34
- actorKey: crypto.Keypair,
35
- ) => LocalViewer
32
+ localViewer: LocalViewerCreator
36
33
  mailer: ServerMailer
37
34
  moderationMailer: ModerationMailer
38
35
  didCache: DidSqliteCache
@@ -55,10 +52,7 @@ export type AppContextOptions = {
55
52
  export class AppContext {
56
53
  public actorStore: ActorStore
57
54
  public blobstore: (did: string) => BlobStore
58
- public localViewer: (
59
- actorStore: ActorStoreReader,
60
- actorKey: crypto.Keypair,
61
- ) => LocalViewer
55
+ public localViewer: LocalViewerCreator
62
56
  public mailer: ServerMailer
63
57
  public moderationMailer: ModerationMailer
64
58
  public didCache: DidSqliteCache
@@ -1,7 +1,10 @@
1
1
  import { Kysely, Migrator as KyselyMigrator, Migration } from 'kysely'
2
2
 
3
3
  export class Migrator<T> extends KyselyMigrator {
4
- constructor(public db: Kysely<T>, migrations: Record<string, Migration>) {
4
+ constructor(
5
+ public db: Kysely<T>,
6
+ migrations: Record<string, Migration>,
7
+ ) {
5
8
  super({
6
9
  db,
7
10
  provider: {
@@ -23,7 +23,10 @@ export type LabeledResult = {
23
23
  * ↳ SQL Condition
24
24
  */
25
25
  export abstract class GenericKeyset<R, LR extends LabeledResult> {
26
- constructor(public primary: DbRef, public secondary: DbRef) {}
26
+ constructor(
27
+ public primary: DbRef,
28
+ public secondary: DbRef,
29
+ ) {}
27
30
  abstract labelResult(result: R): LR
28
31
  abstract labeledResultToCursor(labeled: LR): Cursor
29
32
  abstract cursorToLabeledResult(cursor: Cursor): LR
@@ -141,7 +141,9 @@ export class DiskBlobStore implements BlobStore {
141
141
  }
142
142
 
143
143
  async deleteAll(): Promise<void> {
144
- await rmIfExists(this.location, true)
144
+ await rmIfExists(path.join(this.location, this.did), true)
145
+ await rmIfExists(path.join(this.tmpLocation, this.did), true)
146
+ await rmIfExists(path.join(this.quarantineLocation, this.did), true)
145
147
  }
146
148
  }
147
149
 
@@ -1067,6 +1067,8 @@ export const schemaDict = {
1067
1067
  },
1068
1068
  reason: {
1069
1069
  type: 'string',
1070
+ maxGraphemes: 2000,
1071
+ maxLength: 20000,
1070
1072
  description:
1071
1073
  'Additional context about the content and violation.',
1072
1074
  },
@@ -2438,9 +2440,11 @@ export const schemaDict = {
2438
2440
  properties: {
2439
2441
  privacyPolicy: {
2440
2442
  type: 'string',
2443
+ format: 'uri',
2441
2444
  },
2442
2445
  termsOfService: {
2443
2446
  type: 'string',
2447
+ format: 'uri',
2444
2448
  },
2445
2449
  },
2446
2450
  },
@@ -3052,7 +3056,8 @@ export const schemaDict = {
3052
3056
  commit: {
3053
3057
  type: 'string',
3054
3058
  format: 'cid',
3055
- description: 'An optional past commit CID.',
3059
+ description:
3060
+ 'DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit',
3056
3061
  },
3057
3062
  },
3058
3063
  },
@@ -3621,6 +3626,7 @@ export const schemaDict = {
3621
3626
  },
3622
3627
  avatar: {
3623
3628
  type: 'string',
3629
+ format: 'uri',
3624
3630
  },
3625
3631
  associated: {
3626
3632
  type: 'ref',
@@ -3663,6 +3669,7 @@ export const schemaDict = {
3663
3669
  },
3664
3670
  avatar: {
3665
3671
  type: 'string',
3672
+ format: 'uri',
3666
3673
  },
3667
3674
  associated: {
3668
3675
  type: 'ref',
@@ -3709,9 +3716,11 @@ export const schemaDict = {
3709
3716
  },
3710
3717
  avatar: {
3711
3718
  type: 'string',
3719
+ format: 'uri',
3712
3720
  },
3713
3721
  banner: {
3714
3722
  type: 'string',
3723
+ format: 'uri',
3715
3724
  },
3716
3725
  followersCount: {
3717
3726
  type: 'integer',
@@ -4388,6 +4397,7 @@ export const schemaDict = {
4388
4397
  },
4389
4398
  thumb: {
4390
4399
  type: 'string',
4400
+ format: 'uri',
4391
4401
  },
4392
4402
  },
4393
4403
  },
@@ -4468,11 +4478,13 @@ export const schemaDict = {
4468
4478
  properties: {
4469
4479
  thumb: {
4470
4480
  type: 'string',
4481
+ format: 'uri',
4471
4482
  description:
4472
4483
  'Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View.',
4473
4484
  },
4474
4485
  fullsize: {
4475
4486
  type: 'string',
4487
+ format: 'uri',
4476
4488
  description:
4477
4489
  'Fully-qualified URL where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View.',
4478
4490
  },
@@ -4886,6 +4898,7 @@ export const schemaDict = {
4886
4898
  },
4887
4899
  avatar: {
4888
4900
  type: 'string',
4901
+ format: 'uri',
4889
4902
  },
4890
4903
  likeCount: {
4891
4904
  type: 'integer',
@@ -6201,6 +6214,7 @@ export const schemaDict = {
6201
6214
  },
6202
6215
  avatar: {
6203
6216
  type: 'string',
6217
+ format: 'uri',
6204
6218
  },
6205
6219
  labels: {
6206
6220
  type: 'array',
@@ -6258,6 +6272,7 @@ export const schemaDict = {
6258
6272
  },
6259
6273
  avatar: {
6260
6274
  type: 'string',
6275
+ format: 'uri',
6261
6276
  },
6262
6277
  labels: {
6263
6278
  type: 'array',
@@ -15,7 +15,7 @@ export interface QueryParams {
15
15
  collection: string
16
16
  /** Record Key */
17
17
  rkey: string
18
- /** An optional past commit CID. */
18
+ /** DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit */
19
19
  commit?: string
20
20
  }
21
21
 
@@ -60,7 +60,7 @@ export class ServerMailer {
60
60
 
61
61
  private async sendTemplate<K extends keyof typeof templates>(
62
62
  templateName: K,
63
- params: Parameters<typeof templates[K]>[0],
63
+ params: Parameters<(typeof templates)[K]>[0],
64
64
  mailOpts: Mail.Options,
65
65
  ) {
66
66
  const html = templates[templateName]({
@@ -163,10 +163,13 @@ const RES_HEADERS_TO_FORWARD = [
163
163
  ]
164
164
 
165
165
  const makeResHeaders = (res: Response): Record<string, string> => {
166
- const headers = RES_HEADERS_TO_FORWARD.reduce((acc, cur) => {
167
- acc[cur] = res.headers.get(cur) ?? undefined
168
- return acc
169
- }, {} as Record<string, string | undefined>)
166
+ const headers = RES_HEADERS_TO_FORWARD.reduce(
167
+ (acc, cur) => {
168
+ acc[cur] = res.headers.get(cur) ?? undefined
169
+ return acc
170
+ },
171
+ {} as Record<string, string | undefined>,
172
+ )
170
173
  return noUndefinedVals(headers)
171
174
  }
172
175