@dxos/protocols 0.4.10-main.0be5154 → 0.4.10-main.109a137

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/indexing.d.ts +4 -3
  2. package/dist/cjs/src/indexing.d.ts.map +1 -1
  3. package/dist/cjs/src/indexing.js.map +1 -1
  4. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +205 -179
  5. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  6. package/dist/cjs/src/proto/gen/dxos/client/services.js +27 -26
  7. package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
  8. package/dist/cjs/src/proto/gen/dxos/config.d.ts +5 -5
  9. package/dist/cjs/src/proto/gen/dxos/config.d.ts.map +1 -1
  10. package/dist/cjs/src/proto/gen/dxos/config.js.map +1 -1
  11. package/dist/cjs/src/proto/gen/dxos/echo/model/document.d.ts +0 -1
  12. package/dist/cjs/src/proto/gen/dxos/echo/model/document.d.ts.map +1 -1
  13. package/dist/cjs/src/proto/gen/dxos/echo/model/document.js.map +1 -1
  14. package/dist/cjs/src/proto/gen/dxos/echo/service.d.ts +9 -1
  15. package/dist/cjs/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
  16. package/dist/cjs/src/proto/gen/dxos/halo/invitations.d.ts +23 -2
  17. package/dist/cjs/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
  18. package/dist/cjs/src/proto/gen/dxos/halo/invitations.js +1 -0
  19. package/dist/cjs/src/proto/gen/dxos/halo/invitations.js.map +1 -1
  20. package/dist/cjs/src/proto/gen/dxos/iframe.d.ts +7 -5
  21. package/dist/cjs/src/proto/gen/dxos/iframe.d.ts.map +1 -1
  22. package/dist/cjs/src/proto/gen/dxos/iframe.js +7 -5
  23. package/dist/cjs/src/proto/gen/dxos/iframe.js.map +1 -1
  24. package/dist/cjs/src/proto/gen/index.d.ts +1 -0
  25. package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
  26. package/dist/cjs/src/proto/gen/index.js +1 -1
  27. package/dist/cjs/src/proto/gen/index.js.map +1 -1
  28. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  29. package/dist/esm/src/indexing.d.ts +4 -3
  30. package/dist/esm/src/indexing.d.ts.map +1 -1
  31. package/dist/esm/src/indexing.js.map +1 -1
  32. package/dist/esm/src/proto/gen/dxos/client/services.d.ts +205 -179
  33. package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  34. package/dist/esm/src/proto/gen/dxos/client/services.js +26 -25
  35. package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
  36. package/dist/esm/src/proto/gen/dxos/config.d.ts +5 -5
  37. package/dist/esm/src/proto/gen/dxos/config.d.ts.map +1 -1
  38. package/dist/esm/src/proto/gen/dxos/config.js.map +1 -1
  39. package/dist/esm/src/proto/gen/dxos/echo/model/document.d.ts +0 -1
  40. package/dist/esm/src/proto/gen/dxos/echo/model/document.d.ts.map +1 -1
  41. package/dist/esm/src/proto/gen/dxos/echo/model/document.js.map +1 -1
  42. package/dist/esm/src/proto/gen/dxos/echo/service.d.ts +9 -1
  43. package/dist/esm/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
  44. package/dist/esm/src/proto/gen/dxos/halo/invitations.d.ts +23 -2
  45. package/dist/esm/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
  46. package/dist/esm/src/proto/gen/dxos/halo/invitations.js +1 -0
  47. package/dist/esm/src/proto/gen/dxos/halo/invitations.js.map +1 -1
  48. package/dist/esm/src/proto/gen/dxos/iframe.d.ts +7 -5
  49. package/dist/esm/src/proto/gen/dxos/iframe.d.ts.map +1 -1
  50. package/dist/esm/src/proto/gen/dxos/iframe.js +7 -5
  51. package/dist/esm/src/proto/gen/dxos/iframe.js.map +1 -1
  52. package/dist/esm/src/proto/gen/index.d.ts +1 -0
  53. package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
  54. package/dist/esm/src/proto/gen/index.js +1 -1
  55. package/dist/esm/src/proto/gen/index.js.map +1 -1
  56. package/package.json +5 -5
  57. package/src/indexing.ts +5 -3
  58. package/src/proto/dxos/client/services.proto +22 -5
  59. package/src/proto/dxos/config.proto +8 -3
  60. package/src/proto/dxos/echo/model/document.proto +0 -3
  61. package/src/proto/dxos/echo/service.proto +5 -1
  62. package/src/proto/dxos/halo/invitations.proto +9 -1
  63. package/src/proto/dxos/iframe.proto +7 -5
  64. package/src/proto/gen/dxos/client/services.ts +205 -179
  65. package/src/proto/gen/dxos/config.ts +5 -5
  66. package/src/proto/gen/dxos/echo/model/document.ts +0 -1
  67. package/src/proto/gen/dxos/echo/service.ts +9 -1
  68. package/src/proto/gen/dxos/halo/invitations.ts +23 -2
  69. package/src/proto/gen/dxos/iframe.ts +7 -5
  70. package/src/proto/gen/index.ts +2 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AA8DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA4hB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,y+rGAAy+rG,CAAC,CAAC,CAAC;AAClisG,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAkB,UAAU,EAAE,aAAa,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AA8DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA6hB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,u+tGAAu+tG,CAAC,CAAC,CAAC;AAChiuG,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAkB,UAAU,EAAE,aAAa,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/protocols",
