@atproto/pds 0.4.82 → 0.4.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,6 +12,8 @@ export type InputSchema = undefined;
12
12
  export interface OutputSchema {
13
13
  cursor?: string;
14
14
  actors: AppBskyActorDefs.ProfileView[];
15
+ /** Snowflake for this recommendation, use when submitting recommendation events. */
16
+ recId?: number;
15
17
  [k: string]: unknown;
16
18
  }
17
19
  export type HandlerInput = undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"getSuggestions.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/actor/getSuggestions.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAO,KAAK,gBAAgB,MAAM,QAAQ,CAAA;AAE1C,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,gBAAgB,CAAC,WAAW,EAAE,CAAA;IACtC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,MAAM,YAAY,GAAG,SAAS,CAAA;AAEpC,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa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AAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,GAAG,kBAAkB,CAAA;AAC9E,MAAM,MAAM,aAAa,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI;IAC1D,IAAI,EAAE,EAAE,CAAA;IACR,MAAM,EAAE,WAAW,CAAA;IACnB,KAAK,EAAE,YAAY,CAAA;IACnB,GAAG,EAAE,OAAO,CAAC,OAAO,CAAA;IACpB,GAAG,EAAE,OAAO,CAAC,QAAQ,CAAA;CACtB,CAAA;AACD,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"}
@@ -12,6 +12,8 @@ export interface OutputSchema {
12
12
  suggestions: AppBskyActorDefs.ProfileView[];
13
13
  /** If true, response has fallen-back to generic results, and is not scoped using relativeToDid */
14
14
  isFallback?: boolean;
15
+ /** Snowflake for this recommendation, use when submitting recommendation events. */
16
+ recId?: number;
15
17
  [k: string]: unknown;
16
18
  }
17
19
  export type HandlerInput = undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"getSuggestedFollowsByActor.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAO,KAAK,gBAAgB,MAAM,eAAe,CAAA;AAEjD,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,gBAAgB,CAAC,WAAW,EAAE,CAAA;IAC3C,kGAAkG;IAClG,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,MAAM,YAAY,GAAG,SAAS,CAAA;AAEpC,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,GAAG,kBAAkB,CAAA;AAC9E,MAAM,MAAM,aAAa,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI;IAC1D,IAAI,EAAE,EAAE,CAAA;IACR,MAAM,EAAE,WAAW,CAAA;IACnB,KAAK,EAAE,YAAY,CAAA;IACnB,GAAG,EAAE,OAAO,CAAC,OAAO,CAAA;IACpB,GAAG,EAAE,OAAO,CAAC,QAAQ,CAAA;CACtB,CAAA;AACD,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"}
1
+ {"version":3,"file":"getSuggestedFollowsByActor.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM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ors: AppBskyUnspeccedDefs.SkeletonSearchActor[];
19
19
  /** DID of the account these suggestions are relative to. If this is returned undefined, suggestions are based on the viewer. */
20
20
  relativeToDid?: string;
21
+ /** Snowflake for this recommendation, use when submitting recommendation events. */
22
+ recId?: number;
21
23
  [k: string]: unknown;
22
24
  }
23
25
  export type HandlerInput = undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"getSuggestionsSkeleton.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/unspecced/getSuggestionsSkeleton.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAO,KAAK,oBAAoB,MAAM,QAAQ,CAAA;AAE9C,MAAM,WAAW,WAAW;IAC1B,2IAA2I;IAC3I,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,mHAAmH;IACnH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,oBAAoB,CAAC,mBAAmB,EAAE,CAAA;IAClD,gIAAgI;IAChI,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,MAAM,YAAY,GAAG,SAAS,CAAA;AAEpC,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,GAAG,kBAAkB,CAAA;AAC9E,MAAM,MAAM,aAAa,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI;IAC1D,IAAI,EAAE,EAAE,CAAA;IACR,MAAM,EAAE,WAAW,CAAA;IACnB,KAAK,EAAE,YAAY,CAAA;IACnB,GAAG,EAAE,OAAO,CAAC,OAAO,CAAA;IACpB,GAAG,EAAE,OAAO,CAAC,QAAQ,CAAA;CACtB,CAAA;AACD,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"}
