@atproto/pds 0.4.71 → 0.4.72

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.
Files changed (41) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/account-manager/helpers/account.d.ts +1 -1
  3. package/dist/account-manager/helpers/device-account.d.ts +6 -6
  4. package/dist/account-manager/helpers/token.d.ts +49 -49
  5. package/dist/api/app/bsky/feed/getFeed.d.ts.map +1 -1
  6. package/dist/api/app/bsky/feed/getFeed.js +13 -2
  7. package/dist/api/app/bsky/feed/getFeed.js.map +1 -1
  8. package/dist/lexicon/index.d.ts +6 -0
  9. package/dist/lexicon/index.d.ts.map +1 -1
  10. package/dist/lexicon/index.js +12 -0
  11. package/dist/lexicon/index.js.map +1 -1
  12. package/dist/lexicon/lexicons.d.ts +22257 -9700
  13. package/dist/lexicon/lexicons.d.ts.map +1 -1
  14. package/dist/lexicon/lexicons.js +153 -0
  15. package/dist/lexicon/lexicons.js.map +1 -1
  16. package/dist/lexicon/types/app/bsky/graph/searchStarterPacks.d.ts +40 -0
  17. package/dist/lexicon/types/app/bsky/graph/searchStarterPacks.d.ts.map +1 -0
  18. package/dist/lexicon/types/app/bsky/graph/searchStarterPacks.js +3 -0
  19. package/dist/lexicon/types/app/bsky/graph/searchStarterPacks.js.map +1 -0
  20. package/dist/lexicon/types/app/bsky/unspecced/defs.d.ts +6 -0
  21. package/dist/lexicon/types/app/bsky/unspecced/defs.d.ts.map +1 -1
  22. package/dist/lexicon/types/app/bsky/unspecced/defs.js +10 -0
  23. package/dist/lexicon/types/app/bsky/unspecced/defs.js.map +1 -1
  24. package/dist/lexicon/types/app/bsky/unspecced/searchStarterPacksSkeleton.d.ts +46 -0
  25. package/dist/lexicon/types/app/bsky/unspecced/searchStarterPacksSkeleton.d.ts.map +1 -0
  26. package/dist/lexicon/types/app/bsky/unspecced/searchStarterPacksSkeleton.js +3 -0
  27. package/dist/lexicon/types/app/bsky/unspecced/searchStarterPacksSkeleton.js.map +1 -0
  28. package/dist/lexicon/types/com/atproto/temp/addReservedHandle.d.ts +39 -0
  29. package/dist/lexicon/types/com/atproto/temp/addReservedHandle.d.ts.map +1 -0
  30. package/dist/lexicon/types/com/atproto/temp/addReservedHandle.js +3 -0
  31. package/dist/lexicon/types/com/atproto/temp/addReservedHandle.js.map +1 -0
  32. package/dist/sequencer/events.d.ts +3 -3
  33. package/package.json +4 -4
  34. package/src/api/app/bsky/feed/getFeed.ts +15 -8
  35. package/src/lexicon/index.ts +36 -0
  36. package/src/lexicon/lexicons.ts +163 -2
  37. package/src/lexicon/types/app/bsky/graph/searchStarterPacks.ts +50 -0
  38. package/src/lexicon/types/app/bsky/unspecced/defs.ts +24 -0
  39. package/src/lexicon/types/app/bsky/unspecced/searchStarterPacksSkeleton.ts +56 -0
  40. package/src/lexicon/types/com/atproto/temp/addReservedHandle.ts +48 -0
  41. package/tsconfig.build.tsbuildinfo +1 -1
