@atproto/pds 0.4.58 → 0.4.60

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/dist/actor-store/repo/sql-repo-reader.d.ts.map +1 -1
  3. package/dist/actor-store/repo/sql-repo-reader.js +2 -5
  4. package/dist/actor-store/repo/sql-repo-reader.js.map +1 -1
  5. package/dist/api/app/bsky/actor/getProfile.d.ts.map +1 -1
  6. package/dist/api/app/bsky/actor/getProfile.js +2 -9
  7. package/dist/api/app/bsky/actor/getProfile.js.map +1 -1
  8. package/dist/api/app/bsky/actor/getProfiles.d.ts.map +1 -1
  9. package/dist/api/app/bsky/actor/getProfiles.js +2 -6
  10. package/dist/api/app/bsky/actor/getProfiles.js.map +1 -1
  11. package/dist/api/app/bsky/feed/getActorLikes.d.ts.map +1 -1
  12. package/dist/api/app/bsky/feed/getActorLikes.js +2 -9
  13. package/dist/api/app/bsky/feed/getActorLikes.js.map +1 -1
  14. package/dist/api/app/bsky/feed/getAuthorFeed.d.ts.map +1 -1
  15. package/dist/api/app/bsky/feed/getAuthorFeed.js +2 -9
  16. package/dist/api/app/bsky/feed/getAuthorFeed.js.map +1 -1
  17. package/dist/api/app/bsky/feed/getFeed.d.ts.map +1 -1
  18. package/dist/api/app/bsky/feed/getFeed.js +2 -1
  19. package/dist/api/app/bsky/feed/getFeed.js.map +1 -1
  20. package/dist/api/app/bsky/feed/getPostThread.d.ts.map +1 -1
  21. package/dist/api/app/bsky/feed/getPostThread.js +12 -14
  22. package/dist/api/app/bsky/feed/getPostThread.js.map +1 -1
  23. package/dist/api/app/bsky/feed/getTimeline.d.ts.map +1 -1
  24. package/dist/api/app/bsky/feed/getTimeline.js +2 -6
  25. package/dist/api/app/bsky/feed/getTimeline.js.map +1 -1
  26. package/dist/api/com/atproto/repo/getRecord.js +1 -1
  27. package/dist/api/com/atproto/repo/getRecord.js.map +1 -1
  28. package/dist/api/com/atproto/server/requestPasswordReset.js +1 -1
  29. package/dist/api/com/atproto/server/requestPasswordReset.js.map +1 -1
  30. package/dist/config/config.d.ts +9 -0
  31. package/dist/config/config.d.ts.map +1 -1
  32. package/dist/config/config.js +10 -1
  33. package/dist/config/config.js.map +1 -1
  34. package/dist/config/env.d.ts +6 -1
  35. package/dist/config/env.d.ts.map +1 -1
  36. package/dist/config/env.js +8 -1
  37. package/dist/config/env.js.map +1 -1
  38. package/dist/context.d.ts +6 -2
  39. package/dist/context.d.ts.map +1 -1
  40. package/dist/context.js +55 -11
  41. package/dist/context.js.map +1 -1
  42. package/dist/index.d.ts.map +1 -1
  43. package/dist/index.js +1 -0
  44. package/dist/index.js.map +1 -1
  45. package/dist/lexicon/lexicons.d.ts +77 -0
  46. package/dist/lexicon/lexicons.d.ts.map +1 -1
  47. package/dist/lexicon/lexicons.js +86 -3
  48. package/dist/lexicon/lexicons.js.map +1 -1
  49. package/dist/lexicon/types/app/bsky/actor/defs.d.ts +16 -0
  50. package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
  51. package/dist/lexicon/types/app/bsky/actor/defs.js +9 -1
  52. package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
  53. package/dist/lexicon/types/app/bsky/actor/profile.d.ts +1 -0
  54. package/dist/lexicon/types/app/bsky/actor/profile.d.ts.map +1 -1
  55. package/dist/lexicon/types/app/bsky/actor/profile.js.map +1 -1
  56. package/dist/lexicon/types/app/bsky/feed/defs.d.ts +13 -2
  57. package/dist/lexicon/types/app/bsky/feed/defs.d.ts.map +1 -1
  58. package/dist/lexicon/types/app/bsky/feed/defs.js +21 -1
  59. package/dist/lexicon/types/app/bsky/feed/defs.js.map +1 -1
  60. package/dist/lexicon/types/app/bsky/feed/getAuthorFeed.d.ts +1 -0
  61. package/dist/lexicon/types/app/bsky/feed/getAuthorFeed.d.ts.map +1 -1
  62. package/dist/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.d.ts +2 -0
  63. package/dist/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.d.ts.map +1 -1
  64. package/dist/lexicon/types/app/bsky/unspecced/getSuggestionsSkeleton.d.ts +2 -0
  65. package/dist/lexicon/types/app/bsky/unspecced/getSuggestionsSkeleton.d.ts.map +1 -1
  66. package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts +2 -0
  67. package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts.map +1 -1
  68. package/dist/lexicon/types/tools/ozone/moderation/defs.js.map +1 -1
  69. package/dist/lexicon/types/tools/ozone/moderation/queryStatuses.d.ts +3 -0
  70. package/dist/lexicon/types/tools/ozone/moderation/queryStatuses.d.ts.map +1 -1
  71. package/dist/mailer/index.d.ts +1 -1
  72. package/dist/mailer/index.d.ts.map +1 -1
  73. package/dist/mailer/index.js.map +1 -1
  74. package/dist/mailer/templates/confirm-email.js +1 -1
  75. package/dist/mailer/templates/confirm-email.js.map +2 -2
  76. package/dist/mailer/templates/delete-account.js +1 -1
  77. package/dist/mailer/templates/delete-account.js.map +2 -2
  78. package/dist/mailer/templates/plc-operation.js +1 -1
  79. package/dist/mailer/templates/plc-operation.js.map +2 -2
  80. package/dist/mailer/templates/reset-password.js +1 -1
  81. package/dist/mailer/templates/reset-password.js.map +2 -2
  82. package/dist/mailer/templates/update-email.js +1 -1
  83. package/dist/mailer/templates/update-email.js.map +2 -2
  84. package/dist/pipethrough.d.ts +26 -26
  85. package/dist/pipethrough.d.ts.map +1 -1
  86. package/dist/pipethrough.js +328 -228
  87. package/dist/pipethrough.js.map +1 -1
  88. package/dist/read-after-write/util.d.ts +13 -5
  89. package/dist/read-after-write/util.d.ts.map +1 -1
  90. package/dist/read-after-write/util.js +37 -22
  91. package/dist/read-after-write/util.js.map +1 -1
  92. package/package.json +16 -15
  93. package/src/actor-store/repo/sql-repo-reader.ts +3 -6
  94. package/src/api/app/bsky/actor/getProfile.ts +3 -17
  95. package/src/api/app/bsky/actor/getProfiles.ts +3 -15
  96. package/src/api/app/bsky/feed/getActorLikes.ts +3 -19
  97. package/src/api/app/bsky/feed/getAuthorFeed.ts +3 -17
  98. package/src/api/app/bsky/feed/getFeed.ts +3 -1
  99. package/src/api/app/bsky/feed/getPostThread.ts +16 -23
  100. package/src/api/app/bsky/feed/getTimeline.ts +3 -14
  101. package/src/api/com/atproto/repo/getRecord.ts +1 -1
  102. package/src/api/com/atproto/server/requestPasswordReset.ts +1 -1
  103. package/src/config/config.ts +21 -1
  104. package/src/config/env.ts +20 -2
  105. package/src/context.ts +62 -17
  106. package/src/index.ts +1 -0
  107. package/src/lexicon/lexicons.ts +92 -3
  108. package/src/lexicon/types/app/bsky/actor/defs.ts +25 -0
  109. package/src/lexicon/types/app/bsky/actor/profile.ts +1 -0
  110. package/src/lexicon/types/app/bsky/feed/defs.ts +38 -2
  111. package/src/lexicon/types/app/bsky/feed/getAuthorFeed.ts +1 -0
  112. package/src/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.ts +2 -0
  113. package/src/lexicon/types/app/bsky/unspecced/getSuggestionsSkeleton.ts +2 -0
  114. package/src/lexicon/types/tools/ozone/moderation/defs.ts +2 -0
  115. package/src/lexicon/types/tools/ozone/moderation/queryStatuses.ts +3 -0
  116. package/src/mailer/index.ts +1 -1
  117. package/src/mailer/templates/confirm-email.hbs +106 -336
  118. package/src/mailer/templates/delete-account.hbs +110 -346
  119. package/src/mailer/templates/plc-operation.hbs +107 -338
  120. package/src/mailer/templates/reset-password.d.ts +1 -1
  121. package/src/mailer/templates/reset-password.hbs +108 -344
  122. package/src/mailer/templates/update-email.hbs +107 -337
  123. package/src/pipethrough.ts +489 -233
  124. package/src/read-after-write/util.ts +58 -32
  125. package/tests/account-deletion.test.ts +1 -1
  126. package/tests/account.test.ts +2 -2
  127. package/tests/email-confirmation.test.ts +2 -2
  128. package/tests/plc-operations.test.ts +1 -1
  129. package/tests/proxied/proxy-catchall.test.ts +255 -0
  130. package/tests/proxied/proxy-header.test.ts +31 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,51 @@
1
1
  # @atproto/pds
2
2
 
3
+ ## 0.4.60
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2767](https://github.com/bluesky-social/atproto/pull/2767) [`922b94ce3`](https://github.com/bluesky-social/atproto/commit/922b94ce379d861faaa5cf8448b7a44f04e474d3) Thanks [@estrattonbailey](https://github.com/estrattonbailey)! - Update email templates
8
+
9
+ - [#2770](https://github.com/bluesky-social/atproto/pull/2770) [`a07b21151`](https://github.com/bluesky-social/atproto/commit/a07b21151f1850340c4b7797ebb11521b1a6cdf3) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Use a hardened, HTTP2 compatible, client to perform proxied requests
10
+
11
+ - [#2770](https://github.com/bluesky-social/atproto/pull/2770) [`a07b21151`](https://github.com/bluesky-social/atproto/commit/a07b21151f1850340c4b7797ebb11521b1a6cdf3) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Enable keep-alive for hardened "safe" fetch() agent
12
+
13
+ - [#2770](https://github.com/bluesky-social/atproto/pull/2770) [`a07b21151`](https://github.com/bluesky-social/atproto/commit/a07b21151f1850340c4b7797ebb11521b1a6cdf3) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Improve performances of request proxying by avoiding un-necessary content decoding & buffering.
14
+
15
+ - [#2770](https://github.com/bluesky-social/atproto/pull/2770) [`a07b21151`](https://github.com/bluesky-social/atproto/commit/a07b21151f1850340c4b7797ebb11521b1a6cdf3) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Add SSRF protection to request proxying
16
+
17
+ - [#2813](https://github.com/bluesky-social/atproto/pull/2813) [`a06634ae5`](https://github.com/bluesky-social/atproto/commit/a06634ae576217d53ef7ea7f8cbfa9faa8662634) Thanks [@estrattonbailey](https://github.com/estrattonbailey)! - Update email templates with @ for handles, copy
18
+
19
+ - [#2824](https://github.com/bluesky-social/atproto/pull/2824) [`b298bfd28`](https://github.com/bluesky-social/atproto/commit/b298bfd280c5de8b38b843fd852e6d2739a776d8) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Prevent server crash when catchall proxy request are cancelled
20
+
21
+ - Updated dependencies [[`ed325d863`](https://github.com/bluesky-social/atproto/commit/ed325d863ce8ea5986c5a45c3188aaa35288b7a8), [`a07b21151`](https://github.com/bluesky-social/atproto/commit/a07b21151f1850340c4b7797ebb11521b1a6cdf3), [`ed325d863`](https://github.com/bluesky-social/atproto/commit/ed325d863ce8ea5986c5a45c3188aaa35288b7a8), [`ed325d863`](https://github.com/bluesky-social/atproto/commit/ed325d863ce8ea5986c5a45c3188aaa35288b7a8), [`a07b21151`](https://github.com/bluesky-social/atproto/commit/a07b21151f1850340c4b7797ebb11521b1a6cdf3), [`2676206e4`](https://github.com/bluesky-social/atproto/commit/2676206e422233fefbf2d9d182e8d462f0957c93), [`ed325d863`](https://github.com/bluesky-social/atproto/commit/ed325d863ce8ea5986c5a45c3188aaa35288b7a8), [`a07b21151`](https://github.com/bluesky-social/atproto/commit/a07b21151f1850340c4b7797ebb11521b1a6cdf3), [`ed325d863`](https://github.com/bluesky-social/atproto/commit/ed325d863ce8ea5986c5a45c3188aaa35288b7a8), [`a07b21151`](https://github.com/bluesky-social/atproto/commit/a07b21151f1850340c4b7797ebb11521b1a6cdf3), [`ed325d863`](https://github.com/bluesky-social/atproto/commit/ed325d863ce8ea5986c5a45c3188aaa35288b7a8), [`87a1f2426`](https://github.com/bluesky-social/atproto/commit/87a1f24262e0e644b6cf31cc7a0446d9127ffa94), [`ed325d863`](https://github.com/bluesky-social/atproto/commit/ed325d863ce8ea5986c5a45c3188aaa35288b7a8), [`a07b21151`](https://github.com/bluesky-social/atproto/commit/a07b21151f1850340c4b7797ebb11521b1a6cdf3), [`ed325d863`](https://github.com/bluesky-social/atproto/commit/ed325d863ce8ea5986c5a45c3188aaa35288b7a8), [`ed325d863`](https://github.com/bluesky-social/atproto/commit/ed325d863ce8ea5986c5a45c3188aaa35288b7a8), [`a07b21151`](https://github.com/bluesky-social/atproto/commit/a07b21151f1850340c4b7797ebb11521b1a6cdf3), [`a07b21151`](https://github.com/bluesky-social/atproto/commit/a07b21151f1850340c4b7797ebb11521b1a6cdf3), [`ed325d863`](https://github.com/bluesky-social/atproto/commit/ed325d863ce8ea5986c5a45c3188aaa35288b7a8), [`a07b21151`](https://github.com/bluesky-social/atproto/commit/a07b21151f1850340c4b7797ebb11521b1a6cdf3), [`a07b21151`](https://github.com/bluesky-social/atproto/commit/a07b21151f1850340c4b7797ebb11521b1a6cdf3), [`ed325d863`](https://github.com/bluesky-social/atproto/commit/ed325d863ce8ea5986c5a45c3188aaa35288b7a8), [`ed325d863`](https://github.com/bluesky-social/atproto/commit/ed325d863ce8ea5986c5a45c3188aaa35288b7a8), [`a07b21151`](https://github.com/bluesky-social/atproto/commit/a07b21151f1850340c4b7797ebb11521b1a6cdf3), [`a07b21151`](https://github.com/bluesky-social/atproto/commit/a07b21151f1850340c4b7797ebb11521b1a6cdf3), [`a07b21151`](https://github.com/bluesky-social/atproto/commit/a07b21151f1850340c4b7797ebb11521b1a6cdf3)]:
22
+ - @atproto/oauth-provider@0.2.2
23
+ - @atproto/xrpc@0.6.3
24
+ - @atproto-labs/fetch-node@0.1.1
25
+ - @atproto/api@0.13.8
26
+ - @atproto/xrpc-server@0.7.0
27
+ - @atproto/lexicon@0.4.2
28
+ - @atproto/common@0.4.3
29
+ - @atproto/identity@0.4.2
30
+ - @atproto/repo@0.5.2
31
+ - @atproto/aws@0.2.6
32
+ - @atproto/crypto@0.4.1
33
+
34
+ ## 0.4.59
35
+
36
+ ### Patch Changes
37
+
38
+ - [#2810](https://github.com/bluesky-social/atproto/pull/2810) [`33aa0c722`](https://github.com/bluesky-social/atproto/commit/33aa0c722226a18215af0ae1833c7c552fc7aaa7) Thanks [@estrattonbailey](https://github.com/estrattonbailey)! - Add NUX API
39
+
40
+ - Updated dependencies [[`e6bd5aecc`](https://github.com/bluesky-social/atproto/commit/e6bd5aecce7954d60e5fb263297e697ab7aab98e), [`98711a147`](https://github.com/bluesky-social/atproto/commit/98711a147a8674337f605c6368f39fc10c2fae93), [`98711a147`](https://github.com/bluesky-social/atproto/commit/98711a147a8674337f605c6368f39fc10c2fae93), [`33aa0c722`](https://github.com/bluesky-social/atproto/commit/33aa0c722226a18215af0ae1833c7c552fc7aaa7), [`98711a147`](https://github.com/bluesky-social/atproto/commit/98711a147a8674337f605c6368f39fc10c2fae93)]:
41
+ - @atproto/api@0.13.7
42
+ - @atproto/common@0.4.2
43
+ - @atproto/xrpc-server@0.6.4
44
+ - @atproto/xrpc@0.6.2
45
+ - @atproto/aws@0.2.5
46
+ - @atproto/crypto@0.4.1
47
+ - @atproto/repo@0.5.1
48
+
3
49
  ## 0.4.58
4
50
 
5
51
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"sql-repo-reader.d.ts","sourceRoot":"","sources":["../../../src/actor-store/repo/sql-repo-reader.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,QAAQ,EAER,kBAAkB,EAEnB,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAI/B,qBAAa,aAAc,SAAQ,kBAAkB;IAGhC,EAAE,EAAE,OAAO;IAF9B,KAAK,EAAE,QAAQ,CAAiB;gBAEb,EAAE,EAAE,OAAO;IAIxB,OAAO,IAAI,OAAO,CAAC,GAAG,CAAC;IAKvB,eAAe,IAAI,OAAO,CAAC;QAAE,GAAG,EAAE,GAAG,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IAWrD,QAAQ,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC;IAa9C,GAAG,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC;IAK/B,SAAS,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,QAAQ,CAAC;QAAC,OAAO,EAAE,GAAG,EAAE,CAAA;KAAE,CAAC;IAyBrE,YAAY,CAAC,KA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E,MAAM,CAAC,EAAE,SAAS;IAsBhD,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC;IAQ9B,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAG/B;AAED,KAAK,SAAS,GAAG;IACf,GAAG,EAAE,GAAG,CAAA;IACR,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,qBAAa,qBAAsB,SAAQ,KAAK;CAAG"}
@@ -93,13 +93,12 @@ class SqlRepoReader extends repo_1.ReadableBlockstore {
93
93
  }
94
94
  };
95
95
  // allow us to write to car while fetching the next page
96
- let writePromise = Promise.resolve();
97
96
  do {
98
97
  const res = await this.getBlockRange(since, cursor);
99
- await writePromise;
100
- writePromise = writeRows(res);
98
+ await writeRows(res);
101
99
  const lastRow = res.at(-1);
102
100
  if (lastRow && lastRow.repoRev) {
101
+ await (0, common_1.wait)(100); // @NOTE temporary measure to prevent over-writing to buffer. can remove once we refactor car writer to give back pressure on streams
103
102
  cursor = {
104
103
  cid: cid_1.CID.parse(lastRow.cid),
105
104
  rev: lastRow.repoRev,
@@ -109,8 +108,6 @@ class SqlRepoReader extends repo_1.ReadableBlockstore {
109
108
  cursor = undefined;
110
109
  }
111
110
  } while (cursor);
112
- // ensure we flush the last page of blocks
113
- await writePromise;
114
111
  });
115
112
  }
116
113
  async getBlockRange(since, cursor) {
@@ -1 +1 @@
1
- {"version":3,"file":"sql-repo-reader.js","sourceRoot":"","sources":["../../../src/actor-store/repo/sql-repo-reader.ts"],"names":[],"mappings":";;;AAAA,wCAKsB;AACtB,4CAA4C;AAC5C,0CAAsC;AAEtC,mCAA4B;AAC5B,iCAAmC;AAEnC,MAAa,aAAc,SAAQ,yBAAkB;IAGnD,YAAmB,EAAW;QAC5B,KAAK,EAAE,CAAA;QADG;;;;mBAAO,EAAE;WAAS;QAF9B;;;;mBAAkB,IAAI,eAAQ,EAAE;WAAA;IAIhC,CAAC;IAED,KAAK,CAAC,OAAO;QACX,MAAM,IAAI,GAAG,MAAM,IAAI,C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AM,IAAI,CAAC,EAAE,CAAC,EAAE;aACzB,UAAU,CAAC,YAAY,CAAC;aACxB,MAAM,CAAC,aAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC;aAC5B,gBAAgB,EAAE,CAAA;QACrB,OAAO,GAAG,EAAE,KAAK,IAAI,CAAC,CAAA;IACxB,CAAC;IAED,KAAK,CAAC,OAAO;QACX,MAAM,IAAI,KAAK,CAAC,wDAAwD,CAAC,CAAA;IAC3E,CAAC;CACF;AAtID,sCAsIC;AAOD,MAAa,qBAAsB,SAAQ,KAAK;CAAG;AAAnD,sDAAmD"}
@@ -1 +1 @@
1
- {"version":3,"file":"getProfile.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/actor/getProfile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAW5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAoBvD"}
1
+ {"version":3,"file":"getProfile.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/actor/getProfile.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,QASvD"}
@@ -1,21 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const read_after_write_1 = require("../../../../read-after-write");
4
- const pipethrough_1 = require("../../../../pipethrough");
5
- const METHOD_NSID = 'app.bsky.actor.getProfile';
6
4
  function default_1(server, ctx) {
7
5
  const { bskyAppView } = ctx.cfg;
8
6
  if (!bskyAppView)
9
7
  return;
10
8
  server.app.bsky.actor.getProfile({
11
9
  auth: ctx.authVerifier.accessStandard(),
12
- handler: async ({ req, auth }) => {
13
- const requester = auth.credentials.did;
14
- const res = await (0, pipethrough_1.pipethrough)(ctx, req, requester);
15
- if (!requester) {
16
- return res;
17
- }
18
- return (0, read_after_write_1.handleReadAfterWrite)(ctx, METHOD_NSID, requester, res, getProfileMunge);
10
+ handler: async (reqCtx) => {
11
+ return (0, read_after_write_1.pipethroughReadAfterWrite)(ctx, reqCtx, getProfileMunge);
19
12
  },
20
13
  });
21
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"getProfile.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/actor/getProfile.ts"],"names":[],"mappings":";;AAGA,mEAIqC;AACrC,yDAAqD;AAErD,MAAM,WAAW,GAAG,2BAA2B,CAAA;AAE/C,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,KAAK,CAAC,UAAU,CAAC;QAC/B,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,cAAc,EAAE;QACvC,OAAO,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE;YAC/B,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YACtC,MAAM,GAAG,GAAG,MAAM,IAAA,yBAAW,EAAC,GAAG,EAAE,GAAG,EAAE,SAAS,CAAC,CAAA;YAClD,IAAI,CAAC,SAAS,EAAE,CAAC;gBACf,OAAO,GAAG,CAAA;YACZ,CAAC;YACD,OAAO,IAAA,uCAAoB,EACzB,GAAG,EACH,WAAW,EACX,SAAS,EACT,GAAG,EACH,eAAe,CAChB,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AApBD,4BAoBC;AAED,MAAM,eAAe,GAAG,KAAK,EAC3B,WAAwB,EACxB,QAAsB,EACtB,KAAmB,EACnB,SAAiB,EACM,EAAE;IACzB,IAAI,CAAC,KAAK,CAAC,OAAO;QAAE,OAAO,QAAQ,CAAA;IACnC,IAAI,QAAQ,CAAC,GAAG,KAAK,SAAS;QAAE,OAAO,QAAQ,CAAA;IAC/C,OAAO,WAAW,CAAC,qBAAqB,CAAC,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;AAC1E,CAAC,CAAA"}
1
+ {"version":3,"file":"getProfile.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/actor/getProfile.ts"],"names":[],"mappings":";;AAGA,mEAIqC;AAErC,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,KAAK,CAAC,UAAU,CAAC;QAC/B,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,cAAc,EAAE;QACvC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;YACxB,OAAO,IAAA,4CAAyB,EAAC,GAAG,EAAE,MAAM,EAAE,eAAe,CAAC,CAAA;QAChE,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AATD,4BASC;AAED,MAAM,eAAe,GAAG,KAAK,EAC3B,WAAwB,EACxB,QAAsB,EACtB,KAAmB,EACnB,SAAiB,EACM,EAAE;IACzB,IAAI,CAAC,KAAK,CAAC,OAAO;QAAE,OAAO,QAAQ,CAAA;IACnC,IAAI,QAAQ,CAAC,GAAG,KAAK,SAAS;QAAE,OAAO,QAAQ,CAAA;IAC/C,OAAO,WAAW,CAAC,qBAAqB,CAAC,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;AAC1E,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"getProfiles.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/actor/getProfiles.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAW5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAkBvD"}
1
+ {"version":3,"file":"getProfiles.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/actor/getProfiles.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAQ5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QASvD"}
@@ -1,18 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const pipethrough_1 = require("../../../../pipethrough");
4
3
  const read_after_write_1 = require("../../../../read-after-write");
5
- const METHOD_NSID = 'app.bsky.actor.getProfiles';
6
4
  function default_1(server, ctx) {
7
5
  const { bskyAppView } = ctx.cfg;
8
6
  if (!bskyAppView)
9
7
  return;
10
8
  server.app.bsky.actor.getProfiles({
11
9
  auth: ctx.authVerifier.accessStandard(),
12
- handler: async ({ req, auth }) => {
13
- const requester = auth.credentials.did;
14
- const res = await (0, pipethrough_1.pipethrough)(ctx, req, requester);
15
- return (0, read_after_write_1.handleReadAfterWrite)(ctx, METHOD_NSID, requester, res, getProfilesMunge);
10
+ handler: async (reqCtx) => {
11
+ return (0, read_after_write_1.pipethroughReadAfterWrite)(ctx, reqCtx, getProfilesMunge);
16
12
  },
17
13
  });
18
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"getProfiles.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/actor/getProfiles.ts"],"names":[],"mappings":";;AAGA,yDAAqD;AACrD,mEAIqC;AAErC,MAAM,WAAW,GAAG,4BAA4B,CAAA;AAEhD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,EAAE,WAAW,EAA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IACtD,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC,GAAG,CAAA;IAC/B,IAAI,CAAC,WAAW;QAAE,OAAM;IACxB,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC;QAChC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,cAAc,EAAE;QACvC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;YACxB,OAAO,IAAA,4CAAyB,EAAC,GAAG,EAAE,MAAM,EAAE,gBAAgB,CAAC,CAAA;QACjE,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AATD,4BASC;AAED,MAAM,gBAAgB,GAAG,KAAK,EAC5B,WAAwB,EACxB,QAAsB,EACtB,KAAmB,EACnB,SAAiB,EACM,EAAE;IACzB,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,CAAA;IAC/B,IAAI,CAAC,SAAS;QAAE,OAAO,QAAQ,CAAA;IAE/B,MAAM,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QAC9C,IAAI,IAAI,CAAC,GAAG,KAAK,SAAS;YAAE,OAAO,IAAI,CAAA;QACvC,OAAO,WAAW,CAAC,qBAAqB,CAAC,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,CAAA;IAClE,CAAC,CAAC,CAAA;IACF,OAAO;QACL,GAAG,QAAQ;QACX,QAAQ;KACT,CAAA;AACH,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"getActorLikes.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getActorLikes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAW5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAsBvD"}
1
+ {"version":3,"file":"getActorLikes.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getActorLikes.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,QASvD"}
@@ -1,21 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const read_after_write_1 = require("../../../../read-after-write");
4
- const pipethrough_1 = require("../../../../pipethrough");
5
- const METHOD_NSID = 'app.bsky.feed.getActorLikes';
6
4
  function default_1(server, ctx) {
7
5
  const { bskyAppView } = ctx.cfg;
8
6
  if (!bskyAppView)
9
7
  return;
10
8
  server.app.bsky.feed.getActorLikes({
11
9
  auth: ctx.authVerifier.accessStandard(),
12
- handler: async ({ req, auth }) => {
13
- const requester = auth.credentials.did;
14
- const res = await (0, pipethrough_1.pipethrough)(ctx, req, requester);
15
- if (!requester) {
16
- return res;
17
- }
18
- return await (0, read_after_write_1.handleReadAfterWrite)(ctx, METHOD_NSID, requester, res, getAuthorMunge);
10
+ handler: async (reqCtx) => {
11
+ return (0, read_after_write_1.pipethroughReadAfterWrite)(ctx, reqCtx, getAuthorMunge);
19
12
  },
20
13
  });
21
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"getActorLikes.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getActorLikes.ts"],"names":[],"mappings":";;AAGA,mEAIqC;AACrC,yDAAqD;AAErD,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,GAA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1
+ {"version":3,"file":"getActorLikes.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getActorLikes.ts"],"names":[],"mappings":";;AAGA,mEAIqC;AAErC,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,MAAM,EAAE,EAAE;YACxB,OAAO,IAAA,4CAAyB,EAAC,GAAG,EAAE,MAAM,EAAE,cAAc,CAAC,CAAA;QAC/D,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AATD,4BASC;AAED,MAAM,cAAc,GAAG,KAAK,EAC1B,WAAwB,EACxB,QAAsB,EACtB,KAAmB,EACnB,SAAiB,EACM,EAAE;IACzB,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,CAAA;IAC/B,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAA;IACxB,wDAAwD;IACxD,IAAI,SAAS,EAAE,CAAC;QACd,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;YACvB,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,KAAK,SAAS,EAAE,CAAC;gBACvC,OAAO;oBACL,GAAG,IAAI;oBACP,IAAI,EAAE;wBACJ,GAAG,IAAI,CAAC,IAAI;wBACZ,MAAM,EAAE,WAAW,CAAC,sBAAsB,CACxC,IAAI,CAAC,IAAI,CAAC,MAAM,EAChB,SAAS,CAAC,MAAM,CACjB;qBACF;iBACF,CAAA;YACH,CAAC;iBAAM,CAAC;gBACN,OAAO,IAAI,CAAA;YACb,CAAC;QACH,CAAC,CAAC,CAAA;IACJ,CAAC;IACD,OAAO;QACL,GAAG,QAAQ;QACX,IAAI;KACL,CAAA;AACH,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"getAuthorFeed.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getAuthorFeed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAY5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAoBvD"}
1
+ {"version":3,"file":"getAuthorFeed.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getAuthorFeed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAS5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QASvD"}
@@ -2,21 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const defs_1 = require("../../../../lexicon/types/app/bsky/feed/defs");
4
4
  const read_after_write_1 = require("../../../../read-after-write");
5
- const pipethrough_1 = require("../../../../pipethrough");
6
- const METHOD_NSID = 'app.bsky.feed.getAuthorFeed';
7
5
  function default_1(server, ctx) {
8
6
  const { bskyAppView } = ctx.cfg;
9
7
  if (!bskyAppView)
10
8
  return;
11
9
  server.app.bsky.feed.getAuthorFeed({
12
10
  auth: ctx.authVerifier.accessStandard(),
13
- handler: async ({ req, auth }) => {
14
- const requester = auth.credentials.did;
15
- const res = await (0, pipethrough_1.pipethrough)(ctx, req, requester);
16
- if (!requester) {
17
- return res;
18
- }
19
- return await (0, read_after_write_1.handleReadAfterWrite)(ctx, METHOD_NSID, requester, res, getAuthorMunge);
11
+ handler: async (reqCtx) => {
12
+ return (0, read_after_write_1.pipethroughReadAfterWrite)(ctx, reqCtx, getAuthorMunge);
20
13
  },
21
14
  });
22
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"getAuthorFeed.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getAuthorFeed.ts"],"names":[],"mappings":";;AAGA,uEAA6E;AAC7E,mEAIqC;AACrC,yDAAqD;AAErD,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,EAAE,EAAE;YAC/B,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAA;YACtC,MAAM,GAAG,GAAG,MAAM,IAAA,yBAAW,EAAC,GAAG,EAAE,GAAG,EAAE,SAAS,CAAC,CAAA;YAClD,IAAI,CAAC,SAAS,EAAE,CAAC;gBACf,OAAO,GAAG,CAAA;YACZ,CAAC;YACD,OAAO,MAAM,IAAA,uCAAoB,EAC/B,GAAG,EACH,WAAW,EACX,SAAS,EACT,GAAG,EACH,cAAc,CACf,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AApBD,4BAoBC;AAED,MAAM,cAAc,GAAG,KAAK,EAC1B,WAAwB,EACxB,QAAsB,EACtB,KAAmB,EACnB,SAAiB,EACM,EAAE;IACzB,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,CAAA;IAC/B,yBAAyB;IACzB,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAE,CAAC;QACtC,OAAO,QAAQ,CAAA;IACjB,CAAC;IACD,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAA;IACxB,wDAAwD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ACJ,CAAC;IACD,IAAI,GAAG,MAAM,WAAW,CAAC,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAA;IACtE,OAAO;QACL,GAAG,QAAQ;QACX,IAAI;KACL,CAAA;AACH,CAAC,CAAA;AAED,MAAM,WAAW,GAAG,CAAC,IAAkB,EAAE,SAAiB,EAAE,EAAE;IAC5D,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;IAC7B,IAAI,CAAC,KAAK;QAAE,OAAO,KAAK,CAAA;IACxB,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,KAAK,SAAS;QAAE,OAAO,IAAI,CAAA;IACrE,IAAI,IAAA,qBAAc,EAAC,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,KAAK,SAAS;QACnE,OAAO,IAAI,CAAA;IACb,OAAO,KAAK,CAAA;AACd,CAAC,CAAA"}
@@ -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;AAI5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAuBvD"}
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,QAyBvD"}
@@ -12,7 +12,8 @@ function default_1(server, ctx) {
12
12
  handler: async ({ params, auth, req }) => {
13
13
  const requester = auth.credentials.did;
14
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, {
15
+ return (0, pipethrough_1.pipethrough)(ctx, req, {
16
+ iss: requester,
16
17
  aud: feed.view.did,
17
18
  lxm: lexicons_1.ids.AppBskyFeedGetFeedSkeleton,
18
19
  });
@@ -1 +1 @@
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,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AC;KACF,CAAC,CAAA;AACJ,CAAC;AAzBD,4BAyBC"}
@@ -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;AAwB5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QA0CvD"}
1
+ {"version":3,"file":"getPostThread.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getPostThread.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAqB5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAwCvD"}
@@ -8,27 +8,30 @@ const syntax_1 = require("@atproto/syntax");
8
8
  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
- const pipethrough_1 = require("../../../../pipethrough");
12
11
  const lexicons_1 = require("../../../../lexicon/lexicons");
13
- const METHOD_NSID = 'app.bsky.feed.getPostThread';
14
12
  function default_1(server, ctx) {
15
13
  const { bskyAppView } = ctx.cfg;
16
14
  if (!bskyAppView)
17
15
  return;
18
16
  server.app.bsky.feed.getPostThread({
19
17
  auth: ctx.authVerifier.accessStandard(),
20
- handler: async ({ req, auth, params }) => {
21
- const requester = auth.credentials.did;
18
+ handler: async (reqCtx) => {
22
19
  try {
23
- const res = await (0, pipethrough_1.pipethrough)(ctx, req, requester);
24
- return await (0, read_after_write_1.handleReadAfterWrite)(ctx, METHOD_NSID, requester, res, getPostThreadMunge);
20
+ return await (0, read_after_write_1.pipethroughReadAfterWrite)(ctx, reqCtx, getPostThreadMunge);
25
21
  }
26
22
  catch (err) {
27
23
  if (err instanceof xrpc_1.XRPCError && err.error === 'NotFound') {
28
- const headers = err.headers;
24
+ const { auth, params } = reqCtx;
25
+ const requester = auth.credentials.did;
26
+ const rev = err.headers && (0, read_after_write_1.getRepoRev)(err.headers);
27
+ if (!rev)
28
+ throw err;
29
+ const uri = new syntax_1.AtUri(params.uri);
30
+ if (uri.hostname !== requester)
31
+ throw err;
29
32
  const local = await ctx.actorStore.read(requester, (store) => {
30
33
  const localViewer = ctx.localViewer(store);
31
- return readAfterWriteNotFound(ctx, localViewer, params, requester, headers);
34
+ return readAfterWriteNotFound(ctx, localViewer, params, requester, rev);
32
35
  });
33
36
  if (local === null) {
34
37
  throw err;
@@ -111,12 +114,7 @@ const threadPostView = async (localViewer, descript) => {
111
114
  };
112
115
  // Read after write on error
113
116
  // ---------------------
114
- const readAfterWriteNotFound = async (ctx, localViewer, params, requester, headers) => {
115
- if (!headers)
116
- return null;
117
- const rev = (0, read_after_write_1.getRepoRev)(headers);
118
- if (!rev)
119
- return null;
117
+ const readAfterWriteNotFound = async (ctx, localViewer, params, requester, rev) => {
120
118
  const uri = new syntax_1.AtUri(params.uri);
121
119
  if (uri.hostname !== requester) {
122
120
  return null;
@@ -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;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;QACj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AE,CAAC;QAClB,IAAI,CAAC;YACH,IAAA,qBAAM,EAAC,GAAG,CAAC,YAAY,CAAC,CAAA;YACxB,MAAM,UAAU,GAAG,MAAM,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CACvE,EAAE,GAAG,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,CAAC,YAAY,EAAE,KAAK,EAAE,CAAC,EAAE,EACnE,MAAM,GAAG,CAAC,kBAAkB,CAAC,SAAS,EAAE,cAAG,CAAC,wBAAwB,CAAC,CACtE,CAAA;YACD,MAAM,CAAC,MAAM,GAAG,UAAU,CAAC,IAAI,CAAC,MAAM,CAAA;QACxC,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,aAAa;QACf,CAAC;IACH,CAAC;IACD,OAAO;QACL,IAAI,EAAE;YACJ,MAAM;SACP;QACD,GAAG,EAAE,IAAA,8BAAW,EAAC,KAAK,CAAC;KACxB,CAAA;AACH,CAAC,CAAA;AAED,MAAM,gBAAgB,GAAG,CAAC,MAAsB,EAAsB,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
+ {"version":3,"file":"getPostThread.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getPostThread.ts"],"names":[],"mappings":";;;;;AAAA,8DAAgC;AAChC,4CAAuC;AACvC,wCAAyC;AAIzC,uEAGqD;AAMrD,mEAQqC;AACrC,2DAAkD;AAElD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC,GAAG,CAAA;I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,UAAU,MAAM,qBAAqB,CAAA;AAW5C,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAiBvD"}
1
+ {"version":3,"file":"getTimeline.d.ts","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getTimeline.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,QASvD"}
@@ -1,18 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const read_after_write_1 = require("../../../../read-after-write");
4
- const pipethrough_1 = require("../../../../pipethrough");
5
- const METHOD_NSID = 'app.bsky.feed.getTimeline';
6
4
  function default_1(server, ctx) {
7
5
  const { bskyAppView } = ctx.cfg;
8
6
  if (!bskyAppView)
9
7
  return;
10
8
  server.app.bsky.feed.getTimeline({
11
9
  auth: ctx.authVerifier.accessStandard(),
12
- handler: async ({ req, auth }) => {
13
- const requester = auth.credentials.did;
14
- const res = await (0, pipethrough_1.pipethrough)(ctx, req, requester);
15
- return await (0, read_after_write_1.handleReadAfterWrite)(ctx, METHOD_NSID, requester, res, getTimelineMunge);
10
+ handler: async (reqCtx) => {
11
+ return (0, read_after_write_1.pipethroughReadAfterWrite)(ctx, reqCtx, getTimelineMunge);
16
12
  },
17
13
  });
18
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"getTimeline.js","sourceRoot":"","sources":["../../../../../src/api/app/bsky/feed/getTimeline.ts"],"names":[],"mappings":";;AAGA,mEAIqC;AACrC,yDAAqD;AAErD,MAAM,WAAW,GAAG,2BAA2B,CAAA;AAE/C,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC,GAAG,CAAA;IAC/B,IAAI,CAAC,W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yB,EAAC,GAAG,EAAE,MAAM,EAAE,gBAAgB,CAAC,CAAA;QACjE,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AATD,4BASC;AAED,MAAM,gBAAgB,GAAG,KAAK,EAC5B,WAAwB,EACxB,QAAsB,EACtB,KAAmB,EACI,EAAE;IACzB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC,0BAA0B,CACvD,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,EAClB,KAAK,CAAC,KAAK,CACZ,CAAA;IACD,OAAO;QACL,GAAG,QAAQ;QACX,IAAI;KACL,CAAA;AACH,CAAC,CAAA"}
@@ -26,7 +26,7 @@ function default_1(server, ctx) {
26
26
  if (!ctx.cfg.bskyAppView) {
27
27
  throw new xrpc_server_1.InvalidRequestError(`Could not locate record`);
28
28
  }
29
- return await (0, pipethrough_1.pipethrough)(ctx, req, null);
29
+ return (0, pipethrough_1.pipethrough)(ctx, req);
30
30
  });
31
31
  }
32
32
  exports.default = default_1;
@@ -1 +1 @@
1
- {"version":3,"file":"getRecord.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/repo/getRecord.ts"],"names":[],"mappings":";;AAAA,4CAAuC;AAGvC,sDAA0D;AAC1D,yDAAqD;AAErD,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE;QAC1D,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,MAAM,CAAA;QAC9C,MAAM,GAAG,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC,cAAc,CAAC,IAAI,CAAC,CAAA;QAEzD,8DAA8D;QAC9D,IAAI,GAAG,EAAE,CAAC;YACR,MAAM,GAAG,GAAG,cAAK,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,EAAE,IAAI,CAAC,CAAA;YAC7C,MAA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AAC,IAAI,CAAC,CAAA;QAEzD,8DAA8D;QAC9D,IAAI,GAAG,EAAE,CAAC;YACR,MAAM,GAAG,GAAG,cAAK,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,EAAE,IAAI,CAAC,CAAA;YAC7C,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,EAAE,CACtD,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,EAAE,GAAG,IAAI,IAAI,CAAC,CACzC,CAAA;YACD,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,WAAW,KAAK,IAAI,EAAE,CAAC;gBAC3C,MAAM,IAAI,iCAAmB,CAAC,4BAA4B,GAAG,EAAE,CAAC,CAAA;YAClE,CAAC;YACD,OAAO;gBACL,QAAQ,EAAE,kBAAkB;gBAC5B,IAAI,EAAE;oBACJ,GAAG,EAAE,GAAG,CAAC,QAAQ,EAAE;oBACnB,GAAG,EAAE,MAAM,CAAC,GAAG;oBACf,KAAK,EAAE,MAAM,CAAC,KAAK;iBACpB;aACF,CAAA;QACH,CAAC;QAED,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;YACzB,MAAM,IAAI,iCAAmB,CAAC,yBAAyB,CAAC,CAAA;QAC1D,CAAC;QAED,OAAO,IAAA,yBAAW,EAAC,GAAG,EAAE,GAAG,CAAC,CAAA;IAC9B,CAAC,CAAC,CAAA;AACJ,CAAC;AA9BD,4BA8BC"}
@@ -29,7 +29,7 @@ function default_1(server, ctx) {
29
29
  throw new xrpc_server_1.InvalidRequestError('account does not have an email address');
30
30
  }
31
31
  const token = await ctx.accountManager.createEmailToken(account.did, 'reset_password');
32
- await ctx.mailer.sendResetPassword({ identifier: account.handle ?? account.email, token }, { to: account.email });
32
+ await ctx.mailer.sendResetPassword({ handle: account.handle ?? account.email, token }, { to: account.email });
33
33
  },
34
34
  });
35
35
  }
@@ -1 +1 @@
1
- {"version":3,"file":"requestPasswordReset.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/requestPasswordReset.ts"],"names":[],"mappings":";;AAAA,4CAA2C;AAC3C,sDAA0D;AAG1D,0CAA6C;AAE7C,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,oBAAoB,CAAC;QAC7C,SAAS,EAAE;YACT;gBACE,UAAU,EAAE,YAAG;gBACf,MAAM,EAAE,EAAE;aACX;YACD;gBACE,UAAU,EAAE,aAAI;gBAChB,MAAM,EAAE,EAAE;aACX;SACF;QACD,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE;YAChC,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAAA;YAE5C,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC,iBAAiB,CAAC,KAAK,EAAE;gBAChE,kBAAkB,EAAE,IAAI;gBACxB,gBAAgB,EAAE,IAAI;aACvB,CAAC,CAAA;YAEF,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC;gBACpB,IAAI,GAAG,CAAC,aAAa,EAAE,CAAC;oBACtB,MAAM,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,oBAAoB,CAC7D,KAAK,CAAC,IAAI,EACV,IAAA,oBAAY,EAAC,GAAG,EAAE,IAAI,CAAC,CACxB,CAAA;oBACD,OAAM;gBACR,CAAC;gBACD,MAAM,IAAI,iCAAmB,CAAC,wCAAwC,CAAC,CAAA;YACzE,CAAC;YAED,MAAM,KAAK,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC,gBAAgB,CACrD,OAAO,CAAC,GAAG,EACX,gBAAgB,CACjB,CAAA;YACD,MAAM,GAAG,CAAC,MAAM,CAAC,iBAAiB,CAChC,EAAE,UAAU,EAAE,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,EACtD,EAAE,EAAE,EAAE,OAAO,CAAC,KAAK,EAAE,CACtB,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AAzCD,4BAyCC"}
1
+ {"version":3,"file":"requestPasswordReset.js","sourceRoot":"","sources":["../../../../../src/api/com/atproto/server/requestPasswordReset.ts"],"names":[],"mappings":";;AAAA,4CAA2C;AAC3C,sDAA0D;AAG1D,0CAA6C;AAE7C,mBAAyB,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,oBAAoB,CAAC;QAC7C,SAAS,EAAE;YACT;gBACE,UAAU,EAAE,YAAG;gBACf,MAAM,EAAE,EAAE;aACX;YACD;gBACE,UAAU,EAAE,aAAI;gBAChB,MAAM,EAAE,EAAE;aACX;SACF;QACD,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE;YAChC,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAAA;YAE5C,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC,iBAAiB,CAAC,KAAK,EAAE;gBAChE,kBAAkB,EAAE,IAAI;gBACxB,gBAAgB,EAAE,IAAI;aACvB,CAAC,CAAA;YAEF,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC;gBACpB,IAAI,GAAG,CAAC,aAAa,EAAE,CAAC;oBACtB,MAAM,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,oBAAoB,CAC7D,KAAK,CAAC,IAAI,EACV,IAAA,oBAAY,EAAC,GAAG,EAAE,IAAI,CAAC,CACxB,CAAA;oBACD,OAAM;gBACR,CAAC;gBACD,MAAM,IAAI,iCAAmB,CAAC,wCAAwC,CAAC,CAAA;YACzE,CAAC;YAED,MAAM,KAAK,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC,gBAAgB,CACrD,OAAO,CAAC,GAAG,EACX,gBAAgB,CACjB,CAAA;YACD,MAAM,GAAG,CAAC,MAAM,CAAC,iBAAiB,CAChC,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,EAClD,EAAE,EAAE,EAAE,OAAO,CAAC,KAAK,EAAE,CACtB,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC;AAzCD,4BAyCC"}
@@ -19,6 +19,7 @@ export type ServerConfig = {
19
19
  rateLimits: RateLimitsConfig;
20
20
  crawlers: string[];
21
21
  fetch: FetchConfig;
22
+ proxy: ProxyConfig;
22
23
  oauth: OAuthConfig;
23
24
  };
24
25
  export type ServiceConfig = {
@@ -80,6 +81,14 @@ export type EntrywayConfig = {
80
81
  };
81
82
  export type FetchConfig = {
82
83
  disableSsrfProtection: boolean;
84
+ maxResponseSize: number;
85
+ };
86
+ export type ProxyConfig = {
87
+ disableSsrfProtection: boolean;
88
+ allowHTTP2: boolean;
89
+ headersTimeout: number;
90
+ bodyTimeout: number;
91
+ maxResponseSize: number;
83
92
  };
84
93
  export type OAuthConfig = {
85
94
  issuer: string;
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAKzC,eAAO,MAAM,QAAQ,QAAS,iBAAiB,KAAG,YAySjD,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,aAAa,CAAA;IACtB,EAAE,EAAE,cAAc,CAAA;IAClB,UAAU,EAAE,gBAAgB,CAAA;IAC5B,SAAS,EAAE,iBAAiB,GAAG,mBAAmB,CAAA;IAClD,QAAQ,EAAE,cAAc,CAAA;IACxB,QAAQ,EAAE,cAAc,GAA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a,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA"}
@@ -200,7 +200,15 @@ const envToCfg = (env) => {
200
200
  : { enabled: false };
201
201
  const crawlersCfg = env.crawlers ?? [];
202
202
  const fetchCfg = {
203
- disableSsrfProtection: env.fetchDisableSsrfProtection ?? false,
203
+ disableSsrfProtection: env.disableSsrfProtection ?? env.devMode ?? false,
204
+ maxResponseSize: env.fetchMaxResponseSize ?? 512 * 1024, // 512kb
205
+ };
206
+ const proxyCfg = {
207
+ disableSsrfProtection: env.disableSsrfProtection ?? env.devMode ?? false,
208
+ allowHTTP2: env.proxyAllowHTTP2 ?? false,
209
+ headersTimeout: env.proxyHeadersTimeout ?? 10e3,
210
+ bodyTimeout: env.proxyBodyTimeout ?? 30e3,
211
+ maxResponseSize: env.proxyMaxResponseSize ?? 10 * 1024 * 1024, // 10mb
204
212
  };
205
213
  const oauthCfg = entrywayCfg
206
214
  ? {
@@ -261,6 +269,7 @@ const envToCfg = (env) => {
261
269
  rateLimits: rateLimitsCfg,
262
270
  crawlers: crawlersCfg,
263
271
  fetch: fetchCfg,
272
+ proxy: proxyCfg,
264
273
  oauth: oauthCfg,
265
274
  };
266
275
  };
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":";;;;;;AAAA,0DAA4B;AAC5B,8DAAgC;AAChC,4CAAmD;AAInD,iCAAiC;AACjC,gEAAgE;AAEzD,MAAM,QAAQ,GAAG,CAAC,GAAsB,EAAgB,EAAE;IAC/D,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,IAAI,IAAI,CAAA;IAC7B,MAAM,QAAQ,GA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,YAAY,EAAE,eAAe;QAC7B,WAAW,EAAE,cAAc;QAC3B,UAAU,EAAE,aAAa;QACzB,aAAa,EAAE,gBAAgB;QAC/B,KAAK,EAAE,QAAQ;QACf,UAAU,EAAE,aAAa;QACzB,QAAQ,EAAE,WAAW;QACrB,KAAK,EAAE,QAAQ;QACf,KAAK,EAAE,QAAQ;QACf,KAAK,EAAE,QAAQ;KAChB,CAAA;AACH,CAAC,CAAA;AAnTY,QAAA,QAAQ,YAmTpB"}
@@ -72,6 +72,11 @@ export type ServerEnvironment = {
72
72
  adminPassword?: string;
73
73
  plcRotationKeyKmsKeyId?: string;
74
74
  plcRotationKeyK256PrivateKeyHex?: string;
75
- fetchDisableSsrfProtection?: boolean;
75
+ disableSsrfProtection?: boolean;
76
+ fetchMaxResponseSize?: number;
77
+ proxyAllowHTTP2?: boolean;
78
+ proxyHeadersTimeout?: number;
79
+ proxyBodyTimeout?: number;
80
+ proxyMaxResponseSize?: number;
76
81
  };
77
82
  //# sourceMappingURL=env.d.ts.map