1
+ {"version":3,"file":"getSuggestionsSkeleton.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/unspecced/getSuggestionsSkeleton.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAO,KAAK,oBAAoB,MAAM,QAAQ,CAAA;AAE9C,MAAM,WAAW,WAAW;IAC1B,2IAA2I;IAC3I,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,mHAAmH;IACnH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,oBAAoB,CAAC,mBAAmB,EAAE,CAAA;IAClD,gIAAgI;IAChI,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,oFAAoF;IACpF,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,MAAM,YAAY,GAAG,SAAS,CAAA;AAEpC,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,GAAG,kBAAkB,CAAA;AAC9E,MAAM,MAAM,aAAa,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI;IAC1D,IAAI,EAAE,EAAE,CAAA;IACR,MAAM,EAAE,WAAW,CAAA;IACnB,KAAK,EAAE,YAAY,CAAA;IACnB,GAAG,EAAE,OAAO,CAAC,OAAO,CAAA;IACpB,GAAG,EAAE,OAAO,CAAC,QAAQ,CAAA;CACtB,CAAA;AACD,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"}
@@ -14,12 +14,12 @@ export declare const commitEvtOp: z.ZodObject<{
14
14
  path: z.ZodString;
15
15
  cid: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, CID, any>>;
16
16
  }, "strip", z.ZodTypeAny, {
17
+ path: string;
17
18
  cid: CID | null;
18
19
  action: "create" | "update" | "delete";
19
- path: string;
20
20
  }, {
21
- action: "create" | "update" | "delete";
22
21
  path: string;
22
+ action: "create" | "update" | "delete";
23
23
  cid?: any;
24
24
  }>;
25
25
  export type CommitEvtOp = z.infer<typeof commitEvtOp>;
@@ -37,12 +37,12 @@ export declare const commitEvt: z.ZodObject<{
37
37
  path: z.ZodString;
38
38
  cid: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, CID, any>>;
39
39
  }, "strip", z.ZodTypeAny, {
40
+ path: string;
40
41
  cid: CID | null;
41
42
  action: "create" | "update" | "delete";
42
- path: string;
43
43
  }, {
44
- action: "create" | "update" | "delete";
45
44
  path: string;
45
+ action: "create" | "update" | "delete";
46
46
  cid?: any;
47
47
  }>, "many">;
48
48
  blobs: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, CID, any>, "many">;
