@atproto/pds 0.4.64 → 0.4.65

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/lexicon/index.d.ts +17 -0
  3. package/dist/lexicon/index.d.ts.map +1 -1
  4. package/dist/lexicon/index.js +44 -1
  5. package/dist/lexicon/index.js.map +1 -1
  6. package/dist/lexicon/lexicons.d.ts +292 -0
  7. package/dist/lexicon/lexicons.d.ts.map +1 -1
  8. package/dist/lexicon/lexicons.js +298 -0
  9. package/dist/lexicon/lexicons.js.map +1 -1
  10. package/dist/lexicon/types/tools/ozone/set/addValues.d.ts +32 -0
  11. package/dist/lexicon/types/tools/ozone/set/addValues.d.ts.map +1 -0
  12. package/dist/lexicon/types/tools/ozone/set/addValues.js +3 -0
  13. package/dist/lexicon/types/tools/ozone/set/addValues.js.map +1 -0
  14. package/dist/lexicon/types/tools/ozone/set/defs.d.ts +22 -0
  15. package/dist/lexicon/types/tools/ozone/set/defs.d.ts.map +1 -0
  16. package/dist/lexicon/types/tools/ozone/set/defs.js +24 -0
  17. package/dist/lexicon/types/tools/ozone/set/defs.js.map +1 -0
  18. package/dist/lexicon/types/tools/ozone/set/deleteSet.d.ts +41 -0
  19. package/dist/lexicon/types/tools/ozone/set/deleteSet.d.ts.map +1 -0
  20. package/dist/lexicon/types/tools/ozone/set/deleteSet.js +3 -0
  21. package/dist/lexicon/types/tools/ozone/set/deleteSet.js.map +1 -0
  22. package/dist/lexicon/types/tools/ozone/set/deleteValues.d.ts +33 -0
  23. package/dist/lexicon/types/tools/ozone/set/deleteValues.d.ts.map +1 -0
  24. package/dist/lexicon/types/tools/ozone/set/deleteValues.js +3 -0
  25. package/dist/lexicon/types/tools/ozone/set/deleteValues.js.map +1 -0
  26. package/dist/lexicon/types/tools/ozone/set/getValues.d.ts +41 -0
  27. package/dist/lexicon/types/tools/ozone/set/getValues.d.ts.map +1 -0
  28. package/dist/lexicon/types/tools/ozone/set/getValues.js +3 -0
  29. package/dist/lexicon/types/tools/ozone/set/getValues.js.map +1 -0
  30. package/dist/lexicon/types/tools/ozone/set/querySets.d.ts +42 -0
  31. package/dist/lexicon/types/tools/ozone/set/querySets.d.ts.map +1 -0
  32. package/dist/lexicon/types/tools/ozone/set/querySets.js +3 -0
  33. package/dist/lexicon/types/tools/ozone/set/querySets.js.map +1 -0
  34. package/dist/lexicon/types/tools/ozone/set/upsertSet.d.ts +35 -0
  35. package/dist/lexicon/types/tools/ozone/set/upsertSet.d.ts.map +1 -0
  36. package/dist/lexicon/types/tools/ozone/set/upsertSet.js +3 -0
  37. package/dist/lexicon/types/tools/ozone/set/upsertSet.js.map +1 -0
  38. package/package.json +4 -4
  39. package/src/lexicon/index.ts +82 -0
  40. package/src/lexicon/lexicons.ts +301 -0
  41. package/src/lexicon/types/tools/ozone/set/addValues.ts +41 -0
  42. package/src/lexicon/types/tools/ozone/set/defs.ts +44 -0
  43. package/src/lexicon/types/tools/ozone/set/deleteSet.ts +50 -0
  44. package/src/lexicon/types/tools/ozone/set/deleteValues.ts +42 -0
  45. package/src/lexicon/types/tools/ozone/set/getValues.ts +51 -0
  46. package/src/lexicon/types/tools/ozone/set/querySets.ts +52 -0
  47. package/src/lexicon/types/tools/ozone/set/upsertSet.ts +43 -0
