@dxos/echo-protocol 2.33.9-dev.e605934d → 2.33.9-dev.eb69ac10

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 (59) hide show
  1. package/dist/src/feeds/feed-store-iterator.js +6 -6
  2. package/dist/src/feeds/feed-store-iterator.js.map +1 -1
  3. package/dist/src/feeds/feed-store-iterator.test.js +2 -2
  4. package/dist/src/feeds/feed-store-iterator.test.js.map +1 -1
  5. package/dist/src/feeds/feed.test.js +6 -3
  6. package/dist/src/feeds/feed.test.js.map +1 -1
  7. package/dist/src/proto/gen/dxos/credentials.d.ts +39 -0
  8. package/dist/src/proto/gen/dxos/credentials.d.ts.map +1 -1
  9. package/dist/src/proto/gen/dxos/echo/feed.d.ts +65 -6
  10. package/dist/src/proto/gen/dxos/echo/feed.d.ts.map +1 -1
  11. package/dist/src/proto/gen/dxos/echo/feed.js +4 -0
  12. package/dist/src/proto/gen/dxos/echo/feed.js.map +1 -1
  13. package/dist/src/proto/gen/dxos/echo/invitation.d.ts +19 -3
  14. package/dist/src/proto/gen/dxos/echo/invitation.d.ts.map +1 -1
  15. package/dist/src/proto/gen/dxos/echo/invitation.js +6 -0
  16. package/dist/src/proto/gen/dxos/echo/invitation.js.map +1 -1
  17. package/dist/src/proto/gen/dxos/echo/metadata.d.ts +26 -4
  18. package/dist/src/proto/gen/dxos/echo/metadata.d.ts.map +1 -1
  19. package/dist/src/proto/gen/dxos/echo/service.d.ts +49 -13
  20. package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
  21. package/dist/src/proto/gen/dxos/echo/snapshot.d.ts +45 -13
  22. package/dist/src/proto/gen/dxos/echo/snapshot.d.ts.map +1 -1
  23. package/dist/src/proto/gen/dxos/echo/testing.d.ts +15 -3
  24. package/dist/src/proto/gen/dxos/echo/testing.d.ts.map +1 -1
  25. package/dist/src/proto/gen/dxos/echo/timeframe.d.ts +9 -2
  26. package/dist/src/proto/gen/dxos/echo/timeframe.d.ts.map +1 -1
  27. package/dist/src/proto/gen/dxos/halo/keys.d.ts +44 -2
  28. package/dist/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
  29. package/dist/src/proto/gen/dxos/halo/keys.js +4 -0
  30. package/dist/src/proto/gen/dxos/halo/keys.js.map +1 -1
  31. package/dist/src/proto/gen/dxos/test/echo.d.ts +15 -3
  32. package/dist/src/proto/gen/dxos/test/echo.d.ts.map +1 -1
  33. package/dist/src/proto/gen/google/protobuf.d.ts +6 -6
  34. package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -1
  35. package/dist/src/proto/gen/index.d.ts.map +1 -1
  36. package/dist/src/proto/gen/index.js +1 -1
  37. package/dist/src/proto/gen/index.js.map +1 -1
  38. package/dist/src/proto/messages.d.ts +1 -2
  39. package/dist/src/proto/messages.d.ts.map +1 -1
  40. package/dist/src/proto/messages.js +3 -13
  41. package/dist/src/proto/messages.js.map +1 -1
  42. package/dist/tsconfig.tsbuildinfo +1 -1
  43. package/package.json +14 -10
  44. package/src/feeds/feed-store-iterator.test.ts +1 -1
  45. package/src/feeds/feed-store-iterator.ts +1 -1
  46. package/src/feeds/feed.test.ts +7 -4
  47. package/src/proto/gen/dxos/credentials.ts +39 -0
  48. package/src/proto/gen/dxos/echo/feed.ts +65 -6
  49. package/src/proto/gen/dxos/echo/invitation.ts +19 -3
  50. package/src/proto/gen/dxos/echo/metadata.ts +26 -4
  51. package/src/proto/gen/dxos/echo/service.ts +49 -13
  52. package/src/proto/gen/dxos/echo/snapshot.ts +45 -13
  53. package/src/proto/gen/dxos/echo/testing.ts +15 -3
  54. package/src/proto/gen/dxos/echo/timeframe.ts +9 -2
  55. package/src/proto/gen/dxos/halo/keys.ts +44 -2
  56. package/src/proto/gen/dxos/test/echo.ts +15 -3
  57. package/src/proto/gen/google/protobuf.ts +6 -6
  58. package/src/proto/gen/index.ts +1 -1
  59. package/src/proto/messages.ts +2 -14
@@ -10,20 +10,36 @@ import * as dxos_echo_timeframe from "./timeframe";
10
10
  import * as dxos_halo_keys from "../halo/keys";
11
11
  import * as dxos_test_echo from "../test/echo";
12
12
  import * as google_protobuf from "../../google/protobuf";
13
+ /**
14
+ * Defined in:
15
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/invitation.proto}
16
+ */
13
17
  export interface InvitationDescriptor {
14
- type?: InvitationDescriptor.Type;
15
- swarmKey?: Uint8Array;
16
- invitation?: Uint8Array;
18
+ type: InvitationDescriptor.Type;
19
+ swarmKey: Uint8Array;
20
+ invitation: Uint8Array;
17
21
  /**
18
22
  * Only present if type == OFFLINE.
23
+ *
24
+ * Options:
25
+ * - proto3_optional = true
19
26
  */
20
27
  identityKey?: Uint8Array;
21
28
  /**
22
29
  * Must be stripped out when passing to another peer.
30
+ *
31
+ * Options:
32
+ * - proto3_optional = true
23
33
  */
24
34
  secret?: Uint8Array;
25
35
  }
