@atproto/pds 0.4.69 → 0.4.70

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/api/app/bsky/feed/getPostThread.d.ts.map +1 -1
  3. package/dist/api/app/bsky/feed/getPostThread.js +11 -6
  4. package/dist/api/app/bsky/feed/getPostThread.js.map +1 -1
  5. package/dist/config/config.d.ts +1 -0
  6. package/dist/config/config.d.ts.map +1 -1
  7. package/dist/config/config.js +3 -0
  8. package/dist/config/config.js.map +1 -1
  9. package/dist/config/env.d.ts +1 -0
  10. package/dist/config/env.d.ts.map +1 -1
  11. package/dist/config/env.js +1 -0
  12. package/dist/config/env.js.map +1 -1
  13. package/dist/context.d.ts +2 -2
  14. package/dist/context.d.ts.map +1 -1
  15. package/dist/context.js +8 -1
  16. package/dist/context.js.map +1 -1
  17. package/dist/lexicon/index.d.ts +11 -0
  18. package/dist/lexicon/index.d.ts.map +1 -1
  19. package/dist/lexicon/index.js +32 -1
  20. package/dist/lexicon/index.js.map +1 -1
  21. package/dist/lexicon/lexicons.d.ts +359 -0
  22. package/dist/lexicon/lexicons.d.ts.map +1 -1
  23. package/dist/lexicon/lexicons.js +402 -3
  24. package/dist/lexicon/lexicons.js.map +1 -1
  25. package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts +58 -2
  26. package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts.map +1 -1
  27. package/dist/lexicon/types/tools/ozone/moderation/defs.js +50 -0
  28. package/dist/lexicon/types/tools/ozone/moderation/defs.js.map +1 -1
  29. package/dist/lexicon/types/tools/ozone/moderation/emitEvent.d.ts +1 -1
  30. package/dist/lexicon/types/tools/ozone/moderation/emitEvent.d.ts.map +1 -1
  31. package/dist/lexicon/types/tools/ozone/moderation/queryStatuses.d.ts +10 -0
  32. package/dist/lexicon/types/tools/ozone/moderation/queryStatuses.d.ts.map +1 -1
  33. package/dist/lexicon/types/tools/ozone/setting/defs.d.ts +20 -0
  34. package/dist/lexicon/types/tools/ozone/setting/defs.d.ts.map +1 -0
  35. package/dist/lexicon/types/tools/ozone/setting/defs.js +15 -0
  36. package/dist/lexicon/types/tools/ozone/setting/defs.js.map +1 -0
  37. package/dist/lexicon/types/tools/ozone/setting/listOptions.d.ts +43 -0
  38. package/dist/lexicon/types/tools/ozone/setting/listOptions.d.ts.map +1 -0
  39. package/dist/lexicon/types/tools/ozone/setting/listOptions.js +3 -0
  40. package/dist/lexicon/types/tools/ozone/setting/listOptions.js.map +1 -0
  41. package/dist/lexicon/types/tools/ozone/setting/removeOptions.d.ts +40 -0
  42. package/dist/lexicon/types/tools/ozone/setting/removeOptions.d.ts.map +1 -0
  43. package/dist/lexicon/types/tools/ozone/setting/removeOptions.js +3 -0
  44. package/dist/lexicon/types/tools/ozone/setting/removeOptions.js.map +1 -0
  45. package/dist/lexicon/types/tools/ozone/setting/upsertOption.d.ts +45 -0
  46. package/dist/lexicon/types/tools/ozone/setting/upsertOption.d.ts.map +1 -0
  47. package/dist/lexicon/types/tools/ozone/setting/upsertOption.js +3 -0
  48. package/dist/lexicon/types/tools/ozone/setting/upsertOption.js.map +1 -0
  49. package/dist/pipethrough.d.ts +0 -1
  50. package/dist/pipethrough.d.ts.map +1 -1
  51. package/dist/pipethrough.js +11 -10
  52. package/dist/pipethrough.js.map +1 -1
  53. package/example.env +1 -1
  54. package/package.json +11 -11
  55. package/src/api/app/bsky/feed/getPostThread.ts +15 -4
  56. package/src/config/config.ts +5 -0
  57. package/src/config/env.ts +2 -0
  58. package/src/context.ts +11 -3
  59. package/src/lexicon/index.ts +46 -0
  60. package/src/lexicon/lexicons.ts +412 -3
  61. package/src/lexicon/types/tools/ozone/moderation/defs.ts +130 -0
  62. package/src/lexicon/types/tools/ozone/moderation/emitEvent.ts +3 -0
  63. package/src/lexicon/types/tools/ozone/moderation/queryStatuses.ts +10 -0
  64. package/src/lexicon/types/tools/ozone/setting/defs.ts +37 -0
  65. package/src/lexicon/types/tools/ozone/setting/listOptions.ts +53 -0
  66. package/src/lexicon/types/tools/ozone/setting/removeOptions.ts +49 -0
  67. package/src/lexicon/types/tools/ozone/setting/upsertOption.ts +58 -0
  68. package/src/pipethrough.ts +13 -12
  69. package/tests/proxied/__snapshots__/admin.test.ts.snap +12 -0
  70. package/tests/proxied/proxy-catchall.test.ts +1 -1
  71. package/tests/proxied/read-after-write.test.ts +20 -1
  72. package/tsconfig.build.tsbuildinfo +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"pipethrough.js","sourceRoot":"","sources":["../src/pipethrough.ts"],"names":[],"mappings":";;;AA0IA,kCAkEC;AAoRD,8CAGC;AAuCD,wDAuBC;AAED,kDAWC;AA5iBD,6CAAmD;AAGnD,4CAKwB;AACxB,wCAA0E;AAC1E,sDAQ6B;AAG7B,iDAAwC;AACxC,qCAAqC;AAE9B,MAAM,YAAY,GAAG,CAAC,GAAe,EAAmB,EAAE;IAC/D,MAAM,cAAc,GAAG,GAAG,CAAC,YAAY,CAAC,cAAc,EAAE,CAAA;IACxD,OAAO,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;QAC9B,eAAe;QAEf,IAAI,CAAC;YACH,IACE,GAAG,CAAC,MAAM,KAAK,KAAK;gBACpB,GAAG,CAAC,MAAM,KAAK,MAAM;gBACrB,GAAG,CAAC,MAAM,KAAK,MAAM,EACrB,CAAC;gBACD,MAAM,IAAI,uBAAe,CACvB,mBAAY,CAAC,cAAc,EAC3B,0CAA0C,CAC3C,CAAA;YACH,CAAC;YAED,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAA;YACpD,IAAI,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACnC,qDAAqD;gBACrD,MAAM,IAAI,iCAAmB,CAAC,8BAA8B,CAAC,CAAA;YAC/D,CAAC;YAED,MAAM,GAAG,GAAG,IAAA,0BAAY,EAAC,GAAG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/C,KAAK,cAAG,CAAC,oCAAoC,CAAC;QAC9C,KAAK,cAAG,CAAC,6BAA6B,CAAC;QACvC,KAAK,cAAG,CAAC,4BAA4B,CAAC;QACtC,KAAK,cAAG,CAAC,6BAA6B,CAAC;QACvC,KAAK,cAAG,CAAC,2BAA2B,CAAC;QACrC,KAAK,cAAG,CAAC,+BAA+B,CAAC;QACzC,KAAK,cAAG,CAAC,iCAAiC,CAAC;QAC3C,KAAK,cAAG,CAAC,+BAA+B;YACtC,OAAO,GAAG,CAAC,GAAG,CAAC,UAAU,CAAA;QAC3B,KAAK,cAAG,CAAC,gCAAgC;YACvC,OAAO,GAAG,CAAC,GAAG,CAAC,aAAa,CAAA;QAC9B;YACE,OAAO,GAAG,CAAC,GAAG,CAAC,WAAW,CAAA;IAC9B,CAAC;AACH,CAAC,CAAA;AAED,MAAM,UAAU,GAAG,CAAC,GAAY,EAAsB,EAAE;IACtD,OAAO,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAA;AAClD,CAAC,CAAA;AAED,SAAS,gBAAgB,CAAuB,GAAY;IAC1D,mBAAU,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,EAAE,oCAAoC,CAAC,CAAA;AAChE,CAAC"}
