@dxos/client 2.33.9-dev.6efa8ddf → 2.33.9-dev.8e92e630

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 (57) hide show
  1. package/dist/browser.js +18 -11
  2. package/dist/src/proto/gen/dxos/client.d.ts +18 -216
  3. package/dist/src/proto/gen/dxos/client.d.ts.map +1 -1
  4. package/dist/src/proto/gen/dxos/client.js +0 -4
  5. package/dist/src/proto/gen/dxos/client.js.map +1 -1
  6. package/dist/src/proto/gen/dxos/config.d.ts +0 -457
  7. package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
  8. package/dist/src/proto/gen/dxos/config.js +0 -10
  9. package/dist/src/proto/gen/dxos/config.js.map +1 -1
  10. package/dist/src/proto/gen/dxos/credentials.d.ts +0 -39
  11. package/dist/src/proto/gen/dxos/credentials.d.ts.map +1 -1
  12. package/dist/src/proto/gen/dxos/devtools.d.ts +30 -266
  13. package/dist/src/proto/gen/dxos/devtools.d.ts.map +1 -1
  14. package/dist/src/proto/gen/dxos/echo/feed.d.ts +6 -65
  15. package/dist/src/proto/gen/dxos/echo/feed.d.ts.map +1 -1
  16. package/dist/src/proto/gen/dxos/echo/feed.js +0 -4
  17. package/dist/src/proto/gen/dxos/echo/feed.js.map +1 -1
  18. package/dist/src/proto/gen/dxos/echo/invitation.d.ts +3 -19
  19. package/dist/src/proto/gen/dxos/echo/invitation.d.ts.map +1 -1
  20. package/dist/src/proto/gen/dxos/echo/invitation.js +0 -6
  21. package/dist/src/proto/gen/dxos/echo/invitation.js.map +1 -1
  22. package/dist/src/proto/gen/dxos/echo/service.d.ts +13 -49
  23. package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
  24. package/dist/src/proto/gen/dxos/echo/snapshot.d.ts +13 -45
  25. package/dist/src/proto/gen/dxos/echo/snapshot.d.ts.map +1 -1
  26. package/dist/src/proto/gen/dxos/echo/timeframe.d.ts +2 -9
  27. package/dist/src/proto/gen/dxos/echo/timeframe.d.ts.map +1 -1
  28. package/dist/src/proto/gen/dxos/halo/keys.d.ts +2 -44
  29. package/dist/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
  30. package/dist/src/proto/gen/dxos/halo/keys.js +0 -4
  31. package/dist/src/proto/gen/dxos/halo/keys.js.map +1 -1
  32. package/dist/src/proto/gen/dxos/rpc.d.ts +8 -48
  33. package/dist/src/proto/gen/dxos/rpc.d.ts.map +1 -1
  34. package/dist/src/proto/gen/dxos/rpc.js +0 -4
  35. package/dist/src/proto/gen/dxos/rpc.js.map +1 -1
  36. package/dist/src/proto/gen/google/protobuf.d.ts +80 -80
  37. package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -1
  38. package/dist/src/proto/gen/index.d.ts.map +1 -1
  39. package/dist/src/proto/gen/index.js +1 -1
  40. package/dist/src/proto/gen/index.js.map +1 -1
  41. package/dist/src/services/services.test.js +1 -3
  42. package/dist/src/services/services.test.js.map +1 -1
  43. package/dist/tsconfig.tsbuildinfo +1 -1
  44. package/package.json +17 -17
  45. package/src/proto/gen/dxos/client.ts +18 -216
  46. package/src/proto/gen/dxos/config.ts +0 -457
  47. package/src/proto/gen/dxos/credentials.ts +0 -39
  48. package/src/proto/gen/dxos/devtools.ts +30 -266
  49. package/src/proto/gen/dxos/echo/feed.ts +6 -65
  50. package/src/proto/gen/dxos/echo/invitation.ts +3 -19
  51. package/src/proto/gen/dxos/echo/service.ts +13 -49
  52. package/src/proto/gen/dxos/echo/snapshot.ts +13 -45
  53. package/src/proto/gen/dxos/echo/timeframe.ts +2 -9
  54. package/src/proto/gen/dxos/halo/keys.ts +2 -44
  55. package/src/proto/gen/dxos/rpc.ts +8 -48
  56. package/src/proto/gen/google/protobuf.ts +80 -80
  57. package/src/proto/gen/index.ts +1 -1
