@atproto/lexicon-resolver 0.4.0-next.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 CHANGED
@@ -1,28 +1,42 @@
1
1
  # @atproto/lexicon-resolver
2
2
 
3
- ## 0.4.0-next.0
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
+
12
+ ## 0.4.0
4
13
 
5
14
  ### Minor Changes
6
15
 
7
- - [#4929](https://github.com/bluesky-social/atproto/pull/4929) [`bb7491c`](https://github.com/bluesky-social/atproto/commit/bb7491c29e06181e1d2f8cf6eb454f9bb8ab961b) Thanks [@devinivy](https://github.com/devinivy)! - **BREAKING:** Drop support for Node.js 18 and 20. Node.js 22 is now the minimum supported version. Docker images now use Node.js 24.
16
+ - [#4929](https://github.com/bluesky-social/atproto/pull/4929) [`f01c59f`](https://github.com/bluesky-social/atproto/commit/f01c59f5bd3f75fb8b47a9eecd4858b84033fb7c) Thanks [@devinivy](https://github.com/devinivy)! - **BREAKING:** Drop support for Node.js 18 and 20. Node.js 22 is now the minimum supported version. Docker images now use Node.js 24.
8
17
 
9
- - [#4943](https://github.com/bluesky-social/atproto/pull/4943) [`07ae5d4`](https://github.com/bluesky-social/atproto/commit/07ae5d4452df51e045e0239da7a04cf0bc154028) Thanks [@devinivy](https://github.com/devinivy)! - **BREAKING:** Convert to pure ESM. All packages now ship `"type": "module"` with ES module output and Node16 module resolution.
18
+ - [#4943](https://github.com/bluesky-social/atproto/pull/4943) [`c459153`](https://github.com/bluesky-social/atproto/commit/c459153395a30ce89e050892c8fab7dc98e019b9) Thanks [@devinivy](https://github.com/devinivy)! - **BREAKING:** Convert to pure ESM. All packages now ship `"type": "module"` with ES module output and Node16 module resolution.
10
19
 
11
20
  Node.js 22's `require()` compatibility layer can still load these packages in CommonJS code.
12
21
 
13
- - [#4930](https://github.com/bluesky-social/atproto/pull/4930) [`042df15`](https://github.com/bluesky-social/atproto/commit/042df15087c0e62cd1e715fcbf58852fab875af9) Thanks [@devinivy](https://github.com/devinivy)! - Build with TypeScript 6.0. Emitted `.d.ts` files now use TypeScript 6's stricter `Uint8Array<ArrayBuffer>` typing in places where Web/Node APIs require buffer-backed (not shared-memory) byte arrays. Consumers compiling against these types on older TypeScript should see no runtime impact, but may need to widen or cast in spots that previously relied on `Uint8Array` defaulting to `<ArrayBufferLike>`.
22
+ - [#4930](https://github.com/bluesky-social/atproto/pull/4930) [`908bece`](https://github.com/bluesky-social/atproto/commit/908bece169258bff5ad121e5eec157d6ded6f705) Thanks [@devinivy](https://github.com/devinivy)! - Build with TypeScript 6.0.
14
23
 
15
- Internal: tsconfig `moduleResolution: "node"` is silenced via `ignoreDeprecations: "6.0"` for now; the proper migration to `node16`/`bundler` resolution is deferred.
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies [[`f01c59f`](https://github.com/bluesky-social/atproto/commit/f01c59f5bd3f75fb8b47a9eecd4858b84033fb7c), [`c459153`](https://github.com/bluesky-social/atproto/commit/c459153395a30ce89e050892c8fab7dc98e019b9), [`f01c59f`](https://github.com/bluesky-social/atproto/commit/f01c59f5bd3f75fb8b47a9eecd4858b84033fb7c), [`908bece`](https://github.com/bluesky-social/atproto/commit/908bece169258bff5ad121e5eec157d6ded6f705)]:
27
+ - @atproto/identity@0.5.0
28
+ - @atproto/lex@0.1.0
29
+ - @atproto/lex-document@0.1.0
30
+ - @atproto/repo@0.10.0
31
+ - @atproto/syntax@0.6.0
32
+ - @atproto-labs/fetch-node@0.3.0
33
+
34
+ ## 0.3.7
16
35
 
17
36
  ### Patch Changes
18
37
 
19
- - Updated dependencies [[`bb7491c`](https://github.com/bluesky-social/atproto/commit/bb7491c29e06181e1d2f8cf6eb454f9bb8ab961b), [`07ae5d4`](https://github.com/bluesky-social/atproto/commit/07ae5d4452df51e045e0239da7a04cf0bc154028), [`8e40db6`](https://github.com/bluesky-social/atproto/commit/8e40db65aab7ba5f9414c26dbe1ab658e3bffeca), [`042df15`](https://github.com/bluesky-social/atproto/commit/042df15087c0e62cd1e715fcbf58852fab875af9)]:
20
- - @atproto/identity@0.5.0-next.0
21
- - @atproto/lex@0.1.0-next.0
22
- - @atproto/lex-document@0.1.0-next.0
23
- - @atproto/repo@0.10.0-next.0
24
- - @atproto/syntax@0.6.0-next.0
25
- - @atproto-labs/fetch-node@0.3.0-next.0
38
+ - Updated dependencies []:
39
+ - @atproto/lex@0.0.27
26
40
 
27
41
  ## 0.3.6
28
42
 
@@ -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>, $build: {
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
- }, $type: "com.atproto.lexicon.schema";
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
- }, $check: (input: unknown, options?: l.ValidateOptions) => void, $cast: <I>(input: I, options?: l.ValidateOptions) => I & {
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
- }, $ifMatches: <I>(input: I, options?: l.ValidateOptions) => (I & {
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, $matches: <I>(input: I, options?: l.ValidateOptions) => input is I & {
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
- }, $parse: (input: unknown, options?: l.ParseOptions) => {
46
+ };
47
+ export declare const $parse: (input: unknown, options?: l.ParseOptions) => {
41
48
  lexicon: number;
42
49
  $type: "com.atproto.lexicon.schema";
43
- }, $safeParse: (input: unknown, options?: l.ParseOptions) => l.ValidationResult<{
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
- }>, $validate: <I>(input: I, options?: l.ValidateOptions) => I & {
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
- }, $safeValidate: <I>(input: I, options?: l.ValidateOptions) => l.ValidationResult<I & {
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;SAYoZ,CAAC;iFAZ5W,EAC7D,MAAM;;iBAfG,MAAM;;;;iBAAN,MAAM;;;CAe6B,EAC5C,KAAK,8BAA2B,CAAA;AAClC,eAAO,MAAM,OAAO;aAjBT,MAAM;;CAiB0C,EACzD,MAAM,uDAAsC,EAC5C,KAAK;aAnBI,MAAM;;CAmB2B,EAC1C,UAAU;aApBD,MAAM;;cAoBqC,EACpD,QAAQ;aArBC,MAAM;;CAqBiC,EAChD,MAAM;aAtBG,MAAM;;CAsB6B,EAC5C,UAAU;aAvBD,MAAM;;EAuBqC,EACpD,SAAS;aAxBA,MAAM;;CAwBmC,EAClD,aAAa;aAzBJ,MAAM;;EAyB2C,CAAA"}
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), $build = /*#__PURE__*/ main.build.bind(main), $type = /*#__PURE__*/ main.$type;
11
- export const $assert = /*#__PURE__*/ main.assert.bind(main), $check = /*#__PURE__*/ main.check.bind(main), $cast = /*#__PURE__*/ main.cast.bind(main), $ifMatches = /*#__PURE__*/ main.ifMatches.bind(main), $matches = /*#__PURE__*/ main.matches.bind(main), $parse = /*#__PURE__*/ main.parse.bind(main), $safeParse = /*#__PURE__*/ main.safeParse.bind(main), $validate = /*#__PURE__*/ main.validate.bind(main), $safeValidate = /*#__PURE__*/ main.safeValidate.bind(main);
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,EAC7D,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAC5C,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,KAAK,CAAA;AAClC,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EACzD,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAC5C,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAC1C,UAAU,GAAG,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EACpD,QAAQ,GAAG,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAChD,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAC5C,UAAU,GAAG,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EACpD,SAAS,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAClD,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),\n $build = /*#__PURE__*/ main.build.bind(main),\n $type = /*#__PURE__*/ main.$type\nexport const $assert = /*#__PURE__*/ main.assert.bind(main),\n $check = /*#__PURE__*/ main.check.bind(main),\n $cast = /*#__PURE__*/ main.cast.bind(main),\n $ifMatches = /*#__PURE__*/ main.ifMatches.bind(main),\n $matches = /*#__PURE__*/ main.matches.bind(main),\n $parse = /*#__PURE__*/ main.parse.bind(main),\n $safeParse = /*#__PURE__*/ main.safeParse.bind(main),\n $validate = /*#__PURE__*/ main.validate.bind(main),\n $safeValidate = /*#__PURE__*/ main.safeValidate.bind(main)\n"]}
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
- /** Get data blocks needed to prove the existence or non-existence of record in the current version of repo. Does not require auth. */
5
- declare const main: l.Query<"com.atproto.sync.getRecord", l.ParamsSchema<{
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
- }>, l.Payload<"application/vnd.ipld.car", undefined>, readonly ["RecordNotFound", "RepoNotFound", "RepoTakendown", "RepoSuspended", "RepoDeactivated"]>;
16
- export { main };
17
- export type $Params = l.InferMethodParams<typeof main>;
18
- export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
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
- }>, $output: l.Payload<"application/vnd.ipld.car", undefined>;
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;;;;;;;;;;uJAeT,CAAA;AACD,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;AAED,eAAO,MAAM,IAAI,8BAAY,EAC3B,OAAO;;;;;;;;;;EAAkB,EACzB,OAAO,kDAAc,CAAA"}
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
- /** Get data blocks needed to prove the existence or non-existence of record in the current version of repo. Does not require auth. */
8
- const main = l.query($nsid, l.params({
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
- }), l.payload('application/vnd.ipld.car'), [
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,sIAAsI;AACtI,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAClB,KAAK,EACL,CAAC,CAAC,MAAM,CAAC;IACP,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,EACF,CAAC,CAAC,OAAO,CAAC,0BAA0B,CAAC,EACrC;IACE,gBAAgB;IAChB,cAAc;IACd,eAAe;IACf,eAAe;IACf,iBAAiB;CAClB,CACF,CAAA;AACD,OAAO,EAAE,IAAI,EAAE,CAAA;AASf,MAAM,CAAC,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,EAC3B,OAAO,GAAG,IAAI,CAAC,UAAU,EACzB,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'\n\nconst $nsid = 'com.atproto.sync.getRecord'\n\nexport { $nsid }\n\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(\n $nsid,\n l.params({\n did: l.string({ format: 'did' }),\n collection: l.string({ format: 'nsid' }),\n rkey: l.string({ format: 'record-key' }),\n }),\n l.payload('application/vnd.ipld.car'),\n [\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\nexport const $lxm = main.nsid,\n $params = main.parameters,\n $output = main.output\n"]}
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.0-next.0",
3
+ "version": "0.4.1",
4
4
  "engines": {
5
5
  "node": ">=22"
6
6
  },
@@ -24,22 +24,22 @@
24
24
  }
25
25
  },
26
26
  "dependencies": {
27
- "@atproto/lex": "^0.1.0-next.0",
28
- "@atproto/lex-document": "^0.1.0-next.0",
29
- "@atproto/syntax": "^0.6.0-next.0",
30
- "@atproto-labs/fetch-node": "^0.3.0-next.0",
31
- "@atproto/repo": "^0.10.0-next.0",
32
- "@atproto/identity": "^0.5.0-next.0"
27
+ "@atproto-labs/fetch-node": "^0.3.0",
28
+ "@atproto/identity": "^0.5.0",
29
+ "@atproto/lex": "^0.1.1",
30
+ "@atproto/lex-document": "^0.1.0",
31
+ "@atproto/repo": "^0.10.0",
32
+ "@atproto/syntax": "^0.6.1"
33
33
  },
34
34
  "devDependencies": {
35
35
  "typescript": "^6.0.3",
36
36
  "vitest": "^4.0.16",
37
- "@atproto/lex-cbor": "^0.1.0-next.0"
37
+ "@atproto/lex-cbor": "^0.1.0"
38
38
  },
39
39
  "scripts": {
40
40
  "test": "vitest run",
41
41
  "build": "tsc --build tsconfig.build.json",
42
42
  "prebuild": "pnpm run codegen",
43
- "codegen": "lex build --override --indexFile --lexicons ../../lexicons --include com.atproto.sync.getRecord --include com.atproto.lexicon.schema"
43
+ "codegen": "lex build --clear --indexFile --lexicons ../../lexicons --include com.atproto.sync.getRecord --include com.atproto.lexicon.schema"
44
44
  }
45
45
  }
@@ -36,7 +36,7 @@ describe('Lexicon resolution', () => {
36
36
  rpc: { fetch },
37
37
  idResolver: network.pds.ctx.idResolver,
38
38
  })
39
- })
39
+ }, 20_000) // @NOTE seeding can take a while
40
40
 
41
41
  afterAll(async () => {
42
42
  await network.close()
@@ -20,7 +20,7 @@ describe('Record resolution', () => {
20
20
  rpc: { fetch },
21
21
  idResolver: network.pds.ctx.idResolver,
22
22
  })
23
- })
23
+ }, 20_000) // @NOTE seeding can take a while
24
24
 
25
25
  afterAll(async () => {
26
26
  await network.close()
@@ -1 +1 @@
1
- {"root":["./src/index.ts","./src/lexicon.ts","./src/record.ts","./src/util.ts","./src/lexicons/com.ts","./src/lexicons/index.ts","./src/lexicons/com/atproto.ts","./src/lexicons/com/atproto/lexicon.ts","./src/lexicons/com/atproto/sync.ts","./src/lexicons/com/atproto/lexicon/schema.defs.ts","./src/lexicons/com/atproto/lexicon/schema.ts","./src/lexicons/com/atproto/sync/getrecord.defs.ts","./src/lexicons/com/atproto/sync/getrecord.ts"],"version":"6.0.3"}
1
+ {"root":["./src/index.ts","./src/lexicon.ts","./src/record.ts","./src/util.ts","./src/lexicons/com.ts","./src/lexicons/index.ts","./src/lexicons/com/atproto.ts","./src/lexicons/com/atproto/lexicon.ts","./src/lexicons/com/atproto/sync.ts","./src/lexicons/com/atproto/lexicon/schema.defs.ts","./src/lexicons/com/atproto/lexicon/schema.ts","./src/lexicons/com/atproto/sync/getRecord.defs.ts","./src/lexicons/com/atproto/sync/getRecord.ts"],"version":"6.0.3"}
@@ -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,6 +0,0 @@
1
- /*
2
- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
3
- */
4
-
5
- export * from './schema.defs.js'
6
- export * as $defs from './schema.defs.js'
@@ -1,5 +0,0 @@
1
- /*
2
- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
3
- */
4
-
5
- export * as schema from './lexicon/schema.js'
@@ -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
@@ -1,6 +0,0 @@
1
- /*
2
- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
3
- */
4
-
5
- export * from './getRecord.defs.js'
6
- export * as $defs from './getRecord.defs.js'
@@ -1,5 +0,0 @@
1
- /*
2
- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
3
- */
4
-
5
- export * as getRecord from './sync/getRecord.js'
@@ -1,6 +0,0 @@
1
- /*
2
- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
3
- */
4
-
5
- export * as lexicon from './atproto/lexicon.js'
6
- export * as sync from './atproto/sync.js'
@@ -1,5 +0,0 @@
1
- /*
2
- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
3
- */
4
-
5
- export * as atproto from './com/atproto.js'
@@ -1,5 +0,0 @@
1
- /*
2
- * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
3
- */
4
-
5
- export * as com from './com.js'