@dxos/protocols 0.3.3-main.d66bdd4 → 0.3.3-main.e5ff429

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 (110) hide show
  1. package/dist/cjs/src/proto/gen/dxos/agent/dashboard.d.ts +37 -13
  2. package/dist/cjs/src/proto/gen/dxos/agent/dashboard.d.ts.map +1 -1
  3. package/dist/cjs/src/proto/gen/dxos/agent/dashboard.js +5 -5
  4. package/dist/cjs/src/proto/gen/dxos/agent/dashboard.js.map +1 -1
  5. package/dist/cjs/src/proto/gen/dxos/agent/{indexing.d.ts → search.d.ts} +6 -6
  6. package/dist/cjs/src/proto/gen/dxos/agent/search.d.ts.map +1 -0
  7. package/dist/cjs/src/proto/gen/dxos/agent/{indexing.js → search.js} +2 -2
  8. package/dist/cjs/src/proto/gen/dxos/agent/search.js.map +1 -0
  9. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +175 -175
  10. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  11. package/dist/cjs/src/proto/gen/dxos/client/services.js +25 -25
  12. package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
  13. package/dist/cjs/src/proto/gen/dxos/config.d.ts +28 -3
  14. package/dist/cjs/src/proto/gen/dxos/config.d.ts.map +1 -1
  15. package/dist/cjs/src/proto/gen/dxos/config.js.map +1 -1
  16. package/dist/cjs/src/proto/gen/google/protobuf.d.ts +8 -8
  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 +13 -11
  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/agent/dashboard.d.ts +37 -13
  25. package/dist/esm/src/proto/gen/dxos/agent/dashboard.d.ts.map +1 -1
  26. package/dist/esm/src/proto/gen/dxos/agent/dashboard.js +4 -4
  27. package/dist/esm/src/proto/gen/dxos/agent/dashboard.js.map +1 -1
  28. package/dist/esm/src/proto/gen/dxos/agent/{indexing.d.ts → search.d.ts} +6 -6
  29. package/dist/esm/src/proto/gen/dxos/agent/search.d.ts.map +1 -0
  30. package/dist/esm/src/proto/gen/dxos/agent/{indexing.js → search.js} +2 -2
  31. package/dist/esm/src/proto/gen/dxos/agent/search.js.map +1 -0
  32. package/dist/esm/src/proto/gen/dxos/client/services.d.ts +175 -175
  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 +24 -24
  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 +28 -3
  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/google/protobuf.d.ts +8 -8
  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 +13 -11
  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 +5 -5
  47. package/src/proto/dxos/agent/dashboard.proto +22 -8
  48. package/src/proto/dxos/agent/{indexing.proto → search.proto} +1 -2
  49. package/src/proto/dxos/config.proto +9 -3
  50. package/src/proto/gen/dxos/agent/dashboard.ts +36 -14
  51. package/src/proto/gen/dxos/agent/functions.ts +1 -1
  52. package/src/proto/gen/dxos/agent/{indexing.ts → search.ts} +5 -5
  53. package/src/proto/gen/dxos/bot.ts +1 -1
  54. package/src/proto/gen/dxos/client/services.ts +176 -176
  55. package/src/proto/gen/dxos/config.ts +29 -4
  56. package/src/proto/gen/dxos/devtools/host.ts +1 -1
  57. package/src/proto/gen/dxos/devtools/swarm.ts +1 -1
  58. package/src/proto/gen/dxos/echo/blob.ts +1 -1
  59. package/src/proto/gen/dxos/echo/feed.ts +1 -1
  60. package/src/proto/gen/dxos/echo/metadata.ts +1 -1
  61. package/src/proto/gen/dxos/echo/model/document.ts +1 -1
  62. package/src/proto/gen/dxos/echo/model/messenger.ts +1 -1
  63. package/src/proto/gen/dxos/echo/model/text.ts +1 -1
  64. package/src/proto/gen/dxos/echo/object.ts +1 -1
  65. package/src/proto/gen/dxos/echo/service.ts +1 -1
  66. package/src/proto/gen/dxos/echo/snapshot.ts +1 -1
  67. package/src/proto/gen/dxos/echo/timeframe.ts +1 -1
  68. package/src/proto/gen/dxos/error.ts +1 -1
  69. package/src/proto/gen/dxos/gravity.ts +1 -1
  70. package/src/proto/gen/dxos/halo/credentials/auth.ts +1 -1
  71. package/src/proto/gen/dxos/halo/credentials/greet.ts +1 -1
  72. package/src/proto/gen/dxos/halo/credentials/identity.ts +1 -1
  73. package/src/proto/gen/dxos/halo/credentials.ts +1 -1
  74. package/src/proto/gen/dxos/halo/invitations.ts +1 -1
  75. package/src/proto/gen/dxos/halo/keyring.ts +1 -1
  76. package/src/proto/gen/dxos/halo/keys.ts +1 -1
  77. package/src/proto/gen/dxos/halo/signed.ts +1 -1
  78. package/src/proto/gen/dxos/iframe.ts +1 -1
  79. package/src/proto/gen/dxos/keys.ts +1 -1
  80. package/src/proto/gen/dxos/mesh/bridge.ts +1 -1
  81. package/src/proto/gen/dxos/mesh/broadcast.ts +1 -1
  82. package/src/proto/gen/dxos/mesh/messaging.ts +1 -1
  83. package/src/proto/gen/dxos/mesh/muxer.ts +1 -1
  84. package/src/proto/gen/dxos/mesh/presence.ts +1 -1
  85. package/src/proto/gen/dxos/mesh/protocol.ts +1 -1
  86. package/src/proto/gen/dxos/mesh/replicator.ts +1 -1
  87. package/src/proto/gen/dxos/mesh/signal.ts +1 -1
  88. package/src/proto/gen/dxos/mesh/swarm.ts +1 -1
  89. package/src/proto/gen/dxos/mesh/teleport/auth.ts +1 -1
  90. package/src/proto/gen/dxos/mesh/teleport/blobsync.ts +1 -1
  91. package/src/proto/gen/dxos/mesh/teleport/control.ts +1 -1
  92. package/src/proto/gen/dxos/mesh/teleport/gossip.ts +1 -1
  93. package/src/proto/gen/dxos/mesh/teleport/notarization.ts +1 -1
  94. package/src/proto/gen/dxos/mesh/teleport/replicator.ts +1 -1
  95. package/src/proto/gen/dxos/registry.ts +1 -1
  96. package/src/proto/gen/dxos/rpc.ts +1 -1
  97. package/src/proto/gen/dxos/service/publisher.ts +1 -1
  98. package/src/proto/gen/dxos/service/supervisor.ts +1 -1
  99. package/src/proto/gen/dxos/service/tunnel.ts +1 -1
  100. package/src/proto/gen/dxos/tracing.ts +1 -1
  101. package/src/proto/gen/dxos/type.ts +1 -1
  102. package/src/proto/gen/dxos/value.ts +1 -1
  103. package/src/proto/gen/example/testing/data.ts +1 -1
  104. package/src/proto/gen/example/testing/rpc.ts +1 -1
  105. package/src/proto/gen/google/protobuf.ts +9 -9
  106. package/src/proto/gen/index.ts +14 -12
  107. package/dist/cjs/src/proto/gen/dxos/agent/indexing.d.ts.map +0 -1
  108. package/dist/cjs/src/proto/gen/dxos/agent/indexing.js.map +0 -1
  109. package/dist/esm/src/proto/gen/dxos/agent/indexing.d.ts.map +0 -1
  110. package/dist/esm/src/proto/gen/dxos/agent/indexing.js.map +0 -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;AAyDhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AA+f7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,ms7FAAms7F,CAAC,CAAC,CAAC;AAC5v7F,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;AAyDhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAigB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,km8FAAkm8F,CAAC,CAAC,CAAC;AAC3p8F,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.3-main.d66bdd4",
