@dxos/echo-protocol 2.33.8 → 2.33.9-dev.0cfaca1b

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 (104) hide show
  1. package/dist/src/feeds/feed-store-iterator.d.ts +1 -1
  2. package/dist/src/feeds/feed-store-iterator.d.ts.map +1 -1
  3. package/dist/src/feeds/feed-store-iterator.js +6 -6
  4. package/dist/src/feeds/feed-store-iterator.js.map +1 -1
  5. package/dist/src/feeds/feed-store-iterator.test.js +8 -9
  6. package/dist/src/feeds/feed-store-iterator.test.js.map +1 -1
  7. package/dist/src/feeds/feed.test.js +6 -3
  8. package/dist/src/feeds/feed.test.js.map +1 -1
  9. package/dist/src/index.d.ts +0 -1
  10. package/dist/src/index.d.ts.map +1 -1
  11. package/dist/src/index.js +0 -1
  12. package/dist/src/index.js.map +1 -1
  13. package/dist/src/proto/gen/dxos/credentials.d.ts +39 -0
  14. package/dist/src/proto/gen/dxos/credentials.d.ts.map +1 -1
  15. package/dist/src/proto/gen/dxos/echo/feed.d.ts +65 -6
  16. package/dist/src/proto/gen/dxos/echo/feed.d.ts.map +1 -1
  17. package/dist/src/proto/gen/dxos/echo/feed.js +4 -0
  18. package/dist/src/proto/gen/dxos/echo/feed.js.map +1 -1
  19. package/dist/src/proto/gen/dxos/echo/invitation.d.ts +19 -3
  20. package/dist/src/proto/gen/dxos/echo/invitation.d.ts.map +1 -1
  21. package/dist/src/proto/gen/dxos/echo/invitation.js +6 -0
  22. package/dist/src/proto/gen/dxos/echo/invitation.js.map +1 -1
  23. package/dist/src/proto/gen/dxos/echo/metadata.d.ts +31 -8
  24. package/dist/src/proto/gen/dxos/echo/metadata.d.ts.map +1 -1
  25. package/dist/src/proto/gen/dxos/echo/service.d.ts +49 -13
  26. package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
  27. package/dist/src/proto/gen/dxos/echo/snapshot.d.ts +45 -13
  28. package/dist/src/proto/gen/dxos/echo/snapshot.d.ts.map +1 -1
  29. package/dist/src/proto/gen/dxos/echo/testing.d.ts +15 -3
  30. package/dist/src/proto/gen/dxos/echo/testing.d.ts.map +1 -1
  31. package/dist/src/proto/gen/dxos/echo/timeframe.d.ts +9 -2
  32. package/dist/src/proto/gen/dxos/echo/timeframe.d.ts.map +1 -1
  33. package/dist/src/proto/gen/dxos/halo/keys.d.ts +44 -2
  34. package/dist/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
  35. package/dist/src/proto/gen/dxos/halo/keys.js +4 -0
  36. package/dist/src/proto/gen/dxos/halo/keys.js.map +1 -1
  37. package/dist/src/proto/gen/dxos/test/echo.d.ts +23 -0
  38. package/dist/src/proto/gen/dxos/test/echo.d.ts.map +1 -0
  39. package/dist/src/proto/gen/dxos/test/echo.js +3 -0
  40. package/dist/src/proto/gen/dxos/test/echo.js.map +1 -0
  41. package/dist/src/proto/gen/google/protobuf.d.ts +4 -4
  42. package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -1
  43. package/dist/src/proto/gen/index.d.ts +4 -0
  44. package/dist/src/proto/gen/index.d.ts.map +1 -1
  45. package/dist/src/proto/gen/index.js +1 -1
  46. package/dist/src/proto/gen/index.js.map +1 -1
  47. package/dist/src/proto/index.d.ts +3 -3
  48. package/dist/src/proto/index.d.ts.map +1 -1
  49. package/dist/src/proto/index.js +3 -3
  50. package/dist/src/proto/index.js.map +1 -1
  51. package/dist/src/proto/messages.d.ts +2 -3
  52. package/dist/src/proto/messages.d.ts.map +1 -1
  53. package/dist/src/proto/messages.js +4 -14
  54. package/dist/src/proto/messages.js.map +1 -1
  55. package/dist/src/proto/substitutions.d.ts +2 -2
  56. package/dist/src/proto/substitutions.d.ts.map +1 -1
  57. package/dist/src/proto/substitutions.js +1 -2
  58. package/dist/src/proto/substitutions.js.map +1 -1
  59. package/dist/src/types.d.ts +1 -2
  60. package/dist/src/types.d.ts.map +1 -1
  61. package/dist/src/types.js.map +1 -1
  62. package/dist/tsconfig.tsbuildinfo +1 -1
  63. package/package.json +14 -10
  64. package/src/feeds/feed-store-iterator.test.ts +3 -4
  65. package/src/feeds/feed-store-iterator.ts +2 -3
  66. package/src/feeds/feed.test.ts +7 -4
  67. package/src/index.ts +0 -1
  68. package/src/proto/defs/import.proto +5 -3
  69. package/src/proto/gen/dxos/credentials.ts +40 -0
  70. package/src/proto/gen/dxos/echo/feed.ts +66 -6
  71. package/src/proto/gen/dxos/echo/invitation.ts +20 -3
  72. package/src/proto/gen/dxos/echo/metadata.ts +32 -8
  73. package/src/proto/gen/dxos/echo/service.ts +50 -13
  74. package/src/proto/gen/dxos/echo/snapshot.ts +46 -13
  75. package/src/proto/gen/dxos/echo/testing.ts +16 -3
  76. package/src/proto/gen/dxos/echo/timeframe.ts +10 -2
  77. package/src/proto/gen/dxos/halo/keys.ts +45 -2
  78. package/src/proto/gen/dxos/test/echo.ts +34 -0
  79. package/src/proto/gen/google/protobuf.ts +5 -4
  80. package/src/proto/gen/index.ts +5 -1
  81. package/src/proto/index.ts +4 -3
  82. package/src/proto/messages.ts +5 -16
  83. package/src/proto/substitutions.ts +1 -3
  84. package/src/types.ts +1 -2
  85. package/dist/src/spacetime/index.d.ts +0 -3
  86. package/dist/src/spacetime/index.d.ts.map +0 -1
  87. package/dist/src/spacetime/index.js +0 -22
  88. package/dist/src/spacetime/index.js.map +0 -1
  89. package/dist/src/spacetime/substitutions.d.ts +0 -13
  90. package/dist/src/spacetime/substitutions.d.ts.map +0 -1
  91. package/dist/src/spacetime/substitutions.js +0 -22
  92. package/dist/src/spacetime/substitutions.js.map +0 -1
  93. package/dist/src/spacetime/timeframe.d.ts +0 -45
  94. package/dist/src/spacetime/timeframe.d.ts.map +0 -1
  95. package/dist/src/spacetime/timeframe.js +0 -101
  96. package/dist/src/spacetime/timeframe.js.map +0 -1
  97. package/dist/src/spacetime/timeframe.test.d.ts +0 -2
  98. package/dist/src/spacetime/timeframe.test.d.ts.map +0 -1
  99. package/dist/src/spacetime/timeframe.test.js +0 -118
  100. package/dist/src/spacetime/timeframe.test.js.map +0 -1
  101. package/src/spacetime/index.ts +0 -6
  102. package/src/spacetime/substitutions.ts +0 -20
  103. package/src/spacetime/timeframe.test.ts +0 -132
  104. package/src/spacetime/timeframe.ts +0 -119