26
36
  export namespace InvitationDescriptor {
37
+ /**
38
+ * Defines an invitation type.
39
+ *
40
+ * Defined in:
41
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/invitation.proto}
42
+ */
27
43
  export enum Type {
28
44
  INTERACTIVE = 1,
29
45
  OFFLINE = 2
@@ -10,6 +10,10 @@ import * as dxos_echo_timeframe from "./timeframe";
10
10
  import * as dxos_halo_keys from "../halo/keys";
11
11
  import * as dxos_test_echo from "../test/echo";
12
12
  import * as google_protobuf from "../../google/protobuf";
13
+ /**
14
+ * Defined in:
15
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/metadata.proto}
16
+ */
13
17
  export interface EchoMetadata {
14
18
  /**
15
19
  * Version number that is inceremnted every time there's a breaking change to the storage schema.
@@ -17,25 +21,43 @@ export interface EchoMetadata {
17
21
  * This is used to detect if the storage schema has changed since the last time the client was run.
18
22
  * Loading data from a different version will might result in an error.
19
23
  */
20
- version?: number;
24
+ version: number;
21
25
  parties?: PartyMetadata[];
22
- created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
23
- updated?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
26
+ created: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
27
+ updated: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
24
28
  }
29
+ /**
30
+ * Defined in:
31
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/metadata.proto}
32
+ */
25
33
  export interface PartyMetadata {
26
34
  /**
27
35
  * Party key.
28
36
  */
29
- key?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
37
+ key: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
38
+ /**
39
+ * Options:
40
+ * - proto3_optional = true
41
+ */
30
42
  genesisFeedKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
31
43
  /**
32
44
  * Key of the wriatable control feed.
45
+ *
46
+ * Options:
47
+ * - proto3_optional = true
33
48
  */
34
49
  controlFeedKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
35
50
  /**
36
51
  * Key of the wriatable data feed.
52
+ *
53
+ * Options:
54
+ * - proto3_optional = true
37
55
  */
38
56
  dataFeedKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
57
+ /**
58
+ * Options:
59
+ * - proto3_optional = true
60
+ */
39
61
  latestTimeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
40
62
  /**
41
63
  * List of all feed associated with the party.
@@ -10,43 +10,79 @@ import * as dxos_echo_timeframe from "./timeframe";
10
10
  import * as dxos_halo_keys from "../halo/keys";
11
11
  import * as dxos_test_echo from "../test/echo";
12
12
  import * as google_protobuf from "../../google/protobuf";
13
+ /**
14
+ * Defined in:
15
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/service.proto}
16
+ */
13
17
  export interface SubscribeEntitySetRequest {
14
- partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
18
+ partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
15
19
  }
20
+ /**
21
+ * Defined in:
22
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/service.proto}
23
+ */
16
24
  export interface SubscribeEntitySetResponse {
17
25
  added?: dxos_echo_feed.EchoEnvelope[];
18
26
  deleted?: dxos_echo_feed.EchoEnvelope[];
19
27
  }
28
+ /**
29
+ * Defined in:
30
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/service.proto}
31
+ */
20
32
  export interface SubscribeEntityStreamRequest {
21
- partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
22
- itemId?: string;
33
+ partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
34
+ itemId: string;
23
35
  }
36
+ /**
37
+ * Defined in:
38
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/service.proto}
39
+ */
24
40
  export interface SubscribeEntityStreamResponse {
25
41
  snapshot?: dxos_echo_snapshot.ItemSnapshot;
26
42
  mutation?: SubscribeEntityStreamResponse.Mutation;
27
43
  }
28
44
  export namespace SubscribeEntityStreamResponse {
45
+ /**
46
+ * Defined in:
47
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/service.proto}
48
+ */
29
49
  export interface Mutation {
30
- data?: dxos_echo_feed.EchoEnvelope;
31
- meta?: SubscribeEntityStreamResponse.Mutation.Metadata;
50
+ data: dxos_echo_feed.EchoEnvelope;
51
+ meta: SubscribeEntityStreamResponse.Mutation.Metadata;
32
52
  }
33
53
  export namespace Mutation {
54
+ /**
55
+ * Defined in:
56
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/service.proto}
57
+ */
34
58
  export interface Metadata {
35
- feedKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
36
- memberKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
37
- seq?: number;
38
- timeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
59
+ feedKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
60
+ memberKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
61
+ seq: number;
62
+ timeframe: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
39
63
  }
40
64
  }
41
65
  }
66
+ /**
67
+ * Defined in:
68
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/service.proto}
69
+ */
42
70
  export interface WriteRequest {
43
- partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
44
- mutation?: dxos_echo_feed.EchoEnvelope;
71
+ partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
72
+ mutation: dxos_echo_feed.EchoEnvelope;
45
73
  }
74
+ /**
75
+ * Defined in:
76
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/service.proto}
77
+ */
46
78
  export interface MutationReceipt {
47
- feedKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
48
- seq?: number;
79
+ feedKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
80
+ seq: number;
49
81
  }
82
+ /**
83
+ * Defined in:
84
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/service.proto}
85
+ */
50
86
  export interface DataService {
51
87
  subscribeEntitySet: (request: SubscribeEntitySetRequest) => Stream<SubscribeEntitySetResponse>;
52
88
  subscribeEntityStream: (request: SubscribeEntityStreamRequest) => Stream<SubscribeEntityStreamResponse>;
@@ -10,20 +10,44 @@ import * as dxos_echo_timeframe from "./timeframe";
10
10
  import * as dxos_halo_keys from "../halo/keys";
11
11
  import * as dxos_test_echo from "../test/echo";
12
12
  import * as google_protobuf from "../../google/protobuf";
13
+ /**
14
+ * Defined in:
15
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/snapshot.proto}
16
+ */
13
17
  export interface PartySnapshot {
14
- partyKey?: Uint8Array;
18
+ partyKey: Uint8Array;
19
+ /**
20
+ * Options:
21
+ * - proto3_optional = true
22
+ */
15
23
  timeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
24
+ /**
25
+ * Options:
26
+ * - proto3_optional = true
27
+ */
16
28
  timestamp?: number;
17
- halo?: HaloStateSnapshot;
18
- database?: DatabaseSnapshot;
29
+ halo: HaloStateSnapshot;
30
+ database: DatabaseSnapshot;
19
31
  }
32
+ /**
33
+ * Defined in:
34
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/snapshot.proto}
35
+ */
20
36
  export interface HaloStateSnapshot {
21
37
  messages?: ReturnType<(typeof substitutions)["dxos.echo.feed.CredentialsMessage"]["decode"]>[];
22
38
  }
39
+ /**
40
+ * Defined in:
41
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/snapshot.proto}
42
+ */
23
43
  export interface DatabaseSnapshot {
24
44
  items?: ItemSnapshot[];
25
45
  links?: LinkSnapshot[];
26
46
  }
47
+ /**
48
+ * Defined in:
49
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/snapshot.proto}
50
+ */
27
51
  export interface ItemSnapshot {
28
52
  /**
29
53
  * Options:
@@ -35,11 +59,7 @@ export interface ItemSnapshot {
35
59
  * - proto3_optional = true
36
60
  */
37
61
  itemType?: string;
38
- /**
39
- * Options:
40
- * - proto3_optional = true
41
- */
42
- modelType?: string;
62
+ modelType: string;
43
63
  /**
44
64
  * Options:
45
65
  * - proto3_optional = true
@@ -56,6 +76,10 @@ export interface ItemSnapshot {
56
76
  */
57
77
  model?: ModelSnapshot;
58
78
  }
79
+ /**
80
+ * Defined in:
81
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/snapshot.proto}
82
+ */
59
83
  export interface LinkSnapshot {
60
84
  /**
61
85
  * Options:
@@ -67,11 +91,7 @@ export interface LinkSnapshot {
67
91
  * - proto3_optional = true
68
92
  */
69
93
  linkType?: string;
70
- /**
71
- * Options:
72
- * - proto3_optional = true
73
- */
74
- modelType?: string;
94
+ modelType: string;
75
95
  /**
76
96
  * Options:
77
97
  * - proto3_optional = true
@@ -85,6 +105,10 @@ export interface LinkSnapshot {
85
105
  */
86
106
  model?: ModelSnapshot;
87
107
  }
108
+ /**
109
+ * Defined in:
110
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/snapshot.proto}
111
+ */
88
112
  export interface ModelSnapshot {
89
113
  /**
90
114
  * Encoded model snapshot (defined by the model's codec).
@@ -99,10 +123,18 @@ export interface ModelSnapshot {
99
123
  */
100
124
  mutations?: ModelMutation[];
101
125
  }
126
+ /**
127
+ * Defined in:
128
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/snapshot.proto}
129
+ */
102
130
  export interface ModelMutation {
103
131
  mutation: Uint8Array;
104
132
  meta: ModelMutationMeta;
105
133
  }
134
+ /**
135
+ * Defined in:
136
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/snapshot.proto}
137
+ */
106
138
  export interface ModelMutationMeta {
107
139
  feedKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
108
140
  seq: number;
@@ -10,13 +10,25 @@ import * as dxos_echo_timeframe from "./timeframe";
10
10
  import * as dxos_halo_keys from "../halo/keys";
11
11
  import * as dxos_test_echo from "../test/echo";
12
12
  import * as google_protobuf from "../../google/protobuf";
13
+ /**
14
+ * Defined in:
15
+ * {@link file://./../../../defs/testing.proto}
16
+ */
13
17
  export interface TestItemMutation {
14
- key?: string;
15
- value?: string;
18
+ key: string;
19
+ value: string;
16
20
  }
21
+ /**
22
+ * Defined in:
23
+ * {@link file://./../../../defs/testing.proto}
24
+ */
17
25
  export interface TestListMutation {
18
- data?: string;
26
+ data: string;
19
27
  }
28
+ /**
29
+ * Defined in:
30
+ * {@link file://./../../../defs/testing.proto}
31
+ */
20
32
  export interface TestItemSnapshot {
21
33
  keys?: TestItemMutation[];
22
34
  }
@@ -12,13 +12,20 @@ import * as dxos_test_echo from "../test/echo";
12
12
  import * as google_protobuf from "../../google/protobuf";
13
13
  /**
14
14
  * Vector timestamp used to order messages.
15
+ *
16
+ * Defined in:
17
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/timeframe.proto}
15
18
  */
16
19
  export interface TimeframeVector {
17
20
  frames?: TimeframeVector.Frame[];
18
21
  }
19
22
  export namespace TimeframeVector {
23
+ /**
24
+ * Defined in:
25
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/timeframe.proto}
26
+ */
20
27
  export interface Frame {
21
- feedKey?: Uint8Array;
22
- seq?: number;
28
+ feedKey: Uint8Array;
29
+ seq: number;
23
30
  }
24
31
  }
@@ -10,6 +10,10 @@ import * as dxos_echo_testing from "../echo/testing";
10
10
  import * as dxos_echo_timeframe from "../echo/timeframe";
11
11
  import * as dxos_test_echo from "../test/echo";
12
12
  import * as google_protobuf from "../../google/protobuf";
13
+ /**
14
+ * Defined in:
15
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
16
+ */
13
17
  export enum KeyType {
14
18
  UNKNOWN = 0,
15
19
  IDENTITY = 1,
@@ -18,12 +22,24 @@ export enum KeyType {
18
22
  FEED = 4,
19
23
  DXNS_ADDRESS = 5
20
24
  }
25
+ /**
26
+ * Defined in:
27
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
28
+ */
21
29
  export interface PubKey {
22
- data?: Uint8Array;
30
+ data: Uint8Array;
23
31
  }
32
+ /**
33
+ * Defined in:
34
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
35
+ */
24
36
  export interface PrivKey {
25
- data?: Uint8Array;
37
+ data: Uint8Array;
26
38
  }
39
+ /**
40
+ * Defined in:
41
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
42
+ */
27
43
  export interface KeyRecord {
28
44
  /**
29
45
  * The `KeyType` type of the key. This is often unknown for keys from other sources.
@@ -35,33 +51,59 @@ export interface KeyRecord {
35
51
  publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
36
52
  /**
37
53
  * The secret key as a Buffer (this will never be visible outside the Keyring).
54
+ *
55
+ * Options:
56
+ * - proto3_optional = true
38
57
  */
39
58
  secretKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PrivKey"]["decode"]>;
40
59
  /**
41
60
  * Is this key from a Greeting "hint"?
61
+ *
62
+ * Options:
63
+ * - proto3_optional = true
42
64
  */
43
65
  hint?: boolean;
44
66
  /**
45
67
  * Determines if this is our key?
46
68
  * Usually true if `secretKey` is present; may be false for "inception keys" such as the Party key.
69
+ *
70
+ * Options:
71
+ * - proto3_optional = true
47
72
  */
48
73
  own?: boolean;
49
74
  /**
50
75
  * Is this key to be trusted?
76
+ *
77
+ * Options:
78
+ * - proto3_optional = true
51
79
  */
52
80
  trusted?: boolean;
53
81
  /**
54
82
  * An RFC-3339 date/time string for when the key was added to the Keyring.
83
+ *
84
+ * Options:
85
+ * - proto3_optional = true
55
86
  */
56
87
  added?: string;
57
88
  /**
58
89
  * An RFC-3339 date/time string for when the key was created.
90
+ *
91
+ * Options:
92
+ * - proto3_optional = true
59
93
  */
60
94
  created?: string;
61
95
  }
96
+ /**
97
+ * Defined in:
98
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
99
+ */
62
100
  export interface KeyRecordList {
63
101
  keys?: KeyRecord[];
64
102
  }
103
+ /**
104
+ * Defined in:
105
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
106
+ */
65
107
  export interface KeyChain {
66
108
  publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
67
109
  message: dxos_credentials.SignedMessage;
@@ -10,13 +10,25 @@ import * as dxos_echo_testing from "../echo/testing";
10
10
  import * as dxos_echo_timeframe from "../echo/timeframe";
11
11
  import * as dxos_halo_keys from "../halo/keys";
12
12
  import * as google_protobuf from "../../google/protobuf";
13
+ /**
14
+ * Defined in:
15
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/test/echo.proto}
16
+ */
13
17
  export interface TestItemMutation {
14
- key?: string;
15
- value?: string;
18
+ key: string;
19
+ value: string;
16
20
  }
21
+ /**
22
+ * Defined in:
23
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/test/echo.proto}
24
+ */
17
25
  export interface TestListMutation {
18
- data?: string;
26
+ data: string;
19
27
  }
28
+ /**
29
+ * Defined in:
30
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/test/echo.proto}
31
+ */
20
32
  export interface TestItemSnapshot {
21
33
  keys?: TestItemMutation[];
22
34
  }
@@ -10,11 +10,11 @@ import * as dxos_echo_testing from "../dxos/echo/testing";
10
10
  import * as dxos_echo_timeframe from "../dxos/echo/timeframe";
11
11
  import * as dxos_halo_keys from "../dxos/halo/keys";
12
12
  import * as dxos_test_echo from "../dxos/test/echo";
13
- export interface Any {
14
- type_url?: string;
15
- value?: Uint8Array;
16
- }
17
13
  export interface Timestamp {
18
- seconds?: string;
19
- nanos?: number;
14
+ seconds: string;
15
+ nanos: number;
16
+ }
17
+ export interface Any {
18
+ type_url: string;
19
+ value: Uint8Array;
20
20
  }
@@ -63,5 +63,5 @@ export interface TYPES {
63
63
  export interface SERVICES {
64
64
  "dxos.echo.service.DataService": dxos_echo_service.DataService;
65
65
  }
66
- export const schemaJson = JSON.parse("{\"nested\":{\"dxos\":{\"nested\":{\"credentials\":{\"nested\":{\"Message\":{\"fields\":{\"payload\":{\"rule\":\"required\",\"type\":\"google.protobuf.Any\",\"id\":1,\"comment\":null}},\"comment\":null},\"SignedMessage\":{\"fields\":{\"signed\":{\"rule\":\"required\",\"type\":\"Signed\",\"id\":1,\"comment\":null},\"signatures\":{\"rule\":\"repeated\",\"type\":\"Signature\",\"id\":2,\"comment\":null}},\"nested\":{\"Signature\":{\"fields\":{\"key\":{\"rule\":\"required\",\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"signature\":{\"rule\":\"required\",\"type\":\"bytes\",\"id\":2,\"comment\":null},\"keyChain\":{\"type\":\"KeyChain\",\"id\":3,\"comment\":null}},\"comment\":null},\"Signed\":{\"fields\":{\"created\":{\"rule\":\"required\",\"type\":\"string\",\"id\":1,\"comment\":null},\"nonce\":{\"rule\":\"required\",\"type\":\"bytes\",\"id\":2,\"comment\":null},\"payload\":{\"rule\":\"required\",\"type\":\"google.protobuf.Any\",\"id\":10,\"comment\":null}},\"comment\":null}},\"comment\":\"A generic container message used whenever messages are signed (e.g. PartyCredential)\"}}},\"echo\":{\"nested\":{\"feed\":{\"nested\":{\"CredentialsMessage\":{\"fields\":{\"data\":{\"type\":\"bytes\",\"id\":1,\"comment\":null}},\"comment\":\"A container for dxos.credentials.Message\"},\"EchoEnvelope\":{\"fields\":{\"itemId\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"genesis\":{\"type\":\"ItemGenesis\",\"id\":10,\"comment\":null},\"itemMutation\":{\"type\":\"ItemMutation\",\"id\":11,\"comment\":null},\"mutation\":{\"type\":\"bytes\",\"id\":12,\"comment\":null},\"snapshot\":{\"type\":\"ModelSnapshot\",\"id\":13,\"comment\":\"Set the model to the provided snapshot.\"}},\"comment\":\"Wrapper for all ECHO messages.\"},\"FeedMessage\":{\"oneofs\":{\"payload\":{\"oneof\":[\"halo\",\"echo\"],\"comment\":null}},\"fields\":{\"timeframe\":{\"type\":\"TimeframeVector\",\"id\":1,\"comment\":null},\"halo\":{\"type\":\"CredentialsMessage\",\"id\":10,\"comment\":null},\"echo\":{\"type\":\"EchoEnvelope\",\"id\":11,\"comment\":null}},\"comment\":\"Outer message type decoded by Codec.\\nThis is what is written to the feeds.\"},\"ItemGenesis\":{\"fields\":{\"itemType\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"modelType\":{\"type\":\"string\",\"id\":2,\"comment\":null},\"modelVersion\":{\"type\":\"string\",\"id\":3,\"comment\":null},\"link\":{\"type\":\"LinkData\",\"id\":4,\"comment\":null}},\"comment\":null},\"ItemMutation\":{\"fields\":{\"parentId\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"action\":{\"type\":\"Action\",\"id\":2,\"comment\":null}},\"nested\":{\"Action\":{\"values\":{\"NOOP\":0,\"DELETE\":1,\"RESTORE\":2},\"comment\":null,\"comments\":{\"NOOP\":null,\"DELETE\":null,\"RESTORE\":null}}},\"comment\":\"Item mutation.\"},\"LinkData\":{\"fields\":{\"source\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"target\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null}}},\"invitation\":{\"nested\":{\"InvitationDescriptor\":{\"fields\":{\"type\":{\"type\":\"Type\",\"id\":1,\"comment\":null},\"swarmKey\":{\"type\":\"bytes\",\"id\":2,\"comment\":null},\"invitation\":{\"type\":\"bytes\",\"id\":3,\"comment\":null},\"identityKey\":{\"type\":\"bytes\",\"id\":4,\"comment\":\"Only present if type == OFFLINE.\"},\"secret\":{\"type\":\"bytes\",\"id\":5,\"comment\":\"Must be stripped out when passing to another peer.\"}},\"nested\":{\"Type\":{\"values\":{\"INTERACTIVE\":1,\"OFFLINE\":2},\"comment\":\"Defines an invitation type.\",\"comments\":{\"INTERACTIVE\":\"Interactive invitation is when both peers are online at the same time.\",\"OFFLINE\":\"Offline is when only a single peer needs to be online at the time.\"}}},\"comment\":null}}},\"metadata\":{\"nested\":{\"EchoMetadata\":{\"fields\":{\"version\":{\"type\":\"int32\",\"id\":1,\"comment\":\"Version number that is inceremnted every time there's a breaking change to the storage schema.\\n\\nThis is used to detect if the storage schema has changed since the last time the client was run.\\nLoading data from a different version will might result in an error.\"},\"parties\":{\"rule\":\"repeated\",\"type\":\"PartyMetadata\",\"id\":2,\"comment\":null},\"created\":{\"type\":\"google.protobuf.Timestamp\",\"id\":3,\"comment\":null},\"updated\":{\"type\":\"google.protobuf.Timestamp\",\"id\":4,\"comment\":null}},\"comment\":null},\"PartyMetadata\":{\"fields\":{\"key\":{\"type\":\"PubKey\",\"id\":1,\"comment\":\"Party key.\"},\"genesisFeedKey\":{\"type\":\"PubKey\",\"id\":6,\"comment\":null},\"controlFeedKey\":{\"type\":\"PubKey\",\"id\":4,\"comment\":\"Key of the wriatable control feed.\"},\"dataFeedKey\":{\"type\":\"PubKey\",\"id\":3,\"comment\":\"Key of the wriatable data feed.\"},\"latestTimeframe\":{\"type\":\"TimeframeVector\",\"id\":5,\"comment\":null},\"feedKeys\":{\"rule\":\"repeated\",\"type\":\"PubKey\",\"id\":2,\"comment\":\"List of all feed associated with the party.\"}},\"comment\":null}}},\"service\":{\"nested\":{\"DataService\":{\"methods\":{\"SubscribeEntitySet\":{\"requestType\":\"SubscribeEntitySetRequest\",\"responseType\":\"SubscribeEntitySetResponse\",\"responseStream\":true,\"comment\":null},\"SubscribeEntityStream\":{\"requestType\":\"SubscribeEntityStreamRequest\",\"responseType\":\"SubscribeEntityStreamResponse\",\"responseStream\":true,\"comment\":null},\"Write\":{\"requestType\":\"WriteRequest\",\"responseType\":\"MutationReceipt\",\"comment\":null}},\"comment\":null},\"MutationReceipt\":{\"fields\":{\"feedKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"seq\":{\"type\":\"int32\",\"id\":2,\"comment\":null}},\"comment\":null},\"SubscribeEntitySetRequest\":{\"fields\":{\"partyKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null}},\"comment\":null},\"SubscribeEntitySetResponse\":{\"fields\":{\"added\":{\"rule\":\"repeated\",\"type\":\"EchoEnvelope\",\"id\":1,\"comment\":null},\"deleted\":{\"rule\":\"repeated\",\"type\":\"EchoEnvelope\",\"id\":2,\"comment\":null}},\"comment\":null},\"SubscribeEntityStreamRequest\":{\"fields\":{\"partyKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"itemId\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null},\"SubscribeEntityStreamResponse\":{\"oneofs\":{\"kind\":{\"oneof\":[\"snapshot\",\"mutation\"],\"comment\":null}},\"fields\":{\"snapshot\":{\"type\":\"ItemSnapshot\",\"id\":1,\"comment\":null},\"mutation\":{\"type\":\"Mutation\",\"id\":2,\"comment\":null}},\"nested\":{\"Mutation\":{\"fields\":{\"data\":{\"type\":\"EchoEnvelope\",\"id\":1,\"comment\":null},\"meta\":{\"type\":\"Metadata\",\"id\":2,\"comment\":null}},\"nested\":{\"Metadata\":{\"fields\":{\"feedKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"memberKey\":{\"type\":\"PubKey\",\"id\":2,\"comment\":null},\"seq\":{\"type\":\"int32\",\"id\":3,\"comment\":null},\"timeframe\":{\"type\":\"TimeframeVector\",\"id\":4,\"comment\":null}},\"comment\":null}},\"comment\":null}},\"comment\":null},\"WriteRequest\":{\"fields\":{\"partyKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"mutation\":{\"type\":\"EchoEnvelope\",\"id\":2,\"comment\":null}},\"comment\":null}}},\"snapshot\":{\"nested\":{\"DatabaseSnapshot\":{\"fields\":{\"items\":{\"rule\":\"repeated\",\"type\":\"ItemSnapshot\",\"id\":1,\"comment\":null},\"links\":{\"rule\":\"repeated\",\"type\":\"LinkSnapshot\",\"id\":2,\"comment\":null}},\"comment\":null},\"HaloStateSnapshot\":{\"fields\":{\"messages\":{\"rule\":\"repeated\",\"type\":\"dxos.CredentialsMessage\",\"id\":1,\"comment\":null}},\"comment\":null},\"ItemSnapshot\":{\"oneofs\":{\"_itemId\":{\"oneof\":[\"itemId\"]},\"_itemType\":{\"oneof\":[\"itemType\"]},\"_modelType\":{\"oneof\":[\"modelType\"]},\"_modelVersion\":{\"oneof\":[\"modelVersion\"]},\"_parentId\":{\"oneof\":[\"parentId\"]},\"_model\":{\"oneof\":[\"model\"]}},\"fields\":{\"itemId\":{\"type\":\"string\",\"id\":1,\"options\":{\"proto3_optional\":true},\"comment\":null},\"itemType\":{\"type\":\"string\",\"id\":2,\"options\":{\"proto3_optional\":true},\"comment\":null},\"modelType\":{\"type\":\"string\",\"id\":3,\"options\":{\"proto3_optional\":true},\"comment\":null},\"modelVersion\":{\"type\":\"string\",\"id\":4,\"options\":{\"proto3_optional\":true},\"comment\":null},\"parentId\":{\"type\":\"string\",\"id\":5,\"options\":{\"proto3_optional\":true},\"comment\":null},\"model\":{\"type\":\"ModelSnapshot\",\"id\":6,\"options\":{\"proto3_optional\":true},\"comment\":null}},\"comment\":null},\"LinkSnapshot\":{\"oneofs\":{\"_linkId\":{\"oneof\":[\"linkId\"]},\"_linkType\":{\"oneof\":[\"linkType\"]},\"_modelType\":{\"oneof\":[\"modelType\"]},\"_modelVersion\":{\"oneof\":[\"modelVersion\"]},\"_model\":{\"oneof\":[\"model\"]}},\"fields\":{\"linkId\":{\"type\":\"string\",\"id\":1,\"options\":{\"proto3_optional\":true},\"comment\":null},\"linkType\":{\"type\":\"string\",\"id\":2,\"options\":{\"proto3_optional\":true},\"comment\":null},\"modelType\":{\"type\":\"string\",\"id\":3,\"options\":{\"proto3_optional\":true},\"comment\":null},\"modelVersion\":{\"type\":\"string\",\"id\":4,\"options\":{\"proto3_optional\":true},\"comment\":null},\"source\":{\"rule\":\"required\",\"type\":\"string\",\"id\":5,\"comment\":null},\"target\":{\"rule\":\"required\",\"type\":\"string\",\"id\":6,\"comment\":null},\"model\":{\"type\":\"ModelSnapshot\",\"id\":7,\"options\":{\"proto3_optional\":true},\"comment\":null}},\"comment\":null},\"ModelMutation\":{\"fields\":{\"mutation\":{\"rule\":\"required\",\"type\":\"bytes\",\"id\":1,\"comment\":null},\"meta\":{\"rule\":\"required\",\"type\":\"ModelMutationMeta\",\"id\":2,\"comment\":null}},\"comment\":null},\"ModelMutationMeta\":{\"fields\":{\"feedKey\":{\"rule\":\"required\",\"type\":\"dxos.halo.keys.PubKey\",\"id\":1,\"comment\":null},\"seq\":{\"rule\":\"required\",\"type\":\"int32\",\"id\":2,\"comment\":null},\"memberKey\":{\"rule\":\"required\",\"type\":\"dxos.halo.keys.PubKey\",\"id\":3,\"comment\":null}},\"comment\":null},\"ModelSnapshot\":{\"oneofs\":{\"_snapshot\":{\"oneof\":[\"snapshot\"]}},\"fields\":{\"snapshot\":{\"type\":\"bytes\",\"id\":1,\"options\":{\"proto3_optional\":true},\"comment\":\"Encoded model snapshot (defined by the model's codec).\\nIf undefined the state machine will be initialized with it's default state.\"},\"mutations\":{\"rule\":\"repeated\",\"type\":\"ModelMutation\",\"id\":2,\"comment\":\"Mutations to be applied on top of the snapshot, or on top of initial state if the snapshot is undefined.\"}},\"comment\":null},\"PartySnapshot\":{\"fields\":{\"partyKey\":{\"type\":\"bytes\",\"id\":1,\"comment\":null},\"timeframe\":{\"type\":\"TimeframeVector\",\"id\":2,\"comment\":null},\"timestamp\":{\"type\":\"int32\",\"id\":3,\"comment\":null},\"halo\":{\"type\":\"HaloStateSnapshot\",\"id\":11,\"comment\":null},\"database\":{\"type\":\"DatabaseSnapshot\",\"id\":12,\"comment\":null}},\"comment\":null}}},\"testing\":{\"nested\":{\"TestItemMutation\":{\"fields\":{\"key\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"value\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null},\"TestItemSnapshot\":{\"fields\":{\"keys\":{\"rule\":\"repeated\",\"type\":\"TestItemMutation\",\"id\":1,\"comment\":null}},\"comment\":null},\"TestListMutation\":{\"fields\":{\"data\":{\"type\":\"string\",\"id\":1,\"comment\":null}},\"comment\":null}}},\"timeframe\":{\"nested\":{\"TimeframeVector\":{\"fields\":{\"frames\":{\"rule\":\"repeated\",\"type\":\"Frame\",\"id\":1,\"comment\":null}},\"nested\":{\"Frame\":{\"fields\":{\"feedKey\":{\"type\":\"bytes\",\"id\":1,\"comment\":null},\"seq\":{\"type\":\"int32\",\"id\":3,\"comment\":null}},\"comment\":null}},\"comment\":\"Vector timestamp used to order messages.\"}}}}},\"halo\":{\"nested\":{\"keys\":{\"nested\":{\"KeyChain\":{\"fields\":{\"publicKey\":{\"rule\":\"required\",\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"message\":{\"rule\":\"required\",\"type\":\"SignedMessage\",\"id\":2,\"comment\":null},\"parents\":{\"rule\":\"repeated\",\"type\":\"KeyChain\",\"id\":3,\"comment\":null}},\"comment\":null},\"KeyRecord\":{\"fields\":{\"type\":{\"rule\":\"required\",\"type\":\"KeyType\",\"id\":1,\"comment\":\"The `KeyType` type of the key. This is often unknown for keys from other sources.\"},\"publicKey\":{\"rule\":\"required\",\"type\":\"PubKey\",\"id\":2,\"comment\":\"The public key as a Buffer (required).\"},\"secretKey\":{\"type\":\"PrivKey\",\"id\":3,\"comment\":\"The secret key as a Buffer (this will never be visible outside the Keyring).\"},\"hint\":{\"type\":\"bool\",\"id\":4,\"comment\":\"Is this key from a Greeting \\\"hint\\\"?\"},\"own\":{\"type\":\"bool\",\"id\":5,\"comment\":\"Determines if this is our key?\\nUsually true if `secretKey` is present; may be false for \\\"inception keys\\\" such as the Party key.\"},\"trusted\":{\"type\":\"bool\",\"id\":6,\"comment\":\"Is this key to be trusted?\"},\"added\":{\"type\":\"string\",\"id\":7,\"comment\":\"An RFC-3339 date/time string for when the key was added to the Keyring.\"},\"created\":{\"type\":\"string\",\"id\":8,\"comment\":\"An RFC-3339 date/time string for when the key was created.\"}},\"comment\":null},\"KeyRecordList\":{\"fields\":{\"keys\":{\"rule\":\"repeated\",\"type\":\"KeyRecord\",\"id\":1,\"comment\":null}},\"comment\":null},\"KeyType\":{\"values\":{\"UNKNOWN\":0,\"IDENTITY\":1,\"DEVICE\":2,\"PARTY\":3,\"FEED\":4,\"DXNS_ADDRESS\":5},\"comment\":null,\"comments\":{\"UNKNOWN\":null,\"IDENTITY\":null,\"DEVICE\":null,\"PARTY\":null,\"FEED\":null,\"DXNS_ADDRESS\":null}},\"PrivKey\":{\"fields\":{\"data\":{\"type\":\"bytes\",\"id\":1,\"comment\":null}},\"comment\":null},\"PubKey\":{\"fields\":{\"data\":{\"type\":\"bytes\",\"id\":1,\"comment\":null}},\"comment\":null}}}}},\"test\":{\"nested\":{\"echo\":{\"nested\":{\"TestItemMutation\":{\"fields\":{\"key\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"value\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null},\"TestItemSnapshot\":{\"fields\":{\"keys\":{\"rule\":\"repeated\",\"type\":\"TestItemMutation\",\"id\":1,\"comment\":null}},\"comment\":null},\"TestListMutation\":{\"fields\":{\"data\":{\"type\":\"string\",\"id\":1,\"comment\":null}},\"comment\":null}}}}}}},\"google\":{\"nested\":{\"protobuf\":{\"nested\":{\"Any\":{\"fields\":{\"type_url\":{\"type\":\"string\",\"id\":1},\"value\":{\"type\":\"bytes\",\"id\":2}},\"comment\":null},\"Timestamp\":{\"fields\":{\"seconds\":{\"type\":\"int64\",\"id\":1},\"nanos\":{\"type\":\"int32\",\"id\":2}},\"comment\":null}}}}}}}");
66
+ export const schemaJson = JSON.parse("{\"nested\":{\"dxos\":{\"nested\":{\"credentials\":{\"nested\":{\"Message\":{\"fields\":{\"payload\":{\"rule\":\"required\",\"type\":\"google.protobuf.Any\",\"id\":1,\"comment\":null}},\"comment\":null},\"SignedMessage\":{\"fields\":{\"signed\":{\"rule\":\"required\",\"type\":\"Signed\",\"id\":1,\"comment\":\"The signed message contents.\"},\"signatures\":{\"rule\":\"repeated\",\"type\":\"Signature\",\"id\":2,\"comment\":\"An array of Signatures, one for each key that signed the message.\"}},\"nested\":{\"Signature\":{\"oneofs\":{\"_keyChain\":{\"oneof\":[\"keyChain\"]}},\"fields\":{\"key\":{\"rule\":\"required\",\"type\":\"PubKey\",\"id\":1,\"comment\":\"The publicKey of the keypair that made this signature.\"},\"signature\":{\"rule\":\"required\",\"type\":\"bytes\",\"id\":2,\"comment\":\"The bytes of the signature.\"},\"keyChain\":{\"type\":\"KeyChain\",\"id\":3,\"options\":{\"proto3_optional\":true},\"comment\":\"The certification chain of SignedMessages for this key.\"}},\"comment\":null},\"Signed\":{\"fields\":{\"created\":{\"rule\":\"required\",\"type\":\"string\",\"id\":1,\"comment\":\"RFC-3339 datetime string.\"},\"nonce\":{\"rule\":\"required\",\"type\":\"bytes\",\"id\":2,\"comment\":null},\"payload\":{\"rule\":\"required\",\"type\":\"google.protobuf.Any\",\"id\":10,\"comment\":\"The payload to be signed.\"}},\"comment\":null}},\"comment\":\"A generic container message used whenever messages are signed (e.g. PartyCredential)\"}}},\"echo\":{\"nested\":{\"feed\":{\"nested\":{\"CredentialsMessage\":{\"fields\":{\"data\":{\"type\":\"bytes\",\"id\":1,\"comment\":null}},\"comment\":\"A container for dxos.credentials.Message\"},\"EchoEnvelope\":{\"oneofs\":{\"_genesis\":{\"oneof\":[\"genesis\"]},\"_itemMutation\":{\"oneof\":[\"itemMutation\"]},\"_mutation\":{\"oneof\":[\"mutation\"]},\"_snapshot\":{\"oneof\":[\"snapshot\"]}},\"fields\":{\"itemId\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"genesis\":{\"type\":\"ItemGenesis\",\"id\":10,\"options\":{\"proto3_optional\":true},\"comment\":null},\"itemMutation\":{\"type\":\"ItemMutation\",\"id\":11,\"options\":{\"proto3_optional\":true},\"comment\":null},\"mutation\":{\"type\":\"bytes\",\"id\":12,\"options\":{\"proto3_optional\":true},\"comment\":null},\"snapshot\":{\"type\":\"ModelSnapshot\",\"id\":13,\"options\":{\"proto3_optional\":true},\"comment\":\"Set the model to the provided snapshot.\"}},\"comment\":\"Wrapper for all ECHO messages.\"},\"FeedMessage\":{\"oneofs\":{\"payload\":{\"oneof\":[\"halo\",\"echo\"],\"comment\":null}},\"fields\":{\"timeframe\":{\"type\":\"TimeframeVector\",\"id\":1,\"comment\":null},\"halo\":{\"type\":\"CredentialsMessage\",\"id\":10,\"comment\":null},\"echo\":{\"type\":\"EchoEnvelope\",\"id\":11,\"comment\":null}},\"comment\":\"Outer message type decoded by Codec.\\nThis is what is written to the feeds.\"},\"ItemGenesis\":{\"oneofs\":{\"_itemType\":{\"oneof\":[\"itemType\"]},\"_modelVersion\":{\"oneof\":[\"modelVersion\"]},\"_link\":{\"oneof\":[\"link\"]}},\"fields\":{\"itemType\":{\"type\":\"string\",\"id\":1,\"options\":{\"proto3_optional\":true},\"comment\":null},\"modelType\":{\"type\":\"string\",\"id\":2,\"comment\":null},\"modelVersion\":{\"type\":\"string\",\"id\":3,\"options\":{\"proto3_optional\":true},\"comment\":null},\"link\":{\"type\":\"LinkData\",\"id\":4,\"options\":{\"proto3_optional\":true},\"comment\":null}},\"comment\":null},\"ItemMutation\":{\"oneofs\":{\"_parentId\":{\"oneof\":[\"parentId\"]},\"_action\":{\"oneof\":[\"action\"]}},\"fields\":{\"parentId\":{\"type\":\"string\",\"id\":1,\"options\":{\"proto3_optional\":true},\"comment\":null},\"action\":{\"type\":\"Action\",\"id\":2,\"options\":{\"proto3_optional\":true},\"comment\":null}},\"nested\":{\"Action\":{\"values\":{\"NOOP\":0,\"DELETE\":1,\"RESTORE\":2},\"comment\":null,\"comments\":{\"NOOP\":null,\"DELETE\":null,\"RESTORE\":null}}},\"comment\":\"Item mutation.\"},\"LinkData\":{\"fields\":{\"source\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"target\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null}}},\"invitation\":{\"nested\":{\"InvitationDescriptor\":{\"oneofs\":{\"_identityKey\":{\"oneof\":[\"identityKey\"]},\"_secret\":{\"oneof\":[\"secret\"]}},\"fields\":{\"type\":{\"type\":\"Type\",\"id\":1,\"comment\":null},\"swarmKey\":{\"type\":\"bytes\",\"id\":2,\"comment\":null},\"invitation\":{\"type\":\"bytes\",\"id\":3,\"comment\":null},\"identityKey\":{\"type\":\"bytes\",\"id\":4,\"options\":{\"proto3_optional\":true},\"comment\":\"Only present if type == OFFLINE.\"},\"secret\":{\"type\":\"bytes\",\"id\":5,\"options\":{\"proto3_optional\":true},\"comment\":\"Must be stripped out when passing to another peer.\"}},\"nested\":{\"Type\":{\"values\":{\"INTERACTIVE\":1,\"OFFLINE\":2},\"comment\":\"Defines an invitation type.\",\"comments\":{\"INTERACTIVE\":\"Interactive invitation is when both peers are online at the same time.\",\"OFFLINE\":\"Offline is when only a single peer needs to be online at the time.\"}}},\"comment\":null}}},\"metadata\":{\"nested\":{\"EchoMetadata\":{\"fields\":{\"version\":{\"type\":\"int32\",\"id\":1,\"comment\":\"Version number that is inceremnted every time there's a breaking change to the storage schema.\\n\\nThis is used to detect if the storage schema has changed since the last time the client was run.\\nLoading data from a different version will might result in an error.\"},\"parties\":{\"rule\":\"repeated\",\"type\":\"PartyMetadata\",\"id\":2,\"comment\":null},\"created\":{\"type\":\"google.protobuf.Timestamp\",\"id\":3,\"comment\":null},\"updated\":{\"type\":\"google.protobuf.Timestamp\",\"id\":4,\"comment\":null}},\"comment\":null},\"PartyMetadata\":{\"oneofs\":{\"_genesisFeedKey\":{\"oneof\":[\"genesisFeedKey\"]},\"_controlFeedKey\":{\"oneof\":[\"controlFeedKey\"]},\"_dataFeedKey\":{\"oneof\":[\"dataFeedKey\"]},\"_latestTimeframe\":{\"oneof\":[\"latestTimeframe\"]}},\"fields\":{\"key\":{\"type\":\"PubKey\",\"id\":1,\"comment\":\"Party key.\"},\"genesisFeedKey\":{\"type\":\"PubKey\",\"id\":6,\"options\":{\"proto3_optional\":true},\"comment\":null},\"controlFeedKey\":{\"type\":\"PubKey\",\"id\":4,\"options\":{\"proto3_optional\":true},\"comment\":\"Key of the wriatable control feed.\"},\"dataFeedKey\":{\"type\":\"PubKey\",\"id\":3,\"options\":{\"proto3_optional\":true},\"comment\":\"Key of the wriatable data feed.\"},\"latestTimeframe\":{\"type\":\"TimeframeVector\",\"id\":5,\"options\":{\"proto3_optional\":true},\"comment\":null},\"feedKeys\":{\"rule\":\"repeated\",\"type\":\"PubKey\",\"id\":2,\"comment\":\"List of all feed associated with the party.\"}},\"comment\":null}}},\"service\":{\"nested\":{\"DataService\":{\"methods\":{\"SubscribeEntitySet\":{\"requestType\":\"SubscribeEntitySetRequest\",\"responseType\":\"SubscribeEntitySetResponse\",\"responseStream\":true,\"comment\":null},\"SubscribeEntityStream\":{\"requestType\":\"SubscribeEntityStreamRequest\",\"responseType\":\"SubscribeEntityStreamResponse\",\"responseStream\":true,\"comment\":null},\"Write\":{\"requestType\":\"WriteRequest\",\"responseType\":\"MutationReceipt\",\"comment\":null}},\"comment\":null},\"MutationReceipt\":{\"fields\":{\"feedKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"seq\":{\"type\":\"int32\",\"id\":2,\"comment\":null}},\"comment\":null},\"SubscribeEntitySetRequest\":{\"fields\":{\"partyKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null}},\"comment\":null},\"SubscribeEntitySetResponse\":{\"fields\":{\"added\":{\"rule\":\"repeated\",\"type\":\"EchoEnvelope\",\"id\":1,\"comment\":null},\"deleted\":{\"rule\":\"repeated\",\"type\":\"EchoEnvelope\",\"id\":2,\"comment\":null}},\"comment\":null},\"SubscribeEntityStreamRequest\":{\"fields\":{\"partyKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"itemId\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null},\"SubscribeEntityStreamResponse\":{\"oneofs\":{\"kind\":{\"oneof\":[\"snapshot\",\"mutation\"],\"comment\":null}},\"fields\":{\"snapshot\":{\"type\":\"ItemSnapshot\",\"id\":1,\"comment\":null},\"mutation\":{\"type\":\"Mutation\",\"id\":2,\"comment\":null}},\"nested\":{\"Mutation\":{\"fields\":{\"data\":{\"type\":\"EchoEnvelope\",\"id\":1,\"comment\":null},\"meta\":{\"type\":\"Metadata\",\"id\":2,\"comment\":null}},\"nested\":{\"Metadata\":{\"fields\":{\"feedKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"memberKey\":{\"type\":\"PubKey\",\"id\":2,\"comment\":null},\"seq\":{\"type\":\"int32\",\"id\":3,\"comment\":null},\"timeframe\":{\"type\":\"TimeframeVector\",\"id\":4,\"comment\":null}},\"comment\":null}},\"comment\":null}},\"comment\":null},\"WriteRequest\":{\"fields\":{\"partyKey\":{\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"mutation\":{\"type\":\"EchoEnvelope\",\"id\":2,\"comment\":null}},\"comment\":null}}},\"snapshot\":{\"nested\":{\"DatabaseSnapshot\":{\"fields\":{\"items\":{\"rule\":\"repeated\",\"type\":\"ItemSnapshot\",\"id\":1,\"comment\":null},\"links\":{\"rule\":\"repeated\",\"type\":\"LinkSnapshot\",\"id\":2,\"comment\":null}},\"comment\":null},\"HaloStateSnapshot\":{\"fields\":{\"messages\":{\"rule\":\"repeated\",\"type\":\"dxos.CredentialsMessage\",\"id\":1,\"comment\":null}},\"comment\":null},\"ItemSnapshot\":{\"oneofs\":{\"_itemId\":{\"oneof\":[\"itemId\"]},\"_itemType\":{\"oneof\":[\"itemType\"]},\"_modelVersion\":{\"oneof\":[\"modelVersion\"]},\"_parentId\":{\"oneof\":[\"parentId\"]},\"_model\":{\"oneof\":[\"model\"]}},\"fields\":{\"itemId\":{\"type\":\"string\",\"id\":1,\"options\":{\"proto3_optional\":true},\"comment\":null},\"itemType\":{\"type\":\"string\",\"id\":2,\"options\":{\"proto3_optional\":true},\"comment\":null},\"modelType\":{\"type\":\"string\",\"id\":3,\"comment\":null},\"modelVersion\":{\"type\":\"string\",\"id\":4,\"options\":{\"proto3_optional\":true},\"comment\":null},\"parentId\":{\"type\":\"string\",\"id\":5,\"options\":{\"proto3_optional\":true},\"comment\":null},\"model\":{\"type\":\"ModelSnapshot\",\"id\":6,\"options\":{\"proto3_optional\":true},\"comment\":null}},\"comment\":null},\"LinkSnapshot\":{\"oneofs\":{\"_linkId\":{\"oneof\":[\"linkId\"]},\"_linkType\":{\"oneof\":[\"linkType\"]},\"_modelVersion\":{\"oneof\":[\"modelVersion\"]},\"_model\":{\"oneof\":[\"model\"]}},\"fields\":{\"linkId\":{\"type\":\"string\",\"id\":1,\"options\":{\"proto3_optional\":true},\"comment\":null},\"linkType\":{\"type\":\"string\",\"id\":2,\"options\":{\"proto3_optional\":true},\"comment\":null},\"modelType\":{\"type\":\"string\",\"id\":3,\"comment\":null},\"modelVersion\":{\"type\":\"string\",\"id\":4,\"options\":{\"proto3_optional\":true},\"comment\":null},\"source\":{\"rule\":\"required\",\"type\":\"string\",\"id\":5,\"comment\":null},\"target\":{\"rule\":\"required\",\"type\":\"string\",\"id\":6,\"comment\":null},\"model\":{\"type\":\"ModelSnapshot\",\"id\":7,\"options\":{\"proto3_optional\":true},\"comment\":null}},\"comment\":null},\"ModelMutation\":{\"fields\":{\"mutation\":{\"rule\":\"required\",\"type\":\"bytes\",\"id\":1,\"comment\":null},\"meta\":{\"rule\":\"required\",\"type\":\"ModelMutationMeta\",\"id\":2,\"comment\":null}},\"comment\":null},\"ModelMutationMeta\":{\"fields\":{\"feedKey\":{\"rule\":\"required\",\"type\":\"dxos.halo.keys.PubKey\",\"id\":1,\"comment\":null},\"seq\":{\"rule\":\"required\",\"type\":\"int32\",\"id\":2,\"comment\":null},\"memberKey\":{\"rule\":\"required\",\"type\":\"dxos.halo.keys.PubKey\",\"id\":3,\"comment\":null}},\"comment\":null},\"ModelSnapshot\":{\"oneofs\":{\"_snapshot\":{\"oneof\":[\"snapshot\"]}},\"fields\":{\"snapshot\":{\"type\":\"bytes\",\"id\":1,\"options\":{\"proto3_optional\":true},\"comment\":\"Encoded model snapshot (defined by the model's codec).\\nIf undefined the state machine will be initialized with it's default state.\"},\"mutations\":{\"rule\":\"repeated\",\"type\":\"ModelMutation\",\"id\":2,\"comment\":\"Mutations to be applied on top of the snapshot, or on top of initial state if the snapshot is undefined.\"}},\"comment\":null},\"PartySnapshot\":{\"oneofs\":{\"_timeframe\":{\"oneof\":[\"timeframe\"]},\"_timestamp\":{\"oneof\":[\"timestamp\"]}},\"fields\":{\"partyKey\":{\"type\":\"bytes\",\"id\":1,\"comment\":null},\"timeframe\":{\"type\":\"TimeframeVector\",\"id\":2,\"options\":{\"proto3_optional\":true},\"comment\":null},\"timestamp\":{\"type\":\"int32\",\"id\":3,\"options\":{\"proto3_optional\":true},\"comment\":null},\"halo\":{\"type\":\"HaloStateSnapshot\",\"id\":11,\"comment\":null},\"database\":{\"type\":\"DatabaseSnapshot\",\"id\":12,\"comment\":null}},\"comment\":null}}},\"testing\":{\"nested\":{\"TestItemMutation\":{\"fields\":{\"key\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"value\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null},\"TestItemSnapshot\":{\"fields\":{\"keys\":{\"rule\":\"repeated\",\"type\":\"TestItemMutation\",\"id\":1,\"comment\":null}},\"comment\":null},\"TestListMutation\":{\"fields\":{\"data\":{\"type\":\"string\",\"id\":1,\"comment\":null}},\"comment\":null}}},\"timeframe\":{\"nested\":{\"TimeframeVector\":{\"fields\":{\"frames\":{\"rule\":\"repeated\",\"type\":\"Frame\",\"id\":1,\"comment\":null}},\"nested\":{\"Frame\":{\"fields\":{\"feedKey\":{\"type\":\"bytes\",\"id\":1,\"comment\":null},\"seq\":{\"type\":\"int32\",\"id\":3,\"comment\":null}},\"comment\":null}},\"comment\":\"Vector timestamp used to order messages.\"}}}}},\"halo\":{\"nested\":{\"keys\":{\"nested\":{\"KeyChain\":{\"fields\":{\"publicKey\":{\"rule\":\"required\",\"type\":\"PubKey\",\"id\":1,\"comment\":null},\"message\":{\"rule\":\"required\",\"type\":\"SignedMessage\",\"id\":2,\"comment\":null},\"parents\":{\"rule\":\"repeated\",\"type\":\"KeyChain\",\"id\":3,\"comment\":null}},\"comment\":null},\"KeyRecord\":{\"oneofs\":{\"_secretKey\":{\"oneof\":[\"secretKey\"]},\"_hint\":{\"oneof\":[\"hint\"]},\"_own\":{\"oneof\":[\"own\"]},\"_trusted\":{\"oneof\":[\"trusted\"]},\"_added\":{\"oneof\":[\"added\"]},\"_created\":{\"oneof\":[\"created\"]}},\"fields\":{\"type\":{\"rule\":\"required\",\"type\":\"KeyType\",\"id\":1,\"comment\":\"The `KeyType` type of the key. This is often unknown for keys from other sources.\"},\"publicKey\":{\"rule\":\"required\",\"type\":\"PubKey\",\"id\":2,\"comment\":\"The public key as a Buffer (required).\"},\"secretKey\":{\"type\":\"PrivKey\",\"id\":3,\"options\":{\"proto3_optional\":true},\"comment\":\"The secret key as a Buffer (this will never be visible outside the Keyring).\"},\"hint\":{\"type\":\"bool\",\"id\":4,\"options\":{\"proto3_optional\":true},\"comment\":\"Is this key from a Greeting \\\"hint\\\"?\"},\"own\":{\"type\":\"bool\",\"id\":5,\"options\":{\"proto3_optional\":true},\"comment\":\"Determines if this is our key?\\nUsually true if `secretKey` is present; may be false for \\\"inception keys\\\" such as the Party key.\"},\"trusted\":{\"type\":\"bool\",\"id\":6,\"options\":{\"proto3_optional\":true},\"comment\":\"Is this key to be trusted?\"},\"added\":{\"type\":\"string\",\"id\":7,\"options\":{\"proto3_optional\":true},\"comment\":\"An RFC-3339 date/time string for when the key was added to the Keyring.\"},\"created\":{\"type\":\"string\",\"id\":8,\"options\":{\"proto3_optional\":true},\"comment\":\"An RFC-3339 date/time string for when the key was created.\"}},\"comment\":null},\"KeyRecordList\":{\"fields\":{\"keys\":{\"rule\":\"repeated\",\"type\":\"KeyRecord\",\"id\":1,\"comment\":null}},\"comment\":null},\"KeyType\":{\"values\":{\"UNKNOWN\":0,\"IDENTITY\":1,\"DEVICE\":2,\"PARTY\":3,\"FEED\":4,\"DXNS_ADDRESS\":5},\"comment\":null,\"comments\":{\"UNKNOWN\":null,\"IDENTITY\":null,\"DEVICE\":null,\"PARTY\":null,\"FEED\":null,\"DXNS_ADDRESS\":null}},\"PrivKey\":{\"fields\":{\"data\":{\"type\":\"bytes\",\"id\":1,\"comment\":null}},\"comment\":null},\"PubKey\":{\"fields\":{\"data\":{\"type\":\"bytes\",\"id\":1,\"comment\":null}},\"comment\":null}}}}},\"test\":{\"nested\":{\"echo\":{\"nested\":{\"TestItemMutation\":{\"fields\":{\"key\":{\"type\":\"string\",\"id\":1,\"comment\":null},\"value\":{\"type\":\"string\",\"id\":2,\"comment\":null}},\"comment\":null},\"TestItemSnapshot\":{\"fields\":{\"keys\":{\"rule\":\"repeated\",\"type\":\"TestItemMutation\",\"id\":1,\"comment\":null}},\"comment\":null},\"TestListMutation\":{\"fields\":{\"data\":{\"type\":\"string\",\"id\":1,\"comment\":null}},\"comment\":null}}}}}}},\"google\":{\"nested\":{\"protobuf\":{\"nested\":{\"Any\":{\"fields\":{\"type_url\":{\"type\":\"string\",\"id\":1},\"value\":{\"type\":\"bytes\",\"id\":2}},\"comment\":null},\"Timestamp\":{\"fields\":{\"seconds\":{\"type\":\"int64\",\"id\":1},\"nanos\":{\"type\":\"int32\",\"id\":2}},\"comment\":null}}}}}}}");
67
67
  export const schema = Schema.fromJson<TYPES, SERVICES>(schemaJson, substitutions);