@dxos/client 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 (99) hide show
  1. package/dist/browser.js +98363 -0
  2. package/dist/src/api/client.js +3 -3
  3. package/dist/src/api/client.js.map +1 -1
  4. package/dist/src/api/client.test.js +2 -2
  5. package/dist/src/api/client.test.js.map +1 -1
  6. package/dist/src/api/invitations/invitation-proxy.js +4 -4
  7. package/dist/src/api/invitations/invitation-proxy.js.map +1 -1
  8. package/dist/src/api/invitations/invitation-request.js +2 -2
  9. package/dist/src/api/invitations/invitation-request.js.map +1 -1
  10. package/dist/src/api/invitations/invitation.d.ts.map +1 -1
  11. package/dist/src/api/invitations/invitation.js +1 -0
  12. package/dist/src/api/invitations/invitation.js.map +1 -1
  13. package/dist/src/api/proxies/echo-proxy.js +2 -2
  14. package/dist/src/api/proxies/echo-proxy.js.map +1 -1
  15. package/dist/src/index.d.ts +4 -3
  16. package/dist/src/index.d.ts.map +1 -1
  17. package/dist/src/index.js +8 -14
  18. package/dist/src/index.js.map +1 -1
  19. package/dist/src/proto/gen/dxos/client.d.ts +216 -18
  20. package/dist/src/proto/gen/dxos/client.d.ts.map +1 -1
  21. package/dist/src/proto/gen/dxos/client.js +4 -0
  22. package/dist/src/proto/gen/dxos/client.js.map +1 -1
  23. package/dist/src/proto/gen/dxos/config.d.ts +457 -0
  24. package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
  25. package/dist/src/proto/gen/dxos/config.js +10 -0
  26. package/dist/src/proto/gen/dxos/config.js.map +1 -1
  27. package/dist/src/proto/gen/dxos/credentials.d.ts +39 -0
  28. package/dist/src/proto/gen/dxos/credentials.d.ts.map +1 -1
  29. package/dist/src/proto/gen/dxos/devtools.d.ts +266 -30
  30. package/dist/src/proto/gen/dxos/devtools.d.ts.map +1 -1
  31. package/dist/src/proto/gen/dxos/echo/feed.d.ts +65 -6
  32. package/dist/src/proto/gen/dxos/echo/feed.d.ts.map +1 -1
  33. package/dist/src/proto/gen/dxos/echo/feed.js +4 -0
  34. package/dist/src/proto/gen/dxos/echo/feed.js.map +1 -1
  35. package/dist/src/proto/gen/dxos/echo/invitation.d.ts +19 -3
  36. package/dist/src/proto/gen/dxos/echo/invitation.d.ts.map +1 -1
  37. package/dist/src/proto/gen/dxos/echo/invitation.js +6 -0
  38. package/dist/src/proto/gen/dxos/echo/invitation.js.map +1 -1
  39. package/dist/src/proto/gen/dxos/echo/service.d.ts +49 -13
  40. package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
  41. package/dist/src/proto/gen/dxos/echo/snapshot.d.ts +45 -13
  42. package/dist/src/proto/gen/dxos/echo/snapshot.d.ts.map +1 -1
  43. package/dist/src/proto/gen/dxos/echo/timeframe.d.ts +9 -2
  44. package/dist/src/proto/gen/dxos/echo/timeframe.d.ts.map +1 -1
  45. package/dist/src/proto/gen/dxos/halo/keys.d.ts +44 -2
  46. package/dist/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
  47. package/dist/src/proto/gen/dxos/halo/keys.js +4 -0
  48. package/dist/src/proto/gen/dxos/halo/keys.js.map +1 -1
  49. package/dist/src/proto/gen/dxos/rpc.d.ts +58 -8
  50. package/dist/src/proto/gen/dxos/rpc.d.ts.map +1 -1
  51. package/dist/src/proto/gen/dxos/rpc.js +4 -0
  52. package/dist/src/proto/gen/dxos/rpc.js.map +1 -1
  53. package/dist/src/proto/gen/google/protobuf.d.ts +80 -80
  54. package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -1
  55. package/dist/src/proto/gen/index.d.ts.map +1 -1
  56. package/dist/src/proto/gen/index.js +1 -1
  57. package/dist/src/proto/gen/index.js.map +1 -1
  58. package/dist/src/proto/index.d.ts +4 -0
  59. package/dist/src/proto/index.d.ts.map +1 -0
  60. package/dist/src/proto/index.js +35 -0
  61. package/dist/src/proto/index.js.map +1 -0
  62. package/dist/src/services/impl/halo.js +12 -12
  63. package/dist/src/services/impl/halo.js.map +1 -1
  64. package/dist/src/services/impl/party.js +6 -6
  65. package/dist/src/services/impl/party.js.map +1 -1
  66. package/dist/src/services/impl/profile.js +5 -5
  67. package/dist/src/services/impl/profile.js.map +1 -1
  68. package/dist/src/services/impl/types.d.ts +1 -1
  69. package/dist/src/services/impl/types.d.ts.map +1 -1
  70. package/dist/src/services/services.test.js +5 -3
  71. package/dist/src/services/services.test.js.map +1 -1
  72. package/dist/tsconfig.tsbuildinfo +1 -1
  73. package/package.json +35 -19
  74. package/src/api/client.test.ts +1 -1
  75. package/src/api/client.ts +1 -1
  76. package/src/api/invitations/invitation-proxy.ts +1 -1
  77. package/src/api/invitations/invitation-request.ts +1 -1
  78. package/src/api/invitations/invitation.ts +1 -0
  79. package/src/api/proxies/echo-proxy.ts +1 -1
  80. package/src/index.ts +13 -3
  81. package/src/proto/gen/dxos/client.ts +216 -18
  82. package/src/proto/gen/dxos/config.ts +457 -0
  83. package/src/proto/gen/dxos/credentials.ts +39 -0
  84. package/src/proto/gen/dxos/devtools.ts +266 -30
  85. package/src/proto/gen/dxos/echo/feed.ts +65 -6
  86. package/src/proto/gen/dxos/echo/invitation.ts +19 -3
  87. package/src/proto/gen/dxos/echo/service.ts +49 -13
  88. package/src/proto/gen/dxos/echo/snapshot.ts +45 -13
  89. package/src/proto/gen/dxos/echo/timeframe.ts +9 -2
  90. package/src/proto/gen/dxos/halo/keys.ts +44 -2
  91. package/src/proto/gen/dxos/rpc.ts +58 -8
  92. package/src/proto/gen/google/protobuf.ts +80 -80
  93. package/src/proto/gen/index.ts +1 -1
  94. package/src/proto/index.ts +7 -0
  95. package/src/services/impl/halo.ts +1 -1
  96. package/src/services/impl/party.ts +1 -1
  97. package/src/services/impl/profile.ts +1 -1
  98. package/src/services/impl/types.ts +1 -1
  99. package/src/services/services.test.ts +3 -2
