@atproto/pds 0.4.69 → 0.4.71

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. package/CHANGELOG.md +34 -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 +362 -1
  22. package/dist/lexicon/lexicons.d.ts.map +1 -1
  23. package/dist/lexicon/lexicons.js +406 -5
  24. package/dist/lexicon/lexicons.js.map +1 -1
  25. package/dist/lexicon/types/chat/bsky/convo/defs.d.ts +1 -0
  26. package/dist/lexicon/types/chat/bsky/convo/defs.d.ts.map +1 -1
  27. package/dist/lexicon/types/chat/bsky/convo/defs.js.map +1 -1
  28. package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts +60 -4
  29. package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts.map +1 -1
  30. package/dist/lexicon/types/tools/ozone/moderation/defs.js +50 -0
  31. package/dist/lexicon/types/tools/ozone/moderation/defs.js.map +1 -1
  32. package/dist/lexicon/types/tools/ozone/moderation/emitEvent.d.ts +1 -1
  33. package/dist/lexicon/types/tools/ozone/moderation/emitEvent.d.ts.map +1 -1
  34. package/dist/lexicon/types/tools/ozone/moderation/queryStatuses.d.ts +10 -0
  35. package/dist/lexicon/types/tools/ozone/moderation/queryStatuses.d.ts.map +1 -1
  36. package/dist/lexicon/types/tools/ozone/setting/defs.d.ts +20 -0
  37. package/dist/lexicon/types/tools/ozone/setting/defs.d.ts.map +1 -0
  38. package/dist/lexicon/types/tools/ozone/setting/defs.js +15 -0
  39. package/dist/lexicon/types/tools/ozone/setting/defs.js.map +1 -0
  40. package/dist/lexicon/types/tools/ozone/setting/listOptions.d.ts +43 -0
  41. package/dist/lexicon/types/tools/ozone/setting/listOptions.d.ts.map +1 -0
  42. package/dist/lexicon/types/tools/ozone/setting/listOptions.js +3 -0
  43. package/dist/lexicon/types/tools/ozone/setting/listOptions.js.map +1 -0
  44. package/dist/lexicon/types/tools/ozone/setting/removeOptions.d.ts +40 -0
  45. package/dist/lexicon/types/tools/ozone/setting/removeOptions.d.ts.map +1 -0
  46. package/dist/lexicon/types/tools/ozone/setting/removeOptions.js +3 -0
  47. package/dist/lexicon/types/tools/ozone/setting/removeOptions.js.map +1 -0
  48. package/dist/lexicon/types/tools/ozone/setting/upsertOption.d.ts +45 -0
  49. package/dist/lexicon/types/tools/ozone/setting/upsertOption.d.ts.map +1 -0
  50. package/dist/lexicon/types/tools/ozone/setting/upsertOption.js +3 -0
  51. package/dist/lexicon/types/tools/ozone/setting/upsertOption.js.map +1 -0
  52. package/dist/pipethrough.d.ts +0 -1
  53. package/dist/pipethrough.d.ts.map +1 -1
  54. package/dist/pipethrough.js +11 -10
  55. package/dist/pipethrough.js.map +1 -1
  56. package/dist/read-after-write/viewer.d.ts.map +1 -1
  57. package/dist/read-after-write/viewer.js +1 -0
  58. package/dist/read-after-write/viewer.js.map +1 -1
  59. package/example.env +1 -1
  60. package/package.json +15 -15
  61. package/src/api/app/bsky/feed/getPostThread.ts +15 -4
  62. package/src/config/config.ts +5 -0
  63. package/src/config/env.ts +2 -0
  64. package/src/context.ts +11 -3
  65. package/src/lexicon/index.ts +46 -0
  66. package/src/lexicon/lexicons.ts +417 -5
  67. package/src/lexicon/types/chat/bsky/convo/defs.ts +1 -0
  68. package/src/lexicon/types/tools/ozone/moderation/defs.ts +132 -2
  69. package/src/lexicon/types/tools/ozone/moderation/emitEvent.ts +3 -0
  70. package/src/lexicon/types/tools/ozone/moderation/queryStatuses.ts +10 -0
  71. package/src/lexicon/types/tools/ozone/setting/defs.ts +37 -0
  72. package/src/lexicon/types/tools/ozone/setting/listOptions.ts +53 -0
  73. package/src/lexicon/types/tools/ozone/setting/removeOptions.ts +49 -0
  74. package/src/lexicon/types/tools/ozone/setting/upsertOption.ts +58 -0
  75. package/src/pipethrough.ts +13 -12
  76. package/src/read-after-write/viewer.ts +1 -0
  77. package/tests/proxied/__snapshots__/admin.test.ts.snap +12 -0
  78. package/tests/proxied/proxy-catchall.test.ts +1 -1
  79. package/tests/proxied/read-after-write.test.ts +20 -1
  80. package/tsconfig.build.tsbuildinfo +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"pipethrough.d.ts","sourceRoot":"","sources":["../src/pipethrough.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAA;AAE7B,OAAO,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAA;AAUnD,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,wBAAwB,EAKzB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,UAAU,MAAM,WAAW,CAAA;AAIlC,eAAO,MAAM,YAAY,QAAS,UAAU,KAAG,eA4E9C,CAAA;AAgBD,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAED,wBAAsB,WAAW,CAC/B,GAAG,EAAE,UAAU,EACf,GAAG,EAAE,OAAO,CAAC,OAAO,EACpB,OAAO,CAAC,EAAE,kBAAkB,GAC3B,OAAO,C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G,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAED,wBAAsB,WAAW,CAC/B,GAAG,EAAE,UAAU,EACf,GAAG,EAAE,OAAO,CAAC,OAAO,EACpB,OAAO,CAAC,EAAE,kBAAkB,GAC3B,OAAO,CACR,wBAAwB,GAAG;IACzB,MAAM,EAAE,QAAQ,CAAA;IAChB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,QAAQ,EAAE,MAAM,CAAA;CACjB,CACF,CAwDA;AAqBD,eAAO,MAAM,gBAAgB,QAEtB,IAAI,CAAC,UAAU,EAAE,YAAY,CAAC,WAC1B,MAAM,KACd,OAAO,CAAC;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAoCtC,CAAA;AAuND,wBAAgB,iBAAiB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAG3E;AAyDD,wBAAsB,mBAAmB,CACvC,KAAK,EAAE,wBAAwB,GAC9B,OAAO,CAAC,wBAAwB,CAAC,CASnC;AA2CD,eAAO,MAAM,kBAAkB,aAgB7B,CAAA;AAKF,eAAO,MAAM,iBAAiB,aAgB5B,CAAA"}
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PROTECTED_METHODS = exports.PRIVILEGED_METHODS = exports.parseProxyHeader = exports.proxyHandler = void 0;
4
4
  exports.pipethrough = pipethrough;
