@atproto/lexicon-resolver 0.4.0 → 0.4.1
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/CHANGELOG.md +9 -0
- package/dist/lexicons/com/atproto/lexicon/schema.defs.d.ts +19 -9
- package/dist/lexicons/com/atproto/lexicon/schema.defs.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/lexicon/schema.defs.js +12 -2
- package/dist/lexicons/com/atproto/lexicon/schema.defs.js.map +1 -1
- package/dist/lexicons/com/atproto/sync/getRecord.defs.d.ts +11 -9
- package/dist/lexicons/com/atproto/sync/getRecord.defs.d.ts.map +1 -1
- package/dist/lexicons/com/atproto/sync/getRecord.defs.js +6 -4
- package/dist/lexicons/com/atproto/sync/getRecord.defs.js.map +1 -1
- package/package.json +4 -4
- package/tests/lexicon.test.ts +1 -1
- package/tests/record.test.ts +1 -1
- package/src/lexicons/com/atproto/lexicon/schema.defs.ts +0 -43
- package/src/lexicons/com/atproto/lexicon/schema.ts +0 -6
- package/src/lexicons/com/atproto/lexicon.ts +0 -5
- package/src/lexicons/com/atproto/sync/getRecord.defs.ts +0 -39
- package/src/lexicons/com/atproto/sync/getRecord.ts +0 -6
- package/src/lexicons/com/atproto/sync.ts +0 -5
- package/src/lexicons/com/atproto.ts +0 -6
- package/src/lexicons/com.ts +0 -5
- package/src/lexicons/index.ts +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atproto/lexicon-resolver
|
|
2
2
|
|
|
3
|
+
## 0.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#4965](https://github.com/bluesky-social/atproto/pull/4965) [`3ea8e1f`](https://github.com/bluesky-social/atproto/commit/3ea8e1f3704c769a215af92ef0d9d46db16ef5f6) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Remove generated code from git
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`25e0233`](https://github.com/bluesky-social/atproto/commit/25e02339a383740e762c9a9633a701d2fb0cab86)]:
|
|
10
|
+
- @atproto/lex@0.1.1
|
|
11
|
+
|
|
3
12
|
## 0.4.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -15,7 +15,8 @@ declare const main: l.RecordSchema<"nsid", "com.atproto.lexicon.schema", l.Valid
|
|
|
15
15
|
export { main };
|
|
16
16
|
export declare const $isTypeOf: <TValue extends {
|
|
17
17
|
$type?: unknown;
|
|
18
|
-
}>(value: TValue) => value is l.TypedRecord<"com.atproto.lexicon.schema", TValue
|
|
18
|
+
}>(value: TValue) => value is l.TypedRecord<"com.atproto.lexicon.schema", TValue>;
|
|
19
|
+
export declare const $build: {
|
|
19
20
|
(input: Omit<Omit<Main, "$type">, "$type">): {
|
|
20
21
|
lexicon: number;
|
|
21
22
|
$type: "com.atproto.lexicon.schema";
|
|
@@ -24,29 +25,38 @@ export declare const $isTypeOf: <TValue extends {
|
|
|
24
25
|
lexicon: number;
|
|
25
26
|
$type: "com.atproto.lexicon.schema";
|
|
26
27
|
};
|
|
27
|
-
}
|
|
28
|
+
};
|
|
29
|
+
export declare const $type: "com.atproto.lexicon.schema";
|
|
28
30
|
export declare const $assert: (input: unknown, options?: l.ValidateOptions) => asserts input is {
|
|
29
31
|
lexicon: number;
|
|
30
32
|
$type: "com.atproto.lexicon.schema";
|
|
31
|
-
}
|
|
33
|
+
};
|
|
34
|
+
export declare const $check: (input: unknown, options?: l.ValidateOptions) => void;
|
|
35
|
+
export declare const $cast: <I>(input: I, options?: l.ValidateOptions) => I & {
|
|
32
36
|
lexicon: number;
|
|
33
37
|
$type: "com.atproto.lexicon.schema";
|
|
34
|
-
}
|
|
38
|
+
};
|
|
39
|
+
export declare const $ifMatches: <I>(input: I, options?: l.ValidateOptions) => (I & {
|
|
35
40
|
lexicon: number;
|
|
36
41
|
$type: "com.atproto.lexicon.schema";
|
|
37
|
-
}) | undefined
|
|
42
|
+
}) | undefined;
|
|
43
|
+
export declare const $matches: <I>(input: I, options?: l.ValidateOptions) => input is I & {
|
|
38
44
|
lexicon: number;
|
|
39
45
|
$type: "com.atproto.lexicon.schema";
|
|
40
|
-
}
|
|
46
|
+
};
|
|
47
|
+
export declare const $parse: (input: unknown, options?: l.ParseOptions) => {
|
|
41
48
|
lexicon: number;
|
|
42
49
|
$type: "com.atproto.lexicon.schema";
|
|
43
|
-
}
|
|
50
|
+
};
|
|
51
|
+
export declare const $safeParse: (input: unknown, options?: l.ParseOptions) => l.ValidationResult<{
|
|
44
52
|
lexicon: number;
|
|
45
53
|
$type: "com.atproto.lexicon.schema";
|
|
46
|
-
}
|
|
54
|
+
}>;
|
|
55
|
+
export declare const $validate: <I>(input: I, options?: l.ValidateOptions) => I & {
|
|
47
56
|
lexicon: number;
|
|
48
57
|
$type: "com.atproto.lexicon.schema";
|
|
49
|
-
}
|
|
58
|
+
};
|
|
59
|
+
export declare const $safeValidate: <I>(input: I, options?: l.ValidateOptions) => l.ValidationResult<I & {
|
|
50
60
|
lexicon: number;
|
|
51
61
|
$type: "com.atproto.lexicon.schema";
|
|
52
62
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/com/atproto/lexicon/schema.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAEhC,QAAA,MAAM,KAAK,+BAA+B,CAAA;AAE1C,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,wUAAwU;AACxU,KAAK,IAAI,GAAG;IACV,KAAK,EAAE,4BAA4B,CAAA;IAEnC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,YAAY,EAAE,IAAI,EAAE,CAAA;AAEpB,wUAAwU;AACxU,QAAA,MAAM,IAAI,6GAIT,CAAA;AAED,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,eAAO,MAAM,SAAS;
|
|
1
|
+
{"version":3,"file":"schema.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/com/atproto/lexicon/schema.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAEhC,QAAA,MAAM,KAAK,+BAA+B,CAAA;AAE1C,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,wUAAwU;AACxU,KAAK,IAAI,GAAG;IACV,KAAK,EAAE,4BAA4B,CAAA;IAEnC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,YAAY,EAAE,IAAI,EAAE,CAAA;AAEpB,wUAAwU;AACxU,QAAA,MAAM,IAAI,6GAIT,CAAA;AAED,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,eAAO,MAAM,SAAS;SAY8T,CAAC;iFAZtR,CAAA;AAC/D,eAAO,MAAM,MAAM;;iBAfR,MAAM;;;;iBAAN,MAAM;;;CAewC,CAAA;AACzD,eAAO,MAAM,KAAK,8BAAa,CAAA;AAC/B,eAAO,MAAM,OAAO;aAjBT,MAAM;;CAiB0C,CAAA;AAC3D,eAAO,MAAM,MAAM,uDAAsC,CAAA;AACzD,eAAO,MAAM,KAAK;aAnBP,MAAM;;CAmBsC,CAAA;AACvD,eAAO,MAAM,UAAU;aApBZ,MAAM;;cAoBgD,CAAA;AACjE,eAAO,MAAM,QAAQ;aArBV,MAAM;;CAqB4C,CAAA;AAC7D,eAAO,MAAM,MAAM;aAtBR,MAAM;;CAsBwC,CAAA;AACzD,eAAO,MAAM,UAAU;aAvBZ,MAAM;;EAuBgD,CAAA;AACjE,eAAO,MAAM,SAAS;aAxBX,MAAM;;CAwB8C,CAAA;AAC/D,eAAO,MAAM,aAAa;aAzBf,MAAM;;EAyBsD,CAAA"}
|
|
@@ -7,6 +7,16 @@ export { $nsid };
|
|
|
7
7
|
/** Representation of Lexicon schemas themselves, when published as atproto records. Note that the schema language is not defined in Lexicon; this meta schema currently only includes a single version field ('lexicon'). See the atproto specifications for description of the other expected top-level fields ('id', 'defs', etc). */
|
|
8
8
|
const main = l.record('nsid', $nsid, l.object({ lexicon: l.integer() }));
|
|
9
9
|
export { main };
|
|
10
|
-
export const $isTypeOf = /*#__PURE__*/ main.isTypeOf.bind(main)
|
|
11
|
-
export const $
|
|
10
|
+
export const $isTypeOf = /*#__PURE__*/ main.isTypeOf.bind(main);
|
|
11
|
+
export const $build = /*#__PURE__*/ main.build.bind(main);
|
|
12
|
+
export const $type = main.$type;
|
|
13
|
+
export const $assert = /*#__PURE__*/ main.assert.bind(main);
|
|
14
|
+
export const $check = /*#__PURE__*/ main.check.bind(main);
|
|
15
|
+
export const $cast = /*#__PURE__*/ main.cast.bind(main);
|
|
16
|
+
export const $ifMatches = /*#__PURE__*/ main.ifMatches.bind(main);
|
|
17
|
+
export const $matches = /*#__PURE__*/ main.matches.bind(main);
|
|
18
|
+
export const $parse = /*#__PURE__*/ main.parse.bind(main);
|
|
19
|
+
export const $safeParse = /*#__PURE__*/ main.safeParse.bind(main);
|
|
20
|
+
export const $validate = /*#__PURE__*/ main.validate.bind(main);
|
|
21
|
+
export const $safeValidate = /*#__PURE__*/ main.safeValidate.bind(main);
|
|
12
22
|
//# sourceMappingURL=schema.defs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/com/atproto/lexicon/schema.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAEhC,MAAM,KAAK,GAAG,4BAA4B,CAAA;AAE1C,OAAO,EAAE,KAAK,EAAE,CAAA;AAchB,wUAAwU;AACxU,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CACnB,MAAM,EACN,KAAK,EACL,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CACnC,CAAA;AAED,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,MAAM,CAAC,MAAM,SAAS,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"schema.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/com/atproto/lexicon/schema.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAEhC,MAAM,KAAK,GAAG,4BAA4B,CAAA;AAE1C,OAAO,EAAE,KAAK,EAAE,CAAA;AAchB,wUAAwU;AACxU,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CACnB,MAAM,EACN,KAAK,EACL,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CACnC,CAAA;AAED,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,MAAM,CAAC,MAAM,SAAS,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AAC/D,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACzD,MAAM,CAAC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAA;AAC/B,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AAC3D,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACzD,MAAM,CAAC,MAAM,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACvD,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACjE,MAAM,CAAC,MAAM,QAAQ,GAAG,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AAC7D,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACzD,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACjE,MAAM,CAAC,MAAM,SAAS,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AAC/D,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\n\nconst $nsid = 'com.atproto.lexicon.schema'\n\nexport { $nsid }\n\n/** Representation of Lexicon schemas themselves, when published as atproto records. Note that the schema language is not defined in Lexicon; this meta schema currently only includes a single version field ('lexicon'). See the atproto specifications for description of the other expected top-level fields ('id', 'defs', etc). */\ntype Main = {\n $type: 'com.atproto.lexicon.schema'\n\n /**\n * Indicates the 'version' of the Lexicon language. Must be '1' for the current atproto/Lexicon schema system.\n */\n lexicon: number\n}\n\nexport type { Main }\n\n/** Representation of Lexicon schemas themselves, when published as atproto records. Note that the schema language is not defined in Lexicon; this meta schema currently only includes a single version field ('lexicon'). See the atproto specifications for description of the other expected top-level fields ('id', 'defs', etc). */\nconst main = l.record<'nsid', Main>(\n 'nsid',\n $nsid,\n l.object({ lexicon: l.integer() }),\n)\n\nexport { main }\n\nexport const $isTypeOf = /*#__PURE__*/ main.isTypeOf.bind(main)\nexport const $build = /*#__PURE__*/ main.build.bind(main)\nexport const $type = main.$type\nexport const $assert = /*#__PURE__*/ main.assert.bind(main)\nexport const $check = /*#__PURE__*/ main.check.bind(main)\nexport const $cast = /*#__PURE__*/ main.cast.bind(main)\nexport const $ifMatches = /*#__PURE__*/ main.ifMatches.bind(main)\nexport const $matches = /*#__PURE__*/ main.matches.bind(main)\nexport const $parse = /*#__PURE__*/ main.parse.bind(main)\nexport const $safeParse = /*#__PURE__*/ main.safeParse.bind(main)\nexport const $validate = /*#__PURE__*/ main.validate.bind(main)\nexport const $safeValidate = /*#__PURE__*/ main.safeValidate.bind(main)\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
2
|
declare const $nsid = "com.atproto.sync.getRecord";
|
|
3
3
|
export { $nsid };
|
|
4
|
-
|
|
5
|
-
declare const
|
|
4
|
+
export declare const $lxm = "com.atproto.sync.getRecord";
|
|
5
|
+
export declare const $params: l.ParamsSchema<{
|
|
6
6
|
readonly did: l.StringSchema<{
|
|
7
7
|
readonly format: "did";
|
|
8
8
|
}>;
|
|
@@ -12,12 +12,10 @@ declare const main: l.Query<"com.atproto.sync.getRecord", l.ParamsSchema<{
|
|
|
12
12
|
readonly rkey: l.StringSchema<{
|
|
13
13
|
readonly format: "record-key";
|
|
14
14
|
}>;
|
|
15
|
-
}
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
20
|
-
export declare const $lxm: "com.atproto.sync.getRecord", $params: l.ParamsSchema<{
|
|
15
|
+
}>;
|
|
16
|
+
export declare const $output: l.Payload<"application/vnd.ipld.car", undefined>;
|
|
17
|
+
/** Get data blocks needed to prove the existence or non-existence of record in the current version of repo. Does not require auth. */
|
|
18
|
+
declare const main: l.Query<"com.atproto.sync.getRecord", l.ParamsSchema<{
|
|
21
19
|
readonly did: l.StringSchema<{
|
|
22
20
|
readonly format: "did";
|
|
23
21
|
}>;
|
|
@@ -27,5 +25,9 @@ export declare const $lxm: "com.atproto.sync.getRecord", $params: l.ParamsSchema
|
|
|
27
25
|
readonly rkey: l.StringSchema<{
|
|
28
26
|
readonly format: "record-key";
|
|
29
27
|
}>;
|
|
30
|
-
}>,
|
|
28
|
+
}>, l.Payload<"application/vnd.ipld.car", undefined>, readonly ["RecordNotFound", "RepoNotFound", "RepoTakendown", "RepoSuspended", "RepoDeactivated"]>;
|
|
29
|
+
export { main };
|
|
30
|
+
export type $Params = l.InferMethodParams<typeof main>;
|
|
31
|
+
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
32
|
+
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
31
33
|
//# sourceMappingURL=getRecord.defs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRecord.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/com/atproto/sync/getRecord.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAEhC,QAAA,MAAM,KAAK,+BAA+B,CAAA;AAE1C,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,sIAAsI;AACtI,QAAA,MAAM,IAAI;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"getRecord.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/com/atproto/sync/getRecord.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAEhC,QAAA,MAAM,KAAK,+BAA+B,CAAA;AAE1C,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,eAAO,MAAM,IAAI,+BAAQ,CAAA;AACzB,eAAO,MAAM,OAAO;;;;;;;;;;EAIlB,CAAA;AACF,eAAO,MAAM,OAAO,kDAAwC,CAAA;AAC5D,sIAAsI;AACtI,QAAA,MAAM,IAAI;;;;;;;;;;uJAMR,CAAA;AAEF,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,iBAAiB,CAAC,OAAO,IAAI,CAAC,CAAA;AACtD,MAAM,MAAM,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,iBAAiB,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAA;AAC3E,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,qBAAqB,CACjE,OAAO,IAAI,EACX,CAAC,CACF,CAAA"}
|
|
@@ -4,12 +4,15 @@
|
|
|
4
4
|
import { l } from '@atproto/lex';
|
|
5
5
|
const $nsid = 'com.atproto.sync.getRecord';
|
|
6
6
|
export { $nsid };
|
|
7
|
-
|
|
8
|
-
const
|
|
7
|
+
export const $lxm = $nsid;
|
|
8
|
+
export const $params = l.params({
|
|
9
9
|
did: l.string({ format: 'did' }),
|
|
10
10
|
collection: l.string({ format: 'nsid' }),
|
|
11
11
|
rkey: l.string({ format: 'record-key' }),
|
|
12
|
-
})
|
|
12
|
+
});
|
|
13
|
+
export const $output = l.payload('application/vnd.ipld.car');
|
|
14
|
+
/** Get data blocks needed to prove the existence or non-existence of record in the current version of repo. Does not require auth. */
|
|
15
|
+
const main = l.query($nsid, $params, $output, [
|
|
13
16
|
'RecordNotFound',
|
|
14
17
|
'RepoNotFound',
|
|
15
18
|
'RepoTakendown',
|
|
@@ -17,5 +20,4 @@ const main = l.query($nsid, l.params({
|
|
|
17
20
|
'RepoDeactivated',
|
|
18
21
|
]);
|
|
19
22
|
export { main };
|
|
20
|
-
export const $lxm = main.nsid, $params = main.parameters, $output = main.output;
|
|
21
23
|
//# sourceMappingURL=getRecord.defs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRecord.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/com/atproto/sync/getRecord.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAEhC,MAAM,KAAK,GAAG,4BAA4B,CAAA;AAE1C,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,
|
|
1
|
+
{"version":3,"file":"getRecord.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/com/atproto/sync/getRecord.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAEhC,MAAM,KAAK,GAAG,4BAA4B,CAAA;AAE1C,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,MAAM,CAAC,MAAM,IAAI,GAAG,KAAK,CAAA;AACzB,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9B,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAChC,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IACxC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC;CACzC,CAAC,CAAA;AACF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAA;AAC5D,sIAAsI;AACtI,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE;IAC5C,gBAAgB;IAChB,cAAc;IACd,eAAe;IACf,eAAe;IACf,iBAAiB;CAClB,CAAC,CAAA;AAEF,OAAO,EAAE,IAAI,EAAE,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\n\nconst $nsid = 'com.atproto.sync.getRecord'\n\nexport { $nsid }\n\nexport const $lxm = $nsid\nexport const $params = l.params({\n did: l.string({ format: 'did' }),\n collection: l.string({ format: 'nsid' }),\n rkey: l.string({ format: 'record-key' }),\n})\nexport const $output = l.payload('application/vnd.ipld.car')\n/** Get data blocks needed to prove the existence or non-existence of record in the current version of repo. Does not require auth. */\nconst main = l.query($nsid, $params, $output, [\n 'RecordNotFound',\n 'RepoNotFound',\n 'RepoTakendown',\n 'RepoSuspended',\n 'RepoDeactivated',\n])\n\nexport { main }\n\nexport type $Params = l.InferMethodParams<typeof main>\nexport type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<\n typeof main,\n B\n>\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/lexicon-resolver",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=22"
|
|
6
6
|
},
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@atproto-labs/fetch-node": "^0.3.0",
|
|
28
|
-
"@atproto/lex": "^0.1.0",
|
|
29
28
|
"@atproto/identity": "^0.5.0",
|
|
29
|
+
"@atproto/lex": "^0.1.1",
|
|
30
|
+
"@atproto/lex-document": "^0.1.0",
|
|
30
31
|
"@atproto/repo": "^0.10.0",
|
|
31
|
-
"@atproto/syntax": "^0.6.
|
|
32
|
-
"@atproto/lex-document": "^0.1.0"
|
|
32
|
+
"@atproto/syntax": "^0.6.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"typescript": "^6.0.3",
|
package/tests/lexicon.test.ts
CHANGED
package/tests/record.test.ts
CHANGED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { l } from '@atproto/lex'
|
|
6
|
-
|
|
7
|
-
const $nsid = 'com.atproto.lexicon.schema'
|
|
8
|
-
|
|
9
|
-
export { $nsid }
|
|
10
|
-
|
|
11
|
-
/** Representation of Lexicon schemas themselves, when published as atproto records. Note that the schema language is not defined in Lexicon; this meta schema currently only includes a single version field ('lexicon'). See the atproto specifications for description of the other expected top-level fields ('id', 'defs', etc). */
|
|
12
|
-
type Main = {
|
|
13
|
-
$type: 'com.atproto.lexicon.schema'
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Indicates the 'version' of the Lexicon language. Must be '1' for the current atproto/Lexicon schema system.
|
|
17
|
-
*/
|
|
18
|
-
lexicon: number
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export type { Main }
|
|
22
|
-
|
|
23
|
-
/** Representation of Lexicon schemas themselves, when published as atproto records. Note that the schema language is not defined in Lexicon; this meta schema currently only includes a single version field ('lexicon'). See the atproto specifications for description of the other expected top-level fields ('id', 'defs', etc). */
|
|
24
|
-
const main = l.record<'nsid', Main>(
|
|
25
|
-
'nsid',
|
|
26
|
-
$nsid,
|
|
27
|
-
l.object({ lexicon: l.integer() }),
|
|
28
|
-
)
|
|
29
|
-
|
|
30
|
-
export { main }
|
|
31
|
-
|
|
32
|
-
export const $isTypeOf = /*#__PURE__*/ main.isTypeOf.bind(main),
|
|
33
|
-
$build = /*#__PURE__*/ main.build.bind(main),
|
|
34
|
-
$type = /*#__PURE__*/ main.$type
|
|
35
|
-
export const $assert = /*#__PURE__*/ main.assert.bind(main),
|
|
36
|
-
$check = /*#__PURE__*/ main.check.bind(main),
|
|
37
|
-
$cast = /*#__PURE__*/ main.cast.bind(main),
|
|
38
|
-
$ifMatches = /*#__PURE__*/ main.ifMatches.bind(main),
|
|
39
|
-
$matches = /*#__PURE__*/ main.matches.bind(main),
|
|
40
|
-
$parse = /*#__PURE__*/ main.parse.bind(main),
|
|
41
|
-
$safeParse = /*#__PURE__*/ main.safeParse.bind(main),
|
|
42
|
-
$validate = /*#__PURE__*/ main.validate.bind(main),
|
|
43
|
-
$safeValidate = /*#__PURE__*/ main.safeValidate.bind(main)
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { l } from '@atproto/lex'
|
|
6
|
-
|
|
7
|
-
const $nsid = 'com.atproto.sync.getRecord'
|
|
8
|
-
|
|
9
|
-
export { $nsid }
|
|
10
|
-
|
|
11
|
-
/** Get data blocks needed to prove the existence or non-existence of record in the current version of repo. Does not require auth. */
|
|
12
|
-
const main = l.query(
|
|
13
|
-
$nsid,
|
|
14
|
-
l.params({
|
|
15
|
-
did: l.string({ format: 'did' }),
|
|
16
|
-
collection: l.string({ format: 'nsid' }),
|
|
17
|
-
rkey: l.string({ format: 'record-key' }),
|
|
18
|
-
}),
|
|
19
|
-
l.payload('application/vnd.ipld.car'),
|
|
20
|
-
[
|
|
21
|
-
'RecordNotFound',
|
|
22
|
-
'RepoNotFound',
|
|
23
|
-
'RepoTakendown',
|
|
24
|
-
'RepoSuspended',
|
|
25
|
-
'RepoDeactivated',
|
|
26
|
-
],
|
|
27
|
-
)
|
|
28
|
-
export { main }
|
|
29
|
-
|
|
30
|
-
export type $Params = l.InferMethodParams<typeof main>
|
|
31
|
-
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>
|
|
32
|
-
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<
|
|
33
|
-
typeof main,
|
|
34
|
-
B
|
|
35
|
-
>
|
|
36
|
-
|
|
37
|
-
export const $lxm = main.nsid,
|
|
38
|
-
$params = main.parameters,
|
|
39
|
-
$output = main.output
|
package/src/lexicons/com.ts
DELETED