@@ -0,0 +1,40 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import express from 'express';
5
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
6
+ import * as AppBskyGraphDefs from './defs';
7
+ export interface QueryParams {
8
+ /** Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. */
9
+ q: string;
10
+ limit: number;
11
+ cursor?: string;
12
+ }
13
+ export type InputSchema = undefined;
14
+ export interface OutputSchema {
15
+ cursor?: string;
16
+ starterPacks: AppBskyGraphDefs.StarterPackViewBasic[];
17
+ [k: string]: unknown;
18
+ }
19
+ export type HandlerInput = undefined;
20
+ export interface HandlerSuccess {
21
+ encoding: 'application/json';
22
+ body: OutputSchema;
23
+ headers?: {
24
+ [key: string]: string;
25
+ };
26
+ }
27
+ export interface HandlerError {
28
+ status: number;
29
+ message?: string;
30
+ }
31
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
32
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
33
+ auth: HA;
34
+ params: QueryParams;
35
+ input: HandlerInput;
36
+ req: express.Request;
37
+ res: express.Response;
38
+ };
39
+ export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
40
+ //# sourceMappingURL=searchStarterPacks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchStarterPacks.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/searchStarterPacks.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,yHAAyH;IACzH,CAAC,EAAE,MAAM,CAAA;IACT,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,YAAY,EAAE,gBAAgB,CAAC,oBAAoB,EAAE,CAAA;IACrD,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"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=searchStarterPacks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchStarterPacks.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/searchStarterPacks.ts"],"names":[],"mappings":""}
@@ -14,4 +14,10 @@ export interface SkeletonSearchActor {
14
14
  }
15
15
  export declare function isSkeletonSearchActor(v: unknown): v is SkeletonSearchActor;
16
16
  export declare function validateSkeletonSearchActor(v: unknown): ValidationResult;
17
+ export interface SkeletonSearchStarterPack {
18
+ uri: string;
19
+ [k: string]: unknown;
20
+ }
21
+ export declare function isSkeletonSearchStarterPack(v: unknown): v is SkeletonSearchStarterPack;
22
+ export declare function validateSkeletonSearchStarterPack(v: unknown): ValidationResult;
17
23
  //# sourceMappingURL=defs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/unspecced/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAK5D,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAA;IACX,CAAC,CAAC,EAAE,MAAM,GAAG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AC,EAAE,OAAO,GACT,CAAC,IAAI,yBAAyB,CAMhC;AAED,wBAAgB,iCAAiC,CAC/C,CAAC,EAAE,OAAO,GACT,gBAAgB,CAKlB"}
@@ -4,6 +4,8 @@ exports.isSkeletonSearchPost = isSkeletonSearchPost;
4
4
  exports.validateSkeletonSearchPost = validateSkeletonSearchPost;
5
5
  exports.isSkeletonSearchActor = isSkeletonSearchActor;
6
6
  exports.validateSkeletonSearchActor = validateSkeletonSearchActor;
7
+ exports.isSkeletonSearchStarterPack = isSkeletonSearchStarterPack;
8
+ exports.validateSkeletonSearchStarterPack = validateSkeletonSearchStarterPack;
7
9
  const lexicons_1 = require("../../../../lexicons");
8
10
  const util_1 = require("../../../../util");