@@ -2,43 +2,79 @@ import type { Stream } from "@dxos/codec-protobuf";
2
2
  import substitutions from "../../../substitutions";
3
3
  import * as dxos_echo_feed from "./feed";
4
4
  import * as dxos_echo_snapshot from "./snapshot";
5
+ /**
6
+ * Defined in:
7
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/service.proto}
8
+ */
5
9
  export interface SubscribeEntitySetRequest {
6
- partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
10
+ partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
7
11
  }
12
+ /**
13
+ * Defined in:
14
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/service.proto}
15
+ */
8
16
  export interface SubscribeEntitySetResponse {
9
17
  added?: dxos_echo_feed.EchoEnvelope[];
10
18
  deleted?: dxos_echo_feed.EchoEnvelope[];
11
19
  }
20
+ /**
21
+ * Defined in:
22
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/service.proto}
23
+ */
12
24
  export interface SubscribeEntityStreamRequest {
13
- partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
14
- itemId?: string;
25
+ partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
26
+ itemId: string;
15
27
  }
28
+ /**
29
+ * Defined in:
30
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/service.proto}
31
+ */
16
32
  export interface SubscribeEntityStreamResponse {
17
33
  snapshot?: dxos_echo_snapshot.ItemSnapshot;
18
34
  mutation?: SubscribeEntityStreamResponse.Mutation;
19
35
  }