5
5
  exports.isJsonContentType = isJsonContentType;
6
- exports.bufferUpstreamResponse = bufferUpstreamResponse;
7
6
  exports.asPipeThroughBuffer = asPipeThroughBuffer;
8
7
  const node_stream_1 = require("node:stream");
9
8
  const common_1 = require("@atproto/common");
@@ -231,8 +230,8 @@ async function pipethroughRequest(ctx, dispatchOptions) {
231
230
  }
232
231
  return upstream;
233
232
  }
234
- function handleUpstreamRequestError(err, message = 'pipethrough network error') {
235
- logger_1.httpLogger.warn({ err }, message);
233
+ function handleUpstreamRequestError(err, message = 'Upstream service unreachable') {
234
+ logger_1.httpLogger.error({ err }, message);
236
235
  throw new xrpc_server_1.XRPCError(xrpc_1.ResponseType.UpstreamFailure, message, undefined, {
237
236
  cause: err,
238
237
  });
@@ -354,10 +353,6 @@ async function tryParsingError(headers, readable) {
354
353
  }
355
354
  async function bufferUpstreamResponse(readable, contentEncoding) {
356
355
  try {
357
- // Needed for type-safety (should never happen irl)
358
- if (Array.isArray(contentEncoding)) {
359
- throw new TypeError('upstream service returned multiple content-encoding headers');
360
- }
361
356
  return await (0, common_1.streamToNodeBuffer)((0, common_1.decodeStream)(readable, contentEncoding));
362
357
  }
363
358
  catch (err) {
@@ -375,7 +370,11 @@ async function asPipeThroughBuffer(input) {
375
370
  }
376
371
  // Response parsing/forwarding
377
372
  // -------------------
378
- const RES_HEADERS_TO_FORWARD = ['atproto-repo-rev', 'atproto-content-labelers'];
373
+ const RES_HEADERS_TO_FORWARD = [
374
+ 'atproto-repo-rev',
375
+ 'atproto-content-labelers',
376
+ 'retry-after',
377
+ ];
379
378
  function* responseHeaders(headers, includeContentHeaders = true) {
380
379
  if (includeContentHeaders) {
381
380
  const length = headers['content-length'];
@@ -394,8 +393,10 @@ function* responseHeaders(headers, includeContentHeaders = true) {
394
393
  for (let i = 0; i < RES_HEADERS_TO_FORWARD.length; i++) {
395
394
  const name = RES_HEADERS_TO_FORWARD[i];
396
395
  const val = headers[name];
397
- if (typeof val === 'string')
398
- yield [name, val];
396
+ if (val != null) {
397
+ const value = Array.isArray(val) ? val.join(',') : val;
398
+ yield [name, value];
399
+ }
399
400
  }
400
401
  }
401
402
  // Utils
@@ -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;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B,CAAA"}
@@ -151,6 +151,7 @@ class LocalViewer {
151
151
  likeCount: 0, // counts presumed to be 0 directly after post creation
152
152
  replyCount: 0,
153
153
  repostCount: 0,
154
+ quoteCount: 0,
154
155
  author,
155
156
  record,
156
157
  embed: embed ?? undefined,
@@ -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;AAE/C,sDAA+D;AAG/D,kDAAyC;AAYzC,mEAG+C;AAC/C,uEAGiD;AACjD,mEAK+C;AAC/C,qFAGwD;AASxD,MAAa,WAAW;IAStB,YAAY,MAOX;QAfD;;;;;WAAW;QACX;;;;;WAA4B;QAC5B;;;;;WAA8B;QAC9B;;;;;WAAmB;QACnB;;;;;WAAuB;QACvB;;;;;WAAmB;QACnB;;;;;WAA6B;QAU3B,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,GAAG,CAAA;QAChC,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,CAAA;QACnC,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,CAAA;IACzD,CAAC;IAED,MAAM,CAAC,OAAO,CAAC,MAMd;QACC,OAAO,CAAC,UAAU,EAAE,EAAE;YACpB,OAAO,IAAI,WAAW,CAAC,EAAE,GAAG,MAAM,EAAE,UAAU,EAAE,CAAC,CAAA;QACnD,CAAC,CAAA;IACH,CAAC;IAED,WAAW,CAAC,OAAyB,EAAE,GAAW;QAChD,IAAI,CAAC,IAAI,CAAC,oB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;QACxD,CAAC;QACD,GAAG,CAAC,KAAK,EAAE,CAAA;QACX,OAAO,GAAG,CAAA;IACZ,CAAC,EACD,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAkB,CACvD,CAAA;AACH,CAAC,CAAA;AA7CY,QAAA,kBAAkB,sBA6C9B"}
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.71",
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.16",
49
+ "@atproto/aws": "^0.2.9",
50
50
  "@atproto/common": "^0.4.4",
51
- "@atproto/crypto": "^0.4.1",
52
- "@atproto/identity": "^0.4.2",
53
- "@atproto/lexicon": "^0.4.2",
54
- "@atproto/oauth-provider": "^0.2.6",
55
- "@atproto/repo": "^0.5.3",
56
- "@atproto/syntax": "^0.3.0",
57
- "@atproto/xrpc": "^0.6.3",
58
- "@atproto/xrpc-server": "^0.7.1"
51
+ "@atproto/crypto": "^0.4.2",
52
+ "@atproto/identity": "^0.4.3",
53
+ "@atproto/lexicon": "^0.4.3",
54
+ "@atproto/oauth-provider": "^0.2.7",
55
+ "@atproto/repo": "^0.5.5",
56
+ "@atproto/syntax": "^0.3.1",
57
+ "@atproto/xrpc": "^0.6.4",
58
+ "@atproto/xrpc-server": "^0.7.3"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@atproto/pds-entryway": "npm:@atproto/pds@0.3.0-entryway.3",
@@ -75,9 +75,9 @@
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",
80
- "@atproto/lex-cli": "^0.5.1",
78
+ "@atproto/api": "^0.13.16",
79
+ "@atproto/bsky": "^0.0.94",
80
+ "@atproto/lex-cli": "^0.5.2",
81
81
  "@atproto/oauth-client-browser-example": "0.0.0"
82
82
  },
83
83
  "scripts": {
@@ -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