9
11
  function isSkeletonSearchPost(v) {
@@ -22,4 +24,12 @@ function isSkeletonSearchActor(v) {
22
24
  function validateSkeletonSearchActor(v) {
23
25
  return lexicons_1.lexicons.validate('app.bsky.unspecced.defs#skeletonSearchActor', v);
24
26
  }
27
+ function isSkeletonSearchStarterPack(v) {
28
+ return ((0, util_1.isObj)(v) &&
29
+ (0, util_1.hasProp)(v, '$type') &&
30
+ v.$type === 'app.bsky.unspecced.defs#skeletonSearchStarterPack');
31
+ }
32
+ function validateSkeletonSearchStarterPack(v) {
33
+ return lexicons_1.lexicons.validate('app.bsky.unspecced.defs#skeletonSearchStarterPack', v);
34
+ }
25
35
  //# sourceMappingURL=defs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/unspecced/defs.ts"],"names":[],"mappings":";;AAaA,oDAMC;AAED,gEAEC;AAOD,sDAMC;AAED,kEAEC;AApCD,mDAA+C;AAC/C,2CAAiD;AAQjD,SAAgB,oBAAoB,CAAC,CAAU;IAC7C,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC;QACR,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC;QACnB,CAAC,CAAC,KAAK,KAAK,4CAA4C,CACzD,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,CAAC,CAAC,CAAA;AAC5E,CAAC;AAOD,SAAgB,2BAA2B,CACzC,CAAU;IAEV,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC;QACR,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC;QACnB,CAAC,CAAC,KAAK,KAAK,mDAAmD,CAChE,CAAA;AACH,CAAC;AAED,SAAgB,iCAAiC,CAC/C,CAAU;IAEV,OAAO,mBAAQ,CAAC,QAAQ,CACtB,mDAAmD,EACnD,CAAC,CACF,CAAA;AACH,CAAC"}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import express from 'express';
5
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
6
+ import * as AppBskyUnspeccedDefs from './defs';
7
+ export interface QueryParams {
8
+ /** Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. */
9
+ q: string;
10
+ /** DID of the account making the request (not included for public/unauthenticated queries). */
11
+ viewer?: string;
12
+ limit: number;
13
+ /** Optional pagination mechanism; may not necessarily allow scrolling through entire result set. */
14
+ cursor?: string;
15
+ }
16
+ export type InputSchema = undefined;
17
+ export interface OutputSchema {
18
+ cursor?: string;
19
+ /** Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits. */
20
+ hitsTotal?: number;
21
+ starterPacks: AppBskyUnspeccedDefs.SkeletonSearchStarterPack[];
22
+ [k: string]: unknown;
23
+ }
24
+ export type HandlerInput = undefined;
25
+ export interface HandlerSuccess {
26
+ encoding: 'application/json';
27
+ body: OutputSchema;
28
+ headers?: {
29
+ [key: string]: string;
30
+ };
31
+ }
32
+ export interface HandlerError {
33
+ status: number;
34
+ message?: string;
35
+ error?: 'BadQueryString';
36
+ }
37
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
38
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
39
+ auth: HA;
40
+ params: QueryParams;
41
+ input: HandlerInput;
42
+ req: express.Request;
43
+ res: express.Response;
44
+ };
45
+ export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
46
+ //# sourceMappingURL=searchStarterPacksSkeleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchStarterPacksSkeleton.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/unspecced/searchStarterPacksSkeleton.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,yHAAyH;IACzH,CAAC,EAAE,MAAM,CAAA;IACT,+FAA+F;IAC/F,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,oGAAoG;IACpG,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,sHAAsH;IACtH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,oBAAoB,CAAC,yBAAyB,EAAE,CAAA;IAC9D,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;IAChB,KAAK,CAAC,EAAE,gBAAgB,CAAA;CACzB;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"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=searchStarterPacksSkeleton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchStarterPacksSkeleton.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/unspecced/searchStarterPacksSkeleton.ts"],"names":[],"mappings":""}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import express from 'express';
5
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
6
+ export interface QueryParams {
7
+ }
8
+ export interface InputSchema {
9
+ handle: string;
10
+ [k: string]: unknown;
11
+ }
12
+ export interface OutputSchema {
13
+ [k: string]: unknown;
14
+ }
15
+ export interface HandlerInput {
16
+ encoding: 'application/json';
17
+ body: InputSchema;
18
+ }
19
+ export interface HandlerSuccess {
20
+ encoding: 'application/json';
21
+ body: OutputSchema;
22
+ headers?: {
23
+ [key: string]: string;
24
+ };
25
+ }
26
+ export interface HandlerError {
27
+ status: number;
28
+ message?: string;
29
+ }
30
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
31
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
32
+ auth: HA;
33
+ params: QueryParams;
34
+ input: HandlerInput;
35
+ req: express.Request;
36
+ res: express.Response;
37
+ };
38
+ export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
39
+ //# sourceMappingURL=addReservedHandle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addReservedHandle.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/temp/addReservedHandle.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAEtE,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,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"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=addReservedHandle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addReservedHandle.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/temp/addReservedHandle.ts"],"names":[],"mappings":""}
@@ -48,12 +48,12 @@ export declare const commitEvt: z.ZodObject<{
48
48
  blobs: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodAny, any, any>, CID, any>, "many">;
49
49
  }, "strip", z.ZodTypeAny, {
50
50
  repo: string;
51
+ commit: CID;
51
52
  rev: string;
52
53
  blobs: CID[];
54
+ since: string | null;
53
55
  rebase: boolean;
54
56
  tooBig: boolean;
55
- commit: CID;
56
- since: string | null;
57
57
  blocks: Uint8Array;
58
58
  ops: {
59
59
  cid: CID | null;
@@ -65,9 +65,9 @@ export declare const commitEvt: z.ZodObject<{
65
65
  repo: string;
66
66
  rev: string;
67
67
  blobs: any[];
68
+ since: string | null;
68
69
  rebase: boolean;
69
70
  tooBig: boolean;
70
- since: string | null;
71
71
  blocks: Uint8Array;
72
72
  ops: {
73
73
  action: "create" | "update" | "delete";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/pds",
3
- "version": "0.4.71",
3
+ "version": "0.4.72",
4
4
  "license": "MIT",
5
5
  "description": "Reference implementation of atproto Personal Data Server (PDS)",
6
6
  "keywords": [
@@ -45,7 +45,7 @@
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.16",
48
+ "@atproto/api": "^0.13.17",
49
49
  "@atproto/aws": "^0.2.9",
50
50
  "@atproto/common": "^0.4.4",
51
51
  "@atproto/crypto": "^0.4.2",
@@ -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.16",
79
- "@atproto/bsky": "^0.0.94",
78
+ "@atproto/api": "^0.13.17",
79
+ "@atproto/bsky": "^0.0.95",
80
80
  "@atproto/lex-cli": "^0.5.2",
81
81
  "@atproto/oauth-client-browser-example": "0.0.0"
82
82
  },
@@ -2,6 +2,8 @@ import { Server } from '../../../../lexicon'
2
2
  import AppContext from '../../../../context'
3
3
  import { pipethrough } from '../../../../pipethrough'
4
4
  import { ids } from '../../../../lexicon/lexicons'
5
+ import { AtUri } from '@atproto/syntax'
6
+ import { InvalidRequestError } from '@atproto/oauth-provider'
5
7
 
6
8
  export default function (server: Server, ctx: AppContext) {
7
9
  const { appViewAgent } = ctx
@@ -12,18 +14,23 @@ export default function (server: Server, ctx: AppContext) {
12
14
  handler: async ({ params, auth, req }) => {
13
15
  const requester = auth.credentials.did
14
16
 
15
- const { data: feed } =
16
- await appViewAgent.api.app.bsky.feed.getFeedGenerator(
17
- { feed: params.feed },
18
- await ctx.appviewAuthHeaders(
19
- requester,
20
- ids.AppBskyFeedGetFeedGenerator,
21
- ),
17
+ const feedUrl = new AtUri(params.feed)
18
+ const { data } = await appViewAgent.com.atproto.repo.getRecord({
19
+ repo: feedUrl.hostname,
20
+ collection: feedUrl.collection,
21
+ rkey: feedUrl.rkey,
22
+ })
23
+ const feedDid = data.value['did']
24
+ if (typeof feedDid !== 'string') {
25
+ throw new InvalidRequestError(
26
+ 'could not resolve feed did',
27
+ 'UnknownFeed',
22
28
  )
29
+ }
23
30
 
24
31
  return pipethrough(ctx, req, {
25
32
  iss: requester,
26
- aud: feed.view.did,
33
+ aud: feedDid,
27
34
  lxm: ids.AppBskyFeedGetFeedSkeleton,
28
35
  })
29
36
  },
@@ -80,6 +80,7 @@ import * as ComAtprotoSyncListRepos from './types/com/atproto/sync/listRepos'
80
80
  import * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOfUpdate'
81
81
  import * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl'
82
82
  import * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscribeRepos'
83
+ import * as ComAtprotoTempAddReservedHandle from './types/com/atproto/temp/addReservedHandle'
83
84
  import * as ComAtprotoTempCheckSignupQueue from './types/com/atproto/temp/checkSignupQueue'
84
85
  import * as ComAtprotoTempFetchLabels from './types/com/atproto/temp/fetchLabels'
85
86
  import * as ComAtprotoTempRequestPhoneVerification from './types/com/atproto/temp/requestPhoneVerification'
@@ -125,6 +126,7 @@ import * as AppBskyGraphGetSuggestedFollowsByActor from './types/app/bsky/graph/
125
126
  import * as AppBskyGraphMuteActor from './types/app/bsky/graph/muteActor'
126
127
  import * as AppBskyGraphMuteActorList from './types/app/bsky/graph/muteActorList'
127
128
  import * as AppBskyGraphMuteThread from './types/app/bsky/graph/muteThread'
129
+ import * as AppBskyGraphSearchStarterPacks from './types/app/bsky/graph/searchStarterPacks'
128
130
  import * as AppBskyGraphUnmuteActor from './types/app/bsky/graph/unmuteActor'
129
131
  import * as AppBskyGraphUnmuteActorList from './types/app/bsky/graph/unmuteActorList'
130
132
  import * as AppBskyGraphUnmuteThread from './types/app/bsky/graph/unmuteThread'
@@ -140,6 +142,7 @@ import * as AppBskyUnspeccedGetSuggestionsSkeleton from './types/app/bsky/unspec
140
142
  import * as AppBskyUnspeccedGetTaggedSuggestions from './types/app/bsky/unspecced/getTaggedSuggestions'
141
143
  import * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton'
142
144
  import * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton'
145
+ import * as AppBskyUnspeccedSearchStarterPacksSkeleton from './types/app/bsky/unspecced/searchStarterPacksSkeleton'
143
146
  import * as AppBskyVideoGetJobStatus from './types/app/bsky/video/getJobStatus'
144
147
  import * as AppBskyVideoGetUploadLimits from './types/app/bsky/video/getUploadLimits'
145
148
  import * as AppBskyVideoUploadVideo from './types/app/bsky/video/uploadVideo'
@@ -1133,6 +1136,17 @@ export class ComAtprotoTempNS {
1133
1136
  this._server = server
1134
1137
  }
1135
1138
 
1139
+ addReservedHandle<AV extends AuthVerifier>(
1140
+ cfg: ConfigOf<
1141
+ AV,
1142
+ ComAtprotoTempAddReservedHandle.Handler<ExtractAuth<AV>>,
1143
+ ComAtprotoTempAddReservedHandle.HandlerReqCtx<ExtractAuth<AV>>
1144
+ >,
1145
+ ) {
1146
+ const nsid = 'com.atproto.temp.addReservedHandle' // @ts-ignore
1147
+ return this._server.xrpc.method(nsid, cfg)
1148
+ }
1149
+
1136
1150
  checkSignupQueue<AV extends AuthVerifier>(
1137
1151
  cfg: ConfigOf<
1138
1152
  AV,
@@ -1696,6 +1710,17 @@ export class AppBskyGraphNS {
1696
1710
  return this._server.xrpc.method(nsid, cfg)
1697
1711
  }
1698
1712
 
1713
+ searchStarterPacks<AV extends AuthVerifier>(
1714
+ cfg: ConfigOf<
1715
+ AV,
1716
+ AppBskyGraphSearchStarterPacks.Handler<ExtractAuth<AV>>,
1717
+ AppBskyGraphSearchStarterPacks.HandlerReqCtx<ExtractAuth<AV>>
1718
+ >,
1719
+ ) {
1720
+ const nsid = 'app.bsky.graph.searchStarterPacks' // @ts-ignore
1721
+ return this._server.xrpc.method(nsid, cfg)
1722
+ }
1723
+
1699
1724
  unmuteActor<AV extends AuthVerifier>(
1700
1725
  cfg: ConfigOf<
1701
1726
  AV,
@@ -1892,6 +1917,17 @@ export class AppBskyUnspeccedNS {
1892
1917
  const nsid = 'app.bsky.unspecced.searchPostsSkeleton' // @ts-ignore
1893
1918
  return this._server.xrpc.method(nsid, cfg)
1894
1919
  }
1920
+
1921
+ searchStarterPacksSkeleton<AV extends AuthVerifier>(
1922
+ cfg: ConfigOf<
1923
+ AV,
1924
+ AppBskyUnspeccedSearchStarterPacksSkeleton.Handler<ExtractAuth<AV>>,
1925
+ AppBskyUnspeccedSearchStarterPacksSkeleton.HandlerReqCtx<ExtractAuth<AV>>
1926
+ >,
1927
+ ) {
1928
+ const nsid = 'app.bsky.unspecced.searchStarterPacksSkeleton' // @ts-ignore
1929
+ return this._server.xrpc.method(nsid, cfg)
1930
+ }
1895
1931
  }
1896
1932
 
1897
1933
  export class AppBskyVideoNS {
@@ -3959,6 +3959,35 @@ export const schemaDict = {
3959
3959
  },
3960
3960
  },
3961
3961
  },
3962
+ ComAtprotoTempAddReservedHandle: {
3963
+ lexicon: 1,
3964
+ id: 'com.atproto.temp.addReservedHandle',
3965
+ defs: {
3966
+ main: {
3967
+ type: 'procedure',
3968
+ description: 'Add a handle to the set of reserved handles.',
3969
+ input: {
3970
+ encoding: 'application/json',
3971
+ schema: {
3972
+ type: 'object',
3973
+ required: ['handle'],
3974
+ properties: {
3975
+ handle: {
3976
+ type: 'string',
3977
+ },
3978
+ },
3979
+ },
3980
+ },
3981
+ output: {
3982
+ encoding: 'application/json',
3983
+ schema: {
3984
+ type: 'object',
3985
+ properties: {},
3986
+ },
3987
+ },
3988
+ },
3989
+ },
3990
+ },
3962
3991
  ComAtprotoTempCheckSignupQueue: {
3963
3992
  lexicon: 1,
3964
3993
  id: 'com.atproto.temp.checkSignupQueue',
@@ -8488,6 +8517,56 @@ export const schemaDict = {
8488
8517
  },
8489
8518
  },
8490
8519
  },
8520
+ AppBskyGraphSearchStarterPacks: {
8521
+ lexicon: 1,
8522
+ id: 'app.bsky.graph.searchStarterPacks',
8523
+ defs: {
8524
+ main: {
8525
+ type: 'query',
8526
+ description:
8527
+ 'Find starter packs matching search criteria. Does not require auth.',
8528
+ parameters: {
8529
+ type: 'params',
8530
+ required: ['q'],
8531
+ properties: {
8532
+ q: {
8533
+ type: 'string',
8534
+ description:
8535
+ 'Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.',
8536
+ },
8537
+ limit: {
8538
+ type: 'integer',
8539
+ minimum: 1,
8540
+ maximum: 100,
8541
+ default: 25,
8542
+ },
8543
+ cursor: {
8544
+ type: 'string',
8545
+ },
8546
+ },
8547
+ },
8548
+ output: {
8549
+ encoding: 'application/json',
8550
+ schema: {
8551
+ type: 'object',
8552
+ required: ['starterPacks'],
8553
+ properties: {
8554
+ cursor: {
8555
+ type: 'string',
8556
+ },
8557
+ starterPacks: {
8558
+ type: 'array',
8559
+ items: {
8560
+ type: 'ref',
8561
+ ref: 'lex:app.bsky.graph.defs#starterPackViewBasic',
8562
+ },
8563
+ },
8564
+ },
8565
+ },
8566
+ },
8567
+ },
8568
+ },
8569
+ },
8491
8570
  AppBskyGraphStarterpack: {
8492
8571
  lexicon: 1,
8493
8572
  id: 'app.bsky.graph.starterpack',
@@ -9153,6 +9232,16 @@ export const schemaDict = {
9153
9232
  },
9154
9233
  },
9155
9234
  },
9235
+ skeletonSearchStarterPack: {
9236
+ type: 'object',
9237
+ required: ['uri'],
9238
+ properties: {
9239
+ uri: {
9240
+ type: 'string',
9241
+ format: 'at-uri',
9242
+ },
9243
+ },
9244
+ },
9156
9245
  },
9157
9246
  },
9158
9247
  AppBskyUnspeccedGetConfig: {
@@ -9526,6 +9615,73 @@ export const schemaDict = {
9526
9615
  },
9527
9616
  },
9528
9617
  },
9618
+ AppBskyUnspeccedSearchStarterPacksSkeleton: {
9619
+ lexicon: 1,
9620
+ id: 'app.bsky.unspecced.searchStarterPacksSkeleton',
9621
+ defs: {
9622
+ main: {
9623
+ type: 'query',
9624
+ description: 'Backend Starter Pack search, returns only skeleton.',
9625
+ parameters: {
9626
+ type: 'params',
9627
+ required: ['q'],
9628
+ properties: {
9629
+ q: {
9630
+ type: 'string',
9631
+ description:
9632
+ 'Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.',
9633
+ },
9634
+ viewer: {
9635
+ type: 'string',
9636
+ format: 'did',
9637
+ description:
9638
+ 'DID of the account making the request (not included for public/unauthenticated queries).',
9639
+ },
9640
+ limit: {
9641
+ type: 'integer',
9642
+ minimum: 1,
9643
+ maximum: 100,
9644
+ default: 25,
9645
+ },
9646
+ cursor: {
9647
+ type: 'string',
9648
+ description:
9649
+ 'Optional pagination mechanism; may not necessarily allow scrolling through entire result set.',
9650
+ },
9651
+ },
9652
+ },
9653
+ output: {
9654
+ encoding: 'application/json',
9655
+ schema: {
9656
+ type: 'object',
9657
+ required: ['starterPacks'],
9658
+ properties: {
9659
+ cursor: {
9660
+ type: 'string',
9661
+ },
9662
+ hitsTotal: {
9663
+ type: 'integer',
9664
+ description:
9665
+ 'Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits.',
9666
+ },
9667
+ starterPacks: {
9668
+ type: 'array',
9669
+ items: {
9670
+ type: 'ref',
9671
+ ref: 'lex:app.bsky.unspecced.defs#skeletonSearchStarterPack',
9672
+ },
9673
+ },
9674
+ },
9675
+ },
9676
+ },
9677
+ errors: [
9678
+ {
9679
+ name: 'BadQueryString',
9680
+ },
9681
+ ],
9682
+ },
9683
+ },
9684
+ },
9529
9685
  AppBskyVideoDefs: {
9530
9686
  lexicon: 1,
9531
9687
  id: 'app.bsky.video.defs',
@@ -13327,8 +13483,9 @@ export const schemaDict = {
13327
13483
  },
13328
13484
  },
13329
13485
  },
13330
- }
13331
- export const schemas: LexiconDoc[] = Object.values(schemaDict) as LexiconDoc[]
13486
+ } as const satisfies Record<string, LexiconDoc>
13487
+
13488
+ export const schemas = Object.values(schemaDict)
13332
13489
  export const lexicons: Lexicons = new Lexicons(schemas)
