@dxos/protocols 0.4.10-main.6f3f81d → 0.4.10-main.6fbe602

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 (45) 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 +175 -176
  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 +25 -25
  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 -0
  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/devtools/host.d.ts +31 -31
  12. package/dist/cjs/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
  13. package/dist/cjs/src/proto/gen/dxos/mesh/swarm.d.ts +6 -2
  14. package/dist/cjs/src/proto/gen/dxos/mesh/swarm.d.ts.map +1 -1
  15. package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
  16. package/dist/cjs/src/proto/gen/index.js +1 -1
  17. package/dist/cjs/src/proto/gen/index.js.map +1 -1
  18. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  19. package/dist/esm/src/indexing.d.ts +4 -3
  20. package/dist/esm/src/indexing.d.ts.map +1 -1
  21. package/dist/esm/src/indexing.js.map +1 -1
  22. package/dist/esm/src/proto/gen/dxos/client/services.d.ts +175 -176
  23. package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  24. package/dist/esm/src/proto/gen/dxos/client/services.js +24 -24
  25. package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
  26. package/dist/esm/src/proto/gen/dxos/config.d.ts +5 -0
  27. package/dist/esm/src/proto/gen/dxos/config.d.ts.map +1 -1
  28. package/dist/esm/src/proto/gen/dxos/config.js.map +1 -1
  29. package/dist/esm/src/proto/gen/dxos/devtools/host.d.ts +31 -31
  30. package/dist/esm/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
  31. package/dist/esm/src/proto/gen/dxos/mesh/swarm.d.ts +6 -2
  32. package/dist/esm/src/proto/gen/dxos/mesh/swarm.d.ts.map +1 -1
  33. package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
  34. package/dist/esm/src/proto/gen/index.js +1 -1
  35. package/dist/esm/src/proto/gen/index.js.map +1 -1
  36. package/package.json +5 -5
  37. package/src/indexing.ts +5 -4
  38. package/src/proto/dxos/client/services.proto +0 -1
  39. package/src/proto/dxos/config.proto +5 -1
  40. package/src/proto/dxos/mesh/swarm.proto +11 -3
  41. package/src/proto/gen/dxos/client/services.ts +175 -176
  42. package/src/proto/gen/dxos/config.ts +5 -0
  43. package/src/proto/gen/dxos/devtools/host.ts +31 -31
  44. package/src/proto/gen/dxos/mesh/swarm.ts +6 -2
  45. package/src/proto/gen/index.ts +1 -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;AA6hB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,g7tGAAg7tG,CAAC,CAAC,CAAC;AACz+tG,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,mmuGAAmmuG,CAAC,CAAC,CAAC;AAC5puG,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.6f3f81d",
3
+ "version": "0.4.10-main.6fbe602",
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/invariant": "0.4.10-main.6f3f81d",
37
- "@dxos/keys": "0.4.10-main.6f3f81d",
38
- "@dxos/timeframe": "0.4.10-main.6f3f81d",
39
- "@dxos/codec-protobuf": "0.4.10-main.6f3f81d"
36
+ "@dxos/codec-protobuf": "0.4.10-main.6fbe602",
37
+ "@dxos/invariant": "0.4.10-main.6fbe602",
38
+ "@dxos/keys": "0.4.10-main.6fbe602",
39
+ "@dxos/timeframe": "0.4.10-main.6fbe602"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
package/src/indexing.ts CHANGED
@@ -2,15 +2,16 @@
2
2
  // Copyright 2024 DXOS.org
3
3
  //
4
4
 