20
36
  export declare namespace SubscribeEntityStreamResponse {
37
+ /**
38
+ * Defined in:
39
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/service.proto}
40
+ */
21
41
  interface Mutation {
22
- data?: dxos_echo_feed.EchoEnvelope;
23
- meta?: SubscribeEntityStreamResponse.Mutation.Metadata;
42
+ data: dxos_echo_feed.EchoEnvelope;
43
+ meta: SubscribeEntityStreamResponse.Mutation.Metadata;
24
44
  }
25
45
  namespace Mutation {
46
+ /**
47
+ * Defined in:
48
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/service.proto}
49
+ */
26
50
  interface Metadata {
27
- feedKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
28
- memberKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
29
- seq?: number;
30
- timeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
51
+ feedKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
52
+ memberKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
53
+ seq: number;
54
+ timeframe: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
31
55
  }
32
56
  }
33
57
  }
58
+ /**
59
+ * Defined in:
60
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/service.proto}
61
+ */
34
62
  export interface WriteRequest {
35
- partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
36
- mutation?: dxos_echo_feed.EchoEnvelope;
63
+ partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
64
+ mutation: dxos_echo_feed.EchoEnvelope;
37
65
  }
66
+ /**
67
+ * Defined in:
68
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/service.proto}
69
+ */
38
70
  export interface MutationReceipt {
39
- feedKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
40
- seq?: number;
71
+ feedKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
72
+ seq: number;
41
73
  }