@@ -11,79 +11,43 @@ import * as dxos_echo_timeframe from "./timeframe";
11
11
  import * as dxos_halo_keys from "../halo/keys";
12
12
  import * as dxos_rpc from "../rpc";
13
13
  import * as google_protobuf from "../../google/protobuf";
14
- /**
15
- * Defined in:
16
- * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/service.proto}
17
- */
18
14
  export interface SubscribeEntitySetRequest {
19
- partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
15
+ partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
20
16
  }
21
- /**
22
- * Defined in:
23
- * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/service.proto}
24
- */
25
17
  export interface SubscribeEntitySetResponse {
26
18
  added?: dxos_echo_feed.EchoEnvelope[];
27
19
  deleted?: dxos_echo_feed.EchoEnvelope[];
28
20
  }
29
- /**
30
- * Defined in:
31
- * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/service.proto}
32
- */
33
21
  export interface SubscribeEntityStreamRequest {
34
- partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
35
- itemId: string;
22
+ partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
23
+ itemId?: string;
36
24
  }
37
- /**
38
- * Defined in:
39
- * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/service.proto}
40
- */
41
25
  export interface SubscribeEntityStreamResponse {
42
26
  snapshot?: dxos_echo_snapshot.ItemSnapshot;
43
27
  mutation?: SubscribeEntityStreamResponse.Mutation;
44
28
  }
45
29
  export namespace SubscribeEntityStreamResponse {
46
- /**
47
- * Defined in:
48
- * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/service.proto}
49
- */
50
30
  export interface Mutation {
51
- data: dxos_echo_feed.EchoEnvelope;
52
- meta: SubscribeEntityStreamResponse.Mutation.Metadata;
31
+ data?: dxos_echo_feed.EchoEnvelope;
32
+ meta?: SubscribeEntityStreamResponse.Mutation.Metadata;
53
33
  }
54
34
  export namespace Mutation {
55
- /**
56
- * Defined in:
57
- * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/service.proto}
58
- */
59
35
  export interface Metadata {
60
- feedKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
61
- memberKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
62
- seq: number;
63
- timeframe: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
36
+ feedKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
37
+ memberKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
38
+ seq?: number;
39
+ timeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
64
40
  }
65
41
  }
66
42
  }
67
- /**
68
- * Defined in:
69
- * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/service.proto}
70
- */
71
43
  export interface WriteRequest {
72
- partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
73
- mutation: dxos_echo_feed.EchoEnvelope;
44
+ partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
45
+ mutation?: dxos_echo_feed.EchoEnvelope;
74
46
  }
75
- /**
76
- * Defined in:
77
- * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/service.proto}
78
- */
79
47
  export interface MutationReceipt {
80
- feedKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
81
- seq: number;
48
+ feedKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
49
+ seq?: number;
82
50
  }
