@dxos/client-protocol 0.8.4-main.2e9d522 → 0.8.4-main.3c1ae3b

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 (50) hide show
  1. package/dist/lib/browser/chunk-2AH3JTEH.mjs +36 -0
  2. package/dist/lib/browser/chunk-2AH3JTEH.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +23 -24
  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 +9 -0
  7. package/dist/lib/browser/types/index.mjs.map +7 -0
  8. package/dist/lib/node-esm/chunk-NAXFTGN7.mjs +38 -0
  9. package/dist/lib/node-esm/chunk-NAXFTGN7.mjs.map +7 -0
  10. package/dist/lib/node-esm/index.mjs +22 -24
  11. package/dist/lib/node-esm/index.mjs.map +4 -4
  12. package/dist/lib/node-esm/meta.json +1 -1
  13. package/dist/lib/node-esm/types/index.mjs +10 -0
  14. package/dist/lib/node-esm/types/index.mjs.map +7 -0
  15. package/dist/types/src/config.d.ts +3 -2
  16. package/dist/types/src/config.d.ts.map +1 -1
  17. package/dist/types/src/echo.d.ts +9 -15
  18. package/dist/types/src/echo.d.ts.map +1 -1
  19. package/dist/types/src/halo.d.ts +1 -1
  20. package/dist/types/src/halo.d.ts.map +1 -1
  21. package/dist/types/src/index.d.ts +3 -3
  22. package/dist/types/src/index.d.ts.map +1 -1
  23. package/dist/types/src/{service-definitions.d.ts → service.d.ts} +2 -4
  24. package/dist/types/src/service.d.ts.map +1 -0
  25. package/dist/types/src/shell.d.ts +1 -1
  26. package/dist/types/src/shell.d.ts.map +1 -1
  27. package/dist/types/src/space.d.ts +29 -16
  28. package/dist/types/src/space.d.ts.map +1 -1
  29. package/dist/types/src/timeouts.d.ts +4 -0
  30. package/dist/types/src/timeouts.d.ts.map +1 -1
  31. package/dist/types/src/types/SpaceProperties.d.ts +29 -0
  32. package/dist/types/src/types/SpaceProperties.d.ts.map +1 -0
  33. package/dist/types/src/types/index.d.ts +2 -0
  34. package/dist/types/src/types/index.d.ts.map +1 -0
  35. package/dist/types/tsconfig.tsbuildinfo +1 -1
  36. package/package.json +24 -15
  37. package/src/config.ts +2 -2
  38. package/src/echo.ts +11 -20
  39. package/src/halo.ts +1 -1
  40. package/src/index.ts +3 -3
  41. package/src/{service-definitions.ts → service.ts} +2 -9
  42. package/src/shell.ts +1 -1
  43. package/src/space.ts +48 -26
  44. package/src/timeouts.ts +5 -0
  45. package/src/types/SpaceProperties.ts +49 -0
  46. package/src/types/index.ts +5 -0
  47. package/dist/types/src/schema.d.ts +0 -27
  48. package/dist/types/src/schema.d.ts.map +0 -1
  49. package/dist/types/src/service-definitions.d.ts.map +0 -1
  50. package/src/schema.ts +0 -28
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/client-protocol",
3
- "version": "0.8.4-main.2e9d522",
3
+ "version": "0.8.4-main.3c1ae3b",
4
4
  "description": "Core DXOS Client API.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -11,14 +11,25 @@
11
11
  "type": "module",
12
12
  "exports": {
13
13
  ".": {
14
+ "source": "./src/index.ts",
14
15
  "types": "./dist/types/src/index.d.ts",
15
16
  "browser": "./dist/lib/browser/index.mjs",
16
17
  "node": "./dist/lib/node-esm/index.mjs"
18
+ },
19
+ "./types": {
20
+ "source": "./src/types/index.ts",
21
+ "types": "./dist/types/src/types/index.d.ts",
22
+ "browser": "./dist/lib/browser/types/index.mjs",
23
+ "node": "./dist/lib/node-esm/types/index.mjs"
17
24
  }
18
25
  },
19
26
  "types": "dist/types/src/index.d.ts",