3
+ "version": "0.3.3-main.e5ff429",
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.3.3-main.d66bdd4",
37
- "@dxos/invariant": "0.3.3-main.d66bdd4",
38
- "@dxos/keys": "0.3.3-main.d66bdd4",
39
- "@dxos/timeframe": "0.3.3-main.d66bdd4"
36
+ "@dxos/codec-protobuf": "0.3.3-main.e5ff429",
37
+ "@dxos/invariant": "0.3.3-main.e5ff429",
38
+ "@dxos/keys": "0.3.3-main.e5ff429",
39
+ "@dxos/timeframe": "0.3.3-main.e5ff429"
40
40
  },
41
41
  "devDependencies": {
42
42
  "glob": "~7.1.6"
@@ -5,22 +5,36 @@
5
5
  syntax = "proto3";
6
6
 
7
7
  package dxos.agent.dashboard;
8
+ import "google/protobuf/empty.proto";
9
+ import "google/protobuf/struct.proto";
8
10
 
9
- message DashboardRequest {
11
+ import "dxos/config.proto";
10
12
 
11
- }
12
-
13
- message DashboardResponse {
13
+ message AgentStatus {
14
14
  enum Status {
15
15
  ON = 0;
16
16
  OFF = 1;
17
17
  }
18
18
 
19
- message Plugin {
20
- string name = 1;
21
- string status = 2;
19
+ message Memory {
20
+ /// The total amount of system memory in bytes as a string.
21
+ string total = 1;
22
+ /// The amount of free system memory in bytes as a string.
23
+ string free = 2;
24
+ string ram_usage = 3;
22
25
  }
23
26
 
24
27
  Status status = 1;
25
- repeated Plugin plugins = 2;
28
+ optional Memory memory = 2;
29
+ repeated PluginState plugins = 3;
26
30
  }
31
+
32
+ message PluginState {
33
+ string plugin_id = 1;
34
+ google.protobuf.Struct plugin_config = 2;
35
+ }
36
+
37
+ service DashboardService {
38
+ rpc status(google.protobuf.Empty) returns (stream AgentStatus);
39
+ rpc changePluginConfig(PluginState) returns (google.protobuf.Empty);
40
+ }
@@ -4,7 +4,7 @@
4
4
 
5
5
  syntax = "proto3";
6
6
 
7
- package dxos.agent.indexing;
7
+ package dxos.agent.search;
8
8
 
9
9
  message SearchRequest {
10
10
  enum Type {
@@ -14,7 +14,6 @@ message SearchRequest {
14
14
 
15
15
  string query = 1;
16
16
  Type type = 2;
17
-
18
17
  }
19
18
 
20
19
  message SearchResponse {
@@ -153,7 +153,8 @@ message Runtime {
153
153
  message Agent {
154
154
  message Plugins {
155
155
  message Functions {
156
- int32 port = 1;
156
+ optional bool enabled = 1;
157
+ optional int32 port = 2;
157
158
  }
158
159
 
159
160
  /// Automatic epoch creation.
@@ -174,7 +175,7 @@ message Runtime {
174
175
  }
175
176
 
176
177
  /// Automatic index spaces
177
- message Indexing {
178
+ message Search {
178
179
  optional bool enabled = 1;
179
180
  }
180
181
 
@@ -183,9 +184,14 @@ message Runtime {
183
184
  optional bool enabled = 1;
184
185
  }
185
186
 
187
+ message EchoProxy {
188
+ optional bool enabled = 1;
189
+ optional int32 port = 2;
190
+ }
191
+
186
192
  optional Functions functions = 1;
187
193
  optional EpochMontior epoch_monitor = 2;
188
- optional Indexing indexing = 3;
194
+ optional Search search = 3;
189
195
  optional Dashboard dashboard = 4;
190
196
  }
191
197
 
@@ -1,7 +1,7 @@
1
1
  import type { Stream } from "@dxos/codec-protobuf";
2
2
  import substitutions from "../../../substitutions";
3
3
  import * as dxos_agent_functions from "./functions";
4
- import * as dxos_agent_indexing from "./indexing";
4
+ import * as dxos_agent_search from "./search";
5
5
  import * as dxos_bot from "../bot";
6
6
  import * as dxos_client_services from "../client/services";
7
7
  import * as dxos_config from "../config";
@@ -59,17 +59,16 @@ import * as google_protobuf from "../../google/protobuf";
59
59
  * Defined in:
60
60
  * {@link file://./../../../dxos/agent/dashboard.proto}
61
61
  */
62
- export interface DashboardRequest {
63
- }
64
- /**
65
- * Defined in:
66
- * {@link file://./../../../dxos/agent/dashboard.proto}
67
- */
68
- export interface DashboardResponse {
69
- status: DashboardResponse.Status;
70
- plugins?: DashboardResponse.Plugin[];
62
+ export interface AgentStatus {
63
+ status: AgentStatus.Status;
64
+ /**
65
+ * Options:
66
+ * - proto3_optional = true
67
+ */
68
+ memory?: AgentStatus.Memory;
69
+ plugins?: PluginState[];
71
70
  }
72
- export namespace DashboardResponse {
71
+ export namespace AgentStatus {
73
72
  /**
74
73
  * Defined in:
75
74
  * {@link file://./../../../dxos/agent/dashboard.proto}
@@ -82,8 +81,31 @@ export namespace DashboardResponse {
82
81
  * Defined in:
83
82
  * {@link file://./../../../dxos/agent/dashboard.proto}
84
83
  */
85
- export interface Plugin {
86
- name: string;
87
- status: string;
84
+ export interface Memory {
85
+ /**
86
+ * The total amount of system memory in bytes as a string.
87
+ */
88
+ total: string;
89
+ /**
90
+ * The amount of free system memory in bytes as a string.
91
+ */
92
+ free: string;
93
+ ramUsage: string;
88
94
  }
89
95
  }
96
+ /**
97
+ * Defined in:
98
+ * {@link file://./../../../dxos/agent/dashboard.proto}
99
+ */
100
+ export interface PluginState {
101
+ pluginId: string;
102
+ pluginConfig: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
103
+ }
104
+ /**
105
+ * Defined in:
106
+ * {@link file://./../../../dxos/agent/dashboard.proto}
107
+ */
108
+ export interface DashboardService {
109
+ status: (request: void) => Stream<AgentStatus>;
110
+ changePluginConfig: (request: PluginState) => Promise<void>;
111
+ }
@@ -1,7 +1,7 @@
1
1
  import type { Stream } from "@dxos/codec-protobuf";
2
2
  import substitutions from "../../../substitutions";
3
3
  import * as dxos_agent_dashboard from "./dashboard";
4
- import * as dxos_agent_indexing from "./indexing";
4
+ import * as dxos_agent_search from "./search";
5
5
  import * as dxos_bot from "../bot";
6
6
  import * as dxos_client_services from "../client/services";
7
7
  import * as dxos_config from "../config";
@@ -57,7 +57,7 @@ import * as example_testing_rpc from "../../example/testing/rpc";
57
57
  import * as google_protobuf from "../../google/protobuf";
58
58
  /**
59
59
  * Defined in:
60
- * {@link file://./../../../dxos/agent/indexing.proto}
60
+ * {@link file://./../../../dxos/agent/search.proto}
61
61
  */
62
62
  export interface SearchRequest {
63
63
  query: string;
@@ -66,7 +66,7 @@ export interface SearchRequest {
66
66
  export namespace SearchRequest {
67
67
  /**
68
68
  * Defined in:
69
- * {@link file://./../../../dxos/agent/indexing.proto}
69
+ * {@link file://./../../../dxos/agent/search.proto}
70
70
  */
71
71
  export enum Type {
72
72
  EXACT = 0,
@@ -75,7 +75,7 @@ export namespace SearchRequest {
75
75
  }
76
76
  /**
77
77
  * Defined in:
78
- * {@link file://./../../../dxos/agent/indexing.proto}
78
+ * {@link file://./../../../dxos/agent/search.proto}
79
79
  */
80
80
  export interface SearchResponse {
81
81
  results?: SearchResponse.Result[];
@@ -83,7 +83,7 @@ export interface SearchResponse {
83
83
  export namespace SearchResponse {
84
84
  /**
85
85
  * Defined in:
86
- * {@link file://./../../../dxos/agent/indexing.proto}
86
+ * {@link file://./../../../dxos/agent/search.proto}
87
87
  */
88
88
  export interface Result {
89
89
  spaceKey: string;
@@ -94,7 +94,7 @@ export namespace SearchResponse {
94
94
  export namespace Result {
95
95
  /**
96
96
  * Defined in:
97
- * {@link file://./../../../dxos/agent/indexing.proto}
97
+ * {@link file://./../../../dxos/agent/search.proto}
98
98
  */
99
99
  export interface Match {
100
100
  term: string;
@@ -2,7 +2,7 @@ import type { Stream } from "@dxos/codec-protobuf";
2
2
  import substitutions from "../../substitutions";
3
3
  import * as dxos_agent_dashboard from "./agent/dashboard";
4
4
  import * as dxos_agent_functions from "./agent/functions";
5
- import * as dxos_agent_indexing from "./agent/indexing";
5
+ import * as dxos_agent_search from "./agent/search";
6
6
  import * as dxos_client_services from "./client/services";
7
7
  import * as dxos_config from "./config";
8
8
  import * as dxos_devtools_host from "./devtools/host";
@@ -2,7 +2,7 @@ import type { Stream } from "@dxos/codec-protobuf";
2
2
  import substitutions from "../../../substitutions";
3
3
  import * as dxos_agent_dashboard from "../agent/dashboard";
4
4
  import * as dxos_agent_functions from "../agent/functions";
5
- import * as dxos_agent_indexing from "../agent/indexing";
5
+ import * as dxos_agent_search from "../agent/search";
6
6
  import * as dxos_bot from "../bot";
7
7
  import * as dxos_config from "../config";
8
8
  import * as dxos_devtools_host from "../devtools/host";
@@ -55,181 +55,6 @@ import * as dxos_value from "../value";
55
55
  import * as example_testing_data from "../../example/testing/data";
56
56
  import * as example_testing_rpc from "../../example/testing/rpc";
57
57
  import * as google_protobuf from "../../google/protobuf";
58
- /**
59
- * Defined in:
60
- * {@link file://./../../../dxos/client/logging.proto}
61
- */
62
- export interface Metrics {
63
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
64
- values?: Metrics.KeyPair[];
65
- }
66
- export namespace Metrics {
67
- /**
68
- * Defined in:
69
- * {@link file://./../../../dxos/client/logging.proto}
70
- */
71
- export interface KeyPair {
72
- /**
73
- * Options:
74
- * - proto3_optional = true
75
- */
76
- key?: string;
77
- /**
78
- * Options:
79
- * - proto3_optional = true
80
- */
81
- value?: dxos_value.Value;
82
- /**
83
- * Options:
84
- * - proto3_optional = true
85
- */
86
- stats?: dxos_value.Stats;
87
- }
88
- }
89
- /**
90
- * Defined in:
91
- * {@link file://./../../../dxos/client/logging.proto}
92
- */
93
- export interface ControlMetricsRequest {
94
- /**
95
- * Options:
96
- * - proto3_optional = true
97
- */
98
- reset?: boolean;
99
- /**
100
- * Options:
101
- * - proto3_optional = true
102
- */
103
- record?: boolean;
104
- }
105
- /**
106
- * Defined in:
107
- * {@link file://./../../../dxos/client/logging.proto}
108
- */
109
- export interface ControlMetricsResponse {
110
- /**
111
- * Options:
112
- * - proto3_optional = true
113
- */
114
- recording?: boolean;
115
- }
116
- /**
117
- * Defined in:
118
- * {@link file://./../../../dxos/client/logging.proto}
119
- */
120
- export interface QueryMetricsRequest {
121
- /**
122
- * Options:
123
- * - proto3_optional = true
124
- */
125
- interval?: number;
126
- }
127
- /**
128
- * Defined in:
129
- * {@link file://./../../../dxos/client/logging.proto}
130
- */
131
- export interface QueryMetricsResponse {
132
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
133
- metrics: Metrics;
134
- }
135
- /**
136
- * Defined in:
137
- * {@link file://./../../../dxos/client/logging.proto}
138
- */
139
- export enum LogLevel {
140
- TRACE = 5,
141
- DEBUG = 10,
142
- INFO = 11,
143
- WARN = 12,
144
- ERROR = 13
145
- }
146
- /**
147
- * Defined in:
148
- * {@link file://./../../../dxos/client/logging.proto}
149
- */
150
- export interface QueryLogsRequest {
151
- filters?: QueryLogsRequest.Filter[];
152
- /**
153
- * Options:
154
- * - proto3_optional = true
155
- */
156
- options?: QueryLogsRequest.MatchingOptions;
157
- }
158
- export namespace QueryLogsRequest {
159
- /**
160
- * Defined in:
161
- * {@link file://./../../../dxos/client/logging.proto}
162
- */
163
- export enum MatchingOptions {
164
- INCLUSIVE = 1,
165
- EXPLICIT = 2
166
- }
167
- /**
168
- * Defined in:
169
- * {@link file://./../../../dxos/client/logging.proto}
170
- */
171
- export interface Filter {
172
- level: LogLevel;
173
- /**
174
- * Options:
175
- * - proto3_optional = true
176
- */
177
- pattern?: string;
178
- }
179
- }
180
- /**
181
- * Defined in:
182
- * {@link file://./../../../dxos/client/logging.proto}
183
- */
184
- export interface LogEntry {
185
- level: LogLevel;
186
- message: string;
187
- /**
188
- * Options:
189
- * - proto3_optional = true
190
- */
191
- context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
192
- /**
193
- * Options:
194
- * - proto3_optional = true
195
- */
196
- meta?: LogEntry.Meta;
197
- /**
198
- * Options:
199
- * - proto3_optional = true
200
- */
201
- error?: dxos_error.Error;
202
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
203
- }
204
- export namespace LogEntry {
205
- /**
206
- * Defined in:
207
- * {@link file://./../../../dxos/client/logging.proto}
208
- */
209
- export interface Meta {
210
- file: string;
211
- line: number;
212
- /**
213
- * Options:
214
- * - proto3_optional = true
215
- */
216
- scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
217
- /**
218
- * Options:
219
- * - proto3_optional = true
220
- */
221
- resourceId?: number;
222
- }
223
- }
224
- /**
225
- * Defined in:
226
- * {@link file://./../../../dxos/client/logging.proto}
227
- */
228
- export interface LoggingService {
229
- controlMetrics: (request: ControlMetricsRequest) => Promise<ControlMetricsResponse>;
230
- queryMetrics: (request: QueryMetricsRequest) => Stream<QueryMetricsResponse>;
231
- queryLogs: (request: QueryLogsRequest) => Stream<LogEntry>;
232
- }
233
58
  /**
234
59
  * Defined in:
235
60
  * {@link file://./../../../dxos/client/services.proto}
@@ -924,3 +749,178 @@ export interface NetworkService {
924
749
  updateConfig: (request: UpdateConfigRequest) => Promise<void>;
925
750
  queryStatus: (request: void) => Stream<NetworkStatus>;
926
751
  }
752
+ /**
753
+ * Defined in:
754
+ * {@link file://./../../../dxos/client/logging.proto}
755
+ */
756
+ export interface Metrics {
757
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
758
+ values?: Metrics.KeyPair[];
759
+ }
760
+ export namespace Metrics {
761
+ /**
762
+ * Defined in:
763
+ * {@link file://./../../../dxos/client/logging.proto}
764
+ */
765
+ export interface KeyPair {
766
+ /**
767
+ * Options:
768
+ * - proto3_optional = true
769
+ */
770
+ key?: string;
771
+ /**
772
+ * Options:
773
+ * - proto3_optional = true
774
+ */
775
+ value?: dxos_value.Value;
776
+ /**
777
+ * Options:
778
+ * - proto3_optional = true
779
+ */
780
+ stats?: dxos_value.Stats;
781
+ }
782
+ }
783
+ /**
784
+ * Defined in:
785
+ * {@link file://./../../../dxos/client/logging.proto}
786
+ */
787
+ export interface ControlMetricsRequest {
788
+ /**
789
+ * Options:
790
+ * - proto3_optional = true
791
+ */
792
+ reset?: boolean;
793
+ /**
794
+ * Options:
795
+ * - proto3_optional = true
796
+ */
797
+ record?: boolean;
798
+ }
799
+ /**
800
+ * Defined in:
801
+ * {@link file://./../../../dxos/client/logging.proto}
802
+ */
803
+ export interface ControlMetricsResponse {
804
+ /**
805
+ * Options:
806
+ * - proto3_optional = true
807
+ */
808
+ recording?: boolean;
809
+ }
810
+ /**
811
+ * Defined in:
812
+ * {@link file://./../../../dxos/client/logging.proto}
813
+ */
814
+ export interface QueryMetricsRequest {
815
+ /**
816
+ * Options:
817
+ * - proto3_optional = true
818
+ */
819
+ interval?: number;
820
+ }
821
+ /**
822
+ * Defined in:
823
+ * {@link file://./../../../dxos/client/logging.proto}
824
+ */
825
+ export interface QueryMetricsResponse {
826
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
827
+ metrics: Metrics;
828
+ }
829
+ /**
830
+ * Defined in:
831
+ * {@link file://./../../../dxos/client/logging.proto}
832
+ */
833
+ export enum LogLevel {
834
+ TRACE = 5,
835
+ DEBUG = 10,
836
+ INFO = 11,
837
+ WARN = 12,
838
+ ERROR = 13
839
+ }
840
+ /**
841
+ * Defined in:
842
+ * {@link file://./../../../dxos/client/logging.proto}
843
+ */
844
+ export interface QueryLogsRequest {
845
+ filters?: QueryLogsRequest.Filter[];
846
+ /**
847
+ * Options:
848
+ * - proto3_optional = true
849
+ */
850
+ options?: QueryLogsRequest.MatchingOptions;
851
+ }
852
+ export namespace QueryLogsRequest {
853
+ /**
854
+ * Defined in:
855
+ * {@link file://./../../../dxos/client/logging.proto}
856
+ */
857
+ export enum MatchingOptions {
858
+ INCLUSIVE = 1,
859
+ EXPLICIT = 2
860
+ }
861
+ /**
862
+ * Defined in:
863
+ * {@link file://./../../../dxos/client/logging.proto}
864
+ */
865
+ export interface Filter {
866
+ level: LogLevel;
867
+ /**
868
+ * Options:
869
+ * - proto3_optional = true
870
+ */
871
+ pattern?: string;
872
+ }
873
+ }
874
+ /**
875
+ * Defined in:
876
+ * {@link file://./../../../dxos/client/logging.proto}
877
+ */
878
+ export interface LogEntry {
879
+ level: LogLevel;
880
+ message: string;
881
+ /**
882
+ * Options:
883
+ * - proto3_optional = true
884
+ */
885
+ context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
886
+ /**
887
+ * Options:
888
+ * - proto3_optional = true
889
+ */
890
+ meta?: LogEntry.Meta;
891
+ /**
892
+ * Options:
893
+ * - proto3_optional = true
894
+ */
895
+ error?: dxos_error.Error;
896
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
897
+ }
898
+ export namespace LogEntry {
899
+ /**
900
+ * Defined in:
901
+ * {@link file://./../../../dxos/client/logging.proto}
902
+ */
903
+ export interface Meta {
904
+ file: string;
905
+ line: number;
906
+ /**
907
+ * Options:
908
+ * - proto3_optional = true
909
+ */
910
+ scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
911
+ /**
912
+ * Options:
913
+ * - proto3_optional = true
914
+ */
915
+ resourceId?: number;
916
+ }
917
+ }
918
+ /**
919
+ * Defined in:
920
+ * {@link file://./../../../dxos/client/logging.proto}
921
+ */
922
+ export interface LoggingService {
923
+ controlMetrics: (request: ControlMetricsRequest) => Promise<ControlMetricsResponse>;
924
+ queryMetrics: (request: QueryMetricsRequest) => Stream<QueryMetricsResponse>;
925
+ queryLogs: (request: QueryLogsRequest) => Stream<LogEntry>;
926
+ }
@@ -2,7 +2,7 @@ import type { Stream } from "@dxos/codec-protobuf";
2
2
  import substitutions from "../../substitutions";
3
3
  import * as dxos_agent_dashboard from "./agent/dashboard";
4
4
  import * as dxos_agent_functions from "./agent/functions";
5
- import * as dxos_agent_indexing from "./agent/indexing";
5
+ import * as dxos_agent_search from "./agent/search";
6
6
  import * as dxos_bot from "./bot";
7
7
  import * as dxos_client_services from "./client/services";
8
8
  import * as dxos_devtools_host from "./devtools/host";
@@ -456,7 +456,7 @@ export namespace Runtime {
456
456
  * Options:
457
457
  * - proto3_optional = true
458
458
  */
459
- indexing?: Runtime.Agent.Plugins.Indexing;
459
+ search?: Runtime.Agent.Plugins.Search;
460
460
  /**
461
461
  * Options:
462
462
  * - proto3_optional = true
@@ -469,7 +469,16 @@ export namespace Runtime {
469
469
  * {@link file://./../../dxos/config.proto}
470
470
  */
471
471
  export interface Functions {
472
- port: number;
472
+ /**
473
+ * Options:
474
+ * - proto3_optional = true
475
+ */
476
+ enabled?: boolean;
477
+ /**
478
+ * Options:
479
+ * - proto3_optional = true
480
+ */
481
+ port?: number;
473
482
  }
474
483
  /**
475
484
  * Automatic epoch creation.
@@ -518,7 +527,7 @@ export namespace Runtime {
518
527
  * Defined in:
519
528
  * {@link file://./../../dxos/config.proto}
520
529
  */
521
- export interface Indexing {
530
+ export interface Search {
522
531
  /**
523
532
  * Options:
524
533
  * - proto3_optional = true
@@ -538,6 +547,22 @@ export namespace Runtime {
538
547
  */
539
548
  enabled?: boolean;
540
549
  }
550
+ /**
551
+ * Defined in:
552
+ * {@link file://./../../dxos/config.proto}
553
+ */
554
+ export interface EchoProxy {
555
+ /**
556
+ * Options:
557
+ * - proto3_optional = true
558
+ */
559
+ enabled?: boolean;
560
+ /**
561
+ * Options:
562
+ * - proto3_optional = true
563
+ */
564
+ port?: number;
565
+ }
541
566
  }
542
567
  }
543
568
  /**