@@ -0,0 +1,32 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import express from 'express';
5
+ import { HandlerAuth } from '@atproto/xrpc-server';
6
+ export interface QueryParams {
7
+ }
8
+ export interface InputSchema {
9
+ /** Name of the set to add values to */
10
+ name: string;
11
+ /** Array of string values to add to the set */
12
+ values: string[];
13
+ [k: string]: unknown;
14
+ }
15
+ export interface HandlerInput {
16
+ encoding: 'application/json';
17
+ body: InputSchema;
18
+ }
19
+ export interface HandlerError {
20
+ status: number;
21
+ message?: string;
22
+ }
23
+ export type HandlerOutput = HandlerError | void;
24
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
25
+ auth: HA;
26
+ params: QueryParams;
27
+ input: HandlerInput;
28
+ req: express.Request;
29
+ res: express.Response;
30
+ };
31
+ export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
32
+ //# sourceMappingURL=addValues.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addValues.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/set/addValues.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,WAAW,EAAsB,MAAM,sBAAsB,CAAA;AAEtE,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,WAAW,WAAW;IAC1B,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAA;IACZ,+CAA+C;IAC/C,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,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,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,IAAI,CAAA;AAC/C,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=addValues.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addValues.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/set/addValues.ts"],"names":[],"mappings":""}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { ValidationResult } from '@atproto/lexicon';
5
+ export interface Set {
6
+ name: string;
7
+ description?: string;
8
+ [k: string]: unknown;
9
+ }
10
+ export declare function isSet(v: unknown): v is Set;
11
+ export declare function validateSet(v: unknown): ValidationResult;
12
+ export interface SetView {
13
+ name: string;
14
+ description?: string;
15
+ setSize: number;
16
+ createdAt: string;
17
+ updatedAt: string;
18
+ [k: string]: unknown;
19
+ }
20
+ export declare function isSetView(v: unknown): v is SetView;
21
+ export declare function validateSetView(v: unknown): ValidationResult;
22
+ //# sourceMappingURL=defs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/set/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAK5D,MAAM,WAAW,GAAG;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,GAAG,CAI1C;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAExD;AAED,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,wBAAgB,SAAS,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,OAAO,CAMlD;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAE5D"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.validateSetView = exports.isSetView = exports.validateSet = exports.isSet = void 0;
4
+ const lexicons_1 = require("../../../../lexicons");
5
+ const util_1 = require("../../../../util");
6
+ function isSet(v) {
7
+ return ((0, util_1.isObj)(v) && (0, util_1.hasProp)(v, '$type') && v.$type === 'tools.ozone.set.defs#set');
8
+ }
9
+ exports.isSet = isSet;
10
+ function validateSet(v) {
11
+ return lexicons_1.lexicons.validate('tools.ozone.set.defs#set', v);
12
+ }
13
+ exports.validateSet = validateSet;
14
+ function isSetView(v) {
15
+ return ((0, util_1.isObj)(v) &&
16
+ (0, util_1.hasProp)(v, '$type') &&
17
+ v.$type === 'tools.ozone.set.defs#setView');
18
+ }
19
+ exports.isSetView = isSetView;
20
+ function validateSetView(v) {
21
+ return lexicons_1.lexicons.validate('tools.ozone.set.defs#setView', v);
22
+ }
23
+ exports.validateSetView = validateSetView;
24
+ //# sourceMappingURL=defs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/set/defs.ts"],"names":[],"mappings":";;;AAIA,mDAA+C;AAC/C,2CAAiD;AASjD,SAAgB,KAAK,CAAC,CAAU;IAC9B,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC,IAAI,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,KAAK,0BAA0B,CAC1E,CAAA;AACH,CAAC;AAJD,sBAIC;AAED,SAAgB,WAAW,CAAC,CAAU;IACpC,OAAO,mBAAQ,CAAC,QAAQ,CAAC,0BAA0B,EAAE,CAAC,CAAC,CAAA;AACzD,CAAC;AAFD,kCAEC;AAWD,SAAgB,SAAS,CAAC,CAAU;IAClC,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC;QACR,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC;QACnB,CAAC,CAAC,KAAK,KAAK,8BAA8B,CAC3C,CAAA;AACH,CAAC;AAND,8BAMC;AAED,SAAgB,eAAe,CAAC,CAAU;IACxC,OAAO,mBAAQ,CAAC,QAAQ,CAAC,8BAA8B,EAAE,CAAC,CAAC,CAAA;AAC7D,CAAC;AAFD,0CAEC"}
@@ -0,0 +1,41 @@
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
+ /** Name of the set to delete */
10
+ name: string;
11
+ [k: string]: unknown;
12
+ }
13
+ export interface OutputSchema {
14
+ [k: string]: unknown;
15
+ }
16
+ export interface HandlerInput {
17
+ encoding: 'application/json';
18
+ body: InputSchema;
19
+ }
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
+ error?: 'SetNotFound';
31
+ }
32
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
33
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
34
+ auth: HA;
35
+ params: QueryParams;
36
+ input: HandlerInput;
37
+ req: express.Request;
38
+ res: express.Response;
39
+ };
40
+ export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
41
+ //# sourceMappingURL=deleteSet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteSet.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/set/deleteSet.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,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,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;IAChB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB;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=deleteSet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteSet.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/set/deleteSet.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import express from 'express';
5
+ import { HandlerAuth } from '@atproto/xrpc-server';
6
+ export interface QueryParams {
7
+ }
8
+ export interface InputSchema {
9
+ /** Name of the set to delete values from */
10
+ name: string;
11
+ /** Array of string values to delete from the set */
12
+ values: string[];
13
+ [k: string]: unknown;
14
+ }
15
+ export interface HandlerInput {
16
+ encoding: 'application/json';
17
+ body: InputSchema;
18
+ }
19
+ export interface HandlerError {
20
+ status: number;
21
+ message?: string;
22
+ error?: 'SetNotFound';
23
+ }
24
+ export type HandlerOutput = HandlerError | void;
25
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
26
+ auth: HA;
27
+ params: QueryParams;
28
+ input: HandlerInput;
29
+ req: express.Request;
30
+ res: express.Response;
31
+ };
32
+ export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
33
+ //# sourceMappingURL=deleteValues.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteValues.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/set/deleteValues.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,WAAW,EAAsB,MAAM,sBAAsB,CAAA;AAEtE,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,WAAW,WAAW;IAC1B,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAA;IACZ,oDAAoD;IACpD,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,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,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,IAAI,CAAA;AAC/C,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=deleteValues.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteValues.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/set/deleteValues.ts"],"names":[],"mappings":""}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import express from 'express';
5
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
6
+ import * as ToolsOzoneSetDefs from './defs';
7
+ export interface QueryParams {
8
+ name: string;
9
+ limit: number;
10
+ cursor?: string;
11
+ }
12
+ export type InputSchema = undefined;
13
+ export interface OutputSchema {
14
+ set: ToolsOzoneSetDefs.SetView;
15
+ values: string[];
16
+ cursor?: string;
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
+ error?: 'SetNotFound';
31
+ }
32
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
33
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
34
+ auth: HA;
35
+ params: QueryParams;
36
+ input: HandlerInput;
37
+ req: express.Request;
38
+ res: express.Response;
39
+ };
40
+ export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
41
+ //# sourceMappingURL=getValues.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getValues.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/set/getValues.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAO,KAAK,iBAAiB,MAAM,QAAQ,CAAA;AAE3C,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,iBAAiB,CAAC,OAAO,CAAA;IAC9B,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,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,aAAa,CAAA;CACtB;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=getValues.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getValues.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/set/getValues.ts"],"names":[],"mappings":""}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import express from 'express';
5
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
6
+ import * as ToolsOzoneSetDefs from './defs';
7
+ export interface QueryParams {
8
+ limit: number;
9
+ cursor?: string;
10
+ namePrefix?: string;
11
+ sortBy: 'name' | 'createdAt' | 'updatedAt';
12
+ /** Defaults to ascending order of name field. */
13
+ sortDirection: 'asc' | 'desc';
14
+ }
15
+ export type InputSchema = undefined;
16
+ export interface OutputSchema {
17
+ sets: ToolsOzoneSetDefs.SetView[];
18
+ cursor?: string;
19
+ [k: string]: unknown;
20
+ }
21
+ export type HandlerInput = undefined;
22
+ export interface HandlerSuccess {
23
+ encoding: 'application/json';
24
+ body: OutputSchema;
25
+ headers?: {
26
+ [key: string]: string;
27
+ };
28
+ }
29
+ export interface HandlerError {
30
+ status: number;
31
+ message?: string;
32
+ }
33
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
34
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
35
+ auth: HA;
36
+ params: QueryParams;
37
+ input: HandlerInput;
38
+ req: express.Request;
39
+ res: express.Response;
40
+ };
41
+ export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
42
+ //# sourceMappingURL=querySets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"querySets.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/set/querySets.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAO,KAAK,iBAAiB,MAAM,QAAQ,CAAA;AAE3C,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,WAAW,CAAA;IAC1C,iDAAiD;IACjD,aAAa,EAAE,KAAK,GAAG,MAAM,CAAA;CAC9B;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,iBAAiB,CAAC,OAAO,EAAE,CAAA;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,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=querySets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"querySets.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/set/querySets.ts"],"names":[],"mappings":""}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import express from 'express';
5
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
6
+ import * as ToolsOzoneSetDefs from './defs';
7
+ export interface QueryParams {
8
+ }
9
+ export type InputSchema = ToolsOzoneSetDefs.Set;
10
+ export type OutputSchema = ToolsOzoneSetDefs.SetView;
11
+ export interface HandlerInput {
12
+ encoding: 'application/json';
13
+ body: InputSchema;
14
+ }
15
+ export interface HandlerSuccess {
16
+ encoding: 'application/json';
17
+ body: OutputSchema;
18
+ headers?: {
19
+ [key: string]: string;
20
+ };
21
+ }
22
+ export interface HandlerError {
23
+ status: number;
24
+ message?: string;
25
+ }
26
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
27
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
28
+ auth: HA;
29
+ params: QueryParams;
30
+ input: HandlerInput;
31
+ req: express.Request;
32
+ res: express.Response;
33
+ };
34
+ export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
35
+ //# sourceMappingURL=upsertSet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upsertSet.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/set/upsertSet.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAO,KAAK,iBAAiB,MAAM,QAAQ,CAAA;AAE3C,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,MAAM,WAAW,GAAG,iBAAiB,CAAC,GAAG,CAAA;AAC/C,MAAM,MAAM,YAAY,GAAG,iBAAiB,CAAC,OAAO,CAAA;AAEpD,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=upsertSet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upsertSet.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/set/upsertSet.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/pds",
3
- "version": "0.4.64",
3
+ "version": "0.4.65",
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.11",
48
+ "@atproto/api": "^0.13.12",
49
49
  "@atproto/aws": "^0.2.7",
