@dxos/protocols 0.1.52 → 0.1.53-main.01cbc6b

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 (126) hide show
  1. package/dist/cjs/src/proto/gen/dxos/{functions.d.ts → agent/functions.d.ts} +5 -5
  2. package/dist/cjs/src/proto/gen/dxos/agent/functions.d.ts.map +1 -0
  3. package/dist/cjs/src/proto/gen/dxos/agent/functions.js.map +1 -0
  4. package/dist/cjs/src/proto/gen/dxos/bot.d.ts.map +1 -1
  5. package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +7 -3
  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 +3 -1
  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 +25 -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/devtools/host.d.ts.map +1 -1
  13. package/dist/cjs/src/proto/gen/dxos/devtools/swarm.d.ts +13 -0
  14. package/dist/cjs/src/proto/gen/dxos/devtools/swarm.d.ts.map +1 -1
  15. package/dist/cjs/src/proto/gen/dxos/echo/feed.d.ts.map +1 -1
  16. package/dist/cjs/src/proto/gen/dxos/echo/metadata.d.ts +8 -0
  17. package/dist/cjs/src/proto/gen/dxos/echo/metadata.d.ts.map +1 -1
  18. package/dist/cjs/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
  19. package/dist/cjs/src/proto/gen/dxos/echo/snapshot.d.ts.map +1 -1
  20. package/dist/cjs/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
  21. package/dist/cjs/src/proto/gen/dxos/rpc.d.ts.map +1 -1
  22. package/dist/cjs/src/proto/gen/dxos/service/publisher.d.ts.map +1 -1
  23. package/dist/cjs/src/proto/gen/dxos/service/supervisor.d.ts.map +1 -1
  24. package/dist/cjs/src/proto/gen/index.d.ts +9 -6
  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/src/proto/substitutions.js +2 -2
  29. package/dist/cjs/src/proto/substitutions.js.map +1 -1
  30. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  31. package/dist/esm/src/proto/gen/dxos/{functions.d.ts → agent/functions.d.ts} +5 -5
  32. package/dist/esm/src/proto/gen/dxos/agent/functions.d.ts.map +1 -0
  33. package/dist/esm/src/proto/gen/dxos/agent/functions.js.map +1 -0
  34. package/dist/esm/src/proto/gen/dxos/bot.d.ts.map +1 -1
  35. package/dist/esm/src/proto/gen/dxos/client/services.d.ts +7 -3
  36. package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  37. package/dist/esm/src/proto/gen/dxos/client/services.js +3 -1
  38. package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
  39. package/dist/esm/src/proto/gen/dxos/config.d.ts +25 -0
  40. package/dist/esm/src/proto/gen/dxos/config.d.ts.map +1 -1
  41. package/dist/esm/src/proto/gen/dxos/config.js.map +1 -1
  42. package/dist/esm/src/proto/gen/dxos/devtools/host.d.ts.map +1 -1
  43. package/dist/esm/src/proto/gen/dxos/devtools/swarm.d.ts +13 -0
  44. package/dist/esm/src/proto/gen/dxos/devtools/swarm.d.ts.map +1 -1
  45. package/dist/esm/src/proto/gen/dxos/echo/feed.d.ts.map +1 -1
  46. package/dist/esm/src/proto/gen/dxos/echo/metadata.d.ts +8 -0
  47. package/dist/esm/src/proto/gen/dxos/echo/metadata.d.ts.map +1 -1
  48. package/dist/esm/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
  49. package/dist/esm/src/proto/gen/dxos/echo/snapshot.d.ts.map +1 -1
  50. package/dist/esm/src/proto/gen/dxos/halo/invitations.d.ts.map +1 -1
  51. package/dist/esm/src/proto/gen/dxos/rpc.d.ts.map +1 -1
  52. package/dist/esm/src/proto/gen/dxos/service/publisher.d.ts.map +1 -1
  53. package/dist/esm/src/proto/gen/dxos/service/supervisor.d.ts.map +1 -1
  54. package/dist/esm/src/proto/gen/index.d.ts +9 -6
  55. package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
  56. package/dist/esm/src/proto/gen/index.js +1 -1
  57. package/dist/esm/src/proto/gen/index.js.map +1 -1
  58. package/dist/esm/src/proto/substitutions.js +2 -2
  59. package/dist/esm/src/proto/substitutions.js.map +1 -1
  60. package/package.json +5 -7
  61. package/src/proto/dxos/{functions.proto → agent/functions.proto} +2 -3
  62. package/src/proto/dxos/client/services.proto +23 -3
  63. package/src/proto/dxos/config.proto +9 -0
  64. package/src/proto/dxos/devtools/swarm.proto +8 -0
  65. package/src/proto/dxos/echo/metadata.proto +3 -0
  66. package/src/proto/gen/dxos/agent/functions.ts +90 -0
  67. package/src/proto/gen/dxos/bot.ts +1 -1
  68. package/src/proto/gen/dxos/client/services.ts +8 -3
  69. package/src/proto/gen/dxos/config.ts +26 -1
  70. package/src/proto/gen/dxos/devtools/host.ts +1 -1
  71. package/src/proto/gen/dxos/devtools/swarm.ts +14 -1
  72. package/src/proto/gen/dxos/echo/blob.ts +1 -1
  73. package/src/proto/gen/dxos/echo/feed.ts +1 -1
  74. package/src/proto/gen/dxos/echo/metadata.ts +8 -1
  75. package/src/proto/gen/dxos/echo/model/document.ts +1 -1
  76. package/src/proto/gen/dxos/echo/model/messenger.ts +1 -1
  77. package/src/proto/gen/dxos/echo/model/text.ts +1 -1
  78. package/src/proto/gen/dxos/echo/object.ts +1 -1
  79. package/src/proto/gen/dxos/echo/service.ts +1 -1
  80. package/src/proto/gen/dxos/echo/snapshot.ts +1 -1
  81. package/src/proto/gen/dxos/echo/timeframe.ts +1 -1
  82. package/src/proto/gen/dxos/error.ts +1 -1
  83. package/src/proto/gen/dxos/gravity.ts +1 -1
  84. package/src/proto/gen/dxos/halo/credentials/auth.ts +1 -1
  85. package/src/proto/gen/dxos/halo/credentials/greet.ts +1 -1
  86. package/src/proto/gen/dxos/halo/credentials/identity.ts +1 -1
  87. package/src/proto/gen/dxos/halo/credentials.ts +1 -1
  88. package/src/proto/gen/dxos/halo/invitations.ts +1 -1
  89. package/src/proto/gen/dxos/halo/keyring.ts +1 -1
  90. package/src/proto/gen/dxos/halo/keys.ts +1 -1
  91. package/src/proto/gen/dxos/halo/signed.ts +1 -1
  92. package/src/proto/gen/dxos/iframe.ts +1 -1
  93. package/src/proto/gen/dxos/keys.ts +1 -1
  94. package/src/proto/gen/dxos/mesh/bridge.ts +1 -1
  95. package/src/proto/gen/dxos/mesh/broadcast.ts +1 -1
  96. package/src/proto/gen/dxos/mesh/messaging.ts +1 -1
  97. package/src/proto/gen/dxos/mesh/muxer.ts +1 -1
  98. package/src/proto/gen/dxos/mesh/presence.ts +1 -1
  99. package/src/proto/gen/dxos/mesh/protocol.ts +1 -1
  100. package/src/proto/gen/dxos/mesh/replicator.ts +1 -1
  101. package/src/proto/gen/dxos/mesh/signal.ts +1 -1
  102. package/src/proto/gen/dxos/mesh/swarm.ts +1 -1
  103. package/src/proto/gen/dxos/mesh/teleport/auth.ts +1 -1
  104. package/src/proto/gen/dxos/mesh/teleport/blobsync.ts +1 -1
  105. package/src/proto/gen/dxos/mesh/teleport/control.ts +1 -1
  106. package/src/proto/gen/dxos/mesh/teleport/gossip.ts +1 -1
  107. package/src/proto/gen/dxos/mesh/teleport/notarization.ts +1 -1
  108. package/src/proto/gen/dxos/mesh/teleport/replicator.ts +1 -1
  109. package/src/proto/gen/dxos/registry.ts +1 -1
  110. package/src/proto/gen/dxos/rpc.ts +1 -1
  111. package/src/proto/gen/dxos/service/publisher.ts +1 -1
  112. package/src/proto/gen/dxos/service/supervisor.ts +1 -1
  113. package/src/proto/gen/dxos/service/tunnel.ts +1 -1
  114. package/src/proto/gen/dxos/type.ts +1 -1
  115. package/src/proto/gen/example/testing/data.ts +1 -1
  116. package/src/proto/gen/example/testing/rpc.ts +1 -1
  117. package/src/proto/gen/google/protobuf.ts +1 -1
  118. package/src/proto/gen/index.ts +10 -7
  119. package/src/proto/substitutions.ts +2 -2
  120. package/dist/cjs/src/proto/gen/dxos/functions.d.ts.map +0 -1
  121. package/dist/cjs/src/proto/gen/dxos/functions.js.map +0 -1
  122. package/dist/esm/src/proto/gen/dxos/functions.d.ts.map +0 -1
  123. package/dist/esm/src/proto/gen/dxos/functions.js.map +0 -1
  124. package/src/proto/gen/dxos/functions.ts +0 -90
  125. /package/dist/cjs/src/proto/gen/dxos/{functions.js → agent/functions.js} +0 -0
  126. /package/dist/esm/src/proto/gen/dxos/{functions.js → agent/functions.js} +0 -0