3
- "version": "0.4.10-main.0be5154",
3
+ "version": "0.4.10-main.109a137",
4
4
  "description": "Protobuf definitions for DXOS protocols.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -33,10 +33,10 @@
33
33
  "src"
34
34
  ],
35
35
  "dependencies": {
36
- "@dxos/codec-protobuf": "0.4.10-main.0be5154",
37
- "@dxos/keys": "0.4.10-main.0be5154",
38
- "@dxos/timeframe": "0.4.10-main.0be5154",
39
- "@dxos/invariant": "0.4.10-main.0be5154"
36
+ "@dxos/codec-protobuf": "0.4.10-main.109a137",
37
+ "@dxos/keys": "0.4.10-main.109a137",
38
+ "@dxos/invariant": "0.4.10-main.109a137",
39
+ "@dxos/timeframe": "0.4.10-main.109a137"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
package/src/indexing.ts CHANGED
@@ -2,14 +2,16 @@
2
2
  // Copyright 2024 DXOS.org
3
3
  //
4
4
 
5
- export type IdDecoded = {
5
+ export type ObjectPointerDecoded = {
6
6
  documentId: string;
7
7
  objectId: string;
8
8
  };
9
9
 
10
+ export type ObjectPointerEncoded = string;
11
+
10
12
  export const idCodec = {
11
- encode: ({ documentId, objectId }: IdDecoded) => `${documentId}|${objectId}`,
12
- decode: (id: string): IdDecoded => {
13
+ encode: ({ documentId, objectId }: ObjectPointerDecoded): ObjectPointerEncoded => `${documentId}|${objectId}`,
14
+ decode: (id: ObjectPointerEncoded): ObjectPointerDecoded => {
13
15
  const [documentId, objectId] = id.split('|');
14
16
  return { documentId, objectId };
15
17
  },
@@ -390,7 +390,8 @@ service SpacesService {
390
390
 
391
391
  service IndexService {
392
392
  rpc SetConfig(dxos.echo.indexing.IndexConfig) returns (google.protobuf.Empty);
393
- rpc Find(dxos.agent.query.QueryRequest) returns (dxos.agent.query.QueryResponse);
393
+ rpc Find(dxos.agent.query.QueryRequest) returns (stream dxos.agent.query.QueryResponse);
394
+
394
395
  }
395
396
 
396
397
  //
@@ -404,9 +405,12 @@ message Invitation {
404
405
  enum Type {
405
406
  /// Requires both to be online to complete key exchange.
406
407
  INTERACTIVE = 0;
407
- /// Guest's identity key is known; invitation can be accepted by any valid peer.
408
- OFFLINE = 1;
409
- /// Multiple-use interactive invitation.
408
+ /// Invitation can be accepted by any valid peer.
409
+ DELEGATED = 1;
410
+ /**
411
+ * Multi-use interactive invitations.
412
+ * @deprecated use multiUse flag with type=interactive instead.
413
+ */
410
414
  MULTIUSE = 2;
411
415
  }
412
416
 
@@ -421,6 +425,9 @@ message Invitation {
421
425
 
422
426
  /// Guest should call `Authenticate` with the shared secret.
423
427
  SHARED_SECRET = 1;
428
+
429
+ /// Guest should prove they possess a private key corresponding to the known public key recorded in an invitation.
430
+ KNOWN_PUBLIC_KEY = 2;
424
431
  }
425
432
 
426
433
  enum State {
@@ -479,6 +486,17 @@ message Invitation {
479
486
  // TODO(nf): some feedback mechanism or GC for immortal invitations?
480
487
  // TODO(nf): should the creator have a way to make an invitation last as long as the client? this was the previous behavior.
481
488
  optional int32 lifetime = 14;
489
+
490
+ /// Whether an invitation can be used multiple times.
491
+ optional bool multi_use = 15;
492
+
493
+ /// Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
494
+ optional AdmissionKeypair guest_keypair = 16;
495
+ }
496
+
497
+ message AdmissionKeypair {
498
+ dxos.keys.PublicKey public_key = 1;
499
+ optional dxos.keys.PrivateKey private_key = 2;
482
500
  }
483
501
 
484
502
  message AcceptInvitationRequest {
@@ -533,7 +551,6 @@ service InvitationsService {
533
551
  rpc Authenticate(AuthenticationRequest) returns (google.protobuf.Empty);
534
552
  rpc CancelInvitation(CancelInvitationRequest) returns (google.protobuf.Empty);
535
553
  rpc QueryInvitations(google.protobuf.Empty) returns (stream QueryInvitationsResponse);
536
- rpc LoadPersistentInvitations(google.protobuf.Empty) returns (LoadPersistentInvitationsResponse);
537
554
  }
538
555
 
539
556
  //
@@ -103,6 +103,10 @@ message Runtime {
103
103
  optional StorageDriver key_store = 2;
104
104
  optional StorageDriver data_store = 3;
105
105
  optional string data_root = 4;
106
+
107
+ /**
108
+ * @deprecated
109
+ */
106
110
  optional bool space_fragmentation = 5;
107
111
  }
108
112
 
@@ -127,12 +131,13 @@ message Runtime {
127
131
  /// Location of the remote client host.
128
132
  // TODO(burdon): Rename vault_endpoint (generalize http/ws; drop vault.html).
129
133
  optional string remote_source = 6;
130
-
134
+
135
+ // Authenticate via `Sec-WebSocket-Protocol` header hack.
136
+ optional string remote_source_authentication_token = 8;
137
+
131
138
  /// Connect to and serve client services to a remote proxy.
132
139
  optional string devtools_proxy = 7;
133
140
 
134
- /// Enable E.object api
135
- optional bool use_reactive_object_api = 8;
136
141
  }
137
142
 
138
143
  message App {
@@ -32,9 +32,6 @@ message Value {
32
32
  Array array = 21;
33
33
 
34
34
  Reference reference = 30;
35
-
36
- // YJS state snapshot.
37
- YJS yjs = 40;
38
35
  }
39
36
  }
40
37
 
@@ -47,7 +47,11 @@ message MutationReceipt {
47
47
  }
48
48
 
49
49
  message FlushRequest {
50
- dxos.keys.PublicKey space_key = 1;
50
+ optional dxos.keys.PublicKey space_key = 1;
51
+ /**
52
+ * Automerge specific document ids to wait to flush.
53
+ */
54
+ repeated string document_ids = 2;
51
55
  }
52
56
 
53
57
  // Automerge specific.
@@ -33,12 +33,19 @@ message IntroductionRequest {
33
33
  message IntroductionResponse {
34
34
  dxos.client.services.Invitation.AuthMethod auth_method = 1;
35
35
 
36
+ /// Present when auth_method is KNOWN_PUBLIC_KEY.
37
+ optional bytes challenge = 2;
38
+
36
39
  /// Only present for testing invitation types.
37
40
  optional dxos.keys.PublicKey space_key = 100;
38
41
  }
39
42
 
40
43
  message AuthenticationRequest {
41
- string auth_code = 1;
44
+ /// Present when auth_method is SHARED_SECRET.
45
+ optional string auth_code = 1;
46
+
47
+ /// Present when auth_method is KNOWN_PUBLIC_KEY.
48
+ optional bytes signed_challenge = 2;
42
49
  }
43
50
 
44
51
  message AuthenticationResponse {
@@ -47,6 +54,7 @@ message AuthenticationResponse {
47
54
  INVALID_OTP = 1;
48
55
  INVALID_OPT_ATTEMPTS = 2;
49
56
  INTERNAL_ERROR = 3;
57
+ INVALID_SIGNATURE = 4;
50
58
  }
51
59
 
52
60
  optional Status status = 1;
@@ -55,11 +55,13 @@ service AppService {
55
55
  enum ShellLayout {
56
56
  DEFAULT = 0;
57
57
  INITIALIZE_IDENTITY = 1;
58
- IDENTITY = 2;
59
- SHARE_IDENTITY = 3;
60
- EDIT_PROFILE = 4;
61
- SPACE = 5;
62
- JOIN_SPACE = 6;
58
+ INITIALIZE_IDENTITY_FROM_INVITATION = 2;
59
+ IDENTITY = 3;
60
+ SHARE_IDENTITY = 4;
61
+ EDIT_PROFILE = 5;
62
+ SPACE = 6;
63
+ JOIN_SPACE = 7;
64
+ STATUS = 8;
63
65
  }
64
66
 
65
67
  message LayoutRequest {
@@ -60,181 +60,6 @@ import * as dxos_value from "../value";
60
60
  import * as example_testing_data from "../../example/testing/data";
61
61
  import * as example_testing_rpc from "../../example/testing/rpc";
62
62
  import * as google_protobuf from "../../google/protobuf";
63
- /**
64
- * Defined in:
65
- * {@link file://./../../../dxos/client/logging.proto}
66
- */
67
- export interface Metrics {
68
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
69
- values?: Metrics.KeyPair[];
70
- }
71
- export namespace Metrics {
72
- /**
73
- * Defined in:
74
- * {@link file://./../../../dxos/client/logging.proto}
75
- */
76
- export interface KeyPair {
77
- /**
78
- * Options:
79
- * - proto3_optional = true
80
- */
81
- key?: string;
82
- /**
83
- * Options:
84
- * - proto3_optional = true
85
- */
86
- value?: dxos_value.Value;
87
- /**
88
- * Options:
89
- * - proto3_optional = true
90
- */
91
- stats?: dxos_value.Stats;
92
- }
93
- }
94
- /**
95
- * Defined in:
96
- * {@link file://./../../../dxos/client/logging.proto}
97
- */
98
- export interface ControlMetricsRequest {
99
- /**
100
- * Options:
101
- * - proto3_optional = true
102
- */
103
- reset?: boolean;
104
- /**
105
- * Options:
106
- * - proto3_optional = true
107
- */
108
- record?: boolean;
109
- }
110
- /**
111
- * Defined in:
112
- * {@link file://./../../../dxos/client/logging.proto}
113
- */
114
- export interface ControlMetricsResponse {
115
- /**
116
- * Options:
117
- * - proto3_optional = true
118
- */
119
- recording?: boolean;
120
- }
121
- /**
122
- * Defined in:
123
- * {@link file://./../../../dxos/client/logging.proto}
124
- */
125
- export interface QueryMetricsRequest {
126
- /**
127
- * Options:
128
- * - proto3_optional = true
129
- */
130
- interval?: number;
131
- }
132
- /**
133
- * Defined in:
134
- * {@link file://./../../../dxos/client/logging.proto}
135
- */
136
- export interface QueryMetricsResponse {
137
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
138
- metrics: Metrics;
139
- }
140
- /**
141
- * Defined in:
142
- * {@link file://./../../../dxos/client/logging.proto}
143
- */
144
- export enum LogLevel {
145
- TRACE = 5,
146
- DEBUG = 10,
147
- INFO = 11,
148
- WARN = 12,
149
- ERROR = 13
150
- }
151
- /**
152
- * Defined in:
153
- * {@link file://./../../../dxos/client/logging.proto}
154
- */
155
- export interface QueryLogsRequest {
156
- filters?: QueryLogsRequest.Filter[];
157
- /**
158
- * Options:
159
- * - proto3_optional = true
160
- */
161
- options?: QueryLogsRequest.MatchingOptions;
162
- }
163
- export namespace QueryLogsRequest {
164
- /**
165
- * Defined in:
166
- * {@link file://./../../../dxos/client/logging.proto}
167
- */
168
- export enum MatchingOptions {
169
- INCLUSIVE = 1,
170
- EXPLICIT = 2
171
- }
172
- /**
173
- * Defined in:
174
- * {@link file://./../../../dxos/client/logging.proto}
175
- */
176
- export interface Filter {
177
- level: LogLevel;
178
- /**
179
- * Options:
180
- * - proto3_optional = true
181
- */
182
- pattern?: string;
183
- }
184
- }
185
- /**
186
- * Defined in:
187
- * {@link file://./../../../dxos/client/logging.proto}
188
- */
189
- export interface LogEntry {
190
- level: LogLevel;
191
- message: string;
192
- /**
193
- * Options:
194
- * - proto3_optional = true
195
- */
196
- context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
197
- /**
198
- * Options:
199
- * - proto3_optional = true
200
- */
201
- meta?: LogEntry.Meta;
202
- /**
203
- * Options:
204
- * - proto3_optional = true
205
- */
206
- error?: dxos_error.Error;
207
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
208
- }
209
- export namespace LogEntry {
210
- /**
211
- * Defined in:
212
- * {@link file://./../../../dxos/client/logging.proto}
213
- */
214
- export interface Meta {
215
- file: string;
216
- line: number;
217
- /**
218
- * Options:
219
- * - proto3_optional = true
220
- */
221
- scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
222
- /**
223
- * Options:
224
- * - proto3_optional = true
225
- */
226
- resourceId?: number;
227
- }
228
- }
229
- /**
230
- * Defined in:
231
- * {@link file://./../../../dxos/client/logging.proto}
232
- */
233
- export interface LoggingService {
234
- controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
235
- queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
236
- queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
237
- }
238
63
  /**
239
64
  * Defined in:
240
65
  * {@link file://./../../../dxos/client/services.proto}
@@ -840,7 +665,7 @@ export interface SpacesService {
840
665
  */
841
666
  export interface IndexService {
842
667
  setConfig: (request: dxos_echo_indexing.IndexConfig, options?: RequestOptions) => Promise<void>;
843
- find: (request: dxos_agent_query.QueryRequest, options?: RequestOptions) => Promise<dxos_agent_query.QueryResponse>;
668
+ find: (request: dxos_agent_query.QueryRequest, options?: RequestOptions) => Stream<dxos_agent_query.QueryResponse>;
844
669
  }
845
670
  /**
846
671
  * Represents the invitation state passed between client and service.
@@ -925,6 +750,20 @@ export interface Invitation {
925
750
  * - proto3_optional = true
926
751
  */
927
752
  lifetime?: number;
753
+ /**
754
+ * Whether an invitation can be used multiple times.
755
+ *
756
+ * Options:
757
+ * - proto3_optional = true
758
+ */
759
+ multiUse?: boolean;
760
+ /**
761
+ * Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
762
+ *
763
+ * Options:
764
+ * - proto3_optional = true
765
+ */
766
+ guestKeypair?: AdmissionKeypair;
928
767
  }
929
768
  export namespace Invitation {
930
769
  /**
@@ -933,7 +772,7 @@ export namespace Invitation {
933
772
  */
934
773
  export enum Type {
935
774
  INTERACTIVE = 0,
936
- OFFLINE = 1,
775
+ DELEGATED = 1,
937
776
  MULTIUSE = 2
938
777
  }
939
778
  /**
@@ -950,7 +789,8 @@ export namespace Invitation {
950
789
  */
951
790
  export enum AuthMethod {
952
791
  NONE = 0,
953
- SHARED_SECRET = 1
792
+ SHARED_SECRET = 1,
793
+ KNOWN_PUBLIC_KEY = 2
954
794
  }
955
795
  /**
956
796
  * Defined in:
@@ -969,6 +809,18 @@ export namespace Invitation {
969
809
  EXPIRED = 9
970
810
  }
971
811
  }
812
+ /**
813
+ * Defined in:
814
+ * {@link file://./../../../dxos/client/services.proto}
815
+ */
816
+ export interface AdmissionKeypair {
817
+ publicKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
818
+ /**
819
+ * Options:
820
+ * - proto3_optional = true
821
+ */
822
+ privateKey?: ReturnType<(typeof substitutions)["dxos.keys.PrivateKey"]["decode"]>;
823
+ }
972
824
  /**
973
825
  * Defined in:
974
826
  * {@link file://./../../../dxos/client/services.proto}
@@ -1055,7 +907,6 @@ export interface InvitationsService {
1055
907
  authenticate: (request: AuthenticationRequest, options?: RequestOptions) => Promise<void>;
1056
908
  cancelInvitation: (request: CancelInvitationRequest, options?: RequestOptions) => Promise<void>;
1057
909
  queryInvitations: (request: void, options?: RequestOptions) => Stream<QueryInvitationsResponse>;
1058
- loadPersistentInvitations: (request: void, options?: RequestOptions) => Promise<LoadPersistentInvitationsResponse>;
1059
910
  }
1060
911
  /**
1061
912
  * Defined in:
@@ -1099,3 +950,178 @@ export interface NetworkService {
1099
950
  updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
1100
951
  queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
1101
952
  }
953
+ /**
954
+ * Defined in:
955
+ * {@link file://./../../../dxos/client/logging.proto}
956
+ */
957
+ export interface Metrics {
958
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
959
+ values?: Metrics.KeyPair[];
960
+ }
961
+ export namespace Metrics {
962
+ /**
963
+ * Defined in:
964
+ * {@link file://./../../../dxos/client/logging.proto}
965
+ */
966
+ export interface KeyPair {
967
+ /**
968
+ * Options:
969
+ * - proto3_optional = true
970
+ */
971
+ key?: string;
972
+ /**
973
+ * Options:
974
+ * - proto3_optional = true
975
+ */
976
+ value?: dxos_value.Value;
977
+ /**
978
+ * Options:
979
+ * - proto3_optional = true
980
+ */
981
+ stats?: dxos_value.Stats;
982
+ }
983
+ }
984
+ /**
985
+ * Defined in:
986
+ * {@link file://./../../../dxos/client/logging.proto}
987
+ */
988
+ export interface ControlMetricsRequest {
989
+ /**
990
+ * Options:
991
+ * - proto3_optional = true
992
+ */
993
+ reset?: boolean;
994
+ /**
995
+ * Options:
996
+ * - proto3_optional = true
997
+ */
998
+ record?: boolean;
999
+ }
1000
+ /**
1001
+ * Defined in:
1002
+ * {@link file://./../../../dxos/client/logging.proto}
1003
+ */
1004
+ export interface ControlMetricsResponse {
1005
+ /**
1006
+ * Options:
1007
+ * - proto3_optional = true
1008
+ */
1009
+ recording?: boolean;
1010
+ }
1011
+ /**
1012
+ * Defined in:
1013
+ * {@link file://./../../../dxos/client/logging.proto}
1014
+ */
1015
+ export interface QueryMetricsRequest {
1016
+ /**
1017
+ * Options:
1018
+ * - proto3_optional = true
1019
+ */
1020
+ interval?: number;
1021
+ }
1022
+ /**
1023
+ * Defined in:
1024
+ * {@link file://./../../../dxos/client/logging.proto}
1025
+ */
1026
+ export interface QueryMetricsResponse {
1027
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1028
+ metrics: Metrics;
1029
+ }
1030
+ /**
1031
+ * Defined in:
1032
+ * {@link file://./../../../dxos/client/logging.proto}
1033
+ */
1034
+ export enum LogLevel {
1035
+ TRACE = 5,
1036
+ DEBUG = 10,
1037
+ INFO = 11,
1038
+ WARN = 12,
1039
+ ERROR = 13
1040
+ }
1041
+ /**
1042
+ * Defined in:
1043
+ * {@link file://./../../../dxos/client/logging.proto}
1044
+ */
1045
+ export interface QueryLogsRequest {
1046
+ filters?: QueryLogsRequest.Filter[];
1047
+ /**
1048
+ * Options:
1049
+ * - proto3_optional = true
1050
+ */
1051
+ options?: QueryLogsRequest.MatchingOptions;
1052
+ }
1053
+ export namespace QueryLogsRequest {
1054
+ /**
1055
+ * Defined in:
1056
+ * {@link file://./../../../dxos/client/logging.proto}
1057
+ */
1058
+ export enum MatchingOptions {
1059
+ INCLUSIVE = 1,
1060
+ EXPLICIT = 2
1061
+ }
1062
+ /**
1063
+ * Defined in:
1064
+ * {@link file://./../../../dxos/client/logging.proto}
1065
+ */
1066
+ export interface Filter {
1067
+ level: LogLevel;
1068
+ /**
1069
+ * Options:
1070
+ * - proto3_optional = true
1071
+ */
1072
+ pattern?: string;
1073
+ }
1074
+ }
1075
+ /**
1076
+ * Defined in:
1077
+ * {@link file://./../../../dxos/client/logging.proto}
1078
+ */
1079
+ export interface LogEntry {
1080
+ level: LogLevel;
1081
+ message: string;
1082
+ /**
1083
+ * Options:
1084
+ * - proto3_optional = true
1085
+ */
1086
+ context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
1087
+ /**
1088
+ * Options:
1089
+ * - proto3_optional = true
1090
+ */
1091
+ meta?: LogEntry.Meta;
1092
+ /**
1093
+ * Options:
1094
+ * - proto3_optional = true
1095
+ */
1096
+ error?: dxos_error.Error;
1097
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
1098
+ }
1099
+ export namespace LogEntry {
1100
+ /**
1101
+ * Defined in:
1102
+ * {@link file://./../../../dxos/client/logging.proto}
1103
+ */
1104
+ export interface Meta {
1105
+ file: string;
1106
+ line: number;
1107
+ /**
1108
+ * Options:
1109
+ * - proto3_optional = true
1110
+ */
1111
+ scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
1112
+ /**
1113
+ * Options:
1114
+ * - proto3_optional = true
1115
+ */
1116
+ resourceId?: number;
1117
+ }
1118
+ }
1119
+ /**
1120
+ * Defined in:
1121
+ * {@link file://./../../../dxos/client/logging.proto}
1122
+ */
1123
+ export interface LoggingService {
1124
+ controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
1125
+ queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
1126
+ queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
1127
+ }
@@ -292,19 +292,17 @@ export namespace Runtime {
292
292
  */
293
293
  remoteSource?: string;
294
294
  /**
295
- * Connect to and serve client services to a remote proxy.
296
- *
297
295
  * Options:
298
296
  * - proto3_optional = true
299
297
  */
300
- devtoolsProxy?: string;
298
+ remoteSourceAuthenticationToken?: string;
301
299
  /**
302
- * Enable E.object api
300
+ * Connect to and serve client services to a remote proxy.
303
301
  *
304
302
  * Options:
305
303
  * - proto3_optional = true
306
304
  */
307
- useReactiveObjectApi?: boolean;
305
+ devtoolsProxy?: string;
308
306
  }
309
307
  export namespace Client {
310
308
  /**
@@ -333,6 +331,8 @@ export namespace Runtime {
333
331
  */
334
332
  dataRoot?: string;
335
333
  /**
334
+ * @deprecated
335
+ *
336
336
  * Options:
337
337
  * - proto3_optional = true
338
338
  */
@@ -78,7 +78,6 @@ export interface Value {
78
78
  object?: KeyValueObject;
79
79
  array?: Array;
80
80
  reference?: Reference;
81
- yjs?: YJS;
82
81
  }
83
82
  /**
84
83
  * Ordered collection of values.