50
50
  "@atproto/common": "^0.4.4",
51
51
  "@atproto/crypto": "^0.4.1",
@@ -73,8 +73,8 @@
73
73
  "jest": "^28.1.2",
74
74
  "ts-node": "^10.8.2",
75
75
  "ws": "^8.12.0",
76
- "@atproto/api": "^0.13.11",
77
- "@atproto/bsky": "^0.0.88",
76
+ "@atproto/api": "^0.13.12",
77
+ "@atproto/bsky": "^0.0.89",
78
78
  "@atproto/lex-cli": "^0.5.1"
79
79
  },
80
80
  "scripts": {
@@ -173,6 +173,12 @@ import * as ToolsOzoneModerationQueryEvents from './types/tools/ozone/moderation
173
173
  import * as ToolsOzoneModerationQueryStatuses from './types/tools/ozone/moderation/queryStatuses'
174
174
  import * as ToolsOzoneModerationSearchRepos from './types/tools/ozone/moderation/searchRepos'
175
175
  import * as ToolsOzoneServerGetConfig from './types/tools/ozone/server/getConfig'
176
+ import * as ToolsOzoneSetAddValues from './types/tools/ozone/set/addValues'
177
+ import * as ToolsOzoneSetDeleteSet from './types/tools/ozone/set/deleteSet'
178
+ import * as ToolsOzoneSetDeleteValues from './types/tools/ozone/set/deleteValues'
179
+ import * as ToolsOzoneSetGetValues from './types/tools/ozone/set/getValues'
180
+ import * as ToolsOzoneSetQuerySets from './types/tools/ozone/set/querySets'
181
+ import * as ToolsOzoneSetUpsertSet from './types/tools/ozone/set/upsertSet'
176
182
  import * as ToolsOzoneSignatureFindCorrelation from './types/tools/ozone/signature/findCorrelation'
177
183
  import * as ToolsOzoneSignatureFindRelatedAccounts from './types/tools/ozone/signature/findRelatedAccounts'
178
184
  import * as ToolsOzoneSignatureSearchAccounts from './types/tools/ozone/signature/searchAccounts'
@@ -2164,6 +2170,7 @@ export class ToolsOzoneNS {
2164
2170
  communication: ToolsOzoneCommunicationNS
2165
2171
  moderation: ToolsOzoneModerationNS
2166
2172
  server: ToolsOzoneServerNS
2173
+ set: ToolsOzoneSetNS
2167
2174
  signature: ToolsOzoneSignatureNS
2168
2175
  team: ToolsOzoneTeamNS
2169
2176
 
@@ -2172,6 +2179,7 @@ export class ToolsOzoneNS {
2172
2179
  this.communication = new ToolsOzoneCommunicationNS(server)
2173
2180
  this.moderation = new ToolsOzoneModerationNS(server)
2174
2181
  this.server = new ToolsOzoneServerNS(server)
2182
+ this.set = new ToolsOzoneSetNS(server)
2175
2183
  this.signature = new ToolsOzoneSignatureNS(server)
2176
2184
  this.team = new ToolsOzoneTeamNS(server)
2177
2185
  }
@@ -2355,6 +2363,80 @@ export class ToolsOzoneServerNS {
2355
2363
  }
2356
2364
  }
2357
2365
 
2366
+ export class ToolsOzoneSetNS {
2367
+ _server: Server
2368
+
2369
+ constructor(server: Server) {
2370
+ this._server = server
2371
+ }
2372
+
2373
+ addValues<AV extends AuthVerifier>(
2374
+ cfg: ConfigOf<
2375
+ AV,
2376
+ ToolsOzoneSetAddValues.Handler<ExtractAuth<AV>>,
2377
+ ToolsOzoneSetAddValues.HandlerReqCtx<ExtractAuth<AV>>
2378
+ >,
2379
+ ) {
2380
+ const nsid = 'tools.ozone.set.addValues' // @ts-ignore
2381
+ return this._server.xrpc.method(nsid, cfg)
2382
+ }
2383
+
2384
+ deleteSet<AV extends AuthVerifier>(
2385
+ cfg: ConfigOf<
2386
+ AV,
2387
+ ToolsOzoneSetDeleteSet.Handler<ExtractAuth<AV>>,
2388
+ ToolsOzoneSetDeleteSet.HandlerReqCtx<ExtractAuth<AV>>
2389
+ >,
2390
+ ) {
2391
+ const nsid = 'tools.ozone.set.deleteSet' // @ts-ignore
2392
+ return this._server.xrpc.method(nsid, cfg)
2393
+ }
2394
+
2395
+ deleteValues<AV extends AuthVerifier>(
2396
+ cfg: ConfigOf<
2397
+ AV,
2398
+ ToolsOzoneSetDeleteValues.Handler<ExtractAuth<AV>>,
2399
+ ToolsOzoneSetDeleteValues.HandlerReqCtx<ExtractAuth<AV>>
2400
+ >,
2401
+ ) {
2402
+ const nsid = 'tools.ozone.set.deleteValues' // @ts-ignore
2403
+ return this._server.xrpc.method(nsid, cfg)
2404
+ }
2405
+
2406
+ getValues<AV extends AuthVerifier>(
2407
+ cfg: ConfigOf<
2408
+ AV,
2409
+ ToolsOzoneSetGetValues.Handler<ExtractAuth<AV>>,
2410
+ ToolsOzoneSetGetValues.HandlerReqCtx<ExtractAuth<AV>>
2411
+ >,
2412
+ ) {
2413
+ const nsid = 'tools.ozone.set.getValues' // @ts-ignore
2414
+ return this._server.xrpc.method(nsid, cfg)
2415
+ }
2416
+
2417
+ querySets<AV extends AuthVerifier>(
2418
+ cfg: ConfigOf<
2419
+ AV,
2420
+ ToolsOzoneSetQuerySets.Handler<ExtractAuth<AV>>,
2421
+ ToolsOzoneSetQuerySets.HandlerReqCtx<ExtractAuth<AV>>
2422
+ >,
2423
+ ) {
2424
+ const nsid = 'tools.ozone.set.querySets' // @ts-ignore
2425
+ return this._server.xrpc.method(nsid, cfg)
2426
+ }
2427
+
2428
+ upsertSet<AV extends AuthVerifier>(
2429
+ cfg: ConfigOf<
2430
+ AV,
2431
+ ToolsOzoneSetUpsertSet.Handler<ExtractAuth<AV>>,
2432
+ ToolsOzoneSetUpsertSet.HandlerReqCtx<ExtractAuth<AV>>
2433
+ >,
2434
+ ) {
2435
+ const nsid = 'tools.ozone.set.upsertSet' // @ts-ignore
2436
+ return this._server.xrpc.method(nsid, cfg)
2437
+ }
2438
+ }
2439
+
2358
2440
  export class ToolsOzoneSignatureNS {
2359
2441
  _server: Server
2360
2442