@dxos/protocols 0.6.3-main.9e4e207 → 0.6.3-main.a95c491

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 (70) hide show
  1. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +187 -184
  2. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  3. package/dist/cjs/src/proto/gen/dxos/client/services.js +70 -67
  4. package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
  5. package/dist/cjs/src/proto/gen/dxos/echo/metadata.d.ts +3 -3
  6. package/dist/cjs/src/proto/gen/dxos/echo/object.d.ts +2 -2
  7. package/dist/cjs/src/proto/gen/dxos/halo/invitations.d.ts +4 -4
  8. package/dist/cjs/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
  9. package/dist/cjs/src/proto/gen/dxos/halo/invitations.js +5 -5
  10. package/dist/cjs/src/proto/gen/dxos/halo/invitations.js.map +1 -1
  11. package/dist/cjs/src/proto/gen/dxos/halo/keys.d.ts +0 -10
  12. package/dist/cjs/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
  13. package/dist/cjs/src/proto/gen/dxos/halo/signed.d.ts +5 -4
  14. package/dist/cjs/src/proto/gen/dxos/halo/signed.d.ts.map +1 -1
  15. package/dist/cjs/src/proto/gen/dxos/mesh/teleport/gossip.d.ts +1 -1
  16. package/dist/cjs/src/proto/gen/google/protobuf.d.ts +5 -0
  17. package/dist/cjs/src/proto/gen/google/protobuf.d.ts.map +1 -1
  18. package/dist/cjs/src/proto/gen/google/protobuf.js.map +1 -1
  19. package/dist/cjs/src/proto/gen/index.d.ts +3 -4
  20. package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
  21. package/dist/cjs/src/proto/gen/index.js +1 -1
  22. package/dist/cjs/src/proto/gen/index.js.map +1 -1
  23. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  24. package/dist/esm/src/proto/gen/dxos/client/services.d.ts +187 -184
  25. package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  26. package/dist/esm/src/proto/gen/dxos/client/services.js +69 -66
  27. package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
  28. package/dist/esm/src/proto/gen/dxos/echo/metadata.d.ts +3 -3
  29. package/dist/esm/src/proto/gen/dxos/echo/object.d.ts +2 -2
  30. package/dist/esm/src/proto/gen/dxos/halo/invitations.d.ts +4 -4
  31. package/dist/esm/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
  32. package/dist/esm/src/proto/gen/dxos/halo/invitations.js +4 -4
  33. package/dist/esm/src/proto/gen/dxos/halo/invitations.js.map +1 -1
  34. package/dist/esm/src/proto/gen/dxos/halo/keys.d.ts +0 -10
  35. package/dist/esm/src/proto/gen/dxos/halo/keys.d.ts.map +1 -1
  36. package/dist/esm/src/proto/gen/dxos/halo/signed.d.ts +5 -4
  37. package/dist/esm/src/proto/gen/dxos/halo/signed.d.ts.map +1 -1
  38. package/dist/esm/src/proto/gen/dxos/mesh/teleport/gossip.d.ts +1 -1
  39. package/dist/esm/src/proto/gen/google/protobuf.d.ts +5 -0
  40. package/dist/esm/src/proto/gen/google/protobuf.d.ts.map +1 -1
  41. package/dist/esm/src/proto/gen/google/protobuf.js.map +1 -1
  42. package/dist/esm/src/proto/gen/index.d.ts +3 -4
  43. package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
  44. package/dist/esm/src/proto/gen/index.js +1 -1
  45. package/dist/esm/src/proto/gen/index.js.map +1 -1
  46. package/package.json +16 -7
  47. package/src/proto/dxos/agent/dashboard.proto +3 -2
  48. package/src/proto/dxos/bot.proto +2 -1
  49. package/src/proto/dxos/client/invitation.proto +171 -0
  50. package/src/proto/dxos/client/logging.proto +3 -0
  51. package/src/proto/dxos/client/services.proto +10 -144
  52. package/src/proto/dxos/config.proto +10 -10
  53. package/src/proto/dxos/echo/metadata.proto +10 -14
  54. package/src/proto/dxos/echo/object.proto +4 -2
  55. package/src/proto/dxos/field_options.proto +11 -0
  56. package/src/proto/dxos/halo/credentials.proto +2 -0
  57. package/src/proto/dxos/halo/invitations.proto +3 -3
  58. package/src/proto/dxos/halo/keys.proto +0 -12
  59. package/src/proto/dxos/halo/signed.proto +10 -6
  60. package/src/proto/dxos/mesh/presence.proto +3 -1
  61. package/src/proto/dxos/mesh/teleport/gossip.proto +3 -1
  62. package/src/proto/gen/dxos/client/services.ts +187 -184
  63. package/src/proto/gen/dxos/echo/metadata.ts +3 -3
  64. package/src/proto/gen/dxos/echo/object.ts +2 -2
  65. package/src/proto/gen/dxos/halo/invitations.ts +4 -4
  66. package/src/proto/gen/dxos/halo/keys.ts +0 -9
  67. package/src/proto/gen/dxos/halo/signed.ts +5 -3
  68. package/src/proto/gen/dxos/mesh/teleport/gossip.ts +1 -1
  69. package/src/proto/gen/google/protobuf.ts +5 -0
  70. package/src/proto/gen/index.ts +4 -5