20
27
  "typesVersions": {
21
- "*": {}
28
+ "*": {
29
+ "./types": [
30
+ "./dist/types/src/types/index.d.ts"
31
+ ]
32
+ }
22
33
  },
23
34
  "files": [
24
35
  "dist",
@@ -26,19 +37,17 @@
26
37
  ],
27
38
  "dependencies": {
28
39
  "base-x": "~3.0.9",
29
- "effect": "3.17.0",
30
- "@dxos/async": "0.8.4-main.2e9d522",
31
- "@dxos/config": "0.8.4-main.2e9d522",
32
- "@dxos/context": "0.8.4-main.2e9d522",
33
- "@dxos/credentials": "0.8.4-main.2e9d522",
34
- "@dxos/echo": "0.8.4-main.2e9d522",
35
- "@dxos/echo-db": "0.8.4-main.2e9d522",
36
- "@dxos/echo-schema": "0.8.4-main.2e9d522",
37
- "@dxos/invariant": "0.8.4-main.2e9d522",
38
- "@dxos/keys": "0.8.4-main.2e9d522",
39
- "@dxos/node-std": "0.8.4-main.2e9d522",
40
- "@dxos/protocols": "0.8.4-main.2e9d522",
41
- "@dxos/rpc": "0.8.4-main.2e9d522"
40
+ "effect": "3.18.3",
41
+ "@dxos/async": "0.8.4-main.3c1ae3b",
42
+ "@dxos/context": "0.8.4-main.3c1ae3b",
43
+ "@dxos/credentials": "0.8.4-main.3c1ae3b",
44
+ "@dxos/echo": "0.8.4-main.3c1ae3b",
45
+ "@dxos/echo-db": "0.8.4-main.3c1ae3b",
46
+ "@dxos/invariant": "0.8.4-main.3c1ae3b",
47
+ "@dxos/node-std": "0.8.4-main.3c1ae3b",
48
+ "@dxos/protocols": "0.8.4-main.3c1ae3b",
49
+ "@dxos/rpc": "0.8.4-main.3c1ae3b",
50
+ "@dxos/keys": "0.8.4-main.3c1ae3b"
42
51
  },
