@dxos/echo-protocol 0.8.4-main.03d5cd7b56 → 0.8.4-main.05e74ebcff
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/LICENSE +102 -5
- package/README.md +1 -1
- package/dist/lib/neutral/index.mjs +16 -7
- package/dist/lib/neutral/index.mjs.map +3 -3
- package/dist/lib/neutral/meta.json +1 -1
- package/dist/types/src/document-structure.d.ts +10 -0
- package/dist/types/src/document-structure.d.ts.map +1 -1
- package/dist/types/src/query/ast.d.ts +19 -10
- package/dist/types/src/query/ast.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/src/document-structure.ts +12 -0
- package/src/query/ast.ts +17 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/echo-protocol",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.05e74ebcff",
|
|
4
4
|
"description": "Core ECHO APIs.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/dxos/dxos"
|
|
10
10
|
},
|
|
11
|
-
"license": "
|
|
11
|
+
"license": "FSL-1.1-Apache-2.0",
|
|
12
12
|
"author": "DXOS.org",
|
|
13
13
|
"sideEffects": false,
|
|
14
14
|
"type": "module",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"effect": "3.20.0",
|
|
29
|
-
"@dxos/
|
|
30
|
-
"@dxos/
|
|
31
|
-
"@dxos/protocols": "0.8.4-main.
|
|
32
|
-
"@dxos/
|
|
33
|
-
"@dxos/util": "0.8.4-main.
|
|
29
|
+
"@dxos/crypto": "0.8.4-main.05e74ebcff",
|
|
30
|
+
"@dxos/invariant": "0.8.4-main.05e74ebcff",
|
|
31
|
+
"@dxos/protocols": "0.8.4-main.05e74ebcff",
|
|
32
|
+
"@dxos/keys": "0.8.4-main.05e74ebcff",
|
|
33
|
+
"@dxos/util": "0.8.4-main.05e74ebcff"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
@@ -230,6 +230,18 @@ export type ObjectMeta = {
|
|
|
230
230
|
* NOTE: Optional for backwards compatibilty.
|
|
231
231
|
*/
|
|
232
232
|
tags?: string[];
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Fully-qualified registry key for the object (FQN format, e.g. `org.example.type.foo`).
|
|
236
|
+
* Identifies the canonical registry entry the object instance was created from.
|
|
237
|
+
*/
|
|
238
|
+
key?: string;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Semantic version of the registry entry the object was created from.
|
|
242
|
+
* Must be a valid semver string (e.g. `1.2.3`).
|
|
243
|
+
*/
|
|
244
|
+
version?: string;
|
|
233
245
|
};
|
|
234
246
|
|
|
235
247
|
/**
|
package/src/query/ast.ts
CHANGED
|
@@ -42,6 +42,17 @@ const FilterObject_ = Schema.Struct({
|
|
|
42
42
|
*/
|
|
43
43
|
foreignKeys: Schema.optional(Schema.Array(ForeignKey)),
|
|
44
44
|
|
|
45
|
+
/**
|
|
46
|
+
* Match objects whose meta `key` equals this fully-qualified registry key (FQN format).
|
|
47
|
+
*/
|
|
48
|
+
metaKey: Schema.optional(Schema.String),
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Semver range matched against the object's meta `version`.
|
|
52
|
+
* Only consulted when {@link metaKey} is set. Objects with no `version` do not satisfy a version-constrained filter.
|
|
53
|
+
*/
|
|
54
|
+
metaVersion: Schema.optional(Schema.String),
|
|
55
|
+
|
|
45
56
|
// NOTE: Make sure to update `FilterStep.isNoop` if you change this.
|
|
46
57
|
});
|
|
47
58
|
export interface FilterObject extends Schema.Schema.Type<typeof FilterObject_> {}
|
|
@@ -441,21 +452,21 @@ export const Scope = Schema.Struct({
|
|
|
441
452
|
/**
|
|
442
453
|
* The nested select statemets will select from the given spaces.
|
|
443
454
|
*
|
|
444
|
-
* NOTE: Spaces and
|
|
455
|
+
* NOTE: Spaces and feeds are unioned together if both are specified.
|
|
445
456
|
*/
|
|
446
457
|
spaceIds: Schema.optional(Schema.Array(Schema.String)),
|
|
447
458
|
|
|
448
459
|
/**
|
|
449
|
-
* If true, the nested select statements will select from all
|
|
460
|
+
* If true, the nested select statements will select from all feeds in the spaces specified by `spaceIds`.
|
|
450
461
|
*/
|
|
451
|
-
|
|
462
|
+
allFeedsFromSpaces: Schema.optional(Schema.Boolean),
|
|
452
463
|
|
|
453
464
|
/**
|
|
454
|
-
* The nested select statemets will select from the given
|
|
465
|
+
* The nested select statemets will select from the given feeds (by underlying queue DXN).
|
|
455
466
|
*
|
|
456
|
-
* NOTE: Spaces and
|
|
467
|
+
* NOTE: Spaces and feeds are unioned together if both are specified.
|
|
457
468
|
*/
|
|
458
|
-
|
|
469
|
+
feeds: Schema.optional(Schema.Array(DXN.Schema)),
|
|
459
470
|
});
|
|
460
471
|
export interface Scope extends Schema.Schema.Type<typeof Scope> {}
|
|
461
472
|
|