@@ -11,25 +11,64 @@ import * as dxos_echo_timeframe from "./echo/timeframe";
11
11
  import * as dxos_halo_keys from "./halo/keys";
12
12
  import * as dxos_rpc from "./rpc";
13
13
  import * as google_protobuf from "../google/protobuf";
14
+ /**
15
+ * Defined in:
16
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/halo/signed.proto}
17
+ */
14
18
  export interface Message {
15
19
  payload: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
16
20
  }
17
21
  /**
18
22
  * A generic container message used whenever messages are signed (e.g. PartyCredential)
23
+ *
24
+ * Defined in:
25
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/halo/signed.proto}
19
26
  */
20
27
  export interface SignedMessage {
28
+ /**
29
+ * The signed message contents.
30
+ */
21
31
  signed: SignedMessage.Signed;
32
+ /**
33
+ * An array of Signatures, one for each key that signed the message.
34
+ */
22
35
  signatures?: SignedMessage.Signature[];
23
36
  }
24
37
  export namespace SignedMessage {
38
+ /**
39
+ * Defined in:
40
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/halo/signed.proto}
41
+ */
25
42
  export interface Signed {
43
+ /**
44
+ * RFC-3339 datetime string.
45
+ */
26
46
  created: string;
27
47
  nonce: Uint8Array;
48
+ /**
49
+ * The payload to be signed.
50
+ */
28
51
  payload: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
29
52
  }
53
+ /**
54
+ * Defined in:
55
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/halo/signed.proto}
56
+ */
30
57
  export interface Signature {
58
+ /**
59
+ * The publicKey of the keypair that made this signature.
60
+ */
31
61
  key: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
62
+ /**
63
+ * The bytes of the signature.
64
+ */
32
65
  signature: Uint8Array;
66
+ /**
67
+ * The certification chain of SignedMessages for this key.
68
+ *
69
+ * Options:
70
+ * - proto3_optional = true
71
+ */
33
72
  keyChain?: dxos_halo_keys.KeyChain;
34
73
  }
35
74
  }
