@dxos/protocols 0.3.11-main.6fccc32 → 0.3.11-main.73ee990

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 (51) hide show
  1. package/dist/cjs/src/errors/errors.d.ts +3 -0
  2. package/dist/cjs/src/errors/errors.d.ts.map +1 -1
  3. package/dist/cjs/src/errors/errors.js +8 -1
  4. package/dist/cjs/src/errors/errors.js.map +1 -1
  5. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +265 -176
  6. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  7. package/dist/cjs/src/proto/gen/dxos/client/services.js +38 -25
  8. package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
  9. package/dist/cjs/src/proto/gen/dxos/config.d.ts +21 -0
  10. package/dist/cjs/src/proto/gen/dxos/config.d.ts.map +1 -1
  11. package/dist/cjs/src/proto/gen/dxos/config.js.map +1 -1
  12. package/dist/cjs/src/proto/gen/dxos/iframe.d.ts +30 -2
  13. package/dist/cjs/src/proto/gen/dxos/iframe.d.ts.map +1 -1
  14. package/dist/cjs/src/proto/gen/dxos/iframe.js.map +1 -1
  15. package/dist/cjs/src/proto/gen/google/protobuf.d.ts +4 -4
  16. package/dist/cjs/src/proto/gen/google/protobuf.d.ts.map +1 -1
  17. package/dist/cjs/src/proto/gen/index.d.ts +4 -0
  18. package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
  19. package/dist/cjs/src/proto/gen/index.js +1 -1
  20. package/dist/cjs/src/proto/gen/index.js.map +1 -1
  21. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  22. package/dist/esm/src/errors/errors.d.ts +3 -0
  23. package/dist/esm/src/errors/errors.d.ts.map +1 -1
  24. package/dist/esm/src/errors/errors.js +6 -0
  25. package/dist/esm/src/errors/errors.js.map +1 -1
  26. package/dist/esm/src/proto/gen/dxos/client/services.d.ts +265 -176
  27. package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  28. package/dist/esm/src/proto/gen/dxos/client/services.js +37 -24
  29. package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
  30. package/dist/esm/src/proto/gen/dxos/config.d.ts +21 -0
  31. package/dist/esm/src/proto/gen/dxos/config.d.ts.map +1 -1
  32. package/dist/esm/src/proto/gen/dxos/config.js.map +1 -1
  33. package/dist/esm/src/proto/gen/dxos/iframe.d.ts +30 -2
  34. package/dist/esm/src/proto/gen/dxos/iframe.d.ts.map +1 -1
  35. package/dist/esm/src/proto/gen/dxos/iframe.js.map +1 -1
  36. package/dist/esm/src/proto/gen/google/protobuf.d.ts +4 -4
  37. package/dist/esm/src/proto/gen/google/protobuf.d.ts.map +1 -1
  38. package/dist/esm/src/proto/gen/index.d.ts +4 -0
  39. package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
  40. package/dist/esm/src/proto/gen/index.js +1 -1
  41. package/dist/esm/src/proto/gen/index.js.map +1 -1
  42. package/package.json +5 -5
  43. package/src/errors/errors.ts +8 -0
  44. package/src/proto/dxos/client/services.proto +36 -1
  45. package/src/proto/dxos/config.proto +7 -0
  46. package/src/proto/dxos/iframe.proto +18 -2
  47. package/src/proto/gen/dxos/client/services.ts +264 -176
  48. package/src/proto/gen/dxos/config.ts +21 -0
  49. package/src/proto/gen/dxos/iframe.ts +30 -2
  50. package/src/proto/gen/google/protobuf.ts +4 -4
  51. package/src/proto/gen/index.ts +5 -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;AA6DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAghB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,4jiGAA4jiG,CAAC,CAAC,CAAC;AACrniG,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;AA6DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAohB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,oimGAAoimG,CAAC,CAAC,CAAC;AAC7lmG,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.3.11-main.6fccc32",