43
52
  "peerDependencies": {
44
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,26 +3,19 @@
3
3
  //
4
4
 
5
5
  import type { MulticastObservable } from '@dxos/async';
6
- import type { QueryFn } 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
- import type { PropertiesTypeProps } from './schema';
12
11
  import type { Space } from './space';
12
+ import type { SpaceProperties } from './types';
13
13
 
14
14
  /**
15
- * TODO(burdon): Public API (move comments here).
15
+ * Public database API.
16
16
  */
17
- // TODO(wittjosiah): Rename?
18
- // https://ts.dev/style/#naming-style
19
- // ClientApi? ClientProtocol?
20
- export interface Echo extends MulticastObservable<Space[]> {
21
- /**
22
- * Resolves when the default space is available.
23
- */
24
- waitUntilReady(): Promise<void>;
25
-
17
+ // TODO(wittjosiah): Rename Database (not product name).
18
+ export interface Echo extends MulticastObservable<Space[]>, Database.Queryable {
26
19
  /**
27
20
  * Observable which indicates when the default space is available.
28
21
  */
@@ -50,10 +43,15 @@ export interface Echo extends MulticastObservable<Space[]> {
50
43
  */
51
44
  get default(): Space;
52
45
 
46
+ /**
47
+ * Resolves when the default space is available.
48
+ */
49
+ waitUntilReady(): Promise<void>;
50
+
53
51
  /**
54
52
  * Creates a new space.
55
53
  */
56
- create(meta?: PropertiesTypeProps): Promise<Space>;
54
+ create(props?: Pick<SpaceProperties, 'name' | 'hue' | 'icon' | 'invocationTraceQueue'>): Promise<Space>;
57
55
 
58
56
  /**
59
57
  * Creates a space from the given archive.
@@ -66,11 +64,4 @@ export interface Echo extends MulticastObservable<Space[]> {
66
64
  join(invitation: Invitation | string): AuthenticatingInvitation;
67
65
 
68
66
  joinBySpaceKey(spaceKey: PublicKey): Promise<Space>;
69
-
70
- /**
71
- * Query all spaces.
72
- * @param filter
73
- * @param options
74
- */
75
- query: QueryFn;
76
67
  }
package/src/halo.ts CHANGED
@@ -6,8 +6,8 @@ import { type MulticastObservable } from '@dxos/async';
6
6
  import { type PublicKey } from '@dxos/keys';
7
7
  import { type Contact, type Device, type Identity, type Invitation } from '@dxos/protocols/proto/dxos/client/services';
8
8
  import {
9
- type DeviceProfileDocument,
10
9
  type Credential,
10
+ type DeviceProfileDocument,
11
11
  type Presentation,
12
12
  type ProfileDocument,
13
13
  } from '@dxos/protocols/proto/dxos/halo/credentials';
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
- export * from './schema';
14
+ export * from './types';
@@ -4,17 +4,16 @@
4
4
 
5
5
  import { type Event } from '@dxos/async';
6
6
  import { schema } from '@dxos/protocols/proto';
7
- import type { FunctionRegistryService } from '@dxos/protocols/proto/dxos/agent/functions';
8
7
  import type {
8
+ ContactsService,
9
9
  DevicesService,
10
+ EdgeAgentService,
10
11
  IdentityService,
11
12
  InvitationsService,
12
13
  LoggingService,
13
14
  NetworkService,
14
15
  SpacesService,
15
16
  SystemService,
16
- ContactsService,
17
- EdgeAgentService,
18
17
  } from '@dxos/protocols/proto/dxos/client/services';
19
18
  import type { DevtoolsHost } from '@dxos/protocols/proto/dxos/devtools/host';
20
19
  import type { QueryService } from '@dxos/protocols/proto/dxos/echo/query';
@@ -42,8 +41,6 @@ export type ClientServices = {
42
41
  ContactsService: ContactsService;
43
42
  EdgeAgentService: EdgeAgentService;
44
43
 
45
- FunctionRegistryService: FunctionRegistryService;
46
-
47
44
  // TODO(burdon): Deprecated.
48
45
  DevtoolsHost: DevtoolsHost;
49
46
 
@@ -84,12 +81,8 @@ export const clientServiceBundle = createServiceBundle<ClientServices>({
84
81
  ContactsService: schema.getService('dxos.client.services.ContactsService'),
85
82
  EdgeAgentService: schema.getService('dxos.client.services.EdgeAgentService'),
86
83
 
87
- // Agent-only.
88
- FunctionRegistryService: schema.getService('dxos.agent.functions.FunctionRegistryService'),
89
-
90
84
  // TODO(burdon): Deprecated.
91
85
  DevtoolsHost: schema.getService('dxos.devtools.host.DevtoolsHost'),
92
-
93
86
  TracingService: schema.getService('dxos.tracing.TracingService'),
94
87
  });
95
88
 
package/src/shell.ts CHANGED
@@ -5,8 +5,8 @@
5
5
  import { type Event } from '@dxos/async';
6
6
  import { type PublicKey } from '@dxos/keys';
7
7
  import {
8
- type InvitationUrlRequest,
9
8
  type AppContextRequest,
9
+ type InvitationUrlRequest,
10
10
  type LayoutRequest,
11
11
  type ShellLayout,
12
12
  } from '@dxos/protocols/proto/dxos/iframe';
package/src/space.ts CHANGED
@@ -2,16 +2,20 @@
2
2
  // Copyright 2021 DXOS.org
3
3
  //
4
4
 
5
- import { type MulticastObservable, type CleanupFn } 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 QueueFactory, type EchoDatabase, type AnyLiveObject } 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,
12
16
  type Invitation,
13
- type Space as SpaceData,
14
17
  type SpaceArchive,
18
+ type Space as SpaceData,
15
19
  type SpaceMember,
16
20
  type SpaceState,
17
21
  type UpdateMemberRoleRequest,
@@ -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
  */
@@ -47,21 +54,31 @@ export interface SpaceInternal {
47
54
 
48
55
  setEdgeReplicationPreference(setting: EdgeReplicationSetting): Promise<void>;
49
56
 
50
- export(): Promise<SpaceArchive>;
51
- }
52
-
53
- // TODO(burdon): Separate public API form implementation (move comments here).
54
- export interface Space {
55
57
  /**
56
- * Unique space identifier.
58
+ * Waits until the space is fully synced with EDGE.
59
+ * @throws If the EDGE sync is disabled.
57
60
  */
58
- get id(): SpaceId;
61
+ syncToEdge(opts?: {
62
+ onProgress: (state: SpaceSyncState.PeerState | undefined) => void;
63
+ timeout?: number;
64
+ }): Promise<void>;
65
+ }
66
+
67
+ export const SPACE_TAG = Symbol('dxos.client.protocol.Space');
68
+
69
+ export interface Space extends Messenger {
70
+ readonly [SPACE_TAG]: true;
59
71
 
60
72
  /**
61
73
  * @deprecated Use `id`.
62
74
  */
63
75
  get key(): PublicKey;
64
76
 
77
+ /**
78
+ * Unique space identifier.
79
+ */
80
+ get id(): SpaceId;
81
+
65
82
  /**
66
83
  * Echo database.
67
84
  */
@@ -72,13 +89,9 @@ export interface Space {
72
89
  */
73
90
  get queues(): QueueFactory;
74
91
 
92
+ // TODO(burdon): Replace with state?
75
93
  get isOpen(): boolean;
76
94
 
77
- /**
78
- * Properties object.
79
- */
80
- get properties(): AnyLiveObject<any>;
81
-
82
95
  /**
83
96
  * Current state of the space.
84
97
  * The database is ready to be used in `SpaceState.SPACE_READY` state.
@@ -86,6 +99,11 @@ export interface Space {
86
99
  */
87
100
  get state(): MulticastObservable<SpaceState>;
88
101
 
102
+ /**
103
+ * Properties object.
104
+ */
105
+ get properties(): Obj.Obj<SpaceProperties>;
106
+
89
107
  /**
90
108
  * Current state of space pipeline.
91
109
  */
@@ -101,11 +119,11 @@ export interface Space {
101
119
  // TODO(wittjosiah): Remove. This should not be exposed.
102
120
  get internal(): SpaceInternal;
103
121
 
104
- // TODO(wittjosiah): Rename activate/deactivate?
105
122
  /**
106
123
  * Activates the space enabling the use of the database and starts replication with peers.
107
124
  * The setting is persisted on the local device.
108
125
  */
126
+ // TODO(wittjosiah): Rename activate/deactivate?
109
127
  open(): Promise<void>;
110
128
 
111
129
  /**
@@ -123,13 +141,17 @@ export interface Space {
123
141
  createSnapshot(): Promise<SpaceSnapshot>;
124
142
 
125
143
  // TODO(burdon): Create invitation?
144
+ // TODO(burdon): Factor out membership, etc.
126
145
  share(options?: Partial<Invitation>): CancellableInvitation;
127
-
128
146
  admitContact(contact: Contact): Promise<void>;
129
-
130
147
  updateMemberRole(request: Omit<UpdateMemberRoleRequest, 'spaceKey'>): Promise<void>;
131
-
132
- // TODO(wittjosiah): Gather into messaging abstraction?
133
- postMessage: (channel: string, message: any) => Promise<void>;
134
- listen: (channel: string, callback: (message: GossipMessage) => void) => CleanupFn;
135
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
+ );
package/src/timeouts.ts CHANGED
@@ -33,6 +33,11 @@ export const LOAD_PROPERTIES_TIMEOUT = 3_000;
33
33
  */
34
34
  export const CREATE_SPACE_TIMEOUT = 5_000;
35
35
 
36
+ /**
37
+ * Timeout for creating new spaces.
38
+ */
39
+ export const IMPORT_SPACE_TIMEOUT = 30_000;
40
+
36
41
  /**
37
42
  * Timeout for loading of control feeds.
38
43
  */
@@ -0,0 +1,49 @@
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
+ // TODO(burdon): Change to mode (no booleans?)
18
+ // TODO(wittjosiah): Make optional with default value.
19
+ edgeReplication: Schema.optional(Schema.Boolean),
20
+ invocationTraceQueue: Schema.optional(Type.Ref(Queue)),
21
+
22
+ //
23
+ // User properties.
24
+ //
25
+
26
+ name: Schema.optional(Schema.String),
27
+ icon: Schema.optional(Schema.String),
28
+ hue: Schema.optional(Schema.String),
29
+ },
30
+ {
31
+ key: Schema.String,
32
+ value: Schema.Any,
33
+ },
34
+ );
35
+
36
+ export type SpacePropertiesSchema = Schema.Schema.Type<typeof SpacePropertiesSchema>;
37
+
38
+ // TODO(burdon): Pipe Schem.optional, or partial to entire struct to make everything optional?
39
+ // TODO(burdon): Is separate schema def required for forms? Can it be extracted from SpaceProperties?
40
+ export const SpaceProperties = SpacePropertiesSchema.pipe(
41
+ Type.Obj({
42
+ // TODO(burdon): Rename SpaceProperties.
43
+ typename: 'dxos.org/type/Properties',
44
+ version: '0.1.0',
45
+ }),
46
+ Annotation.SystemTypeAnnotation.set(true),
47
+ );
48
+
49
+ export interface SpaceProperties extends Schema.Schema.Type<typeof SpaceProperties> {}
@@ -0,0 +1,5 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ export * from './SpaceProperties';
@@ -1,27 +0,0 @@
1
- import { Schema } from 'effect';
2
- import { Type } from '@dxos/echo';
3
- export declare const TYPE_PROPERTIES = "dxos.org/type/Properties";
4
- declare const PropertiesType_base: import("@dxos/echo-schema").TypedObjectPrototype<import("@dxos/echo-schema").TypedObjectFields<{
5
- name: Schema.optional<typeof Schema.String>;
6
- hue: Schema.optional<typeof Schema.String>;
7
- icon: Schema.optional<typeof Schema.String>;
8
- invocationTraceQueue: Schema.optional<Type.ref<Schema.Schema<Type.Expando, {
9
- [x: string]: any;
10
- id: string;
11
- }, never>>>;
12
- }, {
13
- record: true;
14
- }>, Schema.Struct.Encoded<{
15
- name: Schema.optional<typeof Schema.String>;
16
- hue: Schema.optional<typeof Schema.String>;
17
- icon: Schema.optional<typeof Schema.String>;
18
- invocationTraceQueue: Schema.optional<Type.ref<Schema.Schema<Type.Expando, {
19
- [x: string]: any;
20
- id: string;
21
- }, never>>>;
22
- }>>;
23
- export declare class PropertiesType extends PropertiesType_base {
24
- }
25
- export type PropertiesTypeProps = Pick<PropertiesType, 'name' | 'hue' | 'icon' | 'invocationTraceQueue'>;
26
- export {};
27
- //# sourceMappingURL=schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,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B,EAAE,aAAa,CAAC,kBAAkB,CAEhE,CAAC"}
package/src/schema.ts DELETED
@@ -1,28 +0,0 @@
1
- //
2
- // Copyright 2024 DXOS.org
3
- //
4
-
5
- import { Schema } from 'effect';
6
-
7
- import { Type } from '@dxos/echo';
8
- import { TypedObject } from '@dxos/echo-schema';
9
-
10
- export const TYPE_PROPERTIES = 'dxos.org/type/Properties';
11
-
12
- // TODO(burdon): Factor out (co-locate with TYPE_PROPERTIES).
13
- export class PropertiesType extends TypedObject({
14
- typename: TYPE_PROPERTIES,
15
- version: '0.1.0',
16
- })(
17
- {
18
- name: Schema.optional(Schema.String),
19
- // TODO(wittjosiah): Make generic?
20
- hue: Schema.optional(Schema.String),
21
- icon: Schema.optional(Schema.String),
22
- invocationTraceQueue: Schema.optional(Type.Ref(Type.Expando)),
23
- },
24
- { record: true },
25
- ) {}
26
-
27
- // TODO(burdon): Remove? Use PropertiesType instead?
28
- export type PropertiesTypeProps = Pick<PropertiesType, 'name' | 'hue' | 'icon' | 'invocationTraceQueue'>;