@@ -11,6 +11,10 @@ import * as dxos_echo_timeframe from "./echo/timeframe";
11
11
  import * as dxos_halo_keys from "./halo/keys";
12
12
  import * as dxos_rpc from "./rpc";
13
13
  import * as google_protobuf from "../google/protobuf";
14
+ /**
15
+ * Defined in:
16
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
17
+ */
14
18
  export interface DevtoolsHost {
15
19
  events: (request: void) => Stream<Event>;
16
20
  getConfig: (request: void) => Promise<GetConfigResponse>;
@@ -32,175 +36,407 @@ export interface DevtoolsHost {
32
36
  subscribeToSignalTrace: (request: void) => Stream<SubscribeToSignalTraceResponse>;
33
37
  subscribeToSwarmInfo: (request: SubscribeToSwarmInfoRequest) => Stream<SubscribeToSwarmInfoResponse>;
34
38
  }
39
+ /**
40
+ * Defined in:
41
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
42
+ */
35
43
  export interface Event {
36
44
  ready?: ReadyEvent;
37
45
  }
46
+ /**
47
+ * Defined in:
48
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
49
+ */
38
50
  export interface ReadyEvent {
39
51
  }
52
+ /**
53
+ * Defined in:
54
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
55
+ */
40
56
  export interface GetConfigResponse {
41
- config?: string;
57
+ config: string;
42
58
  }
59
+ /**
60
+ * Defined in:
61
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
62
+ */
43
63
  export interface EnableDebugLoggingRequest {
64
+ /**
65
+ * Options:
66
+ * - proto3_optional = true
67
+ */
44
68
  namespaces?: string;
45
69
  }
70
+ /**
71
+ * Defined in:
72
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
73
+ */
46
74
  export interface EnableDebugLoggingResponse {
75
+ /**
76
+ * Options:
77
+ * - proto3_optional = true
78
+ */
47
79
  enabledNamespaces?: string;
48
80
  }
81
+ /**
82
+ * Defined in:
83
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
84
+ */
49
85
  export interface DisableDebugLoggingRequest {
86
+ /**
87
+ * Options:
88
+ * - proto3_optional = true
89
+ */
50
90
  namespaces?: string;
51
91
  }
92
+ /**
93
+ * Defined in:
94
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
95
+ */
52
96
  export interface DisableDebugLoggingResponse {
97
+ /**
98
+ * Options:
99
+ * - proto3_optional = true
100
+ */
53
101
  enabledNamespaces?: string;
54
102
  }
103
+ /**
104
+ * Defined in:
105
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
106
+ */
55
107
  export interface SubscribeToKeyringKeysRequest {
56
108
  }
109
+ /**
110
+ * Defined in:
111
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
112
+ */
57
113
  export interface SubscribeToKeyringKeysResponse {
58
114
  keys?: dxos_halo_keys.KeyRecord[];
59
115
  }
116
+ /**
117
+ * Defined in:
118
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
119
+ */
60
120
  export interface SubscribeToCredentialMessagesRequest {
121
+ /**
122
+ * Options:
123
+ * - proto3_optional = true
124
+ */
61
125
  partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
62
126
  }
127
+ /**
128
+ * Defined in:
129
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
130
+ */
63
131
  export interface SubscribeToCredentialMessagesResponse {
64
132
  messages?: dxos_credentials.SignedMessage[];
65
133
  }
134
+ /**
135
+ * Defined in:
136
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
137
+ */
66
138
  export interface ResetStorageRequest {
67
139
  }
140
+ /**
141
+ * Defined in:
142
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
143
+ */
68
144
  export interface GetNetworkPeersRequest {
69
- topic?: Uint8Array;
145
+ topic: Uint8Array;
70
146
  }
147
+ /**
148
+ * Defined in:
149
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
150
+ */
71
151
  export interface GetNetworkPeersResponse {
72
152
  peers?: GetNetworkPeersResponse.PeerInfo[];
73
153
  }
74
154
  export namespace GetNetworkPeersResponse {
155
+ /**
156
+ * Defined in:
157
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
158
+ */
75
159
  export interface PeerInfo {
76
- id?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
77
- state?: string;
160
+ id: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
161
+ state: string;
78
162
  connections?: Uint8Array[];
79
163
  }
80
164
  }
165
+ /**
166
+ * Defined in:
167
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
168
+ */
81
169
  export interface SubscribeToPartiesRequest {
82
170
  partyKeys?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>[];
83
171
  }
172
+ /**
173
+ * Defined in:
174
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
175
+ */
84
176
  export interface SubscribeToPartiesResponse {
85
177
  parties?: SubscribeToPartiesResponse.PartyInfo[];
86
178
  }
87
179
  export namespace SubscribeToPartiesResponse {
180
+ /**
181
+ * Defined in:
182
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
183
+ */
88
184
  export interface PartyInfo {
89
- key?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
90
- isOpen?: boolean;
91
- isActive?: boolean;
92
- timeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
185
+ key: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
186
+ isOpen: boolean;
187
+ isActive: boolean;
188
+ timeframe: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
93
189
  feeds?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>[];
94
190
  properties?: Partial<Record<string, string>>;
95
191
  }
96
192
  }
193
+ /**
194
+ * Defined in:
195
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
196
+ */
97
197
  export interface SubscribeToItemsRequest {
98
198
  }
199
+ /**
200
+ * Defined in:
201
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
202
+ */
99
203
  export interface SubscribeToItemsResponse {
100
- data?: string;
204
+ data: string;
101
205
  }
206
+ /**
207
+ * Defined in:
208
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
209
+ */
102
210
  export interface SubscribeToFeedsRequest {
103
- partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
211
+ partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
104
212
  feedKeys?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>[];
105
213
  }
214
+ /**
215
+ * Defined in:
216
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
217
+ */
106
218
  export interface SubscribeToFeedsResponse {
107
219
  feeds?: SubscribeToFeedsResponse.Feed[];
108
220
  }
109
221
  export namespace SubscribeToFeedsResponse {
222
+ /**
223
+ * Defined in:
224
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
225
+ */
110
226
  export interface Feed {
111
- feedKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
112
- length?: number;
227
+ feedKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
228
+ length: number;
113
229
  }
114
230
  }
231
+ /**
232
+ * Defined in:
233
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
234
+ */
115
235
  export interface SubscribeToFeedBlocksRequest {
236
+ /**
237
+ * Options:
238
+ * - proto3_optional = true
239
+ */
116
240
  partyKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
241
+ /**
242
+ * Options:
243
+ * - proto3_optional = true
244
+ */
117
245
  feedKey?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
246
+ /**
247
+ * Options:
248
+ * - proto3_optional = true
249
+ */
118
250
  maxBlocks?: number;
119
251
  }
252
+ /**
253
+ * Defined in:
254
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
255
+ */
120
256
  export interface SubscribeToFeedBlocksResponse {
121
257
  blocks?: SubscribeToFeedBlocksResponse.Block[];
122
258
  }
123
259
  export namespace SubscribeToFeedBlocksResponse {
260
+ /**
261
+ * Defined in:
262
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
263
+ */
124
264
  export interface Block {
125
- key?: Uint8Array;
126
- seq?: number;
127
- sync?: boolean;
128
- path?: string;
129
- data?: dxos_echo_feed.FeedMessage;
265
+ key: Uint8Array;
266
+ seq: number;
267
+ sync: boolean;
268
+ path: string;
269
+ data: dxos_echo_feed.FeedMessage;
130
270
  }
131
271
  }
272
+ /**
273
+ * Defined in:
274
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
275
+ */
132
276
  export interface GetPartySnapshotRequest {
133
277
  partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
134
278
  }
279
+ /**
280
+ * Defined in:
281
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
282
+ */
135
283
  export interface GetPartySnapshotResponse {
284
+ /**
285
+ * Options:
286
+ * - proto3_optional = true
287
+ */
136
288
  snapshot?: dxos_echo_snapshot.PartySnapshot;
137
289
  }
290
+ /**
291
+ * Defined in:
292
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
293
+ */
138
294
  export interface SavePartySnapshotRequest {
139
295
  partyKey: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
140
296
  }
297
+ /**
298
+ * Defined in:
299
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
300
+ */
141
301
  export interface SavePartySnapshotResponse {
302
+ /**
303
+ * Options:
304
+ * - proto3_optional = true
305
+ */
142
306
  snapshot?: dxos_echo_snapshot.PartySnapshot;
143
307
  }
308
+ /**
309
+ * Defined in:
310
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
311
+ */
144
312
  export interface ClearSnapshotsRequest {
145
313
  }
314
+ /**
315
+ * Defined in:
316
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
317
+ */
146
318
  export interface SubscribeToNetworkTopicsResponse {
147
319
  topics?: SubscribeToNetworkTopicsResponse.Topic[];
148
320
  }
149
321
  export namespace SubscribeToNetworkTopicsResponse {
322
+ /**
323
+ * Defined in:
324
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
325
+ */
150
326
  export interface Topic {
151
- topic?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
327
+ topic: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
328
+ /**
329
+ * Options:
330
+ * - proto3_optional = true
331
+ */
152
332
  label?: string;
153
333
  }
154
334
  }
335
+ /**
336
+ * Defined in:
337
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
338
+ */
155
339
  export interface SubscribeToSignalStatusResponse {
156
340
  servers?: SubscribeToSignalStatusResponse.SignalServer[];
157
341
  }
158
342
  export namespace SubscribeToSignalStatusResponse {
343
+ /**
344
+ * Defined in:
345
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
346
+ */
159
347
  export interface SignalServer {
160
- host?: string;
161
- state?: string;
348
+ host: string;
349
+ state: string;
350
+ /**
351
+ * Options:
352
+ * - proto3_optional = true
353
+ */
162
354
  error?: string;
163
- reconnectIn?: number;
164
- connectionStarted?: number;
165
- lastStateChange?: number;
355
+ reconnectIn: number;
356
+ connectionStarted: number;
357
+ lastStateChange: number;
166
358
  }
167
359
  }
360
+ /**
361
+ * Defined in:
362
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
363
+ */
168
364
  export interface SubscribeToSignalTraceResponse {
169
365
  events?: string[];
170
366
  }
367
+ /**
368
+ * Defined in:
369
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
370
+ */
171
371
  export interface SubscribeToSwarmInfoRequest {
172
372
  }
373
+ /**
374
+ * Defined in:
375
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
376
+ */
173
377
  export interface SubscribeToSwarmInfoResponse {
174
378
  data?: SubscribeToSwarmInfoResponse.SwarmInfo[];
175
379
  }
176
380
  export namespace SubscribeToSwarmInfoResponse {
381
+ /**
382
+ * Defined in:
383
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
384
+ */
177
385
  export interface SwarmInfo {
178
- id?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
179
- topic?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
386
+ id: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
387
+ topic: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
388
+ /**
389
+ * Options:
390
+ * - proto3_optional = true
391
+ */
180
392
  label?: string;
181
- isActive?: boolean;
393
+ isActive: boolean;
182
394
  connections?: SubscribeToSwarmInfoResponse.SwarmInfo.ConnectionInfo[];
183
395
  }
184
396
  export namespace SwarmInfo {
397
+ /**
398
+ * Defined in:
399
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
400
+ */
185
401
  export interface ConnectionInfo {
186
- state?: string;
187
- sessionId?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
188
- remotePeerId?: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
402
+ state: string;
403
+ sessionId: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
404
+ remotePeerId: ReturnType<(typeof substitutions)["dxos.halo.keys.PubKey"]["decode"]>;
405
+ /**
406
+ * Options:
407
+ * - proto3_optional = true
408
+ */
189
409
  transport?: string;
190
410
  protocolExtensions?: string[];
191
411
  events?: ReturnType<(typeof substitutions)["dxos.devtools.SubscribeToSwarmInfoResponse.SwarmInfo.ConnectionInfo.Json"]["decode"]>[];
192
412
  }
193
413
  export namespace ConnectionInfo {
414
+ /**
415
+ * Defined in:
416
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
417
+ */
194
418
  export interface Json {
419
+ /**
420
+ * Options:
421
+ * - proto3_optional = true
422
+ */
195
423
  data?: string;
196
424
  }
197
425
  }
198
426
  }
199
427
  }
428
+ /**
429
+ * Defined in:
430
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
431
+ */
200
432
  export interface TracingService {
201
433
  setTracingOptions: (request: SetTracingOptionsRequest) => Promise<void>;
202
434
  subscribeToRpcTrace: (request: void) => Stream<dxos_rpc.RpcMessage>;
203
435
  }
436
+ /**
437
+ * Defined in:
438
+ * {@link file://./../../../../../../common/protocols/src/proto/dxos/devtools.proto}
439
+ */
204
440
  export interface SetTracingOptionsRequest {
205
- enable?: boolean;
441
+ enable: boolean;
206
442
  }
@@ -14,49 +14,108 @@ import * as google_protobuf from "../../google/protobuf";
14
14
  /**
15
15
  * Outer message type decoded by Codec.
16
16
  * This is what is written to the feeds.
17
+ *
18
+ * Defined in:
19
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/feed.proto}
17
20
  */
18
21
  export interface FeedMessage {
19
- timeframe?: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
22
+ timeframe: ReturnType<(typeof substitutions)["dxos.echo.timeframe.TimeframeVector"]["decode"]>;
20
23
  halo?: ReturnType<(typeof substitutions)["dxos.echo.feed.CredentialsMessage"]["decode"]>;
21
24
  echo?: EchoEnvelope;
22
25
  }
23
26
  /**
24
27
  * A container for dxos.credentials.Message
28
+ *
29
+ * Defined in:
30
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/feed.proto}
25
31
  */
26
32
  export interface CredentialsMessage {
27
- data?: Uint8Array;
33
+ data: Uint8Array;
28
34
  }
29
35
  /**
30
36
  * Wrapper for all ECHO messages.
37
+ *
38
+ * Defined in:
39
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/feed.proto}
31
40
  */
32
41
  export interface EchoEnvelope {
33
- itemId?: string;
42
+ itemId: string;
43
+ /**
44
+ * Options:
45
+ * - proto3_optional = true
46
+ */
34
47
  genesis?: ItemGenesis;
48
+ /**
49
+ * Options:
50
+ * - proto3_optional = true
51
+ */
35
52
  itemMutation?: ItemMutation;
53
+ /**
54
+ * Options:
55
+ * - proto3_optional = true
56
+ */
36
57
  mutation?: Uint8Array;
37
58
  /**
38
59
  * Set the model to the provided snapshot.
60
+ *
61
+ * Options:
62
+ * - proto3_optional = true
39
63
  */
40
64
  snapshot?: dxos_echo_snapshot.ModelSnapshot;
41
65
  }
66
+ /**
67
+ * Defined in:
68
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/feed.proto}
69
+ */
42
70
  export interface LinkData {
43
- source?: string;
44
- target?: string;
71
+ source: string;
72
+ target: string;
45
73
  }
74
+ /**
75
+ * Defined in:
76
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/feed.proto}
77
+ */
46
78
  export interface ItemGenesis {
79
+ /**
80
+ * Options:
81
+ * - proto3_optional = true
82
+ */
47
83
  itemType?: string;
48
- modelType?: string;
84
+ modelType: string;
85
+ /**
86
+ * Options:
87
+ * - proto3_optional = true
88
+ */
49
89
  modelVersion?: string;
90
+ /**
91
+ * Options:
92
+ * - proto3_optional = true
93
+ */
50
94
  link?: LinkData;
51
95
  }
52
96
  /**
53
97
  * Item mutation.
98
+ *
99
+ * Defined in:
100
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/feed.proto}
54
101
  */
55
102
  export interface ItemMutation {
103
+ /**
104
+ * Options:
105
+ * - proto3_optional = true
106
+ */
56
107
  parentId?: string;
108
+ /**
109
+ * Options:
110
+ * - proto3_optional = true
111
+ */
57
112
  action?: ItemMutation.Action;
58
113
  }
59
114
  export namespace ItemMutation {
115
+ /**
116
+ * Defined in:
117
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/feed.proto}
118
+ */
60
119
  export enum Action {
61
120
  NOOP = 0,
62
121
  DELETE = 1,
@@ -11,20 +11,36 @@ import * as dxos_echo_timeframe from "./timeframe";
11
11
  import * as dxos_halo_keys from "../halo/keys";
12
12
  import * as dxos_rpc from "../rpc";
13
13
  import * as google_protobuf from "../../google/protobuf";
14
+ /**
15
+ * Defined in:
16
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/invitation.proto}
17
+ */
14
18
  export interface InvitationDescriptor {
15
- type?: InvitationDescriptor.Type;
16
- swarmKey?: Uint8Array;
17
- invitation?: Uint8Array;
19
+ type: InvitationDescriptor.Type;
20
+ swarmKey: Uint8Array;
21
+ invitation: Uint8Array;
18
22
  /**
19
23
  * Only present if type == OFFLINE.
24
+ *
25
+ * Options:
26
+ * - proto3_optional = true
20
27
  */
21
28
  identityKey?: Uint8Array;
22
29
  /**
23
30
  * Must be stripped out when passing to another peer.
31
+ *
32
+ * Options:
33
+ * - proto3_optional = true
24
34
  */
25
35
  secret?: Uint8Array;
26
36
  }
27
37
  export namespace InvitationDescriptor {
38
+ /**
39
+ * Defines an invitation type.
40
+ *
41
+ * Defined in:
42
+ * {@link file://./../../../../../../../common/protocols/src/proto/dxos/echo/invitation.proto}
43
+ */
28
44
  export enum Type {
29
45
  INTERACTIVE = 1,
30
46
  OFFLINE = 2