@@ -7,14 +7,14 @@ syntax = "proto3";
7
7
  import "google/protobuf/empty.proto";
8
8
  import "google/protobuf/timestamp.proto";
9
9
 
10
- import "dxos/client/services.proto";
10
+ import "dxos/client/invitation.proto";
11
11
  import "dxos/echo/timeframe.proto";
12
12
  import "dxos/halo/credentials.proto";
13
13
  import "dxos/keys.proto";
14
14
 
15
15
  package dxos.halo.invitations;
16
16
 
17
- message Options {
17
+ message InvitationOptions {
18
18
  enum Role {
19
19
  GUEST = 0;
20
20
  HOST = 1;
@@ -127,7 +127,7 @@ message AdmissionResponse {
127
127
  // TODO(dmaretskyi): Rename to InvitationExtensionService.
128
128
  service InvitationHostService {
129
129
  /// Both peers must call this method before any other.
130
- rpc Options(Options) returns (google.protobuf.Empty);
130
+ rpc Options(InvitationOptions) returns (google.protobuf.Empty);
131
131
 
132
132
  /// Introduce guest to the host. Only on the host.
133
133
  rpc Introduce(IntroductionRequest) returns (IntroductionResponse);
@@ -5,7 +5,6 @@
5
5
  syntax = "proto3";
6
6
 
7
7
  import "dxos/keys.proto";
8
- import "dxos/halo/signed.proto";
9
8
 
10
9
  package dxos.halo.keys;
11
10
 
@@ -70,14 +69,3 @@ message KeyRecord {
70
69
  message KeyRecordList {
71
70
  repeated KeyRecord keys = 1;
72
71
  }
73
-
74
- //
75
- // A key which includes its parent keys and SignedMessages leading back to the root of its authority.
76
- // For example, if IdentityA signed for DeviceA, which signed for DeviceB, which signed for DeviceC the chain
77
- // would comprised: DeviceC->DeviceB->DeviceA->IdentityA moving from tip to root.
78
- //
79
- message KeyChain {
80
- dxos.keys.PublicKey public_key = 1;
81
- dxos.halo.signed.SignedMessage message = 2; // TODO(burdon): Circular dep.
82
- repeated KeyChain parents = 3;
83
- }
@@ -6,15 +6,19 @@ syntax = "proto3";
6
6
 
7
7
  import "google/protobuf/any.proto";
8
8
 
9
- import "dxos/halo/keys.proto";
10
9
  import "dxos/keys.proto";
11
10
 
12
11
  package dxos.halo.signed;
13
12
 
14
- // TODO(burdon): Rename (too generic).
15
- // TODO(burdon): Use default from codec-protobuf.
16
- message Message {
17
- google.protobuf.Any payload = 1;
13
+ //
14
+ // A key which includes its parent keys and SignedMessages leading back to the root of its authority.
15
+ // For example, if IdentityA signed for DeviceA, which signed for DeviceB, which signed for DeviceC the chain
16
+ // would comprised: DeviceC->DeviceB->DeviceA->IdentityA moving from tip to root.
17
+ //
18
+ message KeyChain {
19
+ dxos.keys.PublicKey public_key = 1;
20
+ SignedMessage message = 2;
21
+ repeated KeyChain parents = 3;
18
22
  }
19
23
 
20
24
  /**
@@ -41,7 +45,7 @@ message SignedMessage {
41
45
  /// The bytes of the signature.
42
46
  bytes signature = 2;
43
47
  /// The certification chain of SignedMessages for this key.
44
- optional keys.KeyChain key_chain = 3;
48
+ optional KeyChain key_chain = 3;
45
49
  }
46
50
 
47
51
  /// The signed message contents.
@@ -4,6 +4,8 @@
4
4
 
5
5
  syntax = "proto3";
6
6
 
7
+ import "dxos/keys.proto";
8
+
7
9
  package dxos.mesh.presence;
8
10
 
9
11
  // Even though those definitions don't use Any the schema can be added dynamically later.
@@ -12,7 +14,7 @@ import "google/protobuf/any.proto";
12
14
 
13
15
  message PeerState {
14
16
  /// Will be used to build network graph
15
- repeated dxos.keys.PublicKey connections = 1;
17
+ repeated dxos.keys.PublicKey connections = 1;
16
18
 
17
19
  // TODO(mykola): Remove once IdentityKey can be obtained from DeviceKey.
18
20
  dxos.keys.PublicKey identity_key = 2;
@@ -6,13 +6,15 @@ syntax = "proto3";
6
6
 
7
7
  import "google/protobuf/empty.proto";
8
8
  import "google/protobuf/any.proto";
9
+ import "google/protobuf/timestamp.proto";
10
+
9
11
  import "dxos/keys.proto";
10
12
 
11
13
  package dxos.mesh.teleport.gossip;
12
14
 
13
15
  message GossipMessage {
14
16
  dxos.keys.PublicKey peer_id = 1;
15
- /// Used to route differnt payload types to correct listeners.
17
+ /// Used to route different payload types to correct listeners.
16
18
  string channel_id = 2;
17
19
  /// Peer tracks what had been sent by message id.
18
20
  dxos.keys.PublicKey message_id = 3;
@@ -144,6 +144,7 @@ export interface QueryMetricsResponse {
144
144
  * {@link file://./../../../dxos/client/logging.proto}
145
145
  */
146
146
  export enum LogLevel {
147
+ NONE = 0,
147
148
  TRACE = 5,
148
149
  DEBUG = 10,
149
150
  INFO = 11,
@@ -168,6 +169,7 @@ export namespace QueryLogsRequest {
168
169
  * {@link file://./../../../dxos/client/logging.proto}
169
170
  */
170
171
  export enum MatchingOptions {
172
+ NONE = 0,
171
173
  INCLUSIVE = 1,
172
174
  EXPLICIT = 2
173
175
  }
@@ -237,6 +239,191 @@ export interface LoggingService {
237
239
  queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
238
240
  queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
239
241
  }
242
+ /**
243
+ * Defined in:
244
+ * {@link file://./../../../dxos/client/invitation.proto}
245
+ */
246
+ export interface AdmissionKeypair {
247
+ publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
248
+ /**
249
+ * Options:
250
+ * - proto3_optional = true
251
+ */
252
+ privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
253
+ }
254
+ /**
255
+ * Runtime state of the space object.
256
+ *
257
+ * Defined in:
258
+ * {@link file://./../../../dxos/client/invitation.proto}
259
+ */
260
+ export enum SpaceState {
261
+ INVALID = 0,
262
+ SPACE_INACTIVE = 2,
263
+ SPACE_ACTIVE = 6,
264
+ SPACE_CLOSED = 1,
265
+ SPACE_CONTROL_ONLY = 7,
266
+ SPACE_INITIALIZING = 4,
267
+ SPACE_READY = 3,
268
+ SPACE_ERROR = 5,
269
+ SPACE_REQUIRES_MIGRATION = 8
270
+ }
271
+ /**
272
+ * Represents the invitation state passed between client and service.
273
+ *
274
+ * Defined in:
275
+ * {@link file://./../../../dxos/client/invitation.proto}
276
+ */
277
+ export interface Invitation {
278
+ /**
279
+ * Local identifier (random).
280
+ */
281
+ invitationId: string;
282
+ /**
283
+ * Determines the behavior of the invitation.
284
+ */
285
+ type: Invitation.Type;
286
+ /**
287
+ * Kind of access the invitation will grant.
288
+ */
289
+ kind: Invitation.Kind;
290
+ /**
291
+ * How the invitation is authenticated.
292
+ */
293
+ authMethod: Invitation.AuthMethod;
294
+ /**
295
+ * Swarm rendezvous (random).
296
+ */
297
+ swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
298
+ /**
299
+ * Local state.
300
+ */
301
+ state: Invitation.State;
302
+ /**
303
+ * Timeout for guest to complete invitation once connected (ms).
304
+ *
305
+ * Options:
306
+ * - proto3_optional = true
307
+ */
308
+ timeout?: number;
309
+ /**
310
+ * Guest's identity.
311
+ *
312
+ * Options:
313
+ * - proto3_optional = true
314
+ */
315
+ identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
316
+ /**
317
+ * Space to join (only present if kind is SPACE).
318
+ *
319
+ * Options:
320
+ * - proto3_optional = true
321
+ */
322
+ spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
323
+ /**
324
+ * Authentication code created by host (only present if auth_method is SHARED_SECRET).
325
+ *
326
+ * Options:
327
+ * - proto3_optional = true
328
+ */
329
+ authCode?: string;
330
+ /**
331
+ * Path or identifier to navigate to after successful authentication.
332
+ *
333
+ * Options:
334
+ * - proto3_optional = true
335
+ */
336
+ target?: string;
337
+ /**
338
+ * Host should resume invitation on startup until timeout.
339
+ *
340
+ * Options:
341
+ * - proto3_optional = true
342
+ */
343
+ persistent?: boolean;
344
+ /**
345
+ * Options:
346
+ * - proto3_optional = true
347
+ */
348
+ created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
349
+ /**
350
+ * Options:
351
+ * - proto3_optional = true
352
+ */
353
+ lifetime?: number;
354
+ /**
355
+ * Whether an invitation can be used multiple times.
356
+ *
357
+ * Options:
358
+ * - proto3_optional = true
359
+ */
360
+ multiUse?: boolean;
361
+ /**
362
+ * Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
363
+ *
364
+ * Options:
365
+ * - proto3_optional = true
366
+ */
367
+ guestKeypair?: AdmissionKeypair;
368
+ /**
369
+ * Present on Type.DELEGATED invitations.
370
+ *
371
+ * Options:
372
+ * - proto3_optional = true
373
+ */
374
+ delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
375
+ /**
376
+ * Role of the admitted member, defaults to ADMIN.
377
+ *
378
+ * Options:
379
+ * - proto3_optional = true
380
+ */
381
+ role?: dxos_halo_credentials.SpaceMember.Role;
382
+ }
383
+ export namespace Invitation {
384
+ /**
385
+ * Defined in:
386
+ * {@link file://./../../../dxos/client/invitation.proto}
387
+ */
388
+ export enum Type {
389
+ INTERACTIVE = 0,
390
+ DELEGATED = 1,
391
+ MULTIUSE = 2
392
+ }
393
+ /**
394
+ * Defined in:
395
+ * {@link file://./../../../dxos/client/invitation.proto}
396
+ */
397
+ export enum Kind {
398
+ DEVICE = 0,
399
+ SPACE = 1
400
+ }
401
+ /**
402
+ * Defined in:
403
+ * {@link file://./../../../dxos/client/invitation.proto}
404
+ */
405
+ export enum AuthMethod {
406
+ NONE = 0,
407
+ SHARED_SECRET = 1,
408
+ KNOWN_PUBLIC_KEY = 2
409
+ }
410
+ /**
411
+ * Defined in:
412
+ * {@link file://./../../../dxos/client/invitation.proto}
413
+ */
414
+ export enum State {
415
+ INIT = 0,
416
+ CONNECTING = 1,
417
+ CONNECTED = 2,
418
+ READY_FOR_AUTHENTICATION = 3,
419
+ AUTHENTICATING = 4,
420
+ SUCCESS = 5,
421
+ CANCELLED = 6,
422
+ TIMEOUT = 7,
423
+ ERROR = 8,
424
+ EXPIRED = 9
425
+ }
426
+ }
240
427
  /**
241
428
  * Defined in:
242
429
  * {@link file://./../../../dxos/client/services.proto}
@@ -560,22 +747,6 @@ export namespace SpaceMember {
560
747
  ONLINE = 1
561
748
  }
562
749
  }
563
- /**
564
- * Runtime state of the space object.
565
- *
566
- * Defined in:
567
- * {@link file://./../../../dxos/client/services.proto}
568
- */
569
- export enum SpaceState {
570
- INACTIVE = 2,
571
- ACTIVE = 6,
572
- CLOSED = 1,
573
- CONTROL_ONLY = 7,
574
- INITIALIZING = 4,
575
- READY = 3,
576
- ERROR = 5,
577
- REQUIRES_MIGRATION = 8
578
- }
579
750
  /**
580
751
  * Defined in:
581
752
  * {@link file://./../../../dxos/client/services.proto}
@@ -929,174 +1100,6 @@ export interface SpacesService {
929
1100
  queryCredentials: (request: QueryCredentialsRequest, options?: RequestOptions) => Stream<dxos_halo_credentials.Credential>;
930
1101
  createEpoch: (request: CreateEpochRequest, options?: RequestOptions) => Promise<CreateEpochResponse>;
931
1102
  }
932
- /**
933
- * Represents the invitation state passed between client and service.
934
- *
935
- * Defined in:
936
- * {@link file://./../../../dxos/client/services.proto}
937
- */
938
- export interface Invitation {
939
- /**
940
- * Local identifier (random).
941
- */
942
- invitationId: string;
943
- /**
944
- * Determines the behavior of the invitation.
945
- */
946
- type: Invitation.Type;
947
- /**
948
- * Kind of access the invitation will grant.
949
- */
950
- kind: Invitation.Kind;
951
- /**
952
- * How the invitation is authenticated.
953
- */
954
- authMethod: Invitation.AuthMethod;
955
- /**
956
- * Swarm rendezvous (random).
957
- */
958
- swarmKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
959
- /**
960
- * Local state.
961
- */
962
- state: Invitation.State;
963
- /**
964
- * Timeout for guest to complete invitation once connected (ms).
965
- *
966
- * Options:
967
- * - proto3_optional = true
968
- */
969
- timeout?: number;
970
- /**
971
- * Guest's identity.
972
- *
973
- * Options:
974
- * - proto3_optional = true
975
- */
976
- identityKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
977
- /**
978
- * Space to join (only present if kind is SPACE).
979
- *
980
- * Options:
981
- * - proto3_optional = true
982
- */
983
- spaceKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
984
- /**
985
- * Authentication code created by host (only present if auth_method is SHARED_SECRET).
986
- *
987
- * Options:
988
- * - proto3_optional = true
989
- */
990
- authCode?: string;
991
- /**
992
- * Path or identifier to navigate to after successful authentication.
993
- *
994
- * Options:
995
- * - proto3_optional = true
996
- */
997
- target?: string;
998
- /**
999
- * Host should resume invitation on startup until timeout.
1000
- *
1001
- * Options:
1002
- * - proto3_optional = true
1003
- */
1004
- persistent?: boolean;
1005
- /**
1006
- * Options:
1007
- * - proto3_optional = true
1008
- */
1009
- created?: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1010
- /**
1011
- * Options:
1012
- * - proto3_optional = true
1013
- */
1014
- lifetime?: number;
1015
- /**
1016
- * Whether an invitation can be used multiple times.
1017
- *
1018
- * Options:
1019
- * - proto3_optional = true
1020
- */
1021
- multiUse?: boolean;
1022
- /**
1023
- * Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
1024
- *
1025
- * Options:
1026
- * - proto3_optional = true
1027
- */
1028
- guestKeypair?: AdmissionKeypair;
1029
- /**
1030
- * Present on Type.DELEGATED invitations.
1031
- *
1032
- * Options:
1033
- * - proto3_optional = true
1034
- */
1035
- delegationCredentialId?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1036
- /**
1037
- * Role of the admitted member, defaults to ADMIN.
1038
- *
1039
- * Options:
1040
- * - proto3_optional = true
1041
- */
1042
- role?: dxos_halo_credentials.SpaceMember.Role;
1043
- }
1044
- export namespace Invitation {
1045
- /**
1046
- * Defined in:
1047
- * {@link file://./../../../dxos/client/services.proto}
1048
- */
1049
- export enum Type {
1050
- INTERACTIVE = 0,
1051
- DELEGATED = 1,
1052
- MULTIUSE = 2
1053
- }
1054
- /**
1055
- * Defined in:
1056
- * {@link file://./../../../dxos/client/services.proto}
1057
- */
1058
- export enum Kind {
1059
- DEVICE = 0,
1060
- SPACE = 1
1061
- }
1062
- /**
1063
- * Defined in:
1064
- * {@link file://./../../../dxos/client/services.proto}
1065
- */
1066
- export enum AuthMethod {
1067
- NONE = 0,
1068
- SHARED_SECRET = 1,
1069
- KNOWN_PUBLIC_KEY = 2
1070
- }
1071
- /**
1072
- * Defined in:
1073
- * {@link file://./../../../dxos/client/services.proto}
1074
- */
1075
- export enum State {
1076
- INIT = 0,
1077
- CONNECTING = 1,
1078
- CONNECTED = 2,
1079
- READY_FOR_AUTHENTICATION = 3,
1080
- AUTHENTICATING = 4,
1081
- SUCCESS = 5,
1082
- CANCELLED = 6,
1083
- TIMEOUT = 7,
1084
- ERROR = 8,
1085
- EXPIRED = 9
1086
- }
1087
- }
1088
- /**
1089
- * Defined in:
1090
- * {@link file://./../../../dxos/client/services.proto}
1091
- */
1092
- export interface AdmissionKeypair {
1093
- publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
1094
- /**
1095
- * Options:
1096
- * - proto3_optional = true
1097
- */
1098
- privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
1099
- }
1100
1103
  /**
1101
1104
  * Defined in:
1102
1105
  * {@link file://./../../../dxos/client/services.proto}
@@ -70,7 +70,7 @@ import * as google_protobuf from "../../google/protobuf";
70
70
  */
71
71
  export interface EchoMetadata {
72
72
  /**
73
- * Version number that is inceremnted every time there's a breaking change to the storage schema.
73
+ * Version number that is incremented every time there's a breaking change to the storage schema.
74
74
  * This is used to detect if the storage schema has changed since the last time the client was run.
75
75
  * Loading data from a different version will might result in an error.
76
76
  */
@@ -144,7 +144,7 @@ export interface SpaceMetadata {
144
144
  */
145
145
  genesisFeedKey?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
146
146
  /**
147
- * Key of the wriatable control feed.
147
+ * Key of the writable control feed.
148
148
  *
149
149
  * Options:
150
150
  * - proto3_optional = true
@@ -155,7 +155,7 @@ export interface SpaceMetadata {
155
155
  */
156
156
  feedKeys?: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>[];
157
157
  /**
158
- * Key of the wriatable data feed.
158
+ * Key of the writable data feed.
159
159
  *
160
160
  * Options:
161
161
  * - proto3_optional = true
@@ -126,7 +126,7 @@ export namespace EchoObject {
126
126
  * Set the model to the provided snapshot.
127
127
  *
128
128
  * Options:
129
- * - preserve_any = true
129
+ * - (preserve_any) = true
130
130
  * - proto3_optional = true
131
131
  */
132
132
  model?: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
@@ -155,7 +155,7 @@ export namespace EchoObject {
155
155
  action?: EchoObject.Mutation.Action;
156
156
  /**
157
157
  * Options:
158
- * - preserve_any = true
158
+ * - (preserve_any) = true
159
159
  * - proto3_optional = true
160
160
  */
161
161
  model?: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
@@ -66,13 +66,13 @@ import * as google_protobuf from "../../google/protobuf";
66
66
  * Defined in:
67
67
  * {@link file://./../../../dxos/halo/invitations.proto}
68
68
  */
69
- export interface Options {
69
+ export interface InvitationOptions {
70
70
  /**
71
71
  * Role of the peer.
72
72
  */
73
- role: Options.Role;
73
+ role: InvitationOptions.Role;
74
74
  }
75
- export namespace Options {
75
+ export namespace InvitationOptions {
76
76
  /**
77
77
  * Defined in:
78
78
  * {@link file://./../../../dxos/halo/invitations.proto}
@@ -281,7 +281,7 @@ export interface InvitationHostService {
281
281
  /**
282
282
  * Both peers must call this method before any other.
283
283
  */
284
- options: (request: Options, options?: RequestOptions) => Promise<void>;
284
+ options: (request: InvitationOptions, options?: RequestOptions) => Promise<void>;
285
285
  /**
286
286
  * Introduce guest to the host. Only on the host.
287
287
  */
@@ -138,12 +138,3 @@ export interface KeyRecord {
138
138
  export interface KeyRecordList {
139
139
  keys?: KeyRecord[];
140
140
  }
141
- /**
142
- * Defined in:
143
- * {@link file://./../../../dxos/halo/keys.proto}
144
- */
145
- export interface KeyChain {
146
- publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
147
- message: dxos_halo_signed.SignedMessage;
148
- parents?: KeyChain[];
149
- }
@@ -66,8 +66,10 @@ import * as google_protobuf from "../../google/protobuf";
66
66
  * Defined in:
67
67
  * {@link file://./../../../dxos/halo/signed.proto}
68
68
  */
69
- export interface Message {
70
- payload: ReturnType<(typeof substitutions)["google.protobuf.Any"]["decode"]>;
69
+ export interface KeyChain {
70
+ publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
71
+ message: SignedMessage;
72
+ parents?: KeyChain[];
71
73
  }
72
74
  /**
73
75
  * A generic container message used whenever messages are signed (e.g. SpaceCredential)
@@ -120,6 +122,6 @@ export namespace SignedMessage {
120
122
  * Options:
121
123
  * - proto3_optional = true
122
124
  */
123
- keyChain?: dxos_halo_keys.KeyChain;
125
+ keyChain?: KeyChain;
124
126
  }
125
127
  }
@@ -69,7 +69,7 @@ import * as google_protobuf from "../../../google/protobuf";
69
69
  export interface GossipMessage {
70
70
  peerId: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
71
71
  /**
72
- * Used to route differnt payload types to correct listeners.
72
+ * Used to route different payload types to correct listeners.
73
73
  */
74
74
  channelId: string;
75
75
  /**
@@ -262,6 +262,11 @@ export interface FieldOptions {
262
262
  * - proto3_optional = true
263
263
  */
264
264
  ".dxos.config.envVar"?: string;
265
+ /**
266
+ * Options:
267
+ * - proto3_optional = true
268
+ */
269
+ ".preserveAny"?: boolean;
265
270
  }
266
271
  export namespace FieldOptions {
267
272
  export enum CType {