@@ -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;AAqDhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAqc7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,y8lFAAy8lF,CAAC,CAAC,CAAC;AAClgmF,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;AAqDhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAwc7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,81lFAA81lF,CAAC,CAAC,CAAC;AACv5lF,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAkB,UAAU,EAAE,aAAa,CAAC,CAAC"}
@@ -7,7 +7,7 @@ import { Timeframe } from '@dxos/timeframe';
7
7
  export const substitutions = {
8
8
  'dxos.keys.PublicKey': {
9
9
  encode: (value) => ({ data: value.asUint8Array() }),
10
- decode: (value) => PublicKey.from(new Uint8Array(value.data)),
10
+ decode: (value) => PublicKey.from(value.data),
11
11
  },
12
12
  // TODO(dmaretskyi): Shouldn't be substituted to PublicKey.
13
13
  'dxos.keys.PrivateKey': {
@@ -20,7 +20,7 @@ export const substitutions = {
20
20
  }),
21
21
  decode: (vector) => new Timeframe((vector.frames ?? [])
22
22
  .filter((frame) => frame.feedKey != null && frame.seq != null)
23
- .map((frame) => [PublicKey.from(new Uint8Array(frame.feedKey)), frame.seq])),
23
+ .map((frame) => [PublicKey.from(frame.feedKey), frame.seq])),
24
24
  },
