@atproto/lex-document 0.0.15 → 0.0.17
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,5 +1,19 @@
|
|
|
1
1
|
# @atproto/lex-document
|
|
2
2
|
|
|
3
|
+
## 0.0.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`6a88461`](https://github.com/bluesky-social/atproto/commit/6a88461c5aa9486269f0769b7a3d52f384581786)]:
|
|
8
|
+
- @atproto/lex-schema@0.0.16
|
|
9
|
+
|
|
10
|
+
## 0.0.16
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`3dc3791`](https://github.com/bluesky-social/atproto/commit/3dc37915436dec7e18c7dc9dcf01b72cad53fdbe), [`3dc3791`](https://github.com/bluesky-social/atproto/commit/3dc37915436dec7e18c7dc9dcf01b72cad53fdbe), [`3dc3791`](https://github.com/bluesky-social/atproto/commit/3dc37915436dec7e18c7dc9dcf01b72cad53fdbe), [`3dc3791`](https://github.com/bluesky-social/atproto/commit/3dc37915436dec7e18c7dc9dcf01b72cad53fdbe), [`112b159`](https://github.com/bluesky-social/atproto/commit/112b159ec293a5c3fff41237474a3788fc47f9ca), [`3dc3791`](https://github.com/bluesky-social/atproto/commit/3dc37915436dec7e18c7dc9dcf01b72cad53fdbe), [`3dc3791`](https://github.com/bluesky-social/atproto/commit/3dc37915436dec7e18c7dc9dcf01b72cad53fdbe)]:
|
|
15
|
+
- @atproto/lex-schema@0.0.15
|
|
16
|
+
|
|
3
17
|
## 0.0.15
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -84,7 +84,7 @@ export declare class LexiconSchemaBuilder implements AsyncDisposable {
|
|
|
84
84
|
* }
|
|
85
85
|
* ```
|
|
86
86
|
*/
|
|
87
|
-
static buildAll(indexer: LexiconIndexer): Promise<Map<string, l.Schema<LexValue, LexValue
|
|
87
|
+
static buildAll(indexer: LexiconIndexer): Promise<Map<string, l.Schema<LexValue, LexValue> | l.Query<`${string}.${string}.${string}`, l.ParamsSchema<l.ParamsShape>, l.Payload<string | undefined, l.Schema<LexValue, LexValue> | undefined>, readonly string[] | undefined> | l.Subscription<`${string}.${string}.${string}`, l.ParamsSchema<l.ParamsShape>, l.Schema<LexValue, LexValue>, readonly string[] | undefined> | l.Procedure<`${string}.${string}.${string}`, l.ParamsSchema<l.ParamsShape>, l.Payload<string | undefined, l.Schema<LexValue, LexValue> | undefined>, l.Payload<string | undefined, l.Schema<LexValue, LexValue> | undefined>, readonly string[] | undefined> | l.PermissionSet<any, any>>>;
|
|
88
88
|
/**
|
|
89
89
|
* Creates a new LexiconSchemaBuilder instance.
|
|
90
90
|
*
|
|
@@ -115,18 +115,18 @@ export declare class LexiconSchemaBuilder implements AsyncDisposable {
|
|
|
115
115
|
* @param fullRef - The full reference in format "nsid#defName"
|
|
116
116
|
* @returns A promise resolving to the built schema or method definition
|
|
117
117
|
*/
|
|
118
|
-
buildFullRef: (fullRef: string) => Promise<l.Schema<LexValue, LexValue
|
|
118
|
+
buildFullRef: (fullRef: string) => Promise<l.Schema<LexValue, LexValue> | l.PermissionSet<`${string}.${string}.${string}`, l.Permission<string, {
|
|
119
119
|
[x: string]: string | number | boolean | number[] | string[] | boolean[];
|
|
120
|
-
}>[]> | l.Procedure<`${string}.${string}.${string}`, l.ParamsSchema<{}>, l.Payload<string, l.Schema<LexValue, LexValue
|
|
120
|
+
}>[]> | l.Procedure<`${string}.${string}.${string}`, l.ParamsSchema<{}>, l.Payload<string, l.Schema<LexValue, LexValue>>, l.Payload<string, l.Schema<LexValue, LexValue>>, string[]> | l.Query<`${string}.${string}.${string}`, l.ParamsSchema<{}>, l.Payload<string, l.Schema<LexValue, LexValue>>, string[]> | l.Subscription<`${string}.${string}.${string}`, l.ParamsSchema<{}>, l.Schema<LexValue, LexValue>, string[]>>;
|
|
121
121
|
protected buildRefGetter(fullRef: string): () => l.Schema<LexValue>;
|
|
122
122
|
protected buildTypedRefGetter(fullRef: string): () => l.TypedObjectSchema | l.RecordSchema;
|
|
123
|
-
protected compileDef(doc: LexiconDocument, hash: string): l.Schema<LexValue, LexValue
|
|
123
|
+
protected compileDef(doc: LexiconDocument, hash: string): l.Schema<LexValue, LexValue> | l.PermissionSet<`${string}.${string}.${string}`, l.Permission<string, {
|
|
124
124
|
[x: string]: string | number | boolean | number[] | string[] | boolean[];
|
|
125
|
-
}>[]> | l.Procedure<`${string}.${string}.${string}`, l.ParamsSchema<{}>, l.Payload<string, l.Schema<LexValue, LexValue
|
|
125
|
+
}>[]> | l.Procedure<`${string}.${string}.${string}`, l.ParamsSchema<{}>, l.Payload<string, l.Schema<LexValue, LexValue>>, l.Payload<string, l.Schema<LexValue, LexValue>>, string[]> | l.Query<`${string}.${string}.${string}`, l.ParamsSchema<{}>, l.Payload<string, l.Schema<LexValue, LexValue>>, string[]> | l.Subscription<`${string}.${string}.${string}`, l.ParamsSchema<{}>, l.Schema<LexValue, LexValue>, string[]>;
|
|
126
126
|
protected compileLeaf(doc: LexiconDocument, def: LexiconArray | LexiconArrayItems): l.Schema<LexValue>;
|
|
127
127
|
protected compileRef(doc: LexiconDocument, def: LexiconRef | LexiconRefUnion): l.Schema<LexValue>;
|
|
128
|
-
protected compileObject(doc: LexiconDocument, def: LexiconObject): l.ObjectSchema<Record<string, l.Schema<LexValue | undefined, LexValue | undefined
|
|
129
|
-
protected compilePayload(doc: LexiconDocument, def: LexiconPayload | undefined): l.Payload<string, l.Schema<LexValue, LexValue
|
|
128
|
+
protected compileObject(doc: LexiconDocument, def: LexiconObject): l.ObjectSchema<Record<string, l.Schema<LexValue | undefined, LexValue | undefined>>>;
|
|
129
|
+
protected compilePayload(doc: LexiconDocument, def: LexiconPayload | undefined): l.Payload<string, l.Schema<LexValue, LexValue>>;
|
|
130
130
|
protected compileErrors(_doc: LexiconDocument, errors?: readonly LexiconError[]): undefined | string[];
|
|
131
131
|
protected compilePayloadSchema(doc: LexiconDocument, def: LexiconObject | LexiconRef | LexiconRefUnion): l.Schema<LexValue, LexValue>;
|
|
132
132
|
protected compileParams(doc: LexiconDocument, def?: LexiconParameters): l.ParamsSchema<{}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lexicon-schema-builder.d.ts","sourceRoot":"","sources":["../src/lexicon-schema-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,qBAAqB,CAAA;AACvC,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,UAAU,EACV,eAAe,EAChB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAErD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,qBAAa,oBAAqB,YAAW,eAAe;;IAiG9C,SAAS,CAAC,OAAO,EAAE,cAAc;IAhG7C;;;;;;;;;;;;;;;;;OAiBG;WACU,KAAK,CAChB,OAAO,EAAE,cAAc,EACvB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAa9B;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;WACU,QAAQ,CAAC,OAAO,EAAE,cAAc;IA6B7C;;;;;;;OAOG;gBACmB,OAAO,EAAE,cAAc;IAE7C;;;;;;;;;OASG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,CAAC,MAAM,CAAC,YAAY,CAAC;IAI3B;;;;;;;;OAQG;IACH,YAAY,YAA2B,MAAM;;
|
|
1
|
+
{"version":3,"file":"lexicon-schema-builder.d.ts","sourceRoot":"","sources":["../src/lexicon-schema-builder.ts"],"names":[],"mappings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iB,GACpC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;IA8DrB,SAAS,CAAC,UAAU,CAClB,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,UAAU,GAAG,eAAe,GAChC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;IAiBrB,SAAS,CAAC,aAAa,CAAC,GAAG,EAAE,eAAe,EAAE,GAAG,EAAE,aAAa;IA0BhE,SAAS,CAAC,cAAc,CACtB,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,GAAG,SAAS;IAQjC,SAAS,CAAC,aAAa,CACrB,IAAI,EAAE,eAAe,EACrB,MAAM,CAAC,EAAE,SAAS,YAAY,EAAE,GAC/B,SAAS,GAAG,MAAM,EAAE;IAIvB,SAAS,CAAC,oBAAoB,CAC5B,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,aAAa,GAAG,UAAU,GAAG,eAAe,GAChD,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAS/B,SAAS,CAAC,aAAa,CAAC,GAAG,EAAE,eAAe,EAAE,GAAG,CAAC,EAAE,iBAAiB;CAsBtE;AA6CD,wBAAgB,OAAO,CAAC,EAAE,SAAS,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,CAQvE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/lex-document",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Lexicon document validation tools for AT",
|
|
6
6
|
"keywords": [
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"core-js": "^3",
|
|
40
40
|
"tslib": "^2.8.1",
|
|
41
|
-
"@atproto/lex-schema": "^0.0.
|
|
41
|
+
"@atproto/lex-schema": "^0.0.16"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"vitest": "^4.0.16",
|
|
45
|
-
"@atproto/lex-data": "^0.0.
|
|
45
|
+
"@atproto/lex-data": "^0.0.14"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "tsc --build tsconfig.build.json",
|