3
+ "version": "0.3.11-main.73ee990",
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.3.11-main.6fccc32",
37
- "@dxos/keys": "0.3.11-main.6fccc32",
38
- "@dxos/codec-protobuf": "0.3.11-main.6fccc32",
39
- "@dxos/timeframe": "0.3.11-main.6fccc32"
36
+ "@dxos/codec-protobuf": "0.3.11-main.73ee990",
37
+ "@dxos/timeframe": "0.3.11-main.73ee990",
38
+ "@dxos/keys": "0.3.11-main.73ee990",
39
+ "@dxos/invariant": "0.3.11-main.73ee990"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
@@ -100,6 +100,14 @@ export class InvalidInvitationError extends DatabaseError {
100
100
 
101
101
  registerErrorMessageContext('INVALID_INVITATION', InvalidInvitationError);
102
102
 
103
+ export class AlreadyJoinedError extends DatabaseError {
104
+ constructor(message?: string, context?: Record<string, any>) {
105
+ super('ALREADY_JOINED', message, context);
106
+ }
107
+ }
108
+
109
+ registerErrorMessageContext('ALREADY_JOINED', AlreadyJoinedError);
110
+
103
111
  export class ConnectionResetError extends BaseError {
104
112
  constructor(message?: string, context?: any) {
105
113
  super('CONNECTION_RESET', message, context);
@@ -19,6 +19,7 @@ import "dxos/mesh/signal.proto";
19
19
  import "dxos/mesh/teleport/gossip.proto";
20
20
  import "dxos/mesh/presence.proto";
21
21
  import "dxos/value.proto";
22
+ import "dxos/devtools/swarm.proto";
22
23
 
23
24
  // TODO(burdon): Reorganize packages (e.g., client.services, echo.database).
24
25
 
@@ -63,6 +64,28 @@ message GetDiagnosticsResponse {
63
64
  google.protobuf.Struct diagnostics = 2;
64
65
  }
65
66
 
67
+ message Platform {
68
+ enum PLATFORM_TYPE {
69
+ BROWSER = 0;
70
+ SHARED_WORKER = 1;
71
+ NODE = 2;
72
+ }
73
+
74
+ PLATFORM_TYPE type = 1;
75
+ /// The User-Agent string from a browser
76
+ optional string user_agent = 2;
77
+ /// e.g process.platform from node, e.g. 'darwin', 'linux', 'win32'
78
+ optional string platform = 3;
79
+ /// the Node.JS arch string, e.g. 'arm64', 'x64'
80
+ optional string arch = 4;
81
+ /// the node.js version string
82
+ optional string runtime = 5;
83
+ // TODO(nf): uint64? :)
84
+ /// the number of seconds the client has been up
85
+ optional uint32 uptime = 6;
86
+ /// e.g. NodeJS.MemoryUsage, subject to change
87
+ optional google.protobuf.Struct memory = 7;
88
+ }
66
89
  //
67
90
  // System
68
91
  //
@@ -82,6 +105,9 @@ service SystemService {
82
105
 
83
106
  /// Reset the client.
84
107
  rpc Reset(google.protobuf.Empty) returns (google.protobuf.Empty);
108
+
109
+ /// Get platform Information
110
+ rpc GetPlatform(google.protobuf.Empty) returns (Platform);
85
111
  }
86
112
 
87
113
  //
@@ -107,9 +133,14 @@ message SignPresentationRequest {
107
133
  optional bytes nonce = 2;
108
134
  }
109
135
 
136
+ message CreateIdentityRequest {
137
+ optional halo.credentials.ProfileDocument profile = 1;
138
+ optional bool use_automerge = 2;
139
+ }
140
+
110
141
  // TODO(wittjosiah): Align pluralization with other services.
111
142
  service IdentityService {
112
- rpc CreateIdentity(halo.credentials.ProfileDocument) returns (Identity);
143
+ rpc CreateIdentity(CreateIdentityRequest) returns (Identity);
113
144
  rpc RecoverIdentity(RecoverIdentityRequest) returns (Identity);
114
145
  rpc QueryIdentity(google.protobuf.Empty) returns (stream QueryIdentityResponse);
115
146
  rpc UpdateProfile(halo.credentials.ProfileDocument) returns (Identity);
@@ -407,6 +438,9 @@ message Invitation {
407
438
 
408
439
  /// Authentication code created by host (only present if auth_method is SHARED_SECRET).
409
440
  optional string auth_code = 10;
441
+
442
+ /// Path or identifier to navigate to after successful authentication.
443
+ optional string target = 11;
410
444
  }
411
445
 
412
446
  message AuthenticationRequest {
@@ -468,6 +502,7 @@ message NetworkStatus {
468
502
 
469
503
  ConnectionState swarm = 1;
470
504
  repeated Signal signaling = 2;
505
+ repeated dxos.devtools.swarm.SwarmInfo connection_info = 3;
471
506
  }
472
507
 
473
508
  message UpdateConfigRequest {
@@ -367,6 +367,12 @@ message Runtime {
367
367
  optional string username = 2;
368
368
  optional string password = 3;
369
369
  }
370
+ // TODO(nf): Set API version, authentication scheme, etc.
371
+ message AgentHosting {
372
+ // TODO(nf): read enum from yml?
373
+ optional string server = 1;
374
+ optional string type = 2;
375
+ }
370
376
 
371
377
  optional Kube kube = 1;
372
378
  optional AppServer app = 2;
@@ -380,6 +386,7 @@ message Runtime {
380
386
  optional Supervisor supervisor = 10; // TODO(burdon): Promote to 1; start others at 10.
381
387
  optional Tunneling tunneling = 11;
382
388
  optional Faasd faasd = 12;
389
+ optional AgentHosting agent_hosting = 13;
383
390
  }
384
391
 
385
392
  message Keys {
@@ -29,11 +29,19 @@ enum ShellDisplay {
29
29
  }
30
30
 
31
31
  message AppContextRequest {
32
- /// The display mode that shell should use
32
+ /// The display mode that shell should use.
33
33
  optional ShellDisplay display = 1;
34
34
 
35
- /// The key of the joined space
35
+ /// The key of the joined space.
36
36
  optional dxos.keys.PublicKey space_key = 2;
37
+
38
+ /// Target to redirect to after a successful invitation.
39
+ optional string target = 3;
40
+
41
+ /// Reload the app.
42
+ /// Shell cannot reload the app from within an iframe.
43
+ /// Used after sign out/identity reset.
44
+ optional bool reload = 4;
37
45
  }
38
46
 
39
47
  /// App RPCs for the shell.
@@ -52,9 +60,17 @@ enum ShellLayout {
52
60
  }
53
61
 
54
62
  message LayoutRequest {
63
+ /// Determins which panel of the shell is opened.
55
64
  ShellLayout layout = 1;
65
+
66
+ /// Invitation code to join a space.
56
67
  optional string invitation_code = 2;
68
+
69
+ /// Key of the space to share.
57
70
  optional dxos.keys.PublicKey space_key = 3;
71
+
72
+ /// Target to include in an invitation for redirecting after a successful invitation.
73
+ optional string target = 4;
58
74
  }
59
75
 
60
76
  /// Shell UI RPCs.
@@ -59,6 +59,181 @@ import * as dxos_value from "../value";
59
59
  import * as example_testing_data from "../../example/testing/data";
60
60
  import * as example_testing_rpc from "../../example/testing/rpc";
61
61
  import * as google_protobuf from "../../google/protobuf";
62
+ /**
63
+ * Defined in:
64
+ * {@link file://./../../../dxos/client/logging.proto}
65
+ */
66
+ export interface Metrics {
67
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
68
+ values?: Metrics.KeyPair[];
69
+ }
70
+ export namespace Metrics {
71
+ /**
72
+ * Defined in:
73
+ * {@link file://./../../../dxos/client/logging.proto}
74
+ */
75
+ export interface KeyPair {
76
+ /**
77
+ * Options:
78
+ * - proto3_optional = true
79
+ */
80
+ key?: string;
81
+ /**
82
+ * Options:
83
+ * - proto3_optional = true
84
+ */
85
+ value?: dxos_value.Value;
86
+ /**
87
+ * Options:
88
+ * - proto3_optional = true
89
+ */
90
+ stats?: dxos_value.Stats;
91
+ }
92
+ }
93
+ /**
94
+ * Defined in:
95
+ * {@link file://./../../../dxos/client/logging.proto}
96
+ */
97
+ export interface ControlMetricsRequest {
98
+ /**
99
+ * Options:
100
+ * - proto3_optional = true
101
+ */
102
+ reset?: boolean;
103
+ /**
104
+ * Options:
105
+ * - proto3_optional = true
106
+ */
107
+ record?: boolean;
108
+ }
109
+ /**
110
+ * Defined in:
111
+ * {@link file://./../../../dxos/client/logging.proto}
112
+ */
113
+ export interface ControlMetricsResponse {
114
+ /**
115
+ * Options:
116
+ * - proto3_optional = true
117
+ */
118
+ recording?: boolean;
119
+ }
120
+ /**
121
+ * Defined in:
122
+ * {@link file://./../../../dxos/client/logging.proto}
123
+ */
124
+ export interface QueryMetricsRequest {
125
+ /**
126
+ * Options:
127
+ * - proto3_optional = true
128
+ */
129
+ interval?: number;
130
+ }
131
+ /**
132
+ * Defined in:
133
+ * {@link file://./../../../dxos/client/logging.proto}
134
+ */
135
+ export interface QueryMetricsResponse {
136
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
137
+ metrics: Metrics;
138
+ }
139
+ /**
140
+ * Defined in:
141
+ * {@link file://./../../../dxos/client/logging.proto}
142
+ */
143
+ export enum LogLevel {
144
+ TRACE = 5,
145
+ DEBUG = 10,
146
+ INFO = 11,
147
+ WARN = 12,
148
+ ERROR = 13
149
+ }
150
+ /**
151
+ * Defined in:
152
+ * {@link file://./../../../dxos/client/logging.proto}
153
+ */
154
+ export interface QueryLogsRequest {
155
+ filters?: QueryLogsRequest.Filter[];
156
+ /**
157
+ * Options:
158
+ * - proto3_optional = true
159
+ */
160
+ options?: QueryLogsRequest.MatchingOptions;
161
+ }
162
+ export namespace QueryLogsRequest {
163
+ /**
164
+ * Defined in:
165
+ * {@link file://./../../../dxos/client/logging.proto}
166
+ */
167
+ export enum MatchingOptions {
168
+ INCLUSIVE = 1,
169
+ EXPLICIT = 2
170
+ }
171
+ /**
172
+ * Defined in:
173
+ * {@link file://./../../../dxos/client/logging.proto}
174
+ */
175
+ export interface Filter {
176
+ level: LogLevel;
177
+ /**
178
+ * Options:
179
+ * - proto3_optional = true
180
+ */
181
+ pattern?: string;
182
+ }
183
+ }
184
+ /**
185
+ * Defined in:
186
+ * {@link file://./../../../dxos/client/logging.proto}
187
+ */
188
+ export interface LogEntry {
189
+ level: LogLevel;
190
+ message: string;
191
+ /**
192
+ * Options:
193
+ * - proto3_optional = true
194
+ */
195
+ context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
196
+ /**
197
+ * Options:
198
+ * - proto3_optional = true
199
+ */
200
+ meta?: LogEntry.Meta;
201
+ /**
202
+ * Options:
203
+ * - proto3_optional = true
204
+ */
205
+ error?: dxos_error.Error;
206
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
207
+ }
208
+ export namespace LogEntry {
209
+ /**
210
+ * Defined in:
211
+ * {@link file://./../../../dxos/client/logging.proto}
212
+ */
213
+ export interface Meta {
214
+ file: string;
215
+ line: number;
216
+ /**
217
+ * Options:
218
+ * - proto3_optional = true
219
+ */
220
+ scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
221
+ /**
222
+ * Options:
223
+ * - proto3_optional = true
224
+ */
225
+ resourceId?: number;
226
+ }
227
+ }
228
+ /**
229
+ * Defined in:
230
+ * {@link file://./../../../dxos/client/logging.proto}
231
+ */
232
+ export interface LoggingService {
233
+ controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
234
+ queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
235
+ queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
236
+ }
62
237
  /**
63
238
  * Defined in:
64
239
  * {@link file://./../../../dxos/client/services.proto}
@@ -122,6 +297,66 @@ export interface GetDiagnosticsResponse {
122
297
  timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
123
298
  diagnostics: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
124
299
  }
300
+ /**
301
+ * Defined in:
302
+ * {@link file://./../../../dxos/client/services.proto}
303
+ */
304
+ export interface Platform {
305
+ type: Platform.PLATFORM_TYPE;
306
+ /**
307
+ * The User-Agent string from a browser
308
+ *
309
+ * Options:
310
+ * - proto3_optional = true
311
+ */
312
+ userAgent?: string;
313
+ /**
314
+ * e.g process.platform from node, e.g. 'darwin', 'linux', 'win32'
315
+ *
316
+ * Options:
317
+ * - proto3_optional = true
318
+ */
319
+ platform?: string;
320
+ /**
321
+ * the Node.JS arch string, e.g. 'arm64', 'x64'
322
+ *
323
+ * Options:
324
+ * - proto3_optional = true
325
+ */
326
+ arch?: string;
327
+ /**
328
+ * the node.js version string
329
+ *
330
+ * Options:
331
+ * - proto3_optional = true
332
+ */
333
+ runtime?: string;
334
+ /**
335
+ * the number of seconds the client has been up
336
+ *
337
+ * Options:
338
+ * - proto3_optional = true
339
+ */
340
+ uptime?: number;
341
+ /**
342
+ * e.g. NodeJS.MemoryUsage, subject to change
343
+ *
344
+ * Options:
345
+ * - proto3_optional = true
346
+ */
347
+ memory?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
348
+ }
349
+ export namespace Platform {
350
+ /**
351
+ * Defined in:
352
+ * {@link file://./../../../dxos/client/services.proto}
353
+ */
354
+ export enum PLATFORM_TYPE {
355
+ BROWSER = 0,
356
+ SHARED_WORKER = 1,
357
+ NODE = 2
358
+ }
359
+ }
125
360
  /**
126
361
  * Defined in:
127
362
  * {@link file://./../../../dxos/client/services.proto}
@@ -147,6 +382,10 @@ export interface SystemService {
147
382
  * Reset the client.
148
383
  */
149
384
  reset: (request: void, options?: RequestOptions) => Promise<void>;
385
+ /**
386
+ * Get platform Information
387
+ */
388
+ getPlatform: (request: void, options?: RequestOptions) => Promise<Platform>;
150
389
  }
151
390
  /**
152
391
  * Defined in:
@@ -195,12 +434,28 @@ export interface SignPresentationRequest {
195
434
  */
196
435
  nonce?: Uint8Array;
197
436
  }
437
+ /**
438
+ * Defined in:
439
+ * {@link file://./../../../dxos/client/services.proto}
440
+ */
441
+ export interface CreateIdentityRequest {
442
+ /**
443
+ * Options:
444
+ * - proto3_optional = true
445
+ */
446
+ profile?: dxos_halo_credentials.ProfileDocument;
447
+ /**
448
+ * Options:
449
+ * - proto3_optional = true
450
+ */
451
+ useAutomerge?: boolean;
452
+ }
198
453
  /**
199
454
  * Defined in:
200
455
  * {@link file://./../../../dxos/client/services.proto}
201
456
  */
202
457
  export interface IdentityService {
203
- createIdentity: (request: dxos_halo_credentials.ProfileDocument, options?: RequestOptions) => Promise<Identity>;
458
+ createIdentity: (request: CreateIdentityRequest, options?: RequestOptions) => Promise<Identity>;
204
459
  recoverIdentity: (request: RecoverIdentityRequest, options?: RequestOptions) => Promise<Identity>;
205
460
  queryIdentity: (request: void, options?: RequestOptions) => Stream<QueryIdentityResponse>;
206
461
  updateProfile: (request: dxos_halo_credentials.ProfileDocument, options?: RequestOptions) => Promise<Identity>;
@@ -623,6 +878,13 @@ export interface Invitation {
623
878
  * - proto3_optional = true
624
879
  */
625
880
  authCode?: string;
881
+ /**
882
+ * Path or identifier to navigate to after successful authentication.
883
+ *
884
+ * Options:
885
+ * - proto3_optional = true
886
+ */
887
+ target?: string;
626
888
  }
627
889
  export namespace Invitation {
628
890
  /**
@@ -742,6 +1004,7 @@ export enum ConnectionState {
742
1004
  export interface NetworkStatus {
743
1005
  swarm: ConnectionState;
744
1006
  signaling?: NetworkStatus.Signal[];
1007
+ connectionInfo?: dxos_devtools_swarm.SwarmInfo[];
745
1008
  }
746
1009
  export namespace NetworkStatus {
747
1010
  /**
@@ -768,178 +1031,3 @@ export interface NetworkService {
768
1031
  updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
769
1032
  queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
770
1033
  }
771
- /**
772
- * Defined in:
773
- * {@link file://./../../../dxos/client/logging.proto}
774
- */
775
- export interface Metrics {
776
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
777
- values?: Metrics.KeyPair[];
778
- }
779
- export namespace Metrics {
780
- /**
781
- * Defined in:
782
- * {@link file://./../../../dxos/client/logging.proto}
783
- */
784
- export interface KeyPair {
785
- /**
786
- * Options:
787
- * - proto3_optional = true
788
- */
789
- key?: string;
790
- /**
791
- * Options:
792
- * - proto3_optional = true
793
- */
794
- value?: dxos_value.Value;
795
- /**
796
- * Options:
797
- * - proto3_optional = true
798
- */
799
- stats?: dxos_value.Stats;
800
- }
801
- }
802
- /**
803
- * Defined in:
804
- * {@link file://./../../../dxos/client/logging.proto}
805
- */
806
- export interface ControlMetricsRequest {
807
- /**
808
- * Options:
809
- * - proto3_optional = true
810
- */
811
- reset?: boolean;
812
- /**
813
- * Options:
814
- * - proto3_optional = true
815
- */
816
- record?: boolean;
817
- }
818
- /**
819
- * Defined in:
820
- * {@link file://./../../../dxos/client/logging.proto}
821
- */
822
- export interface ControlMetricsResponse {
823
- /**
824
- * Options:
825
- * - proto3_optional = true
826
- */
827
- recording?: boolean;
828
- }
829
- /**
830
- * Defined in:
831
- * {@link file://./../../../dxos/client/logging.proto}
832
- */
833
- export interface QueryMetricsRequest {
834
- /**
835
- * Options:
836
- * - proto3_optional = true
837
- */
838
- interval?: number;
839
- }
840
- /**
841
- * Defined in:
842
- * {@link file://./../../../dxos/client/logging.proto}
843
- */
844
- export interface QueryMetricsResponse {
845
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
846
- metrics: Metrics;
847
- }
848
- /**
849
- * Defined in:
850
- * {@link file://./../../../dxos/client/logging.proto}
851
- */
852
- export enum LogLevel {
853
- TRACE = 5,
854
- DEBUG = 10,
855
- INFO = 11,
856
- WARN = 12,
857
- ERROR = 13
858
- }
859
- /**
860
- * Defined in:
861
- * {@link file://./../../../dxos/client/logging.proto}
862
- */
863
- export interface QueryLogsRequest {
864
- filters?: QueryLogsRequest.Filter[];
865
- /**
866
- * Options:
867
- * - proto3_optional = true
868
- */
869
- options?: QueryLogsRequest.MatchingOptions;
870
- }
871
- export namespace QueryLogsRequest {
872
- /**
873
- * Defined in:
874
- * {@link file://./../../../dxos/client/logging.proto}
875
- */
876
- export enum MatchingOptions {
877
- INCLUSIVE = 1,
878
- EXPLICIT = 2
879
- }
880
- /**
881
- * Defined in:
882
- * {@link file://./../../../dxos/client/logging.proto}
883
- */
884
- export interface Filter {
885
- level: LogLevel;
886
- /**
887
- * Options:
888
- * - proto3_optional = true
889
- */
890
- pattern?: string;
891
- }
892
- }
893
- /**
894
- * Defined in:
895
- * {@link file://./../../../dxos/client/logging.proto}
896
- */
897
- export interface LogEntry {
898
- level: LogLevel;
899
- message: string;
900
- /**
901
- * Options:
902
- * - proto3_optional = true
903
- */
904
- context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
905
- /**
906
- * Options:
907
- * - proto3_optional = true
908
- */
909
- meta?: LogEntry.Meta;
910
- /**
911
- * Options:
912
- * - proto3_optional = true
913
- */
914
- error?: dxos_error.Error;
915
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
916
- }
917
- export namespace LogEntry {
918
- /**
919
- * Defined in:
920
- * {@link file://./../../../dxos/client/logging.proto}
921
- */
922
- export interface Meta {
923
- file: string;
924
- line: number;
925
- /**
926
- * Options:
927
- * - proto3_optional = true
928
- */
929
- scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
930
- /**
931
- * Options:
932
- * - proto3_optional = true
933
- */
934
- resourceId?: number;
935
- }
936
- }
937
- /**
938
- * Defined in:
939
- * {@link file://./../../../dxos/client/logging.proto}
940
- */
941
- export interface LoggingService {
942
- controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
943
- queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
944
- queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
945
- }
@@ -757,6 +757,11 @@ export namespace Runtime {
757
757
  * - proto3_optional = true
758
758
  */
759
759
  faasd?: Runtime.Services.Faasd;
760
+ /**
761
+ * Options:
762
+ * - proto3_optional = true
763
+ */
764
+ agentHosting?: Runtime.Services.AgentHosting;
760
765
  }
761
766
  export namespace Services {
762
767
  /**
@@ -1006,6 +1011,22 @@ export namespace Runtime {
1006
1011
  */
1007
1012
  password?: string;
1008
1013
  }
1014
+ /**
1015
+ * Defined in:
1016
+ * {@link file://./../../dxos/config.proto}
1017
+ */
1018
+ export interface AgentHosting {
1019
+ /**
1020
+ * Options:
1021
+ * - proto3_optional = true
1022
+ */
1023
+ server?: string;
1024
+ /**
1025
+ * Options:
1026
+ * - proto3_optional = true
1027
+ */
1028
+ type?: string;
1029
+ }
1009
1030
  }
1010
1031
  /**
1011
1032
  * Defined in: