@atproto/lexicon 0.2.1 → 0.2.2
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 +8 -0
- package/README.md +8 -5
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/dist/types.d.ts +502 -502
- package/package.json +11 -5
- package/src/types.ts +3 -5
- package/tests/general.test.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atproto/lexicon
|
|
2
2
|
|
|
3
|
+
## 0.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`41ee177f`](https://github.com/bluesky-social/atproto/commit/41ee177f5a440490280d17acd8a89bcddaffb23b)]:
|
|
8
|
+
- @atproto/common-web@0.2.1
|
|
9
|
+
- @atproto/syntax@0.1.2
|
|
10
|
+
|
|
3
11
|
## 0.2.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @atproto/lexicon: schema validation library
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
TypeScript implementation of the Lexicon data and API schema description language, which is part of [atproto](https://atproto.com).
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
```
|
|
5
|
+
[](https://www.npmjs.com/package/@atproto/lexicon)
|
|
6
|
+
[](https://github.com/bluesky-social/atproto/actions/workflows/repo.yaml)
|
|
8
7
|
|
|
9
8
|
## Usage
|
|
10
9
|
|
|
@@ -29,3 +28,7 @@ lex.assertValidXrpcParams('com.example.query', {...})
|
|
|
29
28
|
lex.assertValidXrpcInput('com.example.procedure', {...})
|
|
30
29
|
lex.assertValidXrpcOutput('com.example.query', {...})
|
|
31
30
|
```
|
|
31
|
+
|
|
32
|
+
## License
|
|
33
|
+
|
|
34
|
+
MIT
|
package/dist/index.js
CHANGED
|
@@ -14628,7 +14628,7 @@ var lexObject = z.object({
|
|
|
14628
14628
|
description: z.string().optional(),
|
|
14629
14629
|
required: z.string().array().optional(),
|
|
14630
14630
|
nullable: z.string().array().optional(),
|
|
14631
|
-
properties: z.record(z.union([lexRefVariant, lexIpldType, lexArray, lexBlob, lexPrimitive]))
|
|
14631
|
+
properties: z.record(z.union([lexRefVariant, lexIpldType, lexArray, lexBlob, lexPrimitive]))
|
|
14632
14632
|
}).strict().superRefine(requiredPropertiesRefinement);
|
|
14633
14633
|
var lexXrpcParameters = z.object({
|
|
14634
14634
|
type: z.literal("params"),
|