83
- /**
84
- * Defined in:
85
- * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/service.proto}
86
- */
87
51
  export interface DataService {
88
52
  subscribeEntitySet: (request: SubscribeEntitySetRequest) => Stream<SubscribeEntitySetResponse>;
89
53
  subscribeEntityStream: (request: SubscribeEntityStreamRequest) => Stream<SubscribeEntityStreamResponse>;
@@ -11,44 +11,20 @@ import * as dxos_echo_timeframe from "./timeframe";
11
11
  import * as dxos_halo_keys from "../halo/keys";
12
12
  import * as dxos_rpc from "../rpc";
13
13
  import * as google_protobuf from "../../google/protobuf";
14
- /**
15
- * Defined in:
16
- * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/snapshot.proto}
17
- */
18
14
  export interface PartySnapshot {
19
- partyKey: Uint8Array;
20
- /**
21
- * Options:
22
- * - proto3_optional = true
23
- */
15
+ partyKey?: Uint8Array;
24
16
  timeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
25
- /**
26
- * Options:
27
- * - proto3_optional = true
28
- */
29
17
  timestamp?: number;
30
- halo: HaloStateSnapshot;
31
- database: DatabaseSnapshot;
18
+ halo?: HaloStateSnapshot;
19
+ database?: DatabaseSnapshot;
32
20
  }
33
- /**
34
- * Defined in:
35
- * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/snapshot.proto}
36
- */
37
21
  export interface HaloStateSnapshot {
38
22
  messages?: ReturnType<(typeof substitutions)["dxos.echo.feed.CredentialsMessage"]["decode"]>[];
39
23
  }
40
- /**
41
- * Defined in:
42
- * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/snapshot.proto}
43
- */
44
24
  export interface DatabaseSnapshot {
45
25
  items?: ItemSnapshot[];
46
26
  links?: LinkSnapshot[];
47
27
  }
48
- /**
49
- * Defined in:
50
- * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/snapshot.proto}
51
- */
52
28
  export interface ItemSnapshot {
53
29
  /**
54
30
  * Options:
@@ -60,7 +36,11 @@ export interface ItemSnapshot {
60
36
  * - proto3_optional = true
61
37
  */
62
38
  itemType?: string;
63
- modelType: string;
39
+ /**
40
+ * Options:
41
+ * - proto3_optional = true
42
+ */
43
+ modelType?: string;
64
44
  /**
65
45
  * Options:
66
46
  * - proto3_optional = true
@@ -77,10 +57,6 @@ export interface ItemSnapshot {
77
57
  */
78
58
  model?: ModelSnapshot;
79
59
  }
80
- /**
81
- * Defined in:
82
- * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/snapshot.proto}
83
- */
84
60
  export interface LinkSnapshot {
85
61
  /**
86
62
  * Options:
@@ -92,7 +68,11 @@ export interface LinkSnapshot {
92
68
  * - proto3_optional = true
93
69
  */
94
70
  linkType?: string;
95
- modelType: string;
71
+ /**
72
+ * Options:
73
+ * - proto3_optional = true
74
+ */
75
+ modelType?: string;
96
76
  /**
97
77
  * Options:
98
78
  * - proto3_optional = true
@@ -106,10 +86,6 @@ export interface LinkSnapshot {
106
86
  */
107
87
  model?: ModelSnapshot;
108
88
  }
109
- /**
110
- * Defined in:
111
- * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/snapshot.proto}
112
- */
113
89
  export interface ModelSnapshot {
114
90
  /**
115
91
  * Encoded model snapshot (defined by the model's codec).
@@ -124,18 +100,10 @@ export interface ModelSnapshot {
124
100
  */
125
101
  mutations?: ModelMutation[];
126
102
  }
127
- /**
128
- * Defined in:
129
- * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/snapshot.proto}
130
- */
131
103
  export interface ModelMutation {
132
104
  mutation: Uint8Array;
133
105
  meta: ModelMutationMeta;
134
106
  }
135
- /**
136
- * Defined in:
137
- * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/snapshot.proto}
138
- */
139
107
  export interface ModelMutationMeta {
140
108
  feedKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
141
109
  seq: number;
@@ -13,20 +13,13 @@ import * as dxos_rpc from "../rpc";
13
13
  import * as google_protobuf from "../../google/protobuf";
14
14
  /**
15
15
  * Vector timestamp used to order messages.
16
- *
17
- * Defined in:
18
- * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/timeframe.proto}
19
16
  */
20
17
  export interface TimeframeVector {
21
18
  frames?: TimeframeVector.Frame[];
22
19
  }
23
20
  export namespace TimeframeVector {
24
- /**
25
- * Defined in:
26
- * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/timeframe.proto}
27
- */
28
21
  export interface Frame {
29
- feedKey: Uint8Array;
30
- seq: number;
22
+ feedKey?: Uint8Array;
23
+ seq?: number;
31
24
  }
32
25
  }
@@ -11,10 +11,6 @@ import * as dxos_echo_snapshot from "../echo/snapshot";
11
11
  import * as dxos_echo_timeframe from "../echo/timeframe";
12
12
  import * as dxos_rpc from "../rpc";
13
13
  import * as google_protobuf from "../../google/protobuf";
14
- /**
15
- * Defined in:
16
- * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
17
- */
18
14
  export enum KeyType {
19
15
  UNKNOWN = 0,
20
16
  IDENTITY = 1,
@@ -23,24 +19,12 @@ export enum KeyType {
23
19
  FEED = 4,
24
20
  DXNS_ADDRESS = 5
25
21
  }
26
- /**
27
- * Defined in:
28
- * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
29
- */
30
22
  export interface PubKey {
31
- data: Uint8Array;
23
+ data?: Uint8Array;
32
24
  }
33
- /**
34
- * Defined in:
35
- * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
36
- */
37
25
  export interface PrivKey {
38
- data: Uint8Array;
26
+ data?: Uint8Array;
39
27
  }
40
- /**
41
- * Defined in:
42
- * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
43
- */
44
28
  export interface KeyRecord {
45
29
  /**
46
30
  * The `KeyType` type of the key. This is often unknown for keys from other sources.
@@ -52,59 +36,33 @@ export interface KeyRecord {
52
36
  publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
53
37
  /**
54
38
  * The secret key as a Buffer (this will never be visible outside the Keyring).
55
- *
56
- * Options:
57
- * - proto3_optional = true
58
39
  */
59
40
  secretKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PrivKey"]["decode"]>;
60
41
  /**
61
42
  * Is this key from a Greeting "hint"?
62
- *
63
- * Options:
64
- * - proto3_optional = true
65
43
  */
66
44
  hint?: boolean;
67
45
  /**
68
46
  * Determines if this is our key?
69
47
  * Usually true if `secretKey` is present; may be false for "inception keys" such as the Party key.
70
- *
71
- * Options:
72
- * - proto3_optional = true
73
48
  */
74
49
  own?: boolean;
75
50
  /**
76
51
  * Is this key to be trusted?
77
- *
78
- * Options:
79
- * - proto3_optional = true
80
52
  */
81
53
  trusted?: boolean;
82
54
  /**
83
55
  * An RFC-3339 date/time string for when the key was added to the Keyring.
84
- *
85
- * Options:
86
- * - proto3_optional = true
87
56
  */
88
57
  added?: string;
89
58
  /**
90
59
  * An RFC-3339 date/time string for when the key was created.
91
- *
92
- * Options:
93
- * - proto3_optional = true
94
60
  */
95
61
  created?: string;
96
62
  }
97
- /**
98
- * Defined in:
99
- * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
100
- */
101
63
  export interface KeyRecordList {
102
64
  keys?: KeyRecord[];
103
65
  }
104
- /**
105
- * Defined in:
106
- * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
107
- */
108
66
  export interface KeyChain {
109
67
  publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
110
68
  message: dxos_credentials.SignedMessage;
@@ -11,10 +11,6 @@ import * as dxos_echo_snapshot from "./echo/snapshot";
11
11
  import * as dxos_echo_timeframe from "./echo/timeframe";
12
12
  import * as dxos_halo_keys from "./halo/keys";
13
13
  import * as google_protobuf from "../google/protobuf";
14
- /**
15
- * Defined in:
16
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/rpc.proto}
17
- */
18
14
  export interface RpcMessage {
19
15
  request?: Request;
20
16
  response?: Response;
@@ -28,67 +24,31 @@ export interface RpcMessage {
28
24
  openAck?: boolean;
29
25
  streamClose?: StreamClose;
30
26
  }
31
- /**
32
- * Defined in:
33
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/rpc.proto}
34
- */
35
27
  export interface Request {
36
- id: number;
37
- method: string;
38
- payload: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
39
- stream: boolean;
28
+ id?: number;
29
+ method?: string;
30
+ payload?: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
31
+ stream?: boolean;
40
32
  }
41
- /**
42
- * Defined in:
43
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/rpc.proto}
44
- */
45
33
  export interface Response {
46
- id: number;
34
+ id?: number;
47
35
  payload?: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
48
36
  error?: Error;
49
37
  close?: boolean;
50
38
  }
51
- /**
52
- * Defined in:
53
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/rpc.proto}
54
- */
55
39
  export interface StreamClose {
56
- id: number;
40
+ id?: number;
57
41
  }
58
- /**
59
- * Defined in:
60
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/rpc.proto}
61
- */
62
42
  export interface Error {
63
- /**
64
- * Options:
65
- * - proto3_optional = true
66
- */
67
43
  name?: string;
68
- /**
69
- * Options:
70
- * - proto3_optional = true
71
- */
72
44
  message?: string;
73
- /**
74
- * Options:
75
- * - proto3_optional = true
76
- */
77
45
  stack?: string;
78
46
  }
79
- /**
80
- * Defined in:
81
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/rpc.proto}
82
- */
83
47
  export interface MessageTrace {
84
- direction: MessageTrace.Direction;
85
- data: Uint8Array;
48
+ direction?: MessageTrace.Direction;
49
+ data?: Uint8Array;
86
50
  }
87
51
  export namespace MessageTrace {
88
- /**
89
- * Defined in:
90
- * {@link file://./../../../../../../common/protocols/src/proto/dxos/rpc.proto}
91
- */
92
52
  export enum Direction {
93
53
  INCOMING = 0,
94
54
  OUTGOING = 1