@dxos/client-protocol 0.8.4-main.72ec0f3 → 0.8.4-main.7ace549

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.
Files changed (43) hide show
  1. package/dist/lib/browser/chunk-6IJFMEF3.mjs +34 -0
  2. package/dist/lib/browser/chunk-6IJFMEF3.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +17 -6
  4. package/dist/lib/browser/index.mjs.map +4 -4
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/browser/types/index.mjs +5 -5
  7. package/dist/lib/node-esm/chunk-WLB2RPCH.mjs +36 -0
  8. package/dist/lib/node-esm/chunk-WLB2RPCH.mjs.map +7 -0
  9. package/dist/lib/node-esm/index.mjs +17 -6
  10. package/dist/lib/node-esm/index.mjs.map +4 -4
  11. package/dist/lib/node-esm/meta.json +1 -1
  12. package/dist/lib/node-esm/types/index.mjs +5 -5
  13. package/dist/types/src/config.d.ts +3 -2
  14. package/dist/types/src/config.d.ts.map +1 -1
  15. package/dist/types/src/echo.d.ts +4 -4
  16. package/dist/types/src/echo.d.ts.map +1 -1
  17. package/dist/types/src/index.d.ts +2 -2
  18. package/dist/types/src/index.d.ts.map +1 -1
  19. package/dist/types/src/{service-definitions.d.ts → service.d.ts} +1 -1
  20. package/dist/types/src/service.d.ts.map +1 -0
  21. package/dist/types/src/space.d.ts +21 -16
  22. package/dist/types/src/space.d.ts.map +1 -1
  23. package/dist/types/src/types/SpaceProperties.d.ts +29 -0
  24. package/dist/types/src/types/SpaceProperties.d.ts.map +1 -0
  25. package/dist/types/src/types/index.d.ts +1 -1
  26. package/dist/types/src/types/index.d.ts.map +1 -1
  27. package/dist/types/tsconfig.tsbuildinfo +1 -1
  28. package/package.json +11 -12
  29. package/src/config.ts +2 -2
  30. package/src/echo.ts +4 -4
  31. package/src/index.ts +2 -2
  32. package/src/space.ts +39 -26
  33. package/src/types/SpaceProperties.ts +47 -0
  34. package/src/types/index.ts +1 -1
  35. package/dist/lib/browser/chunk-HIQWFHOK.mjs +0 -25
  36. package/dist/lib/browser/chunk-HIQWFHOK.mjs.map +0 -7
  37. package/dist/lib/node-esm/chunk-TN3JZMTK.mjs +0 -27
  38. package/dist/lib/node-esm/chunk-TN3JZMTK.mjs.map +0 -7
  39. package/dist/types/src/service-definitions.d.ts.map +0 -1
  40. package/dist/types/src/types/Properties.d.ts +0 -22
  41. package/dist/types/src/types/Properties.d.ts.map +0 -1
  42. package/src/types/Properties.ts +0 -29
  43. /package/src/{service-definitions.ts → service.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/client-protocol",
3
- "version": "0.8.4-main.72ec0f3",
3
+ "version": "0.8.4-main.7ace549",
4
4
  "description": "Core DXOS Client API.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -38,17 +38,16 @@
38
38
  "dependencies": {
39
39
  "base-x": "~3.0.9",
40
40
  "effect": "3.18.3",
41
- "@dxos/async": "0.8.4-main.72ec0f3",
42
- "@dxos/context": "0.8.4-main.72ec0f3",
43
- "@dxos/config": "0.8.4-main.72ec0f3",
44
- "@dxos/echo-db": "0.8.4-main.72ec0f3",
45
- "@dxos/credentials": "0.8.4-main.72ec0f3",
46
- "@dxos/echo": "0.8.4-main.72ec0f3",
47
- "@dxos/node-std": "0.8.4-main.72ec0f3",
48
- "@dxos/rpc": "0.8.4-main.72ec0f3",
49
- "@dxos/invariant": "0.8.4-main.72ec0f3",
50
- "@dxos/protocols": "0.8.4-main.72ec0f3",
51
- "@dxos/keys": "0.8.4-main.72ec0f3"
41
+ "@dxos/async": "0.8.4-main.7ace549",
42
+ "@dxos/context": "0.8.4-main.7ace549",
43
+ "@dxos/credentials": "0.8.4-main.7ace549",
44
+ "@dxos/echo": "0.8.4-main.7ace549",
45
+ "@dxos/echo-db": "0.8.4-main.7ace549",
46
+ "@dxos/keys": "0.8.4-main.7ace549",
47
+ "@dxos/invariant": "0.8.4-main.7ace549",
48
+ "@dxos/protocols": "0.8.4-main.7ace549",
49
+ "@dxos/rpc": "0.8.4-main.7ace549",
50
+ "@dxos/node-std": "0.8.4-main.7ace549"
52
51
  },
53
52
  "peerDependencies": {
54
53
  "effect": "^3.13.3"
package/src/config.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
4
 
5
- import { type ConfigProto } from '@dxos/config';
5
+ // TODO(wittjosiah): Factor out to @dxos/config.
6
6
 
7
7
  export const DEFAULT_INTERNAL_CHANNEL = 'dxos:vault';
8
8
  export const DEFAULT_CLIENT_CHANNEL = 'dxos:app';
@@ -15,7 +15,7 @@ export const DEFAULT_WORKER_BROADCAST_CHANNEL = 'dxos:shared-worker';
15
15
  export const DEFAULT_VAULT_URL = 'https://halo.dxos.org/vault.html';
16
16
 
17
17
  export const EXPECTED_CONFIG_VERSION = 1;
18
- export const defaultConfig: ConfigProto = { version: 1 };
18
+ export const defaultConfig = { version: 1 };
19
19
 
20
20
  // TODO(burdon): Allow override via env? Generalize since currently NodeJS only.
21
21
  const HOME = typeof process !== 'undefined' ? (process?.env?.HOME ?? '') : '';
package/src/echo.ts CHANGED
@@ -3,19 +3,19 @@
3
3
  //
4
4
 
5
5
  import type { MulticastObservable } from '@dxos/async';
6
- import type { Queryable } from '@dxos/echo-db';
6
+ import type { Database } from '@dxos/echo';
7
7
  import type { PublicKey, SpaceId } from '@dxos/keys';
8
8
  import type { Invitation, SpaceArchive } from '@dxos/protocols/proto/dxos/client/services';
9
9
 
10
10
  import type { AuthenticatingInvitation } from './invitations';
11
11
  import type { Space } from './space';
12
- import type { PropertiesTypeProps } from './types';
12
+ import type { SpaceProperties } from './types';
13
13
 
14
14
  /**
15
15
  * Public database API.
16
16
  */
17
17
  // TODO(wittjosiah): Rename Database (not product name).
18
- export interface Echo extends MulticastObservable<Space[]>, Queryable {
18
+ export interface Echo extends MulticastObservable<Space[]>, Database.Queryable {
19
19
  /**
20
20
  * Observable which indicates when the default space is available.
21
21
  */
@@ -51,7 +51,7 @@ export interface Echo extends MulticastObservable<Space[]>, Queryable {
51
51
  /**
52
52
  * Creates a new space.
53
53
  */
54
- create(meta?: PropertiesTypeProps): Promise<Space>;
54
+ create(props?: Pick<SpaceProperties, 'name' | 'hue' | 'icon' | 'invocationTraceQueue'>): Promise<Space>;
55
55
 
56
56
  /**
57
57
  * Creates a space from the given archive.
package/src/index.ts CHANGED
@@ -7,8 +7,8 @@ export * from './config';
7
7
  export type * from './echo';
8
8
  export type * from './halo';
9
9
  export * from './invitations';
10
- export * from './service-definitions';
10
+ export * from './service';
11
11
  export type * from './shell';
12
- export type * from './space';
12
+ export * from './space';
13
13
  export * from './timeouts';
14
14
  export * from './types';
package/src/space.ts CHANGED
@@ -2,10 +2,14 @@
2
2
  // Copyright 2021 DXOS.org
3
3
  //
4
4
 
5
- import { type CleanupFn, type MulticastObservable } from '@dxos/async';
5
+ import * as Schema from 'effect/Schema';
6
+
7
+ import { type MulticastObservable } from '@dxos/async';
6
8
  import { type SpecificCredential } from '@dxos/credentials';
7
- import { type AnyLiveObject, type EchoDatabase, type QueueFactory, type SpaceSyncState } from '@dxos/echo-db';
9
+ import { type Obj } from '@dxos/echo';
10
+ import { type EchoDatabase, type QueueFactory, type SpaceSyncState } from '@dxos/echo-db';
8
11
  import { type PublicKey, type SpaceId } from '@dxos/keys';
12
+ import { type Messenger } from '@dxos/protocols';
9
13
  import {
10
14
  type Contact,
11
15
  type CreateEpochRequest,
@@ -19,9 +23,9 @@ import {
19
23
  import { type EdgeReplicationSetting } from '@dxos/protocols/proto/dxos/echo/metadata';
20
24
  import { type SpaceSnapshot } from '@dxos/protocols/proto/dxos/echo/snapshot';
21
25
  import { type Credential, type Epoch } from '@dxos/protocols/proto/dxos/halo/credentials';
22
- import { type GossipMessage } from '@dxos/protocols/proto/dxos/mesh/teleport/gossip';
23
26
 
24
27
  import { type CancellableInvitation } from './invitations';
28
+ import { type SpaceProperties } from './types';
25
29
 
26
30
  export type CreateEpochOptions = {
27
31
  migration?: CreateEpochRequest.Migration;
@@ -31,15 +35,18 @@ export type CreateEpochOptions = {
31
35
  export interface SpaceInternal {
32
36
  get data(): SpaceData;
33
37
 
34
- // TODO(dmaretskyi): Return epoch info.
35
- createEpoch(options?: CreateEpochOptions): Promise<void>;
36
-
37
38
  getCredentials(): Promise<Credential[]>;
38
39
 
39
40
  getEpochs(): Promise<SpecificCredential<Epoch>[]>;
40
41
 
42
+ // TODO(dmaretskyi): Return epoch info.
43
+ createEpoch(options?: CreateEpochOptions): Promise<void>;
44
+
45
+ // TOOD(burdon): Start to factor out credentials.
41
46
  removeMember(memberKey: PublicKey): Promise<void>;
42
47
 
48
+ export(): Promise<SpaceArchive>;
49
+
43
50
  /**
44
51
  * Migrate space data to the latest version.
45
52
  */
@@ -55,22 +62,23 @@ export interface SpaceInternal {
55
62
  onProgress: (state: SpaceSyncState.PeerState | undefined) => void;
56
63
  timeout?: number;
57
64
  }): Promise<void>;
58
-
59
- export(): Promise<SpaceArchive>;
60
65
  }
61
66
 
62
- // TODO(burdon): Separate public API form implementation (move comments here).
63
- export interface Space {
64
- /**
65
- * Unique space identifier.
66
- */
67
- get id(): SpaceId;
67
+ export const SPACE_TAG = Symbol('dxos.client.protocol.Space');
68
+
69
+ export interface Space extends Messenger {
70
+ readonly [SPACE_TAG]: true;
68
71
 
69
72
  /**
70
73
  * @deprecated Use `id`.
71
74
  */
72
75
  get key(): PublicKey;
73
76
 
77
+ /**
78
+ * Unique space identifier.
79
+ */
80
+ get id(): SpaceId;
81
+
74
82
  /**
75
83
  * Echo database.
76
84
  */
@@ -81,13 +89,9 @@ export interface Space {
81
89
  */
82
90
  get queues(): QueueFactory;
83
91
 
92
+ // TODO(burdon): Replace with state?
84
93
  get isOpen(): boolean;
85
94
 
86
- /**
87
- * Properties object.
88
- */
89
- get properties(): AnyLiveObject<any>;
90
-
91
95
  /**
92
96
  * Current state of the space.
93
97
  * The database is ready to be used in `SpaceState.SPACE_READY` state.
@@ -95,6 +99,11 @@ export interface Space {
95
99
  */
96
100
  get state(): MulticastObservable<SpaceState>;
97
101
 
102
+ /**
103
+ * Properties object.
104
+ */
105
+ get properties(): Obj.Obj<SpaceProperties>;
106
+
98
107
  /**
99
108
  * Current state of space pipeline.
100
109
  */
@@ -110,11 +119,11 @@ export interface Space {
110
119
  // TODO(wittjosiah): Remove. This should not be exposed.
111
120
  get internal(): SpaceInternal;
112
121
 
113
- // TODO(wittjosiah): Rename activate/deactivate?
114
122
  /**
115
123
  * Activates the space enabling the use of the database and starts replication with peers.
116
124
  * The setting is persisted on the local device.
117
125
  */
126
+ // TODO(wittjosiah): Rename activate/deactivate?
118
127
  open(): Promise<void>;
119
128
 
120
129
  /**
@@ -132,13 +141,17 @@ export interface Space {
132
141
  createSnapshot(): Promise<SpaceSnapshot>;
133
142
 
134
143
  // TODO(burdon): Create invitation?
144
+ // TODO(burdon): Factor out membership, etc.
135
145
  share(options?: Partial<Invitation>): CancellableInvitation;
136
-
137
146
  admitContact(contact: Contact): Promise<void>;
138
-
139
147
  updateMemberRole(request: Omit<UpdateMemberRoleRequest, 'spaceKey'>): Promise<void>;
140
-
141
- // TODO(wittjosiah): Gather into messaging abstraction?
142
- postMessage: (channel: string, message: any) => Promise<void>;
143
- listen: (channel: string, callback: (message: GossipMessage) => void) => CleanupFn;
144
148
  }
149
+
150
+ export const isSpace = (object: unknown): object is Space =>
151
+ typeof object === 'object' && object != null && (object as Space)[SPACE_TAG] === true;
152
+
153
+ // TODO(burdon): Create lower-level definition (HasId, db, etc.) and move to @dxos/echo.
154
+ export const SpaceSchema: Schema.Schema<Space> = Schema.Any.pipe(
155
+ Schema.filter((space) => isSpace(space)),
156
+ Schema.annotations({ title: 'Space' }),
157
+ );
@@ -0,0 +1,47 @@
1
+ //
2
+ // Copyright 2024 DXOS.org
3
+ //
4
+
5
+ import * as Schema from 'effect/Schema';
6
+
7
+ import { Annotation, Type } from '@dxos/echo';
8
+ import { Queue } from '@dxos/echo-db';
9
+
10
+ export const SpacePropertiesSchema = Schema.Struct(
11
+ {
12
+ //
13
+ // System properties.
14
+ //
15
+
16
+ archived: Schema.optional(Schema.Boolean.annotations({ title: 'Archive Space' })),
17
+ edgeReplication: Schema.optional(Schema.Boolean), // TODO(burdon): Change to mode (no booleans?)
18
+ invocationTraceQueue: Schema.optional(Type.Ref(Queue)),
19
+
20
+ //
21
+ // User properties.
22
+ //
23
+
24
+ name: Schema.optional(Schema.String),
25
+ icon: Schema.optional(Schema.String),
26
+ hue: Schema.optional(Schema.String),
27
+ },
28
+ {
29
+ key: Schema.String,
30
+ value: Schema.Any,
31
+ },
32
+ );
33
+
34
+ export type SpacePropertiesSchema = Schema.Schema.Type<typeof SpacePropertiesSchema>;
35
+
36
+ // TODO(burdon): Pipe Schem.optional, or partial to entire struct to make everything optional?
37
+ // TODO(burdon): Is separate schema def required for forms? Can it be extracted from SpaceProperties?
38
+ export const SpaceProperties = SpacePropertiesSchema.pipe(
39
+ Type.Obj({
40
+ // TODO(burdon): Rename SpaceProperties.
41
+ typename: 'dxos.org/type/Properties',
42
+ version: '0.1.0',
43
+ }),
44
+ Annotation.SystemTypeAnnotation.set(true),
45
+ );
46
+
47
+ export interface SpaceProperties extends Schema.Schema.Type<typeof SpaceProperties> {}
@@ -2,4 +2,4 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- export * from './Properties';
5
+ export * from './SpaceProperties';
@@ -1,25 +0,0 @@
1
- // src/types/Properties.ts
2
- import * as Schema from "effect/Schema";
3
- import { Type } from "@dxos/echo";
4
- import { TypedObject } from "@dxos/echo/internal";
5
- import { Queue } from "@dxos/echo-db";
6
- var TYPE_PROPERTIES = "dxos.org/type/Properties";
7
- var PropertiesType = class extends TypedObject({
8
- typename: TYPE_PROPERTIES,
9
- version: "0.1.0"
10
- })({
11
- name: Schema.optional(Schema.String),
12
- // TODO(wittjosiah): Make generic?
13
- hue: Schema.optional(Schema.String),
14
- icon: Schema.optional(Schema.String),
15
- invocationTraceQueue: Schema.optional(Type.Ref(Queue))
16
- }, {
17
- record: true
18
- }) {
19
- };
20
-
21
- export {
22
- TYPE_PROPERTIES,
23
- PropertiesType
24
- };
25
- //# sourceMappingURL=chunk-HIQWFHOK.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/types/Properties.ts"],
4
- "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Type } from '@dxos/echo';\nimport { TypedObject } from '@dxos/echo/internal';\nimport { Queue } from '@dxos/echo-db';\n\nexport const TYPE_PROPERTIES = 'dxos.org/type/Properties';\n\n// TODO(burdon): Factor out (co-locate with TYPE_PROPERTIES).\nexport class PropertiesType extends TypedObject({\n typename: TYPE_PROPERTIES,\n version: '0.1.0',\n})(\n {\n name: Schema.optional(Schema.String),\n // TODO(wittjosiah): Make generic?\n hue: Schema.optional(Schema.String),\n icon: Schema.optional(Schema.String),\n invocationTraceQueue: Schema.optional(Type.Ref(Queue)),\n },\n { record: true },\n) {}\n\n// TODO(burdon): Remove? Use PropertiesType instead?\nexport type PropertiesTypeProps = Pick<PropertiesType, 'name' | 'hue' | 'icon' | 'invocationTraceQueue'>;\n"],
5
- "mappings": ";AAIA,YAAYA,YAAY;AAExB,SAASC,YAAY;AACrB,SAASC,mBAAmB;AAC5B,SAASC,aAAa;AAEf,IAAMC,kBAAkB;AAGxB,IAAMC,iBAAN,cAA6BC,YAAY;EAC9CC,UAAUH;EACVI,SAAS;AACX,CAAA,EACE;EACEC,MAAaC,gBAAgBC,aAAM;;EAEnCC,KAAYF,gBAAgBC,aAAM;EAClCE,MAAaH,gBAAgBC,aAAM;EACnCG,sBAA6BJ,gBAASK,KAAKC,IAAIC,KAAAA,CAAAA;AACjD,GACA;EAAEC,QAAQ;AAAK,CAAA,EAAA;AACd;",
6
- "names": ["Schema", "Type", "TypedObject", "Queue", "TYPE_PROPERTIES", "PropertiesType", "TypedObject", "typename", "version", "name", "optional", "String", "hue", "icon", "invocationTraceQueue", "Type", "Ref", "Queue", "record"]
7
- }
@@ -1,27 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
-
3
- // src/types/Properties.ts
4
- import * as Schema from "effect/Schema";
5
- import { Type } from "@dxos/echo";
6
- import { TypedObject } from "@dxos/echo/internal";
7
- import { Queue } from "@dxos/echo-db";
8
- var TYPE_PROPERTIES = "dxos.org/type/Properties";
9
- var PropertiesType = class extends TypedObject({
10
- typename: TYPE_PROPERTIES,
11
- version: "0.1.0"
12
- })({
13
- name: Schema.optional(Schema.String),
14
- // TODO(wittjosiah): Make generic?
15
- hue: Schema.optional(Schema.String),
16
- icon: Schema.optional(Schema.String),
17
- invocationTraceQueue: Schema.optional(Type.Ref(Queue))
18
- }, {
19
- record: true
20
- }) {
21
- };
22
-
23
- export {
24
- TYPE_PROPERTIES,
25
- PropertiesType
26
- };
27
- //# sourceMappingURL=chunk-TN3JZMTK.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/types/Properties.ts"],
4
- "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Type } from '@dxos/echo';\nimport { TypedObject } from '@dxos/echo/internal';\nimport { Queue } from '@dxos/echo-db';\n\nexport const TYPE_PROPERTIES = 'dxos.org/type/Properties';\n\n// TODO(burdon): Factor out (co-locate with TYPE_PROPERTIES).\nexport class PropertiesType extends TypedObject({\n typename: TYPE_PROPERTIES,\n version: '0.1.0',\n})(\n {\n name: Schema.optional(Schema.String),\n // TODO(wittjosiah): Make generic?\n hue: Schema.optional(Schema.String),\n icon: Schema.optional(Schema.String),\n invocationTraceQueue: Schema.optional(Type.Ref(Queue)),\n },\n { record: true },\n) {}\n\n// TODO(burdon): Remove? Use PropertiesType instead?\nexport type PropertiesTypeProps = Pick<PropertiesType, 'name' | 'hue' | 'icon' | 'invocationTraceQueue'>;\n"],
5
- "mappings": ";;;AAIA,YAAYA,YAAY;AAExB,SAASC,YAAY;AACrB,SAASC,mBAAmB;AAC5B,SAASC,aAAa;AAEf,IAAMC,kBAAkB;AAGxB,IAAMC,iBAAN,cAA6BC,YAAY;EAC9CC,UAAUH;EACVI,SAAS;AACX,CAAA,EACE;EACEC,MAAaC,gBAAgBC,aAAM;;EAEnCC,KAAYF,gBAAgBC,aAAM;EAClCE,MAAaH,gBAAgBC,aAAM;EACnCG,sBAA6BJ,gBAASK,KAAKC,IAAIC,KAAAA,CAAAA;AACjD,GACA;EAAEC,QAAQ;AAAK,CAAA,EAAA;AACd;",
6
- "names": ["Schema", "Type", "TypedObject", "Queue", "TYPE_PROPERTIES", "PropertiesType", "TypedObject", "typename", "version", "name", "optional", "String", "hue", "icon", "invocationTraceQueue", "Type", "Ref", "Queue", "record"]
7
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"service-definitions.d.ts","sourceRoot":"","sources":["../../../src/service-definitions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,aAAa,EACb,aAAa,EACd,MAAM,4CAA4C,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AACjG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,KAAK,aAAa,EAAuB,MAAM,WAAW,CAAC;AAMpE,MAAM,MAAM,cAAc,GAAG;IAC3B,aAAa,EAAE,aAAa,CAAC;IAC7B,cAAc,EAAE,cAAc,CAAC;IAC/B,cAAc,EAAE,cAAc,CAAC;IAE/B,eAAe,EAAE,eAAe,CAAC;IACjC,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,YAAY,EAAE,YAAY,CAAC;IAC3B,cAAc,EAAE,cAAc,CAAC;IAC/B,aAAa,EAAE,aAAa,CAAC;IAC7B,WAAW,EAAE,WAAW,CAAC;IACzB,eAAe,EAAE,eAAe,CAAC;IACjC,gBAAgB,EAAE,gBAAgB,CAAC;IAGnC,YAAY,EAAE,YAAY,CAAC;IAE3B,cAAc,EAAE,cAAc,CAAC;CAChC,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,MAAM,EAAE,KAAK,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC;IACjC,WAAW,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IAC3C,QAAQ,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;IAGlC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACtB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,+BAiB9B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG;IAChC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC,mBAAmB,CAElE,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC,mBAAmB,CAElE,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE,UAAU,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,aAAa,CAAC,gBAAgB,CAE5D,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,YAAY,EAAE,YAAY,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,aAAa,CAAC,kBAAkB,CAEhE,CAAC"}
@@ -1,22 +0,0 @@
1
- import * as Schema from 'effect/Schema';
2
- import { Type } from '@dxos/echo';
3
- import { Queue } from '@dxos/echo-db';
4
- export declare const TYPE_PROPERTIES = "dxos.org/type/Properties";
5
- declare const PropertiesType_base: import("@dxos/echo/internal").TypedObjectPrototype<import("@dxos/echo/internal").TypedObjectFields<{
6
- name: Schema.optional<typeof Schema.String>;
7
- hue: Schema.optional<typeof Schema.String>;
8
- icon: Schema.optional<typeof Schema.String>;
9
- invocationTraceQueue: Schema.optional<Type.ref<Schema.Schema<Queue<import("@dxos/echo/Obj").Any | import("@dxos/echo/Relation").Any>, Queue<import("@dxos/echo/Obj").Any | import("@dxos/echo/Relation").Any>, never>>>;
10
- }, {
11
- record: true;
12
- }>, Schema.Struct.Encoded<{
13
- name: Schema.optional<typeof Schema.String>;
14
- hue: Schema.optional<typeof Schema.String>;
15
- icon: Schema.optional<typeof Schema.String>;
16
- invocationTraceQueue: Schema.optional<Type.ref<Schema.Schema<Queue<import("@dxos/echo/Obj").Any | import("@dxos/echo/Relation").Any>, Queue<import("@dxos/echo/Obj").Any | import("@dxos/echo/Relation").Any>, never>>>;
17
- }>>;
18
- export declare class PropertiesType extends PropertiesType_base {
19
- }
20
- export type PropertiesTypeProps = Pick<PropertiesType, 'name' | 'hue' | 'icon' | 'invocationTraceQueue'>;
21
- export {};
22
- //# sourceMappingURL=Properties.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Properties.d.ts","sourceRoot":"","sources":["../../../../src/types/Properties.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,eAAO,MAAM,eAAe,6BAA6B,CAAC;;;;;;;;;;;;;;AAG1D,qBAAa,cAAe,SAAQ,mBAYnC;CAAG;AAGJ,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,sBAAsB,CAAC,CAAC"}
@@ -1,29 +0,0 @@
1
- //
2
- // Copyright 2024 DXOS.org
3
- //
4
-
5
- import * as Schema from 'effect/Schema';
6
-
7
- import { Type } from '@dxos/echo';
8
- import { TypedObject } from '@dxos/echo/internal';
9
- import { Queue } from '@dxos/echo-db';
10
-
11
- export const TYPE_PROPERTIES = 'dxos.org/type/Properties';
12
-
13
- // TODO(burdon): Factor out (co-locate with TYPE_PROPERTIES).
14
- export class PropertiesType extends TypedObject({
15
- typename: TYPE_PROPERTIES,
16
- version: '0.1.0',
17
- })(
18
- {
19
- name: Schema.optional(Schema.String),
20
- // TODO(wittjosiah): Make generic?
21
- hue: Schema.optional(Schema.String),
22
- icon: Schema.optional(Schema.String),
23
- invocationTraceQueue: Schema.optional(Type.Ref(Queue)),
24
- },
25
- { record: true },
26
- ) {}
27
-
28
- // TODO(burdon): Remove? Use PropertiesType instead?
29
- export type PropertiesTypeProps = Pick<PropertiesType, 'name' | 'hue' | 'icon' | 'invocationTraceQueue'>;
File without changes