5
- // TODO(dmaretskyi): Rename ObjectPointer{Decoded/Encoded}.
6
- export type IdDecoded = {
5
+ export type ObjectPointerDecoded = {
7
6
  documentId: string;
8
7
  objectId: string;
9
8
  };
10
9
 
10
+ export type ObjectPointerEncoded = string;
11
+
11
12
  export const idCodec = {
12
- encode: ({ documentId, objectId }: IdDecoded) => `${documentId}|${objectId}`,
13
- decode: (id: string): IdDecoded => {
13
+ encode: ({ documentId, objectId }: ObjectPointerDecoded): ObjectPointerEncoded => `${documentId}|${objectId}`,
14
+ decode: (id: ObjectPointerEncoded): ObjectPointerDecoded => {
14
15
  const [documentId, objectId] = id.split('|');
15
16
  return { documentId, objectId };
16
17
  },
@@ -551,7 +551,6 @@ service InvitationsService {
551
551
  rpc Authenticate(AuthenticationRequest) returns (google.protobuf.Empty);
552
552
  rpc CancelInvitation(CancelInvitationRequest) returns (google.protobuf.Empty);
553
553
  rpc QueryInvitations(google.protobuf.Empty) returns (stream QueryInvitationsResponse);
554
- rpc LoadPersistentInvitations(google.protobuf.Empty) returns (LoadPersistentInvitationsResponse);
555
554
  }
556
555
 
557
556
  //
@@ -131,9 +131,13 @@ message Runtime {
131
131
  /// Location of the remote client host.
132
132
  // TODO(burdon): Rename vault_endpoint (generalize http/ws; drop vault.html).
133
133
  optional string remote_source = 6;
134
-
134
+
135
+ // Authenticate via `Sec-WebSocket-Protocol` header hack.
136
+ optional string remote_source_authentication_token = 8;
137
+
135
138
  /// Connect to and serve client services to a remote proxy.
136
139
  optional string devtools_proxy = 7;
140
+
137
141
  }
138
142
 
139
143
  message App {
@@ -9,14 +9,19 @@ import "dxos/keys.proto";
9
9
 
10
10
  package dxos.mesh.swarm;
11
11
 
12
+ /**
13
+ * Use for:
14
+ * - Initial peer discovery (initiate session id between two peers).
15
+ * - RTC negotiation (SDP offer/answer and ICE).
16
+ */
12
17
  message SwarmMessage {
13
- /// Swarm identefier.
18
+ /// Swarm identifier.
14
19
  dxos.keys.PublicKey topic = 3;
15
20
  /// Unique connection identifier.
16
21
  dxos.keys.PublicKey session_id = 4;
17
22
  /// Message payload.
18
23
  MessageData data = 5;
19
- /// Unique message identifier. Used for Acknolegment and matching Anwers to Offers.
24
+ /// Unique message identifier. Used for ACK and matching Answers to Offers.
20
25
  dxos.keys.PublicKey message_id = 6;
21
26
  }
22
27
 
@@ -29,7 +34,6 @@ message MessageData {
29
34
  * @deprecated Use SignalBatch instead.
30
35
  */
31
36
  Signal signal = 3;
32
-
33
37
  SignalBatch signal_batch = 4;
34
38
  }
35
39
  }
@@ -43,6 +47,10 @@ message Answer {
43
47
  optional dxos.keys.PublicKey offer_message_id = 2;
44
48
  }
45
49
 
50
+ //
51
+ // RTC messages.
52
+ //
53
+
46
54
  message Signal {
47
55
  google.protobuf.Struct payload = 1;
48
56
  }
@@ -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}
@@ -1082,7 +907,6 @@ export interface InvitationsService {
1082
907
  authenticate: (request: AuthenticationRequest, options?: RequestOptions) => Promise<void>;
1083
908
  cancelInvitation: (request: CancelInvitationRequest, options?: RequestOptions) => Promise<void>;
1084
909
  queryInvitations: (request: void, options?: RequestOptions) => Stream<QueryInvitationsResponse>;
1085
- loadPersistentInvitations: (request: void, options?: RequestOptions) => Promise<LoadPersistentInvitationsResponse>;
1086
910
  }
1087
911
  /**
1088
912
  * Defined in:
@@ -1126,3 +950,178 @@ export interface NetworkService {
1126
950
  updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
1127
951
  queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
1128
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
+ }
@@ -291,6 +291,11 @@ export namespace Runtime {
291
291
  * - proto3_optional = true
292
292
  */
293
293
  remoteSource?: string;
294
+ /**
295
+ * Options:
296
+ * - proto3_optional = true
297
+ */
298
+ remoteSourceAuthenticationToken?: string;
294
299
  /**
295
300
  * Connect to and serve client services to a remote proxy.
296
301
  *
@@ -60,37 +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/devtools/diagnostics.proto}
66
- */
67
- export interface Services {
68
- spaces?: SpaceStats[];
69
- }
70
- /**
71
- * Defined in:
72
- * {@link file://./../../../dxos/devtools/diagnostics.proto}
73
- */
74
- export interface SpaceStats {
75
- key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
76
- peers?: PeerStats[];
77
- }
78
- /**
79
- * Defined in:
80
- * {@link file://./../../../dxos/devtools/diagnostics.proto}
81
- */
82
- export interface PeerStats {
83
- controlFeed: FeedStats;
84
- dataFeed: FeedStats;
85
- }
86
- /**
87
- * Defined in:
88
- * {@link file://./../../../dxos/devtools/diagnostics.proto}
89
- */
90
- export interface FeedStats {
91
- key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
92
- length: number;
93
- }
94
63
  /**
95
64
  * Defined in:
96
65
  * {@link file://./../../../dxos/devtools/host.proto}
@@ -513,3 +482,34 @@ export interface SubscribeToSwarmInfoRequest {
513
482
  export interface SubscribeToSwarmInfoResponse {
514
483
  data?: dxos_devtools_swarm.SwarmInfo[];
515
484
  }
485
+ /**
486
+ * Defined in:
487
+ * {@link file://./../../../dxos/devtools/diagnostics.proto}
488
+ */
489
+ export interface Services {
490
+ spaces?: SpaceStats[];
491
+ }
492
+ /**
493
+ * Defined in:
494
+ * {@link file://./../../../dxos/devtools/diagnostics.proto}
495
+ */
496
+ export interface SpaceStats {
497
+ key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
498
+ peers?: PeerStats[];
499
+ }
500
+ /**
501
+ * Defined in:
502
+ * {@link file://./../../../dxos/devtools/diagnostics.proto}
503
+ */
504
+ export interface PeerStats {
505
+ controlFeed: FeedStats;
506
+ dataFeed: FeedStats;
507
+ }
508
+ /**
509
+ * Defined in:
510
+ * {@link file://./../../../dxos/devtools/diagnostics.proto}
511
+ */
512
+ export interface FeedStats {
513
+ key: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
514
+ length: number;
515
+ }
@@ -61,12 +61,16 @@ 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
63
  /**
64
+ * Use for:
65
+ * - Initial peer discovery (initiate session id between two peers).
66
+ * - RTC negotiation (SDP offer/answer and ICE).
67
+ *
64
68
  * Defined in:
65
69
  * {@link file://./../../../dxos/mesh/swarm.proto}
66
70
  */
67
71
  export interface SwarmMessage {
68
72
  /**
69
- * Swarm identefier.
73
+ * Swarm identifier.
70
74
  */
71
75
  topic: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
72
76
  /**
@@ -78,7 +82,7 @@ export interface SwarmMessage {
78
82
  */
79
83
  data: MessageData;
80
84
  /**
81
- * Unique message identifier. Used for Acknolegment and matching Anwers to Offers.
85
+ * Unique message identifier. Used for ACK and matching Answers to Offers.
82
86
  */
83
87
  messageId: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
84
88
  }