@atproto/pds 0.4.18 → 0.4.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/api/app/bsky/actor/getSuggestions.d.ts.map +1 -1
  3. package/dist/api/app/bsky/actor/getSuggestions.js +3 -1
  4. package/dist/api/app/bsky/actor/getSuggestions.js.map +1 -1
  5. package/dist/api/app/bsky/feed/getFeed.d.ts.map +1 -1
  6. package/dist/api/app/bsky/feed/getFeed.js +3 -1
  7. package/dist/api/app/bsky/feed/getFeed.js.map +1 -1
  8. package/dist/api/app/bsky/feed/index.d.ts.map +1 -1
  9. package/dist/api/app/bsky/feed/index.js +2 -0
  10. package/dist/api/app/bsky/feed/index.js.map +1 -1
  11. package/dist/api/app/bsky/feed/sendInteractions.d.ts +4 -0
  12. package/dist/api/app/bsky/feed/sendInteractions.d.ts.map +1 -0
  13. package/dist/api/app/bsky/feed/sendInteractions.js +14 -0
  14. package/dist/api/app/bsky/feed/sendInteractions.js.map +1 -0
  15. package/dist/lexicon/lexicons.d.ts +5 -0
  16. package/dist/lexicon/lexicons.d.ts.map +1 -1
  17. package/dist/lexicon/lexicons.js +5 -1
  18. package/dist/lexicon/lexicons.js.map +1 -1
  19. package/dist/lexicon/types/app/bsky/feed/defs.d.ts +1 -0
  20. package/dist/lexicon/types/app/bsky/feed/defs.d.ts.map +1 -1
  21. package/dist/lexicon/types/app/bsky/feed/defs.js.map +1 -1
  22. package/dist/lexicon/types/tools/ozone/moderation/emitEvent.d.ts +1 -1
  23. package/dist/lexicon/types/tools/ozone/moderation/emitEvent.d.ts.map +1 -1
  24. package/dist/pipethrough.d.ts +10 -2
  25. package/dist/pipethrough.d.ts.map +1 -1
  26. package/dist/pipethrough.js +5 -4
  27. package/dist/pipethrough.js.map +1 -1
  28. package/package.json +4 -4
  29. package/src/api/app/bsky/actor/getSuggestions.ts +3 -1
  30. package/src/api/app/bsky/feed/getFeed.ts +3 -1
  31. package/src/api/app/bsky/feed/index.ts +2 -0
  32. package/src/api/app/bsky/feed/sendInteractions.ts +13 -0
  33. package/src/lexicon/lexicons.ts +6 -1
  34. package/src/lexicon/types/app/bsky/feed/defs.ts +1 -0
  35. package/src/lexicon/types/tools/ozone/moderation/emitEvent.ts +0 -1
  36. package/src/pipethrough.ts +15 -1
  37. package/tests/proxied/__snapshots__/admin.test.ts.snap +2 -0
  38. package/tests/proxied/__snapshots__/views.test.ts.snap +106 -0
@@ -61,6 +61,7 @@ export interface ReplyRef {
61
61
  $type: string;
62
62
  [k: string]: unknown;
63
63
  };
64
+ grandparentAuthor?: AppBskyActorDefs.ProfileViewBasic;
64
65
  [k: string]: unknown;
65
66
  }
66
67
  export declare function isReplyRef(v: unknown): v is ReplyRef;