package/example.env CHANGED
@@ -20,7 +20,7 @@ PDS_ADMIN_PASSWORD="admin-pass"
20
20
 
21
21
  # Environment - example is for live network
22
22
  PDS_DID_PLC_URL="https://plc.directory"
23
- PDS_BSKY_APP_VIEW_ENDPOINT="https://api.bsky.app"
23
+ PDS_BSKY_APP_VIEW_URL="https://api.bsky.app"
24
24
  PDS_BSKY_APP_VIEW_DID="did:web:api.bsky.app"
25
25
  PDS_CRAWLERS="https://bsky.network"
26
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/pds",
3
- "version": "0.4.69",
3
+ "version": "0.4.70",
4
4
  "license": "MIT",
5
5
  "description": "Reference implementation of atproto Personal Data Server (PDS)",
6
6
  "keywords": [
@@ -39,23 +39,23 @@
39
39
  "p-queue": "^6.6.2",
40
40
  "pino": "^8.21.0",
41
41
  "pino-http": "^8.2.1",
42
- "sharp": "^0.32.6",
42
+ "sharp": "^0.33.5",
43
43
  "typed-emitter": "^2.1.0",
44
44
  "uint8arrays": "3.0.0",
45
45
  "undici": "^6.19.8",
46
46
  "zod": "^3.23.8",
47
47
  "@atproto-labs/fetch-node": "0.1.3",
48
- "@atproto/api": "^0.13.14",
49
- "@atproto/aws": "^0.2.7",
48
+ "@atproto/api": "^0.13.15",
49
+ "@atproto/aws": "^0.2.8",
50
50
  "@atproto/common": "^0.4.4",
51
- "@atproto/crypto": "^0.4.1",
52
- "@atproto/identity": "^0.4.2",
51
+ "@atproto/crypto": "^0.4.2",
52
+ "@atproto/identity": "^0.4.3",
53
53
  "@atproto/lexicon": "^0.4.2",
54
- "@atproto/oauth-provider": "^0.2.6",
55
- "@atproto/repo": "^0.5.3",
54
+ "@atproto/oauth-provider": "^0.2.7",
55
+ "@atproto/repo": "^0.5.4",
56
56
  "@atproto/syntax": "^0.3.0",
57
57
  "@atproto/xrpc": "^0.6.3",
58
- "@atproto/xrpc-server": "^0.7.1"
58
+ "@atproto/xrpc-server": "^0.7.2"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@atproto/pds-entryway": "npm:@atproto/pds@0.3.0-entryway.3",
@@ -75,8 +75,8 @@
75
75
  "ts-node": "^10.8.2",
76
76
  "typescript": "^5.6.3",
77
77
  "ws": "^8.12.0",
78
- "@atproto/api": "^0.13.14",
79
- "@atproto/bsky": "^0.0.92",
78
+ "@atproto/api": "^0.13.15",
79
+ "@atproto/bsky": "^0.0.93",
80
80
  "@atproto/lex-cli": "^0.5.1",
81
81
  "@atproto/oauth-client-browser-example": "0.0.0"
82
82
  },