13333
13490
  export const ids = {
13334
13491
  ComAtprotoAdminDefs: 'com.atproto.admin.defs',
@@ -13417,6 +13574,7 @@ export const ids = {
13417
13574
  ComAtprotoSyncNotifyOfUpdate: 'com.atproto.sync.notifyOfUpdate',
13418
13575
  ComAtprotoSyncRequestCrawl: 'com.atproto.sync.requestCrawl',
13419
13576
  ComAtprotoSyncSubscribeRepos: 'com.atproto.sync.subscribeRepos',
13577
+ ComAtprotoTempAddReservedHandle: 'com.atproto.temp.addReservedHandle',
13420
13578
  ComAtprotoTempCheckSignupQueue: 'com.atproto.temp.checkSignupQueue',
13421
13579
  ComAtprotoTempFetchLabels: 'com.atproto.temp.fetchLabels',
13422
13580
  ComAtprotoTempRequestPhoneVerification:
@@ -13485,6 +13643,7 @@ export const ids = {
13485
13643
  AppBskyGraphMuteActor: 'app.bsky.graph.muteActor',
13486
13644
  AppBskyGraphMuteActorList: 'app.bsky.graph.muteActorList',
13487
13645
  AppBskyGraphMuteThread: 'app.bsky.graph.muteThread',
13646
+ AppBskyGraphSearchStarterPacks: 'app.bsky.graph.searchStarterPacks',
13488
13647
  AppBskyGraphStarterpack: 'app.bsky.graph.starterpack',
13489
13648
  AppBskyGraphUnmuteActor: 'app.bsky.graph.unmuteActor',
13490
13649
  AppBskyGraphUnmuteActorList: 'app.bsky.graph.unmuteActorList',
@@ -13510,6 +13669,8 @@ export const ids = {
13510
13669
  AppBskyUnspeccedSearchActorsSkeleton:
13511
13670
  'app.bsky.unspecced.searchActorsSkeleton',
13512
13671
  AppBskyUnspeccedSearchPostsSkeleton: 'app.bsky.unspecced.searchPostsSkeleton',
13672
+ AppBskyUnspeccedSearchStarterPacksSkeleton:
13673
+ 'app.bsky.unspecced.searchStarterPacksSkeleton',
13513
13674
  AppBskyVideoDefs: 'app.bsky.video.defs',
13514
13675
  AppBskyVideoGetJobStatus: 'app.bsky.video.getJobStatus',
13515
13676
  AppBskyVideoGetUploadLimits: 'app.bsky.video.getUploadLimits',
@@ -0,0 +1,50 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import express from 'express'
5
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { lexicons } from '../../../../lexicons'
7
+ import { isObj, hasProp } from '../../../../util'
8
+ import { CID } from 'multiformats/cid'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
+ import * as AppBskyGraphDefs from './defs'
11
+
12
+ export interface QueryParams {
13
+ /** Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. */
14
+ q: string
15
+ limit: number
16
+ cursor?: string
17
+ }
18
+
19
+ export type InputSchema = undefined
20
+
21
+ export interface OutputSchema {
22
+ cursor?: string
23
+ starterPacks: AppBskyGraphDefs.StarterPackViewBasic[]
24
+ [k: string]: unknown
25
+ }
26
+
27
+ export type HandlerInput = undefined
28
+
29
+ export interface HandlerSuccess {
30
+ encoding: 'application/json'
31
+ body: OutputSchema
32
+ headers?: { [key: string]: string }
33
+ }
34
+
35
+ export interface HandlerError {
36
+ status: number
37
+ message?: string
38
+ }
39
+
40
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
41
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
42
+ auth: HA
43
+ params: QueryParams
44
+ input: HandlerInput
45
+ req: express.Request
46
+ res: express.Response
47
+ }
48
+ export type Handler<HA extends HandlerAuth = never> = (
49
+ ctx: HandlerReqCtx<HA>,
50
+ ) => Promise<HandlerOutput> | HandlerOutput