@@ -1 +1 @@
1
- {"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAI5D,OAAO,KAAK,gBAAgB,MAAM,eAAe,CAAA;AACjD,OAAO,KAAK,kBAAkB,MAAM,iBAAiB,CAAA;AACrD,OAAO,KAAK,oBAAoB,MAAM,mBAAmB,CAAA;AACzD,OAAO,KAAK,kBAAkB,MAAM,iBAAiB,CAAA;AACrD,OAAO,KAAK,2BAA2B,MAAM,0BAA0B,CAAA;AACvE,OAAO,KAAK,mBAAmB,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,oBAAoB,MAAM,mBAAmB,CAAA;AACzD,OAAO,KAAK,gBAAgB,MAAM,eAAe,CAAA;AAEjD,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,gBAAgB,CAAC,gBAAgB,CAAA;IACzC,MAAM,EAAE,EAAE,CAAA;IACV,KAAK,CAAC,EACF,kBAAkB,CAAC,IAAI,GACvB,oBAAoB,CAAC,IAAI,GACzB,kBAAk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gC,GAChC,gCAAgC,GAChC,qCAAqC,GACrC,uCAAuC,GACvC,yCAAyC,GACzC,sCAAsC,GACtC,oCAAoC,GACpC,oCAAoC,GACpC,sCAAsC,GACtC,qCAAqC,GACrC,qCAAqC,GACrC,qCAAqC,GACrC,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACjB,mGAAmG;IACnG,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,WAAW,CAM1D;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAEhE;AAED,8EAA8E;AAC9E,eAAO,MAAM,WAAW,mCAAmC,CAAA;AAC3D,8EAA8E;AAC9E,eAAO,MAAM,WAAW,mCAAmC,CAAA;AAC3D,4CAA4C;AAC5C,eAAO,MAAM,gBAAgB,wCAAwC,CAAA;AACrE,0DAA0D;AAC1D,eAAO,MAAM,kBAAkB,0CAA0C,CAAA;AACzE,4DAA4D;AAC5D,eAAO,MAAM,oBAAoB,4CAA4C,CAAA;AAC7E,oEAAoE;AACpE,eAAO,MAAM,iBAAiB,yCAAyC,CAAA;AACvE,iCAAiC;AACjC,eAAO,MAAM,eAAe,uCAAuC,CAAA;AACnE,+BAA+B;AAC/B,eAAO,MAAM,eAAe,uCAAuC,CAAA;AACnE,kCAAkC;AAClC,eAAO,MAAM,iBAAiB,yCAAyC,CAAA;AACvE,oCAAoC;AACpC,eAAO,MAAM,gBAAgB,wCAAwC,CAAA;AACrE,gCAAgC;AAChC,eAAO,MAAM,gBAAgB,wCAAwC,CAAA;AACrE,gCAAgC;AAChC,eAAO,MAAM,gBAAgB,wCAAwC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/defs.ts"],"names":[],"mappings":";;;AAIA,mDA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G,sCAAsC,CAAA;AACvE,iCAAiC;AACpB,QAAA,eAAe,GAAG,oCAAoC,CAAA;AACnE,+BAA+B;AAClB,QAAA,eAAe,GAAG,oCAAoC,CAAA;AACnE,kCAAkC;AACrB,QAAA,iBAAiB,GAAG,sCAAsC,CAAA;AACvE,oCAAoC;AACvB,QAAA,gBAAgB,GAAG,qCAAqC,CAAA;AACrE,gCAAgC;AACnB,QAAA,gBAAgB,GAAG,qCAAqC,CAAA;AACrE,gCAAgC;AACnB,QAAA,gBAAgB,GAAG,qCAAqC,CAAA"}
@@ -9,7 +9,7 @@ import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
9
9
  export interface QueryParams {
10
10
  }