@@ -41,6 +41,12 @@ export default function (server: Server, ctx: AppContext) {
41
41
  if (!rev) throw err
42
42
 
43
43
  const uri = new AtUri(params.uri)
44
+ if (!uri.hostname.startsWith('did:')) {
45
+ const account = await ctx.accountManager.getAccount(uri.hostname)
46
+ if (account) {
47
+ uri.hostname = account.did
48
+ }
49
+ }
44
50
  if (uri.hostname !== requester) throw err
45
51
 
46
52
  const local = await ctx.actorStore.read(requester, (store) => {
@@ -51,6 +57,7 @@ export default function (server: Server, ctx: AppContext) {
51
57
  params,
52
58
  requester,
53
59
  rev,
60
+ uri,
54
61
  )
55
62
  })
56
63
  if (local === null) {
@@ -165,17 +172,21 @@ const readAfterWriteNotFound = async (
165
172
  params: QueryParams,
166
173
  requester: string,
167
174
  rev: string,
175
+ resolvedUri: AtUri,
168
176
  ): Promise<{ data: OutputSchema; lag?: number } | null> => {
169
- const uri = new AtUri(params.uri)
170
- if (uri.hostname !== requester) {
177
+ if (resolvedUri.hostname !== requester) {
171
178
  return null
172
179
  }
173
180
  const local = await localViewer.getRecordsSinceRev(rev)
174
- const found = local.posts.find((p) => p.uri.toString() === uri.toString())
181
+ const found = local.posts.find(
182
+ (p) => p.uri.toString() === resolvedUri.toString(),
183
+ )
175
184
  if (!found) return null
176
185
  let thread = await threadPostView(localViewer, found)
177
186
  if (!thread) return null
178
- const rest = local.posts.filter((p) => p.uri.toString() !== uri.toString())
187
+ const rest = local.posts.filter(
188
+ (p) => p.uri.toString() !== resolvedUri.toString(),
189
+ )
179
190
  thread = await addPostsToThread(localViewer, thread, rest)
180
191
  const highestParent = getHighestParent(thread)
181
192
  if (highestParent) {
@@ -246,6 +246,10 @@ export const envToCfg = (env: ServerEnvironment): ServerConfig => {
246
246
  headersTimeout: env.proxyHeadersTimeout ?? 10e3,
247
247
  bodyTimeout: env.proxyBodyTimeout ?? 30e3,
248
248
  maxResponseSize: env.proxyMaxResponseSize ?? 10 * 1024 * 1024, // 10mb
249
+ maxRetries:
250
+ env.proxyMaxRetries != null && env.proxyMaxRetries > 0
251
+ ? env.proxyMaxRetries
252
+ : 0,
249
253
  preferCompressed: env.proxyPreferCompressed ?? false,
250
254
  }
251
255
 
@@ -414,6 +418,7 @@ export type ProxyConfig = {
414
418
  headersTimeout: number
415
419
  bodyTimeout: number
416
420
  maxResponseSize: number
421
+ maxRetries: number
417
422
 
418
423
  /**
419
424
  * When proxying requests that might get intercepted (for read-after-write) we
package/src/config/env.ts CHANGED
@@ -128,6 +128,7 @@ export const readEnv = (): ServerEnvironment => {
128
128
  proxyHeadersTimeout: envInt('PDS_PROXY_HEADERS_TIMEOUT'),
129
129
  proxyBodyTimeout: envInt('PDS_PROXY_BODY_TIMEOUT'),
130
130
  proxyMaxResponseSize: envInt('PDS_PROXY_MAX_RESPONSE_SIZE'),
131
+ proxyMaxRetries: envInt('PDS_PROXY_MAX_RETRIES'),
131
132
  proxyPreferCompressed: envBool('PDS_PROXY_PREFER_COMPRESSED'),
132
133
  }
133
134
  }
@@ -254,5 +255,6 @@ export type ServerEnvironment = {
254
255
  proxyHeadersTimeout?: number
255
256
  proxyBodyTimeout?: number
256
257
  proxyMaxResponseSize?: number
258
+ proxyMaxRetries?: number
257
259
  proxyPreferCompressed?: boolean
258
260
  }
package/src/context.ts CHANGED
@@ -63,7 +63,7 @@ export type AppContextOptions = {
63
63
  moderationAgent?: AtpAgent
64
64
  reportingAgent?: AtpAgent
65
65
  entrywayAgent?: AtpAgent
66
- proxyAgent: undici.Agent
66
+ proxyAgent: undici.Dispatcher
67
67
  safeFetch: Fetch
68
68
  authProvider?: PdsOAuthProvider
69
69
  authVerifier: AuthVerifier
@@ -90,7 +90,7 @@ export class AppContext {
90
90
  public moderationAgent: AtpAgent | undefined
91
91
  public reportingAgent: AtpAgent | undefined
92
92
  public entrywayAgent: AtpAgent | undefined
93
- public proxyAgent: undici.Agent
93
+ public proxyAgent: undici.Dispatcher
94
94
  public safeFetch: Fetch
95
95
  public authVerifier: AuthVerifier
96
96
  public authProvider?: PdsOAuthProvider
@@ -264,7 +264,7 @@ export class AppContext {
264
264
  })
265
265
 
266
266
  // An agent for performing HTTP requests based on user provided URLs.
267
- const proxyAgent = new undici.Agent({
267
+ const proxyAgentBase = new undici.Agent({
268
268
  allowH2: cfg.proxy.allowHTTP2, // This is experimental
269
269
  headersTimeout: cfg.proxy.headersTimeout,
270
270
  maxResponseSize: cfg.proxy.maxResponseSize,
@@ -286,6 +286,14 @@ export class AppContext {
286
286
  lookup: cfg.proxy.disableSsrfProtection ? undefined : unicastLookup,
287
287
  },
288
288
  })
289
+ const proxyAgent =
290
+ cfg.proxy.maxRetries > 0
291
+ ? new undici.RetryAgent(proxyAgentBase, {
292
+ statusCodes: [], // Only retry on socket errors
293
+ methods: ['GET', 'HEAD'],
294
+ maxRetries: cfg.proxy.maxRetries,
295
+ })
296
+ : proxyAgentBase
289
297
 
290
298
  // A fetch() function that protects against SSRF attacks, large responses &
291
299
  // known bad domains. This function can safely be used to fetch user
@@ -180,6 +180,9 @@ import * as ToolsOzoneSetDeleteValues from './types/tools/ozone/set/deleteValues
180
180
  import * as ToolsOzoneSetGetValues from './types/tools/ozone/set/getValues'
181
181
  import * as ToolsOzoneSetQuerySets from './types/tools/ozone/set/querySets'
182
182
  import * as ToolsOzoneSetUpsertSet from './types/tools/ozone/set/upsertSet'
183
+ import * as ToolsOzoneSettingListOptions from './types/tools/ozone/setting/listOptions'
184
+ import * as ToolsOzoneSettingRemoveOptions from './types/tools/ozone/setting/removeOptions'
185
+ import * as ToolsOzoneSettingUpsertOption from './types/tools/ozone/setting/upsertOption'
183
186
  import * as ToolsOzoneSignatureFindCorrelation from './types/tools/ozone/signature/findCorrelation'
184
187
  import * as ToolsOzoneSignatureFindRelatedAccounts from './types/tools/ozone/signature/findRelatedAccounts'
185
188
  import * as ToolsOzoneSignatureSearchAccounts from './types/tools/ozone/signature/searchAccounts'
@@ -2183,6 +2186,7 @@ export class ToolsOzoneNS {
2183
2186
  moderation: ToolsOzoneModerationNS
2184
2187
  server: ToolsOzoneServerNS
2185
2188
  set: ToolsOzoneSetNS
2189
+ setting: ToolsOzoneSettingNS
2186
2190
  signature: ToolsOzoneSignatureNS
2187
2191
  team: ToolsOzoneTeamNS
2188
2192
 
@@ -2192,6 +2196,7 @@ export class ToolsOzoneNS {
2192
2196
  this.moderation = new ToolsOzoneModerationNS(server)
2193
2197
  this.server = new ToolsOzoneServerNS(server)
2194
2198
  this.set = new ToolsOzoneSetNS(server)
2199
+ this.setting = new ToolsOzoneSettingNS(server)
2195
2200
  this.signature = new ToolsOzoneSignatureNS(server)
2196
2201
  this.team = new ToolsOzoneTeamNS(server)
2197
2202
  }
@@ -2449,6 +2454,47 @@ export class ToolsOzoneSetNS {
2449
2454
  }
2450
2455
  }
2451
2456
 
2457
+ export class ToolsOzoneSettingNS {
2458
+ _server: Server
2459
+
2460
+ constructor(server: Server) {
2461
+ this._server = server
2462
+ }
2463
+
2464
+ listOptions<AV extends AuthVerifier>(
2465
+ cfg: ConfigOf<
2466
+ AV,
2467
+ ToolsOzoneSettingListOptions.Handler<ExtractAuth<AV>>,
2468
+ ToolsOzoneSettingListOptions.HandlerReqCtx<ExtractAuth<AV>>
2469
+ >,
2470
+ ) {
2471
+ const nsid = 'tools.ozone.setting.listOptions' // @ts-ignore
2472
+ return this._server.xrpc.method(nsid, cfg)
2473
+ }
2474
+
2475
+ removeOptions<AV extends AuthVerifier>(
2476
+ cfg: ConfigOf<
2477
+ AV,
2478
+ ToolsOzoneSettingRemoveOptions.Handler<ExtractAuth<AV>>,
2479
+ ToolsOzoneSettingRemoveOptions.HandlerReqCtx<ExtractAuth<AV>>
2480
+ >,
2481
+ ) {
2482
+ const nsid = 'tools.ozone.setting.removeOptions' // @ts-ignore
2483
+ return this._server.xrpc.method(nsid, cfg)
2484
+ }
2485
+
2486
+ upsertOption<AV extends AuthVerifier>(
2487
+ cfg: ConfigOf<
2488
+ AV,
2489
+ ToolsOzoneSettingUpsertOption.Handler<ExtractAuth<AV>>,
2490
+ ToolsOzoneSettingUpsertOption.HandlerReqCtx<ExtractAuth<AV>>
2491
+ >,
2492
+ ) {
2493
+ const nsid = 'tools.ozone.setting.upsertOption' // @ts-ignore
2494
+ return this._server.xrpc.method(nsid, cfg)
2495
+ }
2496
+ }
2497
+
2452
2498
  export class ToolsOzoneSignatureNS {
2453
2499
  _server: Server
2454
2500