74
+ /**
75
+ * Defined in:
76
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/service.proto}
77
+ */
42
78
  export interface DataService {
43
79
  subscribeEntitySet: (request: SubscribeEntitySetRequest) => Stream<SubscribeEntitySetResponse>;
44
80
  subscribeEntityStream: (request: SubscribeEntityStreamRequest) => Stream<SubscribeEntityStreamResponse>;
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAEnD,OAAO,KAAK,cAAc,MAAM,QAAQ,CAAC;AAGzC,OAAO,KAAK,kBAAkB,MAAM,YAAY,CAAC;AAKjD,MAAM,WAAW,yBAAyB;IACtC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;CACpF;AACD,MAAM,WAAW,0BAA0B;IACvC,KAAK,CAAC,EAAE,cAAc,CAAC,YAAY,EAAE,CAAC;IACtC,OAAO,CAAC,EAAE,cAAc,CAAC,YAAY,EAAE,CAAC;CAC3C;AACD,MAAM,WAAW,4BAA4B;IACzC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjF,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,MAAM,WAAW,6BAA6B;IAC1C,QAAQ,CAAC,EAAE,kBAAkB,CAAC,YAAY,CAAC;IAC3C,QAAQ,CAAC,EAAE,6BAA6B,CAAC,QAAQ,CAAC;CACrD;AACD,yBAAiB,6BAA6B,CAAC;IAC3C,UAAiB,QAAQ;QACrB,IAAI,CAAC,E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AC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;YACjF,GAAG,EAAE,MAAM,CAAC;YACZ,SAAS,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qCAAqC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;SAClG;KACJ;CACJ;AACD;;;GAGG;AACH,MAAM,WAAW,YAAY;IACzB,QAAQ,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAChF,QAAQ,EAAE,cAAc,CAAC,YAAY,CAAC;CACzC;AACD;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC5B,OAAO,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC/E,GAAG,EAAE,MAAM,CAAC;CACf;AACD;;;GAGG;AACH,MAAM,WAAW,WAAW;IACxB,kBAAkB,EAAE,CAAC,OAAO,EAAE,yBAAyB,KAAK,MAAM,CAAC,0BAA0B,CAAC,CAAC;IAC/F,qBAAqB,EAAE,CAAC,OAAO,EAAE,4BAA4B,KAAK,MAAM,CAAC,6BAA6B,CAAC,CAAC;IACxG,KAAK,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC;CAC9D"}
@@ -1,18 +1,42 @@
1
1
  import substitutions from "../../../substitutions";
2
+ /**
3
+ * Defined in:
4
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/snapshot.proto}
5
+ */
2
6
  export interface PartySnapshot {
3
- partyKey?: Uint8Array;
7
+ partyKey: Uint8Array;
8
+ /**
9
+ * Options:
10
+ * - proto3_optional = true
11
+ */
4
12
  timeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
13
+ /**
14
+ * Options:
15
+ * - proto3_optional = true
16
+ */
5
17
  timestamp?: number;
6
- halo?: HaloStateSnapshot;
7
- database?: DatabaseSnapshot;
18
+ halo: HaloStateSnapshot;
19
+ database: DatabaseSnapshot;
8
20
  }
21
+ /**
22
+ * Defined in:
23
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/snapshot.proto}
24
+ */
9
25
  export interface HaloStateSnapshot {
10
26
  messages?: ReturnType<(typeof substitutions)["dxos.echo.feed.CredentialsMessage"]["decode"]>[];
11
27
  }
28
+ /**
29
+ * Defined in:
30
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/snapshot.proto}
31
+ */
12
32
  export interface DatabaseSnapshot {
13
33
  items?: ItemSnapshot[];
14
34
  links?: LinkSnapshot[];
15
35
  }
36
+ /**
37
+ * Defined in:
38
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/snapshot.proto}
39
+ */
16
40
  export interface ItemSnapshot {
17
41
  /**
18
42
  * Options:
@@ -24,11 +48,7 @@ export interface ItemSnapshot {
24
48
  * - proto3_optional = true
25
49
  */
26
50
  itemType?: string;
27
- /**
28
- * Options:
29
- * - proto3_optional = true
30
- */
31
- modelType?: string;
51
+ modelType: string;
32
52
  /**
33
53
  * Options:
34
54
  * - proto3_optional = true
@@ -45,6 +65,10 @@ export interface ItemSnapshot {
45
65
  */
46
66
  model?: ModelSnapshot;
47
67
  }
68
+ /**
69
+ * Defined in:
70
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/snapshot.proto}
71
+ */
48
72
  export interface LinkSnapshot {
49
73
  /**
50
74
  * Options:
@@ -56,11 +80,7 @@ export interface LinkSnapshot {
56
80
  * - proto3_optional = true
57
81
  */
58
82
  linkType?: string;
59
- /**
60
- * Options:
61
- * - proto3_optional = true
62
- */
63
- modelType?: string;
83
+ modelType: string;
64
84
  /**
65
85
  * Options:
66
86
  * - proto3_optional = true
@@ -74,6 +94,10 @@ export interface LinkSnapshot {
74
94
  */
75
95
  model?: ModelSnapshot;
76
96
  }
97
+ /**
98
+ * Defined in:
99
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/snapshot.proto}
100
+ */
77
101
  export interface ModelSnapshot {
78
102
  /**
79
103
  * Encoded model snapshot (defined by the model's codec).
@@ -88,10 +112,18 @@ export interface ModelSnapshot {
88
112
  */
89
113
  mutations?: ModelMutation[];
90
114
  }
115
+ /**
116
+ * Defined in:
117
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/snapshot.proto}
118
+ */
91
119
  export interface ModelMutation {
92
120
  mutation: Uint8Array;
93
121
  meta: ModelMutationMeta;
94
122
  }
123
+ /**
124
+ * Defined in:
125
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/snapshot.proto}
126
+ */
95
127
  export interface ModelMutationMeta {
96
128
  feedKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
97
129
  seq: number;
@@ -1 +1 @@
1
- {"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/snapshot.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAUnD,MAAM,WAAW,aAAa;IAC1B,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,qCAAqC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAChG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AACD,MAAM,WAAW,iBAAiB;IAC9B,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,mCAAmC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC;CAClG;AACD,MAAM,WAAW,gBAAgB;IAC7B,KAAK,CAAC,EAAE,YAAY,EAAE,CAAC;IACvB,KA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ACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;CACzB;AACD;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,aAAa,EAAE,CAAC;CAC/B;AACD;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B,QAAQ,EAAE,UAAU,CAAC;IACrB,IAAI,EAAE,iBAAiB,CAAC;CAC3B;AACD;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAC9B,OAAO,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC/E,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,UAAU,CAAC,CAAC,OAAO,aAAa,CAAC,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;CACpF"}
@@ -1,10 +1,22 @@
1
+ /**
2
+ * Defined in:
3
+ * {@link file://./../../../defs/testing.proto}
4
+ */
1
5
  export interface TestItemMutation {
2
- key?: string;
3
- value?: string;
6
+ key: string;
7
+ value: string;
4
8
  }
9
+ /**
10
+ * Defined in:
11
+ * {@link file://./../../../defs/testing.proto}
12
+ */
5
13
  export interface TestListMutation {
6
- data?: string;
14
+ data: string;
7
15
  }
16
+ /**
17
+ * Defined in:
18
+ * {@link file://./../../../defs/testing.proto}
19
+ */
8
20
  export interface TestItemSnapshot {
9
21
  keys?: TestItemMutation[];
10
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/testing.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,gBAAgB;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AACD,MAAM,WAAW,gBAAgB;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AACD,MAAM,WAAW,gBAAgB;IAC7B,IAAI,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC7B"}
1
+ {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/testing.ts"],"names":[],"mappings":"AAYA;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACjB;AACD;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,MAAM,CAAC;CAChB;AACD;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC7B,IAAI,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC7B"}
@@ -1,13 +1,20 @@
1
1
  /**
2
2
  * Vector timestamp used to order messages.
3
+ *
4
+ * Defined in:
5
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/timeframe.proto}
3
6
  */
4
7
  export interface TimeframeVector {
5
8
  frames?: TimeframeVector.Frame[];
6
9
  }
7
10
  export declare namespace TimeframeVector {
11
+ /**
12
+ * Defined in:
13
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/timeframe.proto}
14
+ */
8
15
  interface Frame {
9
- feedKey?: Uint8Array;
10
- seq?: number;
16
+ feedKey: Uint8Array;
17
+ seq: number;
11
18
  }
12
19
  }
13
20
  //# sourceMappingURL=timeframe.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"timeframe.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/timeframe.ts"],"names":[],"mappings":"AAWA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,MAAM,CAAC,EAAE,eAAe,CAAC,KAAK,EAAE,CAAC;CACpC;AACD,yBAAiB,eAAe,CAAC;IAC7B,UAAiB,KAAK;QAClB,OAAO,CAAC,EAAE,UAAU,CAAC;QACrB,GAAG,CAAC,EAAE,MAAM,CAAC;KAChB;CACJ"}
1
+ {"version":3,"file":"timeframe.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/echo/timeframe.ts"],"names":[],"mappings":"AAYA;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC5B,MAAM,CAAC,EAAE,eAAe,CAAC,KAAK,EAAE,CAAC;CACpC;AACD,yBAAiB,eAAe,CAAC;IAC7B;;;OAGG;IACH,UAAiB,KAAK;QAClB,OAAO,EAAE,UAAU,CAAC;QACpB,GAAG,EAAE,MAAM,CAAC;KACf;CACJ"}
@@ -1,5 +1,9 @@
1
1
  import substitutions from "../../../substitutions";
2
2
  import * as dxos_credentials from "../credentials";
3
+ /**
4
+ * Defined in:
5
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
6
+ */
3
7
  export declare enum KeyType {
4
8
  UNKNOWN = 0,
5
9
  IDENTITY = 1,
@@ -8,12 +12,24 @@ export declare enum KeyType {
8
12
  FEED = 4,
9
13
  DXNS_ADDRESS = 5
10
14
  }
15
+ /**
16
+ * Defined in:
17
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
18
+ */
11
19
  export interface PubKey {
12
- data?: Uint8Array;
20
+ data: Uint8Array;
13
21
  }
22
+ /**
23
+ * Defined in:
24
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
25
+ */
14
26
  export interface PrivKey {
15
- data?: Uint8Array;
27
+ data: Uint8Array;
16
28
  }
29
+ /**
30
+ * Defined in:
31
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
32
+ */
17
33
  export interface KeyRecord {
18
34
  /**
19
35
  * The `KeyType` type of the key. This is often unknown for keys from other sources.
@@ -25,33 +41,59 @@ export interface KeyRecord {
25
41
  publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
26
42
  /**
27
43
  * The secret key as a Buffer (this will never be visible outside the Keyring).
44
+ *
45
+ * Options:
46
+ * - proto3_optional = true
28
47
  */
29
48
  secretKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PrivKey"]["decode"]>;
30
49
  /**
31
50
  * Is this key from a Greeting "hint"?
51
+ *
52
+ * Options:
53
+ * - proto3_optional = true
32
54
  */
33
55
  hint?: boolean;
34
56
  /**
35
57
  * Determines if this is our key?
36
58
  * Usually true if `secretKey` is present; may be false for "inception keys" such as the Party key.
59
+ *
60
+ * Options:
61
+ * - proto3_optional = true
37
62
  */
38
63
  own?: boolean;
39
64
  /**
40
65
  * Is this key to be trusted?
66
+ *
67
+ * Options:
68
+ * - proto3_optional = true
41
69
  */
42
70
  trusted?: boolean;
43
71
  /**
44
72
  * An RFC-3339 date/time string for when the key was added to the Keyring.
73
+ *
74
+ * Options:
75
+ * - proto3_optional = true
45
76
  */
46
77
  added?: string;
47
78
  /**
48
79
  * An RFC-3339 date/time string for when the key was created.
80
+ *
81
+ * Options:
82
+ * - proto3_optional = true
49
83
  */
50
84
  created?: string;
51
85
  }
86
+ /**
87
+ * Defined in:
88
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
89
+ */
52
90
  export interface KeyRecordList {
53
91
  keys?: KeyRecord[];
54
92
  }
93
+ /**
94
+ * Defined in:
95
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
96
+ */
55
97
  export interface KeyChain {
56
98
  publicKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
57
99
  message: dxos_credentials.SignedMessage;
@@ -1 +1 @@
1
- {"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/halo/keys.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,wBAAwB,CAAC;AACnD,OAAO,KAAK,gBAAgB,MAAM,gBAAgB,CAAC;AASnD,oBAAY,OAAO;IACf,OAAO,IAA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
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.KeyType = void 0;
4
+ /**
5
+ * Defined in:
6
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/halo/keys.proto}
7
+ */
4
8
  var KeyType;
5
9
  (function (KeyType) {
6
10
  KeyType[KeyType["UNKNOWN"] = 0] = "UNKNOWN";
@@ -1 +1 @@
1
- {"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/halo/keys.ts"],"names":[],"mappings":";;;AAWA,IAAY,OAOX;AAPD,WAAY,OAAO;IACf,2CAAW,CAAA;IACX,6CAAY,CAAA;IACZ,yCAAU,CAAA;IACV,uCAAS,CAAA;IACT,qCAAQ,CAAA;IACR,qDAAgB,CAAA;AACpB,CAAC,EAPW,OAAO,GAAP,eAAO,KAAP,eAAO,QAOlB"}
1
+ {"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/halo/keys.ts"],"names":[],"mappings":";;;AAYA;;;GAGG;AACH,IAAY,OAOX;AAPD,WAAY,OAAO;IACf,2CAAW,CAAA;IACX,6CAAY,CAAA;IACZ,yCAAU,CAAA;IACV,uCAAS,CAAA;IACT,qCAAQ,CAAA;IACR,qDAAgB,CAAA;AACpB,CAAC,EAPW,OAAO,GAAP,eAAO,KAAP,eAAO,QAOlB"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Defined in:
3
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/test/echo.proto}
4
+ */
5
+ export interface TestItemMutation {
6
+ key: string;
7
+ value: string;
8
+ }
9
+ /**
10
+ * Defined in:
11
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/test/echo.proto}
12
+ */
13
+ export interface TestListMutation {
14
+ data: string;
15
+ }
16
+ /**
17
+ * Defined in:
18
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/test/echo.proto}
19
+ */
20
+ export interface TestItemSnapshot {
21
+ keys?: TestItemMutation[];
22
+ }
23
+ //# sourceMappingURL=echo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"echo.d.ts","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/test/echo.ts"],"names":[],"mappings":"AAYA;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACjB;AACD;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,MAAM,CAAC;CAChB;AACD;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC7B,IAAI,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC7B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=echo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"echo.js","sourceRoot":"","sources":["../../../../../../src/proto/gen/dxos/test/echo.ts"],"names":[],"mappings":""}
@@ -1,9 +1,9 @@
1
1
  export interface Any {
2
- type_url?: string;
3
- value?: Uint8Array;
2
+ type_url: string;
3
+ value: Uint8Array;
4
4
  }
5
5
  export interface Timestamp {
6
- seconds?: string;
7
- nanos?: number;
6
+ seconds: string;
7
+ nanos: number;
8
8
  }
9
9
  //# sourceMappingURL=protobuf.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"protobuf.d.ts","sourceRoot":"","sources":["../../../../../src/proto/gen/google/protobuf.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,GAAG;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,UAAU,CAAC;CACtB;AACD,MAAM,WAAW,SAAS;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB"}
1
+ {"version":3,"file":"protobuf.d.ts","sourceRoot":"","sources":["../../../../../src/proto/gen/google/protobuf.ts"],"names":[],"mappings":"AAYA,MAAM,WAAW,GAAG;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,UAAU,CAAC;CACrB;AACD,MAAM,WAAW,SAAS;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACjB"}
@@ -8,6 +8,7 @@ import * as dxos_echo_snapshot from "./dxos/echo/snapshot";
8
8
  import * as dxos_echo_testing from "./dxos/echo/testing";
9
9
  import * as dxos_echo_timeframe from "./dxos/echo/timeframe";
10
10
  import * as dxos_halo_keys from "./dxos/halo/keys";
11
+ import * as dxos_test_echo from "./dxos/test/echo";
11
12
  import * as google_protobuf from "./google/protobuf";
12
13
  export interface TYPES {
13
14
  "dxos.credentials.Message": dxos_credentials.Message;
@@ -52,6 +53,9 @@ export interface TYPES {
52
53
  "dxos.halo.keys.KeyType": dxos_halo_keys.KeyType;
53
54
  "dxos.halo.keys.PrivKey": dxos_halo_keys.PrivKey;
54
55
  "dxos.halo.keys.PubKey": dxos_halo_keys.PubKey;
56
+ "dxos.test.echo.TestItemMutation": dxos_test_echo.TestItemMutation;
57
+ "dxos.test.echo.TestItemSnapshot": dxos_test_echo.TestItemSnapshot;
58
+ "dxos.test.echo.TestListMutation": dxos_test_echo.TestListMutation;
55
59
  "google.protobuf.Any": google_protobuf.Any;
56
60
  "google.protobuf.Timestamp": google_protobuf.Timestamp;
57
61
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,cAAc,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,oBAAoB,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,kBAAkB,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,iBAAiB,MAAM,qBAAqB,CAAC;AACzD,O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CAAoC,EAAE,iBAAiB,CAAC,gBAAgB,CAAC;IACzE,qCAAqC,EAAE,mBAAmB,CAAC,eAAe,CAAC;IAC3E,2CAA2C,EAAE,mBAAmB,CAAC,eAAe,CAAC,KAAK,CAAC;IACvF,yBAAyB,EAAE,cAAc,CAAC,QAAQ,CAAC;IACnD,0BAA0B,EAAE,cAAc,CAAC,SAAS,CAAC;IACrD,8BAA8B,EAAE,cAAc,CAAC,aAAa,CAAC;IAC7D,wBAAwB,EAAE,cAAc,CAAC,OAAO,CAAC;IACjD,wBAAwB,EAAE,cAAc,CAAC,OAAO,CAAC;IACjD,uBAAuB,EAAE,cAAc,CAAC,MAAM,CAAC;IAC/C,iCAAiC,EAAE,cAAc,CAAC,gBAAgB,CAAC;IACnE,iCAAiC,EAAE,cAAc,CAAC,gBAAgB,CAAC;IACnE,iCAAiC,EAAE,cAAc,CAAC,gBAAgB,CAAC;IACnE,qBAAqB,EAAE,eAAe,CAAC,GAAG,CAAC;IAC3C,2BAA2B,EAAE,eAAe,CAAC,SAAS,CAAC;CAC1D;AACD,MAAM,WAAW,QAAQ;IACrB,+BAA+B,EAAE,iBAAiB,CAAC,WAAW,CAAC;CAClE;AACD,eAAO,MAAM,UAAU,KAAktgB,CAAC;AAC1ugB,eAAO,MAAM,MAAM,yBAA8D,CAAC"}
@@ -6,6 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.schema = exports.schemaJson = void 0;
7
7
  const codec_protobuf_1 = require("@dxos/codec-protobuf");
8
8
  const substitutions_1 = __importDefault(require("../substitutions"));
9
- exports.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.\"},\"feedKeys\":{\"rule\":\"repeated\",\"type\":\"PubKey\",\"id\":2,\"comment\":\"List of all feed associated with the party.\"},\"dataFeedKey\":{\"type\":\"PubKey\",\"id\":3,\"comment\":\"Key of the wriatable data feed.\"},\"controlFeedKey\":{\"type\":\"PubKey\",\"id\":4,\"comment\":\"Key of the wriatable control feed.\"},\"latestTimeframe\":{\"type\":\"TimeframeVector\",\"id\":5,\"comment\":null}},\"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}}}}}}},\"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}}}}}}}");
9
+ exports.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}}}}}}}");
10
10
  exports.schema = codec_protobuf_1.Schema.fromJson(exports.schemaJson, substitutions_1.default);
11
11
  //# sourceMappingURL=index.js.map