11
11
  export interface InputSchema {
12
- event: ToolsOzoneModerationDefs.ModEventTakedown | ToolsOzoneModerationDefs.ModEventAcknowledge | ToolsOzoneModerationDefs.ModEventEscalate | ToolsOzoneModerationDefs.ModEventComment | ToolsOzoneModerationDefs.ModEventLabel | ToolsOzoneModerationDefs.ModEventReport | ToolsOzoneModerationDefs.ModEventMute | ToolsOzoneModerationDefs.ModEventUnmute | ToolsOzoneModerationDefs.ModEventMuteReporter | ToolsOzoneModerationDefs.ModEventUnmuteReporter | ToolsOzoneModerationDefs.ModEventReverseTakedown | ToolsOzoneModerationDefs.ModEventUnmute | ToolsOzoneModerationDefs.ModEventEmail | ToolsOzoneModerationDefs.ModEventTag | {
12
+ event: ToolsOzoneModerationDefs.ModEventTakedown | ToolsOzoneModerationDefs.ModEventAcknowledge | ToolsOzoneModerationDefs.ModEventEscalate | ToolsOzoneModerationDefs.ModEventComment | ToolsOzoneModerationDefs.ModEventLabel | ToolsOzoneModerationDefs.ModEventReport | ToolsOzoneModerationDefs.ModEventMute | ToolsOzoneModerationDefs.ModEventUnmute | ToolsOzoneModerationDefs.ModEventMuteReporter | ToolsOzoneModerationDefs.ModEventUnmuteReporter | ToolsOzoneModerationDefs.ModEventReverseTakedown | ToolsOzoneModerationDefs.ModEventEmail | ToolsOzoneModerationDefs.ModEventTag | {
13
13
  $type: string;
14
14
  [k: string]: unknown;
15
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"emitEvent.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/moderation/emitEvent.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAO,KAAK,wBAAwB,MAAM,QAAQ,CAAA;AAClD,OAAO,KAAK,mBAAmB,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,uBAAuB,MAAM,qCAAqC,CAAA;AAE9E,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,WAAW,WAAW;IAC1B,KAAK,EACD,wBAAwB,CAAC,gBAAgB,GACzC,wBAAwB,CAAC,mBAAmB,GAC5C,wBAAwB,CAAC,gBAAgB,GACzC,wBAAwB,CAAC,eAAe,GACxC,wBAAwB,CAAC,aAAa,GACtC,wBAAwB,CAAC,cAAc,GACvC,wBAAwB,CAAC,YAAY,GACrC,wBAAwB,CAAC,cAAc,GACvC,wBAAwB,CAAC,oBAAoB,GAC7C,wBAAwB,CAAC,sBAAsB,GAC/C,wBAAwB,CAAC,uBAAuB,GAChD,wBAAwB,CAAC,cAAc,GACvC,wBAAwB,CAAC,aAAa,GACtC,wBAAwB,CAAC,WAAW,GACpC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAA;IAC3C,OAAO,EACH,mBAAmB,CAAC,OAAO,GAC3B,uBAAuB,CAAC,IAAI,GAC5B;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAA;IAC3C,eAAe,CAAC,EAAE,MAAM,EAAE,CAAA;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,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M,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,kBAAkB,CAAA;CAC3B;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,MAAM,MAAM,OAAO,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI,CACpD,GAAG,EAAE,aAAa,CAAC,EAAE,CAAC,KACnB,OAAO,CAAC,aAAa,CAAC,GAAG,aAAa,CAAA"}
@@ -4,7 +4,14 @@ import express from 'express';
4
4
  import { LexValue } from '@atproto/lexicon';
5
5
  import { HandlerPipeThrough } from '@atproto/xrpc-server';
6
6
  import AppContext from './context';
7
- export declare const pipethrough: (ctx: AppContext, req: express.Request, requester?: string, audOverride?: string) => Promise<HandlerPipeThrough>;
7
+ type PipethroughOptions = {
8
+ /**
9
+ * Request headers to pass-through, in addition to those defined in
10
+ * {@link REQ_HEADERS_TO_FORWARD}
11
+ */
12
+ reqHeadersToForward?: string[];
13
+ };
14
+ export declare const pipethrough: (ctx: AppContext, req: express.Request, requester?: string, audOverride?: string, options?: PipethroughOptions) => Promise<HandlerPipeThrough>;
8
15
  export declare const pipethroughProcedure: (ctx: AppContext, req: express.Request, body: LexValue, requester?: string, audOverride?: string) => Promise<{
9
16
  encoding: string;
10
17
  buffer: ArrayBuffer;
@@ -14,7 +21,7 @@ export declare const parseProxyHeader: (ctx: AppContext, req: express.Request) =
14
21
  did: string;
15
22
  serviceUrl: string;
16
23
  } | undefined>;
17
- export declare const createUrlAndHeaders: (ctx: AppContext, req: express.Request, requester?: string, audOverride?: string) => Promise<{
24
+ export declare const createUrlAndHeaders: (ctx: AppContext, req: express.Request, requester?: string, audOverride?: string, options?: PipethroughOptions) => Promise<{
18
25
  url: URL;
19
26
  headers: {
20
27
  authorization?: string;
@@ -26,4 +33,5 @@ export declare const doProxy: (url: URL, reqInit: RequestInit) => Promise<{
26
33
  headers: Record<string, string>;
27
34
  }>;
28
35
  export declare const parseRes: <T>(nsid: string, res: HandlerPipeThrough) => T;
36
+ export {};
29
37
  //# sourceMappingURL=pipethrough.d.ts.map
@@ -1 +1 @@
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,KACnB,QAAQ;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAgBzD,CAAA;AAQD,eAAO,MAAM,mBAAmB,QACzB,UAAU,OACV,eAAe,cACR,MAAM,gBACJ,MAAM,KACnB,QAAQ;IAAE,GAAG,EAAE,GAAG,CAAC;IAAC,OAAO,EAAE;QAAE,aAAa,CAAC,EAAE,MAAM,CAAA;KAA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kB,KAAG,CAKnE,CAAA"}
@@ -56,8 +56,8 @@ const defaultService = (ctx, path) => {
56
56
  return ctx.cfg.bskyAppView;
57
57
  }
58
58
  };
59
- const pipethrough = async (ctx, req, requester, audOverride) => {
60
- const { url, headers } = await (0, exports.createUrlAndHeaders)(ctx, req, requester, audOverride);
59
+ const pipethrough = async (ctx, req, requester, audOverride, options) => {
60
+ const { url, headers } = await (0, exports.createUrlAndHeaders)(ctx, req, requester, audOverride, options);
61
61
  const reqInit = {
62
62
  headers,
63
63
  };
@@ -99,7 +99,7 @@ const REQ_HEADERS_TO_FORWARD = [
99
99
  'content-type',
100
100
  'atproto-accept-labelers',
101
101
  ];
102
- const createUrlAndHeaders = async (ctx, req, requester, audOverride) => {
102
+ const createUrlAndHeaders = async (ctx, req, requester, audOverride, options) => {
103
103
  const proxyTo = await (0, exports.parseProxyHeader)(ctx, req);
104
104
  const defaultProxy = defaultService(ctx, req.path);
105
105
  const serviceUrl = proxyTo?.serviceUrl ?? defaultProxy?.url;
@@ -114,8 +114,9 @@ const createUrlAndHeaders = async (ctx, req, requester, audOverride) => {
114
114
  const headers = requester
115
115
  ? (await ctx.serviceAuthHeaders(requester, aud)).headers
116
116
  : {};
117
+ const allowedHeaders = REQ_HEADERS_TO_FORWARD.concat(options?.reqHeadersToForward ?? []);
117
118
  // forward select headers to upstream services
118
- for (const header of REQ_HEADERS_TO_FORWARD) {
119
+ for (const header of allowedHeaders) {
119
120
  const val = req.headers[header];
120
121
  if (val) {
121
122
  headers[header] = val;
@@ -1 +1 @@
1
- {"version":3,"file":"pipethrough.js","sourceRoot":"","sources":["../src/pipethrough.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,iDAAkC;AAClC,wDAA0B;AAC1B,8CAAoE;AACpE,sDAA8E;AAC9E,wCAAuD;AACvD,iDAAkD;AAClD,qCAAqC;AACrC,4CAAqE;AAGrE,MAAM,cAAc,GAAG,CACrB,GAAe,EACf,IAAY,EACyB,EA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nC,OAAO,mBAAQ,CAAC,qBAAqB,CAAC,IAAI,EAAE,GAAG,CAAM,CAAA;AACvD,CAAC,CAAA;AALY,QAAA,QAAQ,YAKpB;AAED,MAAM,UAAU,GAAG,CAAC,GAAW,EAAsB,EAAE;IACrD,OAAO,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAA;AAClD,CAAC,CAAA;AAED,MAAM,aAAa,GAAG,CAAC,IAAY,EAAW,EAAE;IAC9C,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IACzB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAA;IACb,CAAC;AACH,CAAC,CAAA;AAED,MAAM,aAAa,GAAG,CAAC,OAAgB,EAA0B,EAAE;IACjE,MAAM,MAAM,GAAG,EAAE,CAAA;IACjB,KAAK,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,OAAO,EAAE,CAAC;QACjC,MAAM,CAAC,GAAG,CAAC,GAAG,GAAG,CAAA;IACnB,CAAC;IACD,OAAO,MAAM,CAAA;AACf,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/pds",
3
- "version": "0.4.18",
3
+ "version": "0.4.20",
4
4
  "license": "MIT",
5
5
  "description": "Reference implementation of atproto Personal Data Server (PDS)",
6
6
  "keywords": [
@@ -43,7 +43,7 @@
43
43
  "typed-emitter": "^2.1.0",
44
44
  "uint8arrays": "3.0.0",
45
45
  "zod": "^3.21.4",
46
- "@atproto/api": "^0.12.7",
46
+ "@atproto/api": "^0.12.9",
47
47
  "@atproto/aws": "^0.2.0",
48
48
  "@atproto/common": "^0.4.0",
49
49
  "@atproto/crypto": "^0.4.0",
@@ -70,8 +70,8 @@
70
70
  "jest": "^28.1.2",
71
71
  "ts-node": "^10.8.2",
72
72
  "ws": "^8.12.0",
73
- "@atproto/api": "^0.12.7",
74
- "@atproto/bsky": "^0.0.49",
73
+ "@atproto/api": "^0.12.9",
74
+ "@atproto/bsky": "^0.0.51",
75
75
  "@atproto/lex-cli": "^0.4.0"
76
76
  },
77
77
  "scripts": {
@@ -9,7 +9,9 @@ export default function (server: Server, ctx: AppContext) {
9
9
  auth: ctx.authVerifier.access,
10
10
  handler: async ({ req, auth }) => {
11
11
  const requester = auth.credentials.did
12
- return pipethrough(ctx, req, requester)
12
+ return pipethrough(ctx, req, requester, undefined, {
13
+ reqHeadersToForward: ['x-bsky-topics'],
14
+ })
13
15
  },
14
16
  })
15
17
  }
@@ -16,7 +16,9 @@ export default function (server: Server, ctx: AppContext) {
16
16
  { feed: params.feed },
17
17
  await ctx.appviewAuthHeaders(requester),
18
18
  )
19
- return pipethrough(ctx, req, requester, feed.view.did)
19
+ return pipethrough(ctx, req, requester, feed.view.did, {
20
+ reqHeadersToForward: ['x-bsky-topics'],
21
+ })
20
22
  },
21
23
  })
22
24
  }
@@ -14,6 +14,7 @@ import getRepostedBy from './getRepostedBy'
14
14
  import getSuggestedFeeds from './getSuggestedFeeds'
15
15
  import getTimeline from './getTimeline'
16
16
  import searchPosts from './searchPosts'
17
+ import sendInteractions from './sendInteractions'
17
18
 
18
19
  export default function (server: Server, ctx: AppContext) {
19
20
  getActorFeeds(server, ctx)
@@ -30,4 +31,5 @@ export default function (server: Server, ctx: AppContext) {
30
31
  getSuggestedFeeds(server, ctx)
31
32
  getTimeline(server, ctx)
32
33
  searchPosts(server, ctx)
34
+ sendInteractions(server, ctx)
33
35
  }
@@ -0,0 +1,13 @@
1
+ import { Server } from '../../../../lexicon'
2
+ import AppContext from '../../../../context'
3
+ import { pipethroughProcedure } from '../../../../pipethrough'
4
+
5
+ export default function (server: Server, ctx: AppContext) {
6
+ server.app.bsky.feed.sendInteractions({
7
+ auth: ctx.authVerifier.access,
8
+ handler: async ({ input, auth, req }) => {
9
+ const requester = auth.credentials.did
10
+ return pipethroughProcedure(ctx, req, input.body, requester)
11
+ },
12
+ })
13
+ }
@@ -4833,6 +4833,12 @@ export const schemaDict = {
4833
4833
  'lex:app.bsky.feed.defs#blockedPost',
4834
4834
  ],
4835
4835
  },
4836
+ grandparentAuthor: {
4837
+ type: 'ref',
4838
+ ref: 'lex:app.bsky.actor.defs#profileViewBasic',
4839
+ description:
4840
+ 'When parent is a reply to another post, this is the author of that post.',
4841
+ },
4836
4842
  },
4837
4843
  },
4838
4844
  reasonRepost: {
@@ -9164,7 +9170,6 @@ export const schemaDict = {
9164
9170
  'lex:tools.ozone.moderation.defs#modEventMuteReporter',
9165
9171
  'lex:tools.ozone.moderation.defs#modEventUnmuteReporter',
9166
9172
  'lex:tools.ozone.moderation.defs#modEventReverseTakedown',
9167
- 'lex:tools.ozone.moderation.defs#modEventUnmute',
9168
9173
  'lex:tools.ozone.moderation.defs#modEventEmail',
9169
9174
  'lex:tools.ozone.moderation.defs#modEventTag',
9170
9175
  ],
@@ -97,6 +97,7 @@ export interface ReplyRef {
97
97
  | NotFoundPost
98
98
  | BlockedPost
99
99
  | { $type: string; [k: string]: unknown }
100
+ grandparentAuthor?: AppBskyActorDefs.ProfileViewBasic
100
101
  [k: string]: unknown
101
102
  }
102
103
 
@@ -26,7 +26,6 @@ export interface InputSchema {
26
26
  | ToolsOzoneModerationDefs.ModEventMuteReporter
27
27
  | ToolsOzoneModerationDefs.ModEventUnmuteReporter
28
28
  | ToolsOzoneModerationDefs.ModEventReverseTakedown
29
- | ToolsOzoneModerationDefs.ModEventUnmute
30
29
  | ToolsOzoneModerationDefs.ModEventEmail
31
30
  | ToolsOzoneModerationDefs.ModEventTag
32
31
  | { $type: string; [k: string]: unknown }
@@ -9,6 +9,14 @@ import { httpLogger } from './logger'
9
9
  import { getServiceEndpoint, noUndefinedVals } from '@atproto/common'
10
10
  import AppContext from './context'
11
11
 
12
+ type PipethroughOptions = {
13
+ /**
14
+ * Request headers to pass-through, in addition to those defined in
15
+ * {@link REQ_HEADERS_TO_FORWARD}
16
+ */
17
+ reqHeadersToForward?: string[]
18
+ }
19
+
12
20
  const defaultService = (
13
21
  ctx: AppContext,
14
22
  path: string,
@@ -39,12 +47,14 @@ export const pipethrough = async (
39
47
  req: express.Request,
40
48
  requester?: string,
41
49
  audOverride?: string,
50
+ options?: PipethroughOptions,
42
51
  ): Promise<HandlerPipeThrough> => {
43
52
  const { url, headers } = await createUrlAndHeaders(
44
53
  ctx,
45
54
  req,
46
55
  requester,
47
56
  audOverride,
57
+ options,
48
58
  )
49
59
  const reqInit: RequestInit = {
50
60
  headers,
@@ -106,6 +116,7 @@ export const createUrlAndHeaders = async (
106
116
  req: express.Request,
107
117
  requester?: string,
108
118
  audOverride?: string,
119
+ options?: PipethroughOptions,
109
120
  ): Promise<{ url: URL; headers: { authorization?: string } }> => {
110
121
  const proxyTo = await parseProxyHeader(ctx, req)
111
122
  const defaultProxy = defaultService(ctx, req.path)
@@ -121,8 +132,11 @@ export const createUrlAndHeaders = async (
121
132
  const headers = requester
122
133
  ? (await ctx.serviceAuthHeaders(requester, aud)).headers
123
134
  : {}
135
+ const allowedHeaders = REQ_HEADERS_TO_FORWARD.concat(
136
+ options?.reqHeadersToForward ?? [],
137
+ )
124
138
  // forward select headers to upstream services
125
- for (const header of REQ_HEADERS_TO_FORWARD) {
139
+ for (const header of allowedHeaders) {
126
140
  const val = req.headers[header]
127
141
  if (val) {
128
142
  headers[header] = val
@@ -64,6 +64,7 @@ Array [
64
64
  Object {
65
65
  "createdAt": "1970-01-01T00:00:00.000Z",
66
66
  "createdBy": "user(3)",
67
+ "creatorHandle": "mod-authority.test",
67
68
  "event": Object {
68
69
  "$type": "tools.ozone.moderation.defs#modEventTag",
69
70
  "add": Array [
@@ -166,6 +167,7 @@ Array [
166
167
  Object {
167
168
  "createdAt": "1970-01-01T00:00:00.000Z",
168
169
  "createdBy": "user(0)",
170
+ "creatorHandle": "mod-authority.test",
169
171
  "event": Object {
170
172
  "$type": "tools.ozone.moderation.defs#modEventTag",
171
173
  "add": Array [
@@ -203,6 +203,21 @@ Array [
203
203
  "muted": false,
204
204
  },
205
205
  },
206
+ Object {
207
+ "associated": Object {
208
+ "labeler": true,
209
+ },
210
+ "description": "The pretend version of mod.bsky.app",
211
+ "did": "user(6)",
212
+ "displayName": "Dev-env Moderation",
213
+ "handle": "mod-authority.test",
214
+ "indexedAt": "1970-01-01T00:00:00.000Z",
215
+ "labels": Array [],
216
+ "viewer": Object {
217
+ "blockedBy": false,
218
+ "muted": false,
219
+ },
220
+ },
206
221
  ]
207
222
  `;
208
223
 
@@ -275,6 +290,19 @@ Array [
275
290
  "muted": false,
276
291
  },
277
292
  },
293
+ Object {
294
+ "associated": Object {
295
+ "labeler": true,
296
+ },
297
+ "did": "user(6)",
298
+ "displayName": "Dev-env Moderation",
299
+ "handle": "mod-authority.test",
300
+ "labels": Array [],
301
+ "viewer": Object {
302
+ "blockedBy": false,
303
+ "muted": false,
304
+ },
305
+ },
278
306
  ]
279
307
  `;
280
308
 
@@ -709,6 +737,32 @@ Object {
709
737
  "viewer": Object {},
710
738
  },
711
739
  "reply": Object {
740
+ "grandparentAuthor": Object {
741
+ "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
742
+ "did": "user(0)",
743
+ "displayName": "ali",
744
+ "handle": "alice.test",
745
+ "labels": Array [
746
+ Object {
747
+ "cid": "cids(2)",
748
+ "cts": "1970-01-01T00:00:00.000Z",
749
+ "src": "user(0)",
750
+ "uri": "record(1)",
751
+ "val": "self-label-a",
752
+ },
753
+ Object {
754
+ "cid": "cids(2)",
755
+ "cts": "1970-01-01T00:00:00.000Z",
756
+ "src": "user(0)",
757
+ "uri": "record(1)",
758
+ "val": "self-label-b",
759
+ },
760
+ ],
761
+ "viewer": Object {
762
+ "blockedBy": false,
763
+ "muted": false,
764
+ },
765
+ },
712
766
  "parent": Object {
713
767
  "$type": "app.bsky.feed.defs#postView",
714
768
  "author": Object {
@@ -1567,6 +1621,32 @@ Object {
1567
1621
  "indexedAt": "1970-01-01T00:00:00.000Z",
1568
1622
  },
1569
1623
  "reply": Object {
1624
+ "grandparentAuthor": Object {
1625
+ "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
1626
+ "did": "user(0)",
1627
+ "displayName": "ali",
1628
+ "handle": "alice.test",
1629
+ "labels": Array [
1630
+ Object {
1631
+ "cid": "cids(2)",
1632
+ "cts": "1970-01-01T00:00:00.000Z",
1633
+ "src": "user(0)",
1634
+ "uri": "record(1)",
1635
+ "val": "self-label-a",
1636
+ },
1637
+ Object {
1638
+ "cid": "cids(2)",
1639
+ "cts": "1970-01-01T00:00:00.000Z",
1640
+ "src": "user(0)",
1641
+ "uri": "record(1)",
1642
+ "val": "self-label-b",
1643
+ },
1644
+ ],
1645
+ "viewer": Object {
1646
+ "blockedBy": false,
1647
+ "muted": false,
1648
+ },
1649
+ },
1570
1650
  "parent": Object {
1571
1651
  "$type": "app.bsky.feed.defs#postView",
1572
1652
  "author": Object {
@@ -1982,6 +2062,32 @@ Object {
1982
2062
  "viewer": Object {},
1983
2063
  },
1984
2064
  "reply": Object {
2065
+ "grandparentAuthor": Object {
2066
+ "avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(1)@jpeg",
2067
+ "did": "user(0)",
2068
+ "displayName": "ali",
2069
+ "handle": "alice.test",
2070
+ "labels": Array [
2071
+ Object {
2072
+ "cid": "cids(2)",
2073
+ "cts": "1970-01-01T00:00:00.000Z",
2074
+ "src": "user(0)",
2075
+ "uri": "record(1)",
2076
+ "val": "self-label-a",
2077
+ },
2078
+ Object {
2079
+ "cid": "cids(2)",
2080
+ "cts": "1970-01-01T00:00:00.000Z",
2081
+ "src": "user(0)",
2082
+ "uri": "record(1)",
2083
+ "val": "self-label-b",
2084
+ },
2085
+ ],
2086
+ "viewer": Object {
2087
+ "blockedBy": false,
2088
+ "muted": false,
2089
+ },
2090
+ },
1985
2091
  "parent": Object {
1986
2092
  "$type": "app.bsky.feed.defs#postView",
1987
2093
  "author": Object {