@atproto/lex-client 0.0.0
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.
- package/dist/agent.d.ts +33 -0
- package/dist/agent.d.ts.map +1 -0
- package/dist/agent.js +21 -0
- package/dist/agent.js.map +1 -0
- package/dist/client.d.ts +456 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +236 -0
- package/dist/client.js.map +1 -0
- package/dist/error.d.ts +70 -0
- package/dist/error.d.ts.map +1 -0
- package/dist/error.js +98 -0
- package/dist/error.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/lexicons/com/atproto/repo/createRecord.d.ts +3 -0
- package/dist/lexicons/com/atproto/repo/createRecord.d.ts.map +1 -0
- package/dist/lexicons/com/atproto/repo/createRecord.defs.d.ts +100 -0
- package/dist/lexicons/com/atproto/repo/createRecord.defs.d.ts.map +1 -0
- package/dist/lexicons/com/atproto/repo/createRecord.defs.js +42 -0
- package/dist/lexicons/com/atproto/repo/createRecord.defs.js.map +1 -0
- package/dist/lexicons/com/atproto/repo/createRecord.js +10 -0
- package/dist/lexicons/com/atproto/repo/createRecord.js.map +1 -0
- package/dist/lexicons/com/atproto/repo/defs.d.ts +3 -0
- package/dist/lexicons/com/atproto/repo/defs.d.ts.map +1 -0
- package/dist/lexicons/com/atproto/repo/defs.defs.d.ts +12 -0
- package/dist/lexicons/com/atproto/repo/defs.defs.d.ts.map +1 -0
- package/dist/lexicons/com/atproto/repo/defs.defs.js +16 -0
- package/dist/lexicons/com/atproto/repo/defs.defs.js.map +1 -0
- package/dist/lexicons/com/atproto/repo/defs.js +10 -0
- package/dist/lexicons/com/atproto/repo/defs.js.map +1 -0
- package/dist/lexicons/com/atproto/repo/deleteRecord.d.ts +3 -0
- package/dist/lexicons/com/atproto/repo/deleteRecord.d.ts.map +1 -0
- package/dist/lexicons/com/atproto/repo/deleteRecord.defs.d.ts +70 -0
- package/dist/lexicons/com/atproto/repo/deleteRecord.defs.d.ts.map +1 -0
- package/dist/lexicons/com/atproto/repo/deleteRecord.defs.js +33 -0
- package/dist/lexicons/com/atproto/repo/deleteRecord.defs.js.map +1 -0
- package/dist/lexicons/com/atproto/repo/deleteRecord.js +10 -0
- package/dist/lexicons/com/atproto/repo/deleteRecord.js.map +1 -0
- package/dist/lexicons/com/atproto/repo/getRecord.d.ts +3 -0
- package/dist/lexicons/com/atproto/repo/getRecord.d.ts.map +1 -0
- package/dist/lexicons/com/atproto/repo/getRecord.defs.d.ts +82 -0
- package/dist/lexicons/com/atproto/repo/getRecord.defs.d.ts.map +1 -0
- package/dist/lexicons/com/atproto/repo/getRecord.defs.js +30 -0
- package/dist/lexicons/com/atproto/repo/getRecord.defs.js.map +1 -0
- package/dist/lexicons/com/atproto/repo/getRecord.js +10 -0
- package/dist/lexicons/com/atproto/repo/getRecord.js.map +1 -0
- package/dist/lexicons/com/atproto/repo/listRecords.d.ts +3 -0
- package/dist/lexicons/com/atproto/repo/listRecords.d.ts.map +1 -0
- package/dist/lexicons/com/atproto/repo/listRecords.defs.d.ts +75 -0
- package/dist/lexicons/com/atproto/repo/listRecords.defs.d.ts.map +1 -0
- package/dist/lexicons/com/atproto/repo/listRecords.defs.js +42 -0
- package/dist/lexicons/com/atproto/repo/listRecords.defs.js.map +1 -0
- package/dist/lexicons/com/atproto/repo/listRecords.js +10 -0
- package/dist/lexicons/com/atproto/repo/listRecords.js.map +1 -0
- package/dist/lexicons/com/atproto/repo/putRecord.d.ts +3 -0
- package/dist/lexicons/com/atproto/repo/putRecord.d.ts.map +1 -0
- package/dist/lexicons/com/atproto/repo/putRecord.defs.d.ts +110 -0
- package/dist/lexicons/com/atproto/repo/putRecord.defs.d.ts.map +1 -0
- package/dist/lexicons/com/atproto/repo/putRecord.defs.js +46 -0
- package/dist/lexicons/com/atproto/repo/putRecord.defs.js.map +1 -0
- package/dist/lexicons/com/atproto/repo/putRecord.js +10 -0
- package/dist/lexicons/com/atproto/repo/putRecord.js.map +1 -0
- package/dist/lexicons/com/atproto/repo/uploadBlob.d.ts +3 -0
- package/dist/lexicons/com/atproto/repo/uploadBlob.d.ts.map +1 -0
- package/dist/lexicons/com/atproto/repo/uploadBlob.defs.d.ts +25 -0
- package/dist/lexicons/com/atproto/repo/uploadBlob.defs.d.ts.map +1 -0
- package/dist/lexicons/com/atproto/repo/uploadBlob.defs.js +22 -0
- package/dist/lexicons/com/atproto/repo/uploadBlob.defs.js.map +1 -0
- package/dist/lexicons/com/atproto/repo/uploadBlob.js +10 -0
- package/dist/lexicons/com/atproto/repo/uploadBlob.js.map +1 -0
- package/dist/lexicons/com/atproto/repo.d.ts +8 -0
- package/dist/lexicons/com/atproto/repo.d.ts.map +1 -0
- package/dist/lexicons/com/atproto/repo.js +15 -0
- package/dist/lexicons/com/atproto/repo.js.map +1 -0
- package/dist/lexicons/com/atproto.d.ts +2 -0
- package/dist/lexicons/com/atproto.d.ts.map +1 -0
- package/dist/lexicons/com/atproto.js +9 -0
- package/dist/lexicons/com/atproto.js.map +1 -0
- package/dist/lexicons/com.d.ts +2 -0
- package/dist/lexicons/com.d.ts.map +1 -0
- package/dist/lexicons/com.js +9 -0
- package/dist/lexicons/com.js.map +1 -0
- package/dist/response.d.ts +21 -0
- package/dist/response.d.ts.map +1 -0
- package/dist/response.js +31 -0
- package/dist/response.js.map +1 -0
- package/dist/types.d.ts +17 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +7 -0
- package/dist/types.js.map +1 -0
- package/dist/xrpc.d.ts +37 -0
- package/dist/xrpc.d.ts.map +1 -0
- package/dist/xrpc.js +185 -0
- package/dist/xrpc.js.map +1 -0
- package/jest.config.js +5 -0
- package/package.json +46 -0
- package/scripts/lex-build.mjs +40 -0
- package/src/agent.ts +63 -0
- package/src/client.ts +513 -0
- package/src/error.ts +154 -0
- package/src/index.ts +6 -0
- package/src/response.ts +42 -0
- package/src/types.ts +21 -0
- package/src/xrpc.ts +335 -0
- package/tests/client.test.ts +370 -0
- package/tsconfig.build.json +12 -0
- package/tsconfig.build.tsbuildinfo +1 -0
- package/tsconfig.json +7 -0
- package/tsconfig.tests.json +12 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.$output = exports.$input = exports.$params = exports.main = exports.$nsid = void 0;
|
|
7
|
+
const tslib_1 = require("tslib");
|
|
8
|
+
const lex_schema_1 = require("@atproto/lex-schema");
|
|
9
|
+
const RepoDefs = tslib_1.__importStar(require("./defs.defs.js"));
|
|
10
|
+
const $nsid = 'com.atproto.repo.createRecord';
|
|
11
|
+
exports.$nsid = $nsid;
|
|
12
|
+
/**
|
|
13
|
+
* Create a single new repository record. Requires auth, implemented by PDS.
|
|
14
|
+
*/
|
|
15
|
+
const main =
|
|
16
|
+
/*#__PURE__*/
|
|
17
|
+
lex_schema_1.l.procedure($nsid,
|
|
18
|
+
/*#__PURE__*/ lex_schema_1.l.params({}),
|
|
19
|
+
/*#__PURE__*/ lex_schema_1.l.payload('application/json',
|
|
20
|
+
/*#__PURE__*/ lex_schema_1.l.object({
|
|
21
|
+
repo: /*#__PURE__*/ lex_schema_1.l.string({ format: 'at-identifier' }),
|
|
22
|
+
collection: /*#__PURE__*/ lex_schema_1.l.string({ format: 'nsid' }),
|
|
23
|
+
rkey: /*#__PURE__*/ lex_schema_1.l.string({
|
|
24
|
+
format: 'record-key',
|
|
25
|
+
maxLength: 512,
|
|
26
|
+
}),
|
|
27
|
+
validate: /*#__PURE__*/ lex_schema_1.l.boolean(),
|
|
28
|
+
record: /*#__PURE__*/ lex_schema_1.l.unknownObject(),
|
|
29
|
+
swapCommit: /*#__PURE__*/ lex_schema_1.l.string({ format: 'cid' }),
|
|
30
|
+
}, { required: ['repo', 'collection', 'record'] })),
|
|
31
|
+
/*#__PURE__*/ lex_schema_1.l.payload('application/json',
|
|
32
|
+
/*#__PURE__*/ lex_schema_1.l.object({
|
|
33
|
+
uri: /*#__PURE__*/ lex_schema_1.l.string({ format: 'at-uri' }),
|
|
34
|
+
cid: /*#__PURE__*/ lex_schema_1.l.string({ format: 'cid' }),
|
|
35
|
+
commit: /*#__PURE__*/ lex_schema_1.l.ref((() => RepoDefs.commitMeta)),
|
|
36
|
+
validationStatus: /*#__PURE__*/ lex_schema_1.l.string({
|
|
37
|
+
knownValues: ['valid', 'unknown'],
|
|
38
|
+
}),
|
|
39
|
+
}, { required: ['uri', 'cid'] })), ['InvalidSwap']);
|
|
40
|
+
exports.main = main;
|
|
41
|
+
exports.$params = main.parameters, exports.$input = main.input, exports.$output = main.output;
|
|
42
|
+
//# sourceMappingURL=createRecord.defs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createRecord.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/com/atproto/repo/createRecord.defs.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;AAEH,oDAAuC;AACvC,iEAA0C;AAE1C,MAAM,KAAK,GAAG,+BAA+B,CAAA;AAEpC,sBAAK;AAEd;;GAEG;AACH,MAAM,IAAI;AACR,aAAa;AACb,cAAC,CAAC,SAAS,CACT,KAAK;AACL,aAAa,CAAC,cAAC,CAAC,MAAM,CAAC,EAAE,CAAC;AAC1B,aAAa,CAAC,cAAC,CAAC,OAAO,CACrB,kBAAkB;AAClB,aAAa,CAAC,cAAC,CAAC,MAAM,CACpB;IACE,IAAI,EAAE,aAAa,CAAC,cAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,CAAC;IACzD,UAAU,EAAE,aAAa,CAAC,cAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IACtD,IAAI,EAAE,aAAa,CAAC,cAAC,CAAC,MA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.js'\n\nconst $nsid = 'com.atproto.repo.createRecord'\n\nexport { $nsid }\n\n/**\n * Create a single new repository record. Requires auth, implemented by PDS.\n */\nconst main =\n /*#__PURE__*/\n l.procedure(\n $nsid,\n /*#__PURE__*/ l.params({}),\n /*#__PURE__*/ l.payload(\n 'application/json',\n /*#__PURE__*/ l.object(\n {\n repo: /*#__PURE__*/ l.string({ format: 'at-identifier' }),\n collection: /*#__PURE__*/ l.string({ format: 'nsid' }),\n rkey: /*#__PURE__*/ l.string({\n format: 'record-key',\n maxLength: 512,\n }),\n validate: /*#__PURE__*/ l.boolean(),\n record: /*#__PURE__*/ l.unknownObject(),\n swapCommit: /*#__PURE__*/ l.string({ format: 'cid' }),\n },\n { required: ['repo', 'collection', 'record'] },\n ),\n ),\n /*#__PURE__*/ l.payload(\n 'application/json',\n /*#__PURE__*/ l.object(\n {\n uri: /*#__PURE__*/ l.string({ format: 'at-uri' }),\n cid: /*#__PURE__*/ l.string({ format: 'cid' }),\n commit: /*#__PURE__*/ l.ref<RepoDefs.CommitMeta>(\n (() => RepoDefs.commitMeta) as any,\n ),\n validationStatus: /*#__PURE__*/ l.string({\n knownValues: ['valid', 'unknown'],\n }),\n },\n { required: ['uri', 'cid'] },\n ),\n ),\n ['InvalidSwap'],\n )\nexport { main }\n\nexport const $params = /*#__PURE__*/ main.parameters,\n $input = /*#__PURE__*/ main.input,\n $output = /*#__PURE__*/ main.output\n\nexport type Params = l.InferProcedureParameters<typeof main>\nexport type Input = l.InferProcedureInputBody<typeof main>\nexport type Output = l.InferProcedureOutputBody<typeof main>\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.$defs = void 0;
|
|
7
|
+
const tslib_1 = require("tslib");
|
|
8
|
+
tslib_1.__exportStar(require("./createRecord.defs.js"), exports);
|
|
9
|
+
exports.$defs = tslib_1.__importStar(require("./createRecord.defs.js"));
|
|
10
|
+
//# sourceMappingURL=createRecord.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createRecord.js","sourceRoot":"","sources":["../../../../../src/lexicons/com/atproto/repo/createRecord.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;AAEH,iEAAsC;AACtC,wEAA+C","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './createRecord.defs.js'\nexport * as $defs from './createRecord.defs.js'\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/com/atproto/repo/defs.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAA;AAC9B,OAAO,KAAK,KAAK,MAAM,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { l } from '@atproto/lex-schema';
|
|
2
|
+
declare const $nsid = "com.atproto.repo.defs";
|
|
3
|
+
export { $nsid };
|
|
4
|
+
type CommitMeta = {
|
|
5
|
+
$type?: 'com.atproto.repo.defs#commitMeta';
|
|
6
|
+
cid: string;
|
|
7
|
+
rev: string;
|
|
8
|
+
};
|
|
9
|
+
export type { CommitMeta };
|
|
10
|
+
declare const commitMeta: l.TypedObjectSchema<"com.atproto.repo.defs#commitMeta", l.Validator<Omit<CommitMeta, "$type">>, CommitMeta>;
|
|
11
|
+
export { commitMeta };
|
|
12
|
+
//# sourceMappingURL=defs.defs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defs.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/com/atproto/repo/defs.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,qBAAqB,CAAA;AAEvC,QAAA,MAAM,KAAK,0BAA0B,CAAA;AAErC,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,KAAK,UAAU,GAAG;IAChB,KAAK,CAAC,EAAE,kCAAkC,CAAA;IAC1C,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,YAAY,EAAE,UAAU,EAAE,CAAA;AAE1B,QAAA,MAAM,UAAU,6GAUf,CAAA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.commitMeta = exports.$nsid = void 0;
|
|
7
|
+
const lex_schema_1 = require("@atproto/lex-schema");
|
|
8
|
+
const $nsid = 'com.atproto.repo.defs';
|
|
9
|
+
exports.$nsid = $nsid;
|
|
10
|
+
const commitMeta = /*#__PURE__*/ lex_schema_1.l.typedObject($nsid, 'commitMeta',
|
|
11
|
+
/*#__PURE__*/ lex_schema_1.l.object({
|
|
12
|
+
cid: /*#__PURE__*/ lex_schema_1.l.string({ format: 'cid' }),
|
|
13
|
+
rev: /*#__PURE__*/ lex_schema_1.l.string({ format: 'tid' }),
|
|
14
|
+
}, { required: ['cid', 'rev'] }));
|
|
15
|
+
exports.commitMeta = commitMeta;
|
|
16
|
+
//# sourceMappingURL=defs.defs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defs.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/com/atproto/repo/defs.defs.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,oDAAuC;AAEvC,MAAM,KAAK,GAAG,uBAAuB,CAAA;AAE5B,sBAAK;AAUd,MAAM,UAAU,GAAG,aAAa,CAAC,cAAC,CAAC,WAAW,CAC5C,KAAK,EACL,YAAY;AACZ,aAAa,CAAC,cAAC,CAAC,MAAM,CACpB;IACE,GAAG,EAAE,aAAa,CAAC,cAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAC9C,GAAG,EAAE,aAAa,CAAC,cAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;CAC/C,EACD,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE,CAC7B,CACF,CAAA;AAEQ,gCAAU","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex-schema'\n\nconst $nsid = 'com.atproto.repo.defs'\n\nexport { $nsid }\n\ntype CommitMeta = {\n $type?: 'com.atproto.repo.defs#commitMeta'\n cid: string\n rev: string\n}\n\nexport type { CommitMeta }\n\nconst commitMeta = /*#__PURE__*/ l.typedObject<CommitMeta>(\n $nsid,\n 'commitMeta',\n /*#__PURE__*/ l.object(\n {\n cid: /*#__PURE__*/ l.string({ format: 'cid' }),\n rev: /*#__PURE__*/ l.string({ format: 'tid' }),\n },\n { required: ['cid', 'rev'] },\n ),\n)\n\nexport { commitMeta }\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.$defs = void 0;
|
|
7
|
+
const tslib_1 = require("tslib");
|
|
8
|
+
tslib_1.__exportStar(require("./defs.defs.js"), exports);
|
|
9
|
+
exports.$defs = tslib_1.__importStar(require("./defs.defs.js"));
|
|
10
|
+
//# sourceMappingURL=defs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/com/atproto/repo/defs.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;AAEH,yDAA8B;AAC9B,gEAAuC","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './defs.defs.js'\nexport * as $defs from './defs.defs.js'\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteRecord.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/com/atproto/repo/deleteRecord.ts"],"names":[],"mappings":"AAIA,cAAc,wBAAwB,CAAA;AACtC,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAA"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { l } from '@atproto/lex-schema';
|
|
2
|
+
import * as RepoDefs from './defs.defs.js';
|
|
3
|
+
declare const $nsid = "com.atproto.repo.deleteRecord";
|
|
4
|
+
export { $nsid };
|
|
5
|
+
/**
|
|
6
|
+
* Delete a repository record, or ensure it doesn't exist. Requires auth, implemented by PDS.
|
|
7
|
+
*/
|
|
8
|
+
declare const main: l.Procedure<"com.atproto.repo.deleteRecord", l.ParamsSchema<{}, l.ParamsSchemaOptions, {}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
9
|
+
readonly repo: l.StringSchema<{
|
|
10
|
+
readonly format: "at-identifier";
|
|
11
|
+
}>;
|
|
12
|
+
readonly collection: l.StringSchema<{
|
|
13
|
+
readonly format: "nsid";
|
|
14
|
+
}>;
|
|
15
|
+
readonly rkey: l.StringSchema<{
|
|
16
|
+
readonly format: "record-key";
|
|
17
|
+
}>;
|
|
18
|
+
readonly swapRecord: l.StringSchema<{
|
|
19
|
+
readonly format: "cid";
|
|
20
|
+
}>;
|
|
21
|
+
readonly swapCommit: l.StringSchema<{
|
|
22
|
+
readonly format: "cid";
|
|
23
|
+
}>;
|
|
24
|
+
}, {
|
|
25
|
+
readonly required: readonly ["repo", "collection", "rkey"];
|
|
26
|
+
}, {
|
|
27
|
+
repo: l.AtIdentifier;
|
|
28
|
+
collection: `${string}.${string}.${string}`;
|
|
29
|
+
rkey: string;
|
|
30
|
+
swapCommit?: string | undefined;
|
|
31
|
+
swapRecord?: string | undefined;
|
|
32
|
+
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
33
|
+
readonly commit: l.RefSchema<RepoDefs.CommitMeta>;
|
|
34
|
+
}, {}, {
|
|
35
|
+
commit?: RepoDefs.CommitMeta | undefined;
|
|
36
|
+
}>>, readonly ["InvalidSwap"]>;
|
|
37
|
+
export { main };
|
|
38
|
+
export declare const $params: l.ParamsSchema<{}, l.ParamsSchemaOptions, {}>, $input: l.Payload<"application/json", l.ObjectSchema<{
|
|
39
|
+
readonly repo: l.StringSchema<{
|
|
40
|
+
readonly format: "at-identifier";
|
|
41
|
+
}>;
|
|
42
|
+
readonly collection: l.StringSchema<{
|
|
43
|
+
readonly format: "nsid";
|
|
44
|
+
}>;
|
|
45
|
+
readonly rkey: l.StringSchema<{
|
|
46
|
+
readonly format: "record-key";
|
|
47
|
+
}>;
|
|
48
|
+
readonly swapRecord: l.StringSchema<{
|
|
49
|
+
readonly format: "cid";
|
|
50
|
+
}>;
|
|
51
|
+
readonly swapCommit: l.StringSchema<{
|
|
52
|
+
readonly format: "cid";
|
|
53
|
+
}>;
|
|
54
|
+
}, {
|
|
55
|
+
readonly required: readonly ["repo", "collection", "rkey"];
|
|
56
|
+
}, {
|
|
57
|
+
repo: l.AtIdentifier;
|
|
58
|
+
collection: `${string}.${string}.${string}`;
|
|
59
|
+
rkey: string;
|
|
60
|
+
swapCommit?: string | undefined;
|
|
61
|
+
swapRecord?: string | undefined;
|
|
62
|
+
}>>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
63
|
+
readonly commit: l.RefSchema<RepoDefs.CommitMeta>;
|
|
64
|
+
}, {}, {
|
|
65
|
+
commit?: RepoDefs.CommitMeta | undefined;
|
|
66
|
+
}>>;
|
|
67
|
+
export type Params = l.InferProcedureParameters<typeof main>;
|
|
68
|
+
export type Input = l.InferProcedureInputBody<typeof main>;
|
|
69
|
+
export type Output = l.InferProcedureOutputBody<typeof main>;
|
|
70
|
+
//# sourceMappingURL=deleteRecord.defs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteRecord.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/com/atproto/repo/deleteRecord.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,qBAAqB,CAAA;AACvC,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAA;AAE1C,QAAA,MAAM,KAAK,kCAAkC,CAAA;AAE7C,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB;;GAEG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BA2BP,CAAA;AACH,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,eAAO,MAAM,OAAO,+CAAgC,EAClD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;GAA2B,EACjC,OAAO;;;;GAA4B,CAAA;AAErC,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,wBAAwB,CAAC,OAAO,IAAI,CAAC,CAAA;AAC5D,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,uBAAuB,CAAC,OAAO,IAAI,CAAC,CAAA;AAC1D,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,wBAAwB,CAAC,OAAO,IAAI,CAAC,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.$output = exports.$input = exports.$params = exports.main = exports.$nsid = void 0;
|
|
7
|
+
const tslib_1 = require("tslib");
|
|
8
|
+
const lex_schema_1 = require("@atproto/lex-schema");
|
|
9
|
+
const RepoDefs = tslib_1.__importStar(require("./defs.defs.js"));
|
|
10
|
+
const $nsid = 'com.atproto.repo.deleteRecord';
|
|
11
|
+
exports.$nsid = $nsid;
|
|
12
|
+
/**
|
|
13
|
+
* Delete a repository record, or ensure it doesn't exist. Requires auth, implemented by PDS.
|
|
14
|
+
*/
|
|
15
|
+
const main =
|
|
16
|
+
/*#__PURE__*/
|
|
17
|
+
lex_schema_1.l.procedure($nsid,
|
|
18
|
+
/*#__PURE__*/ lex_schema_1.l.params({}),
|
|
19
|
+
/*#__PURE__*/ lex_schema_1.l.payload('application/json',
|
|
20
|
+
/*#__PURE__*/ lex_schema_1.l.object({
|
|
21
|
+
repo: /*#__PURE__*/ lex_schema_1.l.string({ format: 'at-identifier' }),
|
|
22
|
+
collection: /*#__PURE__*/ lex_schema_1.l.string({ format: 'nsid' }),
|
|
23
|
+
rkey: /*#__PURE__*/ lex_schema_1.l.string({ format: 'record-key' }),
|
|
24
|
+
swapRecord: /*#__PURE__*/ lex_schema_1.l.string({ format: 'cid' }),
|
|
25
|
+
swapCommit: /*#__PURE__*/ lex_schema_1.l.string({ format: 'cid' }),
|
|
26
|
+
}, { required: ['repo', 'collection', 'rkey'] })),
|
|
27
|
+
/*#__PURE__*/ lex_schema_1.l.payload('application/json',
|
|
28
|
+
/*#__PURE__*/ lex_schema_1.l.object({
|
|
29
|
+
commit: /*#__PURE__*/ lex_schema_1.l.ref((() => RepoDefs.commitMeta)),
|
|
30
|
+
})), ['InvalidSwap']);
|
|
31
|
+
exports.main = main;
|
|
32
|
+
exports.$params = main.parameters, exports.$input = main.input, exports.$output = main.output;
|
|
33
|
+
//# sourceMappingURL=deleteRecord.defs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteRecord.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/com/atproto/repo/deleteRecord.defs.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;AAEH,oDAAuC;AACvC,iEAA0C;AAE1C,MAAM,KAAK,GAAG,+BAA+B,CAAA;AAEpC,sBAAK;AAEd;;GAEG;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lex-schema'\nimport * as RepoDefs from './defs.defs.js'\n\nconst $nsid = 'com.atproto.repo.deleteRecord'\n\nexport { $nsid }\n\n/**\n * Delete a repository record, or ensure it doesn't exist. Requires auth, implemented by PDS.\n */\nconst main =\n /*#__PURE__*/\n l.procedure(\n $nsid,\n /*#__PURE__*/ l.params({}),\n /*#__PURE__*/ l.payload(\n 'application/json',\n /*#__PURE__*/ l.object(\n {\n repo: /*#__PURE__*/ l.string({ format: 'at-identifier' }),\n collection: /*#__PURE__*/ l.string({ format: 'nsid' }),\n rkey: /*#__PURE__*/ l.string({ format: 'record-key' }),\n swapRecord: /*#__PURE__*/ l.string({ format: 'cid' }),\n swapCommit: /*#__PURE__*/ l.string({ format: 'cid' }),\n },\n { required: ['repo', 'collection', 'rkey'] },\n ),\n ),\n /*#__PURE__*/ l.payload(\n 'application/json',\n /*#__PURE__*/ l.object({\n commit: /*#__PURE__*/ l.ref<RepoDefs.CommitMeta>(\n (() => RepoDefs.commitMeta) as any,\n ),\n }),\n ),\n ['InvalidSwap'],\n )\nexport { main }\n\nexport const $params = /*#__PURE__*/ main.parameters,\n $input = /*#__PURE__*/ main.input,\n $output = /*#__PURE__*/ main.output\n\nexport type Params = l.InferProcedureParameters<typeof main>\nexport type Input = l.InferProcedureInputBody<typeof main>\nexport type Output = l.InferProcedureOutputBody<typeof main>\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.$defs = void 0;
|
|
7
|
+
const tslib_1 = require("tslib");
|
|
8
|
+
tslib_1.__exportStar(require("./deleteRecord.defs.js"), exports);
|
|
9
|
+
exports.$defs = tslib_1.__importStar(require("./deleteRecord.defs.js"));
|
|
10
|
+
//# sourceMappingURL=deleteRecord.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteRecord.js","sourceRoot":"","sources":["../../../../../src/lexicons/com/atproto/repo/deleteRecord.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;AAEH,iEAAsC;AACtC,wEAA+C","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './deleteRecord.defs.js'\nexport * as $defs from './deleteRecord.defs.js'\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRecord.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/com/atproto/repo/getRecord.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAA;AACnC,OAAO,KAAK,KAAK,MAAM,qBAAqB,CAAA"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { l } from '@atproto/lex-schema';
|
|
2
|
+
declare const $nsid = "com.atproto.repo.getRecord";
|
|
3
|
+
export { $nsid };
|
|
4
|
+
/**
|
|
5
|
+
* Get a single record from a repository. Does not require auth.
|
|
6
|
+
*/
|
|
7
|
+
declare const main: l.Query<"com.atproto.repo.getRecord", l.ParamsSchema<{
|
|
8
|
+
readonly repo: l.StringSchema<{
|
|
9
|
+
readonly format: "at-identifier";
|
|
10
|
+
}>;
|
|
11
|
+
readonly collection: l.StringSchema<{
|
|
12
|
+
readonly format: "nsid";
|
|
13
|
+
}>;
|
|
14
|
+
readonly rkey: l.StringSchema<{
|
|
15
|
+
readonly format: "record-key";
|
|
16
|
+
}>;
|
|
17
|
+
readonly cid: l.StringSchema<{
|
|
18
|
+
readonly format: "cid";
|
|
19
|
+
}>;
|
|
20
|
+
}, {
|
|
21
|
+
readonly required: readonly ["repo", "collection", "rkey"];
|
|
22
|
+
}, {
|
|
23
|
+
repo: l.AtIdentifier;
|
|
24
|
+
collection: `${string}.${string}.${string}`;
|
|
25
|
+
rkey: string;
|
|
26
|
+
} & {
|
|
27
|
+
cid?: string | undefined;
|
|
28
|
+
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
29
|
+
readonly uri: l.StringSchema<{
|
|
30
|
+
readonly format: "at-uri";
|
|
31
|
+
}>;
|
|
32
|
+
readonly cid: l.StringSchema<{
|
|
33
|
+
readonly format: "cid";
|
|
34
|
+
}>;
|
|
35
|
+
readonly value: l.UnknownObjectSchema;
|
|
36
|
+
}, {
|
|
37
|
+
readonly required: readonly ["uri", "value"];
|
|
38
|
+
}, {
|
|
39
|
+
uri: `at://did:${string}:${string}/${string}.${string}.${string}/${string}` | `at://${string}.${string}/${string}.${string}.${string}/${string}`;
|
|
40
|
+
value: l.LexMap;
|
|
41
|
+
cid?: string | undefined;
|
|
42
|
+
}>>, readonly ["RecordNotFound"]>;
|
|
43
|
+
export { main };
|
|
44
|
+
export declare const $params: l.ParamsSchema<{
|
|
45
|
+
readonly repo: l.StringSchema<{
|
|
46
|
+
readonly format: "at-identifier";
|
|
47
|
+
}>;
|
|
48
|
+
readonly collection: l.StringSchema<{
|
|
49
|
+
readonly format: "nsid";
|
|
50
|
+
}>;
|
|
51
|
+
readonly rkey: l.StringSchema<{
|
|
52
|
+
readonly format: "record-key";
|
|
53
|
+
}>;
|
|
54
|
+
readonly cid: l.StringSchema<{
|
|
55
|
+
readonly format: "cid";
|
|
56
|
+
}>;
|
|
57
|
+
}, {
|
|
58
|
+
readonly required: readonly ["repo", "collection", "rkey"];
|
|
59
|
+
}, {
|
|
60
|
+
repo: l.AtIdentifier;
|
|
61
|
+
collection: `${string}.${string}.${string}`;
|
|
62
|
+
rkey: string;
|
|
63
|
+
} & {
|
|
64
|
+
cid?: string | undefined;
|
|
65
|
+
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
66
|
+
readonly uri: l.StringSchema<{
|
|
67
|
+
readonly format: "at-uri";
|
|
68
|
+
}>;
|
|
69
|
+
readonly cid: l.StringSchema<{
|
|
70
|
+
readonly format: "cid";
|
|
71
|
+
}>;
|
|
72
|
+
readonly value: l.UnknownObjectSchema;
|
|
73
|
+
}, {
|
|
74
|
+
readonly required: readonly ["uri", "value"];
|
|
75
|
+
}, {
|
|
76
|
+
uri: `at://did:${string}:${string}/${string}.${string}.${string}/${string}` | `at://${string}.${string}/${string}.${string}.${string}/${string}`;
|
|
77
|
+
value: l.LexMap;
|
|
78
|
+
cid?: string | undefined;
|
|
79
|
+
}>>;
|
|
80
|
+
export type Params = l.InferQueryParameters<typeof main>;
|
|
81
|
+
export type Output = l.InferQueryOutputBody<typeof main>;
|
|
82
|
+
//# sourceMappingURL=getRecord.defs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRecord.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/com/atproto/repo/getRecord.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,qBAAqB,CAAA;AAEvC,QAAA,MAAM,KAAK,+BAA+B,CAAA;AAE1C,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB;;GAEG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAyBP,CAAA;AACH,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;EAAkB,EACpC,OAAO;;;;;;;;;;;;;;GAAc,CAAA;AAEvB,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,oBAAoB,CAAC,OAAO,IAAI,CAAC,CAAA;AACxD,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,oBAAoB,CAAC,OAAO,IAAI,CAAC,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.$output = exports.$params = exports.main = exports.$nsid = void 0;
|
|
7
|
+
const lex_schema_1 = require("@atproto/lex-schema");
|
|
8
|
+
const $nsid = 'com.atproto.repo.getRecord';
|
|
9
|
+
exports.$nsid = $nsid;
|
|
10
|
+
/**
|
|
11
|
+
* Get a single record from a repository. Does not require auth.
|
|
12
|
+
*/
|
|
13
|
+
const main =
|
|
14
|
+
/*#__PURE__*/
|
|
15
|
+
lex_schema_1.l.query($nsid,
|
|
16
|
+
/*#__PURE__*/ lex_schema_1.l.params({
|
|
17
|
+
repo: /*#__PURE__*/ lex_schema_1.l.string({ format: 'at-identifier' }),
|
|
18
|
+
collection: /*#__PURE__*/ lex_schema_1.l.string({ format: 'nsid' }),
|
|
19
|
+
rkey: /*#__PURE__*/ lex_schema_1.l.string({ format: 'record-key' }),
|
|
20
|
+
cid: /*#__PURE__*/ lex_schema_1.l.string({ format: 'cid' }),
|
|
21
|
+
}, { required: ['repo', 'collection', 'rkey'] }),
|
|
22
|
+
/*#__PURE__*/ lex_schema_1.l.payload('application/json',
|
|
23
|
+
/*#__PURE__*/ lex_schema_1.l.object({
|
|
24
|
+
uri: /*#__PURE__*/ lex_schema_1.l.string({ format: 'at-uri' }),
|
|
25
|
+
cid: /*#__PURE__*/ lex_schema_1.l.string({ format: 'cid' }),
|
|
26
|
+
value: /*#__PURE__*/ lex_schema_1.l.unknownObject(),
|
|
27
|
+
}, { required: ['uri', 'value'] })), ['RecordNotFound']);
|
|
28
|
+
exports.main = main;
|
|
29
|
+
exports.$params = main.parameters, exports.$output = main.output;
|
|
30
|
+
//# sourceMappingURL=getRecord.defs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRecord.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/com/atproto/repo/getRecord.defs.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,oDAAuC;AAEvC,MAAM,KAAK,GAAG,4BAA4B,CAAA;AAEjC,sBAAK;AAEd;;GAEG;AACH,MAAM,IAAI;AACR,aAAa;AACb,cAAC,CAAC,KAAK,CACL,KAAK;AACL,aAAa,CAAC,cAAC,CAAC,MAAM,CACpB;IACE,IAAI,EAAE,aAAa,CAAC,cAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,CAAC;IACzD,UAAU,EAAE,aAAa,CAAC,cAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IACtD,IAAI,EAAE,aAAa,CAAC,cAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC;IACtD,GAAG,EAAE,aAAa,CAAC,cAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;CAC/C,EACD,EAAE,QAAQ,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,CAC7C;AACD,aAAa,CAAC,cAAC,CAAC,OAAO,CACrB,kBAAkB;AAClB,aAAa,CAAC,cAAC,CAAC,MAAM,CACpB;IACE,GAAG,EAAE,aAAa,CAAC,cAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;IACjD,GAAG,EAAE,aAAa,CAAC,cAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAC9C,KAAK,EAAE,aAAa,CAAC,cAAC,CAAC,aAAa,EAAE;CACvC,EACD,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,EAAE,CAC/B,CACF,EACD,CAAC,gBAAgB,CAAC,CACnB,CAAA;AACM,oBAAI;AAEA,QAAA,OAAO,GAAG,IAAI,CAAC,UAAU,EACpC,QAAA,OAAO,GAAG,IAAI,CAAC,MAAM,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex-schema'\n\nconst $nsid = 'com.atproto.repo.getRecord'\n\nexport { $nsid }\n\n/**\n * Get a single record from a repository. Does not require auth.\n */\nconst main =\n /*#__PURE__*/\n l.query(\n $nsid,\n /*#__PURE__*/ l.params(\n {\n repo: /*#__PURE__*/ l.string({ format: 'at-identifier' }),\n collection: /*#__PURE__*/ l.string({ format: 'nsid' }),\n rkey: /*#__PURE__*/ l.string({ format: 'record-key' }),\n cid: /*#__PURE__*/ l.string({ format: 'cid' }),\n },\n { required: ['repo', 'collection', 'rkey'] },\n ),\n /*#__PURE__*/ l.payload(\n 'application/json',\n /*#__PURE__*/ l.object(\n {\n uri: /*#__PURE__*/ l.string({ format: 'at-uri' }),\n cid: /*#__PURE__*/ l.string({ format: 'cid' }),\n value: /*#__PURE__*/ l.unknownObject(),\n },\n { required: ['uri', 'value'] },\n ),\n ),\n ['RecordNotFound'],\n )\nexport { main }\n\nexport const $params = main.parameters,\n $output = main.output\n\nexport type Params = l.InferQueryParameters<typeof main>\nexport type Output = l.InferQueryOutputBody<typeof main>\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.$defs = void 0;
|
|
7
|
+
const tslib_1 = require("tslib");
|
|
8
|
+
tslib_1.__exportStar(require("./getRecord.defs.js"), exports);
|
|
9
|
+
exports.$defs = tslib_1.__importStar(require("./getRecord.defs.js"));
|
|
10
|
+
//# sourceMappingURL=getRecord.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRecord.js","sourceRoot":"","sources":["../../../../../src/lexicons/com/atproto/repo/getRecord.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;AAEH,8DAAmC;AACnC,qEAA4C","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './getRecord.defs.js'\nexport * as $defs from './getRecord.defs.js'\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listRecords.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/com/atproto/repo/listRecords.ts"],"names":[],"mappings":"AAIA,cAAc,uBAAuB,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { l } from '@atproto/lex-schema';
|
|
2
|
+
declare const $nsid = "com.atproto.repo.listRecords";
|
|
3
|
+
export { $nsid };
|
|
4
|
+
/**
|
|
5
|
+
* List a range of records in a repository, matching a specific collection. Does not require auth.
|
|
6
|
+
*/
|
|
7
|
+
declare const main: l.Query<"com.atproto.repo.listRecords", l.ParamsSchema<{
|
|
8
|
+
readonly repo: l.StringSchema<{
|
|
9
|
+
readonly format: "at-identifier";
|
|
10
|
+
}>;
|
|
11
|
+
readonly collection: l.StringSchema<{
|
|
12
|
+
readonly format: "nsid";
|
|
13
|
+
}>;
|
|
14
|
+
readonly limit: l.IntegerSchema;
|
|
15
|
+
readonly cursor: l.StringSchema<{}>;
|
|
16
|
+
readonly reverse: l.BooleanSchema;
|
|
17
|
+
}, {
|
|
18
|
+
readonly required: readonly ["repo", "collection"];
|
|
19
|
+
}, {
|
|
20
|
+
repo: l.AtIdentifier;
|
|
21
|
+
collection: `${string}.${string}.${string}`;
|
|
22
|
+
} & {
|
|
23
|
+
reverse?: boolean | undefined;
|
|
24
|
+
cursor?: string | undefined;
|
|
25
|
+
limit?: number | undefined;
|
|
26
|
+
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
27
|
+
readonly cursor: l.StringSchema<{}>;
|
|
28
|
+
readonly records: l.ArraySchema<Def$0>;
|
|
29
|
+
}, {
|
|
30
|
+
readonly required: readonly ["records"];
|
|
31
|
+
}, {
|
|
32
|
+
records: Def$0[];
|
|
33
|
+
cursor?: string | undefined;
|
|
34
|
+
}>>, undefined>;
|
|
35
|
+
export { main };
|
|
36
|
+
export declare const $params: l.ParamsSchema<{
|
|
37
|
+
readonly repo: l.StringSchema<{
|
|
38
|
+
readonly format: "at-identifier";
|
|
39
|
+
}>;
|
|
40
|
+
readonly collection: l.StringSchema<{
|
|
41
|
+
readonly format: "nsid";
|
|
42
|
+
}>;
|
|
43
|
+
readonly limit: l.IntegerSchema;
|
|
44
|
+
readonly cursor: l.StringSchema<{}>;
|
|
45
|
+
readonly reverse: l.BooleanSchema;
|
|
46
|
+
}, {
|
|
47
|
+
readonly required: readonly ["repo", "collection"];
|
|
48
|
+
}, {
|
|
49
|
+
repo: l.AtIdentifier;
|
|
50
|
+
collection: `${string}.${string}.${string}`;
|
|
51
|
+
} & {
|
|
52
|
+
reverse?: boolean | undefined;
|
|
53
|
+
cursor?: string | undefined;
|
|
54
|
+
limit?: number | undefined;
|
|
55
|
+
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
56
|
+
readonly cursor: l.StringSchema<{}>;
|
|
57
|
+
readonly records: l.ArraySchema<Def$0>;
|
|
58
|
+
}, {
|
|
59
|
+
readonly required: readonly ["records"];
|
|
60
|
+
}, {
|
|
61
|
+
records: Def$0[];
|
|
62
|
+
cursor?: string | undefined;
|
|
63
|
+
}>>;
|
|
64
|
+
export type Params = l.InferQueryParameters<typeof main>;
|
|
65
|
+
export type Output = l.InferQueryOutputBody<typeof main>;
|
|
66
|
+
type Def$0 = {
|
|
67
|
+
$type?: 'com.atproto.repo.listRecords#record';
|
|
68
|
+
uri: l.AtUri;
|
|
69
|
+
cid: string;
|
|
70
|
+
value: l.UnknownObject;
|
|
71
|
+
};
|
|
72
|
+
export type { Def$0 as DefRecord };
|
|
73
|
+
declare const def$0: l.TypedObjectSchema<"com.atproto.repo.listRecords#record", l.Validator<Omit<Def$0, "$type">>, Def$0>;
|
|
74
|
+
export { def$0 as record };
|
|
75
|
+
//# sourceMappingURL=listRecords.defs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listRecords.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/com/atproto/repo/listRecords.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,qBAAqB,CAAA;AAEvC,QAAA,MAAM,KAAK,iCAAiC,CAAA;AAE5C,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB;;GAEG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;eA8BP,CAAA;AACH,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;EAAkB,EACpC,OAAO;;;;;;;;GAAc,CAAA;AAEvB,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,oBAAoB,CAAC,OAAO,IAAI,CAAC,CAAA;AACxD,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,oBAAoB,CAAC,OAAO,IAAI,CAAC,CAAA;AACxD,KAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,qCAAqC,CAAA;IAC7C,GAAG,EAAE,CAAC,CAAC,KAAK,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,CAAC,CAAC,aAAa,CAAA;CACvB,CAAA;AAED,YAAY,EAAE,KAAK,IAAI,SAAS,EAAE,CAAA;AAElC,QAAA,MAAM,KAAK,sGAWV,CAAA;AAED,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,CAAA"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.record = exports.$output = exports.$params = exports.main = exports.$nsid = void 0;
|
|
7
|
+
const lex_schema_1 = require("@atproto/lex-schema");
|
|
8
|
+
const $nsid = 'com.atproto.repo.listRecords';
|
|
9
|
+
exports.$nsid = $nsid;
|
|
10
|
+
/**
|
|
11
|
+
* List a range of records in a repository, matching a specific collection. Does not require auth.
|
|
12
|
+
*/
|
|
13
|
+
const main =
|
|
14
|
+
/*#__PURE__*/
|
|
15
|
+
lex_schema_1.l.query($nsid,
|
|
16
|
+
/*#__PURE__*/ lex_schema_1.l.params({
|
|
17
|
+
repo: /*#__PURE__*/ lex_schema_1.l.string({ format: 'at-identifier' }),
|
|
18
|
+
collection: /*#__PURE__*/ lex_schema_1.l.string({ format: 'nsid' }),
|
|
19
|
+
limit: /*#__PURE__*/ lex_schema_1.l.integer({
|
|
20
|
+
minimum: 1,
|
|
21
|
+
maximum: 100,
|
|
22
|
+
default: 50,
|
|
23
|
+
}),
|
|
24
|
+
cursor: /*#__PURE__*/ lex_schema_1.l.string(),
|
|
25
|
+
reverse: /*#__PURE__*/ lex_schema_1.l.boolean(),
|
|
26
|
+
}, { required: ['repo', 'collection'] }),
|
|
27
|
+
/*#__PURE__*/ lex_schema_1.l.payload('application/json',
|
|
28
|
+
/*#__PURE__*/ lex_schema_1.l.object({
|
|
29
|
+
cursor: /*#__PURE__*/ lex_schema_1.l.string(),
|
|
30
|
+
records: /*#__PURE__*/ lex_schema_1.l.array(
|
|
31
|
+
/*#__PURE__*/ lex_schema_1.l.ref((() => def$0))),
|
|
32
|
+
}, { required: ['records'] })));
|
|
33
|
+
exports.main = main;
|
|
34
|
+
exports.$params = main.parameters, exports.$output = main.output;
|
|
35
|
+
const def$0 = /*#__PURE__*/ lex_schema_1.l.typedObject($nsid, 'record',
|
|
36
|
+
/*#__PURE__*/ lex_schema_1.l.object({
|
|
37
|
+
uri: /*#__PURE__*/ lex_schema_1.l.string({ format: 'at-uri' }),
|
|
38
|
+
cid: /*#__PURE__*/ lex_schema_1.l.string({ format: 'cid' }),
|
|
39
|
+
value: /*#__PURE__*/ lex_schema_1.l.unknownObject(),
|
|
40
|
+
}, { required: ['uri', 'cid', 'value'] }));
|
|
41
|
+
exports.record = def$0;
|
|
42
|
+
//# sourceMappingURL=listRecords.defs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,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C,MAAM,CAAA;AAavB,MAAM,KAAK,GAAG,aAAa,CAAC,cAAC,CAAC,WAAW,CACvC,KAAK,EACL,QAAQ;AACR,aAAa,CAAC,cAAC,CAAC,MAAM,CACpB;IACE,GAAG,EAAE,aAAa,CAAC,cAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;IACjD,GAAG,EAAE,aAAa,CAAC,cAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAC9C,KAAK,EAAE,aAAa,CAAC,cAAC,CAAC,aAAa,EAAE;CACvC,EACD,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,CACtC,CACF,CAAA;AAEiB,uBAAM","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex-schema'\n\nconst $nsid = 'com.atproto.repo.listRecords'\n\nexport { $nsid }\n\n/**\n * List a range of records in a repository, matching a specific collection. Does not require auth.\n */\nconst main =\n /*#__PURE__*/\n l.query(\n $nsid,\n /*#__PURE__*/ l.params(\n {\n repo: /*#__PURE__*/ l.string({ format: 'at-identifier' }),\n collection: /*#__PURE__*/ l.string({ format: 'nsid' }),\n limit: /*#__PURE__*/ l.integer({\n minimum: 1,\n maximum: 100,\n default: 50,\n }),\n cursor: /*#__PURE__*/ l.string(),\n reverse: /*#__PURE__*/ l.boolean(),\n },\n { required: ['repo', 'collection'] },\n ),\n /*#__PURE__*/ l.payload(\n 'application/json',\n /*#__PURE__*/ l.object(\n {\n cursor: /*#__PURE__*/ l.string(),\n records: /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<Def$0>((() => def$0) as any),\n ),\n },\n { required: ['records'] },\n ),\n ),\n )\nexport { main }\n\nexport const $params = main.parameters,\n $output = main.output\n\nexport type Params = l.InferQueryParameters<typeof main>\nexport type Output = l.InferQueryOutputBody<typeof main>\ntype Def$0 = {\n $type?: 'com.atproto.repo.listRecords#record'\n uri: l.AtUri\n cid: string\n value: l.UnknownObject\n}\n\nexport type { Def$0 as DefRecord }\n\nconst def$0 = /*#__PURE__*/ l.typedObject<Def$0>(\n $nsid,\n 'record',\n /*#__PURE__*/ l.object(\n {\n uri: /*#__PURE__*/ l.string({ format: 'at-uri' }),\n cid: /*#__PURE__*/ l.string({ format: 'cid' }),\n value: /*#__PURE__*/ l.unknownObject(),\n },\n { required: ['uri', 'cid', 'value'] },\n ),\n)\n\nexport { def$0 as record }\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.$defs = void 0;
|
|
7
|
+
const tslib_1 = require("tslib");
|
|
8
|
+
tslib_1.__exportStar(require("./listRecords.defs.js"), exports);
|
|
9
|
+
exports.$defs = tslib_1.__importStar(require("./listRecords.defs.js"));
|
|
10
|
+
//# sourceMappingURL=listRecords.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listRecords.js","sourceRoot":"","sources":["../../../../../src/lexicons/com/atproto/repo/listRecords.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;AAEH,gEAAqC;AACrC,uEAA8C","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './listRecords.defs.js'\nexport * as $defs from './listRecords.defs.js'\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"putRecord.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/com/atproto/repo/putRecord.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAA;AACnC,OAAO,KAAK,KAAK,MAAM,qBAAqB,CAAA"}
|