@@ -56,9 +56,9 @@ export declare const commitEvt: z.ZodObject<{
56
56
  tooBig: boolean;
57
57
  blocks: Uint8Array;
58
58
  ops: {
59
+ path: string;
59
60
  cid: CID | null;
60
61
  action: "create" | "update" | "delete";
61
- path: string;
62
62
  }[];
63
63
  prev: CID | null;
64
64
  }, {
@@ -70,8 +70,8 @@ export declare const commitEvt: z.ZodObject<{
70
70
  tooBig: boolean;
71
71
  blocks: Uint8Array;
72
72
  ops: {
73
- action: "create" | "update" | "delete";
74
73
  path: string;
74
+ action: "create" | "update" | "delete";
75
75
  cid?: any;
76
76
  }[];
77
77
  commit?: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/pds",
3
- "version": "0.4.82",
3
+ "version": "0.4.84",
4
4
  "license": "MIT",
5
5
  "description": "Reference implementation of atproto Personal Data Server (PDS)",
6
6
  "keywords": [
@@ -45,19 +45,19 @@
45
45
  "uint8arrays": "3.0.0",
46
46
  "undici": "^6.19.8",
47
47
  "zod": "^3.23.8",
48
- "@atproto-labs/xrpc-utils": "0.0.1",
49
- "@atproto-labs/fetch-node": "0.1.4",
50
- "@atproto/api": "^0.13.26",
51
- "@atproto/aws": "^0.2.11",
48
+ "@atproto-labs/fetch-node": "0.1.5",
49
+ "@atproto-labs/xrpc-utils": "0.0.2",
50
+ "@atproto/api": "^0.13.27",
51
+ "@atproto/aws": "^0.2.12",
52
52
  "@atproto/common": "^0.4.6",
53
- "@atproto/crypto": "^0.4.2",
54
- "@atproto/identity": "^0.4.4",
53
+ "@atproto/crypto": "^0.4.3",
54
+ "@atproto/identity": "^0.4.5",
55
55
  "@atproto/lexicon": "^0.4.5",
56
- "@atproto/oauth-provider": "^0.2.11",
57
- "@atproto/repo": "^0.6.1",
56
+ "@atproto/oauth-provider": "^0.2.12",
57
+ "@atproto/repo": "^0.6.2",
58
58
  "@atproto/syntax": "^0.3.1",
59
59
  "@atproto/xrpc": "^0.6.6",
60
- "@atproto/xrpc-server": "^0.7.5"
60
+ "@atproto/xrpc-server": "^0.7.6"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@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.26",
79
- "@atproto/bsky": "^0.0.104",
78
+ "@atproto/api": "^0.13.27",
79
+ "@atproto/bsky": "^0.0.106",
80
80
  "@atproto/lex-cli": "^0.5.5",
81
81
  "@atproto/oauth-client-browser-example": "0.0.0"
82
82
  },
@@ -12359,7 +12359,7 @@ export const schemaDict = {
12359
12359
  items: {
12360
12360
  type: 'string',
12361
12361
  description:
12362
- 'If specified, only events where the policy matches the given policy are returned',
12362
+ 'If specified, only events where the action policies match any of the given policies are returned',
12363
12363
  },
12364
12364
  },
12365
12365
  cursor: {
@@ -19,6 +19,8 @@ export type InputSchema = undefined
19
19
  export interface OutputSchema {
20
20
  cursor?: string
21
21
  actors: AppBskyActorDefs.ProfileView[]
22
+ /** Snowflake for this recommendation, use when submitting recommendation events. */
23
+ recId?: number
22
24
  [k: string]: unknown
23
25
  }
24
26
 
@@ -19,6 +19,8 @@ export interface OutputSchema {
19
19
  suggestions: AppBskyActorDefs.ProfileView[]
20
20
  /** If true, response has fallen-back to generic results, and is not scoped using relativeToDid */
21
21
  isFallback?: boolean
22
+ /** Snowflake for this recommendation, use when submitting recommendation events. */
23
+ recId?: number
22
24
  [k: string]: unknown
23
25
  }
24
26
 
@@ -25,6 +25,8 @@ export interface OutputSchema {
25
25
  actors: AppBskyUnspeccedDefs.SkeletonSearchActor[]
26
26
  /** DID of the account these suggestions are relative to. If this is returned undefined, suggestions are based on the viewer. */
27
27
  relativeToDid?: string
28
+ /** Snowflake for this recommendation, use when submitting recommendation events. */
29
+ recId?: number
28
30
  [k: string]: unknown
29
31
  }
30
32
 
package/tests/_util.ts CHANGED
@@ -5,6 +5,7 @@ import { CID } from 'multiformats/cid'
5
5
  import { Server } from 'node:http'
6
6
  import { AddressInfo } from 'node:net'
7
7
  import { FeedViewPost } from '../src/lexicon/types/app/bsky/feed/defs'
8
+ import { ToolsOzoneModerationDefs } from '@atproto/api'
8
9
 
9
10
  // Swap out identifiers and dates with stable
10
11
  // values for the purpose of snapshot testing
@@ -202,3 +203,21 @@ export async function stopServer(server: Server) {
202
203
  })
203
204
  })
204
205
  }
206
+
207
+ const normalizeSubjectStatus = (
208
+ subject: ToolsOzoneModerationDefs.SubjectStatusView,
209
+ ) => {
210
+ return { ...subject, tags: subject.tags?.sort() }
211
+ }
212
+
213
+ export const forSubjectStatusSnapshot = (
214
+ status:
215
+ | ToolsOzoneModerationDefs.SubjectStatusView
216
+ | ToolsOzoneModerationDefs.SubjectStatusView[],
217
+ ) => {
218
+ if (Array.isArray(status)) {
219
+ return forSnapshot(status.map(normalizeSubjectStatus))
220
+ }
221
+
222
+ return forSnapshot(normalizeSubjectStatus(status))
223
+ }
@@ -1,6 +1,6 @@
1
1
  import { AtpAgent, ComAtprotoModerationDefs } from '@atproto/api'
2
2
  import { SeedClient, TestNetwork } from '@atproto/dev-env'
3
- import { forSnapshot } from './_util'
3
+ import { forSubjectStatusSnapshot } from './_util'
4
4
  import { ids } from '../src/lexicon/lexicons'
5
5
 
6
6
  describe('appeal account takedown', () => {
@@ -97,7 +97,9 @@ describe('appeal account takedown', () => {
97
97
  )
98
98
 
99
99
  expect(result.subjectStatuses[0].appealed).toBe(true)
100
- expect(forSnapshot(result.subjectStatuses[0])).toMatchSnapshot()
100
+ expect(
101
+ forSubjectStatusSnapshot(result.subjectStatuses[0]),
102
+ ).toMatchSnapshot()
101
103
  })
102
104
 
103
105
  it('takendown actor is not allowed to create reports.', async () => {