25
25
  };
26
26
  export default {
@@ -1 +1 @@
1
- {"version":3,"file":"substitutions.js","sourceRoot":"","sources":["../../../../src/proto/substitutions.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AACrG,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,qBAAqB,EAAE;QACrB,MAAM,EAAE,CAAC,KAAgB,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,YAAY,EAAE,EAAE,CAAC;QAC9D,MAAM,EAAE,CAAC,KAAU,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;KACnE;IAED,2DAA2D;IAC3D,sBAAsB,EAAE;QACtB,MAAM,EAAE,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,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AAE,KAAK,CAAC,GAAG,CAAC,CAAC,CACnE;KACJ;CACF,CAAC;AAEF,eAAe;IACb,GAAG,gBAAgB;IACnB,GAAG,mBAAmB;IACtB,GAAG,aAAa;IAChB,GAAG,sBAAsB;CAC1B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/protocols",
3
- "version": "0.1.52",
3
+ "version": "0.1.53-main.01cbc6b",
4
4
  "description": "Protobuf definitions for DXOS protocols.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -33,14 +33,12 @@
33
33
  "src"
34
34
  ],
35
35
  "dependencies": {
36
- "@dxos/codec-protobuf": "0.1.52",
37
- "@dxos/hypercore": "0.1.52",
38
- "@dxos/keys": "0.1.52",
39
- "@dxos/timeframe": "0.1.52"
36
+ "@dxos/codec-protobuf": "0.1.53-main.01cbc6b",
37
+ "@dxos/hypercore": "0.1.53-main.01cbc6b",
38
+ "@dxos/keys": "0.1.53-main.01cbc6b",
39
+ "@dxos/timeframe": "0.1.53-main.01cbc6b"
40
40
  },
41
41
  "devDependencies": {
42
- "@types/debug": "^4.1.7",
43
- "debug": "^4.3.3",
44
42
  "glob": "~7.1.6"
45
43
  },
46
44
  "publishConfig": {
@@ -4,7 +4,7 @@
4
4
 
5
5
  syntax = "proto3";
6
6
 
7
- package dxos.functions;
7
+ package dxos.agent.functions;
8
8
 
9
9
  import "google/protobuf/empty.proto";
10
10
 
@@ -14,7 +14,6 @@ message Function {
14
14
 
15
15
  message RegisterRequest {
16
16
  string endpoint = 1;
17
-
18
17
  repeated Function functions = 2;
19
18
  }
20
19
 
@@ -29,4 +28,4 @@ message UnregisterRequest {
29
28
  service FunctionRegistryService {
30
29
  rpc Register(RegisterRequest) returns (RegisterResponse) {}
31
30
  rpc Unregister(UnregisterRequest) returns (google.protobuf.Empty) {}
32
- }
31
+ }
@@ -141,11 +141,27 @@ message SpaceMember {
141
141
 
142
142
  /// Runtime state of the space object.
143
143
  enum SpaceState {
144
+ ///
145
+ /// Persitent states.
146
+ ///
147
+
148
+ /// Space is inactive. No swarming or repication will be done.
149
+ INACTIVE = 2;
150
+
151
+ /// Space is active. Swarming and replication will be done.
152
+ ACTIVE = 6;
153
+
154
+
155
+ ///
156
+ /// Runtime states:
157
+ ///
158
+
159
+
144
160
  /// Space is closed.
145
161
  CLOSED = 1;
146
162
 
147
- /// Space is inactive. Database is not available.
148
- INACTIVE = 2;
163
+ /// Data pipeline is inactive.
164
+ CONTROL_ONLY = 7;
149
165
 
150
166
  /// Data pipeline is initializing.
151
167
  INITIALIZING = 4;
@@ -155,6 +171,7 @@ enum SpaceState {
155
171
 
156
172
  /// Space errored.
157
173
  ERROR = 5;
174
+
158
175
  }
159
176
 
160
177
  message Space {
@@ -225,7 +242,10 @@ message Space {
225
242
  // TODO(burdon): Create type for epoch?
226
243
 
227
244
  message UpdateSpaceRequest {
228
- optional Status status = 1;
245
+ dxos.keys.PublicKey space_key = 1;
246
+
247
+ /// Allowed values: ACTIVE, INACTIVE.
248
+ optional SpaceState state = 2;
229
249
  }
230
250
 
231
251
  message QuerySpacesResponse {
@@ -140,6 +140,14 @@ message Runtime {
140
140
  optional google.protobuf.Struct env = 101;
141
141
  }
142
142
 
143
+ message Agent {
144
+ message Functions {
145
+ int32 port = 1;
146
+ }
147
+
148
+ optional Functions functions = 1;
149
+ }
150
+
143
151
  // CLI configuration
144
152
  message CLI {
145
153
  message AppServe {
@@ -374,4 +382,5 @@ message Runtime {
374
382
  optional System system = 6;
375
383
  optional Kube kube = 7;
376
384
  repeated Keys keys = 8;
385
+ optional Agent agent = 9;
377
386
  }
@@ -17,12 +17,20 @@ message SwarmInfo {
17
17
  }
18
18
 
19
19
  message ConnectionInfo {
20
+ message StreamStats {
21
+ uint32 id = 1;
22
+ string tag = 2;
23
+ uint32 bytesSent = 3;
24
+ uint32 bytesReceived = 4;
25
+ }
26
+
20
27
  string state = 1;
21
28
  dxos.keys.PublicKey session_id = 2;
22
29
  dxos.keys.PublicKey remote_peer_id = 3;
23
30
  optional string transport = 4;
24
31
  repeated string protocol_extensions = 5;
25
32
  repeated ConnectionEvent events = 6;
33
+ repeated StreamStats streams = 7;
26
34
  }
27
35
 
28
36
  message ConnectionEvent {
@@ -59,6 +59,9 @@ message SpaceMetadata {
59
59
  optional timeframe.TimeframeVector data_timeframe = 5;
60
60
 
61
61
  optional SpaceCache cache = 9;
62
+
63
+ /// ACTIVE, INACTIVE, etc.
64
+ optional SpaceState state = 10;
62
65
  }
63
66
 
64
67
  /// Information needed to bootstrap an Identity.
@@ -0,0 +1,90 @@
1
+ import type { Stream } from "@dxos/codec-protobuf";
2
+ import substitutions from "../../../substitutions";
3
+ import * as dxos_bot from "../bot";
4
+ import * as dxos_client_services from "../client/services";
5
+ import * as dxos_config from "../config";
6
+ import * as dxos_devtools_host from "../devtools/host";
7
+ import * as dxos_devtools_swarm from "../devtools/swarm";
8
+ import * as dxos_echo_blob from "../echo/blob";
9
+ import * as dxos_echo_feed from "../echo/feed";
10
+ import * as dxos_echo_metadata from "../echo/metadata";
11
+ import * as dxos_echo_model_document from "../echo/model/document";
12
+ import * as dxos_echo_model_messenger from "../echo/model/messenger";
13
+ import * as dxos_echo_model_text from "../echo/model/text";
14
+ import * as dxos_echo_object from "../echo/object";
15
+ import * as dxos_echo_service from "../echo/service";
16
+ import * as dxos_echo_snapshot from "../echo/snapshot";
17
+ import * as dxos_echo_timeframe from "../echo/timeframe";
18
+ import * as dxos_error from "../error";
19
+ import * as dxos_gravity from "../gravity";
20
+ import * as dxos_halo_credentials from "../halo/credentials";
21
+ import * as dxos_halo_credentials_auth from "../halo/credentials/auth";
22
+ import * as dxos_halo_credentials_greet from "../halo/credentials/greet";
23
+ import * as dxos_halo_credentials_identity from "../halo/credentials/identity";
24
+ import * as dxos_halo_invitations from "../halo/invitations";
25
+ import * as dxos_halo_keyring from "../halo/keyring";
26
+ import * as dxos_halo_keys from "../halo/keys";
27
+ import * as dxos_halo_signed from "../halo/signed";
28
+ import * as dxos_iframe from "../iframe";
29
+ import * as dxos_keys from "../keys";
30
+ import * as dxos_mesh_bridge from "../mesh/bridge";
31
+ import * as dxos_mesh_broadcast from "../mesh/broadcast";
32
+ import * as dxos_mesh_messaging from "../mesh/messaging";
33
+ import * as dxos_mesh_muxer from "../mesh/muxer";
34
+ import * as dxos_mesh_presence from "../mesh/presence";
35
+ import * as dxos_mesh_protocol from "../mesh/protocol";
36
+ import * as dxos_mesh_replicator from "../mesh/replicator";
37
+ import * as dxos_mesh_signal from "../mesh/signal";
38
+ import * as dxos_mesh_swarm from "../mesh/swarm";
39
+ import * as dxos_mesh_teleport_auth from "../mesh/teleport/auth";
40
+ import * as dxos_mesh_teleport_blobsync from "../mesh/teleport/blobsync";
41
+ import * as dxos_mesh_teleport_control from "../mesh/teleport/control";
42
+ import * as dxos_mesh_teleport_gossip from "../mesh/teleport/gossip";
43
+ import * as dxos_mesh_teleport_notarization from "../mesh/teleport/notarization";
44
+ import * as dxos_mesh_teleport_replicator from "../mesh/teleport/replicator";
45
+ import * as dxos_registry from "../registry";
46
+ import * as dxos_rpc from "../rpc";
47
+ import * as dxos_service_publisher from "../service/publisher";
48
+ import * as dxos_service_supervisor from "../service/supervisor";
49
+ import * as dxos_service_tunnel from "../service/tunnel";
50
+ import * as dxos_type from "../type";
51
+ import * as example_testing_data from "../../example/testing/data";
52
+ import * as example_testing_rpc from "../../example/testing/rpc";
53
+ import * as google_protobuf from "../../google/protobuf";
54
+ /**
55
+ * Defined in:
56
+ * {@link file://./../../../dxos/agent/functions.proto}
57
+ */
58
+ export interface Function {
59
+ name: string;
60
+ }
61
+ /**
62
+ * Defined in:
63
+ * {@link file://./../../../dxos/agent/functions.proto}
64
+ */
65
+ export interface RegisterRequest {
66
+ endpoint: string;
67
+ functions?: Function[];
68
+ }
69
+ /**
70
+ * Defined in:
71
+ * {@link file://./../../../dxos/agent/functions.proto}
72
+ */
73
+ export interface RegisterResponse {
74
+ registrationId: string;
75
+ }
76
+ /**
77
+ * Defined in:
78
+ * {@link file://./../../../dxos/agent/functions.proto}
79
+ */
80
+ export interface UnregisterRequest {
81
+ registrationId: string;
82
+ }
83
+ /**
84
+ * Defined in:
85
+ * {@link file://./../../../dxos/agent/functions.proto}
86
+ */
87
+ export interface FunctionRegistryService {
88
+ register: (request: RegisterRequest) => Promise<RegisterResponse>;
89
+ unregister: (request: UnregisterRequest) => Promise<void>;
90
+ }
@@ -1,5 +1,6 @@
1
1
  import type { Stream } from "@dxos/codec-protobuf";
2
2
  import substitutions from "../../substitutions";
3
+ import * as dxos_agent_functions from "./agent/functions";
3
4
  import * as dxos_client_services from "./client/services";
4
5
  import * as dxos_config from "./config";
5
6
  import * as dxos_devtools_host from "./devtools/host";
@@ -15,7 +16,6 @@ import * as dxos_echo_service from "./echo/service";
15
16
  import * as dxos_echo_snapshot from "./echo/snapshot";
16
17
  import * as dxos_echo_timeframe from "./echo/timeframe";
17
18
  import * as dxos_error from "./error";
18
- import * as dxos_functions from "./functions";
19
19
  import * as dxos_gravity from "./gravity";
20
20
  import * as dxos_halo_credentials from "./halo/credentials";
21
21
  import * as dxos_halo_credentials_auth from "./halo/credentials/auth";
@@ -1,5 +1,6 @@
1
1
  import type { Stream } from "@dxos/codec-protobuf";
2
2
  import substitutions from "../../../substitutions";
3
+ import * as dxos_agent_functions from "../agent/functions";
3
4
  import * as dxos_bot from "../bot";
4
5
  import * as dxos_config from "../config";
5
6
  import * as dxos_devtools_host from "../devtools/host";
@@ -15,7 +16,6 @@ import * as dxos_echo_service from "../echo/service";
15
16
  import * as dxos_echo_snapshot from "../echo/snapshot";
16
17
  import * as dxos_echo_timeframe from "../echo/timeframe";
17
18
  import * as dxos_error from "../error";
18
- import * as dxos_functions from "../functions";
19
19
  import * as dxos_gravity from "../gravity";
20
20
  import * as dxos_halo_credentials from "../halo/credentials";
21
21
  import * as dxos_halo_credentials_auth from "../halo/credentials/auth";
@@ -228,8 +228,10 @@ export namespace SpaceMember {
228
228
  * {@link file://./../../../dxos/client/services.proto}
229
229
  */
230
230
  export enum SpaceState {
231
- CLOSED = 1,
232
231
  INACTIVE = 2,
232
+ ACTIVE = 6,
233
+ CLOSED = 1,
234
+ CONTROL_ONLY = 7,
233
235
  INITIALIZING = 4,
234
236
  READY = 3,
235
237
  ERROR = 5
@@ -402,11 +404,14 @@ export namespace Space {
402
404
  * {@link file://./../../../dxos/client/services.proto}
403
405
  */
404
406
  export interface UpdateSpaceRequest {
407
+ spaceKey: ReturnType<(typeof substitutions)["dxos.keys.PublicKey"]["decode"]>;
405
408
  /**
409
+ * Allowed values: ACTIVE, INACTIVE.
410
+ *
406
411
  * Options:
407
412
  * - proto3_optional = true
408
413
  */
409
- status?: dxos_bot.Bot.Status;
414
+ state?: SpaceState;
410
415
  }
411
416
  /**
412
417
  * Defined in:
@@ -1,5 +1,6 @@
1
1
  import type { Stream } from "@dxos/codec-protobuf";
2
2
  import substitutions from "../../substitutions";
3
+ import * as dxos_agent_functions from "./agent/functions";
3
4
  import * as dxos_bot from "./bot";
4
5
  import * as dxos_client_services from "./client/services";
5
6
  import * as dxos_devtools_host from "./devtools/host";
@@ -15,7 +16,6 @@ import * as dxos_echo_service from "./echo/service";
15
16
  import * as dxos_echo_snapshot from "./echo/snapshot";
16
17
  import * as dxos_echo_timeframe from "./echo/timeframe";
17
18
  import * as dxos_error from "./error";
18
- import * as dxos_functions from "./functions";
19
19
  import * as dxos_gravity from "./gravity";
20
20
  import * as dxos_halo_credentials from "./halo/credentials";
21
21
  import * as dxos_halo_credentials_auth from "./halo/credentials/auth";
@@ -236,6 +236,11 @@ export interface Runtime {
236
236
  */
237
237
  kube?: Runtime.Kube;
238
238
  keys?: Runtime.Keys[];
239
+ /**
240
+ * Options:
241
+ * - proto3_optional = true
242
+ */
243
+ agent?: Runtime.Agent;
239
244
  }
240
245
  export namespace Runtime {
241
246
  /**
@@ -406,6 +411,26 @@ export namespace Runtime {
406
411
  version?: string;
407
412
  }
408
413
  }
414
+ /**
415
+ * Defined in:
416
+ * {@link file://./../../dxos/config.proto}
417
+ */
418
+ export interface Agent {
419
+ /**
420
+ * Options:
421
+ * - proto3_optional = true
422
+ */
423
+ functions?: Runtime.Agent.Functions;
424
+ }
425
+ export namespace Agent {
426
+ /**
427
+ * Defined in:
428
+ * {@link file://./../../dxos/config.proto}
429
+ */
430
+ export interface Functions {
431
+ port: number;
432
+ }
433
+ }
409
434
  /**
410
435
  * Defined in:
411
436
  * {@link file://./../../dxos/config.proto}
@@ -1,5 +1,6 @@
1
1
  import type { Stream } from "@dxos/codec-protobuf";
2
2
  import substitutions from "../../../substitutions";
3
+ import * as dxos_agent_functions from "../agent/functions";
3
4
  import * as dxos_bot from "../bot";
4
5
  import * as dxos_client_services from "../client/services";
5
6
  import * as dxos_config from "../config";
@@ -15,7 +16,6 @@ import * as dxos_echo_service from "../echo/service";
15
16
  import * as dxos_echo_snapshot from "../echo/snapshot";
16
17
  import * as dxos_echo_timeframe from "../echo/timeframe";
17
18
  import * as dxos_error from "../error";
18
- import * as dxos_functions from "../functions";
19
19
  import * as dxos_gravity from "../gravity";
20
20
  import * as dxos_halo_credentials from "../halo/credentials";
21
21
  import * as dxos_halo_credentials_auth from "../halo/credentials/auth";
@@ -1,5 +1,6 @@
1
1
  import type { Stream } from "@dxos/codec-protobuf";
2
2
  import substitutions from "../../../substitutions";
3
+ import * as dxos_agent_functions from "../agent/functions";
3
4
  import * as dxos_bot from "../bot";
4
5
  import * as dxos_client_services from "../client/services";
5
6
  import * as dxos_config from "../config";
@@ -15,7 +16,6 @@ import * as dxos_echo_service from "../echo/service";
15
16
  import * as dxos_echo_snapshot from "../echo/snapshot";
16
17
  import * as dxos_echo_timeframe from "../echo/timeframe";
17
18
  import * as dxos_error from "../error";
18
- import * as dxos_functions from "../functions";
19
19
  import * as dxos_gravity from "../gravity";
20
20
  import * as dxos_halo_credentials from "../halo/credentials";
21
21
  import * as dxos_halo_credentials_auth from "../halo/credentials/auth";
@@ -81,6 +81,19 @@ export interface ConnectionInfo {
81
81
  transport?: string;
82
82
  protocolExtensions?: string[];
83
83
  events?: ConnectionEvent[];
84
+ streams?: ConnectionInfo.StreamStats[];
85
+ }
86
+ export namespace ConnectionInfo {
87
+ /**
88
+ * Defined in:
89
+ * {@link file://./../../../dxos/devtools/swarm.proto}
90
+ */
91
+ export interface StreamStats {
92
+ id: number;
93
+ tag: string;
94
+ bytesSent: number;
95
+ bytesReceived: number;
96
+ }
84
97
  }
85
98
  /**
86
99
  * Defined in:
@@ -1,5 +1,6 @@
1
1
  import type { Stream } from "@dxos/codec-protobuf";
2
2
  import substitutions from "../../../substitutions";
3
+ import * as dxos_agent_functions from "../agent/functions";
3
4
  import * as dxos_bot from "../bot";
4
5
  import * as dxos_client_services from "../client/services";
5
6
  import * as dxos_config from "../config";
@@ -15,7 +16,6 @@ import * as dxos_echo_service from "./service";
15
16
  import * as dxos_echo_snapshot from "./snapshot";
16
17
  import * as dxos_echo_timeframe from "./timeframe";
17
18
  import * as dxos_error from "../error";
18
- import * as dxos_functions from "../functions";
19
19
  import * as dxos_gravity from "../gravity";
20
20
  import * as dxos_halo_credentials from "../halo/credentials";
21
21
  import * as dxos_halo_credentials_auth from "../halo/credentials/auth";
@@ -1,5 +1,6 @@
1
1
  import type { Stream } from "@dxos/codec-protobuf";
2
2
  import substitutions from "../../../substitutions";
3
+ import * as dxos_agent_functions from "../agent/functions";
3
4
  import * as dxos_bot from "../bot";
4
5
  import * as dxos_client_services from "../client/services";
5
6
  import * as dxos_config from "../config";
@@ -15,7 +16,6 @@ import * as dxos_echo_service from "./service";
15
16
  import * as dxos_echo_snapshot from "./snapshot";
16
17
  import * as dxos_echo_timeframe from "./timeframe";
17
18
  import * as dxos_error from "../error";
18
- import * as dxos_functions from "../functions";
19
19
  import * as dxos_gravity from "../gravity";
20
20
  import * as dxos_halo_credentials from "../halo/credentials";
21
21
  import * as dxos_halo_credentials_auth from "../halo/credentials/auth";
@@ -1,5 +1,6 @@
1
1
  import type { Stream } from "@dxos/codec-protobuf";
2
2
  import substitutions from "../../../substitutions";
3
+ import * as dxos_agent_functions from "../agent/functions";
3
4
  import * as dxos_bot from "../bot";
4
5
  import * as dxos_client_services from "../client/services";
5
6
  import * as dxos_config from "../config";
@@ -15,7 +16,6 @@ import * as dxos_echo_service from "./service";
15
16
  import * as dxos_echo_snapshot from "./snapshot";
16
17
  import * as dxos_echo_timeframe from "./timeframe";
17
18
  import * as dxos_error from "../error";
18
- import * as dxos_functions from "../functions";
19
19
  import * as dxos_gravity from "../gravity";
20
20
  import * as dxos_halo_credentials from "../halo/credentials";
21
21
  import * as dxos_halo_credentials_auth from "../halo/credentials/auth";
@@ -134,6 +134,13 @@ export interface SpaceMetadata {
134
134
  * - proto3_optional = true
135
135
  */
136
136
  cache?: SpaceCache;
137
+ /**
138
+ * ACTIVE, INACTIVE, etc.
139
+ *
140
+ * Options:
141
+ * - proto3_optional = true
142
+ */
143
+ state?: dxos_client_services.SpaceState;
137
144
  }
138
145
  /**
139
146
  * Information needed to bootstrap an Identity.
@@ -1,5 +1,6 @@
1
1
  import type { Stream } from "@dxos/codec-protobuf";
2
2
  import substitutions from "../../../../substitutions";
3
+ import * as dxos_agent_functions from "../../agent/functions";
3
4
  import * as dxos_bot from "../../bot";
4
5
  import * as dxos_client_services from "../../client/services";
5
6
  import * as dxos_config from "../../config";
@@ -15,7 +16,6 @@ import * as dxos_echo_service from "../service";
15
16
  import * as dxos_echo_snapshot from "../snapshot";
16
17
  import * as dxos_echo_timeframe from "../timeframe";
17
18
  import * as dxos_error from "../../error";
18
- import * as dxos_functions from "../../functions";
19
19
  import * as dxos_gravity from "../../gravity";
20
20
  import * as dxos_halo_credentials from "../../halo/credentials";
21
21
  import * as dxos_halo_credentials_auth from "../../halo/credentials/auth";
@@ -1,5 +1,6 @@
1
1
  import type { Stream } from "@dxos/codec-protobuf";
2
2
  import substitutions from "../../../../substitutions";
3
+ import * as dxos_agent_functions from "../../agent/functions";
3
4
  import * as dxos_bot from "../../bot";
4
5
  import * as dxos_client_services from "../../client/services";
5
6
  import * as dxos_config from "../../config";
@@ -15,7 +16,6 @@ import * as dxos_echo_service from "../service";
15
16
  import * as dxos_echo_snapshot from "../snapshot";
16
17
  import * as dxos_echo_timeframe from "../timeframe";
17
18
  import * as dxos_error from "../../error";
18
- import * as dxos_functions from "../../functions";
19
19
  import * as dxos_gravity from "../../gravity";
20
20
  import * as dxos_halo_credentials from "../../halo/credentials";
21
21
  import * as dxos_halo_credentials_auth from "../../halo/credentials/auth";
@@ -1,5 +1,6 @@
1
1
  import type { Stream } from "@dxos/codec-protobuf";
2
2
  import substitutions from "../../../../substitutions";
3
+ import * as dxos_agent_functions from "../../agent/functions";
3
4
  import * as dxos_bot from "../../bot";
4
5
  import * as dxos_client_services from "../../client/services";
5
6
  import * as dxos_config from "../../config";
@@ -15,7 +16,6 @@ import * as dxos_echo_service from "../service";
15
16
  import * as dxos_echo_snapshot from "../snapshot";
16
17
  import * as dxos_echo_timeframe from "../timeframe";
17
18
  import * as dxos_error from "../../error";
18
- import * as dxos_functions from "../../functions";
19
19
  import * as dxos_gravity from "../../gravity";
20
20
  import * as dxos_halo_credentials from "../../halo/credentials";
21
21
  import * as dxos_halo_credentials_auth from "../../halo/credentials/auth";
@@ -1,5 +1,6 @@
1
1
  import type { Stream } from "@dxos/codec-protobuf";
2
2
  import substitutions from "../../../substitutions";
3
+ import * as dxos_agent_functions from "../agent/functions";
3
4
  import * as dxos_bot from "../bot";
4
5
  import * as dxos_client_services from "../client/services";
5
6
  import * as dxos_config from "../config";
@@ -15,7 +16,6 @@ import * as dxos_echo_service from "./service";
15
16
  import * as dxos_echo_snapshot from "./snapshot";
16
17
  import * as dxos_echo_timeframe from "./timeframe";
17
18
  import * as dxos_error from "../error";
18
- import * as dxos_functions from "../functions";
19
19
  import * as dxos_gravity from "../gravity";
20
20
  import * as dxos_halo_credentials from "../halo/credentials";
21
21
  import * as dxos_halo_credentials_auth from "../halo/credentials/auth";
@@ -1,5 +1,6 @@
1
1
  import type { Stream } from "@dxos/codec-protobuf";
2
2
  import substitutions from "../../../substitutions";
3
+ import * as dxos_agent_functions from "../agent/functions";
3
4
  import * as dxos_bot from "../bot";
4
5
  import * as dxos_client_services from "../client/services";
5
6
  import * as dxos_config from "../config";
@@ -15,7 +16,6 @@ import * as dxos_echo_object from "./object";
15
16
  import * as dxos_echo_snapshot from "./snapshot";
16
17
  import * as dxos_echo_timeframe from "./timeframe";
17
18
  import * as dxos_error from "../error";
18
- import * as dxos_functions from "../functions";
19
19
  import * as dxos_gravity from "../gravity";
20
20
  import * as dxos_halo_credentials from "../halo/credentials";
21
21
  import * as dxos_halo_credentials_auth from "../halo/credentials/auth";
@@ -1,5 +1,6 @@
1
1
  import type { Stream } from "@dxos/codec-protobuf";
2
2
  import substitutions from "../../../substitutions";
3
+ import * as dxos_agent_functions from "../agent/functions";
3
4
  import * as dxos_bot from "../bot";
4
5
  import * as dxos_client_services from "../client/services";
5
6
  import * as dxos_config from "../config";
@@ -15,7 +16,6 @@ import * as dxos_echo_object from "./object";
15
16
  import * as dxos_echo_service from "./service";
16
17
  import * as dxos_echo_timeframe from "./timeframe";
17
18
  import * as dxos_error from "../error";
18
- import * as dxos_functions from "../functions";
19
19
  import * as dxos_gravity from "../gravity";
20
20
  import * as dxos_halo_credentials from "../halo/credentials";
21
21
  import * as dxos_halo_credentials_auth from "../halo/credentials/auth";
@@ -1,5 +1,6 @@
1
1
  import type { Stream } from "@dxos/codec-protobuf";
2
2
  import substitutions from "../../../substitutions";
3
+ import * as dxos_agent_functions from "../agent/functions";
3
4
  import * as dxos_bot from "../bot";
4
5
  import * as dxos_client_services from "../client/services";
5
6
  import * as dxos_config from "../config";
@@ -15,7 +16,6 @@ import * as dxos_echo_object from "./object";
15
16
  import * as dxos_echo_service from "./service";
16
17
  import * as dxos_echo_snapshot from "./snapshot";
17
18
  import * as dxos_error from "../error";
18
- import * as dxos_functions from "../functions";
19
19
  import * as dxos_gravity from "../gravity";
20
20
  import * as dxos_halo_credentials from "../halo/credentials";
21
21
  import * as dxos_halo_credentials_auth from "../halo/credentials/auth";
@@ -1,5 +1,6 @@
1
1
  import type { Stream } from "@dxos/codec-protobuf";
2
2
  import substitutions from "../../substitutions";
3
+ import * as dxos_agent_functions from "./agent/functions";
3
4
  import * as dxos_bot from "./bot";
4
5
  import * as dxos_client_services from "./client/services";
5
6
  import * as dxos_config from "./config";
@@ -15,7 +16,6 @@ import * as dxos_echo_object from "./echo/object";
15
16
  import * as dxos_echo_service from "./echo/service";
16
17
  import * as dxos_echo_snapshot from "./echo/snapshot";
17
18
  import * as dxos_echo_timeframe from "./echo/timeframe";
18
- import * as dxos_functions from "./functions";
19
19
  import * as dxos_gravity from "./gravity";
20
20
  import * as dxos_halo_credentials from "./halo/credentials";
21
21
  import * as dxos_halo_credentials_auth from "./halo/credentials/auth";
@@ -1,5 +1,6 @@
1
1
  import type { Stream } from "@dxos/codec-protobuf";
2
2
  import substitutions from "../../substitutions";
3
+ import * as dxos_agent_functions from "./agent/functions";
3
4
  import * as dxos_bot from "./bot";
4
5
  import * as dxos_client_services from "./client/services";
5
6
  import * as dxos_config from "./config";
@@ -16,7 +17,6 @@ import * as dxos_echo_service from "./echo/service";
16
17
  import * as dxos_echo_snapshot from "./echo/snapshot";
17
18
  import * as dxos_echo_timeframe from "./echo/timeframe";
18
19
  import * as dxos_error from "./error";
19
- import * as dxos_functions from "./functions";
20
20
  import * as dxos_halo_credentials from "./halo/credentials";
21
21
  import * as dxos_halo_credentials_auth from "./halo/credentials/auth";
22
22
  import * as dxos_halo_credentials_greet from "./halo/credentials/greet";